Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5642484rwp; Mon, 17 Jul 2023 07:23:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFqMCEEKmgPHbrsiXkubzMDevBVtBV845zzy7VkihRT7tTz1LMDoLDHYWcJdYYqCqeU+z36 X-Received: by 2002:a17:902:f688:b0:1b8:987f:3eaa with SMTP id l8-20020a170902f68800b001b8987f3eaamr12178327plg.58.1689603816398; Mon, 17 Jul 2023 07:23:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689603816; cv=pass; d=google.com; s=arc-20160816; b=L+9snnfT5oaU3wolZES/Jv2XiIKZ0mOfmwHiEBoa4kVz8lgghXcD2dFMwKeR6it9xi IEBJYhMxEK/hjM4P9VWLqe9YQ+p7AU1BGnk1m+DaGc8p5IhsJuJBnAPD4EALwKLuCpX9 EnqGIaeAezddnUpmbPx0ORPiIw6CTwY+FMWUxqB1f62/fqyTjQu+xT4g9adXk4iL73nN go3IIeeDE+DhLK40xCPSRV0BzK2pkW5cCKjOft4eZvIW+2b9T6+oeV3WO6iVxTw/sb0p jAGJllymSRaEE6rELKH9E1wMn0eEMtsdD/JS/SheNSzj56n1JmlHnKItFOollMtkoFo+ xEXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=F9OQ5xnPKY1KWFbRwbp8EJtxzi5p9ygpr0ZyWA5WiYY=; fh=iWbpQppOv9hFHBBHOqHqfh97v6xJxtNYwcvbpRdbtDo=; b=uflUsb1CBA/jSbQ0VQhMdV6AOxj4EZvMvNjAt7tUC9X0Dh/SeVn5SJUtnZGOi/A8wc yhHaVb6CH8iLx2QZADuLflQbLx8RbtnwtzrS4sLxM+10uL0rBCRq6eE7xG3HdjWnBWyU 5IxVaKXAqB2n3LZuirQaSBJT4573RG7VnX1Lbm7xyw9/+qeRnJahLvcIIWx71zZ1T19M WUGQH0Ftoak2iiWF26yHaEJaCQb/c2wKrecMRLN4B68yci/e6YOI0Fe7O+crFG1NBhYE 5pg/+W8sy3E2mdHtmhXibhGRwl84WcYoFRWzpufAOI6Htn7YhDiNbyFCZ2KjzF44RRGk iLjQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KxNPTW6Z; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx14-20020a170902f94e00b001b8af83d939si11472129plb.537.2023.07.17.07.23.23; Mon, 17 Jul 2023 07:23:36 -0700 (PDT) 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=@nxp.com header.s=selector2 header.b=KxNPTW6Z; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232064AbjGQOHU (ORCPT + 99 others); Mon, 17 Jul 2023 10:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232011AbjGQOHI (ORCPT ); Mon, 17 Jul 2023 10:07:08 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2057.outbound.protection.outlook.com [40.107.7.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C66518C; Mon, 17 Jul 2023 07:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dTTo8Pn3df0Rs9/Do8cHeKIzsQxclSP1TVvhPtL94qkchc4p6mIZWNPnGdgSiEfKlrxtUvHE/42q0NRfPX+ksCqy2e4n5fgsoe0kxKVBbkF5QZsF1KRVner/TUZbHMqZz19mCn5oQ0HDSGT7jG6e4udcwctQbAuiwlhpIToB8hD1rHto660GI4wmLWNqxsLo3MvRc9McxIeqoYs+kxTEfqkBMATecrxi7EFMXikliGc7tXK46z6yWQ0c7bkarqNiMCEAN+i8G3luOJ9fnd3gkIjxhTlhleN+ZSKM59orBpNKmyT7KkRtsaTXdTn+72JNigqNxb2VJaLlyVtDeoqM0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=F9OQ5xnPKY1KWFbRwbp8EJtxzi5p9ygpr0ZyWA5WiYY=; b=FgDFxdWCMS+4kQtw1uDcwsilaViHR1Cz4zbE6cIB0yQsGKu6FRgA0XR330yjNgpFfSk7JFzbtK8FWt59w+kuUQZNy4mlZq089dpKXdm9tVrLL1/aP2FLZ9EVRp9whkO3p3EjO30rrnMvLtOI8Lo11oxgFX6lQp0juQ+DJOjlNE23eUVbvCBOPXfP4D9q9bYnlMO721pYZdmHjZn1NlI1Ti1e13r9S/ooXexbKZaWSaGBbf9Xu7jTphg6BLuTBWalgdvnWCpo2UrZ6woXgtQNZ6ug76CqH6S9dWdRJHb3aoVPeV/QdYATA22ZT2+QScqP6gkTJQwDPkfYW2wcQl8VKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F9OQ5xnPKY1KWFbRwbp8EJtxzi5p9ygpr0ZyWA5WiYY=; b=KxNPTW6ZUIi8QL/XI9E/peUx6OThGzB1hewG5BrQrznkFjfG6aai7jKGbncBBWsswWuUqkOSd+Mknida9Ei24drNkaVNrbo5MIG42ctbGp8KZwchS7sBWa9GAA3pSB1dfQhM0kNl/P+vdnzgkYYUM+7b+9s4R0h8soSkIbz/OQQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AS8PR04MB7607.eurprd04.prod.outlook.com (2603:10a6:20b:294::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.31; Mon, 17 Jul 2023 14:06:54 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::6cc2:14b2:ca51:6c0]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::6cc2:14b2:ca51:6c0%4]) with mapi id 15.20.6588.031; Mon, 17 Jul 2023 14:06:54 +0000 Date: Mon, 17 Jul 2023 10:06:39 -0400 From: Frank Li To: "tglx@linutronix.de" , "lorenzo.pieralisi@arm.com" , "manivannan.sadhasivam@linaro.org" , "bhelgaas@google.com" Cc: Aisheng Dong , "devicetree@vger.kernel.org" , "festevam@gmail.com" , "imx@lists.linux.dev" , "jdmason@kudzu.us" , "kernel@pengutronix.de" , "kishon@ti.com" , "krzysztof.kozlowski+dt@linaro.org" , "kw@linux.com" , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "lpieralisi@kernel.org" , "maz@kernel.org" , "ntb@lists.linux.dev" , Peng Fan , "robh+dt@kernel.org" , "s.hauer@pengutronix.de" , "shawnguo@kernel.org" Subject: Re: [PATCH 0/3] Add RC-to-EP doorbell with platform MSI controller Message-ID: References: <20230426203436.1277307-1-Frank.Li@nxp.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: BYAPR05CA0001.namprd05.prod.outlook.com (2603:10b6:a03:c0::14) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS8PR04MB7607:EE_ X-MS-Office365-Filtering-Correlation-Id: c32c2a49-fc47-451e-3df7-08db86cf1373 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fiwG9ZwnS4cI0fdpWpJOogSaqFIDLXE/Hm70CYbBoutB0NwWxaotG2HllLGfWuXXNCanvzk584fv4NZp0ts4SdB5kTYLtt3PLdK1gjP9Mnug99R1+x9z2PVJrYlwD7xf8sv0GYnGL36tJoWs14/RbcnRyw8adEGGQEwVjsmKZTm6BheoKdQ2wWrRC4j4GuUeuyobcCsWoiirG6TbjNRYF9leYIQlGCY8SLK5lDzwH6vb+KJHgQ3zOU2VoqKurJn2guN589U0LjDtFAy/3SqUgPepHE9/a5lGK351CWYFDaabJSoM2m98i/hVDitaf1cu3qFFkNbJB4FUiwMOTbC0hmKvPUeWlwRJ5qjOMNOhcnPzoRQ09n7NwgU2SkNfI6aq1+szmUgz6ZJS+ATlvXfi8hN/707XW8hBHXTmX6B2tlfh7INmtoSgWEX+B7CygXFChaIaRKHmCuXyyxHt79ZtLGNHHNWmPmIKtzHyCAjJyRpEODY2wpM10H0HmCVjzqxJO17L98EgrCh7SqEvlcqQrBe99jqbA7Kn9LVcv6p4ZJcOhxkPwhwVzOFboA3nfEP0QWbL3QHivBrcUZgejvpO1BbUDkjBAGnh5TsrTgUX/lFG5AGknx9RV0HtEr3Yg3yl X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(7916004)(4636009)(376002)(346002)(39860400002)(136003)(366004)(396003)(451199021)(6486002)(52116002)(26005)(6506007)(9686003)(6512007)(33716001)(83380400001)(38350700002)(86362001)(38100700002)(186003)(8936002)(8676002)(2906002)(41300700001)(478600001)(7416002)(5660300002)(4326008)(316002)(66556008)(66946007)(66476007)(54906003)(110136005)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?RUyE5aGFt34Qxkn8zGUGw95WVeL8NX2MEV+v9NTkhciSZy6fEZWp3Ol104N9?= =?us-ascii?Q?fgCTiJz3iNkz0YnLwdEFa/kEB16+Tjv1RLBYDyu4iqQvp9IIl6qckISwWMJZ?= =?us-ascii?Q?mq+rAR+svA9O4dsMv+2Cql+RpDioaeNo6eQdqwvMe9AQAEBQFvMTVkuXrYI7?= =?us-ascii?Q?uJd7O/QSU+yGBDKYBB8ti+OZ97lt/BOZ0fSEGVAmQ4fzGGNRIK+2DmG61W2D?= =?us-ascii?Q?zx8iQOPQKLOYbN3Q00SXopwIbjuxeBd1bf3VCsejnP6IPXOaaTJ6n7YhUoj0?= =?us-ascii?Q?9sKFeZSEtcEu9BprzylIVnyx7Ub0IOsokKLxQ9rxrTPHIMnSLP7JbGsFocxg?= =?us-ascii?Q?G6aLibMS+9uMhKdlA6Uf0ctxFQJjfhSrz6ic8csaUgJcKXwZvWzgKEbp7UvA?= =?us-ascii?Q?D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W11KLrZyM5UVxN9?= =?us-ascii?Q?5sXr096lj7HkNfYPw9fbZppdMPfMeiVRutXExmzx7vgHFEIvHl1BTNIENAed?= =?us-ascii?Q?bZk2ngZ4eNdv4HNiLdvaPvqkvquk+hYYKVuHh1BUNCBwuIPKyqfqIBjYl788?= =?us-ascii?Q?LB5/FSlnut8bsMVze1Jw2QCygXc6bGUoggLt7rAm4eISQAmAMXrg8AbxZxMb?= =?us-ascii?Q?XX3M49YvqWMv3hQ8Gn6LYwvTTnT0c6j38dW9dD2o7+Fp+jxHPQqL1OjmeCrK?= =?us-ascii?Q?3MsWlFSI1l84eXp8R1Vv5U/mtb/NDJH0eI8sFded?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c32c2a49-fc47-451e-3df7-08db86cf1373 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2023 14:06:54.7210 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NYjnzGyZLAhOaIGOuemwBPZWsrSt+Ll8qAoDuGa0Qh8zEvB4plx9ZMMik2vL1M9dHjWb2qDq3KyR4Gdv+6mbZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7607 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Mon, Jun 12, 2023 at 12:17:25PM -0400, Frank Li wrote: > On Fri, May 12, 2023 at 02:45:12PM +0000, Frank Li wrote: > > > > > > This patches add new API to pci-epf-core, so any EP driver can use it. > > > > > > The key point is comments from Thomas Gleixner, who suggest use new > > > PCI/IMS. But arm platform change still not be merged yet. > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devmsi-v2-arm > > > > > > So I still use existed method implement RC to EP doorbell. > > > > > > If Thomas Gleixner want to continue work on devmsi-v2-arm, I can help test > > > and update this patch. > > > > > > > Ping? > > Ping? ping? > > > > > > Frank Li (3): > > > PCI: endpoint: Add RC-to-EP doorbell support using platform MSI > > > controller > > > misc: pci_endpoint_test: Add doorbell test case > > > tools: PCI: Add 'B' option for test doorbell > > > > > > drivers/misc/pci_endpoint_test.c | 41 +++++++++++ > > > drivers/pci/endpoint/pci-epf-core.c | 109 > > > ++++++++++++++++++++++++++++ > > > include/linux/pci-epf.h | 16 ++++ > > > include/uapi/linux/pcitest.h | 1 + > > > tools/pci/pcitest.c | 16 +++- > > > 5 files changed, 182 insertions(+), 1 deletion(-) > > > > > > -- > > > 2.34.1 > >