netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: "Skidmore, Donald C" <donald.c.skidmore@intel.com>
Cc: Michal Miroslaw <mirqus@gmail.com>,
	"Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"gospo@redhat.com" <gospo@redhat.com>,
	"sassmann@redhat.com" <sassmann@redhat.com>,
	"Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@intel.com>
Subject: RE: [net-next 8/9] ixgbe: add interface to export thermal data
Date: Thu, 5 Jan 2012 18:36:24 +0000	[thread overview]
Message-ID: <1325788584.3764.28.camel@bwh-desktop> (raw)
In-Reply-To: <F6FB0E698C9B3143BDF729DF22286646025656@ORSMSX102.amr.corp.intel.com>

On Thu, 2012-01-05 at 17:53 +0000, Skidmore, Donald C wrote:
> >-----Original Message-----
> >From: Michał Mirosław [mailto:mirqus@gmail.com]
> >Sent: Friday, December 23, 2011 9:59 AM
> >To: Kirsher, Jeffrey T
> >Cc: davem@davemloft.net; Skidmore, Donald C; netdev@vger.kernel.org;
> >gospo@redhat.com; sassmann@redhat.com; Waskiewicz Jr, Peter P
> >Subject: Re: [net-next 8/9] ixgbe: add interface to export thermal data
> >
> >2011/12/23 Jeff Kirsher <jeffrey.t.kirsher@intel.com>:
> >> From: Don Skidmore <donald.c.skidmore@intel.com>
> >>
> >> Some of our adapters have thermal data available, this patch exports
> >this
> >> data via a read-only sysfs interface.
> >
> >Just curious: can't this use the hwmon subsystem to be consistent with
> >other system monitoring devices?
> >
> >Best Regards,
> >Michał Mirosław
> 
> Sorry about the slow response, first vacation then I hadn't heard of
> hwmon and wanted to look into it a bit.  I can see why you mentioned
> it as it looks to be close to what I'm trying to do here.  However I
> don't think it quite matches.  I'll list my thoughts below:
> 
> - We are trying to export a large set of data that our customers are
> requesting.  The thermals were just the first patch and the other data
> items wouldn't really fit well in the hwmon (i.e. FW version,
> secondary MAC address).

Nevertheless, there is a specific way that the thermal information
should be exposed.

> - Didn't seem like we had much data to offer hwmon anyway just sensor
> temp, caution threshold, maxop threshold and location of sensor.  All
> the other data (which you haven't seen yet so couldn't have known :)
> wasn't related.
> - The thermal data we do have is defined in our FW and could change
> (number of sensors) based on that FW.  I wasn't sure whether that
> would be an issue for hwmon.

I have the same issue with the current Solarflare controllers, as the
driver has no static information about specific boards.  It is possible
to generate hwmon attributes dynamically though I've not yet got round
to completing my implementation of this.  (Since firmware is also
responsible for thermal shutdown, handling any of this stuff in the
driver has been a low priority.)

> - I went with sysfs based on a conversation with Peter Waskiewicz.  He
> mentioned that there was discussion on how to export generic data at
> netconf and sysfs was brought up as the best choice. 

Sensors are also exposed through sysfs, but following a specific naming
convention and using a separate hwmon device.

(Oddly, though, the sensor attributes are must be attached to the hwmon
device's parent - which will be your PCI device.  So you may not need to
make many changes.)

Ben.

> Thanks for reviewing the patch and bring up this question. :)
> -Don Skidmore <donald.c.skidmore@intel.com>

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

  reply	other threads:[~2012-01-05 18:36 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-23  9:09 [net-next 0/9][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
2011-12-23  9:09 ` [net-next 1/9] ixgbevf: Fix register defines to correctly handle complex expressions Jeff Kirsher
2011-12-23  9:09 ` [net-next 2/9] igb: Add flow control advertising to ethtool setting Jeff Kirsher
2011-12-23  9:09 ` [net-next 3/9] ixgbe: fix incorrect PHY register reads Jeff Kirsher
2011-12-23  9:09 ` [net-next 4/9] ixgbe: fix typo's Jeff Kirsher
2011-12-23  9:09 ` [net-next 5/9] ixgbe: add write flush in ixgbe_clock_out_i2c_byte() Jeff Kirsher
2011-12-23  9:09 ` [net-next 6/9] ixgbe: add support for new 82599 device id Jeff Kirsher
2011-12-23  9:09 ` [net-next 7/9] ixgbe: add support functions for gathering thermal data sensor Jeff Kirsher
2011-12-23 13:01   ` Francois Romieu
2011-12-23 18:27     ` Skidmore, Donald C
2011-12-23 20:43       ` Francois Romieu
2011-12-23  9:09 ` [net-next 8/9] ixgbe: add interface to export thermal data Jeff Kirsher
2011-12-23 13:01   ` Francois Romieu
2011-12-23 18:29     ` Skidmore, Donald C
2011-12-23 20:45       ` Francois Romieu
2011-12-23 17:58   ` Michał Mirosław
2011-12-24 10:22     ` Ben Hutchings
2012-01-05 17:53     ` Skidmore, Donald C
2012-01-05 18:36       ` Ben Hutchings [this message]
2012-01-05 22:57         ` Skidmore, Donald C
2012-01-05 23:50           ` Michał Mirosław
2012-01-06 17:55             ` Waskiewicz Jr, Peter P
2012-01-06 18:09               ` Ben Hutchings
2012-01-06 18:20                 ` Waskiewicz Jr, Peter P
2012-01-06 18:25                   ` Ben Hutchings
2012-01-09 18:08                     ` Waskiewicz Jr, Peter P
2012-01-09 18:49                       ` Ben Hutchings
2012-01-06  3:03     ` Stephen Hemminger
2011-12-23  9:09 ` [net-next 9/9] ixgbe: add support for new 82599 device Jeff Kirsher

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=1325788584.3764.28.camel@bwh-desktop \
    --to=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=donald.c.skidmore@intel.com \
    --cc=gospo@redhat.com \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=mirqus@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=peter.p.waskiewicz.jr@intel.com \
    --cc=sassmann@redhat.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 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).