mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 16:11:38 +00:00
drm/radeon/kms: fix possible mis-detection of sideport on rs690/rs740
Check ulBootUpMemoryClock on AMD IGPs. Fix regression noticed by Torsten Kaiser <just.for.lkml@googlemail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ff3f011cd8
commit
5099fa7f23
@ -1029,8 +1029,15 @@ bool radeon_atombios_sideport_present(struct radeon_device *rdev)
|
|||||||
data_offset);
|
data_offset);
|
||||||
switch (crev) {
|
switch (crev) {
|
||||||
case 1:
|
case 1:
|
||||||
if (igp_info->info.ucMemoryType & 0xf0)
|
/* AMD IGPS */
|
||||||
return true;
|
if ((rdev->family == CHIP_RS690) ||
|
||||||
|
(rdev->family == CHIP_RS740)) {
|
||||||
|
if (igp_info->info.ulBootUpMemoryClock)
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
if (igp_info->info.ucMemoryType & 0xf0)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (igp_info->info_2.ucMemoryType & 0x0f)
|
if (igp_info->info_2.ucMemoryType & 0x0f)
|
||||||
|
Loading…
Reference in New Issue
Block a user