diff options
author | Prathap Kumar Valsan <[email protected]> | 2023-10-17 11:08:02 -0700 |
---|---|---|
committer | Andi Shyti <[email protected]> | 2023-10-18 06:01:09 +0200 |
commit | af58ee227662d8421eb15cace9c65c2022653c01 (patch) | |
tree | 40b01c6726198de82eef77ac851cfb44e27e0d32 /scripts/gdb/linux/utils.py | |
parent | ff0dac080a8555eb3e95573c5ccaec4ac3ca63de (diff) |
drm/i915: Define and use GuC and CTB TLB invalidation routines
The GuC firmware had defined the interface for Translation Look-Aside
Buffer (TLB) invalidation. We should use this interface when
invalidating the engine and GuC TLBs.
Add additional functionality to intel_gt_invalidate_tlb, invalidating
the GuC TLBs and falling back to GT invalidation when the GuC is
disabled.
The invalidation is done by sending a request directly to the GuC
tlb_lookup that invalidates the table. The invalidation is submitted as
a wait request and is performed in the CT event handler. This means we
cannot perform this TLB invalidation path if the CT is not enabled.
If the request isn't fulfilled in two seconds, this would constitute
an error in the invalidation as that would constitute either a lost
request or a severe GuC overload.
With this new invalidation routine, we can perform GuC-based GGTT
invalidations. GuC-based GGTT invalidation is incompatible with
MMIO invalidation so we should not perform MMIO invalidation when
GuC-based GGTT invalidation is expected.
The additional complexity incurred in this patch will be necessary for
range-based tlb invalidations, which will be platformed in the future.
Signed-off-by: Prathap Kumar Valsan <[email protected]>
Signed-off-by: Bruce Chang <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Signed-off-by: Umesh Nerlige Ramappa <[email protected]>
Signed-off-by: Jonathan Cavitt <[email protected]>
Signed-off-by: Aravind Iddamsetty <[email protected]>
Signed-off-by: Fei Yang <[email protected]>
CC: Andi Shyti <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Acked-by: Tvrtko Ursulin <[email protected]>
Acked-by: Nirmoy Das <[email protected]>
Reviewed-by: John Harrison <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions