drm/i915: Set rawclk earlier during mmio probe
Older platforms use rawclk to derive the CS clock. rawclk is being
determined during intel_device_info_init(), and so that needs to be
pushed slightly earlier.
Fixes: f170523a7b
("drm/i915/gt: Consolidate the CS timestamp clocks")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210104115145.24460-2-chris@chris-wilson.co.uk
This commit is contained in:
parent
6895649bf1
commit
c864e9abaf
|
@ -410,6 +410,7 @@ static int i915_driver_mmio_probe(struct drm_i915_private *dev_priv)
|
||||||
|
|
||||||
/* Try to make sure MCHBAR is enabled before poking at it */
|
/* Try to make sure MCHBAR is enabled before poking at it */
|
||||||
intel_setup_mchbar(dev_priv);
|
intel_setup_mchbar(dev_priv);
|
||||||
|
intel_device_info_runtime_init(dev_priv);
|
||||||
|
|
||||||
ret = intel_gt_init_mmio(&dev_priv->gt);
|
ret = intel_gt_init_mmio(&dev_priv->gt);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -516,8 +517,6 @@ static int i915_driver_hw_probe(struct drm_i915_private *dev_priv)
|
||||||
if (i915_inject_probe_failure(dev_priv))
|
if (i915_inject_probe_failure(dev_priv))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
intel_device_info_runtime_init(dev_priv);
|
|
||||||
|
|
||||||
if (HAS_PPGTT(dev_priv)) {
|
if (HAS_PPGTT(dev_priv)) {
|
||||||
if (intel_vgpu_active(dev_priv) &&
|
if (intel_vgpu_active(dev_priv) &&
|
||||||
!intel_vgpu_has_full_ppgtt(dev_priv)) {
|
!intel_vgpu_has_full_ppgtt(dev_priv)) {
|
||||||
|
|
Loading…
Reference in New Issue