[PATCH v2] drm: document DRM_MODE_PAGE_FLIP_EVENT interactions with atomic

2025-05-01 Thread Simon Ser
age (Pekka) Signed-off-by: Simon Ser Cc: Simona Vetter Cc: Ville Syrjälä Cc: Pekka Paalanen Cc: David Turner Cc: Daniel Stone --- include/uapi/drm/drm_mode.h | 8 1 file changed, 8 insertions(+) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index c0

Re: [PATCH v2] drm: document DRM_MODE_PAGE_FLIP_EVENT interactions with atomic

2025-05-01 Thread Simon Ser
Note, I just noticed I wrote an earlier (less precise) version of this patch here, which I completely forgot about: https://patchwork.freedesktop.org/patch/546972/

Re: [PATCH v2] drm/doc: document front-buffer rendering

2025-05-01 Thread Simon Ser
Ah, sorry, I missed this message. On Monday, April 14th, 2025 at 15:28, Ville Syrjälä wrote: > Should probably add a caveat that this needs to be a sync commit/flip. > The way the async flip was specified for atomic explicitly requires the > driver to ignore the plane when the fb doesn't change

Re: [PATCH v2] drm/doc: document front-buffer rendering

2025-04-30 Thread Simon Ser
Pushed, thanks!

Re: [PATCH v2] drm/doc: document front-buffer rendering

2025-04-17 Thread Simon Ser
On Monday, April 14th, 2025 at 13:06, Pekka Paalanen wrote: > Looking good, but given the new wording is 100% mine, not sure I can > give reviewed-by? > > Co-authored-by maybe? Since it's 100% yours, probably you should be the commit author? Would you mind giving a S-o-b as well? But I wonder

Re: [PATCH V8 06/43] drm/colorop: Add 1D Curve subtype

2025-04-17 Thread Simon Ser
On Tuesday, April 15th, 2025 at 13:12, Borah, Chaitanya Kumar wrote: > On 4/8/2025 10:10 PM, Daniel Stone wrote: > > > As it stands, I've gone through the implementation pretty thoroughly, > > as well as our use of it in Weston. I'm happy with how it looks for > > pre-blend, and I'm even happie

Re: [PATCH V8 32/43] drm/colorop: Add 1D Curve Custom LUT type

2025-04-15 Thread Simon Ser
On Tuesday, April 15th, 2025 at 17:05, Harry Wentland wrote: > > > > We want to have just one change in the way we expose the hardware > > > > capabilities else all looks good in general. > > > > > > I would really recommend leaving this as a follow-up extension. It's a > > > complicated > > >

RE: [PATCH V8 32/43] drm/colorop: Add 1D Curve Custom LUT type

2025-04-14 Thread Simon Ser
On Tuesday, April 15th, 2025 at 08:09, Shankar, Uma wrote: > We want to have just one change in the way we expose the hardware > capabilities else > all looks good in general. I would really recommend leaving this as a follow-up extension. It's a complicated addition that requires more discuss

[PATCH v2] drm/doc: document front-buffer rendering

2025-04-14 Thread Simon Ser
Explain how to perform front-buffer rendering. v2: apply Pekka's rewrite Signed-off-by: Simon Ser Cc: Pekka Paalanen Cc: Simona Vetter --- drivers/gpu/drm/drm_blend.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c

Re: [PATCH 4/4] drm/doc: document front-buffer rendering

2025-04-14 Thread Simon Ser
On Thursday, July 13th, 2023 at 10:23, Pekka Paalanen wrote: > > + * To perform front-buffer rendering, user-space should set FB_ID to the > > + * previous framebuffer in atomic commits. > > * CRTC_ID: > > * Mode object ID of the &drm_crtc this plane should be connected to. > > * > > It's uncle

Re: [PATCH] drm: document DRM_MODE_PAGE_FLIP_EVENT interactions with atomic

2025-04-14 Thread Simon Ser
On Friday, January 17th, 2025 at 12:15, Pekka Paalanen wrote: > On Thu, 16 Jan 2025 16:25:35 + > Simon Ser cont...@emersion.fr wrote: > > > It's not obvious off-hand which CRTCs will get a page-flip event > > when using this flag in an atomic commit, because it&#x

Re: [PATCH V8 43/43] drm/colorop: Add destroy functions for color pipeline

2025-04-10 Thread Simon Ser
On Tuesday, April 1st, 2025 at 04:42, Alex Hung wrote: > On 3/29/25 09:48, Simon Ser wrote: > > > I would prefer these functions to be introduced together with the > > patches adding functions to create objects and adding the new fields. > > That way it's easier to

Re: [PATCH V8 06/43] drm/colorop: Add 1D Curve subtype

2025-04-10 Thread Simon Ser
On Tuesday, April 8th, 2025 at 18:40, Daniel Stone wrote: > > > 5. For a given colorop property, is it an invariant that the colorop > > > will only appear in one color pipeline at a time? (I believe so, but > > > this probably needs documenting and/or igt.) > > > > I don't really understand why

Re: [PATCH V8 30/43] drm/colorop: add BT2020/BT709 OETF and Inverse OETF

2025-04-05 Thread Simon Ser
um, but (1) who knows what/how distros might end up cherry-picking (2) future patches might take inspiration from this one. With that fixed: Reviewed-by: Simon Ser

Re: [PATCH V8 40/43] drm/colorop: Add 3D LUT support to color pipeline

2025-04-05 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH V8 06/43] drm/colorop: Add 1D Curve subtype

2025-04-01 Thread Simon Ser
On Tuesday, April 1st, 2025 at 17:14, Daniel Stone wrote: > > > Hi Alex, > > On Wed, 26 Mar 2025 at 23:50, Alex Hung alex.h...@amd.com wrote: > > > +static int drm_colorop_init(struct drm_device *dev, struct drm_colorop > > *colorop, > > + struct drm_plane *plane, enum drm_colorop_type

Re: [PATCH V8 03/43] drm/doc/rfc: Describe why prescriptive color pipeline is needed

2025-04-01 Thread Simon Ser
On Tuesday, April 1st, 2025 at 02:10, Alex Hung wrote: > On 3/29/25 09:26, Simon Ser wrote: > > > I would also highlight that we need to seamlessly switch between HW > > fixed-function blocks and shaders/CPU with no visible difference. Depending > > on > > the co

Re: [PATCH V8 43/43] drm/colorop: Add destroy functions for color pipeline

2025-03-29 Thread Simon Ser
I would prefer these functions to be introduced together with the patches adding functions to create objects and adding the new fields. That way it's easier to check the symmetry and at no point in the series there are memory leaks. Additionally, I would avoid using the name "cleanup", which seems

Re: [PATCH V8 32/43] drm/colorop: Add 1D Curve Custom LUT type

2025-03-29 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH V8 00/43] Color Pipeline API w/ VKMS

2025-03-29 Thread Simon Ser
Thanks a lot for sending the updated series, Alex! I've looked at all of the core DRM patches and they all look pretty close to being R-b'ed. I don't think I'd have time to look at vkms or amdgpu patches. Let me know if I missed anything! Simon

Re: [PATCH V8 39/43] drm/colorop: allow non-bypass colorops

2025-03-29 Thread Simon Ser
I'm personally not a fan of such boolean function arguments, especially when caller and callee are far apart. From the caller side, the meaning of the boolean argument is not immediately clear. I would prefer a "flags" argument, which can take a e.g. DRM_COLOROP_FLAG_ALLOW_BYPASS value. But I'm n

Re: [PATCH V8 20/43] drm/colorop: pass plane_color_pipeline client cap to atomic check

2025-03-29 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH V8 03/43] drm/doc/rfc: Describe why prescriptive color pipeline is needed

2025-03-29 Thread Simon Ser
Thanks a lot for these docs, very well written. I especially like the "Driver Implementer's Guide" section. A few minor comments below, regardless: Reviewed-by: Simon Ser > +What problem are we solving? > + > + > +We would like to supp

Re: [PATCH V8 28/43] drm/colorop: Add PQ 125 EOTF and its inverse

2025-03-29 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH V8 12/43] Documentation/gpu: document drm_colorop

2025-03-29 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH V8 11/43] drm/colorop: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE

2025-03-29 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH V8 10/43] drm/plane: Add COLOR PIPELINE property

2025-03-29 Thread Simon Ser
Two nits below, regardless: Reviewed-by: Simon Ser > + } else if (property == plane->color_pipeline_property) { > + /* find DRM colorop object */ > + struct drm_colorop *colorop = NULL; > + > + colorop = drm_colorop_find(d

Re: [PATCH V8 09/43] drm/colorop: Add atomic state print for drm_colorop

2025-03-27 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH V8 08/43] drm/colorop: Add NEXT property

2025-03-27 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [V7 02/45] drm/vkms: Round fixp2int conversion in lerp_u16

2025-02-25 Thread Simon Ser
On Tuesday, February 25th, 2025 at 15:43, Harry Wentland wrote: > > > We need to be a bit careful when merging patches from the same series > > > via multiple trees. Maybe we'll merge the colorop stuff via the amd > > > tree? I don't remember the rules around trees, and I don't know if it > > >

Re: [V7 02/45] drm/vkms: Round fixp2int conversion in lerp_u16

2025-02-25 Thread Simon Ser
On Tuesday, February 25th, 2025 at 10:37, Louis Chauvet wrote: > Can I extract this patch from the series and apply it on drm-misc-next? That sounds completely fine by me, and TBH it sounds like it could even be drm-misc-fixes material? We need to be a bit careful when merging patches from the

Re: [V7 08/45] Documentation/gpu: document drm_colorop

2025-02-21 Thread Simon Ser
On Friday, February 21st, 2025 at 19:41, Harry Wentland wrote: > > Other people have argued that strings make it easier for user-space to > > start using a new KMS property without deploying new kernel uAPI headers. > > I don't understand this argument. You would either need to define the > str

Re: [V7 08/45] Documentation/gpu: document drm_colorop

2025-02-21 Thread Simon Ser
On Friday, February 21st, 2025 at 17:18, Harry Wentland wrote: > I did a brief survey of other enum properties and noticed > that this isn't well documented for others, such as the Content > Protection connector property, or the COLOR_RANGE and COLOR_ENCODING > plane properties. Isn't the Conte

Re: [V7 08/45] Documentation/gpu: document drm_colorop

2025-02-15 Thread Simon Ser
On Monday, February 10th, 2025 at 23:03, Harry Wentland wrote: > > > + * DOC: overview > > > + * > > > + * A colorop represents a single color operation. Colorops are chained > > > + * via the NEXT property and make up color pipelines. Color pipelines > > > + * are advertised and selected via th

Re: [V7 29/45] drm/colorop: Add PQ 125 EOTF and its inverse

2025-01-23 Thread Simon Ser
On Thursday, January 23rd, 2025 at 21:06, Harry Wentland wrote: > On 2025-01-15 03:00, Simon Ser wrote: > > > Is this 125 magic number something we can expect other hardware to > > implement as well? > > It's based on MS's CCCS interpretation of 80 nits as 1.

Re: [V7 23/45] drm/amd/display: Ignore deprecated props when plane_color_pipeline set

2025-01-23 Thread Simon Ser
On Wednesday, January 22nd, 2025 at 22:05, Harry Wentland wrote: > On 2025-01-15 02:56, Simon Ser wrote: > > > Is this "ignore" something we could do at the core DRM level, instead > > of doing it in all drivers? e.g. by silently ignoring user-space requests >

Re: [V7 13/45] drm/colorop: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE

2025-01-22 Thread Simon Ser
On Wednesday, January 22nd, 2025 at 20:48, Harry Wentland wrote: > On 2025-01-13 13:23, Simon Ser wrote: > > > > v4: > > > - Don't block setting of COLOR_RANGE and COLOR_ENCODING > > > when client cap is set > > > > Can you remind me why the

Re: [V7 41/45] drm/colorop: Add 3D LUT supports to color pipeline

2025-01-20 Thread Simon Ser
Some minor comments below, apart from that looks good! Typo in the commit title: s/supports/support/ > diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h > index 5ef87cb5b242..316c643e0dea 100644 > --- a/include/uapi/drm/drm_mode.h > +++ b/include/uapi/drm/drm_mode.h > @@ -913

Re: [V7 39/45] drm/colorop: Define LUT_1D interpolation

2025-01-19 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [V7 33/45] drm/colorop: Add 1D Curve Custom LUT type

2025-01-18 Thread Simon Ser
On Friday, January 17th, 2025 at 00:33, Alex Hung wrote: > On 1/15/25 01:14, Simon Ser wrote: > >> diff --git a/drivers/gpu/drm/drm_atomic_uapi.c > >> b/drivers/gpu/drm/drm_atomic_uapi.c > >> index a3e1fcad47ad..4744c12e429d 100644 > >> --- a/drivers/gpu/d

Re: [PATCH] drm: document DRM_MODE_PAGE_FLIP_EVENT interactions with atomic

2025-01-17 Thread Simon Ser
On Friday, January 17th, 2025 at 12:32, Ville Syrjälä wrote: > > + * When used with atomic uAPI, one event will be delivered per CRTC > > included in > > + * the atomic commit. A CRTC is included in an atomic commit if one of its > > + * properties is set, or if a property is set on a connector

[PATCH] drm: document DRM_MODE_PAGE_FLIP_EVENT interactions with atomic

2025-01-16 Thread Simon Ser
ight after drm_atomic_set_property() calls, page-flip events are not delivered for CRTCs pulled in later by DRM core (e.g. on modeset by drm_atomic_helper_check_modeset()) or the driver (e.g. other CRTCs sharing a DP-MST connector). Signed-off-by: Simon Ser Cc: Simona Vetter Cc: Ville Syrjälä Cc: Pekka Pa

Re: [V7 36/45] drm/colorop: Add mutliplier type

2025-01-15 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [V7 33/45] drm/colorop: Add 1D Curve Custom LUT type

2025-01-15 Thread Simon Ser
> + prop = drm_property_create_range(dev, DRM_MODE_PROP_IMMUTABLE, "SIZE", Ah, I forgot something: I think this needs to be DRM_MODE_PROP_ATOMIC?

Re: [V7 33/45] drm/colorop: Add 1D Curve Custom LUT type

2025-01-15 Thread Simon Ser
> diff --git a/drivers/gpu/drm/drm_atomic_uapi.c > b/drivers/gpu/drm/drm_atomic_uapi.c > index a3e1fcad47ad..4744c12e429d 100644 > --- a/drivers/gpu/drm/drm_atomic_uapi.c > +++ b/drivers/gpu/drm/drm_atomic_uapi.c > @@ -701,6 +701,9 @@ static int drm_atomic_color_set_data_property(struct > drm_col

Re: [V7 31/45] drm/colorop: add BT2020/BT709 OETF and Inverse OETF

2025-01-15 Thread Simon Ser
> The BT.709 and BT.2020 OETFs are the same, the only difference > being that the BT.2020 variant is defined with more precision > for 10 and 12-bit per color encodings. Just to make sure, the spec defines this precision, correct? It's not an AMD-specific thing? > Both are used as encoding functi

Re: [V7 29/45] drm/colorop: Add PQ 125 EOTF and its inverse

2025-01-15 Thread Simon Ser
Is this 125 magic number something we can expect other hardware to implement as well? Could AMD use the HDR multiplier or another block to behave as if the multiplier didn't exist? Note, I am no HDR expert. Maybe others have a better idea whether this makes sense or not.

Re: [V7 23/45] drm/amd/display: Ignore deprecated props when plane_color_pipeline set

2025-01-14 Thread Simon Ser
Is this "ignore" something we could do at the core DRM level, instead of doing it in all drivers? e.g. by silently ignoring user-space requests to set the property? It sounds like this codepath still resets the colorspace to sRGB, which is later overwritten by colorops pulled in the atomic state a

Re: [V7 22/45] drm/colorop: define a new macro for_each_new_colorop_in_state

2025-01-14 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [V7 13/45] drm/colorop: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE

2025-01-13 Thread Simon Ser
> v4: > - Don't block setting of COLOR_RANGE and COLOR_ENCODING >when client cap is set Can you remind me why these should not be blocked? We should also add doc comments in the color_range and color_encoding fields, to document that drivers should ignore these fields when the cap is set.

Re: [V7 16/45] drm/colorop: Add 3x4 CTM type

2025-01-13 Thread Simon Ser
Two nits below, regardless: Reviewed-by: Simon Ser > +static int drm_colorop_create_data_prop(struct drm_device *dev, struct > drm_colorop *colorop) > +{ > + struct drm_property *prop; > + > + /* data */ > + prop = drm_property_create(dev,

Re: [V7 12/45] drm/plane: Add COLOR PIPELINE property

2025-01-13 Thread Simon Ser
> +int > +drm_atomic_add_affected_colorops(struct drm_atomic_state *state, > + struct drm_plane *plane) > +{ > + struct drm_colorop *colorop; > + struct drm_colorop_state *colorop_state; > + > + WARN_ON(!drm_atomic_get_new_plane_state(state, plane)); > + > +

Re: [V7 11/45] drm/colorop: Add atomic state print for drm_colorop

2025-01-13 Thread Simon Ser
> +static void drm_atomic_colorop_print_state(struct drm_printer *p, > + const struct drm_colorop_state *state) > +{ > + struct drm_colorop *colorop = state->colorop; > + > + drm_printf(p, "colorop[%u]:\n", colorop->base.id); > + drm_printf(p, "\ttype=%s\n", drm_get_colorop_

Re: [V7 10/45] drm/colorop: Add NEXT property

2025-01-13 Thread Simon Ser
> +void drm_colorop_set_next_property(struct drm_colorop *colorop, struct > drm_colorop *next) > +{ > + if (!colorop->next_property) > + return; Why is this early return necessary? Shouldn't this field be always populated? Even if that's not the case, I don't think silently ignor

Re: [V7 09/45] drm/colorop: Add BYPASS property

2025-01-13 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [V7 08/45] Documentation/gpu: document drm_colorop

2025-01-13 Thread Simon Ser
This patch should probably come after all patches introducing the properties referenced in the docs, e.g. NEXT and COLOR_PIPELINE. Probably after "[13/45] drm/colorop: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE"? > +/** > + * DOC: overview > + * > + * A colorop represents a single color operati

Re: [V7 07/45] drm/colorop: Add 1D Curve subtype

2025-01-13 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [V7 06/45] drm/colorop: Add TYPE property

2025-01-13 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [V7 05/45] drm/colorop: Introduce new drm_colorop mode object

2025-01-13 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH 2/2] drm: remove driver date from struct drm_driver and all drivers

2024-10-25 Thread Simon Ser
Acked-by: Simon Ser

Re: [PATCH 2/2] drm/doc: Document that userspace should utilize CRTCs bottom up

2024-10-15 Thread Simon Ser
On Tuesday, August 20th, 2024 at 22:27, Simon Ser wrote: > Sorry for the huge delay. Generally this looks good but maybe we > could explain a bit more what "bottom up" means exactly since it > may not be super obvious. > > Maybe something among these lines? > >

Re: [RFC PATCH] drm/prime: introduce DRM_PRIME_FD_TO_HANDLE_NO_MOVE

2024-10-15 Thread Simon Ser
On Tuesday, October 15th, 2024 at 12:47, Michel Dänzer wrote: > On 2024-10-13 15:34, Simon Ser wrote: > > > This is a flag to opt-out of the automagic buffer migration to > > system memory when importing a DMA-BUF. > > > > In multi-GPU scenarii, a Waylan

Re: [PATCH v6 42/44] drm/colorop: Add 3D LUT supports to color pipeline

2024-10-13 Thread Simon Ser
On Thursday, October 3rd, 2024 at 22:01, Harry Wentland wrote: > From: Alex Hung > > It is to be used to enable HDR by allowing userpace to create and pass > 3D LUTs to kernel and hardware. > > 1. new drm_colorop_type: DRM_COLOROP_3D_LUT. > 2. 3D LUT modes define hardware capabilities to user

Re: [PATCH v6 05/44] drm/colorop: Introduce new drm_colorop mode object

2024-10-13 Thread Simon Ser
On Sunday, October 13th, 2024 at 17:19, Simon Ser wrote: > Would be nice to have user-space uAPI docs for the colorop properties. > Just like we have for other KMS object types: > https://dri.freedesktop.org/docs/drm/gpu/drm-kms.html#standard-connector-properties Ah, I suppose s

Re: [PATCH v6 05/44] drm/colorop: Introduce new drm_colorop mode object

2024-10-13 Thread Simon Ser
Would be nice to have user-space uAPI docs for the colorop properties. Just like we have for other KMS object types: https://dri.freedesktop.org/docs/drm/gpu/drm-kms.html#standard-connector-properties Internal kernel docs aren't great for user-space developers, because user-space developers have n

Re: [PATCH v6 13/44] drm/colorop: Add NEXT to colorop state print

2024-10-13 Thread Simon Ser
I think this can be folded into "drm/colorop: Add atomic state print for drm_colorop".

Re: [PATCH v6 16/44] drm/colorop: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE

2024-10-13 Thread Simon Ser
Shouldn't this patch come before the others, otherwise we're exposing unconditionally color OP uAPI to user-space in-between the first patch and this one? Usually we try to not have a broken kernel in intermediate commits. It's important for bisecting.

[RFC PATCH] drm/prime: introduce DRM_PRIME_FD_TO_HANDLE_NO_MOVE

2024-10-13 Thread Simon Ser
API addition make sense to you? If so, do you see a better way to plumb it in the DMA-BUF framework? Signed-off-by: Simon Ser Cc: Sumit Semwal Cc: Christian König Cc: Daniel Stone Cc: Victoria Brekenfeld Cc: Michel Dänzer Cc: Xaver Hugl Cc: Simona Vetter Cc: Austin Shafer

Re: AMD GFX12 modifiers

2024-08-24 Thread Simon Ser
Oh well, if AMD modifiers are documented via "read Mesa source code", then I'll just leave everything as-is and libdrm/drm_info/drmdb will just print "who knows" instead of something actually useful when hitting such modifiers. Sorry, I have no more free time to donate here.

Re: [PATCH 2/2] drm/doc: Document that userspace should utilize CRTCs bottom up

2024-08-20 Thread Simon Ser
Sorry for the huge delay. Generally this looks good but maybe we could explain a bit more what "bottom up" means exactly since it may not be super obvious. Maybe something among these lines? Bottom up means that the first CRTCs in the array should be used first. For instance, if the drive

[PATCH v2] drm/atomic: allow no-op FB_ID updates for async flips

2024-07-31 Thread Simon Ser
y for FB_ID on the primary plane (instead of skipping for FB_ID on any plane). Fixes: 0e26cc72c71c ("drm: Refuse to async flip with atomic prop changes") Signed-off-by: Simon Ser Reviewed-by: André Almeida Tested-by: Xaver Hugl Cc: Alex Deucher Cc: Christian König Cc: Michel Dänzer Cc

Re: [PATCH v2 2/2] drm/atomic: Allow userspace to use damage clips with async flips

2024-07-31 Thread Simon Ser
I've pushed both patches to drm-misc-fixes, thanks! I've added a Fixes trailer accordingly. I'll rebase my patch on top of these two.

Re: AMD GFX12 modifiers

2024-07-04 Thread Simon Ser
the gfx12 modifiers that Mesa exposes. The modifier u64 bit layout is not supposed to be "Mesa-specific". It's shared by multiple userspace components. It needs to be defined properly in drm_fourcc.h. Please, can you read my questions and answer them? > From: Simon Ser > Sent

Re: [PATCH v2 2/2] drm/atomic: Allow userspace to use damage clips with async flips

2024-07-02 Thread Simon Ser
Looks good to me as well, thank you! Reviewed-by: Simon Ser

Re: AMD GFX12 modifiers

2024-07-02 Thread Simon Ser
and easy to get wrong. > From: Alex Deucher > Sent: July 1, 2024 13:09 > To: Simon Ser ; Olsak, Marek > Cc: Pillai, Aurabindo ; DRI Development > ; Siqueira, Rodrigo > ; Deucher, Alexander ; > Bas Nieuwenhuizen > Subject: Re: AMD GFX12 modifiers > > + Marek &

AMD GFX12 modifiers

2024-06-29 Thread Simon Ser
Hi all! In 7ceb94e87bff ("drm/amd: Add gfx12 swizzle mode defs"), some definitions were added for GFX12 modifiers. However I'm not quite sure I understand how these work. Tile values seem to not be in the same namespace as GFX9 through GFX11, is that correct? In other words, can GFX9 ~ GFX11 modi

Re: [PATCH 1/1] drm/atomic: Allow userspace to use explicit sync with atomic async flips

2024-06-29 Thread Simon Ser
BTW, should we allow OUT_FENCE_PTR as well? Would that work as expected with async flips?

Re: [PATCH 1/1] drm/atomic: Allow userspace to use explicit sync with atomic async flips

2024-06-29 Thread Simon Ser
you mind sending a patch for FB_DAMAGE_CLIPS as well? Reviewed-by: Simon Ser

[PATCH] drm/atomic: allow no-op FB_ID updates for async flips

2024-06-29 Thread Simon Ser
y for FB_ID on the primary plane (instead of skipping for FB_ID on any plane). Fixes: 0e26cc72c71c ("drm: Refuse to async flip with atomic prop changes") Signed-off-by: Simon Ser Cc: André Almeida Cc: Alex Deucher Cc: Christian König Cc: Michel Dänzer Cc: Ville Syrjälä ---

[ANNOUNCE] libdrm 2.4.122

2024-06-26 Thread Simon Ser
. ci: upgrade debian container to bookworm ci: upgrade FreeBSD VM to 14.1 Nicolas Caramelli (1): Remove libm in libdrm dependencies Simon Ser (2): Sync headers with drm-next build: bump version to 2.4.122 git tag: libdrm-2.4.122 https://dri.freedesktop.org/libdrm/libdrm

Re: UAPI Re: [PATCH 1/3] drm: Add DRM_MODE_TV_MODE_MONOCHROME

2024-05-23 Thread Simon Ser
On Thursday, February 29th, 2024 at 11:52, Daniel Vetter wrote: > I think some weston (or whatever compositor you like) config file support > to set a bunch of "really only way to configure is by hand" output > properties would clear the bar here for me. Because that is a feature I > already men

Re: [PATCH v2] drm/amd/display: Add pixel encoding info to debugfs

2024-05-22 Thread Simon Ser
On Wednesday, May 22nd, 2024 at 15:36, Mario Limonciello wrote: > > To be perfectly honest with you, I haven't given that much though. I > > used the 'bpc' and 'colorspace' property in debugfs, since I could not > > find that information anywhere else. And since I also needed to verify > > the p

Re: [PATCH 0/2] Add support for Panel Power Savings property

2024-05-21 Thread Simon Ser
On Tuesday, May 21st, 2024 at 19:27, Leo Li wrote: > I wonder if flags would work better than enums? A compositor can set something > like `REQUIRE_ACCURACY & REQUIRE_LOW_LATENCY`, for example. (FWIW, the KMS uAPI has first-class support for bitfields.)

Re: [PATCH 0/2] Add support for Panel Power Savings property

2024-05-21 Thread Simon Ser
This makes sense to me in general. I like the fact that it's simple and vendor-neutral. Do we want to hardcode "panel" in the name? Are we sure that this will ever only apply to panels? Do we want to use a name which reflects the intent, rather than the mechanism? In other words, something like "

Re: Safety of opening up /dev/dma_heap/* to physically present users (udev uaccess tag) ?

2024-05-16 Thread Simon Ser
On Tuesday, May 14th, 2024 at 22:42, Laurent Pinchart wrote: > My experience on Arm platforms is that the KMS drivers offer allocation > for scanout buffers, not render buffers, and mostly using the dumb > allocator API. If the KMS device can scan out YUV natively, YUV buffer > allocation should

Re: Safety of opening up /dev/dma_heap/* to physically present users (udev uaccess tag) ?

2024-05-13 Thread Simon Ser
On Wednesday, May 8th, 2024 at 17:49, Daniel Vetter wrote: > On Wed, May 08, 2024 at 09:38:33AM +0100, Daniel Stone wrote: > > > On Wed, 8 May 2024 at 09:33, Daniel Vetter dan...@ffwll.ch wrote: > > > > > On Wed, May 08, 2024 at 06:46:53AM +0100, Daniel Stone wrote: > > > > > > > That would ha

Re: [PATCH] drm: use "0" instead of "" for deprecated driver date

2024-05-10 Thread Simon Ser
Sounds good to me. Reviewed-by: Simon Ser

Re: [PATCH] drm/connector: Add \n to message about demoting connector force-probes

2024-05-07 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH] drm: deprecate driver date

2024-04-30 Thread Simon Ser
> > Stop printing the driver date at init, and start returning the empty > string "" as driver date through the DRM_IOCTL_VERSION ioctl. Sounds good to me. Acked-by: Simon Ser BTW, I wonder if the driver version number (major/minor/patch) is useful? Do drivers update it?

Re: [PATCH] drm/uapi: Move drm_color_ctm_3x4 out from drm_mode.h

2024-04-24 Thread Simon Ser
On Monday, April 22nd, 2024 at 10:58, Ville Syrjala wrote: > drm_color_ctm_3x4 is some undocumented amgdpu private > uapi and thus has no business being in drm_mode.h. > At least move it to some amdgpu specific header, albeit > with the wrong namespace as maybe something somewhere > is using thi

Re: [PATCH] drm/prime: Unbreak virtgpu dma-buf export

2024-03-28 Thread Simon Ser
On Thursday, March 28th, 2024 at 19:47, Rob Clark wrote: > any chance I could talk you into pushing to drm-misc-fixes? Oh sorry, I thought you had access… Pushed with a minor edit to remove unnecessary parentheses to make checkpatch happy!

Re: [PATCH] drm/prime: Unbreak virtgpu dma-buf export

2024-03-26 Thread Simon Ser
Makes sense to me! Reviewed-by: Simon Ser

Re: Handling pageflip timeouts

2024-03-20 Thread Simon Ser
Note, the kernel already sends synthetic page-flip events when a CRTC goes from on → off. I think it would make sense to do the same for all pending page-flips before the device is destroyed in the kernel.

Re: [RFC PATCH v4 10/42] drm/colorop: Add TYPE property

2024-03-12 Thread Simon Ser
On Tuesday, March 12th, 2024 at 16:02, Pekka Paalanen wrote: > This list here is the list of all values the enum could take, right? > Should it not be just the one value it's going to have? It'll never > change, and it can never be changed. Listing all possible values is how other properties be

RE: [RFC 0/5] Introduce drm sharpening property

2024-03-04 Thread Simon Ser
On Monday, March 4th, 2024 at 15:04, Garg, Nemesa wrote: > This is generic as sharpness effect is applied post blending. Depending > on the color gamut, pixel format and other inputs the image gets > blended and once we get blended output it can be sharpened based on > strength value provided by

Re: [PATCH] drm/fourcc: Add RGB161616 and BGR161616 formats

2024-03-03 Thread Simon Ser
Reviewed-by: Simon Ser

Re: UAPI Re: [PATCH 1/3] drm: Add DRM_MODE_TV_MODE_MONOCHROME

2024-02-28 Thread Simon Ser
On Wednesday, February 28th, 2024 at 17:14, Maxime Ripard wrote: > > I don't know what the rules were 8 years ago, but the current uAPI rules > > are what they are, and a new enum entry is new uAPI. > > TBF, and even if the wayland compositors support is missing, this > property is perfectly us

Re: [PATCH v2 1/2] drm: Introduce plane SIZE_HINTS property

2024-02-28 Thread Simon Ser
ical hardware (Pekka) > v4: Update the docs to indicate the list is "in order of preference" > Add a a link to the mutter MR > > Cc: Simon Ser > Cc: Jonas Ådahl > Cc: Daniel Stone > Cc: Sameer Lattannavar > Cc: Sebastian Wick > Acked-by: Harry Wen

Re: UAPI Re: [PATCH 1/3] drm: Add DRM_MODE_TV_MODE_MONOCHROME

2024-02-27 Thread Simon Ser
On Monday, February 26th, 2024 at 18:23, Dave Stevenson wrote: > You want the commit text for a patch adding a new enum to state that > the whole property isn't expected to be used through the UAPI? OK, I > can roll a v2 if that is your desire. By definition, anything new exposed by the kernel

Re: [PATCH RESEND v2] drm/syncobj: handle NULL fence in syncobj_eventfd_entry_func

2024-02-22 Thread Simon Ser
Reviewed-by: Simon Ser Pushed to drm-misc-fixes with two minor edits to make scripts/checkpatch.pl happy (commit reference cut off a final dot, and comment needs "*/" on its own line).

  1   2   3   4   5   6   7   8   9   10   >