All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Luca Coelho <luca@coelho.fi>,
	"Hogander, Jouni" <jouni.hogander@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH v2 24/24] drm/i915/display: Use same permissions for enable_sagv as for rest
Date: Tue, 24 Oct 2023 15:15:27 +0300	[thread overview]
Message-ID: <87jzrc9py8.fsf@intel.com> (raw)
In-Reply-To: <639a31dea0e79b90735d14d4b40ef1531b9cd7f9.camel@coelho.fi>

On Tue, 24 Oct 2023, Luca Coelho <luca@coelho.fi> wrote:
> On Tue, 2023-10-24 at 08:51 +0000, Hogander, Jouni wrote:
>> On Mon, 2023-10-23 at 17:06 +0300, Luca Coelho wrote:
>> > On Mon, 2023-10-16 at 14:16 +0300, Jouni Högander wrote:
>> > > Generally we have writable device parameters in debugfs. No need
>> > > to allow writing module parameters.
>> > > 
>> > > Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
>> > > ---
>> > >  drivers/gpu/drm/i915/display/intel_display_params.c | 2 +-
>> > >  1 file changed, 1 insertion(+), 1 deletion(-)
>> > > 
>> > > diff --git a/drivers/gpu/drm/i915/display/intel_display_params.c
>> > > b/drivers/gpu/drm/i915/display/intel_display_params.c
>> > > index 8e6353c1c25e..077f2dee2975 100644
>> > > --- a/drivers/gpu/drm/i915/display/intel_display_params.c
>> > > +++ b/drivers/gpu/drm/i915/display/intel_display_params.c
>> > > @@ -50,7 +50,7 @@ intel_display_param_named_unsafe(enable_dc, int,
>> > > 0400,
>> > >  intel_display_param_named_unsafe(enable_dpt, bool, 0400,
>> > >         "Enable display page table (DPT) (default: true)");
>> > >  
>> > > -intel_display_param_named_unsafe(enable_sagv, bool, 0600,
>> > > +intel_display_param_named_unsafe(enable_sagv, bool, 0400,
>> > >         "Enable system agent voltage/frequency scaling (SAGV)
>> > > (default: true)");
>> > >  
>> > >  intel_display_param_named_unsafe(disable_power_well, int, 0400,
>> > 
>> > This, as well as other similar changes throughout this series, could
>> > be
>> > controversial, since it's a userspace API change of sorts.  It used
>> > to
>> > be possible to write but it won't be anymore.  But, as we discussed
>> > offline, it shouldn't be problem, because probably nobody is writing
>> > to
>> > them, and most likely doing so wouldn't have the expected result,
>> > since
>> > the device copies were not getting updated.
>> > 
>> > Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
>> 
>> Thank you Luca. I actually moved this change to patch 11 due to your
>> comment there and added your rb tag there. I was planning to drop this
>> patch. Are you fine with this?
>
> Yes, this is fine.  I'll review your cahnges in v3 and give the missing
> r-b tags there, if applicable.

I think this change is good and frankly needed. It's confusing to be
able to modify the module param without it having any effect.

These are for debug, the param is designated "unsafe", and for these I
don't really care if someone complains they can't write to the file
anymore.

BR,
Jani.

>
> --
> Cheers,
> Luca.

-- 
Jani Nikula, Intel

  reply	other threads:[~2023-10-24 12:15 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-16 11:16 [Intel-gfx] [PATCH v2 00/24] Framework for display parameters Jouni Högander
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 01/24] drm/i915/display: Add framework to add parameters specific to display Jouni Högander
2023-10-22 17:45   ` Luca Coelho
2023-10-23  7:50     ` Hogander, Jouni
2023-10-23  8:14       ` Luca Coelho
2023-10-23  8:16         ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 02/24] drm/i915/display: Dump also display parameters Jouni Högander
2023-10-23  9:10   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 03/24] drm/i915/display: Move enable_fbc module parameter under display Jouni Högander
2023-10-23 10:53   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 04/24] drm/i915/display: Move psr related module parameters " Jouni Högander
2023-10-23 11:02   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 05/24] drm/i915/display: Move vbt_firmware module parameter " Jouni Högander
2023-10-23 12:14   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 06/24] drm/i915/display: Move lvds_channel_mode " Jouni Högander
2023-10-23 13:13   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 07/24] drm/i915/display: Move panel_use_ssc " Jouni Högander
2023-10-23 13:15   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 08/24] drm/i915/display: Move vbt_sdvo_panel_type " Jouni Högander
2023-10-23 13:17   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 09/24] drm/i915/display: Move enable_dc " Jouni Högander
2023-10-23 13:18   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 10/24] drm/i915/display: Move enable_dpt " Jouni Högander
2023-10-23 13:19   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 11/24] drm/i915/display: Move enable_sagv " Jouni Högander
2023-10-23 13:22   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 12/24] drm/i915/display: Move disable_power_well " Jouni Högander
2023-10-23 13:23   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 13/24] drm/i915/display: Move enable_ips " Jouni Högander
2023-10-23 13:25   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 14/24] drm/i915/display: Move invert_brightness " Jouni Högander
2023-10-23 13:30   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 15/24] drm/i915/display: Move edp_vswing " Jouni Högander
2023-10-23 13:46   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 16/24] drm/i915/display: Move enable_dpcd_backlightmodule " Jouni Högander
2023-10-23 13:47   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 17/24] drm/i915/display: Move load_detect_test " Jouni Högander
2023-10-23 13:49   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 18/24] drm/i915/display: Move force_reset_modeset_test " Jouni Högander
2023-10-23 13:50   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 19/24] drm/i915/display: Move disable_display " Jouni Högander
2023-10-23 13:51   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 20/24] drm/i915/display: Use device parameters instead of module in I915_STATE_WARN Jouni Högander
2023-10-23 13:57   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 21/24] drm/i915/display: Move verbose_state_checks under display Jouni Högander
2023-10-23 14:00   ` Luca Coelho
2023-10-24  8:22     ` Hogander, Jouni
2023-10-24 11:31       ` Luca Coelho
2023-10-24 12:12         ` Jani Nikula
2023-10-24 12:19           ` Hogander, Jouni
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 22/24] drm/i915/display: Move nuclear_pageflip " Jouni Högander
2023-10-23 14:01   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 23/24] drm/i915/display: Move enable_dp_mst " Jouni Högander
2023-10-23 14:01   ` Luca Coelho
2023-10-16 11:16 ` [Intel-gfx] [PATCH v2 24/24] drm/i915/display: Use same permissions for enable_sagv as for rest Jouni Högander
2023-10-23 14:06   ` Luca Coelho
2023-10-24  8:51     ` Hogander, Jouni
2023-10-24 11:33       ` Luca Coelho
2023-10-24 12:15         ` Jani Nikula [this message]
2023-10-24 12:50           ` Luca Coelho
2023-10-16 11:42 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Framework for display parameters (rev3) Patchwork
2023-10-16 11:42 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-10-16 11:54 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-10-16 14:24 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork

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=87jzrc9py8.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jouni.hogander@intel.com \
    --cc=luca@coelho.fi \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.