From: Jani Nikula <jani.nikula@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915: drop write perm from module params which don't support changing
Date: Fri, 19 Feb 2016 17:34:18 +0200 [thread overview]
Message-ID: <87vb5kvhmt.fsf@intel.com> (raw)
In-Reply-To: <20160216161529.GW32705@phenom.ffwll.local>
On Tue, 16 Feb 2016, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Tue, Feb 16, 2016 at 01:18:12PM +0200, Jani Nikula wrote:
>> We've given write permissions to dynamically change some module
>> parameters through /sys/module/i915/parameters although they only
>> support setting on module load. Fix the permissions.
>>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Pushed both to drm-intel-next-queued, thanks for the review.
BR,
Jani.
>
>> ---
>> drivers/gpu/drm/i915/i915_params.c | 8 ++++----
>> 1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/i915_params.c b/drivers/gpu/drm/i915/i915_params.c
>> index 8b9f36814165..b01245751086 100644
>> --- a/drivers/gpu/drm/i915/i915_params.c
>> +++ b/drivers/gpu/drm/i915/i915_params.c
>> @@ -92,7 +92,7 @@ MODULE_PARM_DESC(enable_fbc,
>> "Enable frame buffer compression for power savings "
>> "(default: -1 (use per-chip default))");
>>
>> -module_param_named_unsafe(lvds_channel_mode, i915.lvds_channel_mode, int, 0600);
>> +module_param_named_unsafe(lvds_channel_mode, i915.lvds_channel_mode, int, 0400);
>> MODULE_PARM_DESC(lvds_channel_mode,
>> "Specify LVDS channel mode "
>> "(0=probe BIOS [default], 1=single-channel, 2=dual-channel)");
>> @@ -102,7 +102,7 @@ MODULE_PARM_DESC(lvds_use_ssc,
>> "Use Spread Spectrum Clock with panels [LVDS/eDP] "
>> "(default: auto from VBT)");
>>
>> -module_param_named_unsafe(vbt_sdvo_panel_type, i915.vbt_sdvo_panel_type, int, 0600);
>> +module_param_named_unsafe(vbt_sdvo_panel_type, i915.vbt_sdvo_panel_type, int, 0400);
>> MODULE_PARM_DESC(vbt_sdvo_panel_type,
>> "Override/Ignore selection of SDVO panel mode in the VBT "
>> "(-2=ignore, -1=auto [default], index in VBT BIOS table)");
>> @@ -130,7 +130,7 @@ module_param_named_unsafe(enable_psr, i915.enable_psr, int, 0600);
>> MODULE_PARM_DESC(enable_psr, "Enable PSR "
>> "(0=disabled [default], 1=enabled - link mode chosen per-platform, 2=force link-standby mode, 3=force link-off mode)");
>>
>> -module_param_named_unsafe(preliminary_hw_support, i915.preliminary_hw_support, int, 0600);
>> +module_param_named_unsafe(preliminary_hw_support, i915.preliminary_hw_support, int, 0400);
>> MODULE_PARM_DESC(preliminary_hw_support,
>> "Enable preliminary hardware support.");
>>
>> @@ -164,7 +164,7 @@ MODULE_PARM_DESC(invert_brightness,
>> "to dri-devel@lists.freedesktop.org, if your machine needs it. "
>> "It will then be included in an upcoming module version.");
>>
>> -module_param_named(disable_display, i915.disable_display, bool, 0600);
>> +module_param_named(disable_display, i915.disable_display, bool, 0400);
>> MODULE_PARM_DESC(disable_display, "Disable display (default: false)");
>>
>> module_param_named_unsafe(disable_vtd_wa, i915.disable_vtd_wa, bool, 0600);
>> --
>> 2.1.4
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2016-02-19 15:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-16 11:18 [PATCH 1/2] drm/i915: drop write perm from module params which don't support changing Jani Nikula
2016-02-16 11:18 ` [PATCH 2/2] drm/i915: drop unused i915.disable_vtd_wa module parameter Jani Nikula
2016-02-16 16:15 ` Daniel Vetter
2016-02-16 12:01 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915: drop write perm from module params which don't support changing Patchwork
2016-02-17 8:57 ` Jani Nikula
2016-02-16 16:15 ` [PATCH 1/2] " Daniel Vetter
2016-02-19 15:34 ` Jani Nikula [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=87vb5kvhmt.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
/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).