Skip to content

Commit 584a95b

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 47afc79 commit 584a95b

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
@@ -301,9 +301,14 @@ enum {
301301
AZX_DCAPS_SNOOP_TYPE(ATI))
302302

303303
/* quirks for ATI/AMD HDMI */
304+
#if defined(CONFIG_PCIE_SG2042_HACK)
305+
#define AZX_DCAPS_PRESET_ATI_HDMI \
306+
(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_POSFIX_LPIB)
307+
#else
304308
#define AZX_DCAPS_PRESET_ATI_HDMI \
305309
(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_POSFIX_LPIB|\
306310
AZX_DCAPS_NO_MSI64)
311+
#endif
307312

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

0 commit comments

Comments
 (0)