Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1729996pxb; Wed, 9 Feb 2022 03:18:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMNUTvydj9IA4tCWHVpTWnJgpmx1qGRCUlmyEBztSXTEbRaELPK4jDKjowP0JkMInl/HdH X-Received: by 2002:a63:87c7:: with SMTP id i190mr1526058pge.75.1644405528207; Wed, 09 Feb 2022 03:18:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644405528; cv=none; d=google.com; s=arc-20160816; b=Gs1MspJwtriuwYLUss5J7XCh77Lc9lrLYM6jtDcpsQkNOy+5ZY3fja9OvERvYeDyOa 0uVN1zxbrXV25yiBvDo04eT50BuM+qY3eZaBr+ZpUXL0WvQE+UZELKG5afOAJrYA5u6N n6VHCwZT8r0s0XLSqNykbr+0lFTGRSEQpq1YC9ZMAJmFGfRzCP0WMJGYcEqQcJ6VQDQZ X7LTorw5c4xT8EMvemK5MlDwRHRPDPkeBB/hqbkU/jP9FLOtbLzG4cHO7mRdSSIea7+b G6+fFRk01iTPAhygHhpA49YH7dXKT+zwUYKGvrknMJA4+nGAnbdiLF7OcBwLD98T7hfM eRIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=t5ATNDVY5BBfcfxijhXC/1iC+qNbs6QVAVyFAJglrIA=; b=BSv00NZAzDBO6GLmYt9lEHvMdURjLgETd0QraSJbBynHSmalYOiFF0y46gkj0jb4JU cCcZo2kZGr6uNS3hw0IWdS4Rv4Cv50+3Il2P41e3E/vq9UNch7SfMSxQYm4h0O1lbFow k9oo6xiQBF/vQeDzvxwyDSQCBkEu62wsAvpXAJG/jTbHPPCkPIGE5NLV1n45qXs5w7Yc PuHpNCgc6rFwvHQt4JEO9xm3ayEu1JebDFB6dsJljVtJwujzLcoYR2wHg9YH79PT8g13 KifomGOwuNISLEWZkRqEUmev3MYN//eec0r6uoeNVkQCZjUL3Bv3tfR+xhpmB8cAhvVV r/bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=Ch1X4rYM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 198si15839743pgb.366.2022.02.09.03.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:18:48 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=Ch1X4rYM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8F97E069991; Wed, 9 Feb 2022 01:45:55 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356161AbiBHLfn (ORCPT + 99 others); Tue, 8 Feb 2022 06:35:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232429AbiBHLPo (ORCPT ); Tue, 8 Feb 2022 06:15:44 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E654C03FEC0; Tue, 8 Feb 2022 03:15:43 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id bs32so13406196qkb.1; Tue, 08 Feb 2022 03:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t5ATNDVY5BBfcfxijhXC/1iC+qNbs6QVAVyFAJglrIA=; b=Ch1X4rYMr6HA1Ert5gDxuP0Z4IHG5DzbbwXXVp6sgfJ/CbGFZ34axFqel/jGAus/dC 1JMkI3rMljd8A3TjT9YDbKHImN6wrC30A6uMP635b2hz9jqCbJeODuA2HtYBPpqQaq34 g5feFwoun/O0JX5iG88O36A8iojpT6tu43L8E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t5ATNDVY5BBfcfxijhXC/1iC+qNbs6QVAVyFAJglrIA=; b=Pvr8wofz+VWjdIkZF1JAUhXjrJYVkWgw/M1wS4qopKv53eXQaLo+rM/ZThsUFwjw3S W7XyDJbAOk3BVQrND3JDO1R91ZWDuHwYwHMM+ad7JMTFmYKIYsosMKHpvCP+k5PZAhQ7 mRCKC0eC5a8xziITNXg/l5PJinxZ2F1XjZh8P3bWdo3gSQmjjU0ikSaYtuGGzkKtuLoR WIuOU/NOdniKxga4Csu01Js0Jq9WxdkpOm3Ryl9SBdGTf7uTlKnCkN+1iy+Eb5UdruQs /GdP58n+K8nmqbYzEPjoy2nneKC2aKgIQla9AtqgYujWVuQATFjsftRMd2XVzF70Dteh Qfxw== X-Gm-Message-State: AOAM531uvOv6acVFtXvPrHh3E+DgMajIhGKnbXfPVehtWDHMFOryzBT3 Eh0IyACJx7WEDWLEw+e0X2toHOCN2gYshlWFb0Y= X-Received: by 2002:a05:620a:44c7:: with SMTP id y7mr2284975qkp.347.1644318942239; Tue, 08 Feb 2022 03:15:42 -0800 (PST) MIME-Version: 1.0 References: <20220202144838.163875-1-iwona.winiarska@intel.com> <20220202144838.163875-8-iwona.winiarska@intel.com> In-Reply-To: From: Joel Stanley Date: Tue, 8 Feb 2022 11:15:30 +0000 Message-ID: Subject: Re: [PATCH v7 07/13] peci: Add sysfs interface for PECI bus To: Greg Kroah-Hartman Cc: Iwona Winiarska , Linux Kernel Mailing List , OpenBMC Maillist , devicetree , linux-aspeed , Linux ARM , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, Rob Herring , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, 8 Feb 2022 at 11:08, Greg Kroah-Hartman wrote: > > 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? Yes, I recommend Iwona send these through your tree. Thanks for taking another look over them. Thanks to Iwona and Intel for doing this work. Cheers, Joel