Bug 218858
Summary: | scsi_alloc_sdev: Allocation failure during SCSI scanning, some SCSI devices might not be configured | ||
---|---|---|---|
Product: | Platform Specific/Hardware | Reporter: | doru iorgulescu (doru.iorgulescu1) |
Component: | PPC-64 | Assignee: | platform_ppc-64 |
Status: | CLOSED CODE_FIX | ||
Severity: | high | CC: | michael, regressions |
Priority: | P3 | ||
Hardware: | PPC-64 | ||
OS: | Linux | ||
Kernel Version: | 6.10.0-rc1 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
config-6.9.3.txt
config-6.10.0-rc1.txt dmesg-next.txt config-next.txt hdparam-I.txt dmesg6100-rc2.txt |
Description
doru iorgulescu
2024-05-19 07:21:00 UTC
This problem is currently discussed and handled on the lists: https://lore.kernel.org/all/ce2bf6af-4382-4fe1-b392-cc6829f5ceb2@roeck-us.net/ Can you confirm what page size your kernel is configured to use? By running: $ grep PAGE_SIZE .config For Linux Kernel 6.9.3 root@mirela:/boot# grep PAGE_SIZE config-6.9.3 CONFIG_MMU_GATHER_PAGE_SIZE=y CONFIG_HAVE_PAGE_SIZE_64KB=y CONFIG_PAGE_SIZE_64KB=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_HUGETLB_PAGE_SIZE_VARIABLE=y I can upload config-6.9.3 Thank You Regards Created attachment 306379 [details]
config-6.9.3.txt
Created attachment 306380 [details]
config-6.10.0-rc1.txt
I have upload config-6.10.0-rc1.txt I compile 6.10.0-rc1 starting from 6.9.3 Thank You Regards Can you boot a working kernel and post the output of: # ls -l /sys/class/block # ls -l /sys/class/scsi_host # lspci -tv I run linux kernel 6.9.3 root@mirela:~# ls -l /sys/class/block total 0 lrwxrwxrwx 1 root root 0 May 30 10:55 loop0 -> ../../devices/virtual/block/loop0 lrwxrwxrwx 1 root root 0 May 30 10:55 loop1 -> ../../devices/virtual/block/loop1 lrwxrwxrwx 1 root root 0 May 30 10:55 loop2 -> ../../devices/virtual/block/loop2 lrwxrwxrwx 1 root root 0 May 30 10:55 loop3 -> ../../devices/virtual/block/loop3 lrwxrwxrwx 1 root root 0 May 30 10:55 loop4 -> ../../devices/virtual/block/loop4 lrwxrwxrwx 1 root root 0 May 30 10:55 loop5 -> ../../devices/virtual/block/loop5 lrwxrwxrwx 1 root root 0 May 30 10:55 loop6 -> ../../devices/virtual/block/loop6 lrwxrwxrwx 1 root root 0 May 30 10:55 loop7 -> ../../devices/virtual/block/loop7 lrwxrwxrwx 1 root root 0 May 30 10:55 sda -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda lrwxrwxrwx 1 root root 0 May 30 10:55 sda1 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda1 lrwxrwxrwx 1 root root 0 May 30 10:55 sda10 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda10 lrwxrwxrwx 1 root root 0 May 30 10:55 sda2 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda2 lrwxrwxrwx 1 root root 0 May 30 10:55 sda3 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda3 lrwxrwxrwx 1 root root 0 May 30 10:55 sda4 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda4 lrwxrwxrwx 1 root root 0 May 30 10:55 sda5 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda5 lrwxrwxrwx 1 root root 0 May 30 10:55 sda6 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda6 lrwxrwxrwx 1 root root 0 May 30 10:55 sda7 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda7 lrwxrwxrwx 1 root root 0 May 30 10:55 sda8 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda8 lrwxrwxrwx 1 root root 0 May 30 10:55 sda9 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/sda9 lrwxrwxrwx 1 root root 0 May 30 10:55 sdb -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb lrwxrwxrwx 1 root root 0 May 30 10:55 sdb1 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb/sdb1 lrwxrwxrwx 1 root root 0 May 30 10:55 sdb2 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb/sdb2 lrwxrwxrwx 1 root root 0 May 30 10:55 sdb3 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb/sdb3 lrwxrwxrwx 1 root root 0 May 30 10:55 sdb4 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb/sdb4 lrwxrwxrwx 1 root root 0 May 30 10:55 sr0 -> ../../devices/pci0001:00/0001:00:05.0/0001:03:0d.0/ata1/host0/target0:0:0/0:0:0:0/block/sr0 root@mirela:~# root@mirela:~# ls -l /sys/class/scsi_host total 0 lrwxrwxrwx 1 root root 0 May 30 10:55 host0 -> ../../devices/pci0001:00/0001:00:05.0/0001:03:0d.0/ata1/host0/scsi_host/host0 lrwxrwxrwx 1 root root 0 May 30 10:55 host1 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata2/host1/scsi_host/host1 lrwxrwxrwx 1 root root 0 May 30 10:55 host2 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata3/host2/scsi_host/host2 lrwxrwxrwx 1 root root 0 May 30 10:55 host3 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata4/host3/scsi_host/host3 lrwxrwxrwx 1 root root 0 May 30 10:55 host4 -> ../../devices/pci0001:00/0001:00:07.0/0001:05:0c.0/ata5/host4/scsi_host/host4 root@mirela:~# root@mirela:~# lspci -tv -[0000:f0]-+-0b.0 Apple Inc. U3 AGP \-10.0 NVIDIA Corporation NV34 [GeForce FX 5200 Ultra] -[0001:00]-+-00.0 Apple Inc. CPC945 HT Bridge +-01.0-[06]-- +-02.0-[07]-- +-03.0-[01]--+-07.0 Apple Inc. K2 KeyLargo Mac/IO | +-08.0 Apple Inc. K2 KeyLargo USB | \-09.0 Apple Inc. K2 KeyLargo USB +-04.0-[02]--+-0b.0 NEC Corporation OHCI USB Controller | +-0b.1 NEC Corporation OHCI USB Controller | \-0b.2 NEC Corporation uPD72010x USB 2.0 Controller +-05.0-[03]--+-0d.0 Apple Inc. K2 ATA/100 | \-0e.0 Apple Inc. K2 FireWire +-06.0-[04]----0f.0 Apple Inc. K2 GMAC (Sun GEM) \-07.0-[05]----0c.0 Broadcom K2 SATA root@mirela:~# Thank You Regards Created attachment 306385 [details]
dmesg-next.txt
I have upload dmesg-next.txt Linux mirela 6.11.0-next-20240529 #2 SMP Fri May 31 09:17:14 EEST 2024 ppc64 GNU/Linux The problems are the same! Thank You Regards Created attachment 306388 [details]
config-next.txt
I have upload config-next.txt For Linux Kernel Linux mirela 6.11.0-next-20240529 #2 SMP Fri May 31 09:17:14 EEST 2024 ppc64 GNU/Linux The problems are the same! Thank You Regards root@mirela:~# lspci -tv ... -[0001:00]-+-00.0 Apple Inc. CPC945 HT Bridge ... +-05.0-[03]--+-0d.0 Apple Inc. K2 ATA/100 sr0 -> ../../devices/pci0001:00/0001:00:05.0/0001:03:0d.0/ata1/host0/target0:0:0/0:0:0:0/block/sr0 So it's only your CDROM drive that is connected to the driver that's causing the warning. Can you confirm that the CDROM drive works properly with the good kernel. Yes is ok with linux-kernel 6.9.3 I can disconect for a test linux kernel 6.10.0-rc1 Thank You Regards Created attachment 306389 [details]
hdparam-I.txt
I have upload hdparam-I.txt For the cdrom Is ok with linux kernel 6.9.3 Thank You, Regards This problem is currently discussed and handled on the lists: https://lore.kernel.org/all/ce2bf6af-4382-4fe1-b392-cc6829f5ceb2@roeck-us.net/ A Patch for this ? Tank You Regards The patch responsable [04/23] scsi: initialize scsi midlayer limits before allocating the queue https://patchwork.kernel.org/project/linux-scsi/patch/20240324235448.2039074-5-hch@lst.de/ This must be reverted Thank You Regards Please a pach for this warning Thank You Regards Please try the patch here: https://lore.kernel.org/linuxppc-dev/87wmn3pntq.fsf@mail.lhotse/ Thank You Very much Please send to Linus for aproval Thank You Regards Can you please confirm that the patch fixes the issue for you. I am in compilation When is finished I send to You the results Thank You Very Mutch Regards Created attachment 306427 [details]
dmesg6100-rc2.txt
I finalized to compile linux kernel 6.10.0-rc2 uith the patch aplied and is OK! Thank You I have atached dmesg-6100-rc2.txt Thank You Very mutch Regards Today the patch was applied on https://github.com/torvalds/linux Pull ata fix from Niklas Cassel: - Fix a regression for the PATA MacIO driver were it would fail to probe because of the recent changes of initializing the limits in SCSI core * tag 'ata-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux: ata: pata_macio: Fix max_segment_size with PAGE_SIZE == 64K Thank you to All Regards The fix is 09fe2bfa6b83 ("ata: pata_macio: Fix max_segment_size with PAGE_SIZE == 64K") and is included in v6.10-rc3. |