Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2540638pxb; Thu, 3 Feb 2022 08:41:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhM5UjwXzFpCQhDBZorQD++L6Rws1FO6HygFtlafzSXzwHvh2vOiO+3Biu75SnuBZ2X0Bg X-Received: by 2002:a17:902:e74e:: with SMTP id p14mr23532807plf.161.1643906501262; Thu, 03 Feb 2022 08:41:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643906501; cv=none; d=google.com; s=arc-20160816; b=haPkiO1lVMo4P1j+rq2kWdFoQ/NRG9V2bSogAbX/9fXDoSEuarlX6mnhQa1AaoichK G1Sz6j2NTwmh0E9Gx2R3FtKGwFRUTlo+bR8+wdNNXpjo/bswbo1btp1faN2s27+1rzxO CeOL635gjkY1P1udxpDY4FF4K81prGp1dUTYHstoYWVP9JYxhrMCMuT+r1kraj9F0hhx nE5OCrtc69REhclt3yftFLGNUyThmg6i3+V9dorAEgeUYu8TWHdNLLy0LJRl0mHjfXHs dynnHfSrcl74JS+LR2VS3iaiKoWKNXx0DGFJxNaheYiz+x4miZynSMjNsiE1WlWB+jyb 61yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Yi0cXSMAXtiWcJWc2Q53sicUqLHvp5DecuaRe1XINMk=; b=ind64141GLlctttpvlEuP2CodU3ghu8gGqHw1yz5SrA33eH3sjCQ8msHqHxab0YEZ/ R05eIctQMTnnxQWBjvNzn7PjHWCK5NSAXZ8816tOyag+22/b5xbQXwYIdMgfCunvpaSl WJSTv2ieBV2Y274LZpX0UfHlpA0dydtg75bfIBMok3bzfQsrlGWnfvDwntcioHHCw6aC NBNIaiJL/+ezBpXTU0YNR6OqvHmb9Ze+WgbXeXV3e2FDhOTIWzi3OtRjwaD108vvdixP AZa2Yn8aLrbGg2R3G9wfUpFLc95RIQQKDRwWGUuMOaR6x4zXIigVJBjDjLLB5YwI0dHY Jr3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mvO5RLyG; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q80si14241658pfc.57.2022.02.03.08.41.28; Thu, 03 Feb 2022 08:41:41 -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=@intel.com header.s=Intel header.b=mvO5RLyG; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236194AbiBBO4R (ORCPT + 99 others); Wed, 2 Feb 2022 09:56:17 -0500 Received: from mga11.intel.com ([192.55.52.93]:31889 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236109AbiBBO4P (ORCPT ); Wed, 2 Feb 2022 09:56:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643813775; x=1675349775; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QMYVyv1FTscgpmw+LGMru7OffCk/NusVJ0zbwclwbtY=; b=mvO5RLyGnkqLP+YcSHi9g5NW5sePYGpX3m8HVHGjp+NseXTk8fvol/8Y l76f4N0Di2P1kLX4lzrRvGEO5r5Ylrf1VOkiZfct69aKBke17u4apw4h8 KoEZQNVjvIfijrzffWxqTZA5tUZ0PSo80hVrceYnmL/h76YS6j0kwM73i 1lTdeM08r3roQ2DsH8/TKJAk4teVOhrFdfkednmAy5aD6f7opIejbo6Oa VAHL1kdMI8XuDbNNnevCWnZOoRDHa9BOyEiqOoCtmMfnQL7+EK2+UT+cf vfLNL4Y6zeyed8K0+0dgcj03lY5beJGYVCycdxgGKAJtkSEXxFF4IksDb w==; X-IronPort-AV: E=McAfee;i="6200,9189,10245"; a="245524673" X-IronPort-AV: E=Sophos;i="5.88,337,1635231600"; d="scan'208";a="245524673" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 06:56:15 -0800 X-IronPort-AV: E=Sophos;i="5.88,337,1635231600"; d="scan'208";a="676456570" Received: from mwnuczyn-mobl.ger.corp.intel.com (HELO localhost) ([10.249.137.160]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 06:56:05 -0800 From: Iwona Winiarska To: linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Greg Kroah-Hartman Cc: 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 , Iwona Winiarska Subject: [PATCH v7 13/13] docs: Add PECI documentation Date: Wed, 2 Feb 2022 15:48:38 +0100 Message-Id: <20220202144838.163875-14-iwona.winiarska@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220202144838.163875-1-iwona.winiarska@intel.com> References: <20220202144838.163875-1-iwona.winiarska@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a brief overview of PECI and PECI wire interface. The documentation also contains kernel-doc for PECI subsystem internals and PECI CPU Driver API. Signed-off-by: Iwona Winiarska Reviewed-by: Pierre-Louis Bossart --- Documentation/index.rst | 1 + Documentation/peci/index.rst | 16 +++++++++++ Documentation/peci/peci.rst | 51 ++++++++++++++++++++++++++++++++++++ MAINTAINERS | 1 + 4 files changed, 69 insertions(+) create mode 100644 Documentation/peci/index.rst create mode 100644 Documentation/peci/peci.rst diff --git a/Documentation/index.rst b/Documentation/index.rst index b58692d687f6..1988c19d9daf 100644 --- a/Documentation/index.rst +++ b/Documentation/index.rst @@ -138,6 +138,7 @@ needed). scheduler/index mhi/index tty/index + peci/index Architecture-agnostic documentation ----------------------------------- diff --git a/Documentation/peci/index.rst b/Documentation/peci/index.rst new file mode 100644 index 000000000000..989de10416e7 --- /dev/null +++ b/Documentation/peci/index.rst @@ -0,0 +1,16 @@ +.. SPDX-License-Identifier: GPL-2.0-only + +==================== +Linux PECI Subsystem +==================== + +.. toctree:: + + peci + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex` diff --git a/Documentation/peci/peci.rst b/Documentation/peci/peci.rst new file mode 100644 index 000000000000..331b1ec00e22 --- /dev/null +++ b/Documentation/peci/peci.rst @@ -0,0 +1,51 @@ +.. SPDX-License-Identifier: GPL-2.0-only + +======== +Overview +======== + +The Platform Environment Control Interface (PECI) is a communication +interface between Intel processor and management controllers +(e.g. Baseboard Management Controller, BMC). +PECI provides services that allow the management controller to +configure, monitor and debug platform by accessing various registers. +It defines a dedicated command protocol, where the management +controller is acting as a PECI originator and the processor - as +a PECI responder. +PECI can be used in both single processor and multiple-processor based +systems. + +NOTE: +Intel PECI specification is not released as a dedicated document, +instead it is a part of External Design Specification (EDS) for given +Intel CPU. External Design Specifications are usually not publicly +available. + +PECI Wire +--------- + +PECI Wire interface uses a single wire for self-clocking and data +transfer. It does not require any additional control lines - the +physical layer is a self-clocked one-wire bus signal that begins each +bit with a driven, rising edge from an idle near zero volts. The +duration of the signal driven high allows to determine whether the bit +value is logic '0' or logic '1'. PECI Wire also includes variable data +rate established with every message. + +For PECI Wire, each processor package will utilize unique, fixed +addresses within a defined range and that address should +have a fixed relationship with the processor socket ID - if one of the +processors is removed, it does not affect addresses of remaining +processors. + +PECI subsystem internals +------------------------ + +.. kernel-doc:: include/linux/peci.h +.. kernel-doc:: drivers/peci/internal.h +.. kernel-doc:: drivers/peci/core.c +.. kernel-doc:: drivers/peci/request.c + +PECI CPU Driver API +------------------- +.. kernel-doc:: drivers/peci/cpu.c diff --git a/MAINTAINERS b/MAINTAINERS index b7992853a427..23fba6b2609f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15117,6 +15117,7 @@ M: Iwona Winiarska L: openbmc@lists.ozlabs.org (moderated for non-subscribers) S: Supported F: Documentation/devicetree/bindings/peci/ +F: Documentation/peci/ F: drivers/peci/ F: include/linux/peci-cpu.h F: include/linux/peci.h -- 2.34.1