Re: [PATCH 2/2] drm/v3d: Fix Indirect Dispatch configuration for V3D 7.1.6 and later

2024-07-14 Thread Iago Toral
Thanks Maíra, both patches are: Reviewed-by: Iago Toral Quiroga El dom, 14-07-2024 a las 11:49 -0300, Maíra Canal escribió: > `args->cfg[4]` is configured in Indirect Dispatch using the number of > batches. Currently, for all V3D tech versions, `args->cfg[4]` equals > the >

Re: [PATCH 11/12] drm/v3d: Do not use intermediate storage when copying performance query results

2024-07-11 Thread Iago Toral
(i = 0, offset = 0; > +      i < performance_query->nperfmons; > + i++, offset += DRM_V3D_MAX_PERF_COUNTERS) { > + struct v3d_performance_query *q = > + _query->queries[query]; Looks like we could move this before the loop. Oth

Re: [PATCH 00/12] v3d: Perfmon cleanup

2024-07-10 Thread Iago Toral
Thanks for going the extra mile with this :) Patches 1 and 5-8 are: Reviewed-by: Iago Toral Quiroga Iago > Tvrtko Ursulin (12): >   drm/v3d: Prevent out of bounds access in performance query > extensions >   drm/v3d: Prefer get_user for scalar types >   drm/v3d: Add so

Re: [PATCH] drm/v3d: Fix perfmon build error/warning

2024-06-05 Thread Iago Toral
est due hand crafting the array > sizes > in v3d_performance_counters.h, but I did add some build time asserts > to > validate the counts look sensible, so hopefully it is good enough for > a > quick fix. > If we need this to go in ASAP I am fine with this patch as-is, so: Rev

Re: [PATCH 0/6] drm/v3d: Improve Performance Counters handling

2024-05-09 Thread Iago Toral
Hi Maíra, I made a couple of minor comments, with those addressed the series is: Reviewed-by: Iago Toral Quiroga Thanks a lot for this!, Iago El mié, 08-05-2024 a las 11:30 -0300, Maíra Canal escribió: > This series has the intention to address two issues with Performance > Counters &g

Re: [PATCH 6/6] drm/v3d: Deprecate the use of the Performance Counters enum

2024-05-09 Thread Iago Toral
El mié, 08-05-2024 a las 11:30 -0300, Maíra Canal escribió: > The Performance Counters enum used to identify the index of each > performance counter and provide the total number of performance > counters (V3D_PERFCNT_NUM). But, this enum is only valid for V3D 4.2, > not for V3D 7.1. > > As we

Re: [PATCH 5/6] drm/v3d: Use V3D_MAX_COUNTERS instead of V3D_PERFCNT_NUM

2024-05-09 Thread Iago Toral
El mié, 08-05-2024 a las 11:30 -0300, Maíra Canal escribió: > V3D_PERFCNT_NUM represents the maximum number of performance counters > for V3D 4.2, but not for V3D 7.1. This means that, if we use > V3D_PERFCNT_NUM, we might go out-of-bounds on V3D 7.1. > > Therefore, use the number of performance

Re: [PATCH v4 7/8] drm/v3d: Use gemfs/THP in BO creation if available

2024-04-28 Thread Iago Toral
Hi Maíra, a question below: El dom, 28-04-2024 a las 09:40 -0300, Maíra Canal escribió: > Although Big/Super Pages could appear naturally, it would be quite > hard > to have 1MB or 64KB allocated contiguously naturally. Therefore, we > can > force the creation of large pages allocated

Re: [PATCH v3 5/8] drm/v3d: Reduce the alignment of the node allocation

2024-04-22 Thread Iago Toral
Thanks Maíra, this patch is: Reviewed-by: Iago Toral Quiroga Iago El dom, 21-04-2024 a las 18:44 -0300, Maíra Canal escribió: > Currently, we are using an alignment of 128 kB to insert a node, > which > ends up wasting memory as we perform plenty of small BOs allocations > (

Re: [PATCH 0/5] drm/v3d: Enable Super Pages

2024-03-12 Thread Iago Toral
Hi Maíra, El lun, 11-03-2024 a las 07:05 -0300, Maíra Canal escribió: > This series introduces support for super pages in V3D. The V3D MMU > has support > for 1MB pages, called super pages, which is currently not used. > Therefore, > this patchset has the intention to enable super pages in V3D.

Re: [PATCH 3/5] drm/v3d: Introduce gemfs

2024-03-12 Thread Iago Toral
This patch is: Reviewed-by: Iago Toral Quiroga Iago El lun, 11-03-2024 a las 07:06 -0300, Maíra Canal escribió: > Create a separate "tmpfs" kernel mount for V3D. This will allow us to > move away from the shmemfs `shm_mnt` and gives the flexibility to do > things like set ou

Re: [PATCH 1/5] drm/v3d: Fix return if scheduler initialization fails

2024-03-12 Thread Iago Toral
This patch is: Reviewed-by: Iago Toral Quiroga Iago El lun, 11-03-2024 a las 07:05 -0300, Maíra Canal escribió: > If the scheduler initialization fails, GEM initialization must fail > as > well. Therefore, if `v3d_sched_init()` fails, free the DMA memory > allocated and return the

Re: [PATCH 5/5] drm/v3d: Enable super pages

2024-03-12 Thread Iago Toral
El lun, 11-03-2024 a las 07:06 -0300, Maíra Canal escribió: > The V3D MMU also supports 1MB pages, called super pages. In order to > set a 1MB page in the MMU, we need to make sure that page table > entries > for all 4KB pages within a super page must be correctly configured. > > Therefore, if

Re: [PATCH] drm/v3d: Enable V3D to use different PAGE_SIZE

2024-02-19 Thread Iago Toral
El lun, 19-02-2024 a las 10:00 -0300, Maíra Canal escribió: > Hi Iago, > > On 2/19/24 09:56, Iago Toral wrote: > > Hi Maíra, > > > > El mié, 14-02-2024 a las 16:34 -0300, Maíra Canal escribió: > > > Currently, the V3D driver uses PAGE_SHIFT over the assumpt

Re: [PATCH] drm/v3d: Enable V3D to use different PAGE_SIZE

2024-02-19 Thread Iago Toral
Hi Maíra, El mié, 14-02-2024 a las 16:34 -0300, Maíra Canal escribió: > Currently, the V3D driver uses PAGE_SHIFT over the assumption that > PAGE_SHIFT = 12, as the PAGE_SIZE = 4KB. But, the RPi 5 is using > PAGE_SIZE = 16KB, so the MMU PAGE_SHIFT is different than the > system's > PAGE_SHIFT. >

Re: [PATCH] drm/v3d: Free the job and assign it to NULL if initialization fails

2024-01-10 Thread Iago Toral
Ok, thanks for checking, you can add my R-B on the original patch then. Iago El mié, 10-01-2024 a las 07:42 -0300, Maira Canal escribió: > Hi Iago, > > On 1/10/24 03:48, Iago Toral wrote: > > I think this is fine, but I was wondering if it would be simpler > > and >

Re: [PATCH] drm/v3d: Free the job and assign it to NULL if initialization fails

2024-01-09 Thread Iago Toral
I think this is fine, but I was wondering if it would be simpler and easier to just remove the sched cleanup from v3d_job_init and instead always rely on callers to eventually call v3d_job_cleanup for fail paths, where we are already calling v3d_job_cleanup. Iago El mar, 09-01-2024 a las 11:28

Re: [PATCH] drm/v3d: Fix support for register debugging on the RPi 4

2024-01-09 Thread Iago Toral
Thanks Maíra! Reviewed-by: Iago Toral Quiroga El mar, 09-01-2024 a las 08:30 -0300, Maíra Canal escribió: > RPi 4 uses V3D 4.2, which is currently not supported by the register > definition stated at `v3d_core_reg_defs`. We should be able to > support > V3D 4.2, therefore, change

Re: [PATCH v3 10/17] drm/v3d: Detach the CSD job BO setup

2023-11-28 Thread Iago Toral
El mar, 28-11-2023 a las 07:47 -0300, Maira Canal escribió: > Hi Iago, > > On 11/28/23 05:42, Iago Toral wrote: > > El lun, 27-11-2023 a las 15:48 -0300, Maíra Canal escribió: > > > From: Melissa Wen > > > > > > Detach CSD job setup from CSD submission

Re: [PATCH v3 00/17] drm/v3d: Introduce CPU jobs

2023-11-28 Thread Iago Toral
https://gitlab.freedesktop.org/mairacanal/mesa/-/tree/v3dv/v5/cpu-job > > Changelog > = > > v1 -> v2: > https://lore.kernel.org/dri-devel/20230904175019.1172713-1-mca...@igalia.com/ > > * Rebase on top of drm-misc-next. > * Add GPU stats to the CPU queue. >

Re: [PATCH v3 17/17] drm/v3d: Create a CPU job extension for the copy performance query job

2023-11-28 Thread Iago Toral
El lun, 27-11-2023 a las 15:48 -0300, Maíra Canal escribió: > A CPU job is a type of job that performs operations that requires CPU > intervention. A copy performance query job is a job that copy the > complete > or partial result of a query to a buffer. In order to copy the result > of > a

Re: [PATCH v3 16/17] drm/v3d: Create a CPU job extension for the reset performance query job

2023-11-28 Thread Iago Toral
El lun, 27-11-2023 a las 15:48 -0300, Maíra Canal escribió: (...) > diff --git a/include/uapi/drm/v3d_drm.h b/include/uapi/drm/v3d_drm.h > index a3ae1f220291..76a02d2c01e6 100644 > --- a/include/uapi/drm/v3d_drm.h > +++ b/include/uapi/drm/v3d_drm.h > @@ -76,6 +76,7 @@ struct drm_v3d_extension { >  

Re: [PATCH v3 15/17] drm/v3d: Create a CPU job extension to copy timestamp query to a buffer

2023-11-28 Thread Iago Toral
El lun, 27-11-2023 a las 15:48 -0300, Maíra Canal escribió: (...) >  /** > diff --git a/include/uapi/drm/v3d_drm.h b/include/uapi/drm/v3d_drm.h > index 930f8d07f088..a3ae1f220291 100644 > --- a/include/uapi/drm/v3d_drm.h > +++ b/include/uapi/drm/v3d_drm.h > @@ -75,6 +75,7 @@ struct

Re: [PATCH v3 12/17] drm/v3d: Create a CPU job extension for a indirect CSD job

2023-11-28 Thread Iago Toral
El lun, 27-11-2023 a las 15:48 -0300, Maíra Canal escribió: (...) > @@ -860,19 +913,66 @@ v3d_submit_cpu_ioctl(struct drm_device *dev, > void *data, >   > mutex_lock(>sched_lock); > v3d_push_job(_job->base); > + > +   switch (cpu_job->job_type) { > +   case

Re: [PATCH v3 10/17] drm/v3d: Detach the CSD job BO setup

2023-11-28 Thread Iago Toral
El lun, 27-11-2023 a las 15:48 -0300, Maíra Canal escribió: > From: Melissa Wen > > Detach CSD job setup from CSD submission ioctl to reuse it in CPU > submission ioctl for indirect CSD job. > > Signed-off-by: Melissa Wen > Co-developed-by: Maíra Canal > Signed-off-by: Maíra Canal > --- >  

Re: [PATCH v2 13/17] drm/v3d: Create a CPU job extension for the timestamp query job

2023-11-27 Thread Iago Toral
El jue, 23-11-2023 a las 21:47 -0300, Maíra Canal escribió: (...) > +static void > +v3d_timestamp_query(struct v3d_cpu_job *job) > +{ > +   struct v3d_timestamp_query_info *timestamp_query = > >timestamp_query; > +   struct v3d_bo *bo = to_v3d_bo(job->base.bo[0]); I presume there is an

Re: [PATCH v2 07/17] drm/v3d: Add a CPU job submission

2023-11-27 Thread Iago Toral
El jue, 23-11-2023 a las 21:47 -0300, Maíra Canal escribió: > From: Melissa Wen > > Create a new type of job, a CPU job. A CPU job is a type of job that > performs operations that requires CPU intervention. The overall idea > is > to use user extensions to enable different types of CPU job,

Re: [PATCH v2 07/17] drm/v3d: Add a CPU job submission

2023-11-27 Thread Iago Toral
El jue, 23-11-2023 a las 21:47 -0300, Maíra Canal escribió: > From: Melissa Wen > > Create a new type of job, a CPU job. A CPU job is a type of job that > performs operations that requires CPU intervention. The overall idea > is > to use user extensions to enable different types of CPU job,

Re: [PATCH v2 06/17] drm/v3d: Decouple job allocation from job initiation

2023-11-27 Thread Iago Toral
El jue, 23-11-2023 a las 21:47 -0300, Maíra Canal escribió: > We want to allow the IOCTLs to allocate the job without initiating > it. > This will be useful for the CPU job submission IOCTL, as the CPU job > has > the need to use information from the user extensions. Currently, the > user

Re: [PATCH v2 04/17] drm/v3d: Simplify job refcount handling

2023-11-26 Thread Iago Toral
El jue, 23-11-2023 a las 21:47 -0300, Maíra Canal escribió: > From: Melissa Wen > > Instead of checking if the job is NULL every time we call the > function, > check it inside the function. > > Signed-off-by: Melissa Wen > Signed-off-by: Maíra Canal > --- >  drivers/gpu/drm/v3d/v3d_submit.c |

Re: [RFC PATCH 2/2] vc4: introduce DMA-BUF heap

2023-11-09 Thread Iago Toral
ybe we don't need this there? Iago > - Need to the extend DMA heaps API to allow vc4 to unregister the > heap >   on unload. > > [1]: > https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4414 > > Signed-off-by: Simon Ser > Cc: Maxime Ripard > C

[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 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 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 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 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

Re: [PATCH 1/2] drm/v3d: wait for all jobs to finish before unregistering

2023-10-30 Thread Iago Toral
El mar, 24-10-2023 a las 07:05 -0300, Maira Canal escribió: > Hi Iago, > > On 10/24/23 02:57, Iago Toral wrote: > > El lun, 23-10-2023 a las 07:58 -0300, Maíra Canal escribió: > > > Currently, we are only warning the user if the BIN or RENDER jobs > > > don't >

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

2023-10-30 Thread Iago Toral
El lun, 30-10-2023 a las 11:28 +0100, Stefan Wahren escribió: > Hi Iago, > > Am 30.10.23 um 11:14 schrieb Iago Toral: > > Hi Stefan, > > > > El lun, 30-10-2023 a las 10:58 +0100, Stefan Wahren escribió: > > > Hi Iago, > > > > >

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

2023-10-30 Thread Iago Toral
El lun, 30-10-2023 a las 10:57 +0100, Stefan Wahren escribió: > Hi Iago, > > Am 30.10.23 um 09:28 schrieb Iago Toral Quiroga: > > BCM2712, Raspberry Pi 5's SoC, contains a V3D core. So add its > > specific > > compatible to the bindings. > > > > v2: ne

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

2023-10-30 Thread Iago Toral
Hi Stefan, El lun, 30-10-2023 a las 10:58 +0100, Stefan Wahren escribió: > Hi Iago, > > Am 30.10.23 um 09:28 schrieb 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 > > co

[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 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 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 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 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

Re: [PATCH 1/2] drm/v3d: wait for all jobs to finish before unregistering

2023-10-23 Thread Iago Toral
El lun, 23-10-2023 a las 07:58 -0300, Maíra Canal escribió: > Currently, we are only warning the user if the BIN or RENDER jobs > don't > finish before we unregister V3D. We must wait for all jobs to finish > before unregistering. Therefore, warn the user if TFU or CSD jobs > are not done by the

[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 ---

[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 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

Re: [PATCH] MAINTAINERS: add Melissa to V3D maintainers

2022-05-01 Thread Iago Toral
Acked-by: Iago Toral Quiroga On Fri, 2022-04-29 at 18:33 -0100, Melissa Wen wrote: > I've been contributing to v3d through improvements, reviews, testing, > debugging, etc. So, I'm adding myself as a co-maintainer of the V3D > driver. > > Signed-off-by: Melissa Wen > ---

Re: [PATCH v3 4/4] drm/v3d: add multiple syncobjs support

2021-10-01 Thread Iago Toral
On Fri, 2021-10-01 at 09:37 +0100, Melissa Wen wrote: > On 10/01, Iago Toral wrote: > > On Thu, 2021-09-30 at 17:19 +0100, Melissa Wen wrote: > > > Using the generic extension from the previous patch, a specific > > > multisync > > > extension enables more th

Re: [PATCH v3 4/4] drm/v3d: add multiple syncobjs support

2021-10-01 Thread Iago Toral
On Thu, 2021-09-30 at 17:19 +0100, Melissa Wen wrote: > Using the generic extension from the previous patch, a specific > multisync > extension enables more than one in/out binary syncobj per job > submission. > Arrays of syncobjs are set in struct drm_v3d_multisync, that also > cares > of

Re: [PATCH v2 3/4] drm/v3d: add generic ioctl extension

2021-09-30 Thread Iago Toral
On Thu, 2021-09-30 at 10:22 +0100, Melissa Wen wrote: > > > > O 09/30, Iago Toral wrote: > > On Wed, 2021-09-29 at 10:44 +0100, Melissa Wen wrote: (...) > > > /** > > > * struct drm_v3d_submit_cl - ioctl argument for submitting > > > commands >

Re: [PATCH v2 4/4] drm/v3d: add multiple syncobjs support

2021-09-30 Thread Iago Toral
On Wed, 2021-09-29 at 10:45 +0100, Melissa Wen wrote: > Using the generic extension from the previous patch, a specific > multisync > extension enables more than one in/out binary syncobj per job > submission. > Arrays of syncobjs are set in struct drm_v3d_multisync, that also > cares > of

Re: [PATCH v2 3/4] drm/v3d: add generic ioctl extension

2021-09-30 Thread Iago Toral
On Wed, 2021-09-29 at 10:44 +0100, Melissa Wen wrote: > Add support to attach generic extensions on job submission. This > patch > is third prep work to enable multiple syncobjs on job submission. > With > this work, when the job submission interface needs to be extended to > accomodate a new

Re: [PATCH v2 2/4] drm/v3d: alloc and init job in one shot

2021-09-30 Thread Iago Toral
mand submission. > To > generalize v3d_job_init(), this change takes into account that all > job structs > have the first element a struct v3d_job (bin, render, tfu, csd) or it > is a > v3d_job itself (clean_job) for pointer casting. > > Suggested-by: Iago Toral > Signed-off-by:

Re: [PATCH] drm/v3d: fix sched job resources cleanup when a job is aborted

2021-09-17 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga With that said, I don't like how we are doing error handling here, I think we want to simplify this and try to make it so we centralize error handling in one place instead of having multiple error exits paths, each one trying to do the right thing at that point

Re: [PATCH 3/3] drm/v3d: add multiple syncobjs support

2021-09-16 Thread Iago Toral
I think this looks good overall, I have a few questions/commments below: On Wed, 2021-08-18 at 18:57 +0100, Melissa Wen wrote: > Using the generic extension support set in the previous patch, this > patch enables more than one in/out binary syncobj per job submission. > Arrays of syncobjs are set

Re: [PATCH 2/3] drm/v3d: add generic ioctl extension

2021-09-15 Thread Iago Toral
On Wed, 2021-09-15 at 17:28 +0100, Melissa Wen wrote: > On 09/15, Iago Toral wrote: > > On Wed, 2021-08-18 at 18:56 +0100, Melissa Wen wrote: (...) > > > > > > /** > > > @@ -248,6 +266,15 @@ struct drm_v3d_submit_tfu { > > > __u32 in_sync; >

Re: [PATCH 2/3] drm/v3d: add generic ioctl extension

2021-09-15 Thread Iago Toral
On Wed, 2021-08-18 at 18:56 +0100, Melissa Wen wrote: > Add support to attach generic extensions on job submission. > This patch is a second prep work to enable multiple syncobjs on job > submission. With this work, when the job submission interface needs > to be extended to accomodate a new

[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(-)

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

2021-09-15 Thread Iago Toral
On Wed, 2021-09-15 at 09:57 +0100, Melissa Wen wrote: > On 09/14, Iago Toral Quiroga wrote: > > 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. > > > > F

[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

Re: [PATCH AUTOSEL 5.4 003/205] drm/v3d: don't leak bin job if v3d_job_init fails.

2020-01-23 Thread Iago Toral
On Thu, 2020-01-23 at 09:17 -0500, Sasha Levin wrote: > On Fri, Jan 17, 2020 at 08:25:30AM +0100, Iago Toral wrote: > > Hi Sasha, > > > > > > please notice that there were two separate patches that addressed > > the > > same issue and applying bot

Re: [PATCH AUTOSEL 5.4 003/205] drm/v3d: don't leak bin job if v3d_job_init fails.

2020-01-16 Thread Iago Toral
previously here: https://lists.freedesktop.org/archives/dri-devel/2019-October/241425.html Iago On Thu, 2020-01-16 at 11:39 -0500, Sasha Levin wrote: > From: Iago Toral Quiroga > > [ Upstream commit 0d352a3a8a1f26168d09f7073e61bb4b328e3bb9 ] > > If the initialization of the job fails w

[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

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

2019-09-18 Thread Iago Toral
Eric, could you push this for me? I don't have push rights to DRM yet. Iago On Wed, 2019-09-18 at 11:15 +0200, Iago Toral Quiroga wrote: > Extends the user space ioctl for CL submissions so it can include a > request > to flush the cache once the CL execution has completed. Fixes memor

[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

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

2019-09-13 Thread Iago Toral
On Thu, 2019-09-12 at 10:25 -0700, Eric Anholt wrote: > Iago Toral Quiroga writes: > > > Extends the user space ioctl for CL submissions so it can include a > > request > > to flush the cache once the CL execution has completed. Fixes > > memory > &g

[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