mbox series

[v2,0/6] drm/i915/bios: Refactor ROM access

Message ID 20240923152453.11230-1-ville.syrjala@linux.intel.com (mailing list archive)
Headers show
Series drm/i915/bios: Refactor ROM access | expand

Message

Ville Syrjälä Sept. 23, 2024, 3:24 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Unify the behaviour of the PCI ROM vs. SPI flash VBT
read codepaths, and relocate out the low level nuts details
from intel_bios.c into a new soc/intel_rom.c file.

v2: Sort out the drm_dbg() vs. drm_dbg_kms() mess
    Include terminating '\0' in vbt_signature[]
    Drop an unneccesry cast

Ville Syrjälä (6):
  drm/i915/bios: Use drm_dbg_kms() consistently
  drm/i915/bios: Add some size checks to SPI VBT read
  drm/i915/bios: Round PCI ROM VBT allocation to multiple of 4
  drm/i915/bios: Extract intel_spi_read16()
  drm/i915/bios: Extract vbt_signature[]
  drm/i915/bios: Extract soc/intel_rom.c

 drivers/gpu/drm/i915/Makefile                 |   3 +-
 drivers/gpu/drm/i915/display/intel_bios.c     | 157 +++++------------
 drivers/gpu/drm/i915/soc/intel_rom.c          | 160 ++++++++++++++++++
 drivers/gpu/drm/i915/soc/intel_rom.h          |  25 +++
 drivers/gpu/drm/xe/Makefile                   |   3 +-
 .../xe/compat-i915-headers/soc/intel_rom.h    |   6 +
 6 files changed, 239 insertions(+), 115 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/soc/intel_rom.c
 create mode 100644 drivers/gpu/drm/i915/soc/intel_rom.h
 create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/soc/intel_rom.h