Skip to contentSkip to conversation

scsi_alloc_sdev: Allocation failure during SCSI scanning, some SCSI devices might not be configured

Bug 218858 [email protected] 1 participant 28 messages May 30, 2024 – Jun 13, 2024 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

Michael Ellerman ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
          Component|Kernel                      |PPC-64
            Version|unspecified                 |2.5
           Assignee|[email protected] |platform_ppc-64@kernel-bugs
                   |rnel.org                    |.osdl.org
            Product|Linux                       |Platform Specific/Hardware
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

Michael Ellerman ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO

--- Comment #2 from Michael Ellerman ([email protected]) --- Can you confirm what page size your kernel is configured to use? By running:

$ grep PAGE_SIZE .config
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

--- Comment #3 from doru iorgulescu ([email protected]) --- 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

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#8 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

--- Comment #8 from doru iorgulescu ([email protected]) --- 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

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#10 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

--- Comment #10 from doru iorgulescu ([email protected]) --- 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

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#12 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

--- Comment #12 from doru iorgulescu ([email protected]) --- 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

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#13 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

--- Comment #13 from Michael Ellerman ([email protected]) ---

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.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#17 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

--- Comment #17 from doru iorgulescu ([email protected]) --- This problem is currently discussed and handled on the lists:
https://lore.kernel.org/all/[email protected]/
A Patch for this ?
Tank You
Regards

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#18 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

--- Comment #18 from doru iorgulescu ([email protected]) --- The patch responsable
[04/23] scsi: initialize scsi midlayer limits before allocating the queue
https://patchwork.kernel.org/project/linux-scsi/patch/[email protected]/
This must be reverted
Thank You
Regards

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#25 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

--- Comment #25 from doru iorgulescu ([email protected]) --- 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

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#27 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

--- Comment #26 from doru iorgulescu ([email protected]) --- 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

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#28 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=218858

Michael Ellerman ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED

--- Comment #27 from Michael Ellerman ([email protected]) --- The fix is 09fe2bfa6b83 ("ata: pata_macio: Fix max_segment_size with PAGE_SIZE == 64K")
and is included in v6.10-rc3.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.