]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/radeon: Make MSI address limit based on the device DMA limit
authorVivian Wang <wangruikang@iscas.ac.cn>
Thu, 29 Jan 2026 01:56:08 +0000 (09:56 +0800)
committerThomas Gleixner <tglx@kernel.org>
Sat, 31 Jan 2026 00:11:48 +0000 (01:11 +0100)
commit617562bbe12df796fc21df5fbf262eadf083a90f
treeb6f0c8e386dabe7c1fdbd7f234f7d5dbebeaaab6
parent52f0d862f595a2fa18ef44532619a080c24fe4cb
drm/radeon: Make MSI address limit based on the device DMA limit

The radeon driver restricts the MSI message address for devices older than
the BONAIR generation to 32-bit MSI addresses due to the former
restrictions of the PCI/MSI code which only allowed either 32-bit or full
64-bit address range.

This does not work on platforms which have a MSI doorbell address above the
32-bit boundary but do not support the full 64 bit address range.

The PCI/MSI core converted this binary decision to a DMA_BIT_MASK() based
decision, which allows to describe the device limitations precisely.

Convert the driver to provide the exact DMA address limitations to the
PCI/MSI core. That allows devices which do not support the full 64-bit
address space to work on platforms which have a MSI doorbell address above
the 32-bit limit as long as it is within the hardware's addressable range.

[ tglx: Massage changelog ]

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patch.msgid.link/20260129-pci-msi-addr-mask-v4-3-70da998f2750@iscas.ac.cn
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_irq_kms.c