Re: [PATCH] arm/komeda: Remove all CONFIG_DEBUG_FS conditional compilations

2024-06-06 Thread Liviu Dudau
gt; is actually tested for both CONFIG_DEBUG_FS configuration values. > Assuming most developers have it enabled, CONFIG_DEBUG_FS=n is not tested > much and may fail the build due to the conditional compilation. > > Reported-by: k2ci > Signed-off-by: pengfuyuan Acked-by: Liviu

Re: [PATCH] arm/komeda: Compile DEFINE_SHOW_ATTRIBUTE() only when CONFIG_DEBUG_FS is enabled

2024-06-06 Thread Liviu Dudau
On Thu, Jun 06, 2024 at 11:20:58AM +0300, Jani Nikula wrote: > On Thu, 06 Jun 2024, pengfuyuan wrote: > > We do not call komeda_debugfs_init() and the debugfs core function > > declaration if CONFIG_DEBUG_FS is not defined, but we should not > > compile it either because the debugfs core function

Re: [PATCH] drm/komeda: remove unused struct 'gamma_curve_segment'

2024-05-20 Thread Liviu Dudau
On Thu, May 16, 2024 at 02:37:24PM +0100, li...@treblig.org wrote: > From: "Dr. David Alan Gilbert" > > 'gamma_curve_segment' looks like it has never been used. > Remove it. > > Signed-off-by: Dr. David Alan Gilbert Acked-by: Liviu Dudau Thanks for the cl

Re: [PATCH v2] drm/arm/comeda: don't use confusing 'timeout' variable name

2024-05-07 Thread Liviu Dudau
if (!timeout) return -ETIMEDOUT; > > with all kinds of permutations. Check the return value directly to drop > 'timeout' which also fixes its wrong type. > > Signed-off-by: Wolfram Sang Acked-by: Liviu Dudau I will change the subject line to s/comeda/komeda/ when

Re: [PATCH 1/1] drm: arm: display: komeda: komeda_crtc: use 'time_left' variable with wait_for_completion_timeout()

2024-05-03 Thread Liviu Dudau
On Thu, May 02, 2024 at 11:02:53PM +0200, Wolfram Sang wrote: > There is a confusing pattern in the kernel to use a variable named 'timeout' > to > store the result of wait_for_completion_timeout() causing patterns like: > > timeout = wait_for_completion_timeout(...) > if (!timeout)

Re: [PATCH 4/4] drm/panthor: Call panthor_sched_post_reset() even if the reset failed

2024-05-03 Thread Liviu Dudau
llon Reviewed-by: Liviu Dudau > --- > drivers/gpu/drm/panthor/panthor_device.c | 7 +-- > drivers/gpu/drm/panthor/panthor_sched.c | 19 ++- > drivers/gpu/drm/panthor/panthor_sched.h | 2 +- > 3 files changed, 16 insertions(+), 12 deletions(-) > >

Re: [PATCH 3/4] drm/panthor: Reset the FW VM to NULL on unplug

2024-05-03 Thread Liviu Dudau
n > > Reviewed-by: Steven Price Acked-by: Liviu Dudau > > > --- > > drivers/gpu/drm/panthor/panthor_fw.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/gpu/drm/panthor/panthor_fw.c > > b/drivers/gpu/drm/panthor/panthor_fw

Re: [PATCH 2/4] drm/panthor: Keep a ref to the VM at the panthor_kernel_bo level

2024-05-03 Thread Liviu Dudau
On Thu, May 02, 2024 at 08:38:10PM +0200, Boris Brezillon wrote: > Avoids use-after-free situations when panthor_fw_unplug() is called > and the kernel BO was mapped to the FW VM. > > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau > --- > drivers/gpu/drm/panthor/pa

Re: [PATCH 1/4] drm/panthor: Force an immediate reset on unrecoverable faults

2024-05-03 Thread Liviu Dudau
On Thu, May 02, 2024 at 08:38:09PM +0200, Boris Brezillon wrote: > If the FW reports an unrecoverable fault, we need to reset the GPU > before we can start re-using it again. > > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau > --- > drivers/gpu/drm/panthor/pan

Re: [PATCH v4 5/5] drm/panthor: Document drm_panthor_tiler_heap_destroy::handle validity constraints

2024-05-03 Thread Liviu Dudau
h > > Signed-off-by: Boris Brezillon > Reviewed-by: Steven Price Reviewed-by: Liviu Dudau > --- > include/uapi/drm/panthor_drm.h | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/include/uapi/drm/panthor_drm.h b/include/uapi/drm/pant

Re: [PATCH v4 4/5] drm/panthor: Fix an off-by-one in the heap context retrieval logic

2024-05-03 Thread Liviu Dudau
s: 9cca48fa4f89 ("drm/panthor: Add the heap logical block") > Reported-by: Eric Smith > Signed-off-by: Boris Brezillon > Tested-by: Eric Smith Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_heap.c | 5 +++-- > 1 file changed, 3 insert

Re: [PATCH] drm/panthor: Fix the FW reset logic

2024-05-02 Thread Liviu Dudau
ally writing DISABLE to the MCU_CONTROL register. > > Fixes: 2718d91816ee ("drm/panthor: Add the FW logical block") > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau > --- > drivers/gpu/drm/panthor/panthor_fw.c | 7 --- > 1 file changed, 4 insertions(+), 3 de

Re: [PATCH v2 4/4] drm/panthor: Fix an off-by-one in the heap context retrieval logic

