[Intel-gfx] [PATCH 01/13] drm/connector: Add define for HDMI 1.4 Maximum Pixel Rate

2021-11-02 Thread Maxime Ripard
g Cc: linux-arm-ker...@lists.infradead.org Cc: linux-te...@vger.kernel.org Cc: Martin Blumenstingl Cc: Neil Armstrong Cc: "Pan, Xinhui" Cc: Robert Foss Cc: Rodrigo Vivi Cc: Thierry Reding Signed-off-by: Maxime Ripard --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 ++-- d

Re: [Intel-gfx] [PATCH 01/13] drm/connector: Add define for HDMI 1.4 Maximum Pixel Rate

2021-11-04 Thread Maxime Ripard
Hi Ville, On Wed, Nov 03, 2021 at 08:05:16PM +0200, Ville Syrjälä wrote: > On Wed, Nov 03, 2021 at 01:02:11PM +0200, Ville Syrjälä wrote: > > On Tue, Nov 02, 2021 at 03:59:32PM +0100, Maxime Ripard wrote: > > > --- a/drivers/gpu/drm/drm_edid.c > > > +++ b

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

2021-11-05 Thread Maxime Ripard
Hi Dave, Daniel, Here's this week drm-misc-next-fixes PR Thanks! Maxime drm-misc-next-fixes-2021-11-05: A refcounting fix for outstanding fence callbacks. The following changes since commit b3ec8cdf457e5e63d396fe1346cc788cf7c1b578: fbdev: Garbage collect fbdev scrolling acceleration, part 1 (

Re: [Intel-gfx] linux-next: build failure after merge of the drm-misc tree

2021-11-05 Thread Maxime Ripard
Hi, On Fri, Nov 05, 2021 at 01:03:43PM +0200, Jani Nikula wrote: > On Fri, 05 Nov 2021, Stephen Rothwell wrote: > > Hi all, > > > > On Mon, 1 Nov 2021 19:42:23 +1100 Stephen Rothwell > > wrote: > >> > >> On Fri, 15 Oct 2021 20:26:48 +1100 Stephen Rothwell > >> wrote: > >> > > >> > After mergi

Re: [Intel-gfx] [PATCH 01/13] drm/connector: Add define for HDMI 1.4 Maximum Pixel Rate

2021-11-08 Thread Maxime Ripard
On Thu, Nov 04, 2021 at 05:41:13PM +0200, Ville Syrjälä wrote: > On Thu, Nov 04, 2021 at 09:48:41AM +0100, Maxime Ripard wrote: > > Hi Ville, > > > > On Wed, Nov 03, 2021 at 08:05:16PM +0200, Ville Syrjälä wrote: > > > On Wed, Nov 03, 2021 at 01:02:11PM +0200, Ville

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

2021-11-10 Thread Maxime Ripard
Hi Dave, Daniel, Here's this week PR for drm-misc-next-fixes. Maxime drm-misc-next-fixes-2021-11-10: Removed the TTM Huge Page functionnality to address a crash, a timeout fix for udl, CONFIG_FB dependency improvements, a fix for a circular locking depency in imx, a NULL pointer dereference fix

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

2021-11-17 Thread Maxime Ripard
endor InfoFrame Javier Martinez Canillas (1): fbdev: Prevent probing generic drivers if a FB is already registered Julian Braha (1): drm/sun4i: fix unmet dependency on RESET_CONTROLLER for PHY_SUN6I_MIPI_DPHY Maxime Ripard (1): Merge drm/drm-fixes into drm-misc-fixes Rob Cla

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

2021-11-25 Thread Maxime Ripard
Hi Daniel, Dave, Here's this week drm-misc-fixes PR Maxime drm-misc-fixes-2021-11-25: One removal fix for hyperv, one fix in aspeed for the vga_pw sysfs file content, one error-checking fix for vc4 and two fixes for nouveau, one to support a new device and another one to properly check for error

Re: [Intel-gfx] linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2021-11-30 Thread Maxime Ripard
Hi Stephen, On Tue, Nov 30, 2021 at 10:33:53AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the drm tree got a conflict in: > > drivers/gpu/drm/vc4/vc4_kms.c > > between commits: > > f927767978d2 ("drm/vc4: kms: Fix return code check") > d354699e2292 ("drm/vc4

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

2021-12-02 Thread Maxime Ripard
nstead of virtio_gpu_poll(..) Maxime Ripard (6): drm/vc4: kms: Wait for the commit before increasing our clock rate drm/vc4: kms: Fix return code check drm/vc4: kms: Add missing drm_crtc_commit_put drm/vc4: kms: Clear the HVS FIFO commit pointer once done drm/vc4: kms

Re: [Intel-gfx] (subset) [PATCH 17/22] drm/vc4: Use drm_mode_copy()

2022-02-21 Thread Maxime Ripard
On Fri, 18 Feb 2022 12:03:58 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > struct drm_display_mode embeds a list head, so overwriting > the full struct with another one will corrupt the list > (if the destination mode is on a list). Use drm_mode_copy() > instead which explicitly preserves

Re: [Intel-gfx] [PATCH 01/21] MAINTAINERS: Add entry for fbdev core

2022-02-02 Thread Maxime Ripard
Development > Cc: Linux Kernel Mailing List > Cc: Claudio Suarez > Cc: Tomi Valkeinen > Cc: Geert Uytterhoeven > Cc: Thomas Zimmermann > Cc: Daniel Vetter > Cc: Sven Schnelle > Cc: Gerd Hoffmann > Signed-off-by: Daniel Vetter Acked-by: Maxime Ripard Maxime

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

2022-08-29 Thread Maxime Ripard
rm/drm_modes.h | 17 + 22 files changed, 2057 insertions(+), 334 deletions(-) --- base-commit: 8869fa666a9e6782c3c896c1fa57d65adca23249 change-id: 20220728-rpi-analog-tv-properties-0914dfcee460 Best regards, -- Maxime Ripard

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

2022-08-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. 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 14/41] drm/modes: Move named modes parsing to a separate function

2022-08-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. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 99

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

2022-08-29 Thread Maxime Ripard
l and user-space. Let's create a new bitmask tv norm property, that can contain any of the analog TV standards currently supported by kernel drivers. Each driver can then pass in a bitmask of the modes it supports. We'll then be able to phase out the older tv mode property. Signed

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

2022-08-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 diff --git a/drive

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

2022-08-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 diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index b4e1ff56b4d8..99a21e5cd00d 100644 -

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

2022-08-29 Thread Maxime Ripard
ned-off-by: Maxime Ripard Reviewed-by: Noralf Trønnes 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 08/41] drm/connector: Rename drm_mode_create_tv_properties

2022-08-29 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 06/41] drm/connector: Rename legacy TV property

2022-08-29 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 04/41] drm/connector: Rename subconnector state variable

2022-08-29 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. Signed-off-by: Maxime Ripard Reviewe

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

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

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

2022-08-29 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 07/41] drm/connector: Only register TV mode property if present

2022-08-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. Signed-off-by: Maxime Ripard Acked-by: Noralf Trønnes

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

2022-08-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 diff --

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

2022-08-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. Signed-off-by: Maxime Ripard Reviewed-by:

[Intel-gfx] [PATCH v2 21/41] drm/modes: Introduce more named modes

2022-08-29 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 065dbfb

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

2022-08-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(). Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_

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

2022-08-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 diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_mod

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

2022-08-29 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 40/41] drm/sun4i: tv: Add missing reset assertion

2022-08-29 Thread Maxime Ripard
The reset line is deasserted at bind, and asserted if we ever encounter an error there. However, it's never asserted in unbind which will lead to a resource unbalance. Signed-off-by: Maxime Ripard Reviewed-by: Jernej Skrabec diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/

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

2022-08-29 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

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

2022-08-29 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 63e4e617e321..fa85dd260742 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 22/41] drm/atomic-helper: Add a TV properties reset helper

2022-08-29 Thread Maxime Ripard
The drm_tv_create_properties() function will create a bunch of properties, but it's up to each and every driver using that function to properly reset the state of these properties leading to inconsistent behaviours. Let's create a helper that will take care of it. Signed-off-by: Max

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

2022-08-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 diff --git

[Intel-gfx] [PATCH v2 25/41] drm/vc4: vec: Convert to atomic helpers

2022-08-29 Thread Maxime Ripard
The VC4 VEC driver still uses legacy enable and disable hook implementation. Let's convert to the atomic variants. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index d521ffd8d75c..72eee0cbb615 100644 --- a/drivers/gpu/drm/vc4/vc4_

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

2022-08-29 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 1fdfa004b139..5e898699b532 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/d

[Intel-gfx] [PATCH v2 29/41] drm/vc4: vec: Switch for common modes

2022-08-29 Thread Maxime Ripard
Now that the core has a definition for the 525 and 625 lines analog TV modes, let's switch to it for vc4. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index d1d40b69279e..63e4e617e321 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c

[Intel-gfx] [PATCH v2 28/41] drm/vc4: vec: Fix timings for VEC modes

2022-08-29 Thread Maxime Ripard
Hz and 52 Hz signals being generated, respectively. 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 4d7bc7c20704..d1d40b69279e 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c +++ b/drivers/gpu/drm/vc4/

[Intel-gfx] [PATCH v2 35/41] drm/sun4i: tv: Convert to atomic hooks

2022-08-29 Thread Maxime Ripard
The sun4i TV driver still uses legacy enable and disable hook implementation. Let's convert to the atomic variants. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index 53152d77c392..f7aad995ab5b 100644 --- a/drivers/gpu/drm/

[Intel-gfx] [PATCH v2 27/41] drm/vc4: vec: Remove redundant atomic_mode_set

2022-08-29 Thread Maxime Ripard
From: Mateusz Kwiatkowski Let's remove the superfluous tv_mode field, which was redundant with the mode field in struct drm_tv_connector_state. 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

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

2022-08-29 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..10c0d727d700 100644 --- a/drivers/gp

[Intel-gfx] [PATCH v2 37/41] drm/sun4i: tv: Remove useless function

2022-08-29 Thread Maxime Ripard
The drm_connector_to_sun4i_tv() function isn't used anywhere in the driver, so let's remove it. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index 3944da9a3c34..52bbba8f19dc 100644 --- a/drivers/gpu/drm/sun4i/sun4i_

[Intel-gfx] [PATCH v2 39/41] drm/sun4i: tv: Rename error label

2022-08-29 Thread Maxime Ripard
it to err_cleanup_encoder to be consistent. Signed-off-by: Maxime Ripard Reviewed-by: Jernej Skrabec diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index 6d7e1d51569a..ad6a3739bfa9 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tv.c +++ b/drivers/gpu/drm/sun4i/sun4i

[Intel-gfx] [PATCH v2 24/41] drm/vc4: vec: Remove empty mode_fixup

2022-08-29 Thread Maxime Ripard
The mode_fixup hooks are deprecated, and the behaviour we implement is the default one anyway. Let's remove it. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index d5140fe0be4f..d521ffd8d75c 100644 --- a/drivers/gpu/drm/vc4/vc4_

[Intel-gfx] [PATCH v2 36/41] drm/sun4i: tv: Merge mode_set into atomic_enable

2022-08-29 Thread Maxime Ripard
Our mode_set implementation can be merged into our atomic_enable implementation to simplify things, so let's do this. Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index f7aad995ab5b..3944da9a3c34 100644 --- a/drivers/gpu/drm/

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

2022-08-29 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 73d01e755496..a759a4ba0036 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -2115,6 +2115,30 @@ static int drm_mode_parse_panel_orientation(const char *delim, r

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

2022-08-29 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 23/41] drm/atomic-helper: Add an analog TV atomic_check implementation

2022-08-29 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. Signed-off-by: Maxime Ripard diff --git a/drivers/gp

[Intel-gfx] [PATCH v2 34/41] drm/sun4i: tv: Remove unused mode_valid

2022-08-29 Thread Maxime Ripard
The mode_valid implementation is pretty much a nop, let's remove it. Signed-off-by: Maxime Ripard Reviewed-by: Jernej Skrabec diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index 94883abe0dfd..53152d77c392 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tv.c

[Intel-gfx] [PATCH v2 38/41] drm/sun4i: tv: Remove useless destroy function

2022-08-29 Thread Maxime Ripard
Our destroy implementation is just calling the generic helper, so let's just remove our function and directly use the helper. Signed-off-by: Maxime Ripard Reviewed-by: Jernej Skrabec diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index 52bbba8

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

2022-08-29 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 b1fcacd150e8..0fe01a1c20ad 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -1003,6 +1003,30 @@ static const struct drm_prop

[Intel-gfx] [PATCH v2 26/41] drm/vc4: vec: Refactor VEC TV mode setting

2022-08-29 Thread Maxime Ripard
From: Mateusz Kwiatkowski Change the mode_set function pointer logic to declarative config0, config1 and custom_freq fields, to make TV mode setting logic more concise and uniform. Signed-off-by: Mateusz Kwiatkowski Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b

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

2022-08-30 Thread Maxime Ripard
owing messages: --- To: David Airlie Daniel Vetter Maarten Lankhorst Maxime Ripard Thomas Zimmermann Noralf Trønnes Emma Anholt Ben Skeggs Karol Herbst Lyude Paul Jani Nikula Joonas Lahtinen Rodrigo Vivi Tvrtko Ursulin Chen-

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

2022-08-30 Thread Maxime Ripard
Hi, On Tue, Aug 30, 2022 at 01:43:07PM +0300, Jani Nikula wrote: > On Tue, 30 Aug 2022, Geert Uytterhoeven wrote: > > On Mon, Aug 29, 2022 at 3:13 PM Maxime Ripard wrote: > >> +#define STR_STRICT_EQ(str, len, cmp) \ > >> + ((strlen(cmp) == len) && !strn

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

2022-09-05 Thread Maxime Ripard
Hi, On Wed, Aug 31, 2022 at 10:14:28AM +0200, Geert Uytterhoeven wrote: > > > +enum drm_mode_analog { > > > +DRM_MODE_ANALOG_NTSC, > > > +DRM_MODE_ANALOG_PAL, > > > +}; > > > > Using "NTSC" and "PAL" to describe the 50Hz and 60Hz analog TV modes is > > common, > > but strictly speaking a

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

2022-09-05 Thread Maxime Ripard
Hi, On Wed, Aug 31, 2022 at 03:44:52AM +0200, Mateusz Kwiatkowski wrote: > > +#define NTSC_HFP_DURATION_TYP_NS    1500 > > +#define NTSC_HFP_DURATION_MIN_NS    1270 > > +#define NTSC_HFP_DURATION_MAX_NS    2220 > > You've defined those min/typ/max ranges, but you're not using the "typ" field > fo

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

2022-09-05 Thread Maxime Ripard
On Fri, Sep 02, 2022 at 12:46:29AM +0200, Mateusz Kwiatkowski wrote: > > @@ -2212,20 +2239,22 @@ struct drm_named_mode { > >      unsigned int xres; > >      unsigned int yres; > >      unsigned int flags; > > +    unsigned int tv_mode; > >  }; > > Are _all_ named modes supposed to be about analog

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

2022-09-05 Thread Maxime Ripard
On Fri, Sep 02, 2022 at 01:28:16PM +0200, Noralf Trønnes wrote: > > > Den 01.09.2022 21.35, skrev Noralf Trønnes: > > > > > > I have finally found a workaround for my kernel hangs. > > > > Dom had a look at my kernel and found that the VideoCore was fine, and > > he said this: > > > >> That s

Re: [Intel-gfx] [PATCH v2 36/41] drm/sun4i: tv: Merge mode_set into atomic_enable

2022-09-07 Thread Maxime Ripard
On Tue, Sep 06, 2022 at 10:04:32PM +0200, Jernej Škrabec wrote: > Dne ponedeljek, 29. avgust 2022 ob 15:11:50 CEST je Maxime Ripard napisal(a): > > Our mode_set implementation can be merged into our atomic_enable > > implementation to simplify things, so let's do this. > &

Re: [Intel-gfx] (subset) [PATCH v2 24/41] drm/vc4: vec: Remove empty mode_fixup

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:38 +0200, Maxime Ripard wrote: > The mode_fixup hooks are deprecated, and the behaviour we implement is the > default one anyway. Let's remove it. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: [Intel-gfx] (subset) [PATCH v2 25/41] drm/vc4: vec: Convert to atomic helpers

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:39 +0200, Maxime Ripard wrote: > The VC4 VEC driver still uses legacy enable and disable hook > implementation. Let's convert to the atomic variants. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: [Intel-gfx] (subset) [PATCH v2 26/41] drm/vc4: vec: Refactor VEC TV mode setting

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:40 +0200, Maxime Ripard wrote: > From: Mateusz Kwiatkowski > > Change the mode_set function pointer logic to declarative config0, > config1 and custom_freq fields, to make TV mode setting logic more > concise and uniform. > > > [...] Applied t

Re: [Intel-gfx] (subset) [PATCH v2 27/41] drm/vc4: vec: Remove redundant atomic_mode_set

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:41 +0200, Maxime Ripard wrote: > From: Mateusz Kwiatkowski > > Let's remove the superfluous tv_mode field, which was redundant with the > mode field in struct drm_tv_connector_state. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: [Intel-gfx] (subset) [PATCH v2 28/41] drm/vc4: vec: Fix timings for VEC modes

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:42 +0200, Maxime Ripard wrote: > From: Mateusz Kwiatkowski > > This commit fixes vertical timings of the VEC (composite output) modes > to accurately represent the 525-line ("NTSC") and 625-line ("PAL") ITU-R > standards. > >

Re: [Intel-gfx] (subset) [PATCH v2 34/41] drm/sun4i: tv: Remove unused mode_valid

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:48 +0200, Maxime Ripard wrote: > The mode_valid implementation is pretty much a nop, let's remove it. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: [Intel-gfx] (subset) [PATCH v2 35/41] drm/sun4i: tv: Convert to atomic hooks

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:49 +0200, Maxime Ripard wrote: > The sun4i TV driver still uses legacy enable and disable hook > implementation. Let's convert to the atomic variants. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: [Intel-gfx] (subset) [PATCH v2 37/41] drm/sun4i: tv: Remove useless function

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:51 +0200, Maxime Ripard wrote: > The drm_connector_to_sun4i_tv() function isn't used anywhere in the driver, > so let's remove it. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: [Intel-gfx] (subset) [PATCH v2 38/41] drm/sun4i: tv: Remove useless destroy function

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:52 +0200, Maxime Ripard wrote: > Our destroy implementation is just calling the generic helper, so let's > just remove our function and directly use the helper. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

Re: [Intel-gfx] (subset) [PATCH v2 39/41] drm/sun4i: tv: Rename error label

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:53 +0200, Maxime Ripard wrote: > The other error labels in sun4i_tv_bind() are named after the task they > perform (err_disable_clk to call clk_disable_unprepare for example). > > However, the err_cleanup_connector is named after the calling site > (drm

Re: [Intel-gfx] (subset) [PATCH v2 40/41] drm/sun4i: tv: Add missing reset assertion

2022-09-07 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:54 +0200, Maxime Ripard wrote: > The reset line is deasserted at bind, and asserted if we ever encounter an > error there. However, it's never asserted in unbind which will lead to a > resource unbalance. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

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

2022-09-07 Thread Maxime Ripard
Hi, On Tue, Aug 30, 2022 at 04:36:23PM +0300, Jani Nikula wrote: > On Tue, 30 Aug 2022, Maxime Ripard wrote: > > Hi, > > > > On Tue, Aug 30, 2022 at 01:43:07PM +0300, Jani Nikula wrote: > >> On Tue, 30 Aug 2022, Geert Uytterhoeven wrote: > >> > On

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

2022-09-07 Thread Maxime Ripard
On Mon, Sep 05, 2022 at 05:17:18PM +0200, Noralf Trønnes wrote: > Den 05.09.2022 16.57, skrev Maxime Ripard: > > On Fri, Sep 02, 2022 at 01:28:16PM +0200, Noralf Trønnes wrote: > >> > >> > >> Den 01.09.2022 21.35, skrev Noralf Trønnes: > >>> >

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

2022-09-07 Thread Maxime Ripard
Hi, On Fri, Sep 02, 2022 at 12:00:33AM +0200, Mateusz Kwiatkowski wrote: > W dniu 29.08.2022 o 15:11, Maxime Ripard pisze: > > 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. > > > > Despi

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

2022-09-07 Thread Maxime Ripard
On Fri, Sep 02, 2022 at 09:35:20AM +0200, Geert Uytterhoeven wrote: > On Fri, Sep 2, 2022 at 12:00 AM Mateusz Kwiatkowski wrote: > > W dniu 29.08.2022 o 15:11, Maxime Ripard pisze: > > > The TV mode property has been around for a while now to select and get the > > > c

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

2022-09-07 Thread Maxime Ripard
On Mon, Sep 05, 2022 at 06:44:42PM +0200, Mateusz Kwiatkowski wrote: > Hi Maxime, > > W dniu 5.09.2022 o 15:37, Maxime Ripard pisze: > >>> +    vfp = vfp_min + (porches_rem / 2); > >>> +    vbp = porches - vfp; > >> > >> Relative position of the

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

2022-09-07 Thread Maxime Ripard
On Mon, Sep 05, 2022 at 06:32:14PM +0200, Mateusz Kwiatkowski wrote: > Hi Maxime, > > W dniu 5.09.2022 o 15:32, Maxime Ripard pisze: > > Hi, > > > > On Wed, Aug 31, 2022 at 10:14:28AM +0200, Geert Uytterhoeven wrote: > >>>> +enum drm_mode

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

2022-09-08 Thread Maxime Ripard
Hi, On Tue, Aug 30, 2022 at 10:01:11AM -0300, Maíra Canal wrote: > On 8/29/22 10:11, Maxime Ripard wrote: > > Multiple drivers (meson, vc4, sun4i) define analog TV 525-lines and > > 625-lines modes in their drivers. > > > > Since those modes are fairly standard, and

Re: [Intel-gfx] [PATCH v2 32/41] drm/vc4: vec: Convert to the new TV mode property

2022-09-08 Thread Maxime Ripard
Hi Noralf, On Tue, Aug 30, 2022 at 09:01:08PM +0200, Noralf Trønnes wrote: > > +static const struct drm_prop_enum_list tv_mode_names[] = { > > Maybe call it legacy_tv_mode_enums? > > > > > + { VC4_VEC_TV_MODE_NTSC, "NTSC", }, > > > > + { VC4_VEC_TV_MODE_NTSC_J, "NTSC-J", }, > > > > + {

Re: [Intel-gfx] [PATCH v2 32/41] drm/vc4: vec: Convert to the new TV mode property

2022-09-08 Thread Maxime Ripard
On Thu, Sep 08, 2022 at 01:31:34PM +0200, Mateusz Kwiatkowski wrote: > W dniu 08.09.2022 o 13:23, Maxime Ripard pisze: > > Hi Noralf, > > > > On Tue, Aug 30, 2022 at 09:01:08PM +0200, Noralf Trønnes wrote: > >>> +static const struct drm_prop_enum_list tv_mode_na

Re: [Intel-gfx] [PATCH v2 32/41] drm/vc4: vec: Convert to the new TV mode property

2022-09-08 Thread Maxime Ripard
On Wed, Aug 31, 2022 at 04:23:21AM +0200, Mateusz Kwiatkowski wrote: > I tested your patchset on my Pi and it mostly works. Good work! However, > I noticed a couple of issues. > > > -static int vc4_vec_encoder_atomic_check(struct drm_encoder *encoder, > > -                    struct drm_crtc_state

Re: [Intel-gfx] (subset) [PATCH v2 36/41] drm/sun4i: tv: Merge mode_set into atomic_enable

2022-09-08 Thread Maxime Ripard
On Mon, 29 Aug 2022 15:11:50 +0200, Maxime Ripard wrote: > Our mode_set implementation can be merged into our atomic_enable > implementation to simplify things, so let's do this. > > Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime

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

2022-09-09 Thread Maxime Ripard
On Wed, Sep 07, 2022 at 09:52:09PM +0200, Mateusz Kwiatkowski wrote: > W dniu 7.09.2022 o 14:10, Maxime Ripard pisze: > > Hi, > > > > On Fri, Sep 02, 2022 at 12:00:33AM +0200, Mateusz Kwiatkowski wrote: > >> W dniu 29.08.2022 o 15:11, Maxime Ripard pisze: > >>

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

2022-09-09 Thread Maxime Ripard
Hi, On Wed, Sep 07, 2022 at 11:31:21PM +0200, Mateusz Kwiatkowski wrote: > W dniu 7.09.2022 o 16:34, Maxime Ripard pisze: > > On Mon, Sep 05, 2022 at 06:44:42PM +0200, Mateusz Kwiatkowski wrote: > >> Hi Maxime, > >> > >> W dniu 5.09.2022 o 15:37, Maxime Ripa

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

2022-09-09 Thread Maxime Ripard
On Wed, Sep 07, 2022 at 11:31:21PM +0200, Mateusz Kwiatkowski wrote: > The "canonical" modelines (at least for vc4's VEC, see the notes below): > > - (vfp==4, vsync==6, vbp==39) for 576i > - (vfp==7, vsync==6, vbp==32) for 480i > - (vfp==5, vsync==6, vbp==28) for 486i (full frame NTSC as originall

Re: [Intel-gfx] [GIT PULL] Immutable backlight-detect-refactor branch between acpi, drm-* and pdx86

2022-09-14 Thread Maxime Ripard
Hi Hans, On Mon, Sep 05, 2022 at 10:35:47AM +0200, Hans de Goede wrote: > Hi All, > > Now that all patches have been reviewed/acked here is an immutable > backlight-detect-refactor > branch with 6.0-rc1 + the v5 patch-set, for merging into the relevant (acpi, > drm-* and pdx86) > subsystems. >

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

2019-10-02 Thread Maxime Ripard
eback Arnd Bergmann (1): drm/tilcdc: include linux/pinctrl/consumer.h again Lowry Li (Arm Technology China) (2): drm: Free the writeback_job when it with an empty fb drm: Clear the fence pointer when writeback job signaled Maxime Ripard (2): Merge dr

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

2019-10-03 Thread Maxime Ripard
Hi, On Wed, Oct 02, 2019 at 10:06:04PM +0200, Maxime Ripard wrote: > Hi Dave, Daniel, > > I hope that you enjoy XDC if you could make it this year :) > > Here's the first round of fixes for drm-misc > > Maxime > > drm-misc-fixes-2019-10-02: > - One include fi

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

2019-10-03 Thread Maxime Ripard
Arnd Bergmann (1): drm/tilcdc: include linux/pinctrl/consumer.h again Lowry Li (Arm Technology China) (2): drm: Free the writeback_job when it with an empty fb drm: Clear the fence pointer when writeback job signaled Maxime Ripard (2

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

2019-10-10 Thread Maxime Ripard
Hi Dave, Daniel, Here's this week drm-misc-fixes PR, dealing mostly with SPI probing related issues. Maxime drm-misc-fixes-2019-10-10: Short summary of fixes pull (less than what git shortlog provides): - SPI Aliases fixes for panels - One fix for the tc358767 bridge dealing with visual artifact

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

2019-11-13 Thread Maxime Ripard
Hi Dave, Daniel, Here's a PR for this week's drm-misc-fixes. Maxime drm-misc-fixes-2019-11-13: - One fix to the dotclock dividers range for sun4i The following changes since commit 105401b659b7eb9cb42d6b5b75d5c049ad4b3dca: drm/shmem: Add docbook comments for drm_gem_shmem_object madvise field

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

2019-11-25 Thread Maxime Ripard
Hi Dave, Daniel, Here are a few lates fixes for drm-misc-fixes. Obviously, it's not going to make it into 5.4, but it'd be great if they were in the upcoming PR. Thanks! Maxime drm-misc-fixes-2019-11-25: - A fix for a memory leak in the dma-buf support - One in mcde DSI support that leads to a

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

2019-10-23 Thread Maxime Ripard
Hi Daniel, Dave, Here is this week's drm-misc-fixes PR. Thanks! Maxime drm-misc-fixes-2019-10-23: Two fixes for komeda, one for typos and one to prevent an hardware issue when flushing inactive pipes The following changes since commit 5b3ec8134f5f9fa1ed0a538441a495521078bbee: drm/panfrost: Ha

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

2019-10-30 Thread Maxime Ripard
Hi Daniel, Dave, Here is this week's round of fixes for drm-misc. Thanks! Maxime drm-misc-fixes-2019-10-30-1: - three fixes for panfrost, one to silence a warning, one to fix runtime_pm and one to prevent bogus pointer dereferences - one fix for a memleak in v3d The following changes since

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

2019-11-07 Thread Maxime Ripard
Hi Dave, Daniel, Here's this week PR for drm-misc-fixes. Thanks! Maxime drm-misc-fixes-2019-11-07-1: - Some new documentation for GEM shmem madvise helpers - Fix for a state dereference in atomic self-refresh helpers - One compilation fix for c2p fbdev helpers The following changes since comm

Re: [Intel-gfx] [PULL] topic/drm-warn for drm-misc-next

2020-01-23 Thread Maxime Ripard
On Wed, Jan 22, 2020 at 05:25:40PM +0200, Jani Nikula wrote: > > Hi Maarten/Maxime, > > Please pull the drm_device based drm_WARN* macros from the topic > branch. I'll pull the same to drm-intel-next-queued. > > I like to use the topic branch here, because due to timing it'll take > forever for the

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

2020-03-17 Thread Maxime Ripard
Hi, Here is what should be the final drm-misc-next PR for 5.7. Maxime drm-misc-next-2020-03-17: drm-misc-next for 5.7: UAPI Changes: Cross-subsystem Changes: Core Changes: - dp-mst: Remove register_connector callback, add drm_dp_destroy_connector - Changes to scnprintf on multiple instanc

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

2020-03-27 Thread Maxime Ripard
Hi Daniel, Dave, Here's the first drm-misc-next-fixes PR for 5.7. Thanks! Maxime drm-misc-next-fixes-2020-03-26: Two main topics in that first drm-misc-next-fixes PR, first a revert of the data-mapping property in the DT that turned out to be non-optimal (but hasn't reached a stable release yet)

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

2020-04-06 Thread Maxime Ripard
Hi Daniel, Dave, Here's this week round of drm-misc-next fixes. Thanks! Maxime drm-misc-next-fixes-2020-04-04: A bunch of fixes to avoid null pointer dereference in fbcon, fix a return in xen, some DT bindings fixes, a vc4 issue with 1920x1200 mode validation, and a conflicting framebuffer in vb

<    1   2   3   4   5   6   7   >