mirror of
https://github.com/torvalds/linux.git
synced 2026-10-30 14:06:03 +01:00
drm/amdgpu/ih7.0: Enable retry CAM on Navi 4 dGPUs
The retry CAM can filter interrupts which occur repeatedly, such as page fault interrupts when retry faults are enabled. This makes processing those interrupts much more efficient, because the CPU won't have to deal with processing the same interrupt repeatedly. Also change the doorbell range to actually enable the doorbell for the retry CAM. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
0347d728f4
commit
f568cf5c2d
|
|
@ -395,7 +395,8 @@ static int ih_v7_0_irq_init(struct amdgpu_device *adev)
|
|||
|
||||
pci_set_master(adev->pdev);
|
||||
|
||||
if (amdgpu_ip_version(adev, OSSSYS_HWIP, 0) == IP_VERSION(7, 1, 0)) {
|
||||
if (!(adev->flags & AMD_IS_APU) ||
|
||||
amdgpu_ip_version(adev, OSSSYS_HWIP, 0) == IP_VERSION(7, 1, 0)) {
|
||||
/* Allocate the doorbell for IH Retry CAM */
|
||||
adev->irq.retry_cam_doorbell_index = (adev->doorbell_index.ih + 2) << 1;
|
||||
WREG32_SOC15(OSSSYS, 0, regIH_DOORBELL_RETRY_CAM,
|
||||
|
|
|
|||
|
|
@ -300,7 +300,7 @@ static void nbif_v6_3_1_ih_doorbell_range(struct amdgpu_device *adev,
|
|||
ih_doorbell_range = REG_SET_FIELD(ih_doorbell_range,
|
||||
GDC_S2A0_S2A_DOORBELL_ENTRY_1_CTRL,
|
||||
S2A_DOORBELL_PORT1_RANGE_SIZE,
|
||||
2);
|
||||
8);
|
||||
ih_doorbell_range = REG_SET_FIELD(ih_doorbell_range,
|
||||
GDC_S2A0_S2A_DOORBELL_ENTRY_1_CTRL,
|
||||
S2A_DOORBELL_PORT1_AWADDR_31_28_VALUE,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user