hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/i915/intel_sideband.c
....@@ -555,3 +555,18 @@
555555 return ret ? ret : status;
556556 #undef COND
557557 }
558
+
559
+void intel_pcode_init(struct drm_i915_private *i915)
560
+{
561
+ int ret;
562
+
563
+ if (!IS_DGFX(i915))
564
+ return;
565
+
566
+ ret = skl_pcode_request(i915, DG1_PCODE_STATUS,
567
+ DG1_UNCORE_GET_INIT_STATUS,
568
+ DG1_UNCORE_INIT_STATUS_COMPLETE,
569
+ DG1_UNCORE_INIT_STATUS_COMPLETE, 50);
570
+ if (ret)
571
+ drm_err(&i915->drm, "Pcode did not report uncore initialization completion!\n");
572
+}