Skip to content

Commit 3ca001a

Browse files
aaliuamdalexdeucher
authored andcommitted
drm/amd/display: setup system context for APUs
Scatter/gather is APU feature starting from carrizo. adev->apu_flags is not used for all APUs. adev->flags & AMD_IS_APU can be used for all APUs. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent c5d3c9a commit 3ca001a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
12001200
dc_hardware_init(adev->dm.dc);
12011201

12021202
#if defined(CONFIG_DRM_AMD_DC_DCN)
1203-
if (adev->apu_flags) {
1203+
if ((adev->flags & AMD_IS_APU) && (adev->asic_type >= CHIP_CARRIZO)) {
12041204
struct dc_phy_addr_space_config pa_config;
12051205

12061206
mmhub_read_system_context(adev, &pa_config);

0 commit comments

Comments
 (0)