Files
linux/drivers/gpu/drm
Juston Li 6127b3bcd3 drm/i915/pxp: don't start pxp without mei_pxp bind
pxp will not start correctly until after mei_pxp bind completes and
intel_pxp_init_hw() is called.
Wait for the bind to complete before proceeding with startup.

This fixes a race condition during bootup where we observed a small
window for pxp commands to be sent, starting pxp before mei_pxp bind
completed.

Changes since v2:
- wait for pxp_component to bind instead of returning -EAGAIN (Daniele)

Changes since v1:
- check pxp_component instead of pxp_component_added (Daniele)
- pxp_component needs tee_mutex (Daniele)
- return -EAGAIN so caller knows to retry (Daniele)

Signed-off-by: Juston Li <justonli@chromium.org>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220818174205.2412730-1-justonli@chromium.org
2022-08-25 15:58:09 -07:00
..
2022-04-18 20:46:55 +01:00
2022-02-07 16:35:35 -08:00
2021-08-10 20:14:01 +02:00
2022-04-07 11:31:52 +02:00
2022-02-07 16:35:35 -08:00
2022-04-08 13:38:07 +02:00
2021-08-10 20:14:01 +02:00
2021-08-02 10:19:43 +02:00
2022-03-16 09:36:13 +01:00
2021-08-02 10:19:43 +02:00
2022-02-07 16:35:35 -08:00
2022-04-12 09:27:20 +03:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2022-04-07 12:53:53 +02:00
2021-11-30 09:41:28 +01:00
2021-08-02 10:19:43 +02:00
2021-10-01 15:55:47 +02:00
2021-11-30 09:41:28 +01:00
2021-05-17 21:19:48 +02:00
2022-02-07 16:35:35 -08:00
2021-08-19 09:02:55 +09:00
2021-08-02 10:19:43 +02:00
2022-04-12 09:27:20 +03:00
2021-08-02 10:19:43 +02:00