Re: [PATCH] drm/amd/display (gcc13): fix enum mismatch

2022-10-31 Thread Harry Wentland
27;void(struct clk_mgr_internal *, int)' > > I.e. the type of the 2nd parameter of > rn_vbios_smu_set_dcn_low_power_state() in the declaration is int, while > the definition spells enum dcn_pwr_state. Synchronize them to the > latter (and add a forward enum declaration). >

Re: [PATCH] drm/amd/display: add parameter backlight_min

2022-10-31 Thread Harry Wentland
me it looks like this if I wanted to set the first device to a minimum of 2 and leave the default for the 2nd one: amdgpu.backlight_min=2:-1 Either way, this patch is Reviewed-by: Harry Wentland Harry > Link: https://bugzilla.kernel.org/show_bug.cgi?id=203439>> > Signed-off-by:

Re: [PATCH] drm/amd/display: drop vblank_lock from struct amdgpu_display_manager

2022-10-31 Thread Harry Wentland
. > > Signed-off-by: Hamza Mahfooz Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 - > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 7 --- > 2 files changed, 8 deletions(-) > > diff --git a/drivers/gpu/drm/amd

Re: [PATCH] drm/amd/display: add parameter backlight_min

2022-11-02 Thread Harry Wentland
t; So in that case you probably want to add something like > options amdgpu backlight_min=2 to /etc/modprobe.d/amdgpu.conf > (and also run update-initramfs if amdgpu is loaded by initramfs). > > I'll add some examples to commit message in v2. > Awesome. Thanks. Harry > Filip

Re: [PATCH] drm/amd/display: Amend descriptions within enum pipe_split_policy

2022-11-08 Thread Harry Wentland
On 11/7/22 09:37, Carlos Bilbao wrote: > Correct descriptions of two last fields of enum pipe_split_policy, updating > comments with proper field names. > > Signed-off-by: Carlos Bilbao Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/display/dc/dc.h | 9 +

Re: [PATCH] drm/display: Include missing DPCD definitions from DP2.0 spec

2022-12-09 Thread Harry Wentland
The commit subject is very generic. A better one might be "Add missing Adaptive Sync DPCD definitions" On 12/8/22 14:25, Sung Joon Kim wrote: > The missing DPCD defintions from DP2.0 spec is as follows: > > DOWNSPREAD_CTRL (107h): > ADAPTIVE_SYNC_SDP_EN (bit 6) > For sink devi

Re: [PATCH v2] drm/display: Add missing Adaptive Sync DPCD definitions

2022-12-12 Thread Harry Wentland
les > of the line whichever occurs first. > VSC_EXT_SDP_FRAMEWORK_VERSION_1_SUPPORTED (bit 4) > Bit to check sink device has SDP framework version 1 capability You're missing your Signed-off-by. Make sure to add it before pushing. With that fixed this

[PATCH 00/16] Enable Colorspace connector property in amdgpu

2022-12-12 Thread Harry Wentland
shton Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org Harry Wentland (15): drm/display: Don't block HDR_OUTPUT_METADATA on unknown EOTF drm/connector: print max_requested_bpc in state debugfs drm/connector: Drop COLORIMETRY_NO_DATA drm/connector: Convert DRM_MODE_COLORIMETR

[PATCH 02/16] drm/connector: print max_requested_bpc in state debugfs

2022-12-12 Thread Harry Wentland
This is useful to understand the bpc defaults and support of a driver. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org

[PATCH 01/16] drm/display: Don't block HDR_OUTPUT_METADATA on unknown EOTF

2022-12-12 Thread Harry Wentland
iption (Pekka) v3: Rebase; drm_hdmi_infoframe_set_hdr_metadata moved to drm_hdmi_helper.c Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lis

[PATCH 03/16] drm/connector: Drop COLORIMETRY_NO_DATA

2022-12-12 Thread Harry Wentland
The value is the same as DEFAULT. The HDMI_COLORIMETRY_NO_DATA makes sense for the infopacket but it's meaningless for the connector colorspace. or, in otherwise, just means to go with driver default. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly

[PATCH 06/16] drm/connector: Allow drivers to pass list of supported colorspaces

2022-12-12 Thread Harry Wentland
Drivers might not support all colorspaces defined in dp_colorspaces and hdmi_colorspaces. This results in undefined behavior when userspace is setting an unsupported colorspace. Allow drivers to pass the list of supported colorspaces when creating the colorspace property. Signed-off-by: Harry

[PATCH 07/16] drm/connector: Print connector colorspace in state debugfs

2022-12-12 Thread Harry Wentland
Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org --- drivers/gpu/drm/drm_atomic.c| 1 + drivers/gpu/drm

[PATCH 08/16] drm/amd/display: Always pass connector_state to stream validation

2022-12-12 Thread Harry Wentland
We need the connector_state for colorspace and scaling information and can get it from connector->state. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: dri-devel@lists.freedesktop.org

[PATCH 12/16] drm/amd/display: Always set crtcinfo from create_stream_for_sink

2022-12-12 Thread Harry Wentland
From: Joshua Ashton Given that we always pass dm_state into here now, this won't ever trigger anymore. This is needed for we will always fail mode validation with invalid clocks or link bandwidth errors. Signed-off-by: Joshua Ashton Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@am

[PATCH 10/16] drm/amd/display: Set colorspace for HDMI infoframe

2022-12-12 Thread Harry Wentland
Now that we have the HDMI colorimetry fill the corresponding AVI infoframe info. Also signal "mode_changed" if colorimetry changed. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashto

[PATCH 05/16] drm/connector: Pull out common create_colorspace_property code

2022-12-12 Thread Harry Wentland
Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org --- drivers/gpu/drm/drm_connector.c | 54

[PATCH 04/16] drm/connector: Convert DRM_MODE_COLORIMETRY to enum

2022-12-12 Thread Harry Wentland
This allows us to use strongly typed arguments. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org --- include/drm/display

[PATCH 15/16] drm/amd/display: Add default case for output_color_space switch

2022-12-12 Thread Harry Wentland
Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 43

[PATCH 09/16] drm/amd/display: Register Colorspace property for DP and HDMI

2022-12-12 Thread Harry Wentland
We want compositors to be able to set the output colorspace on DP and HDMI outputs, based on the caps reported from the receiver via EDID. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc

[PATCH 16/16] drm/amd/display: Don't restrict bpc to 8 bpc

2022-12-12 Thread Harry Wentland
sired value. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1

[PATCH 11/16] drm/amd/display: Send correct DP colorspace infopacket

2022-12-12 Thread Harry Wentland
Look at connector->colorimetry to determine output colorspace. We don't want to impact current SDR behavior, so DRM_MODE_COLORIMETRY_DEFAULT preserves current behavior. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar C

[PATCH 14/16] drm/amd/display: Add debugfs for testing output colorspace

2022-12-12 Thread Harry Wentland
In order to IGT test colorspace we'll want to print the currently enabled colorspace on a stream. We add a new debugfs to do so, using the same scheme as current bpc reporting. This might also come in handy when debugging display issues. Signed-off-by: Harry Wentland Cc: Pekka Paalane

[PATCH 13/16] drm/amd/display: Add support for explicit BT601_YCC

2022-12-12 Thread Harry Wentland
We use this by default but if userspace passes this explicitly we should respect it. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: dri-devel@lists.freedesktop.org Cc: amd

Re: [PATCH 06/16] drm/connector: Allow drivers to pass list of supported colorspaces

2022-12-13 Thread Harry Wentland
On 12/13/22 05:23, Pekka Paalanen wrote: > On Mon, 12 Dec 2022 13:21:27 -0500 > Harry Wentland wrote: > >> Drivers might not support all colorspaces defined in >> dp_colorspaces and hdmi_colorspaces. This results in >> undefined behavior when userspace is setting a

Re: [PATCH 06/16] drm/connector: Allow drivers to pass list of supported colorspaces

2022-12-13 Thread Harry Wentland
On 12/13/22 05:34, Pekka Paalanen wrote: > Sorry, hand slipped on keyboard and sent out a draft of this email too > early. > > > On Mon, 12 Dec 2022 13:21:27 -0500 > Harry Wentland wrote: > >> Drivers might not support all colorspaces defined in >> dp_color

Re: [PATCH 04/16] drm/connector: Convert DRM_MODE_COLORIMETRY to enum

2022-12-13 Thread Harry Wentland
On 12/13/22 05:39, Pekka Paalanen wrote: > On Mon, 12 Dec 2022 13:21:25 -0500 > Harry Wentland wrote: > >> This allows us to use strongly typed arguments. >> >> Signed-off-by: Harry Wentland >> Cc: Pekka Paalanen >> Cc: Sebastian Wick >> Cc: vit

Re: [PATCH 06/16] drm/connector: Allow drivers to pass list of supported colorspaces

2022-12-14 Thread Harry Wentland
On 12/14/22 03:55, Pekka Paalanen wrote: > On Tue, 13 Dec 2022 11:32:01 -0500 > Harry Wentland wrote: > >> On 12/13/22 05:23, Pekka Paalanen wrote: >>> On Mon, 12 Dec 2022 13:21:27 -0500 >>> Harry Wentland wrote: >>> >>>>

Re: [PATCH 16/16] drm/amd/display: Don't restrict bpc to 8 bpc

2022-12-23 Thread Harry Wentland
On 12/14/22 04:01, Pekka Paalanen wrote: > On Tue, 13 Dec 2022 18:20:59 +0100 > Michel Dänzer wrote: > >> On 12/12/22 19:21, Harry Wentland wrote: >>> This will let us pass kms_hdr.bpc_switch. >>> >>> I don't see any good reasons why we still

Re: [PATCH v4 24/27] drm/amd/display: Load DMUB microcode during early_init

2023-01-04 Thread Harry Wentland
by: Mario Limonciello In addition to changing the FW load order this also changes request_firmware_direct to request_firmware but this seems to be the correct thing here anyways, since DMUB is not optional. Reviewed-by: Harry Wentland Harry > --- > v3->v4: > * New patch > ---

Re: [PATCH v6 25/45] drm/amd: Use `amdgpu_ucode_release` helper for DMUB

2023-01-05 Thread Harry Wentland
On 1/4/23 22:42, Mario Limonciello wrote: > The `amdgpu_ucode_release` helper is for symmetry on unloading. > > Reviewed-by: Alex Deucher > Signed-off-by: Mario Limonciello Reviewed-by: Harry Wentland Harry > --- > v5->v6: > * Adjust for amdgpu_ucode

Re: [PATCH v6 42/45] drm/amd: Use `amdgpu_ucode_*` helpers for DMCU

2023-01-05 Thread Harry Wentland
r > Signed-off-by: Mario Limonciello Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 ++- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c >

Re: [PATCH v2] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Harry Wentland
On 1/5/23 12:38, Hamza Mahfooz wrote: > Currently, there are issues with enabling PSR-SU + DSC. This stems from > the fact that DSC imposes a slice height on transmitted video data and > we are not conforming to that slice height in PSR-SU regions. So, pass > slice_height into su_y_granularity t

Re: [PATCH -next] drm/amd/display: Remove redundant assignment to variable dc

2023-01-05 Thread Harry Wentland
assigned after check whether 'stream' is > NULL. Fix it by remove redundant assignment. > > Signed-off-by: Yi Yang If this didn't blow up until now we might not even need the NULL check below, but either way this is correct and Reviewed-by: Harry Wentland Harry >

Re: [PATCH v2] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Harry Wentland
On 1/5/23 15:12, Leo Li wrote: > > > > On 1/5/23 15:07, Hamza Mahfooz wrote: >> On 1/5/23 13:29, Harry Wentland wrote: >>> >>> >>> On 1/5/23 12:38, Hamza Mahfooz wrote: >>>> Currently, there are issues with enabling PSR-SU + DSC. This

Re: [PATCH v3] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Harry Wentland
anularity to feed the DSC slice height into > PSR-SU code. > > Signed-off-by: Hamza Mahfooz Acked-by: Harry Wentland Harry > --- > v2: move code to modules/power. > v3: use ASSERT() instead of WARN() and add a condition that clarifies > that PSR-SU + DSC can onl

Re: [PATCH v4] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-06 Thread Harry Wentland
_granularity to feed the DSC slice height into > PSR-SU code. > > Signed-off-by: Hamza Mahfooz Acked-by: Harry Wentland Would be good if you can get Leo's review. Harry > --- > v2: move code to modules/power. > v3: use ASSERT() instead of WARN() and add a condition tha

Re: [PATCH v2] drm/display: Add missing OLED Vesa brightnesses definitions

2023-04-19 Thread Harry Wentland
On 4/11/23 20:09, Rodrigo Siqueira wrote: > This commit adds missing luminance control registers to enable a more > standard way (VESA) to deal with eDP luminance control. > > Cc: Anthony Koo > Cc: Iswara Negulendran > Cc: Felipe Clark > Cc: Harry Wentland > Signed-

Re: [RFC] Plane color pipeline KMS uAPI

2023-05-04 Thread Harry Wentland
On 5/4/23 11:22, Simon Ser wrote: Hi all, The goal of this RFC is to expose a generic KMS uAPI to configure the color pipeline before blending, ie. after a pixel is tapped from a plane's framebuffer and before it's blended with other planes. With this new uAPI we aim to reduce the battery lif

[PATCH] Documentation/gpu: Requirements for driver-specific KMS uAPIs

2023-05-04 Thread Harry Wentland
order to move complex topics along. [1] https://patchwork.freedesktop.org/series/116862/ Signed-off-by: Harry Wentland Cc: Simon Ser Cc: Joshua Ashton Cc: Michel Dänzer Cc: Sebastian Wick Cc: Jonas Ådahl Cc: Alex Goins Cc: Pekka Paalanen Cc: Melissa Wen Cc: Aleix Pol Cc: Xaver Hugl Cc

Re: [PATCH] Documentation/gpu: Requirements for driver-specific KMS uAPIs

2023-05-05 Thread Harry Wentland
On 5/5/23 06:16, Daniel Vetter wrote: > On Fri, May 05, 2023 at 11:43:20AM +0300, Pekka Paalanen wrote: >> On Thu, 4 May 2023 17:25:57 -0400 >> Harry Wentland wrote: >> >>> We have steered away for a long time now from driver-specific KMS APIs >>> for goo

Re: [PATCH] Documentation/gpu: Requirements for driver-specific KMS uAPIs

2023-05-05 Thread Harry Wentland
On 5/5/23 09:35, Daniel Vetter wrote: > On Fri, May 05, 2023 at 09:20:26AM -0400, Harry Wentland wrote: >> >> >> On 5/5/23 06:16, Daniel Vetter wrote: >>> On Fri, May 05, 2023 at 11:43:20AM +0300, Pekka Paalanen wrote: >>>> On Thu, 4 May 2023

Re: [PATCH 28/37] drm/amd/display/dc/core/dc_stat: Convert a couple of doc headers to kerneldoc format

2023-03-20 Thread Harry Wentland
re/dc_stat.c:38: warning: >>> Cannot understand >>> * >>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stat.c:76: warning: >>> Cannot understand >>> ***

Re: [PATCH v2] drm/amd/display: use a more accurate check in dm_helpers_dp_read_dpcd()

2023-03-20 Thread Harry Wentland
gned-off-by: Hamza Mahfooz I don't think we can ever hit a case where the return value is greater than 0 but not equal to size as drm_dp_dpcd_access already checks for it. Either way, the stricter check makes sense and is Reviewed-by: Harry Wentland Harry > --- > v2: drop the WARN_O

Re: [PATCH] drm/amd/display: use a more accurate check in dm_helpers_dp_read_dpcd()

2023-03-20 Thread Harry Wentland
On 3/10/23 12:51, Ville Syrjälä wrote: > On Fri, Mar 10, 2023 at 07:48:04PM +0200, Ville Syrjälä wrote: >> On Thu, Mar 09, 2023 at 04:30:27PM -0500, Hamza Mahfooz wrote: >>> We should be checking if drm_dp_dpcd_read() returns the size that we are >>> asking it to read instead of just checking if

Re: [PATCH] drm/display: Add missing OLED Vesa brightnesses definitions

2023-03-22 Thread Harry Wentland
On 3/22/23 12:05, Rodrigo Siqueira wrote: > Cc: Anthony Koo > Cc: Iswara Negulendran > Cc: Felipe Clark > Cc: Harry Wentland > Signed-off-by: Rodrigo Siqueira Reviewed-by: Harry Wentland Harry > --- > include/drm/display/drm_dp.h | 2 ++ > 1 file changed, 2

Re: [PATCH v4] drm/vkms: Add support to 1D gamma LUT

2023-06-22 Thread Harry Wentland
ed-by: Pekka Paalanen Thanks for writing this and thanks, Pekka and Simon, for doing the heavy lifting with reviews. This will be helpful while I'm writing a sketch of a drm_plane color pipeline API with VKMS. This patch looks good to me and is Reviewed-by: Harry Wentland Harry &g

Re: [RFC] Plane color pipeline KMS uAPI

2023-05-08 Thread Harry Wentland
On 5/8/23 05:18, Daniel Vetter wrote: > On Mon, 8 May 2023 at 10:58, Simon Ser wrote: >> >> On Friday, May 5th, 2023 at 21:53, Daniel Vetter wrote: >> >>> On Fri, May 05, 2023 at 04:06:26PM +, Simon Ser wrote: On Friday, May 5th, 2023 at 17:28, Daniel Vetter wrote: > Ok no c

Re: [RFC PATCH 03/40] drm/amd/display: introduce Steam Deck color features to AMD display driver

2023-05-08 Thread Harry Wentland
On 4/23/23 10:10, Melissa Wen wrote: > We are enabling a large set of color calibration features to enhance KMS > color mgmt but these properties are specific of AMD display HW, and > cannot be provided by other vendors. Therefore, set a config option to > enable AMD driver-private properties used

Re: [RFC PATCH 00/40] drm/amd/display: add AMD driver-specific properties for color mgmt

2023-05-08 Thread Harry Wentland
On 4/23/23 10:10, Melissa Wen wrote: > Hi all, > > Joshua Ashton and I (with the great collaboration of Harry Wentland - > thanks) have been working on KMS color pipeline enhancement for Steam > Deck/SteamOS by exposing the large set of color caps available in AMD > display

Re: [RFC PATCH 05/40] drm/amd/display: add shaper LUT driver-private props

2023-05-08 Thread Harry Wentland
On 4/23/23 10:10, Melissa Wen wrote: > CRTC shaper LUT shapes the content after blending, i.e., de-linearizes > or normalizes space before applying a 3D LUT color correction. In the > next patch, we add CRTC 3D LUT property to DRM color management after > this shaper LUT and before the current C

Re: [RFC PATCH 07/40] drm/amd/display: add CRTC gamma TF to driver-private props

2023-05-08 Thread Harry Wentland
On 4/23/23 10:10, Melissa Wen wrote: > From: Joshua Ashton > > Add predefined transfer function property to DRM CRTC gamma to convert > to wire encoding with or without gamma LUT. > Are all these new CRTC properties used by gamescope? I would be reluctant to merge them if they're currently n

Re: [RFC PATCH 09/40] drm/amd/display: move replace blob func to dm plane

2023-05-08 Thread Harry Wentland
On 4/23/23 10:10, Melissa Wen wrote: > From amdgpu_dm_plane we can get it for both CRTC and plane color > properties. We are adding new plane properties for AMD driver-private > color mgmt. > > Signed-off-by: Melissa Wen > --- > .../amd/display/amdgpu_dm/amdgpu_dm_crtc.c| 37 +

Re: [RFC PATCH 12/40] drm/amd/display: add plane HDR multiplier driver-private property

2023-05-08 Thread Harry Wentland
On 4/23/23 10:10, Melissa Wen wrote: > From: Joshua Ashton > > Multiplier to 'gain' the plane. When PQ is decoded using the fixed func > transfer function to the internal FP16 fb, 1.0 -> 80 nits (on AMD at > least) When sRGB is decoded, 1.0 -> 1.0. Therefore, 1.0 multiplier = 80 > nits for SD

Re: [RFC] Plane color pipeline KMS uAPI

2023-05-09 Thread Harry Wentland
On 5/7/23 19:14, Dave Airlie wrote: > On Sat, 6 May 2023 at 08:21, Sebastian Wick wrote: >> >> On Fri, May 5, 2023 at 10:40 PM Dave Airlie wrote: >>> >>> On Fri, 5 May 2023 at 01:23, Simon Ser wrote: Hi all, The goal of this RFC is to expose a generic KMS uAPI to configure

Re: [RFC PATCH 03/40] drm/amd/display: introduce Steam Deck color features to AMD display driver

2023-05-09 Thread Harry Wentland
r you? Harry > On Tue, 9 May 2023 at 16:26, Melissa Wen wrote: >> >> On 05/08, Harry Wentland wrote: >>> On 4/23/23 10:10, Melissa Wen wrote: >>>> We are enabling a large set of color calibration features to enhance KMS >>>> color mgmt but these p

Re: [RFC PATCH 03/40] drm/amd/display: introduce Steam Deck color features to AMD display driver

2023-05-09 Thread Harry Wentland
On 5/9/23 12:23, Melissa Wen wrote: > On 05/08, Harry Wentland wrote: >> On 4/23/23 10:10, Melissa Wen wrote: >>> We are enabling a large set of color calibration features to enhance KMS >>> color mgmt but these properties are specific of AMD display HW, and >

Re: [RFC PATCH 00/40] drm/amd/display: add AMD driver-specific properties for color mgmt

2023-05-09 Thread Harry Wentland
On 5/9/23 12:52, Melissa Wen wrote: > On 05/08, Harry Wentland wrote: >> >> >> On 4/23/23 10:10, Melissa Wen wrote: >>> Hi all, >>> >>> Joshua Ashton and I (with the great collaboration of Harry Wentland - >>> thanks) have been wor

Re: [RFC PATCH 12/40] drm/amd/display: add plane HDR multiplier driver-private property

2023-05-09 Thread Harry Wentland
issa Wen wrote: >> >> On 05/08, Harry Wentland wrote: >>> >>> >>> On 4/23/23 10:10, Melissa Wen wrote: >>>> From: Joshua Ashton >>>> >>>> Multiplier to 'gain' the plane. When PQ is decoded using the fixed func &

Re: [RFC PATCH 12/40] drm/amd/display: add plane HDR multiplier driver-private property

2023-05-09 Thread Harry Wentland
ll that into there. > Ah, that's good. No problem then. Harry > On Tue, 9 May 2023 at 20:00, Harry Wentland wrote: >> >> On 5/9/23 12:54, Joshua Ashton wrote: >>> We currently do not have a use for this as we settled on per-plane 3D >>> LUT + Shaper, but we mi

Re: [PATCH v3 02/17] drm/connector: Add enum documentation to drm_colorspace

2023-05-24 Thread Harry Wentland
On 3/8/23 03:59, Pekka Paalanen wrote: > On Tue, 7 Mar 2023 10:10:52 -0500 > Harry Wentland wrote: > >> From: Joshua Ashton >> >> To match the other enums, and add more information about these values. >> >> v2: >> - Specify where an enum entry

Re: [PATCH v3 03/17] drm/connector: Deprecate split for BT.2020 in drm_colorspace enum

2023-05-24 Thread Harry Wentland
On 3/8/23 04:09, Pekka Paalanen wrote: > On Tue, 7 Mar 2023 10:10:53 -0500 > Harry Wentland wrote: > >> From: Joshua Ashton >> >> Userspace has no way of controlling or knowing the pixel encoding >> currently, so there is no way for it to ever get the right

Re: [PATCH v3 09/17] drm/amd/display: Register Colorspace property for DP and HDMI

2023-05-24 Thread Harry Wentland
On 3/8/23 04:24, Pekka Paalanen wrote: > On Tue, 7 Mar 2023 10:10:59 -0500 > Harry Wentland wrote: > >> We want compositors to be able to set the output >> colorspace on DP and HDMI outputs, based on the >> caps reported from the receiver via EDID. >> >&g

Re: [PATCH v3 09/17] drm/amd/display: Register Colorspace property for DP and HDMI

2023-05-24 Thread Harry Wentland
gt;>>>>>> On Thu, Mar 16, 2023 at 01:34:49PM +0200, Pekka Paalanen wrote: >>>>>>>> On Thu, 16 Mar 2023 12:47:51 +0200 >>>>>>>> Ville Syrjälä wrote: >>>>>>>>     >>>>>>>>> On Thu, Mar 16, 202

Re: [PATCH v2] drm/amd/display: enable more strict compile checks

2023-05-24 Thread Harry Wentland
gh the cracks. Among them, there are >>> unused variable and indentation issues. Also, we should consider all >>> warnings to be compile errors, since the community will eventually end >>> up complaining about them. So, enable -Werror, -Wunused and >>> -Wmisleading-in

Re: [PATCH 06/36] drm/amd/display: add CRTC driver-specific property for gamma TF

2023-05-25 Thread Harry Wentland
On 5/24/23 04:24, Pekka Paalanen wrote: > On Tue, 23 May 2023 21:14:50 -0100 > Melissa Wen wrote: > >> Hook up driver-specific atomic operations for managing AMD color >> properties and create AMD driver-specific color management properties >> and attach them according to HW capabilities defin

[PATCH v4 00/13] Enable Colorspace connector property in amdgpu

2023-05-25 Thread Harry Wentland
ikula Cc: Michel Dänzer Cc: Simon Ser Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org Harry Wentland (10): drm/connector: Convert DRM_MODE_COLORIMETRY to enum drm/connector: Pull out common create_colorspace_property code drm/connector: Use co

[PATCH v4 01/13] drm/connector: Convert DRM_MODE_COLORIMETRY to enum

2023-05-25 Thread Harry Wentland
This allows us to use strongly typed arguments. v2: - Bring NO_DATA back - Provide explicit enum values v3: - Drop unnecessary '&' from kerneldoc (emersion) v4: - Fix Normal Colorimetry comment Signed-off-by: Harry Wentland Reviewed-by: Simon Ser Cc: Pekka Paalanen Cc: Seba

[PATCH v4 02/13] drm/connector: Add enum documentation to drm_colorspace

2023-05-25 Thread Harry Wentland
that might create more questions than answers Signed-off-by: Joshua Ashton Signed-off-by: Harry Wentland Reviewed-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: Simon Ser Cc: Ville Syrjälä Cc: Melis

[PATCH v4 05/13] drm/connector: Print connector colorspace in state debugfs

2023-05-25 Thread Harry Wentland
v3: Fix kerneldocs (kernel test robot) v4: Avoid returning NULL from drm_get_colorspace_name Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: Jani Nikula Cc: Simon Ser Cc: Ville Syrjälä

[PATCH v4 03/13] drm/connector: Pull out common create_colorspace_property code

2023-05-25 Thread Harry Wentland
Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: Jani Nikula Cc: Simon Ser Cc: Ville Syrjälä Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org

[PATCH v4 11/13] drm/amd/display: Always set crtcinfo from create_stream_for_sink

2023-05-25 Thread Harry Wentland
From: Joshua Ashton Given that we always pass dm_state into here now, this won't ever trigger anymore. This is needed for we will always fail mode validation with invalid clocks or link bandwidth errors. Signed-off-by: Joshua Ashton Signed-off-by: Harry Wentland Cc: Pekka Paalane

[PATCH v4 07/13] drm/amd/display: Always pass connector_state to stream validation

2023-05-25 Thread Harry Wentland
We need the connector_state for colorspace and scaling information and can get it from connector->state. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Joshua Ashton Cc: Simon Ser Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.org Cc:

[PATCH v4 09/13] drm/amd/display: Signal mode_changed if colorspace changed

2023-05-25 Thread Harry Wentland
We need to signal mode_changed to make sure we update the output colorspace. v2: No need to call drm_hdmi_avi_infoframe_colorimetry as DC does its own infoframe packing. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc

[PATCH v4 06/13] drm/connector: Allow drivers to pass list of supported colorspaces

2023-05-25 Thread Harry Wentland
indicate support for all colorspaces (Jani) - Print drm_dbg_kms message when drivers pass 0 to signal that drivers should specify supported colorspaecs explicity (Jani) v3: - Move changes to create a common colorspace_names array to separate patch Signed-off-by: Harry Wentland Cc: Pekka

[PATCH v4 04/13] drm/connector: Use common colorspace_names array

2023-05-25 Thread Harry Wentland
nction doc Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: Jani Nikula Cc: Simon Ser Cc: Ville Syrjälä Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freed

[PATCH v4 10/13] drm/amd/display: Send correct DP colorspace infopacket

2023-05-25 Thread Harry Wentland
ult case to avoid warnings for unhandled enum values Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Joshua Ashton Cc: Simon Ser Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org --- .../gpu/drm/amd

[PATCH v4 12/13] drm/amd/display: Add debugfs for testing output colorspace

2023-05-25 Thread Harry Wentland
print Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Joshua Ashton Cc: Simon Ser Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org --- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 57 +++ 1

[PATCH v4 08/13] drm/amd/display: Register Colorspace property for DP and HDMI

2023-05-25 Thread Harry Wentland
We want compositors to be able to set the output colorspace on DP and HDMI outputs, based on the caps reported from the receiver via EDID. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Joshua Ashton Cc: Simon Ser Cc: Ville Syrjälä Cc

[PATCH v4 13/13] drm/amd/display: Refactor avi_info_frame colorimetry determination

2023-05-25 Thread Harry Wentland
From: Joshua Ashton Replace the messy two if-else chains here that were on the same value with a switch on the enum. Signed-off-by: Joshua Ashton Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Joshua Ashton Cc: Simon Ser Cc: Melissa Wen

Re: [PATCH] drm/amd/display: check attr flag before set cursor degamma on DCN3+

2023-07-31 Thread Harry Wentland
ent. > > Fixes: 03f54d7d3448 ("drm/amd/display: Add DCN3 DPP") > Signed-off-by: Melissa Wen Thanks. Good find. Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c | 7 +-- > 1 file changed, 5 insertions(+), 2 dele

Re: [PATCH] drm/amd/display: check attr flag before set cursor degamma on DCN3+

2023-08-02 Thread Harry Wentland
Thanks. Change is merged to amd-staging-drm-next. Harry On 2023-08-01 00:07, Alex Hung wrote: > Tested-by: Alex Hung > > On 2023-07-31 02:35, Melissa Wen wrote: >> Don't set predefined degamma curve to cursor plane if the cursor >> attribute flag is not set. Applying a degamma curve to the curs

Re: [PATCH] drm/amd/display: ensure async flips are only accepted for fast updates

2023-08-04 Thread Harry Wentland
On 2023-08-04 11:56, Hamza Mahfooz wrote: > We should be checking to see if async flips are supported in > amdgpu_dm_atomic_check() (i.e. not dm_crtc_helper_atomic_check()). Also, > async flipping isn't supported if a plane's framebuffer changes memory > domains during an atomic commit. So, move

Re: [PATCH v2] drm/amd/display: ensure async flips are only accepted for fast updates

2023-08-04 Thread Harry Wentland
6b60691e6 ("drm/amd/display: only accept async flips for fast > updates") > Signed-off-by: Hamza Mahfooz Reviewed-by: Harry Wentland Harry > --- > v2: link issue and revert back to the old way of setting update_type. > --- > .../gpu/drm/amd/display/amdgpu_

Re: [PATCH 06/36] drm/amd/display: add CRTC driver-specific property for gamma TF

2023-06-01 Thread Harry Wentland
On 5/23/23 18:14, Melissa Wen wrote: > Hook up driver-specific atomic operations for managing AMD color > properties and create AMD driver-specific color management properties > and attach them according to HW capabilities defined by `struct > dc_color_caps`. Add enumerated transfer function pro

Re: [PATCH 07/36] drm/amd/display: add plane driver-specific properties for degamma LUT

2023-06-01 Thread Harry Wentland
On 5/23/23 18:14, Melissa Wen wrote: > Create and attach driver-private properties for plane color management. > First add plane degamma LUT properties that means user-blob and its > size. We will add more plane color properties in the next commits. In > addition, we keep these driver-private pl

Re: [PATCH 09/36] drm/amd/display: add plane HDR multiplier driver-specific property

2023-06-01 Thread Harry Wentland
On 5/23/23 18:14, Melissa Wen wrote: > From: Joshua Ashton > > Multiplier to 'gain' the plane. When PQ is decoded using the fixed func > transfer function to the internal FP16 fb, 1.0 -> 80 nits (on AMD at > least) When sRGB is decoded, 1.0 -> 1.0. Therefore, 1.0 multiplier = 80 > nits for SD

Re: [PATCH 21/36] drm/amd/display: add CRTC 3D LUT support

2023-06-01 Thread Harry Wentland
On 5/23/23 18:15, Melissa Wen wrote: > Wire up DC 3D LUT to DM CRTC color management (post-blending). On AMD > display HW, we have to set a shaper LUT to delinearize or normalize the > color space before applying a 3D LUT (since we have a reduced number of > LUT entries). Therefore, we map DC sh

Re: [PATCH 36/36] drm/amd/display: allow newer DC hardware to use degamma ROM for PQ/HLG

2023-06-02 Thread Harry Wentland
On 5/23/23 18:15, Melissa Wen wrote: > From: Joshua Ashton > > Need to funnel the color caps through to these functions so it can check > that the hardware is capable. > > Signed-off-by: Joshua Ashton > Signed-off-by: Melissa Wen > --- > .../amd/display/amdgpu_dm/amdgpu_dm_color.c | 35 +

Re: [PATCH 00/36] drm/amd/display: add AMD driver-specific properties for color mgmt

2023-06-02 Thread Harry Wentland
ave missed something, please let me know if that's the > case. > Looks like we're on the right track with this. Patches 1-3, 15, 17, 24-31, 33-35 are Reviewed-by: Harry Wentland I left comments on a bunch of the other patches. Let's replace drm_ prefices with amdgpu_ or amdgpu

Re: [PATCH 06/36] drm/amd/display: add CRTC driver-specific property for gamma TF

2023-06-06 Thread Harry Wentland
On 6/6/23 12:57, Melissa Wen wrote: > On 06/06, Sebastian Wick wrote: >> On Tue, Jun 6, 2023 at 6:19 PM Joshua Ashton wrote: >>> >>> >>> >>> On 6/1/23 20:17, Harry Wentland wrote: >>>> >>>> >>>> On 5/23/23 18:14

[PATCH v5 00/13] Enable Colorspace connector property in amdgpu

2023-06-06 Thread Harry Wentland
italy.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: Jani Nikula Cc: Michel Dänzer Cc: Simon Ser Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.org Cc: amd-...@lists.freedesktop.org Harry Wentland (10): drm/connector: Convert DRM_MODE_COLORIMETRY to enum dr

[PATCH v5 01/13] drm/connector: Convert DRM_MODE_COLORIMETRY to enum

2023-06-06 Thread Harry Wentland
This allows us to use strongly typed arguments. v2: - Bring NO_DATA back - Provide explicit enum values v3: - Drop unnecessary '&' from kerneldoc (emersion) v4: - Fix Normal Colorimetry comment Signed-off-by: Harry Wentland Reviewed-by: Simon Ser Reviewed-by: Sebastian Wi

[PATCH v5 03/13] drm/connector: Pull out common create_colorspace_property code

2023-06-06 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Sebastian Wick Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: Jani Nikula Cc: Simon Ser Cc: Ville Syrjälä Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.org Cc: amd

[PATCH v5 02/13] drm/connector: Add enum documentation to drm_colorspace

2023-06-06 Thread Harry Wentland
that might create more questions than answers v5: - Add note on YCC and RGB variants Signed-off-by: Joshua Ashton Signed-off-by: Harry Wentland Reviewed-by: Harry Wentland Reviewed-by: Sebastian Wick Acked-by: Pekka Paalanen Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.c

[PATCH v5 04/13] drm/connector: Use common colorspace_names array

2023-06-06 Thread Harry Wentland
nction doc Signed-off-by: Harry Wentland Reviewed-by: Sebastian Wick Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: Jani Nikula Cc: Simon Ser Cc: Ville Syrjälä Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.o

[PATCH v5 07/13] drm/amd/display: Always pass connector_state to stream validation

2023-06-06 Thread Harry Wentland
We need the connector_state for colorspace and scaling information and can get it from connector->state. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Joshua Ashton Cc: Simon Ser Cc: Melissa Wen Cc: dri-devel@lists.freedesktop.org Cc:

[PATCH v5 08/13] drm/amd/display: Register Colorspace property for DP and HDMI

2023-06-06 Thread Harry Wentland
We want compositors to be able to set the output colorspace on DP and HDMI outputs, based on the caps reported from the receiver via EDID. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Joshua Ashton Cc: Simon Ser Cc: Ville Syrjälä Cc

[PATCH v5 09/13] drm/amd/display: Signal mode_changed if colorspace changed

2023-06-06 Thread Harry Wentland
We need to signal mode_changed to make sure we update the output colorspace. v2: No need to call drm_hdmi_avi_infoframe_colorimetry as DC does its own infoframe packing. Signed-off-by: Harry Wentland Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc

[PATCH v5 05/13] drm/connector: Print connector colorspace in state debugfs

2023-06-06 Thread Harry Wentland
v3: Fix kerneldocs (kernel test robot) v4: Avoid returning NULL from drm_get_colorspace_name Signed-off-by: Harry Wentland Reviewed-by: Sebastian Wick Cc: Pekka Paalanen Cc: Sebastian Wick Cc: vitaly.pros...@amd.com Cc: Uma Shankar Cc: Ville Syrjälä Cc: Joshua Ashton Cc: Jani Nikula Cc

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