Re: [PATCH v1] drm/panthor: Serialize GPU cache flush operations

2025-07-31 Thread Liviu Dudau
ny requested cache flushes are completed instead of dropped. > > Signed-off-by: Karunika Choo > Co-developed-by: Dennis Tsiang Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_gpu.c | 7 +++ > 1 file changed, 7 insertions(+) > >

Re: [PATCH v8 6/6] drm/panthor: Add support for Mali-Gx20 and Mali-Gx25 GPUs

2025-07-24 Thread Liviu Dudau
On Thu, Jul 24, 2025 at 01:42:10PM +0100, Karunika Choo wrote: > This patch adds firmware binary and GPU model naming support for > Mali-Gx20 and Mali-Gx25 GPUs. > > Signed-off-by: Karunika Choo Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor

Re: [PATCH v5 3/6] drm/panthor: Add support for Mali-G710, Mali-G510 and Mali-G310

2025-07-22 Thread Liviu Dudau
On Tue, Jul 22, 2025 at 10:29:21AM +0200, Erik Faye-Lund wrote: > On Mon, 2025-07-21 at 12:13 +0100, Karunika Choo wrote: > > This patch adds GPU model name and FW binary support for Mali-G710, > > Mali-G510, and Mali-G310. > > > > Signed-off-by: Karunika Choo > > --- > >  drivers/gpu/drm/panthor

Re: [PATCH v5 6/6] drm/panthor: Add support for Mali-Gx20 and Mali-Gx25 GPUs

2025-07-21 Thread Liviu Dudau
; +#define GPU_COHERENCY_FEATURE_SHAREABLE_CACHE_SUPPORT BIT(5) > > #define GPU_COHERENCY_PROTOCOL 0x304 > #define GPU_COHERENCY_ACE_LITE 0 > #define GPU_COHERENCY_ACE

Re: [PATCH v5 5/6] drm/panthor: Make MMU cache maintenance use FLUSH_CACHES command

2025-07-21 Thread Liviu Dudau
LUSH_MEM and FLUSH_PT commands. > > Mali-Gx10 and Mali-Gx15 GPUs also has support for the FLUSH_CACHES > command and will also use this by default going forward. > > Signed-off-by: Karunika Choo Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/g

Re: [PATCH v5 4/6] drm/panthor: Add support for Mali-Gx15 family of GPUs

2025-07-21 Thread Liviu Dudau
MP_OFFSET 0x88 > #define GPU_CYCLE_COUNT 0x90 > #define GPU_TIMESTAMP0x98 > @@ -81,6 +85,8 @@ > > #define GPU_TEXTURE_FEATURES(n)

Re: [PATCH v5 3/6] drm/panthor: Add support for Mali-G710, Mali-G510 and Mali-G310

2025-07-21 Thread Liviu Dudau
On Mon, Jul 21, 2025 at 12:13:41PM +0100, Karunika Choo wrote: > This patch adds GPU model name and FW binary support for Mali-G710, > Mali-G510, and Mali-G310. > > Signed-off-by: Karunika Choo Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/pantho

Re: [PATCH v5 2/6] drm/panthor: Simplify getting the GPU model name

2025-07-21 Thread Liviu Dudau
lows extending of the function to > accommodate naming differences based on supported GPU features. > > Signed-off-by: Karunika Choo Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_hw.c | 61 > 1 file

Re: [PATCH v5 1/6] drm/panthor: Add panthor_hw and move gpu_info initialization into it

2025-07-21 Thread Liviu Dudau
> Signed-off-by: Karunika Choo Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/Makefile | 1 + > drivers/gpu/drm/panthor/panthor_device.c | 5 + > drivers/gpu/drm/panthor/panthor_gpu.c| 95 --- >

Re: [PATCH v2 1/1] drivers: drm: Remove redundant pm_runtime_mark_last_busy() calls

2025-07-15 Thread Liviu Dudau
- > drivers/gpu/drm/imx/dcss/dcss-crtc.c| 1 - > drivers/gpu/drm/lima/lima_sched.c | 1 - > drivers/gpu/drm/panel/panel-edp.c | 3 --- > .../gpu/drm/panel/panel-samsung-atna33xc20.c| 2 -- > drivers/gpu/drm/panel/panel-simple.c |

Re: [PATCH] drm/panthor: Remove dead VM flushing code

2025-07-11 Thread Liviu Dudau
On Fri, Jul 11, 2025 at 04:45:53PM +0100, Adrián Larumbe wrote: > Commit ec62d37d2c0d("drm/panthor: Fix the fast-reset logic") did away > with the only reference to panthor_vm_flush_all(), so let's get rid > of the orphaned definition. > > Signed-off-by: Adrián Laru

Re: [PATCH 2/2] drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code

2025-07-08 Thread Liviu Dudau
de list of DRM GEM objects > over DebugFS") > Cc: Adrián Larumbe > Cc: Boris Brezillon > Cc: Steven Price > Cc: Liviu Dudau > Signed-off-by: Simona Vetter > Signed-off-by: Simona Vetter > --- > drivers/gpu/drm/panthor/panthor_gem.c | 34 ++---

Re: [PATCH] iommu/io-pgtable-arm: Remove split on unmap behavior

2025-07-07 Thread Liviu Dudau
On Sat, Jul 05, 2025 at 01:12:09PM -0700, Daniel Mentz wrote: > With the removal of arm_lpae_split_blk_unmap, I believe the following > macros are now unused. Is there any interest in removing those as > well? If so, I can draft a patch. > > #define ARM_LPAE_PTE_ATTR_LO_MASK (((arm_lpae_iopte)0x3f

Re: [PATCH v2 05/19] drm: Allow the caller to pass in the format info to drm_helper_mode_fill_fb_struct()

2025-07-01 Thread Liviu Dudau
struct drm_framebuffer *fb, > +const struct drm_format_info *info, > const struct drm_mode_fb_cmd2 *mode_cmd); > > @@ > expression dev, fb, mode_cmd; > @@ > drm_helper_mode_fill_fb_struct(dev, fb >

Re: [PATCH v2 14/19] drm/komeda: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct()

2025-07-01 Thread Liviu Dudau
On Tue, Jul 01, 2025 at 12:07:17PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Plumb the format info from .fb_create() all the way to > drm_helper_mode_fill_fb_struct() to avoid the redundant > lookup. > > Cc: Liviu Dudau > Reviewed-by: Thomas Zimmermann

Re: [PATCH v2 06/19] drm/malidp: Pass along the format info from .fb_create() malidp_verify_afbc_framebuffer_size()

2025-07-01 Thread Liviu Dudau
On Tue, Jul 01, 2025 at 12:07:09PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Plumb the format info from .fb_create() all the way to > malidp_verify_afbc_framebuffer_size() to avoid the > redundant lookup. > > Cc: Liviu Dudau > Reviewed-by: Thomas Zimmermann

Re: [PATCH v2 04/19] drm: Pass the format info to .fb_create()

2025-07-01 Thread Liviu Dudau
, mode_cmd; > @@ > struct drm_mode_config_funcs { > ... > struct drm_framebuffer *(*fb_create)(struct drm_device *dev, > struct drm_file *file_priv, > + const struct drm_format_info *info, >

Re: [PATCH v2 02/19] drm: Pass pixel_format+modifier directly to drm_get_format_info()

2025-07-01 Thread Liviu Dudau
de_cmd; > @@ > - drm_get_format_info(dev, mode_cmd) > + drm_get_format_info(dev, mode_cmd->pixel_format, mode_cmd->modifier[0]) > > v2: Fix kernel docs (Laurent) > Drop drm_mode_fb_cmd2 forward declaration (Thomas) > > Cc: Liviu Dudau > Cc: Russell King &

Re: [PATCH] drm/panthor: Wait for _READY register when powering on

2025-06-30 Thread Liviu Dudau
to using the pwrtrans_reg register instead. Fix the function > to use the correct register. Good catch! > > Fixes: 4d230aa209ed ("drm/panthor: Add 64-bit and poll register accessors") > Signed-off-by: Steven Price Reviewed-by: Liviu Dudau Best regards, Liviu

Re: [PATCH 2/4] panthor: save panthor_file in panthor_group

2025-06-23 Thread Liviu Dudau
On Mon, Jun 23, 2025 at 08:21:22AM +0200, Boris Brezillon wrote: > On Fri, 20 Jun 2025 16:50:51 -0700 > Chia-I Wu wrote: > > > We would like to access panthor_file from panthor_group on gpu errors. > > Because panthour_group can outlive drm_file, add refcount to > > panthor_file to ensure its lif

Re: [PATCH v5 2/2] drm/panthor: Make the timeout per-queue instead of per-job

2025-06-12 Thread Liviu Dudau
3824 ("drm/panthor: Add the scheduler logical block") > --- Don't know why you have the dashes in line above in the patch, it will make git to skip your S-o-b. > Signed-off-by: Ashley Smith Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/dr

Re: [PATCH 1/1] drm/arm/malidp: Silence informational message

2025-06-12 Thread Liviu Dudau
; Signed-off-by: Alexander Stein Sorry for the delay in replying, I was on holiday when you've sent the patch and I've only found it today. Patch looks sensible, so Reviewed-by: Liviu Dudau I will push the patch today into drm-misc-next. Best regards, Liviu > --- > Every time glma

Re: [PATCH v2] drm/arm/hdlcd: Replace struct simplefb_format with custom type

2025-06-10 Thread Liviu Dudau
iu) > - keep original sorting of formats (Javier) > - use anonymous type for supported_formats > > Signed-off-by: Thomas Zimmermann > Reviewed-by: Javier Martinez Canillas Reviewed-by: Liviu Dudau Are you happy to merge this yourself? Best regards, Liviu > --- > dri

Re: [PATCH] drm/arm/hdlcd: Replace struct simplefb_format with custom type

2025-06-09 Thread Liviu Dudau
On Tue, May 27, 2025 at 11:42:57AM +0200, Thomas Zimmermann wrote: > Map DRM FourCC codes to pixel descriptions with internal type struct > hdlcd_format. Reorder formats by preference. Avoid simplefb's struct > simplefb_format, which is for parsing "simple-framebuffer" DT nodes. > > The HDLCD driv

Re: [PATCH v5 1/2] drm/panthor: Reset queue slots if termination fails

2025-06-03 Thread Liviu Dudau
cs_slot_reset_locked(ptdev, > csg_id, i); > + } > + } > slot_mask &= ~BIT(csg_id); > } > } > -- > 2.43.0 > Reviewed-by: Liviu Dudau Best regards, Liviu -- | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --- ¯\_(ツ)_/¯

Re: [PATCH v2] drm/panthor: Reset queue slots if termination fails

2025-05-21 Thread Liviu Dudau
ups that are not terminated correctly. > > Signed-off-by: Ashley Smith Reviewed-by: Liviu Dudau Best regards, Liviu > --- > Changes in v2: > - Fixed syntax error > --- > drivers/gpu/drm/panthor/panthor_sched.c | 11 ++- > 1 file changed, 10 insertions(+), 1 d

Re: [PATCH] drm/panthor: Fix build warning when DEBUG_FS is disabled

2025-04-24 Thread Liviu Dudau
debugfs_set_usage_flags() into panthor_gem.c and > declare it static. > > Fixes: a3707f53eb3f ("drm/panthor: show device-wide list of DRM GEM objects > over DebugFS") > Reported-by: Arnd Bergmann > Closes: > https://lore.kernel.org/dri-devel/20250424142419.47b9d..

Re: [PATCH v2 2/2] drm/panthor: Fix the user MMIO offset logic for emulators

2025-04-22 Thread Liviu Dudau
es, because > + * userspace is in control of the offset, and can change the > + * value behind out back, potentially leading to erronous s/out/our/, s/erronous/erroneous/ > + * branching happening in kernel space. Is "potentially" here still v

Re: [PATCH 2/2] drm/panthor: Fix the user MMIO offset logic for emulators

2025-04-17 Thread Liviu Dudau
On Thu, Apr 17, 2025 at 02:16:11PM +0200, Boris Brezillon wrote: > On Thu, 17 Apr 2025 12:33:01 +0100 > Liviu Dudau wrote: > > > On Thu, Apr 17, 2025 at 11:41:18AM +0100, Steven Price wrote: > > > On 17/04/2025 11:05, Boris Brezillon wrote: > > > > Current

Re: [PATCH v8 1/4] drm/panthor: Introduce BO labeling

2025-04-17 Thread Liviu Dudau
estruction time, but allocating it is the responsibility > of callers. > > Signed-off-by: Adrián Larumbe > Reviewed-by: Boris Brezillon Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_gem.c | 46 +++ > d

Re: [PATCH 1/2] drm/panthor: Fix missing explicit padding in drm_panthor_gpu_info

2025-04-17 Thread Liviu Dudau
t guaranteed to zero it out. The direction is the other way around, it's provided by kernel. I would loosen the restriction on repurposing, maybe when 32bit x86 is no longer such a hot market we can reuse it for some other chicken bits. With the comment updated, Acked-by: Liviu Dudau

Re: [PATCH 2/2] drm/panthor: Fix the user MMIO offset logic for emulators

2025-04-17 Thread Liviu Dudau
On Thu, Apr 17, 2025 at 11:41:18AM +0100, Steven Price wrote: > On 17/04/2025 11:05, Boris Brezillon wrote: > > Currently, we pick the MMIO offset based on the size of the pgoff_t > > type seen by the process that manipulates the FD, such that a 32-bit > > process can always map the user MMIO range

Re: [PATCH v2] drm/panthor: Don't create a file offset for NO_MMAP BOs

2025-04-17 Thread Liviu Dudau
lags & DRM_PANTHOR_BO_NO_MMAP) > + return -EPERM; > + As Matthew already noticed, we need to set `ret` to -EPERM and goto out. With that change, Reviewed-by: Liviu Dudau Best regards, Liviu > ret = drm_gem_create_mmap_offset(obj); > if (ret) >

Re: [PATCH] drm/panthor: Fix the panthor_gpu_coherency_init() error path

2025-04-15 Thread Liviu Dudau
22f5b5 ("drm/panthor: Call panthor_gpu_coherency_init() after PM > resume()") > Reported-by: Dan Carpenter > Closes: > https://lore.kernel.org/dri-devel/4da470aa-4f84-460e-aff8-dabc8cc4da15@stanley.mountain/T/#t > Signed-off-by: Boris Brezillon Good catch! R

Re: [PATCH v3 0/8] drm: Introduce sparse GEM shmem

2025-04-15 Thread Liviu Dudau
On Mon, Apr 14, 2025 at 01:22:06PM +0200, Boris Brezillon wrote: > Hi Sima, > > On Fri, 11 Apr 2025 14:01:16 +0200 > Simona Vetter wrote: > > > On Thu, Apr 10, 2025 at 08:41:55PM +0200, Boris Brezillon wrote: > > > On Thu, 10 Apr 2025 14:01:03 -0400 > > > Alyssa Rosenzweig wrote: > > > > > >

Re: [PATCH v3 1/2] drm/panthor: Add 64-bit and poll register accessors

2025-04-15 Thread Liviu Dudau
Reviewed-by: Boris Brezillon > > Signed-off-by: Karunika Choo With the changes that Steven suggested: Reviewed-by: Liviu Dudau Best regards, Liviu > > --- > > drivers/gpu/drm/panthor/panthor_device.h | 71 > > drivers

Re: [PATCH] drm/panthor: Enforce DRM_PANTHOR_BO_NO_MMAP

2025-04-15 Thread Liviu Dudau
ct *bo; > > struct drm_gem_object *obj; > > int ret; > > > > @@ -950,6 +951,10 @@ static int panthor_ioctl_bo_mmap_offset(struct > > drm_device *ddev, void *data, > > if (!obj) > > return -ENOENT; > > > > + bo = to_panthor_bo

Re: [PATCH v3 2/2] drm/panthor: Clean up 64-bit register definitions

2025-04-15 Thread Liviu Dudau
definitions. > > Reviewed-by: Boris Brezillon > Suggested-by: Boris Brezillon > Signed-off-by: Karunika Choo Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_gpu.c | 12 ++-- > drivers/gpu/drm/panthor/panthor_gpu.h | 10 +-- > d

Re: [PATCH v6 3/4] drm/panthor: Label all kernel BO's

2025-04-10 Thread Liviu Dudau
vm_map_flags, va, "FW > section"); Nit: we could add the section->name if available and if we want a more detailed label, but it is not critical. Reviewed-by: Liviu Dudau Best regards, Liviu > if (IS_ERR(s

Re: [PATCH v6 1/4] drm/panthor: Introduce BO labeling

2025-04-10 Thread Liviu Dudau
estruction time, but allocating it is the responsibility > of callers. > > Signed-off-by: Adrián Larumbe > Reviewed-by: Boris Brezillon Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_gem.c | 39 +++ > d

Re: [PATCH v6 4/4] drm/panthor: show device-wide list of DRM GEM objects over DebugFS

2025-04-10 Thread Liviu Dudau
a kernel BO and/or mapped onto the FW's address space. > > Signed-off-by: Adrián Larumbe Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_device.c | 5 + > drivers/gpu/drm/panthor/panthor_device.h | 11 ++ > drivers/gpu/

Re: [PATCH v4 2/4] drm/panthor: Add driver IOCTL for setting BO labels

2025-04-07 Thread Liviu Dudau
7,7 @@ static void panthor_debugfs_init(struct drm_minor > *minor) > * - 1.2 - adds DEV_QUERY_GROUP_PRIORITIES_INFO query > * - adds PANTHOR_GROUP_PRIORITY_REALTIME priority > * - 1.3 - adds DRM_PANTHOR_GROUP_STATE_INNOCENT flag > + * - 1.4 - adds DRM_IOCTL

Re: [PATCH v3 1/5] drm/panthor: Fix GPU_COHERENCY_ACE[_LITE] definitions

2025-04-04 Thread Liviu Dudau
On Fri, Apr 04, 2025 at 10:09:29AM +0200, Boris Brezillon wrote: > GPU_COHERENCY_ACE and GPU_COHERENCY_ACE_LITE definitions have been > swapped. > > Changes in v2: > - New patch > > Changes in v3: > - Add Steve's R-b > > Reported-by: Liviu Dudau > Fixe

Re: [PATCH v2 3/9] dt-bindings: gpu: mali-valhall-csf: Document optional reset

2025-04-03 Thread Liviu Dudau
by: Rob Herring (Arm) > Reviewed-by: Frank Li > Signed-off-by: Marek Vasut Reviewed-by: Liviu Dudau Best regards, Liviu > --- > Cc: Boris Brezillon > Cc: Conor Dooley > Cc: David Airlie > Cc: Fabio Estevam > Cc: Krzysztof Kozlowski > Cc: Liviu Dudau > Cc:

Re: [PATCH 3/4] drm: malidp: Replace custom compare_dev with component_compare_of

2025-04-01 Thread Liviu Dudau
-off-by: Shao Mingyin Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/malidp_drv.c | 9 + > 1 file changed, 1 insertion(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/arm/malidp_drv.c > b/drivers/gpu/drm/arm/malidp_drv.c > index e083021

Re: [PATCH 2/4] drm: arm: hdlcd: Replace custom compare_dev with component_compare_of

2025-04-01 Thread Liviu Dudau
-off-by: Shao Mingyin Reviewed-by: Liviu Dudau Best regards, Liviu Dudau > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/drm/arm/hdlcd_drv.c > index c3179d74f3f5..

Re: [PATCH v2 5/5] drm/panthor: Don't update MMU_INT_MASK in panthor_mmu_irq_handler()

2025-04-01 Thread Liviu Dudau
is too early. Reviewed-by: Liviu Dudau Best regards, Liviu > > Changes in v2: > - New patch > > Signed-off-by: Boris Brezillon > --- > drivers/gpu/drm/panthor/panthor_mmu.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/panthor/

Re: [PATCH v2 4/5] drm/panthor: Let IRQ handlers clear the interrupts themselves

2025-04-01 Thread Liviu Dudau
chance > to process the IRQ. > > Since clearing the clearing is just one line, let's make it explicit > instead of doing it in the generic code path. > > Changes in v2: > - Move the MMU_INT_CLEAR around > > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Du

Re: [PATCH 1/3] drm/panthor: Call panthor_gpu_coherency_init() after PM resume()

2025-04-01 Thread Liviu Dudau
h looks good to me. Reviewed-by: Liviu Dudau Best regards, Liviu > > Fixes: dd7db8d911a1 ("drm/panthor: Explicitly set the coherency mode") > Signed-off-by: Boris Brezillon > --- > drivers/gpu/drm/panthor/panthor_device.c | 8 > 1 file changed, 4 insertions(+)

Re: [PATCH 2/3] drm/panthor: Update panthor_mmu::irq::mask when needed

2025-04-01 Thread Liviu Dudau
;drm/panthor: Add the MMU/VM logical block") > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_mmu.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/panthor/panthor_mmu.c &

Re: [PATCH v2 9/9] drm/panthor: Add support for Mali-G710, Mali-G510, and Mali-G310

2025-03-20 Thread Liviu Dudau
On Thu, Mar 20, 2025 at 11:17:41AM +, Karunika Choo wrote: > This patch adds GPU model name and FW binary support for Mali-G710, > Mali-G510, and Mali-G310. > > Signed-off-by: Karunika Choo > --- > drivers/gpu/drm/panthor/panthor_fw.c | 2 ++ > drivers/gpu/drm/panthor/panthor_hw.c | 6 ++

Re: [PATCH 09/15] drm/panthor: Test for imported buffers with drm_gem_is_imported()

2025-03-17 Thread Liviu Dudau
> to make import_attach optional. > > Signed-off-by: Thomas Zimmermann > Cc: Boris Brezillon > Cc: Steven Price > Cc: Liviu Dudau Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_gem.c | 2 +- > drivers/gpu/drm/panthor/panthor_mmu.c |

Re: [PATCH] drm/komeda: Remove unnecessary NULL check before clk_prepare_enable()

2025-03-13 Thread Liviu Dudau
On Thu, Mar 13, 2025 at 04:29:07PM +0800, Chen Ni wrote: > clk_prepare_enable() already checked NULL clock parameter. > Remove unneeded NULL check for clk here. You're not saving anything here. If mdev->aclk is NULL you still end up calling clk_prepare() and clk_enable() even if they return zero i

Re: [PATCH] drm/arm: Suppress "ARM devices" menu if not essential

2025-03-11 Thread Liviu Dudau
On Mon, Mar 10, 2025 at 03:23:57PM +0800, WangYuli wrote: > Manifestly, the "ARM devices" menu is appropriate only for the ARM > architecture. > > Inasmuch as every single item in this menu is predicated on > (ARM || ARM64 || COMPILE_TEST), it is therefore illogical for the > "ARM devices" menu it

Re: [PATCH v2] drm/panthor: Make the timeout per-queue instead of per-job

2025-03-11 Thread Liviu Dudau
: Daniel Stone > Fixes: de8548813824 ("drm/panthor: Add the scheduler logical block") > Signed-off-by: Ashley Smith Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_sched.c | 233 +--- > 1 file changed, 167 insertions

Re: [PATCH v2] drm/panthor: Update CS_STATUS_ defines to correct values

2025-03-03 Thread Liviu Dudau
8d91816ee ("drm/panthor: Add the FW logical block") > Signed-off-by: Ashley Smith Reviewed-by: Liviu Dudau You could also add Steven's r-b, as per his email if you send another version, otherwise it will need to be edited by whomever merges it. Best regards, Liviu > --

Re: [PATCH 9/9] arm64: dts: imx95: Describe Mali G310 GPU

2025-03-03 Thread Liviu Dudau
On Fri, Feb 28, 2025 at 06:43:53PM +0100, Marek Vasut wrote: > On 2/28/25 11:36 AM, Alexander Stein wrote: > > Hi Marek, > > Hi, > > > > diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi > > > b/arch/arm64/boot/dts/freescale/imx95.dtsi > > > index 3af13173de4bd..36bad211e5558 100644 > > > --

Re: [PATCH 6/9] drm/panthor: Reset GPU after L2 cache power off

2025-03-03 Thread Liviu Dudau
On Fri, Feb 28, 2025 at 06:05:36PM +0100, Marek Vasut wrote: > On 2/28/25 12:06 PM, Liviu Dudau wrote: > > Hi Marek, > > Hi, > > > On Thu, Feb 27, 2025 at 05:58:06PM +0100, Marek Vasut wrote: > > > This seems necessary on Freescale i.MX95 Mali G310 to reli

Re: [PATCH 6/9] drm/panthor: Reset GPU after L2 cache power off

2025-02-28 Thread Liviu Dudau
: David Airlie > Cc: Fabio Estevam > Cc: Krzysztof Kozlowski > Cc: Liviu Dudau > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Pengutronix Kernel Team > Cc: Philipp Zabel > Cc: Rob Herring > Cc: Sascha Hauer > Cc: Sebastian Reichel > Cc: Shawn Guo &g

Re: [PATCH] drm/arm/komeda: Add a condition check before removing sysfs attribute

2025-02-27 Thread Liviu Dudau
ht, I stand corrected. Acked-by: Liviu Dudau Best regards, Liviu > > > Thanks and Regards, > Shixiong Ou. > > > 在 2025/2/25 18:28, Liviu Dudau 写道: > > Hello, > > > > Replying from my personal email as the corporate system seems to have > > blackh

Re: [PATCH] drm/arm/komeda: Add a condition check before removing sysfs attribute

2025-02-25 Thread Liviu Dudau
Hello, Replying from my personal email as the corporate system seems to have blackholed your emails while I was on holiday. Can you tell me more why you think that if sysfs_create_group() fails we should not call sysfs_remove_group()? After all, we don't know how far sysfs_create_group() has p

Re: [PATCH 2/2] drm/panthor: Avoid sleep locking in the internal BO size path

2025-02-10 Thread Liviu Dudau
On Mon, Feb 10, 2025 at 02:18:07PM +0100, Boris Brezillon wrote: > On Mon, 10 Feb 2025 12:42:00 + > Adrián Larumbe wrote: > > > A previous commit dealt with a similar situation, whereby upon enabling > > some mutex debug features, a warning about sleep muteces being used in a > >

Re: [PATCH 1/2] drm/panthor: Replace sleep locks with spinlocks in fdinfo path

2025-02-10 Thread Liviu Dudau
f the kernel's mutex-debugging > features: > > CONFIG_DEBUG_RT_MUTEXES=y > CONFIG_DEBUG_MUTEXES=y > > Replace Panthor's group fdinfo data mutex with a guarded spinlock. > > Signed-off-by: Adrián Larumbe > Fixes: e16635d88fa0 ("drm/panthor: add DRM fd

Re: [PATCH 0/4] drm/gpuvm: Add support for single-page-filled mappings

2025-02-03 Thread Liviu Dudau
On Mon, Feb 03, 2025 at 10:21:53AM +0100, Boris Brezillon wrote: > +Akash with whom we've been discussing adding a 'REPEAT' mode to > drm_gpuvm/panthor. > > On Sun, 2 Feb 2025 19:53:47 +0100 > Danilo Krummrich wrote: > > > Hi Lina, > > > > On Sun, Feb 02, 2025 at 10:34:49PM +0900, Asahi Lina wr

Re: [PATCH v2] drm/sched: Use struct for drm_sched_init() params

2025-01-28 Thread Liviu Dudau
issnaming in: > > commit 6f1cacf4eba7 ("drm/nouveau: Improve variable name in > nouveau_sched_init()"). > > Introduce a new struct for the scheduler init parameters and port all > users. > > Signed-off-by: Philipp Stanner [Mostly for drm/panthor, but I had a quick

Re: [PATCH RESEND] drm/komeda: Add check for komeda_get_layer_fourcc_list()

2025-01-22 Thread Liviu Dudau
of komeda_get_layer_fourcc_list() > to catch the potential exception. > > Fixes: 5d51f6c0da1b ("drm/komeda: Add writeback support") > Cc: sta...@vger.kernel.org > Signed-off-by: Haoxiang Li Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/displa

Re: [PATCH 2/2] drm/i2c: move TDA drivers under drivers/gpu/drm/bridge

2024-12-19 Thread Liviu Dudau
select DRM_BRIDGE # for TDA998x > help > Choose this option if you have an ARM High Definition Colour LCD > controller. For the above change: Acked-by: Liviu Dudau Best regards, Liviu > diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfi

Re: [PATCH v5 2/2] Documentation/gpu: Add fdinfo meanings of drm-*-internal memory tags

2024-12-19 Thread Liviu Dudau
pecific key:value pairs > with the definitions of the new drm-*-internal ones. > > Signed-off-by: Adrián Larumbe > Reviewed-by: Mihail Atanassov Reviewed-by: Liviu Dudau Best regards, Liviu > --- > Documentation/gpu/panthor.rst | 14 ++ > 1 file changed, 14 inser

Re: [PATCH] drm/panthor: Fix a race between the reset and suspend path

2024-12-17 Thread Liviu Dudau
On Tue, Dec 17, 2024 at 12:06:59PM +0100, Boris Brezillon wrote: > On Tue, 17 Dec 2024 10:56:14 + > Liviu Dudau wrote: > > > On Tue, Dec 17, 2024 at 10:24:57AM +0100, Boris Brezillon wrote: > > > If a reset is scheduled when the suspend happens, we drop the > &g

Re: [PATCH] drm/panthor: Fix a race between the reset and suspend path

2024-12-17 Thread Liviu Dudau
On Tue, Dec 17, 2024 at 10:24:57AM +0100, Boris Brezillon wrote: > If a reset is scheduled when the suspend happens, we drop the > reset-pending info on the floor assuming the resume will fix things, > but the resume logic might try a fast reset. If we're lucky, the > fast reset fails and we fallba

Re: [PATCH v4 1/2] drm/panthor: Expose size of driver internal BO's over fdinfo

2024-12-16 Thread Liviu Dudau
s, as these aren't bound to a > specific open file and remain active through the whole life of the driver. > > Signed-off-by: Adrián Larumbe With the issue that Boris pointed fixed, Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_d

Re: [PATCH v4 2/2] Documentation/gpu: Add fdinfo meanings of drm-*-internal memory tags

2024-12-16 Thread Liviu Dudau
On Wed, Dec 11, 2024 at 04:34:32PM +, Adrián Larumbe wrote: > A previous commit enabled display of driver-internal kernel BO sizes > through the device file's fdinfo interface. > > Expand the description of the relevant driver-specific key:value pairs > with the definitions of the new drm-*-in

Re: [PATCH v3 5/5] drm/panthor: Fix the fast-reset logic

2024-12-11 Thread Liviu Dudau
t; + panthor_mmu_suspend(ptdev); > + panthor_gpu_suspend(ptdev); > + return ret; My only comment was a nit here where I prefer the construct: if (ret) { panthor_mmu_suspend(ptdev); panthor_gpu_suspend(ptdev); } return re

Re: [PATCH] drm/panthor: Relax our expectations in panthor_sched_pre_reset()

2024-12-11 Thread Liviu Dudau
op all runnable groups in panthor_sched_pre_reset(), but let's > stop complaining about it. > > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_sched.c | 2 -- > 1 file changed, 2 deletions

Re: [PATCH v3 1/5] drm/panthor: Preserve the result returned by panthor_fw_resume()

2024-12-11 Thread Liviu Dudau
es: 5fe909cae118 ("drm/panthor: Add the device logical block") > Signed-off-by: Boris Brezillon > Reviewed-by: Steven Price > Reviewed-by: Adrian Larumbe Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_device.c | 4 ++-- > 1 file

Re: [PATCH 06/11] ubifs: reorder capability check last

2024-11-25 Thread Liviu Dudau
Hi Christian, On Mon, Nov 25, 2024 at 11:39:58AM +0100, Christian Göttsche wrote: > From: Christian Göttsche > > capable() calls refer to enabled LSMs whether to permit or deny the > request. This is relevant in connection with SELinux, where a > capability check results in a policy decision an

Re: [PATCH v2 0/3] drm/panthor: Coherency related fixes

2024-11-20 Thread Liviu Dudau
On Wed, Oct 30, 2024 at 10:54:04PM +, Akash Goel wrote: > This patch series contains 3 cache coherency related fixes for the > Panthor driver. > - The first fix, regarding the Inner-shareability, is mandatory to > ensure things work on all platforms (including Juno FPGA) when > no_coherency

Re: [PATCH] drm/panthor: Fix compilation failure on panthor_fw.c

2024-11-20 Thread Liviu Dudau
On Wed, Nov 20, 2024 at 12:41:25PM +0100, Boris Brezillon wrote: > On Tue, 19 Nov 2024 16:44:55 + > Liviu Dudau wrote: > > > Commit 498893bd596e ("drm/panthor: Simplify FW fast reset path") forgot > > to copy the definition of glb_iface when it move one line

Re: [PATCH v2] drm/panthor: Simplify FW fast reset path

2024-11-20 Thread Liviu Dudau
On Tue, Nov 19, 2024 at 03:25:25PM +0100, Boris Brezillon wrote: > On Tue, 19 Nov 2024 13:50:29 + > Karunika Choo wrote: > > > Stop checking the FW halt_status as MCU_STATUS should be sufficient. > > This should make the check for successful FW halt and subsequently > > setting fast_reset to

[PATCH] drm/panthor: Fix compilation failure on panthor_fw.c

2024-11-19 Thread Liviu Dudau
Commit 498893bd596e ("drm/panthor: Simplify FW fast reset path") forgot to copy the definition of glb_iface when it move one line of code. Fixes: Commit 498893bd596e ("drm/panthor: Simplify FW fast reset path") Signed-off-by: Liviu Dudau --- drivers/gpu/drm/panthor/pantho

Re: [PULL] drm-misc-next

2024-11-19 Thread Liviu Dudau
On Mon, Nov 18, 2024 at 08:08:16AM -0700, Nathan Chancellor wrote: > On Thu, Oct 31, 2024 at 02:41:38PM +0100, Maarten Lankhorst wrote: > > Cristian Ciocaltea (3): > > drm/rockchip: Add basic RK3588 HDMI output support > > Can someone please apply [1] to resolve a link time failure seen with

Re: [PATCH] drm/panthor: Simplify FW fast reset path

2024-11-18 Thread Liviu Dudau
B_HALT bit only on post-reset prior > to starting the FW. > > Signed-off-by: Karunika Choo Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_fw.c | 13 ++--- > 1 file changed, 6 insertions(+), 7 deletions(-) > > diff --git a/dr

Re: [PATCH 5/5] drm/connector: make mode_valid accept const struct drm_display_mode

2024-11-18 Thread Liviu Dudau
dm.c| 2 +- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h| 2 +- > drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c | 2 +- > drivers/gpu/drm/arm/malidp_mw.c | 2 +- For the Arm display drivers: Reviewed-by: Liviu Dudau Best re

Re: [PATCH 2/5] drm/panthor: Be robust against runtime PM resume failures in the suspend path

2024-11-14 Thread Liviu Dudau
On Wed, Nov 13, 2024 at 04:42:54PM +0100, Boris Brezillon wrote: > The runtime PM resume operation is not guaranteed to succeed, but if it > fails, the device should be in a suspended state. Make sure we're robust > to resume failures in the unplug path. > > Signed-off-by: Boris Brezillon > --- >

Re: [PATCH 2/5] drm/panthor: Be robust against runtime PM resume failures in the suspend path

2024-11-14 Thread Liviu Dudau
On Thu, Nov 14, 2024 at 12:27:55PM +0100, Boris Brezillon wrote: > On Thu, 14 Nov 2024 11:13:29 + > Liviu Dudau wrote: > > > On Wed, Nov 13, 2024 at 04:42:54PM +0100, Boris Brezillon wrote: > > > The runtime PM resume operation is not guaranteed to succeed, but if it

Re: [PATCH] drm/panthor: Fix a typo in the FW iface flag definitions

2024-11-14 Thread Liviu Dudau
On Wed, Nov 13, 2024 at 05:02:57PM +0100, Boris Brezillon wrote: > Drop the _RD_ in the flag names. > > Signed-off-by: Boris Brezillon Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_fw.c | 62 ++-- > 1 file chan

Re: [PATCH] drm/panthor: Fix memory leak in panthor_ioctl_group_create()

2024-11-14 Thread Liviu Dudau
tation while error cases jump forward to cleanup. > > Cc: sta...@vger.kernel.org > Fixes: 5f7762042f8a ("drm/panthor: Restrict high priorities on group_create") > Signed-off-by: Jann Horn Reviewed-by: Liviu Dudau > --- > testcase: > ``` > #include > #include

Re: [PATCH] drm/panthor: Fix handling of partial GPU mapping of BOs

2024-11-11 Thread Liviu Dudau
is clear that it applies to the next iteration of the loop. Regardsless of the changes you're going to make, Reviewed-by: Liviu Dudau Best regards, Liviu > > -- > 2.25.1 > -- | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --- ¯\_(ツ)_/¯

Re: [PATCH] drm/panthor: Lock XArray when getting entries for heap and VM

2024-11-06 Thread Liviu Dudau
On Wed, Nov 06, 2024 at 02:21:33PM +0100, Boris Brezillon wrote: > On Wed, 6 Nov 2024 13:10:37 + > Liviu Dudau wrote: > > > panthor_heap_pool_release() does not take the panthor_heap_pool::lock, so > > the protection > > is not really there. I could fix panthor_h

[PATCH v2] drm/panthor: Lock XArray when getting entries for the VM

2024-11-06 Thread Liviu Dudau
at operation is protected by the @pool->lock. Fixes: 647810ec2476 ("drm/panthor: Add the MMU/VM logical block") Reported-by: Jann Horn Cc: Boris Brezillon Cc: Steven Price Signed-off-by: Liviu Dudau --- drivers/gpu/drm/panthor/panthor_mmu.c | 2 ++ 1 file changed, 2 insertions(

[PATCH] drm/panthor: Lock XArray when getting entries for heap and VM

2024-11-06 Thread Liviu Dudau
Similar to cac075706f29 ("drm/panthor: Fix race when converting group handle to group object") we need to use the XArray's internal locking when retrieving a pointer from there for heap and vm. Reported-by: Jann Horn Cc: Boris Brezillon Cc: Steven Price Signed-off-by: Liviu Duda

Re: [PATCH] drm/panthor: Lock XArray when getting entries for heap and VM

2024-11-06 Thread Liviu Dudau
On Wed, Nov 06, 2024 at 01:16:41PM +0100, Boris Brezillon wrote: > On Wed, 6 Nov 2024 12:07:48 + > Liviu Dudau wrote: > > > Similar to cac075706f29 ("drm/panthor: Fix race when converting > > group handle to group object") we need to use the XArray's in

Re: [PATCH] drm/panthor: Be stricter about IO mapping flags

2024-11-05 Thread Liviu Dudau
t; I don't > have a working kernel build setup for the test machine yet. Please test it > before applying it. > > Cc: sta...@vger.kernel.org > Fixes: 5fe909cae118 ("drm/panthor: Add the device logical block") > Signed-off-by: Jann Horn > --- > First testcase (can writ

Re: [PATCH v2 1/3] iommu/io-pgtable-arm: Remove split on unmap behavior

2024-11-04 Thread Liviu Dudau
2_LPAE_S1, ARM_32_LPAE_S2, ARM_64_LPAE_S1, ARM_64_LPAE_S2, and > ARM_MALI_LPAE formats. > > Cc: Boris Brezillon > Cc: Steven Price > Cc: Liviu Dudau Reviewed-by: Liviu Dudau Best regards, Liviu > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Jason Gunthorpe >

Re: [PATCH v2 3/3] iommu: Add a kdoc to iommu_unmap()

2024-11-04 Thread Liviu Dudau
t; + * unmapping stopped. I guess 'res' is the return value here. Not my default name for the variable, worth replacing it with "return value" ? Regardless of the acceptance of this nit: Reviewed-by: Liviu Dudau Best regards, Liviu > + */ > size_t iommu_unmap(struct iomm

Re: [PATCH v3 3/3] drm/panthor: Report innocent group kill

2024-10-30 Thread Liviu Dudau
On Tue, Oct 29, 2024 at 05:19:33PM +0100, Boris Brezillon wrote: > On Tue, 29 Oct 2024 16:29:12 +0100 > Boris Brezillon wrote: > > > Groups can be killed during a reset even though they did nothing wrong. > > That usually happens when the FW is put in a bad state by other groups, > > resulting in

Re: [PATCH v2 2/3] drm/panthor: Report group as timedout when we fail to properly suspend

2024-10-29 Thread Liviu Dudau
Add the scheduler logical block") > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_sched.c | 15 +++ > 1 file changed, 11 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/dr

Re: [PATCH v2] drm: drm_fourcc: adding 10/12/14 bit formats

2024-10-29 Thread Liviu Dudau
- DRM_FORMAT_RX142 > - DRM_FORMAT_GXRX142142 > - DRM_FORMAT_AXBXGXRX142142142142 > > They are useful for communicating Bayer data between ISPs and GPU by > emulating GL_R16UI and GL_RG16UI formats > > Signed-off-by: Yulia Garbovich Reviewed-by: Liviu Dudau Best regards, Liviu &

Re: [PATCH] drm/panthor: use defines for sync flags

2024-10-29 Thread Liviu Dudau
On Tue, Oct 29, 2024 at 10:46:29AM +0100, Erik Faye-Lund wrote: > Enums are always signed, and assigning 1u << 31 to it invokes > implementation defined behavior. It's not a great idea to depend on this > in the UAPI, and it turns out no other UAPI does either. > > So let's do what other UAPI does

Re: [PATCH] drm/panthor: Fail job creation when the group is dead

2024-10-25 Thread Liviu Dudau
uot;drm/panthor: Add the scheduler logical block") > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_sched.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/panthor/p

  1   2   3   4   5   6   7   8   9   10   >