linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NO_BOOTMEM breaks alpha pc164
@ 2018-11-22 13:27 Meelis Roos
  2018-11-23  7:14 ` Mike Rapoport
  0 siblings, 1 reply; 7+ messages in thread
From: Meelis Roos @ 2018-11-22 13:27 UTC (permalink / raw)
  To: LKML, linux-alpha, Mike Rapoport

I have bisected 4.20-rc2 boot hang on a PC164 subarch alpha.
Other alphas in my collection are working fine.

When it hangs, it hangs right after starting init. "random: crng init done" is printed
after starting init and nothing more appears on serial console.

The bad commit is swith to NO_BOOTMEM.

6471f52af786fc9cb82bf1af9d086fb09c62f99b is the first bad commit
commit 6471f52af786fc9cb82bf1af9d086fb09c62f99b
Author: Mike Rapoport <rppt@linux.vnet.ibm.com>
Date:   Fri Oct 26 15:05:10 2018 -0700

     alpha: switch to NO_BOOTMEM

     Replace bootmem allocator with memblock and enable use of NO_BOOTMEM like
     on most other architectures.

     Alpha gets the description of the physical memory from the firmware as an
     array of memory clusters.  Each cluster that is not reserved by the
     firmware is added to memblock.memory.

     Once the memblock.memory is set up, we reserve the kernel and initrd pages
     with memblock reserve.

     Since we don't need the bootmem bitmap anymore, the code that finds an
     appropriate place is removed.

     The conversion does not take care of NUMA support which is marked broken
     for more than 10 years now.

     Link: http://lkml.kernel.org/r/1535952894-10967-1-git-send-email-rppt@linux.vnet.ibm.com
     Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
     Cc: Richard Henderson <rth@twiddle.net>
     Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
     Cc: Michal Hocko <mhocko@kernel.org>
     Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
     Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

:040000 040000 f71c7d93d971122d0097b2ea9c1f353ae97f48b1 9765698aa49b3de81ba972b5120d0080fd7b79d7 M      arch

How do I debug it?

dmesg from working boot before the commit:

[    0.000000] Linux version 4.19.0-06941-ge92d39cdb120 (mroos@pc164) (gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)) #113 Wed Nov 21 23:11:58 EET 2018
[    0.000000] Booting on EB164 variation PC164 using machine vector PC164 from SRM
[    0.000000] Major Options: EV56 LEGACY_START VERBOSE_MCHECK DISCONTIGMEM MAGIC_SYSRQ
[    0.000000] Command line: root=/dev/sda2 console=ttyS0
[    0.000000] Raw memory layout:
[    0.000000]  memcluster  0, usage 1, start        0, end      192
[    0.000000]  memcluster  1, usage 0, start      192, end    32651
[    0.000000]  memcluster  2, usage 1, start    32651, end    32768
[    0.000000] Initializing bootmem allocator on Node ID 0
[    0.000000]  memcluster  1, usage 0, start      192, end    32651
[    0.000000]  Detected node memory:   start      194, end    32651
[    0.000000]  freeing pages 192:384
[    0.000000]  freeing pages 1540:32651
[    0.000000]  reserving pages 1540:1541
[    0.000000] 1024K Bcache detected; load hit latency 30 cycles, load miss latency 212 cycles
[    0.000000] pci: cia revision 2
[    0.000000] On node 0 totalpages: 32651
[    0.000000]   DMA zone: 224 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 32651 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32427
[    0.000000] Kernel command line: root=/dev/sda2 console=ttyS0
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 131072 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 248176K/261208K available (5425K kernel code, 372K rwdata, 1732K rodata, 208K init, 1416K bss, 13032K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=128
[    0.000000] NR_IRQS: 35
[    0.000000] clocksource: rpcc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520893 ns
[    0.001953] Console: colour VGA+ 80x25
[    0.028320] printk: console [ttyS0] enabled
[    0.029296] Calibrating delay loop... 979.52 BogoMIPS (lpj=478208)
[    0.038085] pid_max: default: 32768 minimum: 301
[    0.040039] Mount-cache hash table entries: 1024 (order: 0, 8192 bytes)
[    0.041015] Mountpoint-cache hash table entries: 1024 (order: 0, 8192 bytes)
[    0.051757] devtmpfs: initialized
[    0.054687] random: get_random_u32 called from bucket_table_alloc.isra.18+0xbc/0x270 with crng_init=0
[    0.056640] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1866466235866741 ns
[    0.057617] futex hash table entries: 256 (order: -1, 6144 bytes)
[    0.059570] NET: Registered protocol family 16
[    0.062499] pci: passed tb register update test
[    0.063476] pci: passed sg loopback i/o read test
[    0.064453] pci: passed tbia test
[    0.065429] pci: passed pte write cache snoop test
[    0.066406] pci: failed valid tag invalid pte reload test (mcheck; workaround available)
[    0.067382] pci: passed pci machine check test
[    0.068359] PCI host bridge to bus 0000:00
[    0.069335] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.070312] pci_bus 0000:00: root bus resource [mem 0x00000000-0x1fffffff]
[    0.071289] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.072265] pci 0000:00:05.0: [1000:000f] type 00 class 0x010000
[    0.072265] pci 0000:00:05.0: reg 0x10: [io  0x10000-0x100ff]
[    0.072265] pci 0000:00:05.0: reg 0x14: [mem 0x82875000-0x828750ff]
[    0.072265] pci 0000:00:05.0: reg 0x18: [mem 0x82874000-0x82874fff]
[    0.072265] pci 0000:00:05.0: reg 0x30: [mem 0x82840000-0x8285ffff pref]
[    0.073242] pci 0000:00:06.0: [102b:051b] type 00 class 0x030000
[    0.073242] pci 0000:00:06.0: reg 0x10: [mem 0x88000000-0x88ffffff pref]
[    0.073242] pci 0000:00:06.0: reg 0x14: [mem 0x82870000-0x82873fff]
[    0.073242] pci 0000:00:06.0: reg 0x18: [mem 0x82000000-0x827fffff]
[    0.073242] pci 0000:00:06.0: reg 0x30: [mem 0x82860000-0x8286ffff pref]
[    0.074218] pci 0000:00:08.0: [8086:0484] type 00 class 0x000000
[    0.074218] pci 0000:00:09.0: [1011:0009] type 00 class 0x020000
[    0.074218] pci 0000:00:09.0: reg 0x10: [io  0x10100-0x1017f]
[    0.074218] pci 0000:00:09.0: reg 0x14: [mem 0x82875100-0x8287517f]
[    0.074218] pci 0000:00:09.0: reg 0x30: [mem 0x82800000-0x8283ffff pref]
[    0.075195] pci 0000:00:0b.0: [1095:0646] type 00 class 0x010180
[    0.075195] pci 0000:00:0b.0: reg 0x20: [io  0x10180-0x1018f]
[    0.075195] pci 0000:00:0b.0: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.076171] pci 0000:00:0b.0: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.077148] pci 0000:00:0b.0: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.078124] pci 0000:00:0b.0: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.080078] pci: enabling save/restore of SRM state
[    0.081054] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.081054] pci 0000:00:06.0: BAR 0: assigned [mem 0x03000000-0x03ffffff pref]
[    0.082031] pci 0000:00:06.0: BAR 2: assigned [mem 0x02800000-0x02ffffff]
[    0.083007] pci 0000:00:09.0: BAR 6: assigned [mem 0x02200000-0x0223ffff pref]
[    0.083984] pci 0000:00:05.0: BAR 6: assigned [mem 0x02240000-0x0225ffff pref]
[    0.084960] pci 0000:00:06.0: BAR 6: assigned [mem 0x02260000-0x0226ffff pref]
[    0.085937] pci 0000:00:06.0: BAR 1: assigned [mem 0x02270000-0x02273fff]
[    0.086914] pci 0000:00:05.0: BAR 2: assigned [mem 0x02274000-0x02274fff]
[    0.088867] pci 0000:00:05.0: BAR 0: assigned [io  0x8000-0x80ff]
[    0.089843] pci 0000:00:05.0: BAR 1: assigned [mem 0x02275000-0x022750ff]
[    0.090820] pci 0000:00:09.0: BAR 0: assigned [io  0x8400-0x847f]
[    0.091796] pci 0000:00:09.0: BAR 1: assigned [mem 0x02276000-0x0227607f]
[    0.092773] pci 0000:00:0b.0: BAR 4: assigned [io  0x8480-0x848f]
[    0.093749] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.093749] pci_bus 0000:00: resource 5 [mem 0x00000000-0x1fffffff]
[    0.094726] SMC FDC37C93X Ultra I/O Controller found @ 0x370
[    0.105468] pci 0000:00:06.0: vgaarb: setting as boot VGA device
[    0.105468] pci 0000:00:06.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[    0.106445] pci 0000:00:06.0: vgaarb: bridge control possible
[    0.107421] vgaarb: loaded
[    0.109374] SCSI subsystem initialized
[    0.113281] clocksource: Switched to clocksource rpcc
[    0.138671] NET: Registered protocol family 2
[    0.141601] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 8192 bytes)
[    0.142578] TCP established hash table entries: 2048 (order: 1, 16384 bytes)
[    0.143554] TCP bind hash table entries: 2048 (order: 1, 16384 bytes)
[    0.144531] TCP: Hash tables configured (established 2048 bind 2048)
[    0.146484] UDP hash table entries: 256 (order: 0, 8192 bytes)
[    0.147460] UDP-Lite hash table entries: 256 (order: 0, 8192 bytes)
[    0.149413] NET: Registered protocol family 1
[    0.150390] PCI: CLS 0 bytes, default 32
[    0.153320] srm_env: version 0.0.6 loaded successfully
[    0.154296] Using epoch 2000 for rtc year 18
[    0.157226] platform rtc-alpha: rtc core: registered rtc-alpha as rtc0
[    0.159179] workingset: timestamp_bits=55 max_order=15 bucket_order=0
[    0.196288] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.198242] io scheduler noop registered
[    0.199218] io scheduler cfq registered (default)
[    0.201171] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.203124] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.205078] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    0.249999] random: fast init done
[    0.358398] sym0: <875> rev 0x3 at pci 0000:00:05.0 irq 18
[    0.362304] Floppy drive(s): fd0 is 2.88M
[    0.452148] sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking
[    0.453124] sym0: open drain IRQ line driver, using on-chip SRAM
[    0.454101] sym0: using LOAD/STORE-based firmware.
[    0.455077] sym0: SCSI BUS has been reset.
[    0.456054] scsi host0: sym-2.2.3
[    0.458984] Linux Tulip driver version 1.1.15-NAPI (Feb 27, 2007)
[    0.463866] tulip0: Old format EEPROM on 'Accton EN1207' board.  Using substitute media control info
[    0.464843] tulip0: EEPROM default media type Autosense
[    0.465820] tulip0: Index #0 - Media 10base2 (#1) described by a 21140 non-MII (0) block
[    0.466796] tulip0: Index #1 - Media 10baseT (#0) described by a 21140 non-MII (0) block
[    0.467773] tulip0: Index #2 - Media 10baseT-FDX (#4) described by a 21140 non-MII (0) block
[    0.468749] tulip0: Index #3 - Media 100baseTx (#3) described by a 21140 non-MII (0) block
[    0.469726] tulip0: Index #4 - Media 100baseTx-FDX (#5) described by a 21140 non-MII (0) block
[    0.472656] net eth0: Digital DS21140 Tulip rev 34 at MMIO 0x2276000, 00:00:e8:3c:4e:c2, IRQ 19
[    0.480468] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.482421] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.487304] NET: Registered protocol family 10
[    0.491210] FDC 0 is a post-1991 82077
[    0.502929] atkbd serio0: keyboard reset failed on isa0060/serio0
[    0.503905] Segment Routing with IPv6
[    0.504882] NET: Registered protocol family 17
[    0.508788] platform rtc-alpha: setting system clock to 2018-11-22 14:26:16 UTC (1542896776)
[    0.552734] atkbd serio1: keyboard reset failed on isa0060/serio1
[    0.628905] atkbd serio0: keyboard reset failed on isa0060/serio0
[    0.693359] atkbd serio1: keyboard reset failed on isa0060/serio1
[    3.828123] scsi 0:0:0:0: Direct-Access     COMPAQ   BF0369A4BC       HPB7 PQ: 0 ANSI: 3
[    3.829099] scsi target0:0:0: tagged command queuing enabled, command queue depth 16.
[    3.830076] scsi target0:0:0: Beginning Domain Validation
[    3.836912] scsi target0:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 15)
[    3.840818] scsi target0:0:0: Domain Validation skipping write tests
[    3.841794] scsi target0:0:0: Ending Domain Validation
[    3.843748] scsi 0:0:0:0: Power-on or device reset occurred
[    7.989253] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    7.991206] sd 0:0:0:0: [sda] 71132000 512-byte logical blocks: (36.4 GB/33.9 GiB)
[    7.993159] sd 0:0:0:0: [sda] Write Protect is off
[    7.994136] sd 0:0:0:0: [sda] Mode Sense: cf 00 10 08
[    7.995113] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
[    8.009761]  sda: sda1 sda2 sda4
[    8.017574] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.041988] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    8.042964] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    8.059566] devtmpfs: mounted
[    8.061519] Freeing unused kernel memory: 208K
[    8.062495] This architecture does not have kernel memory protection.
[    8.063472] Run /sbin/init as init process
[    8.319331] random: crng init done
[   21.777332] udevd[477]: starting version 3.2.5
[   21.949207] udevd[478]: starting eudev-3.2.5
[   23.199206] tulip 0000:00:09.0 enp0s9: renamed from eth0
[   23.864245] libata version 3.00 loaded.
[   24.037097] scsi host1: pata_cmd64x
[   24.055651] scsi host2: pata_cmd64x
[   24.055651] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0x8480 irq 14
[   24.055651] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0x8488 irq 15
[   24.056628] pata_cmd64x: active 10 recovery 10 setup 3.
[   24.056628] pata_cmd64x: active 10 recovery 10 setup 3.
[   24.232409] ata1.00: ATAPI: SONY    CD-RW  CRX140E, 1.2a, max UDMA/33
[   24.232409] pata_cmd64x: active 3 recovery 1 setup 1.
[   24.232409] pata_cmd64x: active 3 recovery 1 setup 1.
[   24.262682] scsi 1:0:0:0: CD-ROM            SONY     CD-RW  CRX140E   1.2a PQ: 0 ANSI: 5
[   24.281237] sr 1:0:0:0: [sr0] scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
[   24.281237] cdrom: Uniform CD-ROM driver Revision: 3.20
[   24.282214] sr 1:0:0:0: Attached scsi CD-ROM sr0
[   24.284167] sr 1:0:0:0: Attached scsi generic sg1 type 5
[   24.285143] pata_cmd64x: active 10 recovery 10 setup 3.
[   24.285143] pata_cmd64x: active 10 recovery 10 setup 3.
[   29.485336] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[   31.106429] Adding 1697208k swap on /dev/sda4.  Priority:-2 extents:1 across:1697208k
[   31.825179] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   31.846663] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)

-- 
Meelis Roos <mroos@linux.ee>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NO_BOOTMEM breaks alpha pc164
  2018-11-22 13:27 NO_BOOTMEM breaks alpha pc164 Meelis Roos
@ 2018-11-23  7:14 ` Mike Rapoport
  2018-11-23  8:37   ` Meelis Roos
                     ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mike Rapoport @ 2018-11-23  7:14 UTC (permalink / raw)
  To: Meelis Roos; +Cc: LKML, linux-alpha, Mike Rapoport

Hi,

On Thu, Nov 22, 2018 at 03:27:44PM +0200, Meelis Roos wrote:
> I have bisected 4.20-rc2 boot hang on a PC164 subarch alpha.
> Other alphas in my collection are working fine.
> 
> When it hangs, it hangs right after starting init. "random: crng init done" is printed
> after starting init and nothing more appears on serial console.

Can you please send the kernel log for the broken boot case?
What happens if you try to boot with "init=/bin/sh" added to the kernel
command line? Is the system able to start shell?
 
> The bad commit is swith to NO_BOOTMEM.

[ ... ] 
 
> How do I debug it?

Apparently, some of the early memory registration is not properly converted
from bootmem to memblock + nobootmem for your system.

You can try applying the below patch to enable debug printouts from
memblock, maybe it'll shed some more light.

diff --git a/mm/memblock.c b/mm/memblock.c
index 7df468c..a2c289e 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -119,7 +119,7 @@ struct memblock memblock __initdata_memblock = {
 	.current_limit		= MEMBLOCK_ALLOC_ANYWHERE,
 };
 
-int memblock_debug __initdata_memblock;
+int memblock_debug __initdata_memblock = 1;
 static bool system_has_some_mirror __initdata_memblock = false;
 static int memblock_can_resize __initdata_memblock;
 static int memblock_memory_in_slab __initdata_memblock = 0;
 
> dmesg from working boot before the commit:
> 
> [    0.000000] Linux version 4.19.0-06941-ge92d39cdb120 (mroos@pc164) (gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)) #113 Wed Nov 21 23:11:58 EET 2018
> [    0.000000] Booting on EB164 variation PC164 using machine vector PC164 from SRM
> [    0.000000] Major Options: EV56 LEGACY_START VERBOSE_MCHECK DISCONTIGMEM MAGIC_SYSRQ
> [    0.000000] Command line: root=/dev/sda2 console=ttyS0
> [    0.000000] Raw memory layout:
> [    0.000000]  memcluster  0, usage 1, start        0, end      192
> [    0.000000]  memcluster  1, usage 0, start      192, end    32651
> [    0.000000]  memcluster  2, usage 1, start    32651, end    32768
> [    0.000000] Initializing bootmem allocator on Node ID 0
> [    0.000000]  memcluster  1, usage 0, start      192, end    32651
> [    0.000000]  Detected node memory:   start      194, end    32651
> [    0.000000]  freeing pages 192:384
> [    0.000000]  freeing pages 1540:32651
> [    0.000000]  reserving pages 1540:1541
> [    0.000000] 1024K Bcache detected; load hit latency 30 cycles, load miss latency 212 cycles
> [    0.000000] pci: cia revision 2
> [    0.000000] On node 0 totalpages: 32651
> [    0.000000]   DMA zone: 224 pages used for memmap
> [    0.000000]   DMA zone: 0 pages reserved
> [    0.000000]   DMA zone: 32651 pages, LIFO batch:7
> [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
> [    0.000000] pcpu-alloc: [0] 0
> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32427
> [    0.000000] Kernel command line: root=/dev/sda2 console=ttyS0
> [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 262144 bytes)
> [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 131072 bytes)
> [    0.000000] Sorting __ex_table...
> [    0.000000] Memory: 248176K/261208K available (5425K kernel code, 372K rwdata, 1732K rodata, 208K init, 1416K bss, 13032K reserved, 0K cma-reserved)
> [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=128
> [    0.000000] NR_IRQS: 35
> [    0.000000] clocksource: rpcc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520893 ns
> [    0.001953] Console: colour VGA+ 80x25
> [    0.028320] printk: console [ttyS0] enabled
> [    0.029296] Calibrating delay loop... 979.52 BogoMIPS (lpj=478208)
> [    0.038085] pid_max: default: 32768 minimum: 301
> [    0.040039] Mount-cache hash table entries: 1024 (order: 0, 8192 bytes)
> [    0.041015] Mountpoint-cache hash table entries: 1024 (order: 0, 8192 bytes)
> [    0.051757] devtmpfs: initialized
> [    0.054687] random: get_random_u32 called from bucket_table_alloc.isra.18+0xbc/0x270 with crng_init=0
> [    0.056640] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1866466235866741 ns
> [    0.057617] futex hash table entries: 256 (order: -1, 6144 bytes)
> [    0.059570] NET: Registered protocol family 16
> [    0.062499] pci: passed tb register update test
> [    0.063476] pci: passed sg loopback i/o read test
> [    0.064453] pci: passed tbia test
> [    0.065429] pci: passed pte write cache snoop test
> [    0.066406] pci: failed valid tag invalid pte reload test (mcheck; workaround available)
> [    0.067382] pci: passed pci machine check test
> [    0.068359] PCI host bridge to bus 0000:00
> [    0.069335] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
> [    0.070312] pci_bus 0000:00: root bus resource [mem 0x00000000-0x1fffffff]
> [    0.071289] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
> [    0.072265] pci 0000:00:05.0: [1000:000f] type 00 class 0x010000
> [    0.072265] pci 0000:00:05.0: reg 0x10: [io  0x10000-0x100ff]
> [    0.072265] pci 0000:00:05.0: reg 0x14: [mem 0x82875000-0x828750ff]
> [    0.072265] pci 0000:00:05.0: reg 0x18: [mem 0x82874000-0x82874fff]
> [    0.072265] pci 0000:00:05.0: reg 0x30: [mem 0x82840000-0x8285ffff pref]
> [    0.073242] pci 0000:00:06.0: [102b:051b] type 00 class 0x030000
> [    0.073242] pci 0000:00:06.0: reg 0x10: [mem 0x88000000-0x88ffffff pref]
> [    0.073242] pci 0000:00:06.0: reg 0x14: [mem 0x82870000-0x82873fff]
> [    0.073242] pci 0000:00:06.0: reg 0x18: [mem 0x82000000-0x827fffff]
> [    0.073242] pci 0000:00:06.0: reg 0x30: [mem 0x82860000-0x8286ffff pref]
> [    0.074218] pci 0000:00:08.0: [8086:0484] type 00 class 0x000000
> [    0.074218] pci 0000:00:09.0: [1011:0009] type 00 class 0x020000
> [    0.074218] pci 0000:00:09.0: reg 0x10: [io  0x10100-0x1017f]
> [    0.074218] pci 0000:00:09.0: reg 0x14: [mem 0x82875100-0x8287517f]
> [    0.074218] pci 0000:00:09.0: reg 0x30: [mem 0x82800000-0x8283ffff pref]
> [    0.075195] pci 0000:00:0b.0: [1095:0646] type 00 class 0x010180
> [    0.075195] pci 0000:00:0b.0: reg 0x20: [io  0x10180-0x1018f]
> [    0.075195] pci 0000:00:0b.0: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
> [    0.076171] pci 0000:00:0b.0: legacy IDE quirk: reg 0x14: [io  0x03f6]
> [    0.077148] pci 0000:00:0b.0: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
> [    0.078124] pci 0000:00:0b.0: legacy IDE quirk: reg 0x1c: [io  0x0376]
> [    0.080078] pci: enabling save/restore of SRM state
> [    0.081054] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
> [    0.081054] pci 0000:00:06.0: BAR 0: assigned [mem 0x03000000-0x03ffffff pref]
> [    0.082031] pci 0000:00:06.0: BAR 2: assigned [mem 0x02800000-0x02ffffff]
> [    0.083007] pci 0000:00:09.0: BAR 6: assigned [mem 0x02200000-0x0223ffff pref]
> [    0.083984] pci 0000:00:05.0: BAR 6: assigned [mem 0x02240000-0x0225ffff pref]
> [    0.084960] pci 0000:00:06.0: BAR 6: assigned [mem 0x02260000-0x0226ffff pref]
> [    0.085937] pci 0000:00:06.0: BAR 1: assigned [mem 0x02270000-0x02273fff]
> [    0.086914] pci 0000:00:05.0: BAR 2: assigned [mem 0x02274000-0x02274fff]
> [    0.088867] pci 0000:00:05.0: BAR 0: assigned [io  0x8000-0x80ff]
> [    0.089843] pci 0000:00:05.0: BAR 1: assigned [mem 0x02275000-0x022750ff]
> [    0.090820] pci 0000:00:09.0: BAR 0: assigned [io  0x8400-0x847f]
> [    0.091796] pci 0000:00:09.0: BAR 1: assigned [mem 0x02276000-0x0227607f]
> [    0.092773] pci 0000:00:0b.0: BAR 4: assigned [io  0x8480-0x848f]
> [    0.093749] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
> [    0.093749] pci_bus 0000:00: resource 5 [mem 0x00000000-0x1fffffff]
> [    0.094726] SMC FDC37C93X Ultra I/O Controller found @ 0x370
> [    0.105468] pci 0000:00:06.0: vgaarb: setting as boot VGA device
> [    0.105468] pci 0000:00:06.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
> [    0.106445] pci 0000:00:06.0: vgaarb: bridge control possible
> [    0.107421] vgaarb: loaded
> [    0.109374] SCSI subsystem initialized
> [    0.113281] clocksource: Switched to clocksource rpcc
> [    0.138671] NET: Registered protocol family 2
> [    0.141601] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 8192 bytes)
> [    0.142578] TCP established hash table entries: 2048 (order: 1, 16384 bytes)
> [    0.143554] TCP bind hash table entries: 2048 (order: 1, 16384 bytes)
> [    0.144531] TCP: Hash tables configured (established 2048 bind 2048)
> [    0.146484] UDP hash table entries: 256 (order: 0, 8192 bytes)
> [    0.147460] UDP-Lite hash table entries: 256 (order: 0, 8192 bytes)
> [    0.149413] NET: Registered protocol family 1
> [    0.150390] PCI: CLS 0 bytes, default 32
> [    0.153320] srm_env: version 0.0.6 loaded successfully
> [    0.154296] Using epoch 2000 for rtc year 18
> [    0.157226] platform rtc-alpha: rtc core: registered rtc-alpha as rtc0
> [    0.159179] workingset: timestamp_bits=55 max_order=15 bucket_order=0
> [    0.196288] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
> [    0.198242] io scheduler noop registered
> [    0.199218] io scheduler cfq registered (default)
> [    0.201171] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
> [    0.203124] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
> [    0.205078] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
> [    0.249999] random: fast init done
> [    0.358398] sym0: <875> rev 0x3 at pci 0000:00:05.0 irq 18
> [    0.362304] Floppy drive(s): fd0 is 2.88M
> [    0.452148] sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking
> [    0.453124] sym0: open drain IRQ line driver, using on-chip SRAM
> [    0.454101] sym0: using LOAD/STORE-based firmware.
> [    0.455077] sym0: SCSI BUS has been reset.
> [    0.456054] scsi host0: sym-2.2.3
> [    0.458984] Linux Tulip driver version 1.1.15-NAPI (Feb 27, 2007)
> [    0.463866] tulip0: Old format EEPROM on 'Accton EN1207' board.  Using substitute media control info
> [    0.464843] tulip0: EEPROM default media type Autosense
> [    0.465820] tulip0: Index #0 - Media 10base2 (#1) described by a 21140 non-MII (0) block
> [    0.466796] tulip0: Index #1 - Media 10baseT (#0) described by a 21140 non-MII (0) block
> [    0.467773] tulip0: Index #2 - Media 10baseT-FDX (#4) described by a 21140 non-MII (0) block
> [    0.468749] tulip0: Index #3 - Media 100baseTx (#3) described by a 21140 non-MII (0) block
> [    0.469726] tulip0: Index #4 - Media 100baseTx-FDX (#5) described by a 21140 non-MII (0) block
> [    0.472656] net eth0: Digital DS21140 Tulip rev 34 at MMIO 0x2276000, 00:00:e8:3c:4e:c2, IRQ 19
> [    0.480468] serio: i8042 KBD port at 0x60,0x64 irq 1
> [    0.482421] serio: i8042 AUX port at 0x60,0x64 irq 12
> [    0.487304] NET: Registered protocol family 10
> [    0.491210] FDC 0 is a post-1991 82077
> [    0.502929] atkbd serio0: keyboard reset failed on isa0060/serio0
> [    0.503905] Segment Routing with IPv6
> [    0.504882] NET: Registered protocol family 17
> [    0.508788] platform rtc-alpha: setting system clock to 2018-11-22 14:26:16 UTC (1542896776)
> [    0.552734] atkbd serio1: keyboard reset failed on isa0060/serio1
> [    0.628905] atkbd serio0: keyboard reset failed on isa0060/serio0
> [    0.693359] atkbd serio1: keyboard reset failed on isa0060/serio1
> [    3.828123] scsi 0:0:0:0: Direct-Access     COMPAQ   BF0369A4BC       HPB7 PQ: 0 ANSI: 3
> [    3.829099] scsi target0:0:0: tagged command queuing enabled, command queue depth 16.
> [    3.830076] scsi target0:0:0: Beginning Domain Validation
> [    3.836912] scsi target0:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 15)
> [    3.840818] scsi target0:0:0: Domain Validation skipping write tests
> [    3.841794] scsi target0:0:0: Ending Domain Validation
> [    3.843748] scsi 0:0:0:0: Power-on or device reset occurred
> [    7.989253] sd 0:0:0:0: Attached scsi generic sg0 type 0
> [    7.991206] sd 0:0:0:0: [sda] 71132000 512-byte logical blocks: (36.4 GB/33.9 GiB)
> [    7.993159] sd 0:0:0:0: [sda] Write Protect is off
> [    7.994136] sd 0:0:0:0: [sda] Mode Sense: cf 00 10 08
> [    7.995113] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
> [    8.009761]  sda: sda1 sda2 sda4
> [    8.017574] sd 0:0:0:0: [sda] Attached SCSI disk
> [    8.041988] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
> [    8.042964] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
> [    8.059566] devtmpfs: mounted
> [    8.061519] Freeing unused kernel memory: 208K
> [    8.062495] This architecture does not have kernel memory protection.
> [    8.063472] Run /sbin/init as init process
> [    8.319331] random: crng init done
> [   21.777332] udevd[477]: starting version 3.2.5
> [   21.949207] udevd[478]: starting eudev-3.2.5
> [   23.199206] tulip 0000:00:09.0 enp0s9: renamed from eth0
> [   23.864245] libata version 3.00 loaded.
> [   24.037097] scsi host1: pata_cmd64x
> [   24.055651] scsi host2: pata_cmd64x
> [   24.055651] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0x8480 irq 14
> [   24.055651] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0x8488 irq 15
> [   24.056628] pata_cmd64x: active 10 recovery 10 setup 3.
> [   24.056628] pata_cmd64x: active 10 recovery 10 setup 3.
> [   24.232409] ata1.00: ATAPI: SONY    CD-RW  CRX140E, 1.2a, max UDMA/33
> [   24.232409] pata_cmd64x: active 3 recovery 1 setup 1.
> [   24.232409] pata_cmd64x: active 3 recovery 1 setup 1.
> [   24.262682] scsi 1:0:0:0: CD-ROM            SONY     CD-RW  CRX140E   1.2a PQ: 0 ANSI: 5
> [   24.281237] sr 1:0:0:0: [sr0] scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
> [   24.281237] cdrom: Uniform CD-ROM driver Revision: 3.20
> [   24.282214] sr 1:0:0:0: Attached scsi CD-ROM sr0
> [   24.284167] sr 1:0:0:0: Attached scsi generic sg1 type 5
> [   24.285143] pata_cmd64x: active 10 recovery 10 setup 3.
> [   24.285143] pata_cmd64x: active 10 recovery 10 setup 3.
> [   29.485336] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
> [   31.106429] Adding 1697208k swap on /dev/sda4.  Priority:-2 extents:1 across:1697208k
> [   31.825179] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
> [   31.846663] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
> 
> -- 
> Meelis Roos <mroos@linux.ee>
> 

-- 
Sincerely yours,
Mike.


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: NO_BOOTMEM breaks alpha pc164
  2018-11-23  7:14 ` Mike Rapoport
