diff options
author | Daniele Ceraolo Spurio <[email protected]> | 2024-08-28 14:51:54 -0700 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2024-09-03 10:36:38 -0400 |
commit | 529bf8d1118bbaa1aa835563a22b0b5c64ca9d68 (patch) | |
tree | a4e6ba742530f464ec8e6a226cbd61ff980c36c4 /rust/helpers.c | |
parent | 431c1646e1f86b949fa3685efc50b660a364c2b6 (diff) |
drm/xe/gsc: Do not attempt to load the GSC multiple times
The GSC HW is only reset by driver FLR or D3cold entry. We don't support
the former at runtime, while the latter is only supported on DGFX, for
which we don't support GSC. Therefore, if GSC failed to load previously
there is no need to try again because the HW is stuck in the error state.
An assert has been added so that if we ever add DGFX support we'll know
we need to handle the D3 case.
v2: use "< 0" instead of "!= 0" in the FW state error check (Julia).
Fixes: dd0e89e5edc2 ("drm/xe/gsc: GSC FW load")
Signed-off-by: Daniele Ceraolo Spurio <[email protected]>
Cc: John Harrison <[email protected]>
Cc: Alan Previn <[email protected]>
Cc: <[email protected]> # v6.8+
Reviewed-by: Julia Filipchuk <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 2160f6f6e3cf6893a83357c3b82ff8589bdc0f08)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions