summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2025-04-04 17:34:52 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-04-22 15:51:44 +0300
commita918bb4a90d423ced2976a794f2724c362c1f063 (patch)
treec1fa1617049ea18cab6be3488239202dbe8f2edd /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentce2e117bfb95f5b4fe4dc08100c23e3027fb3a01 (diff)
downloadlinux-a918bb4a90d423ced2976a794f2724c362c1f063.tar.xz
drm/amd/display: Fix ACPI edid parsing on some Lenovo systems
[Why] The ACPI EDID in the BIOS of a Lenovo laptop includes 3 blocks, but dm_helpers_probe_acpi_edid() has a start that is 'char'. The 3rd block index starts after 255, so it can't be indexed properly. This leads to problems with the display when the EDID is parsed. [How] Change the variable type to 'short' so that larger values can be indexed. Cc: Renjith Pananchikkal <renjith.pananchikkal@amd.com> Reported-by: Mark Pearson <mpearson@lenovo.com> Suggested-by: David Ober <dober@lenovo.com> Fixes: c6a837088bed ("drm/amd/display: Fetch the EDID from _DDC if available for eDP") Reviewed-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Zaeem Mohamed <zaeem.mohamed@amd.com> Tested-by: Mark Broadworth <mark.broadworth@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions