projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
818fed4
)
drm/i915/guc: Skip cleaning up the doorbells on error-before-allocate
author
Chris Wilson
<
[email protected]
>
Thu, 12 Jul 2018 10:58:30 +0000
(11:58 +0100)
committer
Chris Wilson
<
[email protected]
>
Thu, 12 Jul 2018 13:15:39 +0000
(14:15 +0100)
If we fail the module load, we may try and cleanup before we even
allocate the GuC clients. KISS in order to try and re-enable
drv_module_reload for BAT.
Testcase: igt/drv_module_reload/basic-reload-inject
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Michał Winiarski <
[email protected]
>
Cc: Michal Wajdeczko <
[email protected]
>
Reviewed-by: Michał Winiarski <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/intel_guc_submission.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_guc_submission.c
b/drivers/gpu/drm/i915/intel_guc_submission.c
index 3952656f4c9a3322099d338163b2a21596777636..cd51be8ff0257ea49ad795777dc185b03413c84a 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_guc_submission.c
+++ b/
drivers/gpu/drm/i915/intel_guc_submission.c
@@
-910,8
+910,12
@@
static void guc_clients_doorbell_fini(struct intel_guc *guc)
__update_doorbell_desc(guc->preempt_client,
GUC_DOORBELL_INVALID);
}
- __destroy_doorbell(guc->execbuf_client);
- __update_doorbell_desc(guc->execbuf_client, GUC_DOORBELL_INVALID);
+
+ if (guc->execbuf_client) {
+ __destroy_doorbell(guc->execbuf_client);
+ __update_doorbell_desc(guc->execbuf_client,
+ GUC_DOORBELL_INVALID);
+ }
}
/**