From: jcs Date: Sun, 8 Aug 2021 14:45:16 +0000 (+0000) Subject: Use the correct address offset on OpRegion 2.1+ devices to be able X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ff927e354156254ca56c45d04811beb124cc282a;p=openbsd Use the correct address offset on OpRegion 2.1+ devices to be able to find the VBT ok jsg --- 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);