mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
drm/radeon/kms: Move radeon_clocks_init() call back after getting VRAM info.
It may indirectly call radeon_set_clock_gating() which relies on the VRAM info. Signed-off-by: Michel Dänzer <daenzer@vmware.com> Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
parent
fb1fbf8e09
commit
95a8f1bf4f
@ -616,13 +616,13 @@ int radeon_device_init(struct radeon_device *rdev,
|
|||||||
radeon_combios_asic_init(rdev->ddev);
|
radeon_combios_asic_init(rdev->ddev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Get vram informations */
|
||||||
|
radeon_vram_info(rdev);
|
||||||
/* Initialize clocks */
|
/* Initialize clocks */
|
||||||
r = radeon_clocks_init(rdev);
|
r = radeon_clocks_init(rdev);
|
||||||
if (r) {
|
if (r) {
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
/* Get vram informations */
|
|
||||||
radeon_vram_info(rdev);
|
|
||||||
|
|
||||||
/* Initialize memory controller (also test AGP) */
|
/* Initialize memory controller (also test AGP) */
|
||||||
r = radeon_mc_init(rdev);
|
r = radeon_mc_init(rdev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user