diff options
| author | Marc Zyngier <[email protected]> | 2025-06-03 14:18:01 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-06-04 09:19:25 +0000 |
| commit | 9cc82d99b13c1ad04e3dff9182b7953a8dba10b6 (patch) | |
| tree | d8f93912b5718e42377e323363cbe1794a7a0f8c /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | Merge tag 'nfs-for-6.16-1' of git://git.linux-nfs.org/projects/anna/linux-nfs (diff) | |
| download | kernel-9cc82d99b13c1ad04e3dff9182b7953a8dba10b6.tar.gz kernel-9cc82d99b13c1ad04e3dff9182b7953a8dba10b6.zip | |
PCI/MSI: Size device MSI domain with the maximum number of vectors
Zenghui reports that since 1396e89e09f0 ("genirq/msi: Move prepare() call
to per-device allocation"), his Multi-MSI capable device isn't working
anymore.
This is a consequence of 15c72f824b32 ("PCI/MSI: Add support for per device
MSI[X] domains"), which always creates a MSI domain of size 1, even in the
presence of Multi-MSI.
While this was somehow working until then, moving the .prepare() call ends
up sizing the ITS table with a tiny value for this device, and making the
endpoint driver unhappy.
Instead, always create the domain and call the .prepare() helper with the
maximum expected size.
Fixes: 1396e89e09f0 ("genirq/msi: Move prepare() call to per-device allocation")
Fixes: 15c72f824b32 ("PCI/MSI: Add support for per device MSI[X] domains")
Reported-by: Zenghui Yu <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Zenghui Yu <[email protected]>
Reviewed-by: Lorenzo Pieralisi <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Closes: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions
