Re: [PATCH v5 01/23] Introduce drm_gpuvm_sm_map_ops_flags enums for sm_map_ops

2025-07-24 Thread Caterina Shablia
El jueves, 24 de julio de 2025 2:43:56 (hora de verano de Europa central), Matthew Brost escribió: > On Tue, Jul 22, 2025 at 03:38:14PM +0200, Danilo Krummrich wrote: > > (Cc: Caterina) > > > > On Tue Jul 22, 2025 at 3:35 PM CEST, Himal Prasad Ghimiray wrote: > > > - DRM_GPUVM_SM_MAP_NOT_MADVISE:

Re: [PATCH v4 1/7] drm/panthor: Add support for atomic page table updates

2025-07-15 Thread Caterina Shablia
El martes, 15 de julio de 2025 17:08:09 (hora de verano de Europa central), Caterina Shablia escribió: > El viernes, 11 de julio de 2025 15:30:21 (hora de verano de Europa central), > Steven Price escribió: > > On 07/07/2025 18:04, Caterina Shablia wrote: > > >

Re: [PATCH v4 1/7] drm/panthor: Add support for atomic page table updates

2025-07-15 Thread Caterina Shablia
El martes, 15 de julio de 2025 17:08:09 (hora de verano de Europa central), Caterina Shablia escribió: > El viernes, 11 de julio de 2025 15:30:21 (hora de verano de Europa central), > Steven Price escribió: > > On 07/07/2025 18:04, Caterina Shablia wrote: > > >

Re: [PATCH v4 7/7] drm/panthor: Add support for repeated mappings

2025-07-15 Thread Caterina Shablia
El viernes, 11 de julio de 2025 16:03:26 (hora de verano de Europa central), Steven Price escribió: > On 07/07/2025 18:04, Caterina Shablia wrote: > > From: Boris Brezillon > > > > This allows us to optimize mapping of a relatively small > > portion of a BO over a

Re: [PATCH v4 1/7] drm/panthor: Add support for atomic page table updates

2025-07-15 Thread Caterina Shablia
El viernes, 11 de julio de 2025 15:30:21 (hora de verano de Europa central), Steven Price escribió: > On 07/07/2025 18:04, Caterina Shablia wrote: > > From: Boris Brezillon > > > > Move the lock/flush_mem operations around the gpuvm_sm_map() calls so > > we can

Re: [PATCH v2 1/7] drm/panthor: Add support for atomic page table updates

2025-07-15 Thread Caterina Shablia
El viernes, 11 de julio de 2025 21:11:15 (hora de verano de Europa central), Adrian Larumbe escribió: > Hi Caterina, > > On 03.07.2025 15:28, Caterina Shablia wrote: > > From: Boris Brezillon > > > > Move the lock/flush_mem operations around the gpuvm_sm_map() ca

[PATCH v4 7/7] drm/panthor: Add support for repeated mappings

2025-07-07 Thread Caterina Shablia
From: Boris Brezillon This allows us to optimize mapping of a relatively small portion of a BO over and over in a large VA range, which is useful to support Vulkan sparse bindings in an efficient way. Signed-off-by: Boris Brezillon Co-developed-by: Caterina Shablia Signed-off-by: Caterina

[PATCH v4 5/7] drm/gpuvm: Add a flags field to drm_gpuvm_map_req/drm_gpuva_op_map

2025-07-07 Thread Caterina Shablia
core to check the flags on map and alter the merge/split logic depending on the requested flags and the flags of the existing drm_gpuva ranges that are being split. Signed-off-by: Asahi Lina Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 7 +++ include/drm/drm_gpuvm.h

[PATCH v4 6/7] drm/gpuvm: Add DRM_GPUVA_REPEAT flag and logic

2025-07-07 Thread Caterina Shablia
:va::range, and drm_gpuva::gem::range is a multiple of drm_gpuva::va::range. Signed-off-by: Asahi Lina Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 72 + include/drm/drm_gpuvm.h | 43 +- 2 files changed, 108 i

[PATCH v4 4/7] drm/gpuvm: Add a helper to check if two VA can be merged

2025-07-07 Thread Caterina Shablia
m_map() loop. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 47 + 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c index 05978c5

[PATCH v4 3/7] drm/gpuvm: Pass map arguments through a struct

2025-07-07 Thread Caterina Shablia
From: Boris Brezillon We are about to pass more arguments to drm_gpuvm_sm_map[_ops_create](), so, before we do that, let's pass arguments through a struct instead of changing each call site every time a new optional argument is added. Signed-off-by: Boris Brezillon Signed-off-by: Cat

[PATCH v4 2/7] drm/gpuvm: Kill drm_gpuva_init()

2025-07-07 Thread Caterina Shablia
From: Boris Brezillon drm_gpuva_init() only has one internal user, and given we are about to add new optional fields, it only add maintenance burden for no real benefit, so let's kill the thing now. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- include/drm/drm_gp

[PATCH v4 1/7] drm/panthor: Add support for atomic page table updates

2025-07-07 Thread Caterina Shablia
(), so we can replace the dummy page mapped over the entire object by actual BO backed pages in an atomic way. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- drivers/gpu/drm/panthor/panthor_mmu.c | 65 +-- 1 file changed, 62 insertions(+), 3 deletions

[PATCH v4 0/7] drm/panthor: support repeated mappings

2025-07-07 Thread Caterina Shablia
This patch series adds OP_MAP_REPEAT flag, which lets the user map a BO region over an address range repeatedly with just one map operation. Sparse resources in the Vulkan API let the user leave regions of a resource unmapped (from the API perspective.) Accesses to such regions must not result in

[PATCH v3 6/7] drm/gpuvm: Add DRM_GPUVA_REPEAT flag and logic

2025-07-03 Thread Caterina Shablia
:va::range, and drm_gpuva::gem::range is a multiple of drm_gpuva::va::range. Signed-off-by: Asahi Lina Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 71 + include/drm/drm_gpuvm.h | 43 +- 2 files changed, 107 i

[PATCH v3 7/7] drm/panthor: Add support for repeated mappings

2025-07-03 Thread Caterina Shablia
From: Boris Brezillon This allows us to optimize mapping of a relatively small portion of a BO over and over in a large VA range, which is useful to support Vulkan sparse bindings in an efficient way. Signed-off-by: Boris Brezillon Co-developed-by: Caterina Shablia Signed-off-by: Caterina

[PATCH v3 5/7] drm/gpuvm: Add a flags field to drm_gpuvm_map_req/drm_gpuva_op_map

2025-07-03 Thread Caterina Shablia
core to check the flags on map and alter the merge/split logic depending on the requested flags and the flags of the existing drm_gpuva ranges that are being split. Signed-off-by: Asahi Lina Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 7 +++ include/drm/drm_gpuvm.h

[PATCH v3 4/7] drm/gpuvm: Add a helper to check if two VA can be merged

2025-07-03 Thread Caterina Shablia
m_map() loop. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 47 + 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c index ae201d4

[PATCH v3 3/7] drm/gpuvm: Pass map arguments through a struct

2025-07-03 Thread Caterina Shablia
From: Boris Brezillon We are about to pass more arguments to drm_gpuvm_sm_map[_ops_create](), so, before we do that, let's pass arguments through a struct instead of changing each call site every time a new optional argument is added. Signed-off-by: Boris Brezillon Signed-off-by: Cat

[PATCH v3 2/7] drm/gpuvm: Kill drm_gpuva_init()

2025-07-03 Thread Caterina Shablia
From: Boris Brezillon drm_gpuva_init() only has one internal user, and given we are about to add new optional fields, it only add maintenance burden for no real benefit, so let's kill the thing now. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- include/drm/drm_gp

[PATCH v3 1/7] drm/panthor: Add support for atomic page table updates

2025-07-03 Thread Caterina Shablia
(), so we can replace the dummy page mapped over the entire object by actual BO backed pages in an atomic way. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- drivers/gpu/drm/panthor/panthor_mmu.c | 65 +-- 1 file changed, 62 insertions(+), 3 deletions

[PATCH v3 0/7] drm/panthor: support repeated mappings

2025-07-03 Thread Caterina Shablia
This patch series adds OP_MAP_REPEAT flag, which lets the user map a BO region over an address range repeatedly with just one map operation. Sparse resources in the Vulkan API let the user leave regions of a resource unmapped (from the API perspective.) Accesses to such regions must not result in

[PATCH v2 5/7] drm/gpuvm: Add a flags field to drm_gpuvm_map_req/drm_gpuva_op_map

2025-07-03 Thread Caterina Shablia
core to check the flags on map and alter the merge/split logic depending on the requested flags and the flags of the existing drm_gpuva ranges that are being split. Signed-off-by: Asahi Lina Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 7 +++ include/drm/drm_gpuvm.h

[PATCH v2 6/7] drm/gpuvm: Add DRM_GPUVA_REPEAT flag and logic

