Message ID | 20221124055036.1630573-1-Frank.Li@nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3210553wrr; Wed, 23 Nov 2022 21:53:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4E1bvzFftGBEbIUKdtV+RsFQL732DJfJ4rP8xZWUZkV2tJlpzHEXhDHj7UvuKQDdIVSyg5 X-Received: by 2002:a05:6402:3ce:b0:469:40c:ecfb with SMTP id t14-20020a05640203ce00b00469040cecfbmr25685229edw.164.1669269238863; Wed, 23 Nov 2022 21:53:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669269238; cv=pass; d=google.com; s=arc-20160816; b=N07QDU2UvbqbGl2HKXn4qew4ElwN8CzYlNR908rfPo0juKohUeTvhOpTMS34qRwGX2 jmjPu1tGvUXY9R8vuko7+Maw12VpZ0lf2/3sRL5wmgXpmcq2W9kC4IEOk7+NdZteajFY JDC88WuFfMRIKAyt0zK9UP9VfMkRYpNB6b236UIjbs3MAQe9bqpMtiyw0tNs5lxQU9gd D5npJga61HH5U7q6B0kTR4Z2rnSki32+lL+V8nLlNEylzutdOOJCzVkd87naj7vbo21i UADfvYKCfo7JSUpFWK0Sxu/O1YzEFPhbj/zqsbYMmjoUc/Z+pzxK0dGZlxZDyJ6WrG6l pb7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=uGD6RSOYAo0lFDou4r591YrE0IGwB+2GA06tmtcShsA=; b=DXY8qlZlhM4AuA22jWMESeZE/IsrWMwDfSkj+Oq6AzHTzpae0u9AIDeiH6yKzFrwdT OeLLBlv82KsmGLZgWPp+g0a7iP/gQqKteLYz7vci7NcuxZxD06RHjgU7udIWLWrzCjut 1Hup4PjvfusjsDxujmsimTrX8PJS14++bVjQxpkhoNCksy+QlBNMETL4RKHa0Rmw8L1u sDdhAbPKvffDfMuNA5lvIFRc+1HlrEFJQ5jk7b5M8DnOmc2I/NuGEYsaz2Stf6GE7yZb qUeCtpTe4WXH5AVYG28Zmzrv6Za/uOh+ScZ8zFIDtqQ4znqX3mRT/1ZquIZZVKk9ZDDX JDFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=T4dujJzD; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs10-20020a0564020c4a00b00458bbd3a0d2si166656edb.602.2022.11.23.21.53.35; Wed, 23 Nov 2022 21:53:58 -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=@nxp.com header.s=selector2 header.b=T4dujJzD; 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 S229564AbiKXFvK (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Thu, 24 Nov 2022 00:51:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiKXFvI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 24 Nov 2022 00:51:08 -0500 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2088.outbound.protection.outlook.com [40.107.103.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7C5CC6891; Wed, 23 Nov 2022 21:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j6280Gf6euV5R6AyZLQZLvwjPeJVlERRNFrMqzFxhExc+L5vZPRemAx9Dra6fKIV56Rhcb0+YLn5IxGV28jhwrKxrALgIxD4IBAkqjh4iD25FrjXGVx8CCU6Db/TPxPStljBdGboYM2YI8v+Ohoapl7OU9BPq9PKGDPmmQ9DU3k1xE6eHF846KdBLQTU3nWpxvv6wKbWmzOoj+vXdPtorcjFoJwNt0sc1Ge6VTxxRmUYVdEfkCa2Ojx29blaDxEx30rPYheo9sBu459ymI1OPgcjKK/zf1QeqSVXpFRxVmaSgKVigpsTHy/irXmnf84HAshqmeS9CGiin5hzyrx0HQ== 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=uGD6RSOYAo0lFDou4r591YrE0IGwB+2GA06tmtcShsA=; b=nIX0A9q+mnxN9u+6PYD12pRxItR40lkFEzuUE0Q/qj1OIVwenAbfwzuCGlw7nMtf/kC4yN+dQdS1C8P7DMns0VTtRi7IgrBjdLxPYt89Mv9hFFfWQE3glqioCE8FkUadgOo1Q436G/ZyTWGqqcF0NgSkz/heg/67brdch046Rjezp8hRG4O5Umoo8cnZl/LqE8k2JaWRvJkUACO5vbbG6yMMjDsgv1tXUSZ+CYnq4NeAtbbbmnZNkCRYCqBJf/f6lWv36C+9a/zI7nYR5ZrapKAipziexAQKa8JSwJrlhW1I3LaOMxZHPqjS/sfpe7cLSza1HM1S8GQ9cIDji3PRDw== 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=uGD6RSOYAo0lFDou4r591YrE0IGwB+2GA06tmtcShsA=; b=T4dujJzDolQPKtGeNluJXq8NdnTxvZodXkPWG/2KfeRofCMiZcDMnFUWQcsMx6M88s6Tlo97QdhilgN6NusWEqgWDwYED2O5TFQfGiC/HOdshAT0q/u9Aae3D/LlcDWl2qBwJ3wxNW1ytVvVqNTpi0/iJPxO6mBTYlS/NhVEki0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com (2603:10a6:3:24::22) by DU2PR04MB8600.eurprd04.prod.outlook.com (2603:10a6:10:2db::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.9; Thu, 24 Nov 2022 05:51:02 +0000 Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::a405:3557:91bc:9230]) by HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::a405:3557:91bc:9230%12]) with mapi id 15.20.5834.015; Thu, 24 Nov 2022 05:51:02 +0000 From: Frank Li <Frank.Li@nxp.com> To: lpieralisi@kernel.org Cc: Frank.Li@nxp.com, aisheng.dong@nxp.com, bhelgaas@google.com, 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, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lorenzo.pieralisi@arm.com, lznuaa@gmail.com, manivannan.sadhasivam@linaro.org, maz@kernel.org, ntb@lists.linux.dev, peng.fan@nxp.com, robh+dt@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org, tglx@linutronix.de Subject: [PATCH v13 0/2] PCI: endpoint: pci-epf-vntb: using platform MSI as doorbell Date: Thu, 24 Nov 2022 00:50:34 -0500 Message-Id: <20221124055036.1630573-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BYAPR05CA0043.namprd05.prod.outlook.com (2603:10b6:a03:74::20) To HE1PR0401MB2331.eurprd04.prod.outlook.com (2603:10a6:3:24::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0401MB2331:EE_|DU2PR04MB8600:EE_ X-MS-Office365-Filtering-Correlation-Id: 9eff9183-cf00-4844-57a2-08dacddfdd06 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: scYdUQxLrTkv+jpgejFmzv4cYMfxNOrbngVi6sX9I1o7r5Y/wVLPUjSnvfslMudnqUlqnRs3CncI2Zxp8nsRWR7lKXE6vV45tqWt2+ZbqaGK/s7LbDhTE1qX+uPwUWYm0fs2o1Dkm0vrFSnqpHZMjUZM09jIT31caB1hjIdFrT8KOHUIq1to1TJGZec/QSgH3MtnOv0/9pirs0HI1F6pDakKmF3NkIywBIVYfZ2UEEhPl43UMMwoFjMcM3ZTpFe2QOnhoPBOTWySr0aRGYz4WpulWxwHjkk6hZLrlqQq+y6+VN4UpDP8FXWA0XaXRl4KL/kSweW7lGPzV5GYYSZusEyc9MAZvy68R2D0UcT5izAB4RR4aAWpCahA18KHJw6etxWqojDDmxq+jEHEPEZodmse0fssYI954SndEV/d+6Cbot81a45+dIF+SieJw/CDbJSsou2w082miNpz72QNBlXHDjgtM5Q3IteL7DbzIoqQPZY5M5XoYN8ywkmaTjkH9DjrhzM8uXWcLUnC7XJVv/LSNBkMtZ3HS3V2jZoyWPoHhaRZiNxxceso1krEjFx8bv0ngkePHarzttebr0OjNg4iqaWF/31VI2+tvI30e+kTIDyCtq/SHtKGD3OWVxgH8CQvq9/f3ppCtDnX3pkDRYuvRhl3yKVwULw3PewjqDzUIUaUyYVYABEJKaSlIDNJixpI0BByBJrexM795l9SHmuxv1JOHZhXCA0CXcZ6ZmWKuj+xndi2lgpVy+gbuZzYg49upTDQKkuIM0Lik1ashQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0401MB2331.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(376002)(39860400002)(366004)(396003)(451199015)(7416002)(86362001)(38350700002)(4326008)(2906002)(83380400001)(4744005)(38100700002)(316002)(966005)(8936002)(8676002)(66476007)(1076003)(6916009)(2616005)(6486002)(36756003)(478600001)(186003)(6506007)(66946007)(6512007)(5660300002)(66556008)(26005)(6666004)(41300700001)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?38xtun2VFT+vttgWlSb7Hw3AYrKz?= =?utf-8?q?e/U1teL5pjKP/p8WMlXWdsYtov6PARMK/VZytrnULTj9d8PdiG/RjiFku5S+FUPDs?= =?utf-8?q?K12sZim643oSSKKoC7PZU82fZkDG2W6Hd7K8aYDeS6vKRoPVg914lt7hR/YvVAcst?= =?utf-8?q?uIK6harKJzGWBhoAwCbzeiDnwRnAXeIem5sm8YlKBnKb3ofP11WEYQtYow7PdFxOV?= =?utf-8?q?pyGvzasLMF54CQbm2FVgTowJWCuAkMXtBrxHwZGZgo2JfQ2CLebmddF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K?= =?utf-8?q?OZDD/t33cvrM23ZeSxlProP1HhfzEjnflOlQ6KLpCHCujdkh589fptj/pqEzFI+6e?= =?utf-8?q?a3FqGM+FP+6RV4dhnZjzh/wRZdvDifaXQ4jZqb7p5bO3wNj6vAwHMJW6mC/Rsv+fX?= =?utf-8?q?HrB6BrHtsXEd2Gab657CbZVZGRcEen4y2wtq/pX2nvMFZS0U3/+7aJs3o5KEz8mh1?= =?utf-8?q?68LAlcV+98a5t53iF7GckhJ7ZuNgk5JSd1pOFMYcAZImqQw/L2cyjXCQu3II1dCdv?= =?utf-8?q?FtlEWBvmEziedhEw74DJ1wiLV0DjUmNs68sD8rF2z5oOmK9S5j2gQH7ltG0kbqT8r?= =?utf-8?q?rkduz7Xa7Oo5D2eanCJ0E9O/LqAi4WwbFEMgUNQBMWWFgffy0wf8Yps/4abDaffzb?= =?utf-8?q?UbKLMB9r6yY0?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9eff9183-cf00-4844-57a2-08dacddfdd06 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0401MB2331.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2022 05:51:02.4834 (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: Z50+Be5+AtrHtobeSGEpyeZxucr2jBysIzLeqyoRq3aUL/XNuPPe4WMkh7dOiPIZ+yqBwguqD87Q1plHOTqkqA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8600 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_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750355661652132383?= X-GMAIL-MSGID: =?utf-8?q?1750355661652132383?= |
Series |
PCI: endpoint: pci-epf-vntb: using platform MSI as doorbell
|
|
Message
Frank Li
Nov. 24, 2022, 5:50 a.m. UTC
This patch continue https://lore.kernel.org/linux-pci/20220922163206.21281-1-Frank.Li@nxp.com/ The above patch series fork to two parts. clean up and use msi as doorbell. clean up patch already been in https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/commit/?h=pci/endpoint These patches based on the above git branch. Change from v12 to v13: fixed Lorenzo Pieralisi comments in https://lore.kernel.org/imx/Yz%2FuMiElbqB3ThGd@lpieralisi/T/#u - update diagram - Add platform_msi_domain_free_irqs at failure path - sizeof(u32) is because hardcode by ntb_hw_epf.c Frank Li (2): PCI: endpoint: pci-epf-vntb: change doorbell register offset calc mathod PCI: endpoint: pci-epf-vntb: using platform MSI as doorbell drivers/pci/endpoint/functions/pci-epf-vntb.c | 150 +++++++++++++++--- 1 file changed, 127 insertions(+), 23 deletions(-)