gpu/radeon: Set flag to indicate broken 64-bit MSI
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 3 Oct 2014 05:18:59 +0000 (15:18 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:57:33 +0000 (15:57 -0800)
commit286d4909c35084ec2dedf86391b3a3abb1e1e04c
treed0b98c778c8cc1aa66181edc576cd8d9687e65c5
parent5f3972a25bb63af3c3d542af52889b96de9422c0
gpu/radeon: Set flag to indicate broken 64-bit MSI

commit 91ed6fd2c383bb8f02d66e98b4a4d2f7207249dc upstream.

Some radeon ASICs don't support all 64 address bits of MSIs despite
advertising support for 64-bit MSIs in their configuration space.

This breaks on systems such as IBM POWER7/8, where 64-bit MSIs can
be assigned with some of the high address bits set.

This makes use of the newly introduced "no_64bit_msi" flag in structure
pci_dev to allow the MSI allocation code to fallback to 32-bit MSIs
on those adapters.

Adding Alex's review tag. Patch to the driver is identical to the
reviewed one, I dropped the arch/powerpc hunk rewrote the subject
and cset comment.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_irq_kms.c