[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Use SMP kernel for Alpha (udeb) builds



Hi Frank,

On 12/4/18 5:38 PM, Frank Scheiner wrote:
> Dear all,
> 
> As per [1] and our recent discussions the generic 4.x kernels seem to no
> longer work on Alpha machines which also renders any installer images
> using the generic 4.x kernels non-working.
> 
> [1]: https://lists.debian.org/debian-alpha/2017/03/msg00007.html
> 
> Confirmed on:
> * AlphaStation 200 (w/EV4 x 1)
> * AlphaStation 255 (w/EV45 x 1)
> * Personal Workstation 500au (w/EV56 x 1)
> * AlphaServer DS20E (w/EV67 x 2)
> 
> Also expected on:
> * AXPpci33 (w/LCA4 x 1)
> * AlphaStation 500 (w/EV56 x 1)
> * AlphaServer DS25 (w/EV68CB x 2)
> * AlphaServer ES45 (w/EV68CB x 4)
> 
> The following two patches should switch the used kernels to the SMP
> version. As:
> 
> (1) I don't exactly know how to build images using multiple kernels
> (i.e. what happens if $TEMP_KERNEL has multiple kernel names in it,
> which seems to be supported according to [2], will the image creation in
> e.g. [3] than run multiple times automatically?) and I don't want to
> break things,
> 
> [2]:
> https://salsa.debian.org/installer-team/debian-installer/blob/master/build/config/dir#L79
> 
> 
> [3]:
> https://salsa.debian.org/installer-team/debian-installer/blob/master/build/config/alpha/netboot.cfg
> 
> 
> (2) I can't find a similar example for another architecture and
> 
> (3) the images with the generic kernels are non-working anyhow,
> 
> ...I just omitted the generic ones for now.
> 
> This is sort of a workaround and does not fix the actual problem which
> is yet unknown, but I believe getting working installer images is more
> important at the moment. With working installer images more people could
> get involved and maybe sometime in the future someone has enough time
> and effort to invest in fixing the actual problem.
> 
> ## Patches ##
> 
> 1.
> https://salsa.debian.org/frank-scheiner-guest/linux/commit/865cacfd7722b346629082ab3094b6ad93964095
> 
> 
> 2.
> https://salsa.debian.org/frank-scheiner-guest/debian-installer/commit/7269679bec8bae997ef5ed7619e9f8df2e184134
> 
> 
> I think both patches are already enough to produce the needed alpha-smp
> udebs and will allow to produce working installer images (e.g. netboot
> images might work instantly and could be an alternative way for Bob to
> reinstall his PWS).
> 
> What do you think? Is there anything obvious missing?

FYI I've added few tests to QEMU to avoid regressions, one is booting
the DP264 machine (not yet merged, the specific test is here:)
https://lists.gnu.org/archive/html/qemu-devel/2018-04/msg03082.html

I tested a recent Debian SMP kernel and got:

alpha-softmmu/qemu-system-alpha \
  -kernel vmlinuz-4.18.0-3-alpha-generic \
  -append console=srm -initrd initrd.gz \
  -nographic -net nic -net user -d mmu,unimp \
  -drive file=debian-503-alpha-businesscard.iso,if=ide,media=cdrom
PCI: 00:00:0 class 0300 id 1013:00b8
PCI:   region 0: 10000000
PCI:   region 1: 12000000
PCI: 00:01:0 class 0200 id 8086:100e
PCI:   region 0: 12020000
PCI:   region 1: 0000c000
PCI: 00:02:0 class 0101 id 1095:0646
PCI:   region 0: 0000c040
PCI:   region 1: 0000c048
PCI:   region 3: 0000c04c
[    0.000000] Linux version 4.18.0-3-alpha-generic
(debian-kernel@lists.debian.org) (gcc version 7.3.0 (Debian 7.3.0-30))
#1 Debian 4.18.20-2 (2018-11-23)
[    0.000000] bootconsole [srm0] enabled
[    0.000000] Booting GENERIC on Tsunami variation Clipper using
machine vector Clipper from SRM
[    0.000000] Major Options: MAGIC_SYSRQ
[    0.000000] Command line: console=srm
[    0.000000] memcluster 0, usage 1, start        0, end       14
[    0.000000] memcluster 1, usage 0, start       14, end    16384
[    0.000000] freeing pages 14:2048
[    0.000000] freeing pages 4332:16384
[    0.000000] reserving pages 4332:4333
[    0.000000] Initial ramdisk at: 0x(____ptrval____) (5079886 bytes)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=srm
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 131072
bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 65536 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 106304K/131072K available (6642K kernel code,
8709K rwdata, 2080K rodata, 352K init, 393K bss, 24768K reserved, 0K
cma-reserved)
[    0.000000] random: get_random_u64 called from
__kmem_cache_create+0x5c/0x620 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 32784
[    0.000000] clocksource: qemu: mask: 0xffffffffffffffff max_cycles:
0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[    0.003906] ------------[ cut here ]------------
[    0.004882] WARNING: CPU: 0 PID: 0 at
/build/linux-kQe68U/linux-4.18.20/init/main.c:650 start_kernel+0x4dc/0x754
[    0.004882] Interrupts were enabled early
[    0.004882] Modules linked in:
[    0.005859] CPU: 0 PID: 0 Comm: swapper Not tainted
4.18.0-3-alpha-generic #1 Debian 4.18.20-2
[    0.006835]        fffffc00018f3dc8 fffffc000216ee70 fffffc000103597c
fffffc0001898ddc
[    0.007812]        fffffc00010359f4 fffffc00018ce1b0 fffffc0002171704
fffffc000216ee70
[    0.007812]        fffffc000216ee70 0000000000000000 000000000000028a
fffffc0001898ddc
[    0.007812]        fffffc0001898ddc 0000000000000000 fffffc000173e371
fffffc00018f3e88
[    0.008789]        fffffc0000000018 fffffc000216ee70 0000000000000000
0000000000000001
[    0.008789]        fffffc00018acab8 0000000000000001 0000000000000000
0000000000000000
[    0.008789] Trace:
[    0.009765] [<fffffc000103597c>] __warn+0x15c/0x180
[    0.009765] [<fffffc00010359f4>] warn_slowpath_fmt+0x54/0x70
[    0.009765] [<fffffc000101001c>] _stext+0x1c/0x20
[    0.009765] [<fffffc0001010000>] _stext+0x0/0x20
[    0.010742]
[    0.010742] ---[ end trace c85a0517f87d04be ]---
[    0.022460] Console: colour VGA+ 80x25
[    0.025390] Calibrating delay loop... 518.32 BogoMIPS (lpj=252928)
[    0.046874] pid_max: default: 32768 minimum: 301
[    0.049804] Security Framework initialized
[    0.050781] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.059570] AppArmor: AppArmor initialized
[    0.061523] Mount-cache hash table entries: 1024 (order: 0, 8192 bytes)
[    0.061523] Mountpoint-cache hash table entries: 1024 (order: 0, 8192
bytes)
[    0.124999] Performance events: Supported CPU type!
[    0.155273] devtmpfs: initialized
[    0.175781] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 1866466235866741 ns
[    0.175781] futex hash table entries: 256 (order: -1, 6144 bytes)
[    0.200195] NET: Registered protocol family 16
[    0.207031] audit: initializing netlink subsys (disabled)
[    0.216796] EISA bus registered
[    0.222656] PCI host bridge to bus 0000:00
[    0.223632] pci_bus 0000:00: root bus resource [io  0x0000-0x1ffffff]
[    0.224609] pci_bus 0000:00: root bus resource [mem
0x00000000-0x3fffffff]
[    0.225585] pci_bus 0000:00: No busn resource found for root bus,
will use [bus 00-ff]
[    0.249999] random: fast init done
[    0.250976] pci: enabling save/restore of SRM state
[    0.256835] pci 0000:00:00.0: BAR 0: assigned [mem
0x0a000000-0x0bffffff pref]
[    0.258788] pci 0000:00:01.0: BAR 6: assigned [mem
0x09000000-0x0903ffff pref]
[    0.258788] pci 0000:00:01.0: BAR 0: assigned [mem 0x09040000-0x0905ffff]
[    0.259765] pci 0000:00:00.0: BAR 6: assigned [mem
0x09060000-0x0906ffff pref]
[    0.260742] pci 0000:00:00.0: BAR 1: assigned [mem 0x09070000-0x09070fff]
[    0.260742] pci 0000:00:01.0: BAR 1: assigned [io  0x8000-0x803f]
[    0.262695] pci 0000:00:02.0: BAR 4: assigned [io  0x8040-0x804f]
[    0.262695] pci 0000:00:02.0: BAR 0: assigned [io  0x8050-0x8057]
[    0.263671] pci 0000:00:02.0: BAR 2: assigned [io  0x8058-0x805f]
[    0.264648] pci 0000:00:02.0: BAR 1: assigned [io  0x8060-0x8063]
[    0.265624] pci 0000:00:02.0: BAR 3: assigned [io  0x8064-0x8067]
[    0.274413] Console: switching to colour VGA+ 80x25
[    0.276367] audit: type=2000 audit(0.209:1): state=initialized
audit_enabled=0 res=1
[    0.320312] pci 0000:00:00.0: vgaarb: setting as boot VGA device
[    0.320312] pci 0000:00:00.0: vgaarb: VGA device added:
decodes=io+mem,owns=io+mem,locks=none
[    0.321288] pci 0000:00:00.0: vgaarb: bridge control possible
[    0.321288] vgaarb: loaded
[    0.324218] pps_core: LinuxPPS API ver. 1 registered
[    0.325195] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti@linux.it>
[    0.325195] PTP clock support registered
[    0.351562] clocksource: Switched to clocksource qemu
[    0.357421] VFS: Disk quotas dquot_6.6.0
[    0.358398] VFS: Dquot-cache hash table entries: 1024 (order 0, 8192
bytes)
[    0.368163] AppArmor: AppArmor Filesystem Enabled
[    0.412109] NET: Registered protocol family 2
[    0.427734] tcp_listen_portaddr_hash hash table entries: 512 (order:
0, 8192 bytes)
[    0.428710] TCP established hash table entries: 1024 (order: 0, 8192
bytes)
[    0.428710] TCP bind hash table entries: 1024 (order: 0, 8192 bytes)
[    0.428710] TCP: Hash tables configured (established 1024 bind 1024)
[    0.432616] UDP hash table entries: 256 (order: 0, 8192 bytes)
[    0.433593] UDP-Lite hash table entries: 256 (order: 0, 8192 bytes)
[    0.439452] NET: Registered protocol family 1
[    0.453124] Unpacking initramfs...
[    0.874999] Freeing initrd memory: 4960K
[    0.876952] Using epoch 2000 for rtc year 18
[    0.881835] platform rtc-alpha: rtc core: registered rtc-alpha as rtc0
[    0.889647] Initialise system trusted keyrings
[    0.893554] workingset: timestamp_bits=46 max_order=14 bucket_order=0
[    0.913085] zbud: loaded
[    1.664061] Key type asymmetric registered
[    1.664061] Asymmetric key parser 'x509' registered
[    1.665038] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 248)
[    1.666991] io scheduler noop registered
[    1.667967] io scheduler deadline registered
[    1.668944] io scheduler cfq registered (default)
[    1.668944] io scheduler mq-deadline registered
[    1.672850] isapnp: Scanning for PnP cards...
[    2.046873] isapnp: No Plug & Play device found
[    2.048827] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.075194] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud =
115200) is a 16550A
[    2.103514] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud =
115200) is a 16550A
[    2.107420] Linux agpgart interface v0.103
[    2.120116] serio: i8042 KBD port at 0x60,0x64 irq 1
[    2.121092] serio: i8042 AUX port at 0x60,0x64 irq 12
[    2.125975] mousedev: PS/2 mouse device common for all mice
[    2.127928] ledtrig-cpu: registered to indicate activity on CPUs
[    2.131834] NET: Registered protocol family 10
[    2.264647] input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input0
[...]

Maybe the warning at init/main.c:650 is useful for your real hw?

Regards,

Phil.


Reply to: