Regression from b1e6e80a1b42 ("xen/swiotlb: add alignment check for dma buffers") when booting with Xen and mpt3sas_cm0 _scsih_probe failures
Subsystems (2)
Hi Juergen, hi all,
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
https://bugs.debian.org/1088159
He reports that after switching to 6.1.115 (and present in any of the later 6.1.y series) booting under xen, the mptsas devices are not anymore accessible, the boot shows:
mpt3sas version 43.100.00.00 loadedmpt3sas_cm0: 63 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (8086116 kB)mpt3sas_cm0: CurrentHostPageSize is 0: Setting default host page size to 4kmpt3sas_cm0: MSI-X vectors supported: 96mpt3sas_cm0: 0 40 40mpt3sas_cm0: High IOPs queues : disabled
mpt3sas0-msix0: PCI-MSI-X enabled: IRQ 447
mpt3sas0-msix1: PCI-MSI-X enabled: IRQ 448
mpt3sas0-msix2: PCI-MSI-X enabled: IRQ 449
mpt3sas0-msix3: PCI-MSI-X enabled: IRQ 450
mpt3sas0-msix4: PCI-MSI-X enabled: IRQ 451
mpt3sas0-msix5: PCI-MSI-X enabled: IRQ 452
mpt3sas0-msix6: PCI-MSI-X enabled: IRQ 453
mpt3sas0-msix7: PCI-MSI-X enabled: IRQ 454
mpt3sas0-msix8: PCI-MSI-X enabled: IRQ 455
mpt3sas0-msix9: PCI-MSI-X enabled: IRQ 456
mpt3sas0-msix10: PCI-MSI-X enabled: IRQ 457
mpt3sas0-msix11: PCI-MSI-X enabled: IRQ 458
mpt3sas0-msix12: PCI-MSI-X enabled: IRQ 459
mpt3sas0-msix13: PCI-MSI-X enabled: IRQ 460
mpt3sas0-msix14: PCI-MSI-X enabled: IRQ 461
mpt3sas0-msix15: PCI-MSI-X enabled: IRQ 462
mpt3sas0-msix16: PCI-MSI-X enabled: IRQ 463
mpt3sas0-msix17: PCI-MSI-X enabled: IRQ 464
mpt3sas0-msix18: PCI-MSI-X enabled: IRQ 465
mpt3sas0-msix19: PCI-MSI-X enabled: IRQ 466
mpt3sas0-msix20: PCI-MSI-X enabled: IRQ 467
mpt3sas0-msix21: PCI-MSI-X enabled: IRQ 468
mpt3sas0-msix22: PCI-MSI-X enabled: IRQ 469
mpt3sas0-msix23: PCI-MSI-X enabled: IRQ 470
mpt3sas0-msix24: PCI-MSI-X enabled: IRQ 471
mpt3sas0-msix25: PCI-MSI-X enabled: IRQ 472
mpt3sas0-msix26: PCI-MSI-X enabled: IRQ 473
mpt3sas0-msix27: PCI-MSI-X enabled: IRQ 474
mpt3sas0-msix28: PCI-MSI-X enabled: IRQ 475
mpt3sas0-msix29: PCI-MSI-X enabled: IRQ 476
mpt3sas0-msix30: PCI-MSI-X enabled: IRQ 477
mpt3sas0-msix31: PCI-MSI-X enabled: IRQ 478
mpt3sas0-msix32: PCI-MSI-X enabled: IRQ 479
mpt3sas0-msix33: PCI-MSI-X enabled: IRQ 480
mpt3sas0-msix34: PCI-MSI-X enabled: IRQ 481
mpt3sas0-msix35: PCI-MSI-X enabled: IRQ 482
mpt3sas0-msix36: PCI-MSI-X enabled: IRQ 483
mpt3sas0-msix37: PCI-MSI-X enabled: IRQ 484
mpt3sas0-msix38: PCI-MSI-X enabled: IRQ 485
mpt3sas0-msix39: PCI-MSI-X enabled: IRQ 486mpt3sas_cm0: iomem(0x00000000ac400000), mapped(0x00000000d9f45f61), size(65536)mpt3sas_cm0: ioport(0x0000000000006000), size(256)mpt3sas_cm0: CurrentHostPageSize is 0: Setting default host page size to 4kmpt3sas_cm0: scatter gather: sge_in_main_msg(1), sge_per_chain(7), sge_per_io(128), chains_per_io(19)mpt3sas_cm0: failure at drivers/scsi/mpt3sas/mpt3sas_scsih.c:12348/_scsih_probe()!
We were able to bissect the changes (see https://bugs.debian.org/1088159#64) down to
b1e6e80a1b42 ("xen/swiotlb: add alignment check for dma buffers")
#regzbot introduced: b1e6e80a1b42
#regzbot link: https://bugs.debian.org/1088159
reverting the commit resolves the issue.
Does that ring some bells?
In fact we have two more bugs reported with similar symptoms but not yet confirmed they are the same, but I'm referencing them here as well in case we are able to cross-match to root cause:
https://bugs.debian.org/1093371 (megaraid_sas didn't work anymore with Xen)
and
https://bugs.debian.org/1087807 (Unable to boot: i40e swiotlb buffer is full)
(but again the these are yet not confirmed to have the same root cause).
Thanks in advance,
Regards,
Salvatore
Hi Salvatore,
Quoted 7 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/
Thanks,
Harshit
Quoted 87 lines
He reports that after switching to 6.1.115 (and present in any of the later 6.1.y series) booting under xen, the mptsas devices are not anymore accessible, the boot shows:
mpt3sas version 43.100.00.00 loaded
mpt3sas_cm0: 63 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (8086116 kB)mpt3sas_cm0: CurrentHostPageSize is 0: Setting default host page size to 4kmpt3sas_cm0: MSI-X vectors supported: 96mpt3sas_cm0: 0 40 40mpt3sas_cm0: High IOPs queues : disabled
mpt3sas0-msix0: PCI-MSI-X enabled: IRQ 447
mpt3sas0-msix1: PCI-MSI-X enabled: IRQ 448
mpt3sas0-msix2: PCI-MSI-X enabled: IRQ 449
mpt3sas0-msix3: PCI-MSI-X enabled: IRQ 450
mpt3sas0-msix4: PCI-MSI-X enabled: IRQ 451
mpt3sas0-msix5: PCI-MSI-X enabled: IRQ 452
mpt3sas0-msix6: PCI-MSI-X enabled: IRQ 453
mpt3sas0-msix7: PCI-MSI-X enabled: IRQ 454
mpt3sas0-msix8: PCI-MSI-X enabled: IRQ 455
mpt3sas0-msix9: PCI-MSI-X enabled: IRQ 456
mpt3sas0-msix10: PCI-MSI-X enabled: IRQ 457
mpt3sas0-msix11: PCI-MSI-X enabled: IRQ 458
mpt3sas0-msix12: PCI-MSI-X enabled: IRQ 459
mpt3sas0-msix13: PCI-MSI-X enabled: IRQ 460
mpt3sas0-msix14: PCI-MSI-X enabled: IRQ 461
mpt3sas0-msix15: PCI-MSI-X enabled: IRQ 462
mpt3sas0-msix16: PCI-MSI-X enabled: IRQ 463
mpt3sas0-msix17: PCI-MSI-X enabled: IRQ 464
mpt3sas0-msix18: PCI-MSI-X enabled: IRQ 465
mpt3sas0-msix19: PCI-MSI-X enabled: IRQ 466
mpt3sas0-msix20: PCI-MSI-X enabled: IRQ 467
mpt3sas0-msix21: PCI-MSI-X enabled: IRQ 468
mpt3sas0-msix22: PCI-MSI-X enabled: IRQ 469
mpt3sas0-msix23: PCI-MSI-X enabled: IRQ 470
mpt3sas0-msix24: PCI-MSI-X enabled: IRQ 471
mpt3sas0-msix25: PCI-MSI-X enabled: IRQ 472
mpt3sas0-msix26: PCI-MSI-X enabled: IRQ 473
mpt3sas0-msix27: PCI-MSI-X enabled: IRQ 474
mpt3sas0-msix28: PCI-MSI-X enabled: IRQ 475
mpt3sas0-msix29: PCI-MSI-X enabled: IRQ 476
mpt3sas0-msix30: PCI-MSI-X enabled: IRQ 477
mpt3sas0-msix31: PCI-MSI-X enabled: IRQ 478
mpt3sas0-msix32: PCI-MSI-X enabled: IRQ 479
mpt3sas0-msix33: PCI-MSI-X enabled: IRQ 480
mpt3sas0-msix34: PCI-MSI-X enabled: IRQ 481
mpt3sas0-msix35: PCI-MSI-X enabled: IRQ 482
mpt3sas0-msix36: PCI-MSI-X enabled: IRQ 483
mpt3sas0-msix37: PCI-MSI-X enabled: IRQ 484
mpt3sas0-msix38: PCI-MSI-X enabled: IRQ 485
mpt3sas0-msix39: PCI-MSI-X enabled: IRQ 486mpt3sas_cm0: iomem(0x00000000ac400000), mapped(0x00000000d9f45f61), size(65536)mpt3sas_cm0: ioport(0x0000000000006000), size(256)mpt3sas_cm0: CurrentHostPageSize is 0: Setting default host page size to 4kmpt3sas_cm0: scatter gather:sge_in_main_msg(1),sge_per_chain(7),sge_per_io(128),chains_per_io(19)mpt3sas_cm0: failure at drivers/scsi/mpt3sas/mpt3sas_scsih.c:12348/_scsih_probe()!We were able to bissect the changes (see https://bugs.debian.org/1088159#64) down to
b1e6e80a1b42("xen/swiotlb: add alignment check for dma buffers")#regzbot introduced:
b1e6e80a1b42
#regzbot link: https://bugs.debian.org/1088159reverting the commit resolves the issue.
Does that ring some bells?
In fact we have two more bugs reported with similar symptoms but not yet confirmed they are the same, but I'm referencing them here as well in case we are able to cross-match to root cause:
https://bugs.debian.org/1093371 (
megaraid_sasdidn't work anymore with Xen)and
https://bugs.debian.org/1087807 (Unable to boot: i40e swiotlb buffer is full)
(but again the these are yet not confirmed to have the same root cause).
Thanks in advance,
Regards,
Salvatore
Hi Harshit,
Quoted 8 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 5 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Quoted 6 lines
Quoted 2 lines
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/
Thanks for the pointer, so looking at that thread I suspect the three referenced bugs in Debian are in the end all releated. We have one as well relating to the megasas_sas driver, this one for the mpt3sas driver and one for the i40e driver).
AFAICS, there is not yet a patch which has landed upstream which I can redirect to a affected user to test?
Regards,
Salvatore
Hi Salvatore,
Quoted 18 lines · Salvatore Bonaccorso
Hi Harshit,
Quoted 8 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 5 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Quoted 6 lines
Quoted 2 lines
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/
Quoted 8 lines
Thanks for the pointer, so looking at that thread I suspect the three referenced bugs in Debian are in the end all releated. We have one as well relating to the
megasas_sasdriver, this one for the mpt3sas driver and one for the i40e driver).AFAICS, there is not yet a patch which has landed upstream which I can redirect to a affected user to test?
Konrad pointed me at this thread: https://lore.kernel.org/all/[email protected]/
This has some fixes, but not landed upstream yet.
Thanks,
Harshit
Quoted 2 lines
Regards,
Salvatore
Quoted 26 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 23 lines · Salvatore Bonaccorso
Hi Harshit,
Quoted 8 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 5 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Quoted 6 lines
Quoted 2 lines
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/Thanks for the pointer, so looking at that thread I suspect the three referenced bugs in Debian are in the end all releated. We have one as well relating to the
megasas_sasdriver, this one for the mpt3sas driver and one for the i40e driver).
Quoted 7 lines
Quoted 3 lines
AFAICS, there is not yet a patch which has landed upstream which I can redirect to a affected user to test?
Konrad pointed me at this thread: https://lore.kernel.org/ all/[email protected]/
This has some fixes, but not landed upstream yet.
Patches are upstream now. In case you still experience any problems, please speak up.
Juergen
Greg KH
maintainerQuoted 31 lines · Jürgen Groß
Quoted 30 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 26 lines · Salvatore Bonaccorso
Hi Harshit,
Quoted 8 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 5 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Quoted 6 lines
Quoted 2 lines
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/Thanks for the pointer, so looking at that thread I suspect the three referenced bugs in Debian are in the end all releated. We have one as well relating to the
megasas_sasdriver, this one for the mpt3sas driver and one for the i40e driver).AFAICS, there is not yet a patch which has landed upstream which I can redirect to a affected user to test?
Quoted 7 lines
Quoted 4 lines
Konrad pointed me at this thread: https://lore.kernel.org/
all/[email protected]/This has some fixes, but not landed upstream yet.
Patches are upstream now. In case you still experience any problems, please speak up.
What specific commits should be backported here?
thanks,
greg k-h
Quoted 35 lines · Greg KH
Quoted 34 lines · Jürgen Groß
Quoted 33 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 18 lines · Salvatore Bonaccorso
Hi Harshit,
Quoted 8 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 5 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Quoted 6 lines
Quoted 2 lines
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/Quoted 8 lines
Thanks for the pointer, so looking at that thread I suspect the three referenced bugs in Debian are in the end all releated. We have one as well relating to the
megasas_sasdriver, this one for the mpt3sas driver and one for the i40e driver).AFAICS, there is not yet a patch which has landed upstream which I can redirect to a affected user to test?
Konrad pointed me at this thread: https://lore.kernel.org/
all/[email protected]/
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
This has some fixes, but not landed upstream yet.
Patches are upstream now. In case you still experience any problems, please speak up.
What specific commits should be backported here?
Those are:
e93ec87286bd1fd30b7389e7a387cfb259f297e385fcb57c983f423180ba6ec5d0034242da05cc54
Juergen
Quoted 4 lines
thanks,
greg k-h
Greg KH
maintainerQuoted 41 lines · Jürgen Groß
Quoted 40 lines · Greg KH
Quoted 38 lines · Jürgen Groß
Quoted 26 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 23 lines · Salvatore Bonaccorso
Hi Harshit,
Quoted 8 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 5 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Quoted 6 lines
Quoted 2 lines
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/Thanks for the pointer, so looking at that thread I suspect the three referenced bugs in Debian are in the end all releated. We have one as well relating to the
megasas_sasdriver, this one for the mpt3sas driver and one for the i40e driver).Quoted 8 lines
Quoted 3 lines
AFAICS, there is not yet a patch which has landed upstream which I can redirect to a affected user to test?
Konrad pointed me at this thread: https://lore.kernel.org/
all/[email protected]/This has some fixes, but not landed upstream yet.
Patches are upstream now. In case you still experience any problems, please speak up.
Quoted 6 lines
Quoted 1 line
What specific commits should be backported here?
Those are:
e93ec87286bd1fd30b7389e7a387cfb259f297e385fcb57c983f423180ba6ec5d0034242da05cc54
Ugh, neither of them were marked for stable inclusion, why not? Anyway, I'll go queue them up after this round of kernels is released hopefully tomorrow, but next time, please follow the stable kernel rules if you know you want a patch included in a tree.
thanks,
greg k-h
Hi Juergen,
Quoted 44 lines · Jürgen Groß
Quoted 43 lines · Greg KH
Quoted 41 lines · Jürgen Groß
Quoted 32 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 19 lines · Salvatore Bonaccorso
Hi Harshit,
Quoted 8 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 5 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Quoted 7 lines
Quoted 2 lines
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/Quoted 9 lines
Thanks for the pointer, so looking at that thread I suspect the three referenced bugs in Debian are in the end all releated. We have one as well relating to the
megasas_sasdriver, this one for the mpt3sas driver and one for the i40e driver).AFAICS, there is not yet a patch which has landed upstream which I can
redirect to a affected user to test?Quoted 4 lines
Konrad pointed me at this thread: https://lore.kernel.org/
all/[email protected]/This has some fixes, but not landed upstream yet.
Patches are upstream now. In case you still experience any problems, please
speak up.
Quoted 6 lines
Quoted 1 line
What specific commits should be backported here?
Those are:
e93ec87286bd1fd30b7389e7a387cfb259f297e385fcb57c983f423180ba6ec5d0034242da05cc54
Is there a plan to backport a 5.4 variant of this series. I tried backporting it to 5.4 myself but found a lot of conflicts. It doesn't seem to be compliant with 5.4 swiotlib. If you could guide me as to how you would recommend backporting this for 5.4, whether it is via backporting multiple supporting patches to make the cherry-pick clean or manually resolving conflicts in the patch itself, that'll be highly appreciated.
Quoted 9 lines
Juergen
Quoted 4 lines
thanks,
greg k-h
Thanks,
Harshvardhan
Quoted 38 lines · Greg KH
Quoted 37 lines · Jürgen Groß
Quoted 36 lines · Greg KH
Quoted 28 lines · Jürgen Groß
Quoted 27 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 24 lines · Salvatore Bonaccorso
Hi Harshit,
Quoted 5 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 2 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Quoted 8 lines
Quoted 5 lines
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/Thanks for the pointer, so looking at that thread I suspect the three referenced bugs in Debian are in the end all releated. We have one as well relating to the
megasas_sasdriver, this one for the mpt3sas driver and one for the i40e driver).AFAICS, there is not yet a patch which has landed upstream which I can redirect to a affected user to test?
Quoted 6 lines
Quoted 4 lines
Konrad pointed me at this thread: https://lore.kernel.org/
all/[email protected]/This has some fixes, but not landed upstream yet.
Patches are upstream now. In case you still experience any problems, please speak up.
What specific commits should be backported here?
Quoted 8 lines
Quoted 4 lines
Those are:
e93ec87286bd1fd30b7389e7a387cfb259f297e385fcb57c983f423180ba6ec5d0034242da05cc54Ugh, neither of them were marked for stable inclusion, why not? Anyway, I'll go queue them up after this round of kernels is released hopefully tomorrow, but next time, please follow the stable kernel rules if you know you want a patch included in a tree.
Hi,
I see these patches in 6.12 now and upon manually checking these patches cleanly apply till 6.6 kernel so I guess they will be eventually back ported till there? 6.1 and older kernels have conflicts while cherry picking these commits which makes it harder to verify them as the test machine I have runs on a much older kernel(5.4) unfortunately. If it could be at least be brought back till 5.15, testing this would become much easier.
Thanks,
Harshvardhan
Quoted 4 lines
thanks,
greg k-h
Greg KH
maintainerQuoted 50 lines · Harshvardhan Jha
Quoted 38 lines · Greg KH
Quoted 37 lines · Jürgen Groß
Quoted 36 lines · Greg KH
Quoted 28 lines · Jürgen Groß
Quoted 27 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 24 lines · Salvatore Bonaccorso
Hi Harshit,
Quoted 5 lines · Harshit Mogalapalli
Hi Salvatore,
Quoted 2 lines · Salvatore Bonaccorso
Hi Juergen, hi all,
Quoted 8 lines
Quoted 5 lines
Radoslav Bodó reported in Debian an issue after updating our kernel from 6.1.112 to 6.1.115. His report in full is at:
Note:
We have seen this on 5.4.y kernel: More details here:
https://lore.kernel.org/all/[email protected]/Thanks for the pointer, so looking at that thread I suspect the three referenced bugs in Debian are in the end all releated. We have one as well relating to the
megasas_sasdriver, this one for the mpt3sas driver and one for the i40e driver).AFAICS, there is not yet a patch which has landed upstream which I can redirect to a affected user to test?
Quoted 6 lines
Quoted 4 lines
Konrad pointed me at this thread: https://lore.kernel.org/
all/[email protected]/This has some fixes, but not landed upstream yet.
Patches are upstream now. In case you still experience any problems, please speak up.
What specific commits should be backported here?
Quoted 8 lines
Quoted 4 lines
Those are:
e93ec87286bd1fd30b7389e7a387cfb259f297e385fcb57c983f423180ba6ec5d0034242da05cc54Ugh, neither of them were marked for stable inclusion, why not? Anyway, I'll go queue them up after this round of kernels is released hopefully tomorrow, but next time, please follow the stable kernel rules if you know you want a patch included in a tree.
Quoted 5 lines
Hi,
I see these patches in 6.12 now and upon manually checking these patches cleanly apply till 6.6 kernel so I guess they will be eventually back ported till there?
They are already in the following released kernels:
6.1.129 6.6.79 6.12.16 6.13.4 6.14-rc3
and the first one is in the stable queues for 5.15, 5.10, and 5.4. The second one is not because as you mention:
Quoted 5 lines
6.1 and older kernels have conflicts while cherry
picking these commits which makes it harder to verify them as the test machine I have runs on a much older kernel(5.4) unfortunately. If it could be at least be brought back till 5.15, testing this would become much easier.
The commit does not apply cleanly there. If you need/want it there, please provide a working and tested backport.
thanks,
greg k-h