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

2023-01-11 Thread Liviu Dudau
komeda_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 >

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

2023-01-03 Thread Liviu Dudau
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 imp

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 th

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
ut it for now, 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. > > > > >

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

2022-11-04 Thread Liviu Dudau
u'll keep in mind 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

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 arm

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
works without your series. Can you explain 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 (com

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 __drmm_crtc_init_wi

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 ext

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

2022-08-02 Thread Liviu Dudau
/drivers/gpu/drm/arm/malidp_planes.c > @@ -13,7 +13,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > @@ -722,19 +722,19 @@ static void malidp_set_plane_base_addr(struct > drm_framebuffer *fb,

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

2022-07-22 Thread Liviu Dudau
aling 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

Re: [PATCH 3/3] drm/komeda - Fix handling of pending crtc state commit to avoid lock-up

2022-07-11 Thread Liviu Dudau
On Fri, Jul 08, 2022 at 07:03:37PM +0100, Carsten Haitzler wrote: > > > On 7/8/22 17:02, Liviu Dudau wrote: > > On Mon, Jun 06, 2022 at 12:47:14PM +0100, carsten.haitz...@foss.arm.com > > wrote: > > > From: Carsten Haitzler > > > > Hi Carsten, > &g

Re: [PATCH 2/3] drm/komeda - At init write GCU control block to handle already on DPU

2022-07-08 Thread Liviu Dudau
FB that this patch is trying to fix, but I lack an usable plaform for that. It will generate a flicker at module load time, but if users of Morello are happy with that, then Acked-by: Liviu Dudau Best regards, Liviu > > Signed-off-by: Carsten Haitzler > --- > drivers/gpu/drm/arm

Re: [PATCH 1/3] drm/komeda - Add legacy FB support so VT's work as expected

2022-07-08 Thread Liviu Dudau
on a system for debug and general usability, so enable > it. You can always toggle CONFIG_FRAMEBUFFER_CONSOLE. > > Signed-off-by: Carsten Haitzler Reviewed-by: Liviu Dudau > --- > drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 2 ++ > 1 file changed, 2 insertions(+) > >

Re: [PATCH 3/3] drm/komeda - Fix handling of pending crtc state commit to avoid lock-up

2022-07-08 Thread Liviu Dudau
a815e9eb56152f85454521079f10 Mon Sep 17 00:00:00 2001 From: Liviu Dudau Date: Fri, 8 Jul 2022 16:39:21 +0100 Subject: [PATCH] drm/komeda: Fix handling of atomic commits in the atomic_commit_tail hook Komeda driver relies on the generic DRM atomic helper functions to handle comm

Re: [PATCH] drm/arm/hdlcd: Simplify IRQ install/uninstall

2022-06-16 Thread Liviu Dudau
27;re always > clearing everything as well. > > Signed-off-by: Robin Murphy Acked-by: Liviu Dudau Thanks for the cleanup! Best regards, Liviu > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 62 + > 1 file changed, 16 insertions(+), 46 deletions(-)

Re: [PATCH v2] drm/arm/hdlcd: Take over EFI framebuffer properly

2022-06-16 Thread Liviu Dudau
now that probe time is not atomic and it can have some weird behaviour, but I was not expecting pixels to shift. Maybe it is because of clock reprogramming? > > Signed-off-by: Robin Murphy Acked-by: Liviu Dudau Will merge this into drm-misc-next if/when there are no more comments. Best

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

2022-06-15 Thread Liviu Dudau
On Wed, Jun 15, 2022 at 10:00:52AM +0200, Javier Martinez Canillas wrote: > On 6/15/22 09:53, Thomas Zimmermann wrote: > > > > > > Am 15.06.22 um 09:50 schrieb Javier Martinez Canillas: > > [...] > >>> Historically, most drivers call this function very early. But for error > >>> recovery it would

Re: [PATCH 1/5] drm/arm: Fix spelling typo in comments

2022-06-13 Thread Liviu Dudau
On Fri, May 27, 2022 at 11:39:03AM +0800, 1064094...@qq.com wrote: > From: pengfuyuan > > Fix spelling typo in comments. > > Reported-by: k2ci > Signed-off-by: pengfuyuan Acked-by: Liviu Dudau I've got only patch 1 of 5, so I'm going to assume that you're g

Re: [PATCH] dt-bindings: display: arm,malidp: remove bogus RQOS property

2022-06-10 Thread Liviu Dudau
ma") > Link: > https://lore.kernel.org/linux-arm-kernel/ynumgeilublhb...@e110455-lin.cambridge.arm.com/ > Signed-off-by: Andre Przywara > Reported-by: Liviu Dudau Reviewed-by: Liviu Dudau Thanks for cleaning this up! Best regards, Liviu > --- > Documentation/devicetre

Re: [PATCH v2 10/11] dt-bindings: display: convert Arm Mali-DP to DT schema

2022-05-11 Thread Liviu Dudau
On Mon, May 09, 2022 at 02:49:01PM +0100, Andre Przywara wrote: > On Fri, 06 May 2022 17:39:53 -0500 > Rob Herring wrote: > > > On Fri, 06 May 2022 15:05:32 +0100, Andre Przywara wrote: > > > The Arm Mali Display Processor (DP) 5xx/6xx is a series of IP that scans > > > out a framebuffer and hand

Re: [PATCH] drm/plane: Move range check for format_count earlier

2022-04-28 Thread Liviu Dudau
On Thu, Apr 28, 2022 at 12:57:52PM +0100, Steven Price wrote: > On 03/12/2021 13:08, Liviu Dudau wrote: > > On Fri, Dec 03, 2021 at 10:28:15AM +, Steven Price wrote: > >> While the check for format_count > 64 in __drm_universal_plane_init() > >> shouldn

Re: [PATCH] drm/arm/mali-dp: Fix spelling typo in comment

2022-04-27 Thread Liviu Dudau
On Tue, Apr 26, 2022 at 08:16:39PM +0800, pengfuyuan wrote: > Fix spelling typo in comment. > > Signed-off-by: pengfuyuan Acked-by: Liviu Dudau Many thanks for fixing this! Best regards, Liviu > --- > drivers/gpu/drm/arm/malidp_regs.h | 2 +- > 1 file changed, 1 insert

Re: [PATCH] drm/arm/mali-dp: Fix spelling typo in comment

2022-04-26 Thread Liviu Dudau
On Tue, Apr 26, 2022 at 05:51:06PM +0800, pengfuyuan wrote: > Fix spelling typo in comment. > > Signed-off-by: pengfuyuan > --- > drivers/gpu/drm/arm/malidp_regs.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/arm/malidp_regs.h > b/drivers/gpu/drm/arm

Re: [PATCH v2 04/17] drm/msm/dpu: add writeback blocks to the sm8250 DPU catalog

2022-04-21 Thread Liviu Dudau
On Tue, Apr 19, 2022 at 06:45:56PM -0700, Abhinav Kumar wrote: > Add writeback blocks to the sm8250 DPU hardware catalog. Other > chipsets support writeback too but add it to sm8250 to prototype > the feature so that it can be easily extended to other chipsets. > > changes in v2: > - none >

Re: [PATCH v7 3/4] drm: allow real encoder to be passed for drm_writeback_connector

2022-04-21 Thread Liviu Dudau
Hi Abhinav, Sorry for the delay in reviewing this, Easter break happened in between. On Fri, Apr 08, 2022 at 05:53:54PM -0700, Abhinav Kumar wrote: > For some vendor driver implementations, display hardware can > be shared between the encoder used for writeback and the physical > display. > > In

Re: [PATCH] drm/malidp: convert sysfs snprintf to sysfs_emit

2022-04-19 Thread Liviu Dudau
On Sun, Apr 17, 2022 at 01:29:18PM +, Xuezhi Zhang wrote: > Fix the following coccicheck warning: > drivers/gpu/drm/arm/malidp_drv.c:658:8-16: > WARNING: use scnprintf or sprintf > > Signed-off-by: Xuezhi Zhang Acked-by: Liviu Dudau Thanks for this! Best regards, Liviu &

Re: [PATCH] drm/arm/malidp: Stop using iommu_present()

2022-04-11 Thread Liviu Dudau
On Wed, Apr 06, 2022 at 10:27:00AM +0100, Brian Starkey wrote: > Hi Robin, > > On Tue, Apr 05, 2022 at 03:11:18PM +0100, Robin Murphy wrote: > > iommu_get_domain_for_dev() is already perfectly happy to return NULL > > if the given device has no IOMMU. Drop the unnecessary check. > > > > Signed-of

Re: [PATCH v6 2/4] drm: introduce drm_writeback_connector_init_with_encoder() API

2022-04-06 Thread Liviu Dudau
ack_connector's encoder has > already been > + * created and initialized before invoking this function. > + * > + * In addition, this function also assumes that callers of this API will > manage > + * assigning the encoder helper functions, possible_crtcs and any othe

Re: [PATCH v5 2/4] drm: introduce drm_writeback_connector_init_with_encoder() API

2022-03-31 Thread Liviu Dudau
On Fri, Mar 25, 2022 at 09:31:35AM -0700, Abhinav Kumar wrote: > Hi Liviu Hi Abhinav, Sorry for the delay, got busy with other things at the beginning of the week. > > On 3/25/2022 3:19 AM, Liviu Dudau wrote: > > On Thu, Mar 24, 2022 at 09:36:50AM -0700, Abhinav Kumar wrote:

Re: [PATCH v5 2/4] drm: introduce drm_writeback_connector_init_with_encoder() API

2022-03-25 Thread Liviu Dudau
On Thu, Mar 24, 2022 at 09:36:50AM -0700, Abhinav Kumar wrote: > Hi Liviu Hello, > > Thanks for the response. > > On 3/24/2022 3:12 AM, Liviu Dudau wrote: > > On Wed, Mar 23, 2022 at 11:28:56AM -0700, Abhinav Kumar wrote: > > > Hi Liviu > > > > Hell

Re: [PATCH v5 2/4] drm: introduce drm_writeback_connector_init_with_encoder() API

2022-03-24 Thread Liviu Dudau
On Wed, Mar 23, 2022 at 11:28:56AM -0700, Abhinav Kumar wrote: > Hi Liviu Hello, > > Thanks for the review. > > On 3/23/2022 9:46 AM, Liviu Dudau wrote: > > On Mon, Mar 21, 2022 at 04:56:43PM -0700, Abhinav Kumar wrote: > > > For vendors drivers which

Re: [PATCH v5 2/4] drm: introduce drm_writeback_connector_init_with_encoder() API

2022-03-23 Thread Liviu Dudau
On Mon, Mar 21, 2022 at 04:56:43PM -0700, Abhinav Kumar wrote: > For vendors drivers which pass an already allocated and > initialized encoder especially for cases where the encoder > hardware is shared OR the writeback encoder shares the resources > with the rest of the display pipeline introduce

Re: [PATCH v3 1/3] drm: allow real encoder to be passed for drm_writeback_connector

2022-03-21 Thread Liviu Dudau
On Thu, Mar 17, 2022 at 10:26:38AM -0700, Abhinav Kumar wrote: > Hi Laurent > > Thanks for the review. > > On 3/17/2022 1:51 AM, Laurent Pinchart wrote: > > Hi Abhinav, > > > > Thank you for the patch. > > > > On Wed, Mar 16, 2022 at 11:48:16AM -0700, Abhinav Kumar wrote: > > > For some vendor

Re: [PATCH v4 2/4] drm: allow real encoder to be passed for drm_writeback_connector

2022-03-21 Thread Liviu Dudau
On Thu, Mar 17, 2022 at 06:45:34PM -0700, Abhinav Kumar wrote: > For some vendor driver implementations, display hardware can > be shared between the encoder used for writeback and the physical > display. > > In addition resources such as clocks and interrupts can > also be shared between writebac

Re: [PATCH v4 1/4] drm: allow passing possible_crtcs to drm_writeback_connector_init()

2022-03-21 Thread Liviu Dudau
const u32 *formats, int n_formats, uint32_t > possible_crtcs) > { > struct drm_property_blob *blob; > struct drm_connector *connector = &wb_connector->base; > @@ -190,6 +191,9 @@ int drm_writeback_connector_init(struct drm_device *dev, > return PTR_ERR(blob);

Re: [PATCH v2 01/22] drm/komeda: plane: switch to plane reset helper

2022-02-28 Thread Liviu Dudau
> Cc: "James (Qian) Wang" > Cc: Liviu Dudau > Cc: Mihail Atanassov > Signed-off-by: Maxime Ripard Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) &

Re: [PATCH v2 19/22] drm/komeda: plane: Remove redundant color encoding and range initialisation

2022-02-28 Thread Liviu Dudau
tate, the driver had > to set it again in komeda_plane_reset(). However, the helpers have been > adjusted to set it properly at reset, so this is not needed anymore. > > Cc: Brian Starkey > Cc: "James (Qian) Wang" > Cc: Liviu Dudau > Cc: Mihail Atanassov > Signe

Re: [PATCH v2 09/22] drm/komeda: plane: Remove redundant zpos initialisation

2022-02-28 Thread Liviu Dudau
n komeda_plane_reset(). However, the helpers have been > adjusted to set it properly at reset, so this is not needed anymore. > > Cc: Brian Starkey > Cc: "James (Qian) Wang" > Cc: Liviu Dudau > Cc: Mihail Atanassov > Signed-off-by: Maxime Ripard Acked-by: Liviu Dudau

Re: [PATCH] drm/arm: arm hdlcd select DRM_GEM_CMA_HELPER

2022-01-25 Thread Liviu Dudau
> Signed-off-by: Carsten Haitzler Acked-by: Liviu Dudau I will add Steven's reviewed-by as well when pushing it. Best regards, Liviu > --- > drivers/gpu/drm/arm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/arm/Kconfig b/drivers/gpu/d

Re: [PATCH v2] drm: mali-dp: potential dereference of null pointer

2021-12-14 Thread Liviu Dudau
Hi Jiasheng, On Tue, Dec 14, 2021 at 08:51:10PM +0800, Jiasheng Jiang wrote: > The return value of kzalloc() needs to be checked. > To avoid use of null pointer '&state->base' in case of the > failure of alloc. > > Fixes: 99665d072183 ("drm: mali-dp: add malidp_crtc_state struct") > Signed-off-by

Re: [PATCH] drm/plane: Move range check for format_count earlier

2021-12-03 Thread Liviu Dudau
; drm_mode_object_unregister() leaking the modeset identifier. Move it to > the start of the function to avoid allocating those resources in the > first place. > > Signed-off-by: Steven Price Well spotted! Reviewed-by: Liviu Dudau I'm going to wait to see if anyone else has any c

[PATCH] drm/komeda: return early if drm_universal_plane_init() fails.

2021-12-03 Thread Liviu Dudau
: Liviu Dudau --- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c b/drivers/gpu/drm/arm/display/komeda/komeda_plane.c index aa193c58f4bf6d9..517b94c3bcaf966 100644 --- a

Re: [PATCH] drm/komeda: Fix an undefined behavior bug in komeda_plane_add()

2021-12-01 Thread Liviu Dudau
On Wed, Dec 01, 2021 at 03:44:03PM +, Steven Price wrote: > On 30/11/2021 14:25, Zhou Qingyang wrote: > > In komeda_plane_add(), komeda_get_layer_fourcc_list() is assigned to > > formats and used in drm_universal_plane_init(). > > drm_universal_plane_init() passes formats to > > __drm_universal

Re: [PATCH v2] drm/komeda: Fix an undefined behavior bug in komeda_plane_add()

2021-12-01 Thread Liviu Dudau
ch komeda_dev to DRM-KMS") > Signed-off-by: Zhou Qingyang Thanks for the fix! Reviewed-by: Liviu Dudau Best regards, Liviu > --- > Changes in v2 > - Use kfree and return instead of using 'goto' > > drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 4

Re: [PATCH] drm/komeda: Fix an undefined behavior bug in komeda_plane_add()

2021-11-30 Thread Liviu Dudau
Hi Zhou, On Tue, Nov 30, 2021 at 10:23:01PM +0800, Zhou Qingyang wrote: > In komeda_plane_add(), komeda_get_layer_fourcc_list() is assigned to > formats and used in drm_universal_plane_init(). > drm_universal_plane_init() passes formats to > __drm_universal_plane_init(). __drm_universal_plane_init

Re: [PATCH] drm/arm/hdlcd: Make use of the helper function devm_platform_ioremap_resource()

2021-09-01 Thread Liviu Dudau
On Tue, Aug 31, 2021 at 03:43:19PM +0800, Cai Huoqing wrote: > Use the devm_platform_ioremap_resource() helper instead of > calling platform_get_resource() and devm_ioremap_resource() > separately > > Signed-off-by: Cai Huoqing Acked-by: Liviu Dudau Many thanks, Liviu >

Re: [PATCH v2 02/14] drm/arm/hdlcd: Convert to Linux IRQ interfaces

2021-08-20 Thread Liviu Dudau
gt; Signed-off-by: Thomas Zimmermann > Acked-by: Sam Ravnborg Sorry for the delayed response due to holidays. Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 174 ++-- > drivers/gpu/drm/arm/hdlcd_drv.h | 1 + > 2 f

Re: [PATCH] drm/arm/malidp: fix mode_valid couldn't cull invalid modes issue

2021-08-13 Thread Liviu Dudau
#x27;s modes list. > It is not expected by mode_valid. > > Replace mode->crtc_clock with mode->clock to fix the issue. > > Signed-off-by: Sandor Yu It looks like at least drm/bridge/cdns-dsi.c does the same thing of using mode->clock when validating, so looks like a legi

Re: [PATCH] drm/fourcc: Add modifier definitions for Arm Fixed Rate Compression

2021-07-26 Thread Liviu Dudau
On Thu, Jul 01, 2021 at 06:07:09PM +0100, Normunds Rieksts wrote: > Arm Fixed Rate Compression (AFRC) is a proprietary fixed rate image > compression protocol and format. > It is designed to provide guaranteed bandwidth and memory footprint > reductions in graphics and media use-cases. > > This pa

[PATCH] drm/amd/display: Fix 10bit 4K display on CIK GPUs

2021-07-14 Thread Liviu Dudau
0 but scaled up in an irregular way. Reverting the commit or applying this patch fixes the problem on v5.14-rc1. Fixes: 72a7cf0aec0c ("drm/amd/display: Keep linebuffer pixel depth at 30bpp for DCE-11.0.") Signed-off-by: Liviu Dudau --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c

Re: [PATCH] drm/fourcc: Add modifier definitions for Arm Fixed Rate Compression

2021-07-12 Thread Liviu Dudau
s. > > This patch aims to add modifier definitions for describing > AFRC. > > Signed-off-by: Normunds Rieksts Looks good to me! Reviewed-by: Liviu Dudau Best regards, Liviu > --- > include/uapi/drm/drm_fourcc.h | 109 +- > 1 file cha

Re: [PATCH] drm/arm/komeda: Don't include drm_irq.h

2021-07-06 Thread Liviu Dudau
#include > #include > #include > -#include > #include > #include > #include > -- > 2.32.0 > Acked-by: Liviu Dudau Best regards, Liviu -- | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --- ¯\_(ツ)_/¯

Re: [PATCH v3 04/27] drm: Don't test for IRQ support in VBLANK ioctls

2021-06-24 Thread Liviu Dudau
R_LEGACY))) > > > > > > return dev->irq_enabled; > > > > > > #endif > > > return drm_dev_has_vblank(dev); > > > > > > } > > > > > > > > > ? > > > > &g