@ 2018-11-23  8:37   ` Meelis Roos
  2018-11-23  8:41   ` Meelis Roos
  2018-11-23 16:11   ` Meelis Roos
  2 siblings, 0 replies; 7+ messages in thread
From: Meelis Roos @ 2018-11-23  8:37 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: LKML, linux-alpha

>> When it hangs, it hangs right after starting init. "random: crng init done" is printed
>> after starting init and nothing more appears on serial console.
> 
> Can you please send the kernel log for the broken boot case?
> What happens if you try to boot with "init=/bin/sh" added to the kernel
> command line? Is the system able to start shell?

Here it is, with init=/bin/sh:

aboot> b 1/test root=/dev/sda2 console=ttyS0 init=/bin/sh
aboot: loading uncompressed test...
aboot: loading compressed test...
aboot: PHDR 0 vaddr 0xfffffc0000310000 offset 0x2000 size 0x7953a4
aboot: bss at 0xfffffc0000aa53a4, size 0x163634
aboot: zero-filling 1455668 bytes at 0xfffffc0000aa53a4
aboot: starting kernel test with arguments root=/dev/sda2 console=ttyS0 init=/bin/sh
[    0.000000] Linux version 4.19.0-06942-g6471f52af786 (mroos@pc164) (gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)) #114 Thu Nov 22 04:16:19 EET 2018
[    0.000000] Booting on EB164 variation PC164 using machine vector PC164 from SRM
[    0.000000] Major Options: EV56 LEGACY_START VERBOSE_MCHECK DISCONTIGMEM MAGIC_SYSRQ
[    0.000000] Command line: root=/dev/sda2 console=ttyS0 init=/bin/sh
[    0.000000] Raw memory layout:
[    0.000000]  memcluster  0, usage 1, start        0, end      192
[    0.000000]  memcluster  1, usage 0, start      192, end    32651
[    0.000000]  memcluster  2, usage 1, start    32651, end    32768
[    0.000000] Initializing bootmem allocator on Node ID 0
[    0.000000]  memcluster  1, usage 0, start      192, end    32651
[    0.000000]  Detected node memory:   start      192, end    32651
[    0.000000] 1024K Bcache detected; load hit latency 30 cycles, load miss latency 212 cycles
[    0.000000] pci: cia revision 2
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32427
[    0.000000] Kernel command line: root=/dev/sda2 console=ttyS0 init=/bin/sh
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 131072 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 249704K/261208K available (5435K kernel code, 372K rwdata, 1736K rodata, 208K init, 1421K bss, 11504K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=128
[    0.000000] NR_IRQS: 35
[    0.000000] clocksource: rpcc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520893 ns
[    0.001953] Console: colour VGA+ 80x25
[    0.024414] printk: console [ttyS0] enabled
[    0.025390] Calibrating delay loop... 985.92 BogoMIPS (lpj=480768)
[    0.034179] pid_max: default: 32768 minimum: 301
[    0.036132] Mount-cache hash table entries: 1024 (order: 0, 8192 bytes)
[    0.037109] Mountpoint-cache hash table entries: 1024 (order: 0, 8192 bytes)
[    0.046874] devtmpfs: initialized
[    0.048828] random: get_random_u32 called from bucket_table_alloc.isra.18+0xbc/0x270 with crng_init=0
[    0.050781] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1866466235866741 ns
[    0.051757] futex hash table entries: 256 (order: -1, 6144 bytes)
[    0.053710] NET: Registered protocol family 16
[    0.056640] pci: passed tb register update test
[    0.057617] pci: passed sg loopback i/o read test
[    0.058593] pci: passed tbia test
[    0.059570] pci: passed pte write cache snoop test
[    0.060546] pci: failed valid tag invalid pte reload test (mcheck; workaround available)
[    0.061523] pci: passed pci machine check test
[    0.063476] PCI host bridge to bus 0000:00
[    0.064453] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.065429] pci_bus 0000:00: root bus resource [mem 0x00000000-0x1fffffff]
[    0.066406] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.070312] pci 0000:00:0b.0: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.071289] pci 0000:00:0b.0: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.072265] pci 0000:00:0b.0: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.073242] pci 0000:00:0b.0: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.076171] pci: enabling save/restore of SRM state
[    0.077148] pci 0000:00:06.0: BAR 0: assigned [mem 0x03000000-0x03ffffff pref]
[    0.078124] pci 0000:00:06.0: BAR 2: assigned [mem 0x02800000-0x02ffffff]
[    0.079101] pci 0000:00:09.0: BAR 6: assigned [mem 0x02200000-0x0223ffff pref]
[    0.080078] pci 0000:00:05.0: BAR 6: assigned [mem 0x02240000-0x0225ffff pref]
[    0.081054] pci 0000:00:06.0: BAR 6: assigned [mem 0x02260000-0x0226ffff pref]
[    0.082031] pci 0000:00:06.0: BAR 1: assigned [mem 0x02270000-0x02273fff]
[    0.083007] pci 0000:00:05.0: BAR 2: assigned [mem 0x02274000-0x02274fff]
[    0.083984] pci 0000:00:05.0: BAR 0: assigned [io  0x8000-0x80ff]
[    0.084960] pci 0000:00:05.0: BAR 1: assigned [mem 0x02275000-0x022750ff]
[    0.085937] pci 0000:00:09.0: BAR 0: assigned [io  0x8400-0x847f]
[    0.086914] pci 0000:00:09.0: BAR 1: assigned [mem 0x02276000-0x0227607f]
[    0.087890] pci 0000:00:0b.0: BAR 4: assigned [io  0x8480-0x848f]
[    0.088867] SMC FDC37C93X Ultra I/O Controller found @ 0x370
[    0.100585] pci 0000:00:06.0: vgaarb: setting as boot VGA device
[    0.100585] pci 0000:00:06.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[    0.101562] pci 0000:00:06.0: vgaarb: bridge control possible
[    0.102539] vgaarb: loaded
[    0.104492] SCSI subsystem initialized
[    0.107421] clocksource: Switched to clocksource rpcc
[    0.132812] NET: Registered protocol family 2
[    0.135742] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 8192 bytes)
[    0.136718] TCP established hash table entries: 2048 (order: 1, 16384 bytes)
[    0.137695] TCP bind hash table entries: 2048 (order: 1, 16384 bytes)
[    0.138671] TCP: Hash tables configured (established 2048 bind 2048)
[    0.140624] UDP hash table entries: 256 (order: 0, 8192 bytes)
[    0.142578] UDP-Lite hash table entries: 256 (order: 0, 8192 bytes)
[    0.144531] NET: Registered protocol family 1
[    0.148437] srm_env: version 0.0.6 loaded successfully
[    0.149413] Using epoch 2000 for rtc year 18
[    0.152343] platform rtc-alpha: rtc core: registered rtc-alpha as rtc0
[    0.154296] workingset: timestamp_bits=55 max_order=15 bucket_order=0
[    0.188476] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.189453] io scheduler noop registered
[    0.191406] io scheduler cfq registered (default)
[    0.194335] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.196288] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.198242] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    0.249999] random: fast init done
[    0.352538] sym0: <875> rev 0x3 at pci 0000:00:05.0 irq 18
[    0.356445] Floppy drive(s): fd0 is 2.88M
[    0.445312] sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking
[    0.446288] sym0: open drain IRQ line driver, using on-chip SRAM
[    0.447265] sym0: using LOAD/STORE-based firmware.
[    0.449218] sym0: SCSI BUS has been reset.
[    0.450195] scsi host0: sym-2.2.3
[    0.453124] Linux Tulip driver version 1.1.15-NAPI (Feb 27, 2007)
[    0.458984] tulip0: Old format EEPROM on 'Accton EN1207' board.  Using substitute media control info
[    0.459960] tulip0: EEPROM default media type Autosense
[    0.461913] tulip0: Index #0 - Media 10base2 (#1) described by a 21140 non-MII (0) block
[    0.462890] tulip0: Index #1 - Media 10baseT (#0) described by a 21140 non-MII (0) block
[    0.463866] tulip0: Index #2 - Media 10baseT-FDX (#4) described by a 21140 non-MII (0) block
[    0.464843] tulip0: Index #3 - Media 100baseTx (#3) described by a 21140 non-MII (0) block
[    0.465820] tulip0: Index #4 - Media 100baseTx-FDX (#5) described by a 21140 non-MII (0) block
[    0.467773] net eth0: Digital DS21140 Tulip rev 34 at MMIO 0x2276000, 00:00:e8:3c:4e:c2, IRQ 19
[    0.474609] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.475585] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.479491] NET: Registered protocol family 10
[    0.483398] FDC 0 is a post-1991 82077
[    0.494140] Segment Routing with IPv6
[    0.495116] NET: Registered protocol family 17
[    0.496093] atkbd serio0: keyboard reset failed on isa0060/serio0
[    0.499023] platform rtc-alpha: setting system clock to 2018-11-23 09:35:28 UTC (1542965728)
[    0.554687] atkbd serio1: keyboard reset failed on isa0060/serio1
[    0.630859] atkbd serio0: keyboard reset failed on isa0060/serio0
[    0.696288] atkbd serio1: keyboard reset failed on isa0060/serio1
[    3.818357] scsi 0:0:0:0: Direct-Access     COMPAQ   BF0369A4BC       HPB7 PQ: 0 ANSI: 3
[    3.819333] scsi target0:0:0: tagged command queuing enabled, command queue depth 16.
[    3.820310] scsi target0:0:0: Beginning Domain Validation
[    3.827146] scsi target0:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 15)
[    3.831052] scsi target0:0:0: Domain Validation skipping write tests
[    3.832029] scsi target0:0:0: Ending Domain Validation
[    3.833982] scsi 0:0:0:0: Power-on or device reset occurred
[    7.982417] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    7.983394] sd 0:0:0:0: [sda] 71132000 512-byte logical blocks: (36.4 GB/33.9 GiB)
[    7.985347] sd 0:0:0:0: [sda] Write Protect is off
[    7.987300] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
[    7.999019]  sda: sda1 sda2 sda4
[    8.006831] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.032222] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    8.033199] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    8.048824] devtmpfs: mounted
[    8.049800] Freeing unused kernel memory: 208K
[    8.050777] This architecture does not have kernel memory protection.
[    8.051753] Run /bin/sh as init process
[    8.366206] random: crng init done
sh: cannot set terminal process


> You can try applying the below patch to enable debug printouts from
> memblock, maybe it'll shed some more light.

Will try.

-- 
Meelis Roos <mroos@linux.ee>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NO_BOOTMEM breaks alpha pc164
  2018-11-23  7:14 ` Mike Rapoport
  2018-11-23  8:37   ` Meelis Roos
@ 2018-11-23  8:41   ` Meelis Roos
  2018-11-23 16:11   ` Meelis Roos
  2 siblings, 0 replies; 7+ messages in thread
From: Meelis Roos @ 2018-11-23  8:41 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: LKML, linux-alpha

There was actually more this time, after 27s:

[   35.310528] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper:0]
[   35.310528] Modules linked in:
[   35.310528] CPU: 0 PID: 0 Comm: swapper Not tainted 4.19.0-06942-g6471f52af786 #114
[   35.310528] pc = [<fffffc000085ee10>]  ra = [<fffffc000085eda4>]  ps = 0000    Not tainted
[   35.310528] pc is at _etext+0xb0/0x360
[   35.310528] ra is at _etext+0x44/0x360
[   35.310528] v0 = 0000000000000007  t0 = fffffc0000a776c8  t1 = fffffc0000aa5448
[   35.310528] t2 = 000000000000000a  t3 = 0000000000200102  t4 = fffffc0000a75270
[   35.310528] t5 = 00000000fffb721e  t6 = 0000000000003503  t7 = fffffc0000a48000
[   35.310528] a0 = 0000000000000000  a1 = 0000000000000001  a2 = 0000000000000000
[   35.310528] a3 = fffffc0000a590b8  a4 = 0000000000000000  a5 = fffffc00005bd6e0
[   35.310528] t8 = 0000000000000000  t9 = 00006dc5acff0000  t10= 00000000d40d303b
[   35.310528] t11= 0003ba1a0002641d  pv = fffffc000036e070  at = 0000000000000000
[   35.310528] gp = fffffc0000a976c8  sp = 00000000af7577de
[   62.227507] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper:0]
[   62.227507] Modules linked in:
[   62.227507] CPU: 0 PID: 0 Comm: swapper Tainted: G             L    4.19.0-06942-g6471f52af786 #114
[   62.227507] pc = [<fffffc000085ee10>]  ra = [<fffffc000085eda4>]  ps = 0000    Tainted: G             L
[   62.227507] pc is at _etext+0xb0/0x360
[   62.227507] ra is at _etext+0x44/0x360
[   62.227507] v0 = 0000000000000007  t0 = fffffc0000a776c8  t1 = fffffc0000aa5448
[   62.227507] t2 = 000000000000000a  t3 = 0000000000200102  t4 = fffffc0000a75270
[   62.227507] t5 = 00000000fffb721e  t6 = 0000000000003503  t7 = fffffc0000a48000
[   62.227507] a0 = 0000000000000000  a1 = 0000000000000001  a2 = 0000000000000000
[   62.227507] a3 = fffffc0000a590b8  a4 = 0000000000000000  a5 = fffffc00005bd6e0
[   62.227507] t8 = 0000000000000000  t9 = 00006dc5acff0000  t10= 00000000d40d303b
[   62.227507] t11= 0003ba1a0002641d  pv = fffffc000036e070  at = 0000000000000000
[   62.227507] gp = fffffc0000a976c8  sp = 00000000af7577de
[   89.111282] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper:0]
[   89.111282] Modules linked in:
[   89.111282] CPU: 0 PID: 0 Comm: swapper Tainted: G             L    4.19.0-06942-g6471f52af786 #114
[   89.111282] pc = [<fffffc000085ee10>]  ra = [<fffffc000085eda4>]  ps = 0000    Tainted: G             L
[   89.111282] pc is at _etext+0xb0/0x360
[   89.111282] ra is at _etext+0x44/0x360
[   89.111282] v0 = 0000000000000007  t0 = fffffc0000a776c8  t1 = fffffc0000aa5448
[   89.111282] t2 = 000000000000000a  t3 = 0000000000200102  t4 = fffffc0000a75270
[   89.111282] t5 = 00000000fffb721e  t6 = 0000000000003503  t7 = fffffc0000a48000
[   89.111282] a0 = 0000000000000000  a1 = 0000000000000001  a2 = 0000000000000000
[   89.111282] a3 = fffffc0000a590b8  a4 = 0000000000000000  a5 = fffffc00005bd6e0
[   89.111282] t8 = 0000000000000000  t9 = 00006dc5acff0000  t10= 00000000d40d303b
[   89.111282] t11= 0003ba1a0002641d  pv = fffffc000036e070  at = 0000000000000000
[   89.111282] gp = fffffc0000a976c8  sp = 00000000af7577de

and so on, repeating itself.

-- 
Meelis Roos <mroos@linux.ee>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NO_BOOTMEM breaks alpha pc164
  2018-11-23  7:14 ` Mike Rapoport
  2018-11-23  8:37   ` Meelis Roos
  2018-11-23  8:41   ` Meelis Roos
@ 2018-11-23 16:11   ` Meelis Roos
  2018-11-24 11:45     ` Mike Rapoport
  2 siblings, 1 reply; 7+ messages in thread
From: Meelis Roos @ 2018-11-23 16:11 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: LKML, linux-alpha

>> The bad commit is swith to NO_BOOTMEM.
> 
> [ ... ]
>   
>> How do I debug it?
> 
> Apparently, some of the early memory registration is not properly converted
> from bootmem to memblock + nobootmem for your system.
> 
> You can try applying the below patch to enable debug printouts from
> memblock, maybe it'll shed some more light.

Here is the serial console output from a boot with the debug patch applied:

(boot dka0.0.0.5.0 -flags 0)
block 0 of dka0.0.0.5.0 is a valid boot block
reading 161 blocks from dka0.0.0.5.0
bootstrap code read in
base = 180000, image_start = 0, image_bytes = 14200
initializing HWRPB at 2000
initializing page table at 172000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code
aboot: Linux/Alpha SRM bootloader version 1.0_pre20040408
aboot: switching to OSF/1 PALcode version 1.23
aboot: booting from device 'SCSI 0 5 0 0 0 0 0'
aboot: valid disklabel found: 4 partitions.
aboot: loading uncompressed test...
aboot: loading compressed test...
aboot: PHDR 0 vaddr 0xfffffc0000310000 offset 0x2000 size 0x79925c
aboot: bss at 0xfffffc0000aa925c, size 0x16469c
aboot: zero-filling 1459868 bytes at 0xfffffc0000aa925c
aboot: starting kernel test with arguments root=/dev/sda2 console=ttyS0
[    0.000000] Linux version 4.20.0-rc2-00068-gda5322e65940-dirty (mroos@pc164) (gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)) #115 Fri Nov 23 17:38:17 EET 2018
[    0.000000] Booting on EB164 variation PC164 using machine vector PC164 from SRM
[    0.000000] Major Options: EV56 LEGACY_START VERBOSE_MCHECK DISCONTIGMEM MAGIC_SYSRQ
[    0.000000] Command line: root=/dev/sda2 console=ttyS0
[    0.000000] Raw memory layout:
[    0.000000]  memcluster  0, usage 1, start        0, end      192
[    0.000000]  memcluster  1, usage 0, start      192, end    32651
[    0.000000]  memcluster  2, usage 1, start    32651, end    32768
[    0.000000] Initializing bootmem allocator on Node ID 0
[    0.000000]  memcluster  1, usage 0, start      192, end    32651
[    0.000000]  Detected node memory:   start      192, end    32651
[    0.000000] memblock_add: [0x0000000000000000-0x000000000ff15fff] setup_memory+0x39c/0x478
[    0.000000] memblock_reserve: [0x0000000000300000-0x0000000000c11fff] setup_memory+0x444/0x478
[    0.000000] 1024K Bcache detected; load hit latency 30 cycles, load miss latency 212 cycles
[    0.000000] pci: cia revision 2
[    0.000000] memblock_alloc_try_nid: 104 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_pci_controller+0x2c/0x50
[    0.000000] memblock_reserve: [0x000000000ff15f80-0x000000000ff15fe7] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 64 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_resource+0x2c/0x40
[    0.000000] memblock_reserve: [0x000000000ff15f40-0x000000000ff15f7f] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 40 bytes align=0x8000 nid=0 from=0x0000000000000000 max_addr=0x0000000000000000 iommu_arena_new_node+0x74/0x1b0
[    0.000000] memblock_reserve: [0x000000000ff10000-0x000000000ff10027] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 40 bytes align=0x8000 nid=0 from=0x0000000000000000 max_addr=0x0000000000000000 iommu_arena_new_node+0x104/0x1b0
[    0.000000] memblock_reserve: [0x000000000ff08000-0x000000000ff08027] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 1024 bytes align=0x8000 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 do_init_arch+0x37c/0x448
[    0.000000] memblock_reserve: [0x000000000ff00000-0x000000000ff003ff] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid_nopanic: 1835008 bytes align=0x20 nid=0 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_node_mem_map+0x7c/0xa8
[    0.000000] memblock_reserve: [0x000000000fd40000-0x000000000fefffff] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid_nopanic: 16 bytes align=0x20 nid=0 from=0x0000000000000000 max_addr=0x0000000000000000 setup_usemap.isra.111+0x5c/0x78
[    0.000000] memblock_reserve: [0x000000000ff15f20-0x000000000ff15f2f] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 29 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.14+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15f00-0x000000000ff15f1c] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 29 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.14+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15ee0-0x000000000ff15efc] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 29 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.14+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15ec0-0x000000000ff15edc] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid_nopanic: 8192 bytes align=0x2000 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 pcpu_alloc_alloc_info+0x5c/0xc8
[    0.000000] memblock_reserve: [0x000000000ff12000-0x000000000ff13fff] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid_nopanic: 32768 bytes align=0x2000 nid=-1 from=0x000003ffffffffff max_addr=0x0000000000000000 setup_per_cpu_areas+0x70/0x118
[    0.000000] memblock_reserve: [0x000000000fd38000-0x000000000fd3ffff] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 8 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15ea0-0x000000000ff15ea7] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 8 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15e80-0x000000000ff15e87] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 4 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15e60-0x000000000ff15e63] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 8 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15e40-0x000000000ff15e47] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 240 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15d40-0x000000000ff15e2f] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 105 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15cc0-0x000000000ff15d28] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 1024 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff158c0-0x000000000ff15cbf] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 1032 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff154a0-0x000000000ff158a7] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 80 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x000000000ff15440-0x000000000ff1548f] memblock_alloc_internal+0x170/0x278
[    0.000000] __memblock_free_early: [0x000000000ff12000-0x000000000ff13fff] pcpu_free_alloc_info+0x2c/0x40
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32427
[    0.000000] Kernel command line: root=/dev/sda2 console=ttyS0
[    0.000000] memblock_alloc_try_nid_nopanic: 262144 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_large_system_hash+0x258/0x3dc
[    0.000000] memblock_reserve: [0x000000000fcf8000-0x000000000fd37fff] memblock_alloc_internal+0x170/0x278
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 262144 bytes)
[    0.000000] memblock_alloc_try_nid_nopanic: 131072 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_large_system_hash+0x258/0x3dc
[    0.000000] memblock_reserve: [0x000000000fcd8000-0x000000000fcf7fff] memblock_alloc_internal+0x170/0x278
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 131072 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 249680K/261208K available (5455K kernel code, 372K rwdata, 1740K rodata, 200K init, 1425K bss, 11528K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=128
[    0.000000] NR_IRQS: 35
[    0.000000] clocksource: rpcc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520893 ns
[    0.001953] Console: colour VGA+ 80x25
[    0.074218] printk: console [ttyS0] enabled
[    0.076171] Calibrating delay loop... 985.92 BogoMIPS (lpj=480768)
[    0.084960] pid_max: default: 32768 minimum: 301
[    0.086914] Mount-cache hash table entries: 1024 (order: 0, 8192 bytes)
[    0.087890] Mountpoint-cache hash table entries: 1024 (order: 0, 8192 bytes)
[    0.098632] devtmpfs: initialized
[    0.101562] random: get_random_u32 called from bucket_table_alloc.isra.19+0xbc/0x280 with crng_init=0
[    0.102539] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1866466235866741 ns
[    0.103515] futex hash table entries: 256 (order: -1, 6144 bytes)
[    0.106445] NET: Registered protocol family 16
[    0.108398] pci: passed tb register update test
[    0.109374] pci: passed sg loopback i/o read test
[    0.110351] pci: passed tbia test
[    0.111328] pci: passed pte write cache snoop test

halted CPU 0

halt code = 7
machine check while in PAL mode
PC = 1814c
boot failure
>>>

-- 
Meelis Roos <mroos@linux.ee>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NO_BOOTMEM breaks alpha pc164
  2018-11-23 16:11   ` Meelis Roos
@ 2018-11-24 11:45     ` Mike Rapoport
  2018-11-26  9:39       ` Meelis Roos
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Rapoport @ 2018-11-24 11:45 UTC (permalink / raw)
  To: Meelis Roos; +Cc: LKML, linux-alpha, linux-mm

(adding linux-mm, the beginning of the thread is at
https://lkml.org/lkml/2018/11/22/1032)

On Fri, Nov 23, 2018 at 06:11:09PM +0200, Meelis Roos wrote:
> >>The bad commit is swith to NO_BOOTMEM.
> >
> >[ ... ]
> >>How do I debug it?
> >
> >Apparently, some of the early memory registration is not properly converted
> >from bootmem to memblock + nobootmem for your system.
> >
> >You can try applying the below patch to enable debug printouts from
> >memblock, maybe it'll shed some more light.
> 
> Here is the serial console output from a boot with the debug patch applied:
> 
> (boot dka0.0.0.5.0 -flags 0)
> block 0 of dka0.0.0.5.0 is a valid boot block
> reading 161 blocks from dka0.0.0.5.0
> bootstrap code read in
> base = 180000, image_start = 0, image_bytes = 14200
> initializing HWRPB at 2000
> initializing page table at 172000
> initializing machine state
> setting affinity to the primary CPU
> jumping to bootstrap code
> aboot: Linux/Alpha SRM bootloader version 1.0_pre20040408
> aboot: switching to OSF/1 PALcode version 1.23
> aboot: booting from device 'SCSI 0 5 0 0 0 0 0'
> aboot: valid disklabel found: 4 partitions.
> aboot: loading uncompressed test...
> aboot: loading compressed test...
> aboot: PHDR 0 vaddr 0xfffffc0000310000 offset 0x2000 size 0x79925c
> aboot: bss at 0xfffffc0000aa925c, size 0x16469c
> aboot: zero-filling 1459868 bytes at 0xfffffc0000aa925c
> aboot: starting kernel test with arguments root=/dev/sda2 console=ttyS0
> [    0.000000] Linux version 4.20.0-rc2-00068-gda5322e65940-dirty (mroos@pc164) (gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)) #115 Fri Nov 23 17:38:17 EET 2018
> [    0.000000] Booting on EB164 variation PC164 using machine vector PC164 from SRM
> [    0.000000] Major Options: EV56 LEGACY_START VERBOSE_MCHECK DISCONTIGMEM MAGIC_SYSRQ
> [    0.000000] Command line: root=/dev/sda2 console=ttyS0
> [    0.000000] Raw memory layout:
> [    0.000000]  memcluster  0, usage 1, start        0, end      192
> [    0.000000]  memcluster  1, usage 0, start      192, end    32651
> [    0.000000]  memcluster  2, usage 1, start    32651, end    32768
> [    0.000000] Initializing bootmem allocator on Node ID 0
> [    0.000000]  memcluster  1, usage 0, start      192, end    32651
> [    0.000000]  Detected node memory:   start      192, end    32651
> [    0.000000] memblock_add: [0x0000000000000000-0x000000000ff15fff] setup_memory+0x39c/0x478
> [    0.000000] memblock_reserve: [0x0000000000300000-0x0000000000c11fff] setup_memory+0x444/0x478
> [    0.000000] 1024K Bcache detected; load hit latency 30 cycles, load miss latency 212 cycles
> [    0.000000] pci: cia revision 2
> [    0.000000] memblock_alloc_try_nid: 104 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_pci_controller+0x2c/0x50
> [    0.000000] memblock_reserve: [0x000000000ff15f80-0x000000000ff15fe7] memblock_alloc_internal+0x170/0x278
> [    0.000000] memblock_alloc_try_nid: 64 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_resource+0x2c/0x40
> [    0.000000] memblock_reserve: [0x000000000ff15f40-0x000000000ff15f7f] memblock_alloc_internal+0x170/0x278

...
 
> halted CPU 0
> 
> halt code = 7
> machine check while in PAL mode
> PC = 1814c
> boot failure
> >>>

Two things that might cause the hang. 
First, memblock_add() is called after node_min_pfn has been rounded down to
the nearest 8Mb and in your case this cases memblock to see more memory that
is actually present in the system.
I'm not sure why the 8Mb alignment is required, I've just made sure that
memblock_add() will use exact available memory (the first patch below).

Another thing is that memblock allocates memory from high addresses while
bootmem was using low memory. It may happen that an allocation from high
memory is not accessible by the hardware, although it should be. The second
patch below addresses this issue.

It would be really great if you could test with each patch separately and
with both patches applied :)


Patch 1
------------------------------------------------------------------------------------
diff --git a/arch/alpha/mm/numa.c b/arch/alpha/mm/numa.c
index 74846553..7db1cb5 100644
--- a/arch/alpha/mm/numa.c
+++ b/arch/alpha/mm/numa.c
@@ -144,14 +144,14 @@ setup_memory_node(int nid, void *kernel_end)
 	if (!nid && (node_max_pfn < end_kernel_pfn || node_min_pfn > start_kernel_pfn))
 		panic("kernel loaded out of ram");
 
+	memblock_add(PFN_PHYS(node_min_pfn),
+		     (node_max_pfn - node_min_pfn) << PAGE_SHIFT);
+
 	/* Zone start phys-addr must be 2^(MAX_ORDER-1) aligned.
 	   Note that we round this down, not up - node memory
 	   has much larger alignment than 8Mb, so it's safe. */
 	node_min_pfn &= ~((1UL << (MAX_ORDER-1))-1);
 
-	memblock_add(PFN_PHYS(node_min_pfn),
-		     (node_max_pfn - node_min_pfn) << PAGE_SHIFT);
-
 	NODE_DATA(nid)->node_start_pfn = node_min_pfn;
 	NODE_DATA(nid)->node_present_pages = node_max_pfn - node_min_pfn;
 
Patch 2
------------------------------------------------------------------------------------
diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c
index a37fd99..4b5b1b2 100644
--- a/arch/alpha/kernel/setup.c
+++ b/arch/alpha/kernel/setup.c
@@ -634,6 +634,7 @@ setup_arch(char **cmdline_p)
 
 	/* Find our memory.  */
 	setup_memory(kernel_end);
+	memblock_set_bottom_up(true);
 
 	/* First guess at cpu cache sizes.  Do this before init_arch.  */
 	determine_cpu_caches(cpu->type);


> -- 
> Meelis Roos <mroos@linux.ee>
> 

-- 
Sincerely yours,
Mike.


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: NO_BOOTMEM breaks alpha pc164
  2018-11-24 11:45     ` Mike Rapoport
@ 2018-11-26  9:39       ` Meelis Roos
  0 siblings, 0 replies; 7+ messages in thread
From: Meelis Roos @ 2018-11-26  9:39 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: LKML, linux-alpha, linux-mm

> Two things that might cause the hang.
> First, memblock_add() is called after node_min_pfn has been rounded down to
> the nearest 8Mb and in your case this cases memblock to see more memory that
> is actually present in the system.
> I'm not sure why the 8Mb alignment is required, I've just made sure that
> memblock_add() will use exact available memory (the first patch below).
> 
> Another thing is that memblock allocates memory from high addresses while
> bootmem was using low memory. It may happen that an allocation from high
> memory is not accessible by the hardware, although it should be. The second
> patch below addresses this issue.
> 
> It would be really great if you could test with each patch separately and
> with both patches applied :)

Tested separateöy and together, with the previous debug patch applied.

debug+patch1 caused no visible change cmpared to just debug - same crash before starting init as with plain debug patch.

debug+patch2 caused a change - now instead of hang before starting init, it hangs after starting init as with no patch applied.

debug+patch1+patch2: works, dmesg attached:

[    0.000000] Linux version 4.20.0-rc2-00068-gda5322e65940-dirty (mroos@pc164) (gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)) #118 Mon Nov 26 12:24:51 EET 2018
[    0.000000] Booting on EB164 variation PC164 using machine vector PC164 from SRM
[    0.000000] Major Options: EV56 LEGACY_START VERBOSE_MCHECK DISCONTIGMEM MAGIC_SYSRQ
[    0.000000] Command line: root=/dev/sda2 console=ttyS0
[    0.000000] Raw memory layout:
[    0.000000]  memcluster  0, usage 1, start        0, end      192
[    0.000000]  memcluster  1, usage 0, start      192, end    32651
[    0.000000]  memcluster  2, usage 1, start    32651, end    32768
[    0.000000] Initializing bootmem allocator on Node ID 0
[    0.000000]  memcluster  1, usage 0, start      192, end    32651
[    0.000000]  Detected node memory:   start      192, end    32651
[    0.000000] memblock_add: [0x0000000000180000-0x000000000ff15fff] setup_memory+0x38c/0x470
[    0.000000] memblock_reserve: [0x0000000000300000-0x0000000000c11fff] setup_memory+0x43c/0x470
[    0.000000] 1024K Bcache detected; load hit latency 30 cycles, load miss latency 212 cycles
[    0.000000] pci: cia revision 2
[    0.000000] memblock_alloc_try_nid: 104 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_pci_controller+0x2c/0x50
[    0.000000] memblock_reserve: [0x0000000000c12000-0x0000000000c12067] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 64 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_resource+0x2c/0x40
[    0.000000] memblock_reserve: [0x0000000000c12080-0x0000000000c120bf] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 40 bytes align=0x8000 nid=0 from=0x0000000000000000 max_addr=0x0000000000000000 iommu_arena_new_node+0x74/0x1b0
[    0.000000] memblock_reserve: [0x0000000000c18000-0x0000000000c18027] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 40 bytes align=0x8000 nid=0 from=0x0000000000000000 max_addr=0x0000000000000000 iommu_arena_new_node+0x104/0x1b0
[    0.000000] memblock_reserve: [0x0000000000c20000-0x0000000000c20027] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 1024 bytes align=0x8000 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 do_init_arch+0x37c/0x448
[    0.000000] memblock_reserve: [0x0000000000c28000-0x0000000000c283ff] memblock_alloc_internal+0x170/0x278
[    0.000000] On node 0 totalpages: 32651
[    0.000000] memblock_alloc_try_nid_nopanic: 1835008 bytes align=0x20 nid=0 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_node_mem_map+0x7c/0xa8
[    0.000000] memblock_reserve: [0x0000000000c28400-0x0000000000de83ff] memblock_alloc_internal+0x170/0x278
[    0.000000]   DMA zone: 224 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 32651 pages, LIFO batch:7
[    0.000000] memblock_alloc_try_nid_nopanic: 16 bytes align=0x20 nid=0 from=0x0000000000000000 max_addr=0x0000000000000000 setup_usemap.isra.111+0x5c/0x78
[    0.000000] memblock_reserve: [0x0000000000c120c0-0x0000000000c120cf] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 29 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.14+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c120e0-0x0000000000c120fc] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 29 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.14+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c12100-0x0000000000c1211c] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 29 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.14+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c12120-0x0000000000c1213c] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid_nopanic: 8192 bytes align=0x2000 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 pcpu_alloc_alloc_info+0x5c/0xc8
[    0.000000] memblock_reserve: [0x0000000000c14000-0x0000000000c15fff] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid_nopanic: 32768 bytes align=0x2000 nid=-1 from=0x000003ffffffffff max_addr=0x0000000000000000 setup_per_cpu_areas+0x70/0x118
[    0.000000] memblock_reserve: [0x0000000000dea000-0x0000000000df1fff] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 8 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c12140-0x0000000000c12147] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 8 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c12160-0x0000000000c12167] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 4 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c12180-0x0000000000c12183] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 8 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c121a0-0x0000000000c121a7] memblock_alloc_internal+0x170/0x278
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] memblock_alloc_try_nid: 240 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c121c0-0x0000000000c122af] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 105 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c122c0-0x0000000000c12328] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 1024 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c12340-0x0000000000c1273f] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 1032 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c12740-0x0000000000c12b47] memblock_alloc_internal+0x170/0x278
[    0.000000] memblock_alloc_try_nid: 80 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 memblock_alloc.constprop.29+0x28/0x40
[    0.000000] memblock_reserve: [0x0000000000c12b60-0x0000000000c12baf] memblock_alloc_internal+0x170/0x278
[    0.000000] __memblock_free_early: [0x0000000000c14000-0x0000000000c15fff] pcpu_free_alloc_info+0x2c/0x40
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32427
[    0.000000] Kernel command line: root=/dev/sda2 console=ttyS0
[    0.000000] memblock_alloc_try_nid_nopanic: 262144 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_large_system_hash+0x258/0x3dc
[    0.000000] memblock_reserve: [0x0000000000df2000-0x0000000000e31fff] memblock_alloc_internal+0x170/0x278
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 262144 bytes)
[    0.000000] memblock_alloc_try_nid_nopanic: 131072 bytes align=0x20 nid=-1 from=0x0000000000000000 max_addr=0x0000000000000000 alloc_large_system_hash+0x258/0x3dc
[    0.000000] memblock_reserve: [0x0000000000e32000-0x0000000000e51fff] memblock_alloc_internal+0x170/0x278
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 131072 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 248144K/261208K available (5455K kernel code, 372K rwdata, 1740K rodata, 200K init, 1425K bss, 13064K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=128
[    0.000000] NR_IRQS: 35
[    0.000000] clocksource: rpcc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520893 ns
[    0.001953] Console: colour VGA+ 80x25
[    0.073242] printk: console [ttyS0] enabled
[    0.074218] Calibrating delay loop... 985.92 BogoMIPS (lpj=480768)
[    0.083007] pid_max: default: 32768 minimum: 301
[    0.084960] Mount-cache hash table entries: 1024 (order: 0, 8192 bytes)
[    0.085937] Mountpoint-cache hash table entries: 1024 (order: 0, 8192 bytes)
[    0.096679] devtmpfs: initialized
[    0.098632] random: get_random_u32 called from bucket_table_alloc.isra.19+0xbc/0x280 with crng_init=0
[    0.101562] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1866466235866741 ns
[    0.102539] futex hash table entries: 256 (order: -1, 6144 bytes)
[    0.104492] NET: Registered protocol family 16
[    0.106445] pci: passed tb register update test
[    0.108398] pci: passed sg loopback i/o read test
[    0.109374] pci: passed tbia test
[    0.110351] pci: passed pte write cache snoop test
[    0.111328] pci: failed valid tag invalid pte reload test (mcheck; workaround available)
[    0.112304] pci: passed pci machine check test
[    0.113281] PCI host bridge to bus 0000:00
[    0.114257] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.115234] pci_bus 0000:00: root bus resource [mem 0x00000000-0x1fffffff]
[    0.116210] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.117187] pci 0000:00:05.0: [1000:000f] type 00 class 0x010000
[    0.117187] pci 0000:00:05.0: reg 0x10: [io  0x10000-0x100ff]
[    0.117187] pci 0000:00:05.0: reg 0x14: [mem 0x82875000-0x828750ff]
[    0.117187] pci 0000:00:05.0: reg 0x18: [mem 0x82874000-0x82874fff]
[    0.118164] pci 0000:00:05.0: reg 0x30: [mem 0x82840000-0x8285ffff pref]
[    0.118164] pci 0000:00:06.0: [102b:051b] type 00 class 0x030000
[    0.118164] pci 0000:00:06.0: reg 0x10: [mem 0x88000000-0x88ffffff pref]
[    0.118164] pci 0000:00:06.0: reg 0x14: [mem 0x82870000-0x82873fff]
[    0.118164] pci 0000:00:06.0: reg 0x18: [mem 0x82000000-0x827fffff]
[    0.118164] pci 0000:00:06.0: reg 0x30: [mem 0x82860000-0x8286ffff pref]
[    0.119140] pci 0000:00:08.0: [8086:0484] type 00 class 0x000000
[    0.119140] pci 0000:00:09.0: [1011:0009] type 00 class 0x020000
[    0.119140] pci 0000:00:09.0: reg 0x10: [io  0x10100-0x1017f]
[    0.119140] pci 0000:00:09.0: reg 0x14: [mem 0x82875100-0x8287517f]
[    0.119140] pci 0000:00:09.0: reg 0x30: [mem 0x82800000-0x8283ffff pref]
[    0.120117] pci 0000:00:0b.0: [1095:0646] type 00 class 0x010180
[    0.120117] pci 0000:00:0b.0: reg 0x20: [io  0x10180-0x1018f]
[    0.120117] pci 0000:00:0b.0: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.121093] pci 0000:00:0b.0: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.122070] pci 0000:00:0b.0: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.123046] pci 0000:00:0b.0: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.124023] pci: enabling save/restore of SRM state
[    0.124999] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.124999] pci 0000:00:06.0: BAR 0: assigned [mem 0x03000000-0x03ffffff pref]
[    0.125976] pci 0000:00:06.0: BAR 2: assigned [mem 0x02800000-0x02ffffff]
[    0.126953] pci 0000:00:09.0: BAR 6: assigned [mem 0x02200000-0x0223ffff pref]
[    0.127929] pci 0000:00:05.0: BAR 6: assigned [mem 0x02240000-0x0225ffff pref]
[    0.128906] pci 0000:00:06.0: BAR 6: assigned [mem 0x02260000-0x0226ffff pref]
[    0.130859] pci 0000:00:06.0: BAR 1: assigned [mem 0x02270000-0x02273fff]
[    0.131835] pci 0000:00:05.0: BAR 2: assigned [mem 0x02274000-0x02274fff]
[    0.132812] pci 0000:00:05.0: BAR 0: assigned [io  0x8000-0x80ff]
[    0.133788] pci 0000:00:05.0: BAR 1: assigned [mem 0x02275000-0x022750ff]
[    0.134765] pci 0000:00:09.0: BAR 0: assigned [io  0x8400-0x847f]
[    0.135742] pci 0000:00:09.0: BAR 1: assigned [mem 0x02276000-0x0227607f]
[    0.136718] pci 0000:00:0b.0: BAR 4: assigned [io  0x8480-0x848f]
[    0.137695] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.137695] pci_bus 0000:00: resource 5 [mem 0x00000000-0x1fffffff]
[    0.138671] SMC FDC37C93X Ultra I/O Controller found @ 0x370
[    0.149413] pci 0000:00:06.0: vgaarb: setting as boot VGA device
[    0.149413] pci 0000:00:06.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[    0.150390] pci 0000:00:06.0: vgaarb: bridge control possible
[    0.151367] vgaarb: loaded
[    0.153320] SCSI subsystem initialized
[    0.157226] clocksource: Switched to clocksource rpcc
[    0.182617] NET: Registered protocol family 2
[    0.185546] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 8192 bytes)
[    0.186523] TCP established hash table entries: 2048 (order: 1, 16384 bytes)
[    0.187499] TCP bind hash table entries: 2048 (order: 1, 16384 bytes)
[    0.188476] TCP: Hash tables configured (established 2048 bind 2048)
[    0.190429] UDP hash table entries: 256 (order: 0, 8192 bytes)
[    0.191406] UDP-Lite hash table entries: 256 (order: 0, 8192 bytes)
[    0.193359] NET: Registered protocol family 1
[    0.194335] PCI: CLS 0 bytes, default 32
[    0.196288] srm_env: version 0.0.6 loaded successfully
[    0.197265] Using epoch 2000 for rtc year 18
[    0.200195] platform rtc-alpha: rtc core: registered rtc-alpha as rtc0
[    0.203124] workingset: timestamp_bits=55 max_order=15 bucket_order=0
[    0.241210] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.242187] io scheduler noop registered
[    0.244140] io scheduler cfq registered (default)
[    0.247070] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.249023] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.249999] random: fast init done
[    0.252929] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    0.406249] sym0: <875> rev 0x3 at pci 0000:00:05.0 irq 18
[    0.410156] Floppy drive(s): fd0 is 2.88M
[    0.499999] sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking
[    0.500976] sym0: open drain IRQ line driver, using on-chip SRAM
[    0.501952] sym0: using LOAD/STORE-based firmware.
[    0.502929] sym0: SCSI BUS has been reset.
[    0.503905] scsi host0: sym-2.2.3
[    0.506835] Linux Tulip driver version 1.1.15-NAPI (Feb 27, 2007)
[    0.511718] tulip0: Old format EEPROM on 'Accton EN1207' board.  Using substitute media control info
[    0.512695] tulip0: EEPROM default media type Autosense
[    0.513671] tulip0: Index #0 - Media 10base2 (#1) described by a 21140 non-MII (0) block
[    0.514648] tulip0: Index #1 - Media 10baseT (#0) described by a 21140 non-MII (0) block
[    0.516601] tulip0: Index #2 - Media 10baseT-FDX (#4) described by a 21140 non-MII (0) block
[    0.517577] tulip0: Index #3 - Media 100baseTx (#3) described by a 21140 non-MII (0) block
[    0.518554] tulip0: Index #4 - Media 100baseTx-FDX (#5) described by a 21140 non-MII (0) block
[    0.520507] net eth0: Digital DS21140 Tulip rev 34 at MMIO 0x2276000, 00:00:e8:3c:4e:c2, IRQ 19
[    0.527343] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.528320] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.532226] NET: Registered protocol family 10
[    0.536132] FDC 0 is a post-1991 82077
[    0.546874] Segment Routing with IPv6
[    0.547851] NET: Registered protocol family 17
[    0.549804] atkbd serio0: keyboard reset failed on isa0060/serio0
[    0.553710] platform rtc-alpha: setting system clock to 2018-11-26 10:35:27 UTC (1543228527)
[    0.609374] atkbd serio1: keyboard reset failed on isa0060/serio1
[    0.685546] atkbd serio0: keyboard reset failed on isa0060/serio0
[    0.750976] atkbd serio1: keyboard reset failed on isa0060/serio1
[    3.902341] scsi 0:0:0:0: Direct-Access     COMPAQ   BF0369A4BC       HPB7 PQ: 0 ANSI: 3
[    3.903318] scsi target0:0:0: tagged command queuing enabled, command queue depth 16.
[    3.904294] scsi target0:0:0: Beginning Domain Validation
[    3.911130] scsi target0:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 15)
[    3.915037] scsi target0:0:0: Domain Validation skipping write tests
[    3.916013] scsi target0:0:0: Ending Domain Validation
[    3.917966] scsi 0:0:0:0: Power-on or device reset occurred
[    8.038081] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    8.039058] sd 0:0:0:0: [sda] 71132000 512-byte logical blocks: (36.4 GB/33.9 GiB)
[    8.041011] sd 0:0:0:0: [sda] Write Protect is off
[    8.041988] sd 0:0:0:0: [sda] Mode Sense: cf 00 10 08
[    8.042964] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
[    8.058589]  sda: sda1 sda2 sda4
[    8.067378] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.096675] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    8.098628] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    8.114253] devtmpfs: mounted
[    8.116206] Freeing unused kernel memory: 200K
[    8.118159] This architecture does not have kernel memory protection.
[    8.119136] Run /sbin/init as init process
[    8.398433] random: crng init done
[   21.775379] udevd[477]: starting version 3.2.5
[   21.947254] udevd[478]: starting eudev-3.2.5
[   23.135730] tulip 0000:00:09.0 enp0s9: renamed from eth0
[   23.919909] libata version 3.00 loaded.
[   24.090807] scsi host1: pata_cmd64x
[   24.114245] scsi host2: pata_cmd64x
[   24.115222] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0x8480 irq 14
[   24.115222] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0x8488 irq 15
[   24.116198] pata_cmd64x: active 10 recovery 10 setup 3.
[   24.116198] pata_cmd64x: active 10 recovery 10 setup 3.
[   24.293932] ata1.00: ATAPI: SONY    CD-RW  CRX140E, 1.2a, max UDMA/33
[   24.293932] pata_cmd64x: active 3 recovery 1 setup 1.
[   24.293932] pata_cmd64x: active 3 recovery 1 setup 1.
[   24.324206] scsi 1:0:0:0: CD-ROM            SONY     CD-RW  CRX140E   1.2a PQ: 0 ANSI: 5
[   24.341784] sr 1:0:0:0: [sr0] scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
[   24.341784] cdrom: Uniform CD-ROM driver Revision: 3.20
[   24.346667] sr 1:0:0:0: Attached scsi CD-ROM sr0
[   24.349596] sr 1:0:0:0: Attached scsi generic sg1 type 5
[   24.351550] pata_cmd64x: active 10 recovery 10 setup 3.
[   24.351550] pata_cmd64x: active 10 recovery 10 setup 3.
[   29.886703] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[   31.499983] Adding 1697208k swap on /dev/sda4.  Priority:-2 extents:1 across:1697208k
[   32.217756] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   32.240217] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)


-- 
Meelis Roos <mroos@linux.ee>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-26  9:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-22 13:27 NO_BOOTMEM breaks alpha pc164 Meelis Roos
2018-11-23  7:14 ` Mike Rapoport
2018-11-23  8:37   ` Meelis Roos
2018-11-23  8:41   ` Meelis Roos
2018-11-23 16:11   ` Meelis Roos
2018-11-24 11:45     ` Mike Rapoport
2018-11-26  9:39       ` Meelis Roos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).