All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eduardo Valentin <edubezval@gmail.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Rui Zhang <rui.zhang@intel.com>,
	Linux PM <linux-pm@vger.kernel.org>, Len Brown <lenb@kernel.org>,
	ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/1] drivers: acpi: add CPU id to cooling device type of processor driver
Date: Wed, 4 May 2016 20:06:46 -0700	[thread overview]
Message-ID: <20160505030645.GA2158@localhost.localdomain> (raw)
In-Reply-To: <2680812.8DqCpBTJz8@vostro.rjw.lan>

On Thu, May 05, 2016 at 12:00:57AM +0200, Rafael J. Wysocki wrote:
> On Wednesday, May 04, 2016 02:54:32 PM Srinivas Pandruvada wrote:
> > On Wed, 2016-05-04 at 23:49 +0200, Rafael J. Wysocki wrote:
> > > On Tue, May 3, 2016 at 7:04 AM, Eduardo Valentin <edubezval@gmail.com
> > > > wrote:
> > > > 
> > > > Currently, in an ACPI based system, the processor driver registers
> > > > one cooling device per processor. However, the cooling device type
> > > > is the same for each processor. For example, on a system with four
> > > > processors, the sysfs reading of each cooling device would look
> > > > like:
> > > > ebv@besouro ~ $ cat /sys/class/thermal/cooling_device*/type
> > > > Processor
> > > > Processor
> > > > Processor
> > > > Processor
> > > > 
> > > > which turns out to fine. But, some parts of the thermal code may
> > > > use
> > > > type to identify participating devices in a thermal zone. Besides,
> > > > adding notifications to user space may cause the production of
> > > > messages
> > > > that may confuse the listener.
> > > > 
> > > > For this reason, this patch adds the processor ID cooling device
> > > > type.
> > > > After this change, the cooling device listing in the same previous
> > > > example
> > > > would look like this:
> > > > ebv@besouro ~ $ cat /sys/class/thermal/cooling_device*/type
> > > > Processor.0
> > > > Processor.1
> > > > Processor.2
> > > > Processor.3
> > > > 
> > > > allowing an easier identification of cooling device target.
> > > 
> > > Is it not going to confuse any user space scripts or similar?
> >
> > Yes, it will.
> 
> In that case the patch cannot be applied.

In fact, we shall never brake userspace. 

Srinivas, could you please elaborate a bit more on how this would break
userspace? How different would it be having an extra id? Are you
expecting "Processor" string in daemon?

BR,

> 
> Thanks,
> Rafael
> 

  reply	other threads:[~2016-05-05  3:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-03  5:04 [PATCH 1/1] drivers: acpi: add CPU id to cooling device type of processor driver Eduardo Valentin
2016-05-04 21:49 ` Rafael J. Wysocki
2016-05-04 21:54   ` Srinivas Pandruvada
2016-05-04 22:00     ` Rafael J. Wysocki
2016-05-05  3:06       ` Eduardo Valentin [this message]
2016-05-05 18:27         ` Srinivas Pandruvada

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=20160505030645.GA2158@localhost.localdomain \
    --to=edubezval@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=rui.zhang@intel.com \
    --cc=srinivas.pandruvada@linux.intel.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 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.