]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dg1: Read OPROM via SPI controller
authorClint Taylor <clinton.a.taylor@intel.com>
Thu, 16 Dec 2021 06:26:45 +0000 (22:26 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 16 Dec 2021 16:39:06 +0000 (08:39 -0800)
commite1cd683edb71eb9f6cfc7f2d048be110ce0243d1
treee70c6e808840e9c834973f7e1c7879614dc541e0
parent765e460df0bdc97ecfc5e2b9880ccb105fcde9dd
drm/i915/dg1: Read OPROM via SPI controller

Read OPROM SPI through MMIO and find VBT entry since we can't use
OpRegion and PCI mapping may not work on some systems due to most BIOSes
not leaving the Option ROM mapped.

v2: Remove message with allocation failure

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211216062645.3477854-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_bios.c
drivers/gpu/drm/i915/i915_reg.h