2025-07-03 Thread Caterina Shablia
:va::range, and drm_gpuva::gem::range is a multiple of drm_gpuva::va::range. Signed-off-by: Asahi Lina Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 71 + include/drm/drm_gpuvm.h | 43 +- 2 files changed, 107 i

[PATCH v2 7/7] drm/panthor: Add support for repeated mappings

2025-07-03 Thread Caterina Shablia
From: Boris Brezillon This allows us to optimize mapping of a relatively small portion of a BO over and over in a large VA range, which is useful to support Vulkan sparse bindings in an efficient way. Signed-off-by: Boris Brezillon Co-developed-by: Caterina Shablia Signed-off-by: Caterina

[PATCH v2 4/7] drm/gpuvm: Add a helper to check if two VA can be merged

2025-07-03 Thread Caterina Shablia
m_map() loop. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 47 + 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c index ae201d4

[PATCH v2 3/7] drm/gpuvm: Pass map arguments through a struct

2025-07-03 Thread Caterina Shablia
From: Boris Brezillon We are about to pass more arguments to drm_gpuvm_sm_map[_ops_create](), so, before we do that, let's pass arguments through a struct instead of changing each call site every time a new optional argument is added. Signed-off-by: Boris Brezillon Signed-off-by: Cat

[PATCH v2 2/7] drm/gpuvm: Kill drm_gpuva_init()

2025-07-03 Thread Caterina Shablia
From: Boris Brezillon drm_gpuva_init() only has one internal user, and given we are about to add new optional fields, it only add maintenance burden for no real benefit, so let's kill the thing now. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- include/drm/drm_gp

[PATCH v2 1/7] drm/panthor: Add support for atomic page table updates

2025-07-03 Thread Caterina Shablia
(), so we can replace the dummy page mapped over the entire object by actual BO backed pages in an atomic way. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- drivers/gpu/drm/panthor/panthor_mmu.c | 65 +-- 1 file changed, 62 insertions(+), 3 deletions

[PATCH v2 7/7] drm/panthor: Add support for repeated mappings

2025-07-03 Thread Caterina Shablia
From: Boris Brezillon This allows us to optimize mapping of a relatively small portion of a BO over and over in a large VA range, which is useful to support Vulkan sparse bindings in an efficient way. Signed-off-by: Boris Brezillon Co-developed-by: Caterina Shablia Signed-off-by: Caterina

[PATCH v2 6/7] drm/gpuvm: Add DRM_GPUVA_REPEAT flag and logic

2025-07-03 Thread Caterina Shablia
:va::range, and drm_gpuva::gem::range is a multiple of drm_gpuva::va::range. Signed-off-by: Asahi Lina Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 71 + include/drm/drm_gpuvm.h | 43 +- 2 files changed, 107 i

[PATCH v2 5/7] drm/gpuvm: Add a flags field to drm_gpuvm_map_req/drm_gpuva_op_map

2025-07-03 Thread Caterina Shablia
core to check the flags on map and alter the merge/split logic depending on the requested flags and the flags of the existing drm_gpuva ranges that are being split. Signed-off-by: Asahi Lina Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 7 +++ include/drm/drm_gpuvm.h

[PATCH v2 4/7] drm/gpuvm: Add a helper to check if two VA can be merged

2025-07-02 Thread Caterina Shablia
m_map() loop. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- drivers/gpu/drm/drm_gpuvm.c | 47 + 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c index ae201d4

[PATCH v2 3/7] drm/gpuvm: Pass map arguments through a struct

2025-07-02 Thread Caterina Shablia
From: Boris Brezillon We are about to pass more arguments to drm_gpuvm_sm_map[_ops_create](), so, before we do that, let's pass arguments through a struct instead of changing each call site every time a new optional argument is added. Signed-off-by: Boris Brezillon Signed-off-by: Cat

[PATCH v2 2/7] drm/gpuvm: Kill drm_gpuva_init()

2025-07-02 Thread Caterina Shablia
From: Boris Brezillon drm_gpuva_init() only has one internal user, and given we are about to add new optional fields, it only add maintenance burden for no real benefit, so let's kill the thing now. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- include/drm/drm_gp

[PATCH v2 1/7] drm/panthor: Add support for atomic page table updates

2025-07-02 Thread Caterina Shablia
(), so we can replace the dummy page mapped over the entire object by actual BO backed pages in an atomic way. Signed-off-by: Boris Brezillon Signed-off-by: Caterina Shablia --- drivers/gpu/drm/panthor/panthor_mmu.c | 65 +-- 1 file changed, 62 insertions(+), 3 deletions