Re: [PATCH v2 04/22] drm: Don't test for IRQ support in VBLANK ioctls

2021-06-23 Thread Liviu Dudau
Hi Thomas, On Wed, Jun 23, 2021 at 08:43:07AM +0200, Thomas Zimmermann wrote: > Hi Liviu > > Am 22.06.21 um 17:25 schrieb Liviu Dudau: > > Hello, > > > > On Tue, Jun 22, 2021 at 04:09:44PM +0200, Thomas Zimmermann wrote: > > > For KMS drivers, replace the IRQ

Re: [PATCH v2 06/22] drm/malidp: Don't set struct drm_device.irq_enabled

2021-06-22 Thread Liviu Dudau
On Tue, Jun 22, 2021 at 04:09:46PM +0200, Thomas Zimmermann wrote: > The field drm_device.irq_enabled is only used by legacy drivers > with userspace modesetting. Don't set it in malidp. > > Signed-off-by: Thomas Zimmermann Acked-by: Liviu Dudau Best regards, Liviu > --

Re: [PATCH v2 05/22] drm/komeda: Don't set struct drm_device.irq_enabled

2021-06-22 Thread Liviu Dudau
On Tue, Jun 22, 2021 at 04:09:45PM +0200, Thomas Zimmermann wrote: > The field drm_device.irq_enabled is only used by legacy drivers > with userspace modesetting. Don't set it in komeda. > > Signed-off-by: Thomas Zimmermann Acked-by: Liviu Dudau Best regards, Liviu > --

