Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932107AbbHJHia (ORCPT ); Mon, 10 Aug 2015 03:38:30 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:56699 "EHLO e28smtp03.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753654AbbHJHiX (ORCPT ); Mon, 10 Aug 2015 03:38:23 -0400 X-Helo: d28dlp03.in.ibm.com X-MailFrom: shilpa.bhat@linux.vnet.ibm.com X-RcptTo: linux-pm@vger.kernel.org Message-ID: <55C8534A.5040904@linux.vnet.ibm.com> Date: Mon, 10 Aug 2015 13:01:22 +0530 From: Shilpasri G Bhat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Stewart Smith CC: rjw@rjwysocki.net, joel@jms.id.au, viresh.kumar@linaro.org, linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, shilpasri G Bhat Subject: Re: [PATCH v5 2/6] powerpc/powernv: Add definition of OPAL_MSG_OCC message type References: <1437033863-15864-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> <1437033863-15864-3-git-send-email-shilpa.bhat@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15081007-0009-0000-0000-000006FEC598 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2296 Lines: 52 Hi Stewart, On 08/10/2015 05:53 AM, Stewart Smith wrote: > Shilpasri G Bhat writes: >> Add OPAL_MSG_OCC message definition to opal_message_type to receive >> OCC events like reset, load and throttled. Host performance can be >> affected when OCC is reset or OCC throttles the max Pstate. >> We can register to opal_message_notifier to receive OPAL_MSG_OCC type >> of message and report it to the userspace so as to keep the user >> informed about the reason for a performance drop in workloads. >> >> The reset and load OCC events are notified to kernel when FSP sends >> OCC_RESET and OCC_LOAD commands. Both reset and load messages are >> sent to kernel on successful completion of reset and load operation >> respectively. > > How is this done on OpenPower systems? Explanation involving just what > OPAL does is likely better, rather than explaining in context of FSP, > which Linux has no real knowledge of (OPAL provides all abstraction of > it). > In OpenPower systems, opal will only send OCC throttled event. OCC reset and load messages are not sent to kernel. How about the following git log message? Add OPAL_MSG_OCC message definition to opal_message_type to receive OCC events like reset, load and throttled. Host performance can be affected when OCC is reset or OCC throttles the max Pstate. We can register to opal_message_notifier to receive OPAL_MSG_OCC type of message and report it to the userspace so as to keep the user informed about the reason for a performance drop in workloads. Opal will send reset and load events to kernel on successful completion of reset and load operation of OCC. During this duration the cpu frequency will be throttled until OCC is started. Opal will send a throttle message during the OCC reset-cycle to indicate that OCC is active. Opal will send throttle message to kernel when OCC is active to indicate that the Pmax of the chip is reduced. The chip_id and throttle reason for reducing Pmax is queued along with the message. Thanks and Regards, Shilpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/