Skip to content

Commit b511f49

Browse files
IcenowyRevySR
authored andcommitted
RISCV64: SG2042: HACK: radeon: force 64-bit msi to fit top intc
Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Han Gao <[email protected]>
1 parent f5c174f commit b511f49

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

drivers/gpu/drm/radeon/radeon_irq_kms.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,12 @@ static bool radeon_msi_ok(struct radeon_device *rdev)
251251
* of address for "64-bit" MSIs which breaks on some platforms, notably
252252
* IBM POWER servers, so we limit them
253253
*/
254+
#if !defined(CONFIG_PCIE_SG2042_HACK)
254255
if (rdev->family < CHIP_BONAIRE) {
255256
dev_info(rdev->dev, "radeon: MSI limited to 32-bit\n");
256257
rdev->pdev->no_64bit_msi = 1;
257258
}
259+
#endif
258260

259261
/* force MSI on */
260262
if (radeon_msi == 1)

sound/pci/hda/hda_intel.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,14 @@ enum {
302302
AZX_DCAPS_SNOOP_TYPE(ATI))
303303

304304
/* quirks for ATI/AMD HDMI */
305+
#if defined(CONFIG_PCIE_SG2042_HACK)
306+
#define AZX_DCAPS_PRESET_ATI_HDMI \
307+
(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_POSFIX_LPIB)
308+
#else
305309
#define AZX_DCAPS_PRESET_ATI_HDMI \
306310
(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_POSFIX_LPIB|\
307311
AZX_DCAPS_NO_MSI64)
312+
#endif
308313

309314
/* quirks for ATI HDMI with snoop off */
310315
#define AZX_DCAPS_PRESET_ATI_HDMI_NS \

0 commit comments

Comments
 (0)