msm/gpu/a6xx: use the DMA-API for GMU memory allocations
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest2 patches 0 repliesNew
- v52 patches 1 replySuperseded
- v42 patches 2 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 2 patches | 8 replies | Superseded | |
| v2 | 4 patches | 5 replies | Superseded | |
| v1 | 4 patches | 1 reply | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: display: msm: Convert GMU bindings to YAMLDocumentation/ Documentation/ | +123 | 0 replies | |
| 2/2 | drm/msm/a6xx: Use the DMA API for GMU memory objectsdrivers/ drivers/ | +14 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Michael J. Ruhl | Sam Ravnborg | Rob Herring |
|---|---|---|---|
| 1/2 | A-b | R-b | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v6 0/2] msm/gpu/a6xx: use the DMA-API for GMU memory allocations
When CONFIG_INIT_ON_ALLOC_DEFAULT_ON the GMU memory allocator runs afoul of cache coherency issues because it is mapped as write-combine without clearing the cache after it was zeroed.
Rather than duplicate the hacky workaround we use in the GEM allocator for the same reason it turns out that we don't need to have a bespoke memory allocator for the GMU anyway. It uses a flat, global address space and there are only two relatively minor allocations anyway. In short this is essentially what the DMA API was created for so replace a bunch of memory management code with two calls to allocate and free DMA memory and we're fine.
In a previous version of this series I added the dma-ranges property to the device tree file for the GMU and updated the bindings to YAML. Rob correctly pointed out that we didn't need dma-ranges any more but I'm still pushing the YAML conversion because it is good and we'll eventually need it anyway so why not.
v6: Check return value of dma_set_mask_and_coherent per Christoph Hellwig
v5: Refresh on Brian Masney's patch that removes sram from gmu.txt [1]
v4: Use dma_alloc_wc() wrappers per Michael Ruhl.
v3: Fix YAML description per RobH and remove dma-ranges and replace it with the correct DMA mask in the GMU device. Convert the iova type to a dma_attr_t to make it 32 bit friendly.
v2: Fix the example bindings for dma-ranges - the third item is the size Pass false to of_dma_configure so that it fails probe if the DMA region is not set up.
[1] https://patchwork.freedesktop.org/patch/356869/?series=74446&rev=1
Jordan Crouse (2):
dt-bindings: display: msm: Convert GMU bindings to YAML drm/msm/a6xx: Use the DMA API for GMU memory objects
.../devicetree/bindings/display/msm/gmu.txt | 65 --------- .../devicetree/bindings/display/msm/gmu.yaml | 123 ++++++++++++++++++ drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 115 ++-------------- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 6 +- 4 files changed, 137 insertions(+), 172 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/msm/gmu.txt create mode 100644 Documentation/devicetree/bindings/display/msm/gmu.yaml
Signature · 1 line
2.17.1