From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62666E732C5 for ; Thu, 28 Sep 2023 12:31:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vEJ3+lBxsD5ipOAI9ZqNqAOGjO/OLJLoAQRhOtpFows=; b=bWLCiQIERBzoj0 dPRVLkfAfXUgaue5Re/MGaLz8SNEol0Y35BaXDL0MZ7n+l/6Hd7IXEuN4TlQ19nxqqPfU1CKGg8x4 RE0sP8/3mD52MhRblatQb1fGQremad/KUBh4WGQ+3NhA3QxAtPZ7pzSy1UhZ6zgPmVsE05Fg/ZI3i ZrFlOYnyYlAjWwNED4g8pp/F3h5Nn4dd6yj8t1AU+Pcww388j5ekLmqwrr40hTs3qUkXRnu7BQnrV wccTomXcj3cO7+pBGB9cY5n2+hdKIVAEj5OJlUa0Pn9isAh6ocQ3Kp51Cl0aNJwL2iRWQYo1f3O5X 8WA81NO7NYFQUfDCo92w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlqAG-003mTt-2l; Thu, 28 Sep 2023 12:30:44 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qlqAC-003mOv-2h for linux-arm-kernel@lists.infradead.org; Thu, 28 Sep 2023 12:30:42 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c16bc71e4cso111203241fa.0 for ; Thu, 28 Sep 2023 05:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695904236; x=1696509036; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1Gm1ISeW+idItfKS/eOu6/qm0WSJn6LCWGU5CplrSsM=; b=i0RyJb+4FiwwvpUka+GnFuIlZ8DRCP9NvRAchgSRDpqY5Hqg/0mjZsDQjpMjKtLEZ6 bDuITShhXrt8Q7gdqmGGG1J/ZEfF3cYq8sVECyx9I/maCGjc0yQDjzIAJ+tkT5FsfKu6 XfSBxvxjBSUCYS0gFT6A7RKS5aHvayPXc00LO8zetF6Ds9JardUhO5E8+/8tc3MmaAIg JNbMQHocaTb2ZIvljcS+wit3WIhgz5keuENzD25za6bTEd1iCiKFwdiSQqXkYBlzwa9R Gma67bb1rIo6T2MQSpTxUUj1t9CUG/2FlFe+oSPXeFri4qW1AJUCb075KxpkJnHoSNHi /sUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695904236; x=1696509036; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1Gm1ISeW+idItfKS/eOu6/qm0WSJn6LCWGU5CplrSsM=; b=tM2WXvRBbVj9aXU60IXUDo/PlM0X5Xwqd1TNiVP8Ej0g5braFX9AmdAIjmODAKnaeu GfmdALUBegMffYxUkL7yd/DDhyxmrgdc9HaVlZkwmssv0oiKIapYCOnF19t67aDZ2D6A 8pMJburvl9ZxJFxzds7AwXOMRcOgjIQlwXgS4bcGu61bjQVzB8sx1RJv2nqn4OBmaK+L 14JL/onfy1+iLF5JCzA+UM3W28QlHZHp8AXDuaAP78T2DjyvhI+5AahBCpGtH4ILAsxx SSMcdsLu9HEaK01esMqtN830Kefgdg8sCjxMTSuMTQwzR6cIMnOWYbVhYytk33yWQt1I 9pdg== X-Gm-Message-State: AOJu0YygegXziTqydTukha3HBFdi3x1333tb30wGUE6qMPUY5nb+PNKk mYiq/TneHf0UCWif3NNyhSs= X-Google-Smtp-Source: AGHT+IELWBzD5+DshFb82aU+91c6MxU621XWEWP2vB5rQd9UYeEMJrPISaje63D4gQs+E+MgoEPD8w== X-Received: by 2002:a2e:2c16:0:b0:2bf:ff17:811e with SMTP id s22-20020a2e2c16000000b002bfff17811emr1044718ljs.14.1695904235857; Thu, 28 Sep 2023 05:30:35 -0700 (PDT) Received: from PC10319.67 ([82.97.198.254]) by smtp.googlemail.com with ESMTPSA id x6-20020a2e9c86000000b002ba045496d0sm3588724lji.125.2023.09.28.05.30.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 05:30:35 -0700 (PDT) From: Konstantin Aladyshev To: Cc: minyard@acm.org, joel@jms.id.au, andrew@aj.id.au, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, aladyshev22@gmail.com, jk@codeconstruct.com.au, matt@codeconstruct.com.au, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, netdev@vger.kernel.org Subject: [PATCH 0/3] Add MCTP-over-KCS transport binding Date: Thu, 28 Sep 2023 15:30:06 +0300 Message-Id: <20230928123009.2913-1-aladyshev22@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230928_053040_890237_5C08A3DB X-CRM114-Status: GOOD ( 12.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This change adds a MCTP KCS transport binding, as defined by the DMTF specificiation DSP0254 - "MCTP KCS Transport Binding". A MCTP protocol network device is created for each KCS channel found in the system. The interrupt code for the KCS state machine is based on the current IPMI KCS driver. Since the KCS subsystem code is now used both in IPMI and MCTP drivers the separate patchsets move KCS subsystem includes to a common folder. Tested: PLDM communication between the HOST and BMC was tested with both components implemented via open-source software: - The HOST (UEFI firmware) part was based one the edk2 [1] and edk2-platforms [2] code, - The BMC part was based on the openbmc [3] distribution. The testing process and all the necessary utilities are described in the [4] repository. [1]: https://github.com/tianocore/edk2 [2]: https://github.com/tianocore/edk2-platforms [3]: https://github.com/openbmc/openbmc [4]: https://github.com/Kostr/PLDM Konstantin Aladyshev (3): ipmi: Move KCS headers to common include folder ipmi: Create header with KCS interface defines mctp: Add MCTP-over-KCS transport binding drivers/char/ipmi/kcs_bmc.c | 8 +- drivers/char/ipmi/kcs_bmc_aspeed.c | 3 +- drivers/char/ipmi/kcs_bmc_cdev_ipmi.c | 73 +- drivers/char/ipmi/kcs_bmc_npcm7xx.c | 2 +- drivers/char/ipmi/kcs_bmc_serio.c | 2 +- drivers/net/mctp/Kconfig | 8 + drivers/net/mctp/Makefile | 1 + drivers/net/mctp/mctp-kcs.c | 624 ++++++++++++++++++ include/linux/ipmi_kcs.h | 80 +++ .../char/ipmi => include/linux}/kcs_bmc.h | 0 .../ipmi => include/linux}/kcs_bmc_client.h | 3 +- .../ipmi => include/linux}/kcs_bmc_device.h | 3 +- 12 files changed, 723 insertions(+), 84 deletions(-) create mode 100644 drivers/net/mctp/mctp-kcs.c create mode 100644 include/linux/ipmi_kcs.h rename {drivers/char/ipmi => include/linux}/kcs_bmc.h (100%) rename {drivers/char/ipmi => include/linux}/kcs_bmc_client.h (97%) rename {drivers/char/ipmi => include/linux}/kcs_bmc_device.h (96%) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel