From: "Kazlauskas, Nicholas" <Nicholas.Kazlauskas@amd.com>
To: "Michel Dänzer" <michel@daenzer.net>,
"Mario Kleiner" <mario.kleiner.de@gmail.com>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/amd/display: Allow faking displays as VRR capable.
Date: Tue, 30 Apr 2019 12:21:58 +0000 [thread overview]
Message-ID: <64cb858c-f97d-67e6-e477-8b3f8e16fda6@amd.com> (raw)
In-Reply-To: <cc0516a8-36ea-55f6-96f1-558df96d5493@daenzer.net>
On 4/30/19 3:44 AM, Michel Dänzer wrote:
> [CAUTION: External Email]
>
> On 2019-04-30 9:37 a.m., Mario Kleiner wrote:
>> Allow to detect any connected display to be marked as
>> VRR capable. This is useful for testing the basics of
>> VRR mode, e.g., scheduling and timestamping, BTR, and
>> transition logic, on non-VRR capable displays, e.g.,
>> to perform IGT test-suit kms_vrr test runs.
>>
>> This fake VRR display mode is enabled by setting the
>> optional module parameter amdgpu.fakevrrdisplay=1.
>>
>> It will try to use VRR range info parsed from EDID on
>> DisplayPort displays which have a compatible EDID,
>> but not compatible DPCD caps for Adaptive Sync. E.g.,
>> NVidia G-Sync compatible displays expose a proper EDID,
>> but not proper DPCD caps.
>>
>> It will use a hard-coded VRR range of 30 Hz - 144 Hz on
>> other displays without suitable EDID, e.g., standard
>> DisplayPort, HDMI, DVI monitors.
>>
>> Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
>>
>> [...]
>>
>> struct amdgpu_mgpu_info mgpu_info = {
>> .mutex = __MUTEX_INITIALIZER(mgpu_info.mutex),
>> @@ -665,6 +666,16 @@ MODULE_PARM_DESC(halt_if_hws_hang, "Halt if HWS hang is detected (0 = off (defau
>> MODULE_PARM_DESC(dcfeaturemask, "all stable DC features enabled (default))");
>> module_param_named(dcfeaturemask, amdgpu_dc_feature_mask, uint, 0444);
>>
>> +/**
>> + * DOC: fakevrrdisplay (int)
>> + * Override detection of VRR displays to mark any display as VRR capable, even
>> + * if it is not. Useful for basic testing of VRR without need to attach such a
>> + * display, e.g., for igt tests.
>> + * Setting 1 enables faking VRR. Default value, 0, does normal detection.
>> + */
>> +module_param_named(fakevrrdisplay, amdgpu_fake_vrr_display, int, 0644);
>> +MODULE_PARM_DESC(fakevrrdisplay, "Detect any display as VRR capable (0 = off (default), 1 = on)");
>
> amdgpu has too many module parameters already; IMHO this kind of niche
> use-case doesn't justify adding yet another one. For the vast majority
> of users, this would just be another knob to break things, resulting in
> support burden for us.
>
> How about e.g. making the vrr_capable property mutable, or adding
> another property for this?
>
>
> --
> Earthling Michel Dänzer | https://www.amd.com
> Libre software enthusiast | Mesa and X developer
>
Since vrr_capable is already an optional property I think making it
mutable could potentially be an option. It would allow for userspace to
be able to disable capability as well that way.
It's a pretty niche usecase though. However, as Michel said, it would
probably just end up being another setting that allows users to break
their own setup.
Nicholas Kazlauskas
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-04-30 12:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-30 7:37 [PATCH] drm/amd/display: Allow faking displays as VRR capable Mario Kleiner
2019-04-30 7:44 ` Michel Dänzer
2019-04-30 12:21 ` Kazlauskas, Nicholas [this message]
[not found] ` <64cb858c-f97d-67e6-e477-8b3f8e16fda6-5C7GfCeVMHo@public.gmane.org>
2019-04-30 19:56 ` Mario Kleiner
[not found] ` <CAEsyxyj5t2CbYOOSEfXnPZ8qrV9O5ZzDGYro1mxb_6+Fn=Q-mA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-05-17 13:06 ` Harry Wentland
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=64cb858c-f97d-67e6-e477-8b3f8e16fda6@amd.com \
--to=nicholas.kazlauskas@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=mario.kleiner.de@gmail.com \
--cc=michel@daenzer.net \
/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