drm/i915/guc/slpc: Apply min softlimit correctly
authorjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:56:48 +0000 (08:56 +0000)
committerjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:56:48 +0000 (08:56 +0000)
From Vinay Belgaumkar
dcb526d768359095a438336f3aca5e8d98b7d2e6 in linux-6.1.y/6.1.39
3e49de73fb89272dea01ba420c7ccbcf6b96aed7 in mainline linux

sys/dev/pci/drm/i915/gt/uc/intel_guc_slpc.c

index ebd2893..c0cb06f 100644 (file)
@@ -580,7 +580,7 @@ static int slpc_set_softlimits(struct intel_guc_slpc *slpc)
                if (unlikely(ret))
                        return ret;
                slpc_to_gt(slpc)->defaults.min_freq = slpc->min_freq_softlimit;
-       } else if (slpc->min_freq_softlimit != slpc->min_freq) {
+       } else {
                return intel_guc_slpc_set_min_freq(slpc,
                                                   slpc->min_freq_softlimit);
        }