drm/radeon/kms: check modes against max pixel clock
Filter out modes that are higher than the max pixel clock. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:

committed by
Dave Airlie

parent
618c75e491
commit
b20f9bef8d
@@ -866,6 +866,11 @@ bool radeon_combios_get_clock_info(struct drm_device *dev)
|
||||
rdev->clock.default_sclk = sclk;
|
||||
rdev->clock.default_mclk = mclk;
|
||||
|
||||
if (RBIOS32(pll_info + 0x16))
|
||||
rdev->clock.max_pixel_clock = RBIOS32(pll_info + 0x16);
|
||||
else
|
||||
rdev->clock.max_pixel_clock = 35000; /* might need something asic specific */
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user