drm/i915: Add i915 to i915_inject_probe_failure
With i915 added to i915_inject_probe_failure we can use dedicated printk when injecting artificial load failure. Also make this function look like other i915 functions that return error code and make it more flexible to return any provided error code instead of previously assumed -ENODEV. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190802184055.31988-2-michal.wajdeczko@intel.com
Этот коммит содержится в:

коммит произвёл
Chris Wilson

родитель
cd2a4eaf8c
Коммит
50d84418f5
@@ -177,7 +177,7 @@ int intel_wopcm_init(struct intel_wopcm *wopcm)
|
||||
|
||||
GEM_BUG_ON(!wopcm->size);
|
||||
|
||||
if (i915_inject_probe_failure())
|
||||
if (i915_inject_probe_failure(i915))
|
||||
return -E2BIG;
|
||||
|
||||
if (guc_fw_size >= wopcm->size) {
|
||||
|
Ссылка в новой задаче
Block a user