Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1455356pxb; Tue, 8 Feb 2022 18:39:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiAq02vBxkn8TtOZSQRVUJ3NLc2kafYEDKfZ3lp8StE8OLQzgl+UFbWBEEo1G5Q8dy1UFQ X-Received: by 2002:a05:6402:1a31:: with SMTP id be17mr313870edb.360.1644374366824; Tue, 08 Feb 2022 18:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644374366; cv=none; d=google.com; s=arc-20160816; b=LlqU9K1amN7IMZ94LapvDcmBQAGciUu7bZDnvS3+AUW7Qs07Mi0CpM5PnaZqXpBZbA Mchpc4vwPFbG4DNQuGs0+uDXUrI+v8bYYvV5Jy4dUabbowShNaFa9/vn9aw9S4Uap99P FK+Xjg78IV6gNcRwqVc92QYtJWHz82JE4T1Ffuuy3Q9SHjxdeCn+8BtNq0V3ivkSfk0j tdByr5KB+fGRHvgyGYcQHu9ixOwCOPI8LUKtDjAjt/92o+BCrT54OmB3vKYYZT6b012z hTBfwZo9CtT3V1B32f1WRMNsLUkEpn26sCQKiSuVyERrZOFvYu09meBn8j1NSJygD9+C UNRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oVNoUogFClyhdBTPbDrhs1JoNp0AWgi438G8ErIsNPM=; b=ogDIFvYLTCPXSz706qzOgXrFnOFgcScmeWuowKNiQURV6ewraMBllrIr3uhxLDnsMw GtC7/4N7+vREmZzEdjnn6/4n/7Wps9EzQAwIh4BHQ2R4gjdYwDrlz5V+FiaVYxM0nAMi 1vSalT/Pcz0TjmEcjSeUxkmpvQecNXNkZRQ7EVngSnVtBK0oogG1I0Ol7cY3DS6GGIDb J/Yhm8m61heo8/i0aHaN5EvVsYs7WtO7oiI4vv6JRzMJC3pEF513Gj+M0iX6N5x5+M2d 9jQ+y1HhkcoCJu08haBdg+X0gXC8e2s639eU1GjAO0EAEnBItAFLZosU0ELLNVn+oHwj xHKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=arp1QXgJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8si2083521edr.258.2022.02.08.18.38.28; Tue, 08 Feb 2022 18:39:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=arp1QXgJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244743AbiBHLdk (ORCPT + 99 others); Tue, 8 Feb 2022 06:33:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356822AbiBHLIK (ORCPT ); Tue, 8 Feb 2022 06:08:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B95BC03FEC0; Tue, 8 Feb 2022 03:08:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A4D4561583; Tue, 8 Feb 2022 11:08:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 556ACC004E1; Tue, 8 Feb 2022 11:08:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644318489; bh=qu25s2pI0bef9usPCks0SF20/3lcuZT4+ajSE0ondkM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=arp1QXgJJRaO2ZgwEBCS04YXmhnkX1AoGwN+4Tef0YqIynclXCGBiDrpdd4BdIWaj PbQLX9uUhQ4ue0sJOaRlbObuQi9wsuUf9ZHPoiyAR2anjm1+9fWCPYaLs9QChXea+a qFd9pTBvdmy4LuNlg+WxYMkSefPhAXBTpmkDc8y0= Date: Tue, 8 Feb 2022 12:08:06 +0100 From: Greg Kroah-Hartman To: Iwona Winiarska Cc: linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, Rob Herring , Joel Stanley , Andrew Jeffery , Jean Delvare , Guenter Roeck , Arnd Bergmann , Olof Johansson , Jonathan Corbet , Borislav Petkov , Pierre-Louis Bossart , Tony Luck , Andy Shevchenko , Dan Williams , Randy Dunlap , Zev Weiss , David Muller , Dave Hansen , Billy Tsai Subject: Re: [PATCH v7 07/13] peci: Add sysfs interface for PECI bus Message-ID: References: <20220202144838.163875-1-iwona.winiarska@intel.com> <20220202144838.163875-8-iwona.winiarska@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220202144838.163875-8-iwona.winiarska@intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 02, 2022 at 03:48:32PM +0100, Iwona Winiarska wrote: > PECI devices may not be discoverable at the time when PECI controller is > being added (e.g. BMC can boot up when the Host system is still in S5). > Since we currently don't have the capabilities to figure out the Host > system state inside the PECI subsystem itself, we have to rely on > userspace to do it for us. > > In the future, PECI subsystem may be expanded with mechanisms that allow > us to avoid depending on userspace interaction (e.g. CPU presence could > be detected using GPIO, and the information on whether it's discoverable > could be obtained over IPMI). > Unfortunately, those methods may ultimately not be available (support > will vary from platform to platform), which means that we still need > platform independent method triggered by userspace. > > Signed-off-by: Iwona Winiarska > --- > Documentation/ABI/testing/sysfs-bus-peci | 16 +++++ > drivers/peci/Makefile | 2 +- > drivers/peci/core.c | 3 +- > drivers/peci/device.c | 1 + > drivers/peci/internal.h | 5 ++ > drivers/peci/sysfs.c | 82 ++++++++++++++++++++++++ > 6 files changed, 107 insertions(+), 2 deletions(-) > create mode 100644 Documentation/ABI/testing/sysfs-bus-peci > create mode 100644 drivers/peci/sysfs.c > > diff --git a/Documentation/ABI/testing/sysfs-bus-peci b/Documentation/ABI/testing/sysfs-bus-peci > new file mode 100644 > index 000000000000..56c2b2216bbd > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-bus-peci > @@ -0,0 +1,16 @@ > +What: /sys/bus/peci/rescan > +Date: July 2021 > +KernelVersion: 5.15 5.15 was a long time ago :( Other than this nit, these all look semi-sane to me. What tree are you wanting these to go through, mine? If so, can you fix this up (both places in this file) and resend? thanks, greg k-h