drm/i915: Don't try to disable host RPS when this was never enabled.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 2 Sep 2022 09:51:25 +0000 (05:51 -0400)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 6 Sep 2022 20:34:40 +0000 (16:34 -0400)
commit68eb42b3f3b30df1a335b3139b21c32187c0efaa
treea0569ef34c849ce349c71fb16d83d5da0cbb320b
parent873fef8833ea794526b7f4179088e565078fe0e8
drm/i915: Don't try to disable host RPS when this was never enabled.

Specially in GT reset case this could be triggered and try
to disable things that had never been enabled. Let's add
some protection here.

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Acked-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220902095126.373036-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/gt/intel_rps.c