From ff927e354156254ca56c45d04811beb124cc282a Mon Sep 17 00:00:00 2001 From: jcs Date: Sun, 8 Aug 2021 14:45:16 +0000 Subject: [PATCH] Use the correct address offset on OpRegion 2.1+ devices to be able to find the VBT ok jsg --- sys/dev/pci/drm/i915/display/intel_opregion.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/drm/i915/display/intel_opregion.c b/sys/dev/pci/drm/i915/display/intel_opregion.c index db646096392..867491b7fd5 100644 --- a/sys/dev/pci/drm/i915/display/intel_opregion.c +++ b/sys/dev/pci/drm/i915/display/intel_opregion.c @@ -956,9 +956,8 @@ int intel_opregion_setup(struct drm_i915_private *dev_priv) opregion->rvda = memremap(rvda, opregion->asle->rvds, MEMREMAP_WB); #else - if (bus_space_map(dev_priv->bst, opregion->asle->rvda, - opregion->asle->rvds, BUS_SPACE_MAP_LINEAR, - &dev_priv->opregion_rvda_ioh)) + if (bus_space_map(dev_priv->bst, rvda, opregion->asle->rvds, + BUS_SPACE_MAP_LINEAR, &dev_priv->opregion_rvda_ioh)) return -ENOMEM; opregion->rvda = bus_space_vaddr(dev_priv->bst, dev_priv->opregion_rvda_ioh); -- 2.20.1