Received: by 10.223.164.202 with SMTP id h10csp4028546wrb; Tue, 28 Nov 2017 23:02:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMbK1NHwc9w8E1UBg5QK5KvGXsOYoqjmdaQCWrQ3/y/zBGVYDPXg6GkX8nBjYiV9lbRBpPiX X-Received: by 10.98.76.203 with SMTP id e72mr1955332pfj.91.1511938974206; Tue, 28 Nov 2017 23:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511938974; cv=none; d=google.com; s=arc-20160816; b=uwX8lDJhfy7a0KUq02jVFJZFwbUJxFfLNXt1RSfD/VBCJcFV4FE+uGJVQAjvO2cG2S BHSbnNUnmuNaJi/b00HKLS1cujqih1YcJQKY5lRkc4CPur+YXu7sNnM/7VxL4XC6YOVM +l5lszcG9HfnXMTV0zEVpAO9+yg9kJlrNW6Xb0XjmeyekPa5dz69gZNHK2TbTASVxcJM YmcygekaRNiUCTC6IqFS7AQyVrWeENPZ20BXwOS7EJyhM93fOwsjUh49zfBz4INex/Pm MfuU02t5cX1DvVbRF71Tj4If8Je59JnNCrQRxLa6qaNpQNsT3sv7ssiVYYIInizKCciM 2yEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:from:cc:references:to :subject:arc-authentication-results; bh=lyMBQjh/t6ZQx9q50ELd5P8ttY2t5ZWEpGFQaKbapw8=; b=be82iup5GVqaFl8MT1lXv+H1YI9ShWWDVzN+Y67fiEjiRHjI+G5+EmjToJKymOWWnZ NjtXWKflKBOgATnwU2qFBbdEpAjq0Ggzo+is/cVNjSUOUzVYVE/CBn9YUJ5IrGTS/coN eXtRslk9UKaBnslWNADYyMjYneItBqhNrgMpJsN7+/kKknfHyB8SugwyA6zROKB3dnpU Io7YcOu1fM2v3VbYaVhXCPTSr0i/AveBwd9U8NwLsaPON7qHsARqS3z7/kbRkaVbHm6u u48eAlqpQyG1+ZL3APe32SLC6OgApOZxzeRZtjuXgKphfMFOgvzKgazxTRMvE0zUlGOp NN8w== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si797810pgs.801.2017.11.28.23.02.43; Tue, 28 Nov 2017 23:02:54 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752907AbdK2HBt (ORCPT + 71 others); Wed, 29 Nov 2017 02:01:49 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:51956 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752391AbdK2HBs (ORCPT ); Wed, 29 Nov 2017 02:01:48 -0500 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAT6xOWL117171 for ; Wed, 29 Nov 2017 02:01:47 -0500 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ehnh4x6v3-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 29 Nov 2017 02:01:47 -0500 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 Nov 2017 07:01:46 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 29 Nov 2017 07:01:43 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vAT71hRC49348798; Wed, 29 Nov 2017 07:01:43 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E3BD8A4065; Wed, 29 Nov 2017 06:56:15 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C4686A4051; Wed, 29 Nov 2017 06:56:14 +0000 (GMT) Received: from oc4502181600.ibm.com (unknown [9.124.35.23]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 29 Nov 2017 06:56:14 +0000 (GMT) Subject: Re: [PATCH] powerpc/powernv : Add support to enable sensor groups To: Michael Ellerman , linuxppc-dev@lists.ozlabs.org References: <1511760988-10377-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> <87bmjmzla7.fsf@concordia.ellerman.id.au> Cc: linux-kernel@vger.kernel.org, ego@linux.vnet.ibm.com, akshay.adiga@linux.vnet.ibm.com, svaidy@linux.vnet.ibm.com From: Shilpasri G Bhat Date: Wed, 29 Nov 2017 12:31:41 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <87bmjmzla7.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17112907-0020-0000-0000-000003D1CA11 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17112907-0021-0000-0000-000042673449 Message-Id: <06a771ec-fc79-0515-9166-f2a105eb33d0@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-29_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711290088 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/28/2017 05:07 PM, Michael Ellerman wrote: > Shilpasri G Bhat writes: > >> Adds support to enable/disable a sensor group. This can be used to >> select the sensor groups that needs to be copied to main memory by >> OCC. Sensor groups like power, temperature, current, voltage, >> frequency, utilization can be enabled/disabled at runtime. >> >> Signed-off-by: Shilpasri G Bhat >> --- >> The skiboot patch for the opal call is posted below: >> https://lists.ozlabs.org/pipermail/skiboot/2017-November/009713.html > > Can you remind me why we're doing this with a completely bespoke sysfs > API, rather than using some generic sensors API? > Disabling/Enabling sensor groups is not supported in the current generic sensors API. And also we dont export all type of sensors in HWMON as not all of them are environment sensors (like performance). > And if we must do it that way, please add documentation for the sysfs > file(s) in Documentation/ABI/. > Will do. Thanks and Regards, Shilpa > cheers > From 1585309754659231599@xxx Tue Nov 28 11:39:56 +0000 2017 X-GM-THRID: 1585196486343645272 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread