Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1670520rdb; Sun, 19 Nov 2023 05:58:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgUbXbsVsH/LwU6FxUOWmFtx+CHHvloMdtEvtjdNzzFL4g0OQjzBrHF6lozVCCQZFn/7CX X-Received: by 2002:a05:6a21:3297:b0:188:2930:af41 with SMTP id yt23-20020a056a21329700b001882930af41mr3447507pzb.22.1700402318103; Sun, 19 Nov 2023 05:58:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700402318; cv=none; d=google.com; s=arc-20160816; b=K3wUsDWK8w6KtGWbPfkdSHfUP9uGlQeDtAWIc+4pBaydyVMDRzIkHMcxoTJpEAMLEs dqzM9vTvXooQ22W163CcTee9gNwuOymvkaD2mlBqzFwfMJaDzRdktj+3RPMeJD3YnGDt p2b+8BiuXBsZ+T74+Mj90wByPE02Rl7SHCBrV9akf9VPdx8+ca8RmSzoSVh41tJo+z+9 HOCawu+zGTRTTiTytVZRm7GkcF+GD4t2cKiAy5btUUSxD8pFi/+dIwBtPzV2H4GlfOp+ dUAzSw3m7EKJBkohh0mbMtgmbid48xaYjQdzt4Dr+dhIhYNE+ENWhqFvsxkMZRkWKGRk Xorg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=V1bQdizc7ajalmfbmh/+tnBZnXzagY4IJs8p7JmU4+k=; fh=KQ6DtOg2s6EjX2UG8PvNJAxkkgxsPAP99idIif6uGd8=; b=WIeWwnVeMwAJsin0N4i1v6+GAThp2ne0sOxaU736t6oCw8uiHHNrYuY/kQM1fSHgvq YCyMc14skaQjDgqF8nHnyWt6NVVOjv97fWQy4+28h+xc5qifCkmLkEQOL2SdJBW3srhE 6XC33YcIxJgCMVqT4PY6vel1wUcvsz/5imAkQ0vijHgBlR6a78nhiJd0q17tr+zaxAnf 5FSD/xkB2gs23LlVcE4ob1zSI7hjD3ATI/gFhiKEbj0lAqwYWJjjQjcHNtq4VXw4HcQN b/jMMTxx7mmxOb7bzr2K2Uk6TTQScdYGJptkmoaOceC2QEGH4zITTSrYbvTgFm7qw7OC ttxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id lt11-20020a17090b354b00b0028515d4c7f9si2232436pjb.45.2023.11.19.05.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 05:58:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C50318057B0E; Sun, 19 Nov 2023 05:58:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230434AbjKSN6H (ORCPT + 99 others); Sun, 19 Nov 2023 08:58:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKSN6G (ORCPT ); Sun, 19 Nov 2023 08:58:06 -0500 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34DD9D8; Sun, 19 Nov 2023 05:58:02 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R961e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=guwen@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0Vweas-d_1700402277; Received: from localhost(mailfrom:guwen@linux.alibaba.com fp:SMTPD_---0Vweas-d_1700402277) by smtp.aliyun-inc.com; Sun, 19 Nov 2023 21:57:59 +0800 From: Wen Gu To: wintera@linux.ibm.com, wenjia@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, kgraul@linux.ibm.com, jaka@linux.ibm.com Cc: borntraeger@linux.ibm.com, svens@linux.ibm.com, alibuda@linux.alibaba.com, tonylu@linux.alibaba.com, guwen@linux.alibaba.com, raspl@linux.ibm.com, schnelle@linux.ibm.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/7] net/smc: implement SMCv2.1 virtual ISM device support Date: Sun, 19 Nov 2023 21:57:50 +0800 Message-Id: <1700402277-93750-1-git-send-email-guwen@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 19 Nov 2023 05:58:29 -0800 (PST) The fourth edition of SMCv2 adds the SMC version 2.1 feature updates for SMC-Dv2 with virtual ISM. Virtual ISM are created and supported mainly by OS or hypervisor software, comparable to IBM ISM which is based on platform firmware or hardware. With the introduction of virtual ISM, SMCv2.1 makes some updates: - Introduce feature bitmask to indicate supplemental features. - Reserve a range of CHIDs for virtual ISM. - Support extended GIDs (128 bits) in CLC handshake. So this patch set aims to implement these updates in Linux kernel. And it acts as the first part of the new version of [1]. [1] https://lore.kernel.org/netdev/1695568613-125057-1-git-send-email-guwen@linux.alibaba.com/ Wen Gu (7): net/smc: Rename some variable 'fce' to 'fce_v2x' for clarity net/smc: support SMCv2.x supplemental features negotiation net/smc: introduce virtual ISM device support feature net/smc: define a reserved CHID range for virtual ISM devices net/smc: compatible with 128-bits extend GID of virtual ISM device net/smc: disable SEID on non-s390 archs where virtual ISM may be used net/smc: manage system EID in SMC stack instead of ISM driver drivers/s390/net/ism.h | 6 --- drivers/s390/net/ism_drv.c | 54 +++++++-------------------- include/linux/ism.h | 1 - include/net/smc.h | 16 +++++--- net/smc/af_smc.c | 68 ++++++++++++++++++++++++++------- net/smc/smc.h | 7 ++++ net/smc/smc_clc.c | 93 ++++++++++++++++++++++++++++++++-------------- net/smc/smc_clc.h | 22 +++++++---- net/smc/smc_core.c | 30 ++++++++++----- net/smc/smc_core.h | 8 ++-- net/smc/smc_diag.c | 7 +++- net/smc/smc_ism.c | 57 ++++++++++++++++++++-------- net/smc/smc_ism.h | 31 +++++++++++++++- net/smc/smc_pnet.c | 4 +- 14 files changed, 269 insertions(+), 135 deletions(-) -- 1.8.3.1