Re: [PATCH v2 04/22] drm: Don't test for IRQ support in VBLANK ioctls

2021-06-22 Thread Liviu Dudau
Hello, On Tue, Jun 22, 2021 at 04:09:44PM +0200, Thomas Zimmermann wrote: > For KMS drivers, replace the IRQ check in VBLANK ioctls with a check for > vblank support. IRQs might be enabled wthout vblanking being supported. > > This change also removes the DRM framework's only dependency on IRQ st

Re: [PATCH v3] Documentation: gpu: Mention the requirements for new properties

2021-06-14 Thread Liviu Dudau
On Mon, Jun 14, 2021 at 05:49:12PM +0300, Pekka Paalanen wrote: > On Fri, 11 Jun 2021 13:03:09 +0100 > Liviu Dudau wrote: > > > On Fri, Jun 11, 2021 at 08:14:59AM +, Simon Ser wrote: > > > On Thursday, June 10th, 2021 at 23:00, Daniel Vetter > > > wro

Re: [PATCH v3] Documentation: gpu: Mention the requirements for new properties

2021-06-11 Thread Liviu Dudau
On Fri, Jun 11, 2021 at 08:56:04AM -0400, Alyssa Rosenzweig wrote: > > What I'm expected to see in the future is new functionality that gets > > implemented by > > one hardware vendor and the kernel developers trying to enable that for > > userspace. It > > could be that the new property is gener

