mbox series

[v2,0/2] drm/{amdgpu,radeon}: convert bios_hardcoded_edid to drm_edid

Message ID 20240726-amdgpu-edid-bios-v2-0-8a0326654253@weissschuh.net (mailing list archive)
Headers show
Series drm/{amdgpu,radeon}: convert bios_hardcoded_edid to drm_edid | expand

Message

Thomas Weißschuh July 26, 2024, 1:40 p.m. UTC
Instead of manually passing around 'struct edid *' and its size,
use 'struct drm_edid', which encapsulates a validated combination of
both.

While this series introduces new users for drm_edid_raw(),
these can be removed when the drivers get converted to 'struct drm_edid'
completely for which this series provides the foundation.

Only compile-tested.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v2:
- Rebase onto current amdgpu/drm-next and
  recent changes to hardcoded bios handling
- Add patch for drm/radeon
- Link to v1: https://lore.kernel.org/r/20240616-amdgpu-edid-bios-v1-1-2874f212b365@weissschuh.net

---
Thomas Weißschuh (2):
      drm/amdgpu: convert bios_hardcoded_edid to drm_edid
      drm/radeon: convert bios_hardcoded_edid to drm_edid

 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c |  6 +-----
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h       |  4 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c       |  2 +-
 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 17 ++++++-----------
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c         |  2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c         |  2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c          |  2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c          |  2 +-
 drivers/gpu/drm/radeon/radeon_atombios.c       | 17 ++++++-----------
 drivers/gpu/drm/radeon/radeon_combios.c        | 26 +++++---------------------
 drivers/gpu/drm/radeon/radeon_connectors.c     |  4 ++--
 drivers/gpu/drm/radeon/radeon_display.c        |  2 +-
 drivers/gpu/drm/radeon/radeon_mode.h           |  4 ++--
 13 files changed, 30 insertions(+), 60 deletions(-)
---
base-commit: 644e49d582fd53d4d218d27e404043f56f2c286f
change-id: 20240616-amdgpu-edid-bios-a31aa16b0321

Best regards,