From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jani Nikula Subject: Re: [PATCH] drm/i915: Add a DRM property "psr" Date: Thu, 20 Mar 2014 16:49:30 +0200 Message-ID: <87vbv90vt1.fsf@intel.com> References: <1395172267-9203-1-git-send-email-sivachandra@chromium.org> <20140318130620.07fa8680@jbarnes-desktop> <20140319084438.GM30571@phenom.ffwll.local> <20140319150338.GA27717@strange.amr.corp.intel.com> <87r45xw3a0.fsf@intel.com> <87a9cl2e8w.fsf@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 034F06E0C8 for ; Thu, 20 Mar 2014 07:50:31 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Siva Chandra Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, 20 Mar 2014, Siva Chandra wrote: > On Thu, Mar 20, 2014 at 6:25 AM, Jani Nikula > wrote: >> On Thu, 20 Mar 2014, Siva Chandra wrote: >>> On Thu, Mar 20, 2014 at 3:52 AM, Jani Nikula >>> wrote: >>>> If this is for testing only, and the module parameter does not quite cut >>>> it, please add it to debugfs. That we can pretty much change at will. >>> >>> If I understand correctly, you are suggesting that the on/off knob >>> live in debugfs. So, should the module param in sysfs mirror this >>> debugfs knob? >> >> I guess the simplest thing to move forward would be something to update >> psr state after the module parameter has been changed, although it's >> perhaps a bit clumsy to use. > > Couldn't understand. May be an example to illustrate what you are saying? echo 1 > /sys/module/i915/parameters/enable_psr echo something > sys/kernel/debug/dri/0/i915_edp_psr_update where that debugfs file essentially calls intel_edp_psr_update() on update. I guess it could be i915_edp_psr_enable and echoing there would modify the module parameter and call update. With debugfs I'm not so fussy. Jani. > > Thanks, > Siva Chandra -- Jani Nikula, Intel Open Source Technology Center