Re: [PATCH v3] Documentation: gpu: Mention the requirements for new properties

2021-06-11 Thread Liviu Dudau
On Fri, Jun 11, 2021 at 08:14:59AM +, Simon Ser wrote: > On Thursday, June 10th, 2021 at 23:00, Daniel Vetter > wrote: > > > If there's a strong consensus that we really need this then I'm not > > going to nack this, but this really needs a pile of acks from > > compositor folks that they're

Re: [PATCH v3] Documentation: gpu: Mention the requirements for new properties

2021-06-10 Thread Liviu Dudau
> Cc: Jonathan Hunter > Cc: Joonas Lahtinen > Cc: Joonyoung Shim > Cc: Jyri Sarha > Cc: Kevin Hilman > Cc: Kieran Bingham > Cc: Krzysztof Kozlowski > Cc: Kyungmin Park > Cc: Laurent Pinchart > Cc: Linus Walleij > Cc: Liviu Dudau > Cc: Lucas Stach >

Re: [PATCH v2] Documentation: gpu: Mention the requirements for new properties

2021-05-27 Thread Liviu Dudau
Cc: Hans de Goede > > > Cc: "Heiko Stübner" > > > Cc: Huang Rui > > > Cc: Hyun Kwon > > > Cc: Inki Dae > > > Cc: Jani Nikula > > > Cc: Jernej Skrabec > > > Cc: Jerome Brunet > > > Cc: Joel Stanley > > >

Re: [PATCH 44/53] docs: gpu: avoid using UTF-8 chars

2021-05-10 Thread Liviu Dudau
ducts. > To > +of course we'd better share as much as possible between different products. > To > achieve this, split the komeda device into two layers: CORE and CHIP. > > - CORE: for common features and capabilities handling. Acked-by: Liviu D

Re: [PATCH 2/8] drm/arm/malidp: Always list modifiers

2021-04-27 Thread Liviu Dudau
On Tue, Apr 27, 2021 at 11:20:12AM +0200, Daniel Vetter wrote: > Even when all we support is linear, make that explicit. Otherwise the > uapi is rather confusing. :) > > Cc: sta...@vger.kernel.org > Cc: Pekka Paalanen > Cc: Liviu Dudau > Cc: Brian Starkey > Sign

Re: [PATCH 1/8] drm/arm: Don't set allow_fb_modifiers explicitly

2021-04-27 Thread Liviu Dudau
nit > > this is done automatically as part of plane init, if drivers set the > modifier list correctly. Which is the case here for both komeda and > malidp. > > Signed-off-by: Daniel Vetter > Cc: "James (Qian) Wang" > Cc: Liviu Dudau Acked-by: Liviu Dudau Best rega

Re: [PATCH] drm/komeda: Fix bit check to import to value of proper type

2020-12-18 Thread Liviu Dudau
N already flags this as out-of-bounds > stack reads. This fixes it by just importing inot a local long. > > Signed-off-by: Carsten Haitzler Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/display/komeda/komeda_pipeline.c | 3 ++- > 1 file changed, 2 inser

Re: [PATCH] drm/komeda: Handle NULL pointer access code path in error case

2020-11-27 Thread Liviu Dudau
inter tocompare memory content there > agains the new sate to see if it changed. In this case, it's better to s/sate/state/ > assume that the input changed as there is no old state to compare > against and thus assume the changes happen anyway. > > Signed-off-by: Carsten Haitz

Re: [PATCH] drm/komeda: Remove useless variable assignment

2020-11-27 Thread Liviu Dudau
n Haitzler Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c > b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c >

Re: [PATCH v2] drm: Use state helper instead of CRTC state pointer

2020-11-10 Thread Liviu Dudau
} > > @ adds_new_state @ > identifier crtc_atomic_func.func; > identifier crtc, state; > @@ > > func(struct drm_crtc *crtc, struct drm_atomic_state *state) { > + struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, > crtc); > ... > - crtc->state > + crtc_sta

Re: [PATCH 10/65] drm/malidp: Annotate dma-fence critical section in commit path

2020-10-28 Thread Liviu Dudau
aniel Vetter > Cc: "James (Qian) Wang" > Cc: Liviu Dudau Acked-by: Liviu Dudau Thanks for the patch! Best regards, Liviu > Cc: Mihail Atanassov > --- > drivers/gpu/drm/arm/malidp_drv.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gp

Re: [PATCH -next v2] drm/komeda: Convert to DEFINE_SHOW_ATTRIBUTE

2020-10-23 Thread Liviu Dudau
= seq_read, > - .llseek = seq_lseek, > - .release= single_release, > -}; > +DEFINE_SHOW_ATTRIBUTE(komeda_register); Hi Qinglang, Sorry for the belated response! Acked-by: Liviu Dudau Best regards, Liviu > > #ifdef CONFIG_DEBUG_FS > static void komeda_debugf

Re: [PATCH v6 3/3] drm/vkms: Add support for writeback

2020-09-02 Thread Liviu Dudau
se.state; > + struct vkms_crtc_state *crtc_state = output->composer_state; > + > + if (!conn_state) > + return; > + > + vkms_set_composer(&vkmsdev->output, true); > + > + spin_lock_irq(&output->composer_lock); > + crtc_state->active_writeback = conn_state->writeback_job-&

Re: [PATCH] drm/malidp: Use struct drm_gem_object_funcs.get_sg_table internally

2020-08-18 Thread Liviu Dudau
um 15:12 schrieb Daniel Vetter: > > >>>>>>> On Fri, Aug 07, 2020 at 01:10:22PM +0200, Thomas Zimmermann wrote: > > >>>>>>>> The malidp driver uses GEM object functions for callbacks. Fix it > > >>>>>>>> to > &

Re: [PATCH 08/25] drm/malidp: Annotate dma-fence critical section in commit path

2020-07-15 Thread Liviu Dudau
o a testing for this patch but when I dug out the series from the ML it looked like it has extra dependencies, so I was waiting for the dust to settle. Otherwise, LGTM. Best regards, Liviu > > Signed-off-by: Daniel Vetter > Cc: "James (Qian) Wang" > Cc: Liviu Dudau &g

Re: [PATCH] drm/arm: fix unintentional integer overflow on left shift

2020-06-18 Thread Liviu Dudau
On Thu, Jun 18, 2020 at 01:50:34PM +0100, Colin Ian King wrote: > On 18/06/2020 13:14, Liviu Dudau wrote: > > On Thu, Jun 18, 2020 at 11:04:00AM +0100, Colin King wrote: > >> From: Colin Ian King > > > > Hi Colin, > > > >> > >> Shifting th

Re: [PATCH] drm/arm: fix unintentional integer overflow on left shift

2020-06-18 Thread Liviu Dudau
On Thu, Jun 18, 2020 at 11:04:00AM +0100, Colin King wrote: > From: Colin Ian King Hi Colin, > > Shifting the integer value 1 is evaluated using 32-bit arithmetic > and then used in an expression that expects a long value leads to > a potential integer overflow. I'm afraid this explanation mak

Re: [PATCH] drm/malidp: Don't call drm_crtc_vblank_off on unbind

2020-06-02 Thread Liviu Dudau
down reordered. Got confused by the subject not having any version of the patch, so I've acked the other one, but this is the one I've meant to Ack. So, Acked-by: Liviu Dudau Best regards, Liviu > > Signed-off-by: Daniel Vetter > Cc: Liviu Dudau > Cc: Brian Starkey >

Re: [PATCH 3/3] drm/hdlcd: Don't call drm_crtc_vblank_off on unbind

2020-06-02 Thread Liviu Dudau
rtc, so need to reorder that. > > Signed-off-by: Daniel Vetter > Cc: Liviu Dudau Acked-by: Liviu Dudau Best regards, Liviu > Cc: Brian Starkey > Cc: > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/

Re: [PATCH 2/3] drm/malidp: Don't call drm_crtc_vblank_off on unbind

2020-06-02 Thread Liviu Dudau
e and I was hitting warnings from 84014b0a39eef6df ("drm/atomic-helper: check that drivers call drm_crtc_vblank_off"), but I'm happy that things have now been fixed. > Signed-off-by: Daniel Vetter > Cc: Liviu Dudau Acked-by: Liviu Dudau Best regards, Liviu > Cc: Brian

Re: [PATCH 1/3] drm/arm: Kconfig annotate drivers as COMPILE_TEST

2020-06-01 Thread Liviu Dudau
Hi Emil, On Wed, May 20, 2020 at 12:54:17AM +0100, Emil Velikov wrote: > On Mon, 18 May 2020 at 12:10, Liviu Dudau wrote: > > > > On Sun, May 17, 2020 at 08:36:53PM +0100, Emil Velikov wrote: > > > Add the COMPILE_TEST conditional, so that people can at least buil

