drm/xe: Always allow to override firmware
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 1 Feb 2024 22:47:23 +0000 (14:47 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 7 Feb 2024 23:07:31 +0000 (15:07 -0800)
commit45883418969c445cdc901e208e190ed1a5d95956
tree167634a03f6471f6c0226c345642e97d06df5dc8
parentd9890c028d66a9e1ee3cccaa081ab5aedcbfe431
drm/xe: Always allow to override firmware

The current logic for firmware selection is reminiscent from i915 where
there are 2 backends and several platforms support only 1: execlist or
GuC. The xe driver has only the GuC backend and it simply doesn't work
without it. Allow developers to override the firmware path even if there
isn't a firmware entry in the table yet: this allows developers to more
easily test the very first firmware before adding it there.

The justification above is only true for GuC, however those override
paths should really be viewed as developer aid param. Simply make the
same logic for all firmwares and allow the override path to be used
for all of them.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240201224724.551130-2-lucas.demarchi@intel.com
drivers/gpu/drm/xe/xe_uc_fw.c