drm/xe: Make struct xe_ggtt private.
Get series with b4
b4 am [email protected]Versions newest first
- v4 Latest6 patches 4 repliesIn review
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/xe: Use xe_ggtt_map_bo_unlocked for resumedrivers/ drivers/ drivers/ | +18 | 1 reply | |
| 2/6 | drm/xe: Add xe_ggtt_might_lockdrivers/ drivers/ drivers/ | +15 | 0 replies | |
| 3/6 | drm/xe: Add xe_ggtt_allocdrivers/ drivers/ drivers/ | +19 | 2 replies | |
| 4/6 | drm/xe: Convert xe_fb_pin to use a callback for insertion into GGTTdrivers/ drivers/ drivers/ +1 more | +107 | 0 replies | |
| 5/6 | drm/xe/display: Dont poke into GGTT internals to fill a DPTdrivers/ drivers/ drivers/ +1 more | +39 | 1 reply | |
| 6/6 | drm/xe: Move struct xe_ggtt to xe_ggtt.cdrivers/ drivers/ | +49 | 0 replies |
Reviews trailers per patch
4 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Matthew Brost | Lucas De Marchi |
|---|---|---|
| 1/6 | R-b | R-b |
| 2/6 | R-b | |
| 3/6 | R-b | R-b |
| 4/6 | ||
| 5/6 | ||
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/6] drm/xe: Make struct xe_ggtt private.
Sent as a separate series.
I have merged the patches to make pt_ops and ggtt private, and reworked xe_fb_pin.c
xe_fb_pin.c had the problem that some parts belong there, while others belong to xe_ggtt, I'm hoping that with the callback function to populate the GGTT node, I've fixed the layering violation that would have to happen otherwise.
I've solved it by creating a xe_ggtt_node_insert_transform() function that calls back into xe_fb_pin.c to populate a given xe_ggtt_node. This way xe_fb_pin can still write a rotated GGTT, while outside the scope of this function the details are hidden.
Writing DPT requires the same encoding as GGTT, but since it's a normal bo it only needs access to the GGTT encoding function. With the insert transformation function being the only way to write to GGTT, it should be safe to export the encoding only.
The display quirks stay in xe_fb_pin.c, while the details of GGTT stay in xe_ggtt.c now!
Maarten Lankhorst (6):
drm/xe: Use xe_ggtt_map_bo_unlocked for resume
drm/xe: Add xe_ggtt_might_lock
drm/xe: Add xe_ggtt_alloc
drm/xe: Convert xe_fb_pin to use a callback for insertion into GGTT drm/xe/display: Dont poke into GGTT internals to fill a DPT drm/xe: Move struct xe_ggtt to xe_ggtt.c
drivers/gpu/drm/xe/display/xe_fb_pin.c | 146 +++++++-------- drivers/gpu/drm/xe/display/xe_plane_initial.c | 6 +- drivers/gpu/drm/xe/xe_bo.c | 2 +- drivers/gpu/drm/xe/xe_bo_evict.c | 9 +- drivers/gpu/drm/xe/xe_ggtt.c | 171 ++++++++++++++++-- drivers/gpu/drm/xe/xe_ggtt.h | 17 +- drivers/gpu/drm/xe/xe_ggtt_types.h | 53 +----- drivers/gpu/drm/xe/xe_tile.c | 4 +- 8 files changed, 245 insertions(+), 163 deletions(-)
Signature · 1 line
2.45.2