2024-04-30 Thread Liviu Dudau
On Tue, Apr 30, 2024 at 01:28:52PM +0200, Boris Brezillon wrote: > ID 0 is reserved to encode 'no-tiler-heap', the heap ID range is > [1:MAX_HEAPS_PER_POOL], which we occasionally need to turn into an index > in the [0:MAX_HEAPS_PER_POOL-1] when we want to access the context object. > > v2: > -

Re: [PATCH v2 3/4] drm/panthor: Relax the constraints on the tiler chunk size

2024-04-30 Thread Liviu Dudau
off-by: Boris Brezillon With the typo that Adrián mentioned fixed, Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_heap.c | 8 > include/uapi/drm/panthor_drm.h | 6 +- > 2 files changed, 9 insertions(+), 5 deletions(-) >

Re: [PATCH v2 2/4] drm/panthor: Make sure the tiler initial/max chunks are consistent

2024-04-30 Thread Liviu Dudau
eturn -EINVAL; > + Is is just me that feels like a lost opportunity to merge the check with the one above? if (!initial_chunk_count || initial_chunk_count > max_chunks) return -EINVAL; Otherwise, Reviewed-by: Liviu Dudau Best regards, Liviu > if (hweight32(chun

Re: [PATCH v2 1/4] drm/panthor: Fix tiler OOM handling to allow incremental rendering

2024-04-30 Thread Liviu Dudau
urn -ENOMEM for all kind of allocation > failures > - Document the panthor_heap_grow() semantics > > Fixes: de8548813824 ("drm/panthor: Add the scheduler logical block") > Signed-off-by: Antonino Maniscalco > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dud

Re: [PATCH] drm/panthor: Kill the faulty_slots variable in panthor_sched_suspend()

2024-04-26 Thread Liviu Dudau
On Thu, Apr 25, 2024 at 12:39:20PM +0200, Boris Brezillon wrote: > We can use upd_ctx.timedout_mask directly, and the faulty_slots update > in the flush_caches_failed situation is never used. > > Suggested-by: Suggested-by: Steven Price > Signed-off-by: Boris Brezillon Reviewed-

Re: [PATCH v2 3/3] drm/panthor: Enable fdinfo for memory stats

2024-04-24 Thread Liviu Dudau
fferently: how are your words describing your code change here? > > Also, we consider a PRIME imported BO to be resident if its matching > dma_buf has an open attachment, which means its backing storage had already > been allocated. Reviewed-by: Liviu Dudau Best regards, Liviu >

Re: [PATCH v2 1/3] drm/panthor: introduce job cycle and timestamp accounting

2024-04-24 Thread Liviu Dudau
> + > PANTHOR_VM_KERNEL_AUTO_VA); > + if (IS_ERR(group->syncobjs.bo)) { > + ret = PTR_ERR(group->syncobjs.bo); > goto err_put_group; > } > > - ret = panthor_kernel_bo_vmap(group->syncobjs); > + ret = panthor_kernel_bo_vmap(group->syncobjs.bo); > if (ret) > goto err_put_group; > > - memset(group->syncobjs->kmap, 0, > -group_args->queues.count * sizeof(struct panthor_syncobj_64b)); > + memset(group->syncobjs.bo->kmap, 0, syncobj_bo_size); > + > + group->syncobjs.times_offset = > + group_args->queues.count * sizeof(struct panthor_syncobj_64b); > > - for (i = 0; i < group_args->queues.count; i++) { > - group->queues[i] = group_create_queue(group, _args[i]); > + for (i = 0, total_slots = 0; i < group_args->queues.count; i++) { > + group->queues[i] = group_create_queue(group, _args[i], > total_slots); > if (IS_ERR(group->queues[i])) { > ret = PTR_ERR(group->queues[i]); > group->queues[i] = NULL; > goto err_put_group; > } > > + total_slots += (queue_args[i].ringbuf_size / (SLOTSIZE)); > group->queue_count++; > } > > -- > 2.44.0 > With those comments addressed, 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/arm/malidp: fix a possible null pointer dereference

2024-04-08 Thread Liviu Dudau
e calling > __drm_atomic_helper_connector_reset. > > Fixes: 8cbc5caf36ef ("drm: mali-dp: Add writeback connector") > Signed-off-by: Huai-Yuan Liu Reviewed-by: Liviu Dudau Thanks for the patch. I will pull it into drm-misc-fixes before the end of the week. Best regards, Liviu > --- > V2: > * In

Re: [PATCH] drm/arm/malidp: fix a possible null pointer dereference

2024-04-03 Thread Liviu Dudau
Hi, On Wed, Apr 03, 2024 at 09:43:01AM +0800, Huai-Yuan Liu wrote: > > In malidp_mw_connector_reset, new memory is allocated with kzalloc, but > no check is performed. In order to prevent null pointer dereferencing, > ensure that mw_state is checked before calling >

[PATCH 2/2] drm/panthor: Fix some kerneldoc warnings

2024-04-02 Thread Liviu Dudau
When compiling with W=1 the build process will flag empty comments, misnamed documented variables and incorrect tagging of functions. Fix them in one go. Fixes: de8548813824 ("drm/panthor: Add the scheduler logical block") Cc: Boris Brezillon Cc: Steven Price Signed-off-by: L

[PATCH 1/2] drm/panthor: Cleanup unused variable 'cookie'

2024-04-02 Thread Liviu Dudau
d/resume()") Cc: Boris Brezillon Cc: Steven Price Signed-off-by: Liviu Dudau --- drivers/gpu/drm/panthor/panthor_device.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/panthor/panthor_device.h b/drivers/gpu/drm/panthor/panthor_device.h index dc3e9c666b5bd4..2

Re: [PATCH 1/2] drm/panthor: Enable fdinfo for cycle and time measurements

2024-03-28 Thread Liviu Dudau
Hi Adrián, Appologies for the delay in reviewing this. On Tue, Mar 05, 2024 at 09:05:49PM +, Adrián Larumbe wrote: > These values are sampled by the firmware right before jumping into the UM > command stream and immediately after returning from it, and then kept inside a > per-job accounting

Re: [PATCH v3 3/3] drm/panthor: Drop the dev_enter/exit() sections in _irq_suspend/resume()

2024-03-26 Thread Liviu Dudau
the _unplug() functions, which we don't want. > > v3: > - New patch > > Fixes: 5fe909cae118 ("drm/panthor: Add the device logical block") > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_device

Re: [PATCH v3 2/3] drm/panthor: Fix ordering in _irq_suspend()

2024-03-26 Thread Liviu Dudau
d. > > v3: > - Add Steve's R-b > > v2: > - New patch > > Fixes: 5fe909cae118 ("drm/panthor: Add the device logical block") > Reported-by: Steven Price > Signed-off-by: Boris Brezillon > Reviewed-by: Steven Price Acked-by: Liviu Dudau Best regards, Livi

Re: [PATCH v3 1/3] drm/panthor: Fix IO-page mmap() for 32-bit userspace on 64-bit kernel

2024-03-26 Thread Liviu Dudau
offset() > helper. > > v3: > - No changes > > v2: > - Kill panthor_device_mmio_offset() > > Fixes: 5fe909cae118 ("drm/panthor: Add the device logical block") > Reported-by: Adrián Larumbe > Reported-by: Lukas F. Hartmann > Closes: https://gitlab.freedesktop.org/mesa/me

Re: [PATCH][next] drm/panthor: Fix spelling mistake "readyness" -> "readiness"

2024-03-26 Thread Liviu Dudau
On Tue, Mar 26, 2024 at 10:02:19AM +, Colin Ian King wrote: > There is a spelling mistake in a drm_err message. Fix it. > > Signed-off-by: Colin Ian King Acked-by: Liviu Dudau Boris, can you also pick this one up when you're pushing your kernel doc fix? Best regar

Re: [PATCH] drm/panthor: Fix wrong kernel-doc format in the uAPI header

2024-03-26 Thread Liviu Dudau
On Tue, Mar 26, 2024 at 10:30:55AM +0100, Boris Brezillon wrote: > The kernel doc prefix is /** not /*. > > Reported-by: Stephen Rothwell > Signed-off-by: Boris Brezillon Acked-by: Liviu Dudau Best regards, Liviu > --- > include/uapi/drm/panthor_drm.h | 4 ++-- &g

Re: [PATCH v2 2/3] drm/panthor: Fix ordering in _irq_suspend()

2024-03-26 Thread Liviu Dudau
On Mon, Mar 25, 2024 at 07:02:13PM +0100, Boris Brezillon wrote: > On Mon, 25 Mar 2024 17:16:16 + > Liviu Dudau wrote: > > > On Mon, Mar 25, 2024 at 02:57:04PM +0100, Boris Brezillon wrote: > > > Make sure we set suspended=true last to avoid generating an irq storm &g

Re: [PATCH v2 3/3] drm/panthor: Actually suspend IRQs in the unplug path

2024-03-25 Thread Liviu Dudau
On Mon, Mar 25, 2024 at 02:57:05PM +0100, Boris Brezillon wrote: > panthor_xxx_irq_suspend() doesn't mask the interrupts if drm_dev_unplug() > has been called, which is always the case when our panthor_xxx_unplug() > helpers are called. Fix that by introducing a panthor_xxx_unplug() helper > that

Re: [PATCH v2 2/3] drm/panthor: Fix ordering in _irq_suspend()

2024-03-25 Thread Liviu Dudau
On Mon, Mar 25, 2024 at 02:57:04PM +0100, Boris Brezillon wrote: > Make sure we set suspended=true last to avoid generating an irq storm > in the unlikely case where an IRQ happens between the suspended=true > assignment and the _INT_MASK update. > > v2: > - New patch > > Reported-by: Steven

Re: [PATCH] drm/panthor: Fix the CONFIG_PM=n case

2024-03-18 Thread Liviu Dudau
realistic platforms to test where you can enable panthor but disable runtime power management. All our emulator configuration are based on Juno (ARCH_VEXPRESS) which select CONFIG_PM. Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_device.c | 13

Re: [PATCH 22/43] drm/arm/komeda: Use fbdev-dma

2024-03-13 Thread Liviu Dudau
> Signed-off-by: Thomas Zimmermann > Cc: Liviu Dudau Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c

Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"

2024-03-11 Thread Liviu Dudau
On Mon, Mar 11, 2024 at 05:52:59PM +0200, Jani Nikula wrote: > On Mon, 11 Mar 2024, Liviu Dudau wrote: > > On Mon, Mar 11, 2024 at 04:49:30PM +0200, Jani Nikula wrote: > >> On Mon, 11 Mar 2024, Liviu Dudau wrote: > >> > So with this revert we're OK with an

Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"

2024-03-11 Thread Liviu Dudau
On Mon, Mar 11, 2024 at 04:49:30PM +0200, Jani Nikula wrote: > On Mon, 11 Mar 2024, Liviu Dudau wrote: > > On Mon, Mar 11, 2024 at 02:26:50PM +0200, Jani Nikula wrote: > >> On Mon, 11 Mar 2024, Boris Brezillon wrote: > >> > On Mon, 11 Mar 2024 13:51:46 +

Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"

2024-03-11 Thread Liviu Dudau
n PCI_MSI > >> >> drivers/pci/Kconfig:39: symbol PCI_MSI is selected by AMD_IOMMU > >> >> drivers/iommu/amd/Kconfig:3:symbol AMD_IOMMU depends on > >> >> IOMMU_SUPPORT > >> >> For a resolution refer to Documentation/kbuild/kconfig-langu

Re: [PATCH] drm/panthor: Add support for performance counters

2024-03-08 Thread Liviu Dudau
On Fri, Mar 08, 2024 at 04:15:15PM +0100, Boris Brezillon wrote: > On Fri, 8 Mar 2024 13:52:18 + > Liviu Dudau wrote: > > > Hi Adrián, > > > > Thanks for the patch and appologies for taking a bit longer to respond, > > I was trying to gather some inte

Re: [PATCH] drm/panthor: Add support for performance counters

2024-03-08 Thread Liviu Dudau
Hi Adrián, Thanks for the patch and appologies for taking a bit longer to respond, I was trying to gather some internal Arm feedback before replying. On Tue, Mar 05, 2024 at 04:58:16PM +, Adrián Larumbe wrote: > This brings in support for Panthor's HW performance counters and querying > them

Re: [PATCH 1/3] drm/arm/komeda: Fix komeda probe failing if there are no links in the secondary pipeline

2024-03-06 Thread Liviu Dudau
Hi Faiz, On Mon, Feb 19, 2024 at 03:39:13PM +0530, Faiz Abbas wrote: > Since commit f7936d6beda9 ("drm/arm/komeda: Remove component framework and > add a simple encoder"), the devm_drm_of_get_bridge() call happens > regardless of whether any remote nodes are available on the pipeline. Fix > this

Re: [PATCH 1/3] drm/panthor: Fix panthor_devfreq kerneldoc

2024-03-04 Thread Liviu Dudau
On Mon, Mar 04, 2024 at 10:08:10AM +0100, Boris Brezillon wrote: > Missing '*' to have a valid kerneldoc prefix. > > Reported-by: kernel test robot > Closes: > https://lore.kernel.org/oe-kbuild-all/202403031019.6jvroqgt-...@intel.com/ > Signed-off-by: Boris Brezillon LGTM :) Best regards,

Re: [PATCH 2/3] drm/panthor: Explicitly include page.h for the {virt,__phys)_to_pfn() defs

2024-03-04 Thread Liviu Dudau
n sparc64 possible because of 'depends on COMPILE_TEST'? Otherwise it doesn't make sense to try to build this for any arch other than arm[64]. Regardless, patch looks harmless, so Reviewed-by: Liviu Dudau Best regards, Liviu > > Reported-by: kernel test robot > Closes: > https://lore

Re: [PATCH 3/3] drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue

2024-03-04 Thread Liviu Dudau
Kconfig dependency instead. > > If someone needs to relax this dependency, it can be done in a follow-up. > > Reported-by: kernel test robot > Closes: > https://lore.kernel.org/oe-kbuild-all/202403031944.eoimq8wk-...@intel.com/ > Signed-off-by: Boris Brezillon Reviewed-by

Re: [PATCH 0/3] Fixes for the komeda driver

2024-02-27 Thread Liviu Dudau
Hi Faiz, On Mon, Feb 19, 2024 at 03:39:12PM +0530, Faiz Abbas wrote: > The following patches add fixes to the komeda DPU driver. > > Patch 1 fixes an issue where the crtc always expects both pipelines to > always have remote nodes populated. > > Patch 2 is a cosmetic fix that ensures komeda

Re: [PATCH v5 00/14] drm: Add a driver for CSF-based Mali GPUs

2024-02-26 Thread Liviu Dudau
: Add the MMU/VM logical block > drm/panthor: Add the FW logical block > drm/panthor: Add the heap logical block > drm/panthor: Add the scheduler logical block > drm/panthor: Add the driver frontend block > drm/panthor: Allow driver compilation > drm/panthor:

Re: [PATCH v4 05/14] drm/panthor: Add GEM logical block

2024-02-12 Thread Liviu Dudau
ned-off-by: Boris Brezillon > Acked-by: Steven Price # MIT+GPL2 relicensing,Arm > Acked-by: Grant Likely # MIT+GPL2 relicensing,Linaro > Acked-by: Boris Brezillon # MIT+GPL2 > relicensing,Collabora Reviewed-by: Liviu Dudau > --- > drivers/gpu/drm/panthor/panthor_gem.c |

Re: [PATCH v4 03/14] drm/panthor: Add the device logical block

2024-02-08 Thread Liviu Dudau
On Thu, Feb 08, 2024 at 05:00:23PM +0100, Boris Brezillon wrote: > On Thu, 8 Feb 2024 15:55:36 + > Liviu Dudau wrote: > > > On Thu, Feb 08, 2024 at 04:14:59PM +0100, Boris Brezillon wrote: > > > On Thu, 8 Feb 2024 14:30:02 + > > > Liviu Duda

Re: [PATCH v4 00/14] drm: Add a driver for CSF-based Mali GPUs

2024-02-08 Thread Liviu Dudau
hor: Add the MMU/VM logical block > drm/panthor: Add the FW logical block > drm/panthor: Add the heap logical block > drm/panthor: Add the scheduler logical block > drm/panthor: Add the driver frontend block > drm/panthor: Allow driver compilation > drm/pan

Re: [PATCH v4 03/14] drm/panthor: Add the device logical block

2024-02-08 Thread Liviu Dudau
On Thu, Feb 08, 2024 at 04:14:59PM +0100, Boris Brezillon wrote: > On Thu, 8 Feb 2024 14:30:02 + > Liviu Dudau wrote: > > > > +int panthor_device_init(struct panthor_device *ptdev) > > > +{ > > > + struct resource *res; > > > + struct page *p; >

Re: [PATCH v4 03/14] drm/panthor: Add the device logical block

2024-02-08 Thread Liviu Dudau
ice *dev) > +{ > + struct panthor_device *ptdev = dev_get_drvdata(dev); > + int ret, cookie; > + > + if (atomic_read(>pm.state) != PANTHOR_DEVICE_PM_STATE_SUSPENDED) > + return -EINVAL; > + > + atomic_set(>pm.state, PANTHOR_DEVICE_PM_STATE_

Re: [PATCH v4 01/14] drm/panthor: Add uAPI

2024-02-08 Thread Liviu Dudau
l new MAP operations will be > + * rejected, and any GPU job targeting this VM will fail. > + * UNMAP operations are still accepted. > + * > + * The only way to recover from an unusable VM is to create a new > + * VM, and destroy the old one. &

Re: [PATCH v3 03/14] drm/panthor: Add the device logical block

2023-12-22 Thread Liviu Dudau
Hi Boris, On Mon, Dec 04, 2023 at 06:32:56PM +0100, Boris Brezillon wrote: > The panthor driver is designed in a modular way, where each logical > block is dealing with a specific HW-block or software feature. In order > for those blocks to communicate with each other, we need a central >

Re: [PATCH v3 11/14] drm/panthor: Add the driver frontend block

2023-12-20 Thread Liviu Dudau
on # MIT+GPL2 > relicensing,Collabora Hello, Just some small name mismatch spotted here. Otherwise, Reviewed-by: Liviu Dudau > --- > drivers/gpu/drm/panthor/panthor_drv.c | 1454 + > 1 file changed, 1454 insertions(+) > create mode 100644 drivers/gpu/drm/

Re: [PATCH v3 08/14] drm/panthor: Add the FW logical block

2023-12-20 Thread Liviu Dudau
On Mon, Dec 04, 2023 at 06:33:01PM +0100, Boris Brezillon wrote: > Contains everything that's FW related, that includes the code dealing > with the microcontroller unit (MCU) that's running the FW, and anything > related to allocating memory shared between the FW and the CPU. > > A few global FW

Re: [PATCH v3 13/14] dt-bindings: gpu: mali-valhall-csf: Add support for Arm Mali CSF GPUs

2023-12-06 Thread Liviu Dudau
Hi Rob, Thanks for reviewing this! On Tue, Dec 05, 2023 at 02:48:27PM -0600, Rob Herring wrote: > On Mon, Dec 04, 2023 at 06:33:06PM +0100, Boris Brezillon wrote: > > From: Liviu Dudau > > > > Arm has introduced a new v10 GPU architecture that replaces the Job Manager >

Re: [PATCH v2] drm: panel-orientation-quirks: Add quirk for One Mix 2S

2023-10-03 Thread Liviu Dudau
On Sun, Oct 01, 2023 at 02:21:43PM +0200, Hans de Goede wrote: > Hi, > > On 10/1/23 13:47, Kai Uwe Broulik wrote: > > The One Mix 2S is a mini laptop with a 1200x1920 portrait screen > > mounted in a landscape oriented clamshell case. Because of the too > > generic DMI strings this entry is also

Re: [PATCH v2 14/15] dt-bindings: gpu: mali-valhall-csf: Add initial bindings for panthor driver

2023-09-20 Thread Liviu Dudau
On Wed, Sep 20, 2023 at 03:51:36PM +0200, Krzysztof Kozlowski wrote: > On 20/09/2023 15:41, Liviu Dudau wrote: > >>> +properties: > >>> + $nodename: > >>> +pattern: '^gpu@[a-f0-9]+$' > >>> + > >>> + compatible: > >>>

Re: [PATCH v2 14/15] dt-bindings: gpu: mali-valhall-csf: Add initial bindings for panthor driver

2023-09-20 Thread Liviu Dudau
On Wed, Sep 20, 2023 at 03:56:24PM +0200, Boris Brezillon wrote: > On Wed, 20 Sep 2023 14:41:05 +0100 > Liviu Dudau wrote: > > > > > > > Please describe also power domains - constrains and names. > > > > I'm not sure the power domains and how to han

Re: [PATCH v2 14/15] dt-bindings: gpu: mali-valhall-csf: Add initial bindings for panthor driver

2023-09-20 Thread Liviu Dudau
Hi Krzysztof, Thanks for taking the time to review this patch. I'm about to update it to address your comments and I need some clarifications from you. On Sun, Aug 20, 2023 at 10:01:25AM +0200, Krzysztof Kozlowski wrote: > On 09/08/2023 18:53, Boris Brezillon wrote: > > From: Li

Re: [PATCH v2 04/15] drm/panthor: Add the device logical block

2023-09-04 Thread Liviu Dudau
On Wed, Aug 30, 2023 at 02:17:57PM +0100, Steven Price wrote: > On 29/08/2023 15:00, Boris Brezillon wrote: > > On Fri, 11 Aug 2023 16:47:56 +0100 > > Steven Price wrote: > > > >> On 09/08/2023 17:53, Boris Brezillon wrote: > >>> The panthor driver is designed in a modular way, where each

Re: [PATCH v2 02/15] drm/panthor: Add uAPI

2023-09-01 Thread Liviu Dudau
; > + > + /** > + * @kernel_va_range: Size of the VA space reserved for kernel objects. > + * > + * If kernel_va_range is zero, we pick half of the VA space for kernel > objects. > + * > + * Kernel VA space is always placed at the top of the

Re: [PATCH v2 15/15] drm/panthor: Add an entry to MAINTAINERS

2023-08-31 Thread Liviu Dudau
esktop.org/drm/drm-misc > +F: drivers/gpu/drm/panthor/ > +F: include/uapi/drm/panthor_drm.h Can we also add an entry for the bindings? +F: Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml Also, I would like to volunteer as maintainer alongside Steven, so can I please get a

Re: [PATCH v3 3/3] drm/komeda: Fix IS_ERR() vs NULL check in komeda_component_get_avail_scaler()

2023-07-21 Thread Liviu Dudau
RE") > Signed-off-by: Gaosheng Cui > Reviewed-by: Liviu Dudau > --- > drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_pipeline_stat

Re: [PATCH v3] drm/arm/komeda: Remove component framework and add a simple encoder

2023-07-18 Thread Liviu Dudau
for the delay in replying, I thought I already did. Patch looks good and thanks for the effort. Reviewed-by: Liviu Dudau I'm going to pull this into drm-misc-next by the end of the week. Best regards, Liviu > --- > v3 -> v2: > * Rebased to latest drm-misc-next > > v2 ->

Re: [PATCH] drm: Explicitly include correct DT includes

2023-07-18 Thread Liviu Dudau
alidp_drv.c > index c03cfd57b752..a5a9534d4353 100644 > --- a/drivers/gpu/drm/arm/malidp_drv.c > +++ b/drivers/gpu/drm/arm/malidp_drv.c > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include > #include > #include > For the komeda and malidp d

Re: [PATCH v2 3/3] drm/komeda: Fix IS_ERR() vs NULL check in komeda_component_get_avail_scaler()

2023-07-13 Thread Liviu Dudau
t; Let me know if there's anything I can do, thanks for your work again! > > Gaosheng, > > On 2023/7/13 16:54, Liviu Dudau wrote: > > Hello, > > > > On Thu, Jul 13, 2023 at 10:05:56AM +0800, Gaosheng Cui wrote: > > > The komeda_pipeline_get_state() return

Re: [PATCH v2 3/3] drm/komeda: Fix IS_ERR() vs NULL check in komeda_component_get_avail_scaler()

2023-07-13 Thread Liviu Dudau
ndling the return value from komeda_pipeline_get_state(). If IS_ERR(st) is true it should use return ERR_CAST(st), following the same pattern as komeda_pipeline_get_state(). If you don't want to update this patch I can send a separate patch. Otherwise, the change looks good to me. Reviewed-by:

Re: [PATCH v2] drm/arm/komeda: Remove component framework and add a simple encoder

2023-07-05 Thread Liviu Dudau
Hi Faiz, On Tue, Jul 04, 2023 at 10:04:54PM +0530, Faiz Abbas wrote: > The Komeda driver always expects the remote connector node to initialize > an encoder. It uses the component aggregator framework which consists > of component->bind() calls used to initialize the remote encoder and attach >

Re: [PATCH v4 3/5] drm/arm: Make ARM devices menu depend on DRM

2023-07-04 Thread Liviu Dudau
On Tue, Jul 04, 2023 at 01:05:27AM +0200, Javier Martinez Canillas wrote: > Otherwise if CONFIG_DRM is disabled, menuconfig will show an empty menu. > > Signed-off-by: Javier Martinez Canillas Acked-by: Liviu Dudau Best regards, Liviu > --- > > (no changes since v1) >

Re: [PATCH] drm/arm/komeda: Remove component framework and add a simple encoder

2023-06-29 Thread Liviu Dudau
Hi Faiz, Thanks for the patch and for addressing what was at some moment on my "nice to improve / cleanup" list. Sorry for the delay in responding, I had to revive the bits of an old setup to be able to test this properly, with 2 encoders attached. On Wed, Jun 21, 2023 at 02:11:16PM +0530, Faiz

Re: [PATCH 02/36] drm/drm_property: make replace_property_blob_from_id a DRM helper

2023-05-25 Thread Liviu Dudau
t Cc-ed because of a comment, but I did have a look at the whole patch. If it is useful, then you can add Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/malidp_crtc.c | 2 +- > drivers/gpu/drm/drm_atomic_uapi.c | 43 --- > dri

Re: [PATCH 03/53] drm/arm/malidp: Convert to platform remove callback returning void

2023-05-10 Thread Liviu Dudau
eturning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-König Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/malidp_drv.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/dr

Re: [PATCH 02/53] drm/arm/hdlcd: Convert to platform remove callback returning void

2023-05-10 Thread Liviu Dudau
eturning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-König Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/dr

Re: [PATCH 01/53] drm/komeda: Convert to platform remove callback returning void

2023-05-10 Thread Liviu Dudau
eturning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-König Acked-by: Liviu Dudau Thanks for the clean up! Best regards, Liviu > --- > drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 5 ++--- > 1 file changed, 2 insertions(+),

Re: [RFC PATCH 00/10] Xe DRM scheduler and long running workload plans

2023-04-18 Thread Liviu Dudau
On Mon, Apr 03, 2023 at 05:22:01PM -0700, Matthew Brost wrote: > Hello, Hello, Jumping a bit late on this thread as I was waiting on some approvals and then holidays kicked in, but I would like to (re)introduce myself and the people I work with and to let you know that we are interested in the

Re: [PATCH] drm/komeda: Take over EFI framebuffer properly

2023-03-15 Thread Liviu Dudau
On Wed, Mar 15, 2023 at 09:34:37AM +, Steven Price wrote: > On 13/03/2023 10:22, patrik.bergl...@arm.com wrote: > > From: Patrik Berglund > > > > The Arm Morello board EDK2 port already provides an EFI GOP display for > > Ceti/Cetus (Komeda) with more boards incoming. > > However, once the

Re: [PATCH -next 1/2] drm/arm/malidp: Use devm_platform_get_and_ioremap_resource()

2023-03-14 Thread Liviu Dudau
(), as this is exactly > what this function does. > > Since 'struct platform_device *pdev = to_platform_device(dev)', > 'pdev->dev' is equivalent to 'dev'. > > Signed-off-by: Yang Li Acked-by: Liviu Dudau Thanks for the cleanup! I will pull this patch and the hdlcd on

Re: [PATCH -next 2/2] drm/arm/hdlcd: Use devm_platform_ioremap_resource()

2023-03-14 Thread Liviu Dudau
s this is exactly what this function > does. > > Since 'struct platform_device *pdev = to_platform_device(drm->dev)', > 'drm->dev' is equivalent to 'pdev->deva'. > > Signed-off-by: Yang Li Acked-by: Liviu Dudau Thanks for cleaning this up! Best regards, Liviu > --- &

Re: [PATCH] drm/arm/malidp: use sysfs_emit in show function callback

2023-01-30 Thread Liviu Dudau
r_show.cocci Coccinelle script. > > Signed-off-by: Deepak R Varma Acked-by: Liviu Dudau I will push the change into drm-misc-next by the end of the week. Best regards, Liviu > --- > drivers/gpu/drm/arm/malidp_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH v3 3/3] drm: Convert users of drm_of_component_match_add to component_match_add_of

2023-01-20 Thread Liviu Dudau
ce *pdev) > { > struct device_node *port; > @@ -929,9 +922,7 @@ static int malidp_platform_probe(struct platform_device > *pdev) > if (!port) > return -ENODEV; > > - drm_of_component_match_add(>dev, , malidp_compare_dev, > -

Re: [PATCH v2 02/10] drm: Include where needed

2023-01-11 Thread Liviu Dudau
a_drv.c > b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > index 3f4e719eebd8..28f76e07dd95 100644 > --- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > @@ -6,6 +6,7 @@ > */ > #include > #include > +#in

Re: [PATCH 3/9] drm/arm/hdlcd: use new debugfs device-centered functions

2023-01-03 Thread Liviu Dudau
hook and add the debugfs files directly on hdlcd_drm_bind(), > before drm_dev_register(). > > Signed-off-by: Maíra Canal Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 24 +--- > 1 file changed, 9 insertions(+), 15 deletion

Re: [PATCH] drm: mali-dp: Add check for kzalloc

2022-12-08 Thread Liviu Dudau
Hi Jiasheng, I appreciate the effort you have put into this and I find nothing wrong with the intention of the patch. However, I don't intend to move base from being the first member of the malidp_mw_connector_state struct as it has other benefits in the code and we can use container_of() in

Re: [PATCH] drm: mali-dp: Add check for kzalloc

2022-12-07 Thread Liviu Dudau
On Wed, Dec 07, 2022 at 01:59:04PM +, Robin Murphy wrote: > On 2022-12-07 09:21, Jiasheng Jiang wrote: > > As kzalloc may fail and return NULL pointer, it should be better to check > > the return value in order to avoid the NULL pointer dereference in > > __drm_atomic_helper_connector_reset. >

Re: [PATCH] drm: mali-dp: Add check for kzalloc

2022-12-07 Thread Liviu Dudau
ot;drm: mali-dp: Add writeback connector") > Signed-off-by: Jiasheng Jiang Thanks for catching this! Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/malidp_mw.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/gp

Re: [PATCH drm-misc-next v3 0/5] drm/arm/malidp: use drm managed resources

2022-11-16 Thread Liviu Dudau
On Wed, Oct 26, 2022 at 05:59:29PM +0200, Danilo Krummrich wrote: > Hi, Hi Danilo, Sorry for the additional delay in reviewing and testing this series. I've now managed to get enough of both to be happy with the series. For the whole series: Reviewed-by: Liviu Dudau I will push the ser

Re: [PATCH 4/5] drm/komeda: Fix IS_ERR() vs NULL check in komeda_component_get_avail_scaler()

2022-11-10 Thread Liviu Dudau
gned-off-by: Gaosheng Cui Acked-by: Liviu Dudau Thanks for the fix! Best regards, Liviu > --- > drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_pipeline_

Re: [PATCH drm-misc-next v4 0/4] drm/arm/hdlcd: use drm managed resources

2022-11-09 Thread Liviu Dudau
but > > hope that > > this is something you'll keep in mind in the later series when you do > > drm_dev_unplug(). > > Yes, I'd expect this to be related to the missing protection of platform > device bound resources. > > > > > With that, for the whole

Re: [PATCH drm-misc-next v4 0/4] drm/arm/hdlcd: use drm managed resources

2022-11-04 Thread Liviu Dudau
nd in the later series when you do drm_dev_unplug(). With that, for the whole series: Acked-by: Liviu Dudau Thanks for the patience and going through the series iterations with me. I can pull this series into drm-misc-next on Monday if you don't have any other plans. Best regards, Liviu > &g

Re: [PATCH drm-misc-next v3 4/7] drm/arm/hdlcd: use drm_dev_unplug()

2022-10-14 Thread Liviu Dudau
On Fri, Oct 14, 2022 at 02:07:09AM +0200, Danilo Krummrich wrote: > Hi Liviu, > > On 10/12/22 17:07, Liviu Dudau wrote: > > Hi Danilo, > > > > Appologies again for the delay in reviewing this as I was at XDC last week. > > No worries, thanks for following up. &g

Re: [PATCH drm-misc-next v3 4/7] drm/arm/hdlcd: use drm_dev_unplug()

2022-10-12 Thread Liviu Dudau
Hi Danilo, Appologies again for the delay in reviewing this as I was at XDC last week. This patch is causing a regression at 'rmmod' time as the drm_crtc_vblank_off() does not get called when we disable outputs and the HDLCD remains active as I keep getting unhandled context faults from the

Re: [PATCH RESEND drm-misc-next 4/7] drm/arm/hdlcd: plane: use drm managed resources

2022-09-30 Thread Liviu Dudau
On Wed, Sep 14, 2022 at 12:03:58AM +0200, Danilo Krummrich wrote: > On 9/13/22 10:58, Liviu Dudau wrote: > > On Mon, Sep 12, 2022 at 09:50:26PM +0200, Danilo Krummrich wrote: > > > Hi Liviu, > > > > Hi Danilo, > > > > > > > > Thanks for ha

Re: [PATCH] drm/fourcc: Fix vsub/hsub for Q410 and Q401

2022-09-26 Thread Liviu Dudau
On Mon, Sep 26, 2022 at 04:21:19PM +0100, Brian Starkey wrote: > On Tue, Sep 13, 2022 at 04:36:57PM +0100, Liviu Dudau wrote: > > On Tue, Sep 13, 2022 at 03:43:06PM +0100, Brian Starkey wrote: > > > These formats are not subsampled, but that means hsub and vsub should

Re: [PATCH RESEND drm-misc-next 4/7] drm/arm/hdlcd: plane: use drm managed resources

2022-09-26 Thread Liviu Dudau
On Wed, Sep 14, 2022 at 12:03:58AM +0200, Danilo Krummrich wrote: > On 9/13/22 10:58, Liviu Dudau wrote: > > On Mon, Sep 12, 2022 at 09:50:26PM +0200, Danilo Krummrich wrote: > > > Hi Liviu, > > > > Hi Danilo, > > > > > > > > Thanks for ha

Re: [PATCH] drm/fourcc: Fix vsub/hsub for Q410 and Q401

2022-09-13 Thread Liviu Dudau
-by: butt3rflyh4ck > Signed-off-by: Brian Starkey Reviewed-by: Liviu Dudau Should this be backported into stable releases? How far back to we go? Best regards, Liviu > --- > drivers/gpu/drm/drm_fourcc.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > >

Re: [PATCH RESEND drm-misc-next 4/7] drm/arm/hdlcd: plane: use drm managed resources

2022-09-13 Thread Liviu Dudau
lain to me again what are you trying to fix? Best regards, Liviu > > - Danilo > > > > On 9/12/22 19:36, Liviu Dudau wrote: > > Hi Danilo, > > > > I have applied your patch series for HDLCD on top of drm-next (commit > > 213cb76ddc8b) > > a

Re: [PATCH RESEND drm-misc-next 4/7] drm/arm/hdlcd: plane: use drm managed resources

2022-09-12 Thread Liviu Dudau
Hi Danilo, I have applied your patch series for HDLCD on top of drm-next (commit 213cb76ddc8b) and on start up I get a warning: [ 12.882554] hdlcd 7ff5.hdlcd: drm_WARN_ON(funcs && funcs->destroy) [ 12.882596] WARNING: CPU: 1 PID: 211 at drivers/gpu/drm/drm_crtc.c:393

Re: [PATCH RESEND drm-misc-next 0/8] drm/arm/malidp: use drm managed resources

2022-09-05 Thread Liviu Dudau
On Mon, Sep 05, 2022 at 05:19:02PM +0200, Danilo Krummrich wrote: > Hi, Hi Danilo, > > This patch series converts the driver to use drm managed resources to prevent > potential use-after-free issues on driver unbind/rebind and to get rid of the > usage of deprecated APIs. Appologies for the

Re: [PATCH drm-misc-next v7 2/5] drm/fb: rename FB CMA helpers to FB DMA helpers

2022-08-02 Thread Liviu Dudau
de > -#include > +#include > #include > #include > #include > @@ -722,19 +722,19 @@ static void malidp_set_plane_base_addr(struct > drm_framebuffer *fb, > ptr = mp->layer->ptr + (plane_index << 4); > > /* > - * drm_fb_cma_get_gem_ad

[PATCH] drm/komeda: Fix handling of atomic commits in the atomic_commit_tail hook

2022-07-22 Thread Liviu Dudau
to userspace. Reported-by: Carsten Haitzler Tested-by: Carsten Haitzler Signed-off-by: Liviu Dudau --- .../gpu/drm/arm/display/komeda/komeda_crtc.c | 4 ++-- .../gpu/drm/arm/display/komeda/komeda_kms.c | 21 ++- .../gpu/drm/arm/display/komeda/komeda_kms.h | 2 ++ 3 files

  1   2   3   4   5   6   7   8   9   10   >