[PATCH 4/4] drm/amd/amdgpu: Fixes resource conflict issue on BT instance

Vijendar Mukunda Vijendar.Mukunda at amd.com
Fri Feb 16 08:44:06 UTC 2018


From: Akshu Agrawal <akshu.agrawal at amd.com>

The patch uses shared resources to map same register address
space on 2 cpu dais.

Signed-off-by: Akshu Agrawal <akshu.agrawal at amd.com>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
index 1bc463a..598921b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
@@ -398,6 +398,7 @@ static int acp_hw_init(void *handle)
 	i2s_pdata[3].snd_rates = SNDRV_PCM_RATE_8000_96000;
 	i2s_pdata[3].i2s_reg_comp1 = ACP_BT_COMP1_REG_OFFSET;
 	i2s_pdata[3].i2s_reg_comp2 = ACP_BT_COMP2_REG_OFFSET;
+	i2s_pdata[3].shared = true;
 
 	adev->acp.acp_res[0].name = "acp2x_dma";
 	adev->acp.acp_res[0].flags = IORESOURCE_MEM;
-- 
2.7.4



More information about the amd-gfx mailing list