]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: re-order lmem init check and wait for initialization to complete
authorRiana Tauro <riana.tauro@intel.com>
Wed, 10 Apr 2024 08:50:05 +0000 (14:20 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 10 Apr 2024 16:32:15 +0000 (12:32 -0400)
commit797b0e9be054b9fd6e6085ddf3d75523f3ad5e2c
tree96efa74d6e396e2dedd5d8acbd2836919534f86e
parent933fd5ffaf87a60a019992d48e3a96b5c3403d9f
drm/xe: re-order lmem init check and wait for initialization to complete

Lmem init check should be done only after pcode initialization
status is complete. Move lmem init check after pcode status
check. Also wait for a short while after pcode status check
to allow completion of the task.

Failing to do so, can lead to aborting the module load
leaving the system unusable. Wait until the lmem initialization
is complete within a timeout (60s) or till the user aborts.

v2: use bool as return type
    re-order the code comment (Rodrigo)
    add comment for deferring probe (Himal)

v3: rebase

Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240410085005.1126343-3-riana.tauro@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_mmio.h