dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: "Maíra Canal" <mcanal@igalia.com>
To: Simon Ser <contact@emersion.fr>, Melissa Wen <mwen@igalia.com>
Cc: Haneen Mohammed <hamohammed.sa@gmail.com>,
	Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>,
	dri-devel@lists.freedesktop.org,
	Igor Matheus Andrade Torrente <igormtorrente@gmail.com>
Subject: Re: [PATCH v2] drm/vkms: add module parameter to set background color
Date: Tue, 11 Apr 2023 09:18:55 -0300	[thread overview]
Message-ID: <93ce81f8-3f64-e7b9-f6f1-f0cdc3cf6c6c@igalia.com> (raw)
In-Reply-To: <86KSXjLyx61ozmy_5grAFQ5XGxnysnSnGRCD6FQsgzrUc2xnXQpv06rcPu9FWkXNo7PLu7dEMTmsX9uWVvEMSKYW62ELEjloEfHGCZUqob8=@emersion.fr>

On 4/11/23 05:58, Simon Ser wrote:
> Hi,
> 
> On Monday, April 10th, 2023 at 19:50, Melissa Wen <mwen@igalia.com> wrote:
> 
>> On 04/10, Simon Ser wrote:
>>
>>> I think this should be a KMS property instead of a module parameter.
>>> Is there a reason why this patch uses a module parameter? It breaks
>>> user-space expectations.
>>
>> a KMS property is what we have on vkms TODO [1] and the module parameter
>> was Maíra's first step to open a discussion for this property [2].
>> AFAIK, we would need to create the KMS property first, but it seems
>> there isn't an userspace case/need to support this API change.
>> Do you know any valid use cases to support a bkg color property?
> 
> There have been previous attempts for msm [1] and i915 [2].
> 
>  From user-space PoV, a KMS property would be useful, for instance to
> render single color background images. I can type some user-space code
> if that helps.

I believe that, if we have some user-space code, we can push this as a
KMS property. If you can provide some user-space code, I can work on
the KMS property to back the use case and we can move this forward.

> 
> If this is a module parameter instead of a KMS property, what purpose
> does this achieve? What is the use-case? Just trying to understand the
> motivation here.
> 

This was a attempt to start the discussion about the background color
property. Without the user-space use case, we cannot move this forward
and as I didn't have a user-space use case, I decided to implement it as
a module parameter.

Best Regards,
- Maíra Canal

> Thanks,
> 
> Simon
> 
> [1]: https://lore.kernel.org/dri-devel/20221028225952.160-1-quic_jesszhan@quicinc.com/
> [2]: https://lore.kernel.org/dri-devel/20190930224707.14904-1-matthew.d.roper@intel.com/

      parent reply	other threads:[~2023-04-11 12:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-10 12:54 [PATCH v2] drm/vkms: add module parameter to set background color Maíra Canal
2023-04-10 16:56 ` Simon Ser
2023-04-10 17:50   ` Melissa Wen
2023-04-11  8:58     ` Simon Ser
2023-04-11 10:36       ` Daniel Vetter
2023-04-11 12:18       ` Maíra Canal [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=93ce81f8-3f64-e7b9-f6f1-f0cdc3cf6c6c@igalia.com \
    --to=mcanal@igalia.com \
    --cc=contact@emersion.fr \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hamohammed.sa@gmail.com \
    --cc=igormtorrente@gmail.com \
    --cc=mwen@igalia.com \
    --cc=rodrigosiqueiramelo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).