Skip to content
Commit 4e85c324 authored by Riana Tauro's avatar Riana Tauro Committed by Greg Kroah-Hartman
Browse files

drm/xe: check pcode init status only on root gt of root tile

[ Upstream commit 933fd5ff

 ]

The root tile indicates the pcode initialization is complete
when all tiles have completed their initialization.
So the mailbox can be polled only on the root tile.
Check pcode init status only on root tile and move it to
device probe early as root tile is initialized there.
Also make similar changes in resume paths.

v2: add lock/unlocked version of pcode_mailbox_rw
    to allow pcode init to be called in device
    early probe (Rodrigo)

v3: add code description about using root tile
    change function names to xe_pcode_probe_early
    and xe_pcode_init (Rodrigo)

Signed-off-by: default avatarRiana Tauro <riana.tauro@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240410085005.1126343-2-riana.tauro@intel.com
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Stable-dep-of: 77b79df0

 ("drm/xe: Change pcode timeout to 50msec while polling again")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 49299055
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment