[PATCH] drm/v3d: clean caches at the end of render jobs on request from user space

2019-09-12 Thread Iago Toral Quiroga
lead to GPU resets during Piglit and CTS workloads. Signed-off-by: Iago Toral Quiroga --- drivers/gpu/drm/v3d/v3d_gem.c | 51 +-- include/uapi/drm/v3d_drm.h| 7 ++--- 2 files changed, 47 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/v3d/v3d_gem.c b

[PATCH v2] drm/v3d: clean caches at the end of render jobs on request from user space

2019-09-18 Thread Iago Toral Quiroga
lead to GPU resets during Piglit and CTS workloads. v2: if v3d_job_init() fails we need to kfree() the job instead of v3d_job_put() it (Eric Anholt). Signed-off-by: Iago Toral Quiroga Reviewed-by: Eric Anholt Link: https://patchwork.freedesktop.org/patch/msgid/20190912083516.13797-1-ito

[PATCH] drm/v3d: don't leak bin job if v3d_job_init fails.

2019-09-16 Thread Iago Toral Quiroga
If the initialization of the job fails we need to kfree() it before returning. Signed-off-by: Iago Toral Quiroga --- drivers/gpu/drm/v3d/v3d_gem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/v3d/v3d_gem.c b/drivers/gpu/drm/v3d/v3d_gem.c index d46d91346d09..ed68731404a7

[PATCH v3] drm/v3d: clean caches at the end of render jobs on request from user space

2019-09-19 Thread Iago Toral Quiroga
in the kernel. Signed-off-by: Iago Toral Quiroga Reviewed-by: Eric Anholt Link: https://patchwork.freedesktop.org/patch/msgid/20190912083516.13797-1-ito...@igalia.com --- drivers/gpu/drm/v3d/v3d_drv.c | 3 ++ drivers/gpu/drm/v3d/v3d_gem.c | 54 +-- include/uapi

[PATCH] drm/v3d: fix wait for TMU write combiner flush

2021-09-13 Thread Iago Toral Quiroga
The hardware sets the TMUWCF bit back to 0 when the TMU write combiner flush completes so we should be checking for that instead of the L2TFLS bit. Fixes spurious Vulkan CTS failures in: dEQP-VK.binding_model.descriptorset_random.* --- drivers/gpu/drm/v3d/v3d_gem.c | 2 +- 1 file changed, 1

[PATCH v2] drm/v3d: fix wait for TMU write combiner flush

2021-09-15 Thread Iago Toral Quiroga
failures in: dEQP-VK.binding_model.descriptorset_random.* Fixes: d223f98f02099 ("drm/v3d: Add support for compute shader dispatch") Signed-off-by: Iago Toral Quiroga Reviewed-by: Melissa Wen --- drivers/gpu/drm/v3d/v3d_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH v3 2/4] drm/v3d: fix up register addresses for V3D 7.x

2023-10-31 Thread Iago Toral Quiroga
This patch updates a number of register addresses that have been changed in Raspberry Pi 5 (V3D 7.1) and updates the code to use the corresponding registers and addresses based on the actual V3D version. Signed-off-by: Iago Toral Quiroga Reviewed-by: Maíra Canal --- drivers/gpu/drm/v3d

[PATCH v3 1/4] drm/v3d: update UAPI to match user-space for V3D 7.x

2023-10-31 Thread Iago Toral Quiroga
V3D 7.x takes a new parameter to configure TFU jobs that needs to be provided by user space. Signed-off-by: Iago Toral Quiroga Reviewed-by: Maíra Canal --- v2: added s-o-b, fixed typo in commit message (Maíra Canal) include/uapi/drm/v3d_drm.h | 5 + 1 file changed, 5 insertions(+) diff

[PATCH v3 0/4] V3D module changes for Pi5

2023-10-31 Thread Iago Toral Quiroga
entries in patches to cover letter (Stefan Wahren) - Added DT maintainers (Stefan Wahren, Krzysztof Kozlowski) Iago Toral Quiroga (4): drm/v3d: update UAPI to match user-space for V3D 7.x drm/v3d: fix up register addresses for V3D 7.x dt-bindings: gpu: v3d: Add BCM2712's compatible drm/v3d

[PATCH v3 4/4] drm/v3d: add brcm,2712-v3d as a compatible V3D device

2023-10-31 Thread Iago Toral Quiroga
This is required to get the V3D module to load with Raspberry Pi 5. Signed-off-by: Iago Toral Quiroga Reviewed-by: Stefan Wahren Reviewed-by: Maíra Canal --- drivers/gpu/drm/v3d/v3d_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/v3d/v3d_drv.c b/drivers/gpu/drm/v3d

[PATCH v3 3/4] dt-bindings: gpu: v3d: Add BCM2712's compatible

2023-10-31 Thread Iago Toral Quiroga
BCM2712, Raspberry Pi 5's SoC, contains a V3D core. So add its specific compatible to the bindings. Signed-off-by: Iago Toral Quiroga Reviewed-by: Maíra Canal --- Documentation/devicetree/bindings/gpu/brcm,bcm-v3d.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v2 1/4] drm/v3d: update UAPI to match user-space for V3D 7.x

2023-10-30 Thread Iago Toral Quiroga
V3D 7.x takes a new parameter to configure TFU jobs that needs to be provided by user space. v2: added s-o-b, fixed typo in commit message (Maíra Canal) Signed-off-by: Iago Toral Quiroga --- include/uapi/drm/v3d_drm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/drm

[PATCH v2 3/4] dt-bindings: gpu: v3d: Add BCM2712's compatible

2023-10-30 Thread Iago Toral Quiroga
BCM2712, Raspberry Pi 5's SoC, contains a V3D core. So add its specific compatible to the bindings. v2: new, requested by Stefan Wahren. Signed-off-by: Iago Toral Quiroga --- Documentation/devicetree/bindings/gpu/brcm,bcm-v3d.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 2/4] drm/v3d: fix up register addresses for V3D 7.x

2023-10-30 Thread Iago Toral Quiroga
as argument and returns appropriate values instead of two different definitions for post-v71 and pre-v71 hardware when possible. (Maíra Canal) - fixed style warnings from checkpatch.pl. (Maíra Canal) Signed-off-by: Iago Toral Quiroga --- drivers/gpu/drm/v3d/v3d_debugfs.c | 178

[PATCH v2 0/4] V3D module changes for Pi5

2023-10-30 Thread Iago Toral Quiroga
/-/merge_requests/25450 Iago Toral Quiroga (4): drm/v3d: update UAPI to match user-space for V3D 7.x drm/v3d: fix up register addresses for V3D 7.x dt-bindings: gpu: v3d: Add BCM2712's compatible drm/v3d: add brcm,2712-v3d as a compatible V3D device .../devicetree/bindings/gpu/brcm,bcm-v3d.yaml

[PATCH v2 4/4] drm/v3d: add brcm,2712-v3d as a compatible V3D device

2023-10-30 Thread Iago Toral Quiroga
This is required to get the V3D module to load with Raspberry Pi 5. v2: - added s-o-b and commit message. (Maíra) - keep order of compatible strings. (Stefan Wahren) Signed-off-by: Iago Toral Quiroga --- drivers/gpu/drm/v3d/v3d_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 0/3] V3D module changes for Pi5

2023-09-28 Thread Iago Toral Quiroga
/-/merge_requests/25450 Iago Toral Quiroga (3): drm/v3d: fix up register addresses for V3D 7.x drm/v3d: update UAPI to match user-space for V3D 7.x drm/v3d: add brcm,2712-v3d as a compatible V3D device drivers/gpu/drm/v3d/v3d_debugfs.c | 173 +- drivers/gpu/drm/v3d

[PATCH 3/3] drm/v3d: add brcm,2712-v3d as a compatible V3D device

2023-09-28 Thread Iago Toral Quiroga
--- drivers/gpu/drm/v3d/v3d_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/v3d/v3d_drv.c b/drivers/gpu/drm/v3d/v3d_drv.c index ffbbe9d527d3..0ed2e7ba8b33 100644 --- a/drivers/gpu/drm/v3d/v3d_drv.c +++ b/drivers/gpu/drm/v3d/v3d_drv.c @@ -186,6 +186,7 @@ static const

[PATCH 1/3] drm/v3d: fix up register addresses for V3D 7.x

2023-09-28 Thread Iago Toral Quiroga
--- drivers/gpu/drm/v3d/v3d_debugfs.c | 173 +- drivers/gpu/drm/v3d/v3d_gem.c | 3 + drivers/gpu/drm/v3d/v3d_irq.c | 47 drivers/gpu/drm/v3d/v3d_regs.h| 51 - drivers/gpu/drm/v3d/v3d_sched.c | 41 --- 5 files changed, 200

[PATCH 2/3] drm/v3d: update UAPI to match user-space for V3D 7.x

2023-09-28 Thread Iago Toral Quiroga
V3D t.x takes a new parameter to configure TFU jobs that needs to be provided by user space. --- include/uapi/drm/v3d_drm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/drm/v3d_drm.h b/include/uapi/drm/v3d_drm.h index 3dfc0af8756a..1a7d7a689de3 100644 ---