[Intel-gfx] [PULL] drm-misc-fixes

2023-02-16 Thread Maxime Ripard
Hi Dave, Daniel, Here's this week drm-misc-fixes PR. Maxime drm-misc-fixes-2023-02-16: Multiple fixes in vc4 to address issues with YUV planes, HDMI and CRTC; an invalid page access fix for fbdev, mark dynamic debug as broken, a double free and refcounting fix for vmwgfx. The following changes s

[Intel-gfx] [PULL] drm-misc-fixes

2023-02-23 Thread Maxime Ripard
Hi Dave, Daniel, Here's this week drm-misc-fixes PR Maxime drm-misc-fixes-2023-02-23: A fix for nouveau preventing the system shutdown and one for a build warning, and NULL pointer dereference fix for cirrus. The following changes since commit a950b989ea29ab3b38ea7f6e3d2540700a3c54e8: drm/vmw

Re: [Intel-gfx] [PULL] drm-misc-next-fixes

2023-02-23 Thread Maxime Ripard
Hi Maarten, On Thu, Feb 23, 2023 at 07:25:23PM +0100, Maarten Lankhorst wrote: > Hi Dave and Daniel, > > Here's the first pull request for v6.4-rc1. > > Enjoy! > > ~Maarten > > drm-misc-next-2023-02-23: > drm-misc-next for v6.4-rc1: > > First pull request to keep the delta from growing too bi

Re: [Intel-gfx] [PATCH] drm/atomic-helpers: remove legacy_cursor_update hacks

2023-03-07 Thread Maxime Ripard
bug report. Thanks for submitting that patch. It's been in the downstream RPi tree for a while, so I'd really like it to be merged eventually :) Acked-by: Maxime Ripard Maxime signature.asc Description: PGP signature

[Intel-gfx] [PULL] drm-misc-next

2023-05-11 Thread Maxime Ripard
ehind a null pointer check in two functions drm/bridge: it6505: Move a variable assignment behind a null pointer check in receive_timing_debugfs_show() Maxime Ripard (3): drm/vc4: Switch to container_of_const drm/vc4: hdmi: Update all the planes if the TV margins are changed

Re: [Intel-gfx] [PATCH] MAINTAINERS: drm/ci: add entries for xfail files

2023-10-26 Thread Maxime Ripard
On Tue, 19 Sep 2023 15:22:49 -0300, Helen Koike wrote: > DRM CI keeps track of which tests are failing, flaking or being skipped > by the ci in the expectations files. Add entries for those files to the > corresponding driver maintainer, so they can be notified when they > change. > > Applied to

Re: [Intel-gfx] [PATCH v4 02/30] drm/dp_mst: Fix fractional DSC bpp handling

2023-11-06 Thread Maxime Ripard
's ok to > > merge them via the i915 tree? > > Need acks from drm-misc maintainers too! > > Cc: Maxime, Thomas, Maarten Acked-by: Maxime Ripard Maxime signature.asc Description: PGP signature

Re: [Intel-gfx] [PULL] drm-misc-next

2023-11-06 Thread Maxime Ripard
On Mon, Nov 06, 2023 at 11:01:51AM +0100, Thomas Hellström wrote: > Hi, David. > > On 11/3/23 17:37, David Edelsohn wrote: > > Dual-license drm_gpuvm to GPL-2.0 OR MIT. > > diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c > > index 02ce6baacdad..08c088319652 100644 --- > > a/

Re: [Intel-gfx] (subset) [PATCH 1/7] drm: Do not round to megabytes for greater than 1MiB sizes in fdinfo stats

2023-11-06 Thread Maxime Ripard
On Wed, 27 Sep 2023 14:38:37 +0100, Tvrtko Ursulin wrote: > It is better not to lose precision and not revert to 1 MiB size > granularity for every size greater than 1 MiB. > > Sizes in KiB should not be so troublesome to read (and in fact machine > parsing is I expect the norm here), they align w

Re: [Intel-gfx] [PULL] drm-misc-next

2023-11-06 Thread Maxime Ripard
On Mon, Nov 06, 2023 at 11:37:34AM +0100, Thomas Hellström wrote: > On 11/6/23 11:20, Maxime Ripard wrote: > > On Mon, Nov 06, 2023 at 11:01:51AM +0100, Thomas Hellström wrote: > > > Hi, David. > > > > > > On 11/3/23 17:37, David Edelsohn wrote: > > &g

Re: [Intel-gfx] [PATCH v7 1/6] drm/panelreplay: dpcd register definition for panelreplay

2023-11-06 Thread Maxime Ripard
On Mon, Nov 06, 2023 at 01:01:19PM +, Manna, Animesh wrote: > > > > -Original Message- > > From: Nikula, Jani > > Sent: Friday, November 3, 2023 2:55 PM > > To: Manna, Animesh ; intel- > > g...@lists.freedesktop.org; Maxime Ripard ; Thoma

Re: [Intel-gfx] linux-next: Signed-off-by missing for commit in the drm-misc tree

2023-11-16 Thread Maxime Ripard
On Tue, Nov 14, 2023 at 06:46:21PM -0500, Luben Tuikov wrote: > On 2023-11-13 22:08, Stephen Rothwell wrote: > > BTW, cherry picking commits does not avoid conflicts - in fact it can > > cause conflicts if there are further changes to the files affected by > > the cherry picked commit in either the

Re: [Intel-gfx] linux-next: Signed-off-by missing for commit in the drm-misc tree

2023-11-16 Thread Maxime Ripard
Hi, On Mon, Nov 13, 2023 at 09:56:32PM -0500, Luben Tuikov wrote: > On 2023-11-13 21:45, Stephen Rothwell wrote: > > Hi Luben, > > > > On Mon, 13 Nov 2023 20:32:40 -0500 Luben Tuikov wrote: > >> > >> On 2023-11-13 20:08, Luben Tuikov wrote: > >>> On 2023-11-13 15:55, Stephen Rothwell wrote: >

[Intel-gfx] [PULL] drm-misc-next

2023-11-17 Thread Maxime Ripard
ies in Kconfig and Makefile Matthew Brost (5): drm/sched: Add drm_sched_wqueue_* helpers drm/sched: Convert drm scheduler to use a work queue rather than kthread drm/sched: Split free_job into own work item drm/sched: Add drm_sched_start_timeout_unlocked helper drm/sched:

Re: [Intel-gfx] [PATCH 0/4] drm/i915: Fix LUT rounding

2023-11-21 Thread Maxime Ripard
conversion rules. > > > > Ville Syrjälä (4): > > drm: Fix color LUT rounding > ^ > I'd like to merge this via drm-intel-next as needs to match > the rounding done in the readout path in i915. > > Maarten,Maxime,Thomas can I get an ack for that? Acked-by: Maxime Ripard Maxime signature.asc Description: PGP signature

Re: [Intel-gfx] linux-next: Signed-off-by missing for commit in the drm-misc tree

2023-11-22 Thread Maxime Ripard
Hi Luben, On Thu, Nov 16, 2023 at 09:27:58AM +0100, Daniel Vetter wrote: > On Thu, Nov 16, 2023 at 09:11:43AM +0100, Maxime Ripard wrote: > > On Tue, Nov 14, 2023 at 06:46:21PM -0500, Luben Tuikov wrote: > > > On 2023-11-13 22:08, Stephen Rothwell wrote: > > > > BT

[Intel-gfx] [PULL] drm-misc-next

2023-11-23 Thread Maxime Ripard
Hi, Here's this week drm-misc-next PR. It's been fairly calm, but there's one big change: the IMG GPU driver is now merged! Maxime drm-misc-next-2023-11-23: drm-misc-next for 6.8: UAPI Changes: Cross-subsystem Changes: Core Changes: - Drop deprecated drm_kms_helper.edid_firmware module par

[Intel-gfx] [PULL] drm-misc-next

2023-11-30 Thread Maxime Ripard
Hi, Here's this week drm-misc-next PR Thanks! Maxime drm-misc-next-2023-11-30: drm-misc-next for 6.8: UAPI Changes: - Introduction of DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP - Introduction of DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT Cross-subsystem Changes: - fbdev: Convert a big chunks of drivers to hel

Re: [Intel-gfx] [RFC] drm: enable W=1 warnings by default across the subsystem

2023-11-30 Thread Maxime Ripard
Hi, On Thu, Nov 30, 2023 at 10:52:17AM +0200, Jani Nikula wrote: > On Wed, 29 Nov 2023, Hamza Mahfooz wrote: > > Cc: Nathan Chancellor > > > > On 11/29/23 13:12, Jani Nikula wrote: > >> At least the i915 and amd drivers enable a bunch more compiler warnings > >> than the kernel defaults. > >> >

Re: [Intel-gfx] [RFC] drm: enable W=1 warnings by default across the subsystem

2023-11-30 Thread Maxime Ripard
On Thu, Nov 30, 2023 at 11:46:00AM +0200, Jani Nikula wrote: > On Thu, 30 Nov 2023, Javier Martinez Canillas wrote: > > Maxime Ripard writes: > > > >> Hi, > >> > >> On Thu, Nov 30, 2023 at 10:52:17AM +0200, Jani Nikula wrote: > >>> On Wed,

Re: [Intel-gfx] [PATCH RESEND AGAIN v2 0/2] Add drm_dbg_ratelimited()

2023-12-07 Thread Maxime Ripard
On Wed, Dec 06, 2023 at 10:09:46PM +0100, Andi Shyti wrote: > This is the second time I am resending this series in its v2. It > has been reviewd, acked, blessed, discussed, rectified, assessed, > authorized, validated, glorified, praised, demanded, approved, > and yet, I don't understand why no on

[Intel-gfx] [PULL] drm-misc-next

2023-12-07 Thread Maxime Ripard
Hi Dave, Sima, Here's this week drm-misc-next PR Maxime drm-misc-next-2023-12-07: drm-misc-next for 6.8: UAPI Changes: - Remove Userspace Mode-Setting ioctls - v3d: New uapi to handle jobs involving the CPU Cross-subsystem Changes: Core Changes: - atomic: Add support for FB-less planes

Re: [PATCH RESEND AGAIN v2 0/2] Add drm_dbg_ratelimited()

2023-12-07 Thread Maxime Ripard
On Thu, Dec 07, 2023 at 10:23:08AM +0100, Andi Shyti wrote: > Hi Thomas and Maxime, > > thanks for the answer, > > On Thu, Dec 07, 2023 at 10:10:55AM +0100, Maxime Ripard wrote: > > On Wed, Dec 06, 2023 at 10:09:46PM +0100, Andi Shyti wrote: > > > This is the s

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

[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):

[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 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&

[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 5/7] drm/uAPI: Add "preferred color format" drm property as setting for userspace

2024-01-10 Thread Maxime Ripard
Hi, On Tue, Jan 09, 2024 at 06:11:02PM +, Andri Yngvason wrote: > From: Werner Sembach > > Add a new general drm property "preferred color format" which can be used > by userspace to tell the graphic drivers to which color format to use. > > Possible options are: > - auto (default/curre

[PULL] drm-misc-next-fixes

2024-01-11 Thread Maxime Ripard
Hi, Here's this week drm-misc-next-fixes PR. Maxime drm-misc-next-fixes-2024-01-11: A fix for the v3d register readout, and two compilation fixes for rockchip. The following changes since commit eee706839333ec0643f1b4898a37588025bf4cb5: drm/imagination: pvr_device.h: fix all kernel-doc warnin

[PULL] drm-misc-next-fixes

2024-01-19 Thread Maxime Ripard
Hi, Here's this week (and last (maybe)) drm-misc-next-fixes PR. Thanks! Maxime drm-misc-next-fixes-2024-01-19: A null pointer dereference fix for v3d and a protection fault fix for ttm. The following changes since commit 89fe46019a62bc1d0cb49c9615cb3520096c4bc1: drm/v3d: Fix support for regis

[PULL] drm-misc-fixes

2024-01-26 Thread Maxime Ripard
iebel (1): drm: panel-simple: add missing bus flags for Tianma tm070jvhg[30/33] Maxime Ripard (1): Merge v6.8-rc1 into drm-misc-fixes Michał Winiarski (1): drm/tests: mm: Call drm_mm_print in drm_test_mm_debug Pin-yen Lin (1): drm/bridge: parade-ps8640: Ensure brid

Re: [Intel-gfx] [PATCH v2 00/41] drm: Analog TV Improvements

2022-09-21 Thread Maxime Ripard
On Wed, Sep 07, 2022 at 06:44:53PM +0200, Noralf Trønnes wrote: > > > Den 07.09.2022 12.36, skrev Stefan Wahren: > > Hi Maxime, > > > > Am 05.09.22 um 16:57 schrieb Maxime Ripard: > >> On Fri, Sep 02, 2022 at 01:28:16PM +0200, Noralf Trønnes wrote: > >&

Re: [Intel-gfx] [PATCH v2 10/41] drm/modes: Add a function to generate analog display modes

2022-09-21 Thread Maxime Ripard
Hi, Thanks again for your help On Sun, Sep 11, 2022 at 06:30:39AM +0200, kFYatek wrote: > W dniu 9.09.2022 o 16:00, Maxime Ripard pisze: > > On Wed, Sep 07, 2022 at 11:31:21PM +0200, Mateusz Kwiatkowski wrote: > >> The "canonical" modelines (at least for vc

Re: [Intel-gfx] [PATCH v2 10/41] drm/modes: Add a function to generate analog display modes

2022-09-21 Thread Maxime Ripard
Hi, On Sun, Sep 11, 2022 at 06:48:50AM +0200, Mateusz Kwiatkowski wrote: > >> Those extra vbp lines will be treated as a black bar at the top of the > >> frame, > >> and extra vfp lines will be at the bottom of the frame. > >> > >> However if someone specifies e.g. 720x604, there's nothing more y

[Intel-gfx] [PATCH v2 00/33] drm: Analog TV Improvements

2022-09-22 Thread Maxime Ripard
4 -s 53:720x480i -w 53:'TV mode':1 # NTSC modetest -M vc4 -s 53:720x576i -w 53:'TV mode':4 # PAL Let me know what you think, Maxime To: David Airlie To: Daniel Vetter To: Maarten Lankhorst To: Maxime Ripard To: Thomas Zimmermann To: Emma Anholt To: Jani Nikula To: Joona

[Intel-gfx] [PATCH v2 01/33] drm/tests: Order Kunit tests in Makefile

2022-09-22 Thread Maxime Ripard
Since we've recently added a ton of tests, the list starts to be a bit of a mess and creates unneeded conflicts. Let's order it alphabetically. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/tests/Makefile b/drivers/gpu/drm/tests/Makefile index 91b70f7d2769..2d9f49b62

[Intel-gfx] [PATCH v2 02/33] drm/tests: Add Kunit Helpers

2022-09-22 Thread Maxime Ripard
ff-by: Maxime Ripard diff --git a/drivers/gpu/drm/tests/Makefile b/drivers/gpu/drm/tests/Makefile index 2d9f49b62ecb..b29ef1085cad 100644 --- a/drivers/gpu/drm/tests/Makefile +++ b/drivers/gpu/drm/tests/Makefile @@ -8,6 +8,7 @@ obj-$(CONFIG_DRM_KUNIT_TEST) += \ drm_format_helper_t

[Intel-gfx] [PATCH v2 04/33] drm/connector: Rename subconnector state variable

2022-09-22 Thread Maxime Ripard
, the select subconnector property is stored in a field called subconnector, creating some ambiguity about which property content we're accessing. Let's rename that field to one called select_subconnector to make it move obvious what it's about. Reviewed-by: Noralf Trønnes Signed-o

[Intel-gfx] [PATCH v2 03/33] drm/atomic-helper: Rename drm_atomic_helper_connector_tv_reset to avoid ambiguity

2022-09-22 Thread Maxime Ripard
eviewed-by: Noralf Trønnes Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_atomic_state_helper.c b/drivers/gpu/drm/drm_atomic_state_helper.c index bf31b9d92094..dfb57217253b 100644 --- a/drivers/gpu/drm/drm_atomic_state_helper.c +++ b/drivers/gpu/drm/drm_atomic_state_helper.c @@ -464,

[Intel-gfx] [PATCH v2 05/33] drm/atomic: Add TV subconnector property to get/set_property

2022-09-22 Thread Maxime Ripard
The subconnector property was created by drm_mode_create_tv_properties(), but wasn't exposed to the userspace through the generic atomic_get/set_property implementation, and wasn't stored in any generic state structure. Let's solve this. Reviewed-by: Noralf Trønnes Signed-off-by

[Intel-gfx] [PATCH v2 06/33] drm/connector: Rename legacy TV property

2022-09-22 Thread Maxime Ripard
hould move away from it. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index c06d0639d552..7f2b9a07fbdf 100644 --- a/drivers/gpu/drm/drm_atomic_uapi.c +++ b/drivers/gpu/drm/drm_atomic_uapi.c @@ -698,8 +698,

[Intel-gfx] [PATCH v2 08/33] drm/connector: Rename drm_mode_create_tv_properties

2022-09-22 Thread Maxime Ripard
uce a new variant of that function creating the property superseeding it in a later patch. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 17a5913cefe3..4e4fbc9e0049 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/driver

[Intel-gfx] [PATCH v2 09/33] drm/connector: Add TV standard property

2022-09-22 Thread Maxime Ripard
#x27;ll then be able to phase out the older tv mode property. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index 7f2b9a07fbdf..d867e7f9f2cd 100644 --- a/drivers/gpu/drm/drm_atomic_uapi.c +++ b/drivers/gpu/drm/drm_atomic_uapi.c @

[Intel-gfx] [PATCH v2 07/33] drm/connector: Only register TV mode property if present

2022-09-22 Thread Maxime Ripard
The drm_create_tv_properties() will create the TV mode property unconditionally. However, since we'll gradually phase it out, let's register it only if we have a list passed as an argument. This will make the transition easier. Acked-by: Noralf Trønnes Signed-off-by: Maxime Ripard

[Intel-gfx] [PATCH v2 11/33] drm/modes: Only consider bpp and refresh before options

2022-09-22 Thread Maxime Ripard
tions separator. A follow-up patch will add a unit-test for this once such an option is introduced. Reviewed-by: Geert Uytterhoeven Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 76ab700f56ff..8742ee078fe6 100644 --- a/drivers/gpu/drm/drm_mo

[Intel-gfx] [PATCH v2 12/33] drm/modes: parse_cmdline: Add support for named modes containing dashes

2022-09-22 Thread Maxime Ripard
any dashes that are not followed immediately by a digit when looking for the separator. Signed-off-by: Geert Uytterhoeven Reviewed-by: Hans de Goede Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 8742ee078fe6..a1964e08c38f 100644 -

[Intel-gfx] [PATCH v2 10/33] drm/modes: Add a function to generate analog display modes

2022-09-22 Thread Maxime Ripard
splay usually have fairly loose timings requirements, the only discrete parameters being the total number of lines and pixel clock frequency. Thus, we created a function that will create a display mode from the standard, the pixel frequency and the active area. Signed-off-by: Maxime Ripard diff --

[Intel-gfx] [PATCH v2 14/33] drm/modes: Move named modes parsing to a separate function

2022-09-22 Thread Maxime Ripard
The current construction of the named mode parsing doesn't allow to extend it easily. Let's move it to a separate function so we can add more parameters and modes. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index a1

[Intel-gfx] [PATCH v2 13/33] drm/client: Add some tests for drm_connector_pick_cmdline_mode()

2022-09-22 Thread Maxime Ripard
drm_connector_pick_cmdline_mode() is in charge of finding a proper drm_display_mode from the definition we got in the video= command line argument. Let's add some unit tests to make sure we're not getting any regressions there. Signed-off-by: Maxime Ripard diff --git a/drive

[Intel-gfx] [PATCH v2 15/33] drm/modes: Bail out of named mode parsing if empty

2022-09-22 Thread Maxime Ripard
If the name we want to parse has a length of zero, there's no need to compare it to the list of all the named modes we support, we can return straight away. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index b1e800e4ed60..8d629fb

[Intel-gfx] [PATCH v2 16/33] drm/modes: Bail out of named mode parsing early if it's a number

2022-09-22 Thread Maxime Ripard
If the name we want to parse starts with a digit, it's not a named mode. Thus, there's no need to compare it to the list of all the named modes we support, we can return straight away. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_mod

[Intel-gfx] [PATCH v2 17/33] drm/modes: Bail out of named mode parsing early if it's an option

2022-09-22 Thread Maxime Ripard
between the name and its value, so if we ever find an equal sign in our string, we can bail early since we never had a mode to parse. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index ede5b094da4c..dc5d5bdbea7a 100644 --- a/drivers/gpu/drm

[Intel-gfx] [PATCH v2 18/33] drm/modes: Bail out of named mode parsing early if it's a status

2022-09-22 Thread Maxime Ripard
x27;s going on. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index dc5d5bdbea7a..9cee0ad806b8 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -2249,6 +2249,15 @@ static int drm_mode_parse_cmdline_named_mode(const ch

[Intel-gfx] [PATCH v2 19/33] drm/modes: Switch to named mode descriptors

2022-09-22 Thread Maxime Ripard
The current named mode parsing relies only the mode name, and doesn't allow to specify any other parameter. Let's convert that string list to an array of a custom structure that will hold the name and some additional parameters in the future. Signed-off-by: Maxime Ripard diff --git

[Intel-gfx] [PATCH v2 20/33] drm/modes: Fill drm_cmdline mode from named modes

2022-09-22 Thread Maxime Ripard
modes and properties. Let's start by properly filling drm_cmdline_mode from a named mode. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 8c8b37ba37dc..5d8b6a0d96f3 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/d

[Intel-gfx] [PATCH v2 21/33] drm/connector: Add pixel clock to cmdline mode

2022-09-22 Thread Maxime Ripard
We'll need to get the pixel clock to generate proper display modes for all the current named modes. Let's add it to struct drm_cmdline_mode and fill it when parsing the named mode. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_mod

[Intel-gfx] [PATCH v2 24/33] drm/modes: Properly generate a drm_display_mode from a named mode

2022-09-22 Thread Maxime Ripard
, there's no real code to make that translation and we rely on the drivers to guess which actual display mode we meant. Let's modify drm_mode_create_from_cmdline_mode() to properly generate the drm_display_mode we mean when passing a named mode. Signed-off-by: Maxime Ripard diff --git a/d

[Intel-gfx] [PATCH v2 22/33] drm/connector: Add a function to lookup a TV mode by its name

2022-09-22 Thread Maxime Ripard
return its value. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index e7aa8de08f5b..7acf294aba5f 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -992,6 +992,30 @@ static const struct drm_prop

[Intel-gfx] [PATCH v2 23/33] drm/modes: Introduce the tv_mode property as a command-line option

2022-09-22 Thread Maxime Ripard
d-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index eb3c4e596c67..23e665fd808e 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -2133,6 +2133,29 @@ static int drm_mode_parse_panel_orientation(const char *delim, r

[Intel-gfx] [PATCH v2 25/33] drm/modes: Introduce more named modes

2022-09-22 Thread Maxime Ripard
Now that we can easily extend the named modes list, let's add a few more analog TV modes that were used in the wild, and some unit tests to make sure it works as intended. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 1ca1f82

[Intel-gfx] [PATCH v2 26/33] drm/atomic-helper: Add a TV properties reset helper

2022-09-22 Thread Maxime Ripard
lf Trønnes Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_atomic_state_helper.c b/drivers/gpu/drm/drm_atomic_state_helper.c index dfb57217253b..0373c3dc824b 100644 --- a/drivers/gpu/drm/drm_atomic_state_helper.c +++ b/drivers/gpu/drm/drm_atomic_state_helper.c @@ -481,6 +481,

[Intel-gfx] [PATCH v2 27/33] drm/atomic-helper: Add an analog TV atomic_check implementation

2022-09-22 Thread Maxime Ripard
The analog TV connector drivers share some atomic_check logic, and the new TV standard property have created a bunch of new constraints that needs to be shared across drivers too. Let's create an atomic_check helper for those use cases. Reviewed-by: Noralf Trønnes Signed-off-by: Maxime R

[Intel-gfx] [PATCH v2 30/33] drm/vc4: vec: Check for VEC output constraints

2022-09-22 Thread Maxime Ripard
ki Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index baa29067a1ff..6828b79a1001 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c +++ b/drivers/gpu/drm/vc4/vc4_vec.c @@ -453,6 +453,7 @@ static int vc4_vec_encoder_atomic_check(struct drm_encoder

[Intel-gfx] [PATCH v2 29/33] drm/vc4: vec: Use TV Reset implementation

2022-09-22 Thread Maxime Ripard
The analog TV properties created by the drm_mode_create_tv_properties() are not properly initialised at reset. Let's switch our implementation to call drm_atomic_helper_connector_tv_reset(). Reviewed-by: Noralf Trønnes Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/vc4/vc4_ve

[Intel-gfx] [PATCH v2 28/33] drm/vc4: vec: Fix definition of PAL-M mode

2022-09-22 Thread Maxime Ripard
. Signed-off-by: Mateusz Kwiatkowski Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index f31fef938f11..5ec3a12359b1 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c +++ b/drivers/gpu/drm/vc4/vc4_vec.c @@ -69,6 +69,7 @@ #define

[Intel-gfx] [PATCH v2 31/33] drm/vc4: vec: Convert to the new TV mode property

2022-09-22 Thread Maxime Ripard
Now that the core can deal fine with analog TV modes, let's convert the vc4 VEC driver to leverage those new features. We've added some backward compatibility to support the old TV mode property and translate it into the new TV norm property. Signed-off-by: Maxime Ripard diff --git

[Intel-gfx] [PATCH v2 33/33] drm/sun4i: tv: Convert to the new TV mode property

2022-09-22 Thread Maxime Ripard
Now that the core can deal fine with analog TV modes, let's convert the sun4i TV driver to leverage those new features. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index 74ff5ad6a8b9..833742cee745 100644 --- a/drivers/gp

[Intel-gfx] [PATCH v2 32/33] drm/vc4: vec: Add support for more analog TV standards

2022-09-22 Thread Maxime Ripard
and various parts of Africa and Asia. Uses the same 576i50 timings as PAL. Also added some comments explaining color subcarrier frequency registers. Signed-off-by: Mateusz Kwiatkowski Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index

Re: [Intel-gfx] [PATCH v2 00/33] drm: Analog TV Improvements

2022-09-22 Thread Maxime Ripard
Hi, On Thu, Sep 22, 2022 at 04:25:17PM +0200, Maxime Ripard wrote: > Here's a series aiming at improving the command line named modes support, > and more importantly how we deal with all the analog TV variants. > > The named modes support were initially introduced to all

[Intel-gfx] [PULL] drm-misc-next

2022-09-23 Thread Maxime Ripard
d src_h Liang He (1): drm/omap: dss: Fix refcount leak bugs Maxime Ripard (11): drm/sun4i: tv: Include drm_atomic.h drm/vc4: hdmi: Constify drm_display_mode drm/vc4: hdmi: Remove unused argument in vc4_hdmi_supports_scrambling drm/vc4: hdmi: Remove mutex in detect

Re: [Intel-gfx] [PATCH v2 13/33] drm/client: Add some tests for drm_connector_pick_cmdline_mode()

2022-09-23 Thread Maxime Ripard
On Fri, Sep 23, 2022 at 12:30:09PM +0200, Thomas Zimmermann wrote: > Am 23.09.22 um 11:26 schrieb Javier Martinez Canillas: > > On 9/23/22 11:15, Thomas Zimmermann wrote: > > > Hi > > > > > > Am 22.09.22 um 16:25 schrieb Maxime Ripard: > > > > d

Re: [Intel-gfx] [PATCH v2 02/33] drm/tests: Add Kunit Helpers

2022-09-26 Thread Maxime Ripard
Hi Noralf, On Sat, Sep 24, 2022 at 08:06:17PM +0200, Noralf Trønnes wrote: > Den 24.09.2022 19.56, skrev Noralf Trønnes: > > > > > > Den 22.09.2022 16.25, skrev Maxime Ripard: > >> As the number of kunit tests in KMS grows further, we start to have > >>

Re: [Intel-gfx] [PATCH v2 06/33] drm/connector: Rename legacy TV property

2022-09-26 Thread Maxime Ripard
Hi Thomas, On Fri, Sep 23, 2022 at 10:19:08AM +0200, Thomas Zimmermann wrote: > Hi > > Am 22.09.22 um 16:25 schrieb Maxime Ripard: > > The current tv_mode has driver-specific values that don't allow to > > easily share code using it, either at the userspace or kernel l

Re: [Intel-gfx] [PATCH v2 09/33] drm/connector: Add TV standard property

2022-09-26 Thread Maxime Ripard
On Sat, Sep 24, 2022 at 05:52:29PM +0200, Noralf Trønnes wrote: > Den 22.09.2022 16.25, skrev Maxime Ripard: > > The TV mode property has been around for a while now to select and get the > > current TV mode output on an analog TV connector. > > > > Despite that prope

Re: [Intel-gfx] [PATCH v2 10/33] drm/modes: Add a function to generate analog display modes

2022-09-26 Thread Maxime Ripard
Hi, On Fri, Sep 23, 2022 at 11:05:48AM +0200, Thomas Zimmermann wrote: > > + /* 63.556us * 13.5MHz = 858 pixels */ > > I kind of get what the comment wants to tell me, but the units don't add up. I'm not sure how it doesn't add up? We have a frequency in Hz (equivalent to s^-1) and a duration

Re: [Intel-gfx] [PATCH v2 10/33] drm/modes: Add a function to generate analog display modes

2022-09-26 Thread Maxime Ripard
On Fri, Sep 23, 2022 at 12:16:13PM +0200, Thomas Zimmermann wrote: > Hi > > Am 23.09.22 um 11:18 schrieb Jani Nikula: > > On Fri, 23 Sep 2022, Thomas Zimmermann wrote: > > > Am 22.09.22 um 16:25 schrieb Maxime Ripard: > > > > + drm_dbg_kms(dev, > >

Re: [Intel-gfx] [PATCH v2 10/33] drm/modes: Add a function to generate analog display modes

2022-09-26 Thread Maxime Ripard
On Mon, Sep 26, 2022 at 01:17:52PM +0200, Thomas Zimmermann wrote: > Hi > > Am 26.09.22 um 12:34 schrieb Geert Uytterhoeven: > > Hi Maxime, > > > > On Mon, Sep 26, 2022 at 12:17 PM Maxime Ripard wrote: > > > On Fri, Sep 23, 2022 at 11:05

[Intel-gfx] [PATCH v4 00/30] drm: Analog TV Improvements

2022-09-29 Thread Maxime Ripard
4 -s 53:720x480i -w 53:'TV mode':1 # NTSC modetest -M vc4 -s 53:720x576i -w 53:'TV mode':4 # PAL Let me know what you think, Maxime To: David Airlie To: Daniel Vetter To: Maarten Lankhorst To: Maxime Ripard To: Thomas Zimmermann To: Emma Anholt To: Jani Nikula To: Joona

[Intel-gfx] [PATCH v4 01/30] drm/docs: Remove unused TV Standard property

2022-09-29 Thread Maxime Ripard
That property is not used or exposed by any driver in the kernel. Remove it from the documentation. Signed-off-by: Maxime Ripard --- Changes in v4: - New patch --- Documentation/gpu/kms-properties.csv | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/gpu/kms-properties.csv b

[Intel-gfx] [PATCH v4 02/30] drm/tests: Order Kunit tests in Makefile

2022-09-29 Thread Maxime Ripard
Since we've recently added a ton of tests, the list starts to be a bit of a mess and creates unneeded conflicts. Let's order it alphabetically. Acked-by: Thomas Zimmermann Reviewed-by: Noralf Trønnes Signed-off-by: Maxime Ripard --- drivers/gpu/drm/tests/Makefile | 14 +++-

[Intel-gfx] [PATCH v4 03/30] drm/tests: Add Kunit Helpers

2022-09-29 Thread Maxime Ripard
ff-by: Maxime Ripard --- Changes in v4: - Simplified the DRM device cleanup patch using devm_drm_dev_alloc() --- drivers/gpu/drm/tests/Makefile| 1 + drivers/gpu/drm/tests/drm_kunit_helpers.c | 61 +++ drivers/gpu/drm/tests/drm_kunit_helpers.h | 9 +++

[Intel-gfx] [PATCH v4 04/30] drm/atomic-helper: Rename drm_atomic_helper_connector_tv_reset to avoid ambiguity

2022-09-29 Thread Maxime Ripard
by: Thomas Zimmermann Reviewed-by: Noralf Trønnes Signed-off-by: Maxime Ripard --- Changes in v4: - Removed the unrelated subconnector documentation name change --- drivers/gpu/drm/drm_atomic_state_helper.c | 6 +++--- drivers/gpu/drm/gud/gud_connector.c | 2 +- drivers/gpu/drm/vc4/

[Intel-gfx] [PATCH v4 05/30] drm/connector: Rename subconnector state variable

2022-09-29 Thread Maxime Ripard
d-by: Noralf Trønnes Signed-off-by: Maxime Ripard --- Changes in v4: - Added the documentation name update --- drivers/gpu/drm/drm_atomic_uapi.c | 4 ++-- include/drm/drm_connector.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_uapi.

[Intel-gfx] [PATCH v4 06/30] drm/atomic: Add TV subconnector property to get/set_property

2022-09-29 Thread Maxime Ripard
The subconnector property was created by drm_mode_create_tv_properties(), but wasn't exposed to the userspace through the generic atomic_get/set_property implementation, and wasn't stored in any generic state structure. Let's solve this. Reviewed-by: Noralf Trønnes Signed-off-by

[Intel-gfx] [PATCH v4 07/30] drm/connector: Rename legacy TV property

2022-09-29 Thread Maxime Ripard
hould move away from it. Acked-by: Thomas Zimmermann Reviewed-by: Lyude Paul # nouveau Reviewed-by: Noralf Trønnes Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_atomic_uapi.c | 8 drivers/gpu/drm/drm_connector.c | 6 +++--- drivers/gpu/drm/gud/gud_connec

[Intel-gfx] [PATCH v4 12/30] drm/modes: Only consider bpp and refresh before options

2022-09-29 Thread Maxime Ripard
tions separator. A follow-up patch will add a unit-test for this once such an option is introduced. Reviewed-by: Geert Uytterhoeven Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_modes.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_mode

[Intel-gfx] [PATCH v4 14/30] drm/client: Add some tests for drm_connector_pick_cmdline_mode()

2022-09-29 Thread Maxime Ripard
drm_connector_pick_cmdline_mode() is in charge of finding a proper drm_display_mode from the definition we got in the video= command line argument. Let's add some unit tests to make sure we're not getting any regressions there. Signed-off-by: Maxime Ripard --- Changes in v4: - Remo

[Intel-gfx] [PATCH v4 08/30] drm/connector: Only register TV mode property if present

2022-09-29 Thread Maxime Ripard
The drm_create_tv_properties() will create the TV mode property unconditionally. However, since we'll gradually phase it out, let's register it only if we have a list passed as an argument. This will make the transition easier. Acked-by: Noralf Trønnes Signed-off-by: Maxime Ripard --

[Intel-gfx] [PATCH v4 11/30] drm/modes: Add a function to generate analog display modes

2022-09-29 Thread Maxime Ripard
splay usually have fairly loose timings requirements, the only discrete parameters being the total number of lines and pixel clock frequency. Thus, we created a function that will create a display mode from the standard, the pixel frequency and the active area. Signed-off-by: Maxime Ripard --- Chang

[Intel-gfx] [PATCH v4 09/30] drm/connector: Rename drm_mode_create_tv_properties

2022-09-29 Thread Maxime Ripard
uce a new variant of that function creating the property superseeding it in a later patch. Reviewed-by: Lyude Paul # nouveau Reviewed-by: Noralf Trønnes Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_connector.c | 12 ++-- drivers/gpu/drm/gud/gud_connector.c | 4

[Intel-gfx] [PATCH v4 10/30] drm/connector: Add TV standard property

2022-09-29 Thread Maxime Ripard
#x27;ll then be able to phase out the older tv mode property. Signed-off-by: Maxime Ripard --- Changes in v4: - Add property documentation to kms-properties.csv - Fix documentation --- Documentation/gpu/kms-properties.csv | 1 + drivers/gpu/drm/drm_atomic_uapi.c| 4 +++ drivers/gpu/drm/

[Intel-gfx] [PATCH v4 13/30] drm/modes: parse_cmdline: Add support for named modes containing dashes

2022-09-29 Thread Maxime Ripard
any dashes that are not followed immediately by a digit when looking for the separator. Signed-off-by: Geert Uytterhoeven Reviewed-by: Hans de Goede Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_modes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_modes

[Intel-gfx] [PATCH v4 18/30] drm/connector: Add pixel clock to cmdline mode

2022-09-29 Thread Maxime Ripard
We'll need to get the pixel clock to generate proper display modes for all the current named modes. Let's add it to struct drm_cmdline_mode and fill it when parsing the named mode. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_modes.c | 9 ++--- include/drm/drm_conne

[Intel-gfx] [PATCH v4 15/30] drm/modes: Move named modes parsing to a separate function

2022-09-29 Thread Maxime Ripard
The current construction of the named mode parsing doesn't allow to extend it easily. Let's move it to a separate function so we can add more parameters and modes. In order for the tests to still pass, some extra checks are needed, so it's not a 1:1 move. Signed-off-by

[Intel-gfx] [PATCH v4 16/30] drm/modes: Switch to named mode descriptors

2022-09-29 Thread Maxime Ripard
The current named mode parsing relies only the mode name, and doesn't allow to specify any other parameter. Let's convert that string list to an array of a custom structure that will hold the name and some additional parameters in the future. Signed-off-by: Maxime Ripard --- drive

[Intel-gfx] [PATCH v4 25/30] drm/vc4: vec: Fix definition of PAL-M mode

2022-09-29 Thread Maxime Ripard
. Acked-by: Noralf Trønnes Signed-off-by: Mateusz Kwiatkowski Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_vec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index 4d82ad30449b..adc9bf99e3fd

[Intel-gfx] [PATCH v4 26/30] drm/vc4: vec: Use TV Reset implementation

2022-09-29 Thread Maxime Ripard
The analog TV properties created by the drm_mode_create_tv_properties() are not properly initialised at reset. Let's switch our implementation to call drm_atomic_helper_connector_tv_reset(). Reviewed-by: Noralf Trønnes Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_vec.

[Intel-gfx] [PATCH v4 19/30] drm/connector: Add a function to lookup a TV mode by its name

2022-09-29 Thread Maxime Ripard
return its value. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_connector.c | 24 include/drm/drm_connector.h | 2 ++ 2 files changed, 26 insertions(+) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 8edc347ef664..ea

[Intel-gfx] [PATCH v4 28/30] drm/vc4: vec: Convert to the new TV mode property

2022-09-29 Thread Maxime Ripard
e new analog TV atomic_check helper to make sure we trigger a modeset whenever the TV mode is updated. Acked-by: Noralf Trønnes Signed-off-by: Maxime Ripard --- Changes in v4: - Removed the count variable in .get_modes --- drivers/gpu/drm/vc4/vc4_vec.c | 192 +++--- 1 fi

<    1   2   3   4   5   6   7   >