Re: [PATCH v7 5/9] drm/fb_dma: Add generic get_scanout_buffer() for drm_panic

2024-01-08 Thread Maxime Ripard
Hi, On Thu, Jan 04, 2024 at 05:00:49PM +0100, Jocelyn Falempe wrote: > This was initialy done for imx6, but should work on most drivers > using drm_fb_dma_helper. > > Signed-off-by: Jocelyn Falempe > --- > drivers/gpu/drm/drm_fb_dma_helper.c | 55 + > include/drm/drm

Re: [PATCH 7/7] drm/vkms: Create KUnit tests for YUV conversions

2024-01-08 Thread Maxime Ripard
Hi Arthur, On Fri, Jan 05, 2024 at 01:35:08PM -0300, Arthur Grillo wrote: > diff --git a/drivers/gpu/drm/vkms/vkms_formats.c > b/drivers/gpu/drm/vkms/vkms_formats.c > index b654b6661a20..11df990a0fa9 100644 > --- a/drivers/gpu/drm/vkms/vkms_formats.c > +++ b/drivers/gpu/drm/vkms/vkms_formats.c >

Re: [PATCH] drm/vc4: don't check if plane->state->fb == state->fb

2024-01-08 Thread Maxime Ripard
On Fri, 5 Jan 2024 14:58:36 -0300, Maíra Canal wrote: > Currently, when using non-blocking commits, we can see the following > kernel warning: > > [ 110.908514] [ cut here ] > [ 110.908529] refcount_t: underflow; use-after-free. > > [ ... ] Ac

[PULL] drm-misc-next-fixes

2024-01-04 Thread Maxime Ripard
Hi! Here's this week drm-misc-next-fixes PR Maxime drm-misc-next-fixes-2024-01-04: One fix for drm/plane to avoid a use-after-free and some additional warnings to prevent more of these occurences, a lock inversion dependency fix and an indentation fix for drm/rockchip, and some doc warning fixes

Re: [PATCH v9 09/25] drm/modes: Move named modes parsing to a separate function

2024-01-03 Thread Maxime Ripard
Hi Dave, Happy new year :) On Tue, Jan 02, 2024 at 03:12:26PM +, Dave Stevenson wrote: > Hi Maxime > > On Mon, 14 Nov 2022 at 13:00, Maxime Ripard wrote: > > > > The current construction of the named mode parsing doesn't allow to extend > > it easily. Let&

Re: (subset) [PATCH] drm/vc4: plane: check drm_gem_plane_helper_prepare_fb() return value

2024-01-02 Thread Maxime Ripard
On Sat, 16 Dec 2023 14:15:27 +, Simon Ser wrote: > Bubble up any error to the caller. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: (subset) [PATCH] drm/imagination: pvr_device.h: fix all kernel-doc warnings

2024-01-02 Thread Maxime Ripard
On Sat, 30 Dec 2023 21:49:10 -0800, Randy Dunlap wrote: > Correct all kernel-doc notation on pvr_device.h so that there are no > kernel-doc warnings remaining. > > pvr_device.h:292: warning: Excess struct member 'active' description in > 'pvr_device' > pvr_device.h:292: warning: Excess struct mem

Re: (subset) [PATCH] drm/gpuvm: fix all kernel-doc warnings in include/drm/drm_gpuvm.h

2024-01-02 Thread Maxime Ripard
On Sat, 30 Dec 2023 21:48:56 -0800, Randy Dunlap wrote: > Update kernel-doc comments in to correct all > kernel-doc warnings: > > drm_gpuvm.h:148: warning: Excess struct member 'addr' description in > 'drm_gpuva' > drm_gpuvm.h:148: warning: Excess struct member 'offset' description in > 'drm_gp

Re: RPI4B: what is needed for /dev/video10 to work ( v4l_m2m )

2024-01-02 Thread Maxime Ripard
Hi, On Wed, Dec 27, 2023 at 04:19:19PM +0100, AL13N wrote: > I have a RPI4B with upstream kernel 6.1 64bit and there is no /dev/video10 > present. I thought if I waited a bit more, it would appear in the kernel, > but that was folly on my part. > > Currently, watching a movie is painful since the

Re: [PATCH v4] ASoC: hdmi-codec: drop drm/drm_edid.h include

2023-12-21 Thread Maxime Ripard
ight thing to do is to include > > drm_edid.h where needed, not from somewhat random intermediate > > headers. I hope this uncovers anything I missed. > > The kernel test robot came back with clean results. > > Added a bunch more Cc's here. Ack to merge this via drm-misc-next, > please? Acked-by: Maxime Ripard Maxime signature.asc Description: PGP signature

Re: [PATCH v2 2/2] drm/rockchip: rk3066_hdmi: drop custom fill_modes hook

2023-12-21 Thread Maxime Ripard
On Tue, Dec 19, 2023 at 04:40:12PM +0100, Johan Jonker wrote: > > > On 12/19/23 13:55, Maxime Ripard wrote: > > Hi, > > > > On Mon, Dec 18, 2023 at 04:49:06PM +0100, Johan Jonker wrote: > >> CRTC size validation for the display controller has been added

Re: [PATCH RFC 01/10] dt-bindings: gpu: Add PowerVR Series5 SGX GPUs

2023-12-21 Thread Maxime Ripard
On Tue, Dec 19, 2023 at 11:19:49AM -0600, Andrew Davis wrote: > On 12/18/23 4:54 AM, H. Nikolaus Schaller wrote: > > > > > > > Am 18.12.2023 um 11:14 schrieb Maxime Ripard : > > > > > > On Mon, Dec 18, 2023 at 10:28:09AM +0100, H.

Re: [PATCH RFC 01/10] dt-bindings: gpu: Add PowerVR Series5 SGX GPUs

2023-12-21 Thread Maxime Ripard
On Mon, Dec 18, 2023 at 11:54:47AM +0100, H. Nikolaus Schaller wrote: > > > > Am 18.12.2023 um 11:14 schrieb Maxime Ripard : > > > > On Mon, Dec 18, 2023 at 10:28:09AM +0100, H. Nikolaus Schaller wrote: > >> Hi Maxime, > >> > >

[PULL] drm-misc-next-fixes

2023-12-21 Thread Maxime Ripard
Hi, Here's this week drm-misc-next-fixes PR Thanks! Maxime drm-misc-next-fixes-2023-12-21: More fixes for the new imagination drier, a DT node refcount fix for the new aux bridge driver and a missing header fix for the LUT management code. The following changes since commit b1a2aa9bcbb88a7dc1c4d

Re: [PATCH v2 2/2] drm/rockchip: rk3066_hdmi: drop custom fill_modes hook

2023-12-19 Thread Maxime Ripard
Hi, On Mon, Dec 18, 2023 at 04:49:06PM +0100, Johan Jonker wrote: > CRTC size validation for the display controller has been added with > Commit 8e140cb60270 ("drm/rockchip: vop: limit maximum resolution to > hardware capabilities"), so we can drop the custom fill_modes hook. > > Signed-off-by: J

Re: [PATCH v2 1/2] drm/rockchip: rk3066_hdmi: remove unused drm device pointer

2023-12-19 Thread Maxime Ripard
On Mon, 18 Dec 2023 16:48:40 +0100, Johan Jonker wrote: > The drm_dev field in the rk3066_hdmi struct stores a pointer to the DRM > device but is never used anywhere in the driver. Let's remove it. > > Signed-off-by: Johan Jonker Reviewed-by: Maxime Ripard Thanks! Maxime

Re: [PATCH RFC 01/10] dt-bindings: gpu: Add PowerVR Series5 SGX GPUs

2023-12-18 Thread Maxime Ripard
On Mon, Dec 18, 2023 at 10:28:09AM +0100, H. Nikolaus Schaller wrote: > Hi Maxime, > > > Am 15.12.2023 um 14:33 schrieb Maxime Ripard : > > > >>> > >>> It's for a separate architecture, with a separate driver, maintained out > >>&

Re: [PATCH v2 4/5] drm/atomic: Make the drm_atomic_state documentation less ambiguous

2023-12-18 Thread Maxime Ripard
Hi, On Fri, Dec 15, 2023 at 04:54:28PM +0200, Pekka Paalanen wrote: > On Thu, 14 Dec 2023 11:09:15 +0100 > Maxime Ripard wrote: > > > The current documentation of drm_atomic_state says that it's the "global > > state object". This is confusing since, while

Re: [PATCH v3 3/3] drm/tests: managed: Add a simple test for drmm_managed_release

2023-12-15 Thread Maxime Ripard
Hi, On Mon, Dec 11, 2023 at 11:09:39PM +0100, Michał Winiarski wrote: > Add a simple test that checks whether the action is indeed called right > away and that it is not called on the final drm_dev_put(). > > Signed-off-by: Michał Winiarski > --- > drivers/gpu/drm/tests/drm_managed_test.c | 29

Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support

2023-12-15 Thread Maxime Ripard
On Fri, Dec 15, 2023 at 01:25:48PM +, Biju Das wrote: > Hi Maxime Ripard, > > > -Original Message- > > From: Maxime Ripard > > Sent: Friday, December 15, 2023 10:24 AM > > Subject: Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support > > &g

Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support

2023-12-15 Thread Maxime Ripard
On Fri, Dec 15, 2023 at 02:19:25PM +, Biju Das wrote: > Hi Maxime Ripard, > > > -Original Message- > > From: Biju Das > > Sent: Friday, December 15, 2023 1:52 PM > > Subject: RE: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support > > > >

Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support

2023-12-15 Thread Maxime Ripard
On Fri, Dec 15, 2023 at 01:52:28PM +, Biju Das wrote: > > > > > > > +static int rzg2l_du_crtc_enable_vblank(struct drm_crtc *crtc) { > > > > > > > + struct rzg2l_du_crtc *rcrtc = to_rzg2l_crtc(crtc); > > > > > > > + > > > > > > > + rcrtc->vblank_enable = true; > > > > > > > + > > > > > > > + re

Re: [PATCH RFC 01/10] dt-bindings: gpu: Add PowerVR Series5 SGX GPUs

2023-12-15 Thread Maxime Ripard
On Thu, Dec 07, 2023 at 11:33:53AM +0100, H. Nikolaus Schaller wrote: > Hi Maxime, > > > Am 07.12.2023 um 10:20 schrieb Maxime Ripard : > > > > On Tue, Dec 05, 2023 at 02:50:08PM +0100, H. Nikolaus Schaller wrote: > >> Hi, > >> > >

Re: (subset) [PATCH 1/2] drm/imagination: Fix ERR_PTR test on pointer to pointer.

2023-12-15 Thread Maxime Ripard
On Wed, 13 Dec 2023 14:44:30 +, Donald Robson wrote: > drivers/gpu/drm/imagination/pvr_vm.c:631 pvr_vm_create_context() > error: 'vm_ctx->mmu_ctx' dereferencing possible ERR_PTR() > > 612 vm_ctx->mmu_ctx = pvr_mmu_context_create(pvr_dev); > 613 err = PTR_ERR_OR_ZERO(&vm_ctx->

Re: (subset) [PATCH 2/2] drm/imagination: Fix error path in pvr_vm_create_context

2023-12-15 Thread Maxime Ripard
On Wed, 13 Dec 2023 14:44:31 +, Donald Robson wrote: > It is possible to double free the vm_ctx->mmu_ctx object in this > function. > >     630 err_page_table_destroy: > --> 631 pvr_mmu_context_destroy(vm_ctx->mmu_ctx); > > The pvr_vm_context_put() function does: > > [...] Applied t

Re: (subset) [PATCH] drm/imagination: Fixed oops when misusing ioctl CREATE_HWRT_DATASET

2023-12-15 Thread Maxime Ripard
On Fri, 08 Dec 2023 16:30:19 +, Donald Robson wrote: > While writing the matching IGT suite I discovered that it's possible to > cause a kernel oops when using DRM_IOCTL_PVR_CREATE_HWRT_DATASET when > the call to hwrt_init_common_fw_structure() fails. > > Use an unwind-type error path to avoid

Re: (subset) [PATCH] drm/imagination: Fixed infinite loop in pvr_vm_mips_map()

2023-12-15 Thread Maxime Ripard
On Fri, 08 Dec 2023 16:08:25 +, Donald Robson wrote: > Unwinding loop in error path for this function uses unsigned limit > variable, causing the promotion of the signed counter variable. > > --> 204 for (; pfn >= start_pfn; pfn--) > > If start_p

Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support

2023-12-15 Thread Maxime Ripard
On Fri, Dec 15, 2023 at 11:37:07AM +, Biju Das wrote: > Hi Maxime Ripard, > > > -Original Message- > > From: Maxime Ripard > > Sent: Friday, December 15, 2023 10:24 AM > > To: Biju Das > > Subject: Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU S

Re: [PATCH 0/5] clk: Make clk_rate_exclusive_get() return void

2023-12-15 Thread Maxime Ripard
On Wed, Dec 13, 2023 at 04:52:52PM +0100, Uwe Kleine-König wrote: > On Wed, Dec 13, 2023 at 12:54:14PM +0100, Maxime Ripard wrote: > > On Wed, Dec 13, 2023 at 12:08:29PM +0100, Uwe Kleine-König wrote: > > > On Wed, Dec 13, 2023 at 09:36:49AM +0100, Maxime Ripard wrote: > >

Re: [PATCH v3 2/3] drm/tests: managed: Extract device initialization into test init

2023-12-15 Thread Maxime Ripard
On Mon, Dec 11, 2023 at 11:09:38PM +0100, Michał Winiarski wrote: > It simplifies the process of extending the test suite with additional > test cases without unnecessary duplication. > > Signed-off-by: Michał Winiarski > --- > drivers/gpu/drm/tests/drm_managed_test.c | 51 +-

Re: [PATCH v3 1/3] drm/managed: Add drmm_release_action

2023-12-15 Thread Maxime Ripard
On Mon, 11 Dec 2023 23:09:37 +0100, Michał Winiarski wrote: > Similar to devres equivalent, it allows to call the "release" action > directly and remove the resource from the managed resources list. > > Signed-off-by: Michał Winiarski Reviewed-by: Maxime Ripard Thanks! Maxime

Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support

2023-12-15 Thread Maxime Ripard
On Thu, Dec 14, 2023 at 03:24:17PM +, Biju Das wrote: > Hi Maxime Ripard, > > Thanks for the feedback. > > > -Original Message- > > From: Maxime Ripard > > Sent: Wednesday, December 13, 2023 3:47 PM > > To: Biju Das > > Subject: Re: [

Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support

2023-12-15 Thread Maxime Ripard
On Fri, Dec 15, 2023 at 07:47:07AM +, Biju Das wrote: > Hi Maxime Ripard, > > > -Original Message- > > From: Biju Das > > Sent: Thursday, December 14, 2023 8:50 PM > > Subject: RE: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Sup

Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support

2023-12-15 Thread Maxime Ripard
On Thu, Dec 14, 2023 at 08:50:14PM +, Biju Das wrote: > Hi Maxime Ripard, > > > > -Original Message- > > From: Biju Das > > Sent: Thursday, December 14, 2023 3:24 PM > > Subject: RE: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support > > >

Re: [PATCH 0/5] clk: Make clk_rate_exclusive_get() return void

2023-12-15 Thread Maxime Ripard
Hi Neil, On Wed, Dec 13, 2023 at 05:44:28PM +0100, Neil Armstrong wrote: > Le 13/12/2023 à 09:36, Maxime Ripard a écrit : > > On Wed, Dec 13, 2023 at 08:43:00AM +0100, Uwe Kleine-König wrote: > > > On Wed, Dec 13, 2023 at 08:16:04AM +0100, Maxime Ripard wrote: > > > &

Re: [PATCH v5 6/6] drm/imx: Add drm_panic support

2023-12-14 Thread Maxime Ripard
On Thu, Dec 14, 2023 at 04:03:04PM +0100, Jocelyn Falempe wrote: > > > +static int imx_drm_get_scanout_buffer(struct drm_device *dev, > > > + struct drm_scanout_buffer *sb) > > > +{ > > > + struct drm_plane *plane; > > > + struct drm_gem_dma_object *dma_obj; > > > + >

Re: [PATCH v18 04/26] drm/shmem-helper: Refactor locked/unlocked functions

2023-12-14 Thread Maxime Ripard
On Tue, Dec 05, 2023 at 02:43:16PM +0300, Dmitry Osipenko wrote: > On 12/4/23 15:55, Maxime Ripard wrote: > >> Okay, that means s/_locked/_nolock/ in drm_gem_shmem_helpers.{c,h}, I > >> guess. > > DRM subsys and majority of kernel uses common _locked postfix. We sho

Re: [PATCH v5 6/6] drm/imx: Add drm_panic support

2023-12-14 Thread Maxime Ripard
On Thu, Dec 14, 2023 at 02:48:21PM +0100, Maxime Ripard wrote: > Hi, > > On Fri, Nov 03, 2023 at 03:53:30PM +0100, Jocelyn Falempe wrote: > > Proof of concept to add drm_panic support on an arm based GPU. > > I've tested it with X11/llvmpipe, because I wasn't abl

Re: [PATCH v5 6/6] drm/imx: Add drm_panic support

2023-12-14 Thread Maxime Ripard
Hi, On Fri, Nov 03, 2023 at 03:53:30PM +0100, Jocelyn Falempe wrote: > Proof of concept to add drm_panic support on an arm based GPU. > I've tested it with X11/llvmpipe, because I wasn't able to have > 3d rendering with etnaviv on my imx6 board. > > Signed-off-by: Jocelyn Falempe Like I said in

Re: [RFC][PATCH v6 0/5] drm/panic: Add a drm panic handler

2023-12-14 Thread Maxime Ripard
raw_pixel_xy() API for drivers that can't provide a linear buffer. > * Add a flush() callback for drivers that needs to synchronize the buffer. > * Add a void *private field, so drivers can pass private data to >draw_pixel_xy() and flush(). > * Add ast support. > * Add experim

Re: [PATCH] MAINTAINERS: Remove Donald Robson from powervr driver maintainers

2023-12-14 Thread Maxime Ripard
Hi, On Thu, Dec 14, 2023 at 10:33:53AM +, Donald Robson wrote: > I will be leaving Imagination Technologies on 2023-12-15 and will no > longer be working on this driver. > > Signed-off-by: Donald Robson Applied, thanks Good luck on your next adventure :) Maxime signature.asc Description

[PATCH v2 5/5] drm/todo: Add entry to rename drm_atomic_state

2023-12-14 Thread Maxime Ripard
The name of the structure drm_atomic_state is confusing. Let's add an entry to our todo list to rename it. Reviewed-by: Daniel Vetter Signed-off-by: Maxime Ripard --- Documentation/gpu/todo.rst | 23 +++ 1 file changed, 23 insertions(+) diff --git a/Documentatio

[PATCH v2 4/5] drm/atomic: Make the drm_atomic_state documentation less ambiguous

2023-12-14 Thread Maxime Ripard
. Thus, it's not truly a "global state", unlike object state structures that do contain the entire state of a given object. Signed-off-by: Maxime Ripard --- include/drm/drm_atomic.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/drm/drm_atomic.h b/inc

[PATCH v2 2/5] drm/atomic: Remove inexistent reference

2023-12-14 Thread Maxime Ripard
Commit 63e83c1dba54 ("drm: Consolidate connector arrays in drm_atomic_state") removed the connector_states field but didn't remove its mention in the num_connectors documentation. Acked-by: Sui Jingfeng Reviewed-by: Daniel Vetter Signed-off-by: Maxime Ripard --- include/drm/d

[PATCH v2 3/5] drm/atomic: Rework the object doc a bit

2023-12-14 Thread Maxime Ripard
te, and its old and new state. There's no per-object data there, and there's more than just a pointer to the objects. Let's rephrase those fields a bit to better match the current situation. Acked-by: Sui Jingfeng Reviewed-by: Daniel Vetter Signed-off-by: Maxime Ripard --- includ

[PATCH v2 1/5] drm/atomic: Move the drm_atomic_state field doc inline

2023-12-14 Thread Maxime Ripard
Some fields of drm_atomic_state have been documented in-line, but some were documented in the main kerneldoc block before the structure. Since the former is the preferred option in DRM, let's move all the fields to an inline documentation. Acked-by: Sui Jingfeng Signed-off-by: Maxime R

[PULL] drm-misc-next

2023-12-14 Thread Maxime Ripard
es dt-bindings: vendor-prefixes: Add fascontek dt-bindings: display: panel: add Fascontek FS035VG158 panel Marek Szyprowski (1): drm/debugfs: fix potential NULL pointer dereference Matthew Brost (1): drm/doc/rfc: Mark long running workload as complete. Maxime Ripard (1):

Re: [PATCH v5 18/44] drm/vc4: hdmi: Create destroy state implementation

2023-12-14 Thread Maxime Ripard
Hi Dave, On Tue, Dec 12, 2023 at 11:40:26AM +, Dave Stevenson wrote: > On Thu, 7 Dec 2023 at 15:50, Maxime Ripard wrote: > > > > Even though we were rolling our own custom state for the vc4 HDMI > > controller driver, we were still using the generic helper to d

Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support

2023-12-13 Thread Maxime Ripard
On Wed, Dec 13, 2023 at 04:47:09PM +0100, Maxime Ripard wrote: > On Tue, Nov 28, 2023 at 10:51:27AM +, Biju Das wrote: > > +int rzg2l_du_vsp_init(struct rzg2l_du_vsp *vsp, struct device_node *np, > > + unsigned int crtcs) > > +{ > > + struct rzg2l

Re: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support

2023-12-13 Thread Maxime Ripard
On Tue, Nov 28, 2023 at 10:51:27AM +, Biju Das wrote: > The LCD controller is composed of Frame Compression Processor (FCPVD), > Video Signal Processor (VSPD), and Display Unit (DU). > > It has DPI/DSI interfaces and supports a maximum resolution of 1080p > along with 2 RPFs to support the ble

Re: [PATCH v2 4/4] drm/panel-edp: Add some panels with conservative timings

2023-12-13 Thread Maxime Ripard
On Thu, Dec 07, 2023 at 11:14:34AM -0800, Doug Anderson wrote: > Hi, > > On Thu, Dec 7, 2023 at 10:58 AM Maxime Ripard wrote: > > > > On Thu, Dec 07, 2023 at 10:23:53AM -0800, Doug Anderson wrote: > > > Hi, > > > > > > On Thu, D

Re: (subset) [PATCH] drm/imagination: vm: Fix heap lookup condition

2023-12-13 Thread Maxime Ripard
On Fri, 08 Dec 2023 18:08:56 +0100, Alex Bee wrote: > When conditionally checking for heap existence of a certian address in > pvr_vm_bind_op_map_init the condition whether the map request comes from a > user is incorrect: The context must not be the kernel-context to be a > user(space) context and

Re: (subset) [linux-next:master] drm/panel: ilitek-ili9805: adjust the includes

2023-12-13 Thread Maxime Ripard
On Wed, 13 Dec 2023 12:24:01 +0100, Dario Binacchi wrote: > Adjust the includes to explicitly include the correct headers. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: (subset) [PATCH v5 18/44] drm/vc4: hdmi: Create destroy state implementation

2023-12-13 Thread Maxime Ripard
On Thu, 07 Dec 2023 16:49:41 +0100, Maxime Ripard wrote: > Even though we were rolling our own custom state for the vc4 HDMI > controller driver, we were still using the generic helper to destroy > that state. > > It was mostly working since the underlying state is the first member

Re: (subset) [linux-next:master] drm/panel: synaptics-r63353: adjust the includes

2023-12-13 Thread Maxime Ripard
On Wed, 13 Dec 2023 12:24:32 +0100, Dario Binacchi wrote: > Adjust the includes to explicitly include the correct headers. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: (subset) [PATCH] drm/uapi: drm_mode.h: fix spellos and grammar

2023-12-13 Thread Maxime Ripard
On Tue, 12 Dec 2023 20:41:07 -0800, Randy Dunlap wrote: > Correct spellos reported by codespell. > Fix some grammar (as 's' to a few words). > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: (subset) [PATCH] drm/drm_modeset_helper_vtables.h: fix typos/spellos

2023-12-13 Thread Maxime Ripard
On Tue, 12 Dec 2023 20:32:26 -0800, Randy Dunlap wrote: > Fix spelling problems as identified by codespell. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: (subset) [PATCH] drm/fourcc: fix spelling/typos

2023-12-13 Thread Maxime Ripard
On Tue, 12 Dec 2023 20:39:25 -0800, Randy Dunlap wrote: > Correct spelling mistakes that were identified by codespell. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: [PATCH v4 02/10] drm/bridge: Fix a use case in the bridge disable logic

2023-12-13 Thread Maxime Ripard
On Wed, Dec 13, 2023 at 12:59:05PM +0100, Dario Binacchi wrote: > Hi Jagan and Dave, > > On Wed, Dec 6, 2023 at 2:57 PM Michael Nazzareno Trimarchi > wrote: > > > > Hi Jagan > > > > On Wed, Dec 6, 2023 at 2:31 PM Jagan Teki > > wrote: > > > > > > Hi Dario, > > > > > > On Wed, Dec 6, 2023 at 6:5

Re: [PATCH 0/5] clk: Make clk_rate_exclusive_get() return void

2023-12-13 Thread Maxime Ripard
On Wed, Dec 13, 2023 at 12:08:29PM +0100, Uwe Kleine-König wrote: > On Wed, Dec 13, 2023 at 09:36:49AM +0100, Maxime Ripard wrote: > > On Wed, Dec 13, 2023 at 08:43:00AM +0100, Uwe Kleine-König wrote: > > > On Wed, Dec 13, 2023 at 08:16:04AM +0100, Maxime Ripard wrote: > >

Re: [PATCH 0/5] clk: Make clk_rate_exclusive_get() return void

2023-12-13 Thread Maxime Ripard
Hi, On Wed, Dec 13, 2023 at 08:43:00AM +0100, Uwe Kleine-König wrote: > On Wed, Dec 13, 2023 at 08:16:04AM +0100, Maxime Ripard wrote: > > On Tue, Dec 12, 2023 at 06:26:37PM +0100, Uwe Kleine-König wrote: > > > clk_rate_exclusive_get() returns zero unconditionally. Most users

Re: [PATCH 0/5] clk: Make clk_rate_exclusive_get() return void

2023-12-12 Thread Maxime Ripard
Hi, On Tue, Dec 12, 2023 at 06:26:37PM +0100, Uwe Kleine-König wrote: > Hello, > > clk_rate_exclusive_get() returns zero unconditionally. Most users "know" > that and don't check the return value. This series fixes the four users > that do error checking on the returned value and then makes funct

Re: State of affairs with Ilitek 9341 support

2023-12-11 Thread Maxime Ripard
els as I > > was first hoping for. > > > > I was aware that there was a challenge going from fbtft to DRM because > > in fbtft there is support for all panel setups using the > > property, but in DRM every panel needed support in a driver. So I > > started

Re: [PATCH v2 1/2] dt-bindings: display: simple: Add AUO G156HAN04.0 LVDS display

2023-12-11 Thread Maxime Ripard
On Sat, 9 Dec 2023 07:36:59 +0100, Marek Vasut wrote: > From: Elmar Albert > > Document support for the AUO G156HAN04.0 LVDS display. > > G156HAN04.0 is a Color Active Matrix Liquid Crystal Display composed of > > [ ... ] Acked-by: Maxime Ripard Thanks! Maxime

Re: [PATCH v2 2/2] drm/panel: simple: Add AUO G156HAN04.0 LVDS display support

2023-12-11 Thread Maxime Ripard
1080(V) screen > > [ ... ] Acked-by: Maxime Ripard Thanks! Maxime

Re: [PATCH 4/5] drm/atomic: Make the drm_atomic_state documentation less ambiguous

2023-12-08 Thread Maxime Ripard
On Fri, Dec 08, 2023 at 03:59:46PM +0200, Pekka Paalanen wrote: > On Fri, 8 Dec 2023 13:25:22 +0100 > Maxime Ripard wrote: > > > On Fri, Dec 08, 2023 at 10:08:28AM +0200, Pekka Paalanen wrote: > > > On Thu, 7 Dec 2023 15:27:33 +0100 > > > Maxime Ripard wrote

Re: (subset) [PATCH] drm/crtc: fix uninitialized variable use

2023-12-08 Thread Maxime Ripard
On Fri, 08 Dec 2023 15:12:38 +0200, Jani Nikula wrote: > Commit 3823119b9c2b ("drm/crtc: Fix uninit-value bug in > drm_mode_setcrtc") was supposed to fix use of an uninitialized variable, > but introduced another. > > num_connectors is only initialized if crtc_req->count_connectors > 0, > but it's

Re: [PATCH 4/5] drm/atomic: Make the drm_atomic_state documentation less ambiguous

2023-12-08 Thread Maxime Ripard
On Fri, Dec 08, 2023 at 10:08:28AM +0200, Pekka Paalanen wrote: > On Thu, 7 Dec 2023 15:27:33 +0100 > Maxime Ripard wrote: > > > On Tue, Dec 05, 2023 at 10:51:06AM +0200, Pekka Paalanen wrote: > > > On Mon, 4 Dec 2023 13:17:06 +0100 > > > Maxime Ripard wr

Re: (subset) [PATCH -next] drm/imagination: Remove unneeded semicolon

2023-12-08 Thread Maxime Ripard
On Fri, 08 Dec 2023 08:30:34 +0800, Yang Li wrote: > ./drivers/gpu/drm/imagination/pvr_fw_trace.c:251:2-3: Unneeded semicolon > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: (subset) [PATCH] drm/imagination: Move dereference after NULL check in pvr_mmu_backing_page_init()

2023-12-08 Thread Maxime Ripard
On Wed, 06 Dec 2023 17:37:24 +0300, Dan Carpenter wrote: > This code dereferences "page->pvr_dev" and then checked for NULL on the > next line. Re-order it to avoid a potential NULL pointer dereference. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: (subset) [PATCH v4 2/2] drm/vkms: move wb's atomic_check from encoder to connector

2023-12-08 Thread Maxime Ripard
On Fri, 08 Dec 2023 04:03:14 +0300, Dmitry Baryshkov wrote: > As the renamed drm_atomic_helper_check_wb_connector_state() now accepts > drm_writeback_connector as the first argument (instead of drm_encoder), > move the VKMS writeback atomic_check from drm_encoder_helper_funcs to > drm_connector_hel

Re: (subset) [PATCH v4 1/2] drm/atomic-helper: rename drm_atomic_helper_check_wb_encoder_state

2023-12-08 Thread Maxime Ripard
On Fri, 08 Dec 2023 04:03:13 +0300, Dmitry Baryshkov wrote: > The drm_atomic_helper_check_wb_encoder_state() function doesn't use > encoder for anything other than getting the drm_device instance. The > function's description talks about checking the writeback connector > state, not the encoder sta

Re: [PATCH] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-12-08 Thread Maxime Ripard
On Fri, 21 Jul 2023 09:14:46 -0700, Ziqi Zhao wrote: > The connector_set contains uninitialized values when allocated with > kmalloc_array. However, in the "out" branch, the logic assumes that any > element in connector_set would be equal to NULL if failed to > initialize, which causes the bug repo

Re: [v3 5/6] drm/vs: Add hdmi driver

2023-12-08 Thread Maxime Ripard
t; >> 在 2023-12-07 18:48:13,"Keith Zhao" 写道: > >>> > >>> > >>>On 2023/12/7 17:02, Andy Yan wrote: > >>>> > >>>> > >>>> > >>>> > >>>> Hi Keith: > >>>>

Re: [PATCH v2 4/4] drm/panel-edp: Add some panels with conservative timings

2023-12-07 Thread Maxime Ripard
On Thu, Dec 07, 2023 at 10:23:53AM -0800, Doug Anderson wrote: > Hi, > > On Thu, Dec 7, 2023 at 12:18 AM Pin-yen Lin wrote: > > > > These panels are used by Mediatek MT8173 Chromebooks but we can't find > > the corresponding data sheets, and these panels used to work on v4.19 > > kernel without a

[PATCH v5 44/44] drm/sun4i: hdmi: Switch to HDMI connector

2023-12-07 Thread Maxime Ripard
The new HDMI connector infrastructure allows to remove some boilerplate, especially to generate infoframes. Let's switch to it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 80 ++ 1 file changed, 51 insertions(+), 29 dele

[PATCH v5 43/44] drm/sun4i: hdmi: Consolidate atomic_check and mode_valid

2023-12-07 Thread Maxime Ripard
atomic_check and mode_valid do not check for the same things which can lead to surprising result if the userspace commits a mode that didn't go through mode_valid. Let's merge the two implementations into a function called by both. Signed-off-by: Maxime Ripard --- drivers/gpu

[PATCH v5 39/44] drm/rockchip: inno_hdmi: Switch to HDMI connector

2023-12-07 Thread Maxime Ripard
The new HDMI connector infrastructure allows to remove some boilerplate, especially to generate infoframes. Let's switch to it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 86 ++-- 1 file changed, 42 insertions(+), 44 dele

[PATCH v5 40/44] drm/sun4i: hdmi: Convert encoder to atomic

2023-12-07 Thread Maxime Ripard
The sun4i_hdmi driver still uses the non-atomic variants of the encoder hooks, so let's convert to their atomic equivalents. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/driver

[PATCH v5 42/44] drm/sun4i: hdmi: Switch to container_of_const

2023-12-07 Thread Maxime Ripard
container_of_const() allows to preserve the pointer constness and is thus more flexible than inline functions. Let's switch all our instances of container_of() to container_of_const(). Reviewed-by: Sui Jingfeng Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c

[PATCH v5 41/44] drm/sun4i: hdmi: Move mode_set into enable

2023-12-07 Thread Maxime Ripard
We're not doing anything special in atomic_mode_set so we can simply merge it into atomic_enable. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 38 +- 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/drivers/gp

[PATCH v5 37/44] drm/rockchip: inno_hdmi: Switch to infoframe type

2023-12-07 Thread Maxime Ripard
The inno_hdmi driver relies on its own internal infoframe type matching the hardware. This works fine, but in order to make further reworks easier, let's switch to the HDMI spec definition of those types. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c

[PATCH v5 35/44] drm/rockchip: inno_hdmi: Drop HDMI Vendor Infoframe support

2023-12-07 Thread Maxime Ripard
The HDMI vendor infoframe is only meant to be sent with 4k60 modes and higher, but the controller doesn't support them. Let's drop them from the kernel. Suggested-by: Johan Jonker Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 35 ++--

[PATCH v5 34/44] drm/rockchip: inno_hdmi: Remove useless mode_valid

2023-12-07 Thread Maxime Ripard
The inno_hdmi mode_valid implementation always return MODE_OK which is what the core assumes when we don't have an implementation. Let's get rid of it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 8 1 file changed, 8 deletions(-) diff --git a/d

[PATCH v5 38/44] drm/rockchip: inno_hdmi: Remove unused drm device pointer

2023-12-07 Thread Maxime Ripard
The drm_dev field in the inno_hdmi struct stores a pointer to the DRM device but is never used anywhere in the driver. Let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_h

[PATCH v5 36/44] drm/rockchip: inno_hdmi: Move infoframe disable to separate function

2023-12-07 Thread Maxime Ripard
ke it obvious what we are doing in the error path. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 47 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/roc

[PATCH v5 31/44] drm/rockchip: inno_hdmi: Remove useless enum

2023-12-07 Thread Maxime Ripard
The CSC_* enum has no users left, so let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index c342bc8b3a23..f05417c

[PATCH v5 33/44] drm/rockchip: inno_hdmi: Remove useless coeff_csc matrix

2023-12-07 Thread Maxime Ripard
The coeff_csc matrix isn't used anymore, let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 70 1 file changed, 70 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/i

[PATCH v5 30/44] drm/rockchip: inno_hdmi: Remove useless colorimetry

2023-12-07 Thread Maxime Ripard
The colorimetry field of hdmi_data_info is not used anywhere so we can get rid of it. This was the last field left in that structure so we can get rid of it too. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 15 --- 1 file changed, 15 deletions(-) diff

[PATCH v5 32/44] drm/rockchip: inno_hdmi: Remove tmds rate from structure

2023-12-07 Thread Maxime Ripard
when we don't have a mode yet. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index f05417c6b637..35f44e5

[PATCH v5 24/44] drm/rockchip: inno_hdmi: Switch encoder hooks to atomic

2023-12-07 Thread Maxime Ripard
The inno_hdmi encoder still uses the !atomic variants of enable, disable and modeset. Convert to their atomic equivalents. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/gpu

[PATCH v5 29/44] drm/rockchip: inno_hdmi: Remove useless output format

2023-12-07 Thread Maxime Ripard
Similarly to the input format, the driver has a lot of code to deal with various output format, but the driver hardcodes it to RGB always. Let's get rid of the dead code. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 57 1

[PATCH v5 25/44] drm/rockchip: inno_hdmi: Get rid of mode_set

2023-12-07 Thread Maxime Ripard
We're not doing anything special in atomic_mode_set so we can simply merge it into atomic_enable. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/roc

[PATCH v5 27/44] drm/rockchip: inno_hdmi: Remove unneeded has audio flag

2023-12-07 Thread Maxime Ripard
The sink_has_audio flag is not used anywhere in the driver so let's get rid of it. It's redundant with drm_display_info.has_audio anyway. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/dr

[PATCH v5 28/44] drm/rockchip: inno_hdmi: Remove useless input format

2023-12-07 Thread Maxime Ripard
The driver has a lot of logic to deal with multiple input formats, but hardcodes it to RGB. This means that most of that code has been dead code, so let's get rid of it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 39 +--- 1

[PATCH v5 26/44] drm/rockchip: inno_hdmi: no need to store vic

2023-12-07 Thread Maxime Ripard
The mode's VIC is only ever used in the inno_hdmi_setup() function so there's no need to store it in the main structure. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drive

[PATCH v5 23/44] drm/rockchip: inno_hdmi: Remove useless copy of drm_display_mode

2023-12-07 Thread Maxime Ripard
The driver maintains a copy of the adjusted mode but doesn't use it anywhere. Remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_h

[PATCH v5 21/44] drm/vc4: tests: Convert to plane creation helper

2023-12-07 Thread Maxime Ripard
Now that we have a plane create helper for kunit mocked drivers, let's convert to it in vc4. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/tests/vc4_mock_plane.c | 34 +++--- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/drm/vc4/

[PATCH v5 22/44] drm/rockchip: inno_hdmi: Remove useless mode_fixup

2023-12-07 Thread Maxime Ripard
The mode_fixup implementation doesn't do anything, so we can simply remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c

[PATCH v5 18/44] drm/vc4: hdmi: Create destroy state implementation

2023-12-07 Thread Maxime Ripard
x27;s still fragile so let's fix this properly. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index 25c9c71256d3..f05e2c95a60d 10

<    5   6   7   8   9   10   11   12   13   14   >