drm/i915/uc: Don't use -EIO to report missing firmware
authorMichal Wajdeczko <[email protected]>
Wed, 6 Dec 2017 13:53:14 +0000 (13:53 +0000)
committerChris Wilson <[email protected]>
Wed, 6 Dec 2017 14:41:52 +0000 (14:41 +0000)
commit8620eb1dbbf287694ee8e0cd280fadedb1f91012
tree38b4a353850c8c642732e35ef2c4adba2048735f
parenta655aeb34f7cae135a31a8a643314061ca6737e3
drm/i915/uc: Don't use -EIO to report missing firmware

-EIO has special meaning and is used when we want to allow
engine initialization to fail and mark GPU as wedged.

However here at this function we should return error code
that corresponds to upload status only, as any decision how
to handle missing firmware should be done higher level function
(silent fallback to non-GuC mode, fail into wedged mode, or
abort driver load with fatal error).

v2: commit message update (Michal)

Signed-off-by: Michal Wajdeczko <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Sagar Arun Kamble <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_uc_fw.c