drm/i915/gt: Move wal_get_fw_for_rmw()
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 30 Jun 2023 20:35:03 +0000 (13:35 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 3 Jul 2023 18:29:04 +0000 (11:29 -0700)
commitf567947b9c084d5584f23e0e9e15bc6bb41d7c5b
treeb14ef9c536e8917b65cf92eea7bd4992ad5e125e
parent36dd2a6e5003a215a1d45e41589164dabae0ec5a
drm/i915/gt: Move wal_get_fw_for_rmw()

Move helper function to get all the forcewakes required by the wa list
to the top, so it can be re-used by other functions.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230630203509.1635216-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/gt/intel_workarounds.c