Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp28419imm; Fri, 31 Aug 2018 16:03:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYufxu0QRktAOq1aHTBu1IsehDY1QhjiJoMuH8exueF9RmbLwQnp/c9WTt7OR+CdY8Q2VgM X-Received: by 2002:a65:490e:: with SMTP id p14-v6mr16196461pgs.437.1535756606299; Fri, 31 Aug 2018 16:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535756606; cv=none; d=google.com; s=arc-20160816; b=fBn1408gLPH7FVFFqaMkcHEr2bjeNEQJnz725toDdZoBZyJXe37EaB9VnuwYZdvja+ NLJNMP9l8xvbfbR1waU7aXw10Xq5SsI7DyzY9w1JJcKtktVdekJ+2D7b1a/mTN5kO55z US5sg16wxQRSWvDrDDfBdz8CQtIZc/Oxs+1JmjOJiGDXQtGrM8X/JPMo6vaqf5Ofxh6l MYSiiYuGHEKp7xGpP3ZQbfeP3a24djHGSuuECIIbm+11Z1HCTlj4P4Pv+C2b7mbolriz A9/KkOJ0XWRY7Kq1r92ioPHAdaeOTTVf7VI3rtTmsQ9L6Puka5P5gfBahTpF9xEpLdsI +oPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=C3E+WeUwt/RvwDJTN2Z+zjLsKMg72sG42xvlCBsvCH4=; b=daQtZvS/ThuAI9Vdxqll3C075KbqTW48OB37FBkyCcqGSYkV/psr6VeaquQioM8Pxz feEbqIHFynF9n9ONO6nUsBBwObPSwTKr+8xUJLU4dIyH/3IRQGSLXAts/WSOJEebq856 FLkNhHM17J+W/T958JdVVThJxu/H04TyTaW9AyhAiiuXL1HB1iDcd5q8nCl4XbmU1LCk Zt+BGjvODit3gcOxWD6Vm6tPu/JOFTnsSjTv1labUgh5dCj2XJwya1jQ0QiH8iJTm+kP S67XLChLdy5wlSrvVbsr0gtrHg8Bl72Axzwf4szqLly8ikcCPG4kCuDZ8gFLG8A95qHW rQtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=UhGcMoz4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11-v6si12029231pln.471.2018.08.31.16.03.11; Fri, 31 Aug 2018 16:03:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=UhGcMoz4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727373AbeIADLH (ORCPT + 99 others); Fri, 31 Aug 2018 23:11:07 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54068 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727125AbeIADLH (ORCPT ); Fri, 31 Aug 2018 23:11:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=C3E+WeUwt/RvwDJTN2Z+zjLsKMg72sG42xvlCBsvCH4=; b=UhGcMoz4n0sFpKgQYh/eWpm32 5pBMhLXXFlnoBfTPVkLdBy3RWIO45d8phoHnnLe7NrYMnCHrJKQkUTNle38yVqNcykNybPXrHkdHL gsEz6iuwbNr08CZEGEkVCgCnO8/bCJOM4ZMLHsPvPVhninaO1D9ULvTTvtddzqqht2ztm0SLK5CDG FvHYTcX9bXG/u41xpyeLen2Ns1qGGb0pak+/cnBX9eliBnRnh6AZ1Gzu9QsU06JjVwxAcKx7201ol VWoUkKjxXQwVO9EiOxZAYUhnB2ck6EAQEIGVKaBe8A1CwmZ+ER42jRK1ab+5fILLSJ1o8bv9XZv74 5aeFvWPfQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvsPg-0004hj-19; Fri, 31 Aug 2018 23:01:12 +0000 Subject: Re: [PATCH v5 03/10] Documentation: hwmon: Add OCC documentation To: Eddie James , linux-kernel@vger.kernel.org Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, jdelvare@suse.com, linux-doc@vger.kernel.org, openbmc@lists.ozlabs.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, mark.rutland@arm.com, linux@roeck-us.net, joel@jms.id.au, benh@kernel.crashing.org References: <1535664761-86018-1-git-send-email-eajames@linux.vnet.ibm.com> <1535664761-86018-4-git-send-email-eajames@linux.vnet.ibm.com> From: Randy Dunlap Message-ID: <4f4ff98e-f2a6-c8b1-2ad1-b16bf4305fdd@infradead.org> Date: Fri, 31 Aug 2018 16:01:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1535664761-86018-4-git-send-email-eajames@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/30/2018 02:32 PM, Eddie James wrote: > Document the hwmon interface for the OCC. > > Signed-off-by: Eddie James Hi, Please see comments below. > --- > Documentation/hwmon/occ | 112 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 112 insertions(+) > create mode 100644 Documentation/hwmon/occ > > diff --git a/Documentation/hwmon/occ b/Documentation/hwmon/occ > new file mode 100644 > index 0000000..adc2fa4 > --- /dev/null > +++ b/Documentation/hwmon/occ > @@ -0,0 +1,112 @@ > +Kernel driver occ-hwmon > +======================= > + > +Supported chips: > + * POWER8 > + * POWER9 > + > +Author: Eddie James > + > +Description > +----------- > + > +This driver supports hardware monitoring for the On-Chip Controller (OCC) > +embedded on POWER processors. The OCC is a device that collects and aggregates > +sensor data from the processor and the system. The OCC can provide the raw > +sensor data as well as perform thermal and power management on the system. > + > +The P8 version of this driver is a client driver of I2C. It may be probed > +manually if an "ibm,p8-occ-hwmon" compatible device is found under the > +appropriate I2C bus node in the device-tree. > + > +The P9 version of this driver is a client driver of the FSI-based OCC driver. > +It will be probed automatically by the FSI-based OCC driver. > + > +Sysfs entries > +------------- > + > +The following attributes are supported. All attributes are read-only unless > +specified. > + > +The OCC sensor ID is an integer that represents the unique identififer of the identifier > +sensor with respect to the OCC. For example, a temperature sensor for the 3rd prefer s/3rd/third/ > +DIMM slot in the system may have a sensor ID of 7. This mapping is unavailable > +to the device driver, which must therefore export the sensor ID as-is. > + > +Some entries are only present with certain OCC sensor versions or only on > +certain OCCs in the system. The version number is not exported to the user > +but can be inferred. [snip] -- ~Randy