Re: [PATCH] drm/atomic-helper: reset vblank on crtc reset

2020-06-01 Thread Liviu Dudau
ot.com/bug?id=0ba17d70d062b2595e1f061231474800f076c7cb > Reported-by: Tetsuo Handa > Reported-by: syzbot+0871b14ca2e2fb64f...@syzkaller.appspotmail.com > Cc: Tetsuo Handa > Cc: "James (Qian) Wang" > Cc: Liviu Dudau > Cc: Mihail Atanassov > Cc: Brian Starkey > Cc:

Re: [PATCH] drm/atomic-helper: reset vblank on crtc reset

2020-05-27 Thread Liviu Dudau
On Wed, May 27, 2020 at 01:07:05PM +0200, Daniel Vetter wrote: > On Wed, May 27, 2020 at 12:57 PM Liviu Dudau wrote: > > > > Hi Daniel, > > > > On Wed, May 27, 2020 at 11:53:32AM +0200, Daniel Vetter wrote: > > > Only when vblanks are supported ofc. > >

Re: [PATCH] drm/atomic-helper: reset vblank on crtc reset

2020-05-27 Thread Liviu Dudau
ink: > https://syzkaller.appspot.com/bug?id=0ba17d70d062b2595e1f061231474800f076c7cb > Reported-by: Tetsuo Handa > Reported-by: syzbot+0871b14ca2e2fb64f...@syzkaller.appspotmail.com > Cc: Tetsuo Handa > Cc: "James (Qian) Wang" > Cc: Liviu Dudau > Cc: Mihail Atanassov > Cc: Brian Star

Re: [PATCH 11/21] drm/malidp: Use GEM CMA object functions

2020-05-26 Thread Liviu Dudau
remaining > operations are provided by CMA GEM object functions. > > Signed-off-by: Thomas Zimmermann Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/malidp_drv.c | 11 +-- > 1 file changed, 1 insertion(+), 10 deletions(-) > > diff --git a/driv

Re: [PATCH 10/21] drm/komeda: Use GEM CMA object functions

2020-05-26 Thread Liviu Dudau
remaining > operations are provided by CMA GEM object functions. > > Signed-off-by: Thomas Zimmermann Acked-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 11 +-- > 1 file changed, 1 insertion(+), 10 deletions(-) > >

Re: [PATCH 03/21] drm/arm: Use GEM CMA object functions

2020-05-26 Thread Liviu Dudau
t; > Signed-off-by: Thomas Zimmermann Acked-by: Liviu Dudau Thanks! Liviu > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 12 +--- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/drm/arm/hdlcd_drv.c > i

Re: [PATCH 1/3] drm/arm: Kconfig annotate drivers as COMPILE_TEST

2020-05-18 Thread Liviu Dudau
On Sun, May 17, 2020 at 08:36:53PM +0100, Emil Velikov wrote: > Add the COMPILE_TEST conditional, so that people can at least build test > the drivers. > > Cc: Liviu Dudau Acked-by: Liviu Dudau > Cc: Brian Starkey > Cc: Mali DP Maintainers > Cc: dri-devel@lists.freedes

Re: Re:Re: [PATCH v2] drm/arm: fixes pixel clock enabled with wrong format

2020-05-15 Thread Liviu Dudau
Hi Bernard, On Fri, May 08, 2020 at 04:47:17PM +0800, Bernard wrote: > From: "赵军奎" > Date: 2020-04-24 19:37:36 > To: Liviu Dudau > Cc: Brian Starkey ,David Airlie > ,Daniel Vetter > ,dri-devel@lists.freedesktop.org,linux-ker...@vger.kernel.org,opensource.ker.

Re: [PATCH 13/36] drm/arm: remove _unlocked suffix in drm_object_put_unlocked

2020-05-14 Thread Liviu Dudau
; > Just drop the suffix. It makes the API cleaner. > > Done via the following script: > > __from=drm_gem_object_put_unlocked > __to=drm_gem_object_put > for __file in $(git grep --name-only $__from); do > sed -i "s/$__from/$__to/g" $__file; > done >

Re: [PATCH v2] drm: drm_fourcc: Add uncompressed AFBC modifier

2020-04-30 Thread Liviu Dudau
On Thu, Apr 30, 2020 at 09:32:20AM +0100, Ben Davis wrote: > AFBC has a mode that guarantees use of AFBC with an uncompressed > payloads, we add a new modifier to support this mode. > > V2: updated modifier comment > > Signed-off-by: Ben Davis Acked-by: Liviu Dudau B

<    1   2   3   4   5   6   7   8   9   10   >