aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
diff options
context:
space:
mode:
authorMark Yacoub <[email protected]>2021-03-08 21:36:22 +0000
committerAlex Deucher <[email protected]>2021-03-24 03:03:36 +0000
commitf258907fdd835e1aed6d666b00cdd0f186676b7c (patch)
tree5b684892c6402b920d56b38c4d45c5dcbb6112c3 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
parentdrm/amd/display: remove duplicate include in dcn21 and gpio (diff)
downloadkernel-f258907fdd835e1aed6d666b00cdd0f186676b7c.tar.gz
kernel-f258907fdd835e1aed6d666b00cdd0f186676b7c.zip
drm/amdgpu: Verify bo size can fit framebuffer size on init.
To initialize the framebuffer, call drm_gem_fb_init_with_funcs which verifies that the BO size can fit the FB size by calculating the minimum expected size of each plane. The bug was caught using igt-gpu-tools test: kms_addfb_basic.too-high and kms_addfb_basic.bo-too-small Tested on ChromeOS Zork by turning on the display and running a YT video. === Changes from v1 === 1. Added new line under declarations. 2. Use C style comment. Cc: Alex Deucher <[email protected]> Cc: "Christian König" <[email protected]> Cc: Sean Paul <[email protected]> Signed-off-by: Mark Yacoub <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
0 files changed, 0 insertions, 0 deletions