Message ID | 20241031-ep-msi-v4-0-717da2d99b28@nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2045.outbound.protection.outlook.com [40.107.21.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 140E71BD515; Thu, 31 Oct 2024 16:27:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730392046; cv=fail; b=Ig+0dsTaKGCMEs5EcXI2EotUDrQMTE9D0DwIIeOyfuObiOQcHa97Kh/6lC2IZVLSVRcuyOfmOMZFMGSr6qR+H64UJPwc9+5uYRlr8BLvw6uaoqhv/gq5QRZm0Tzg97+sw9MPQ3LJx4SQpIroO6ie1nSeIQeiWCo8LKQepyn7RG8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730392046; c=relaxed/simple; bh=/6ZgUJNg/AjeYkLGZsTbnY32/IdmcaPg9IbNO9whdDk=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=AldiKY8BknPUfI8vuGYjcsvkDZhrraKP1/x9HjsEbUM0j6G3ZA+kjLcwn255JhTfXEeHa9/CkGY8lztSKOVuMmNCN6mRffH9/F597c3S4arFyoNcE6y3LwQn4BvuUUuz3EzWRibxc3hT4omRvaSvJBJbaAZ3y5CoZqq4YWZtb2Y= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=BaeYmn5c; arc=fail smtp.client-ip=40.107.21.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="BaeYmn5c" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MK/MXD+AfD1Zm26u+UABePR+1Z1NZCc7qn2GBzDvpoQ1+4v5UPy/NQOe17Tc9rKg4j62oyg44bSw7yRCRtqKP1Oll6DGM+vfKVjDXGPVoqyzkATMi8hGjPCJzCQLuI2JFS43xrag5/P6h+daR60v6uLvluVRa8gQPjqrDj5cVSNlLiyeInFEWrHhfA55/L4y5ZqWR91f78zwJZU9B88rvDkh5Qraxh9FIXwqMDRdkPWC2g0xXiGDFFOEkjXc0dF5XcVhk4R0WZ2qvB+i7rHSHsvFOsCSvT0KF8Swc3sZHY3tn13Jzowdk2pkUI3fbKARpl8LUmFg2zAxYfatb8Rw8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Wa2KqR4/jTiyg0U8vnCyoR0HU8noSpZtDXRMnV0Gw4s=; b=alvwrZkC08Lj8G1u6Lydih96mYvnBvXKTI1b7yqW92EnhlqpoM6H8esnVsKjcu0vAYp2aGqQ437SeRfYlTQqdMgdpAxnpsWXqSvU9dGYTSPz76t+K9BhKLjGc+AMkWxTdSjCm4X/RHTjWGxlS4ZUUNVQ+z9KHWqp+Att4+fbzh7NDsLZ1wEWqK/zUzrmPVCq3aDzfMHcCF+yoYXJn5kFnpAaNwPLCgUIh6FDWQJAp5ekzplmnPQdWzXnXnOV9YHQppY2BjcMW5hBlzaBw4SZ0NZ7M3MIMRcBeIRUbvx+TkCn0EjYOyGoLKPZorGvEwasXLg5qPvMvqW98ur9tgcVFw== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wa2KqR4/jTiyg0U8vnCyoR0HU8noSpZtDXRMnV0Gw4s=; b=BaeYmn5cKyWyV4/DOWuJD0sg9mPkvViYmcyU1AVcMoUByZ5fTfCqiSdv09VgVr1JaXRc+I7vizOhbvGDzLwCkkjtA6gLuctK+QbWoMiSXxqXl5BNxoPkgxBUCbiIFM2Xp7YJSjFHwSnyLV8U5wt+gsh/bxu3p79FhTthKmVzFBusp8wnf1JknqtiL30Mo5zr3c+CthkUM9hfRKdjGgD385nb0/UXUL7j35DfFsj8fLfR0iRIfPTEE6oZEsYmi4547X1cdDiP2SnWf3qwZlFmxy8UNl0Azg9qUrUxuRgxNtMHM9FHUMzlRFLKV85vkLcvfLzB8KrsS3Av7qUSLfkmqg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA1PR04MB11081.eurprd04.prod.outlook.com (2603:10a6:102:485::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.25; Thu, 31 Oct 2024 16:27:14 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8093.027; Thu, 31 Oct 2024 16:27:12 +0000 From: Frank Li <Frank.Li@nxp.com> Subject: [PATCH v4 0/5] PCI: EP: Add RC-to-EP doorbell with platform MSI controller Date: Thu, 31 Oct 2024 12:26:59 -0400 Message-Id: <20241031-ep-msi-v4-0-717da2d99b28@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIANOvI2cC/zXMQQ7CIBCF4as0sxYDBU115T1MFzAd7SwKBAypa bi72KTL/+Xl2yBTYspw7zZIVDhz8C3MqQOcrX+T4Kk19LI3SiopKIolsxicQeu0dsoRtHNM9OJ 1h55j65nzJ6Tv7hb9Xw/ichBFCymQJhxuVl1R2Ydf4xnDAmOt9QcZ9wrMmgAAAA== To: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, =?utf-8?q?Krzy?= =?utf-8?q?sztof_Wilczy=C5=84ski?= <kw@linux.com>, Kishon Vijay Abraham I <kishon@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, imx@lists.linux.dev, Niklas Cassel <cassel@kernel.org>, dlemoal@kernel.org, maz@kernel.org, tglx@linutronix.de, jdmason@kudzu.us, Frank Li <Frank.Li@nxp.com> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1730392028; l=5981; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=/6ZgUJNg/AjeYkLGZsTbnY32/IdmcaPg9IbNO9whdDk=; b=7kQjszHaR850zARy0kXF2zGwV7sXWlmAqZkqafBhwQOHSQ3C+rfawLmq1giLY4FtzOaxBcgQh TNYwkBoA2G3DdpqUXpoO37b5Wb54+06lf9U619XQaO11KuS1hlv6nQz X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR08CA0056.namprd08.prod.outlook.com (2603:10b6:a03:117::33) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: <linux-pci.vger.kernel.org> List-Subscribe: <mailto:linux-pci+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-pci+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA1PR04MB11081:EE_ X-MS-Office365-Filtering-Correlation-Id: 37ab7dbe-91b1-4265-5508-08dcf9c8dfe0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ZqbaJsD81rHSpasL45WMbkDJZ9TajLv?= =?utf-8?q?6DQW2QZUTBjRecx/onx7rn9GSwG633amNIF0Ko0o4sNlqs5CrjL+GD4Pxve7G//w8?= =?utf-8?q?uhM3gzmGmpCny87PCdNWmY0crc4iwdYkmej54hQth6EVg3Wz0mne6jyTknFnuAwGm?= =?utf-8?q?UJO/NtAJ4CzuoODq4SforMej9cjMGYyqeZ8F8PhvD+XhABkwNi1gEAufCERfBS5aX?= =?utf-8?q?Se8EdHf7soDwuoHDkdGtk5ehRLV4mDSq5h4QOcfuXaogml2Qhx65gBG1JHG3wWZbW?= =?utf-8?q?3T8R+ZoGFBtbmHgtVtozGMugVbXpOA5Ppreei5DGeeDSKyHTK1nGpRF5gFg3Q1LUi?= =?utf-8?q?UkZ2/2OdMHgeO1ClD9Zqt9plecK0g7qu7C5Covc28d6dzvpQ8YF+Gm/HiYofrhxJA?= =?utf-8?q?8IqkrVp0Z2Ngv1wCEB7j3yhfwMAImeIKj7kb+1bOblCFgCgeHmzdceVYP4V46B1Za?= =?utf-8?q?mkytHPRqb2p7645sCMnGI1+FMVsw6GSDLsVO3EcvxCekY7cuKdH8BnJaymJ7Wm13c?= =?utf-8?q?6Cgzf6vppyg/U4Jg50fYuaziY41am0tcO3kp3F3qqK4m8MNQpD1LlO23/9HJ1AecX?= =?utf-8?q?Mu/aVk8xiuYknt/7LsmuYyOawVinRbfIl8O726f9RyNTCazffWc3Y7yk+2cMx2tl5?= =?utf-8?q?A9xE75GNZLLVYsChc08cuyMM1utAxPq6gOWOE3WAcS/H+Isc7ypVbMjPqARoWpanr?= =?utf-8?q?cks0V4pG5dZVzfDeqbYckCE+C7xyw9qo/xBHBl+PbuOCTT8OkK1eG7yA4HPr/t9Ps?= =?utf-8?q?IpBjlof1ICz60yJoC4UIPBxZabdBfH8BB0MV5csO49N8NLjkEGYYYX2mGyzkU7J3d?= =?utf-8?q?n7lprKcV97/TSUtWy3lsKLRQmm/qo8vb+Bf212cpm8XHdMVwGaA2atdhqOpJXf9BG?= =?utf-8?q?OKDfj1m0X6uoPXNZAKCn0DZW6MgyAg8buPSGlQ0KEt/1O7IwEFV4fQ0p02JQ210Is?= =?utf-8?q?jGfYvdMSUAeCWQlJKVBHLiTVr+SGp86sMdBurMTqfjoSzJlnSkHyF0HlDdJjVdnt7?= =?utf-8?q?Z5uybgd3IduoWF/2CgR0L6VN1qHxiBvkGYBdZC+Jl6VxI7VR62Vsc4Nkd31+ivUho?= =?utf-8?q?mOKv3/olB/UXBVoEtcqGbP24prlZV9wJRRYt5isI/FOw85Y0+xiODBOF0Shv/YQqw?= =?utf-8?q?FTvOmLhiU1Yak+IThhOFhsS43m7VmXHuTE34xhszv5s7U2Jx/OwSpjexGAUZoGfGh?= =?utf-8?q?coha3occ+LpwOU+OxypzIaq7baIlbk0SHCuCyP+JRWfRAmMVQ9DLVA5hNSncK7n/N?= =?utf-8?q?uB7E5j8y8nbpQPSKpw8hR/sd5pRMVrWfl6A7TLiZvPiAvuQU6RiVDwoAhoc+SmKcx?= =?utf-8?q?cx2s6vdbZDL6?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?gyK5Icp+iZUDMTq72MVUuNtGgKfB?= =?utf-8?q?X79vWsQMxD3eflKjlBPYNfQRqgrmXct3zIcpCJcp+LFKoIsFKIhVCaIpxIv31Kynt?= =?utf-8?q?gzzzw5+qxmVcqvPXxSlTeO/IXXEnE0QIUsWgzgMW0BKsVhe3rS0XYHMQ30tLQvikZ?= =?utf-8?q?N7k9l5zGDBiawB7xlVtZnVNRIroQg6r0KRDHzeNuACU/0Fd2N4LyxUZFjKN0Aihl9?= =?utf-8?q?GmACEfpbGBltlxcPZ/BEYj1vzGOxocnRXHN9VloXwZBsUO81Csa851BbWjfMun8qT?= =?utf-8?q?BzmBtTaIvDePIvxpSPlEui4hC+PAl8cwaxKIBj0BMfMyLUubimqQAhFR1CmW2aiGM?= =?utf-8?q?QOXFwb4V/M0ZAJI+p097V+IzYpZKyqOgkrEgapk1pnBJuYih+/vaSw9vj9nzIXk1v?= =?utf-8?q?5+SV64HQomeICawmeJ1YAeK2AqRxFIF2IBU5xdMOf9wb2FcznfObM07lPaIr6Gz2U?= =?utf-8?q?ZTgwx5+SO3idkpDBgZs8+GMo1DobWTtN/AOKGSa/PeCh9AN34MYX7CmuqXAIAFmy/?= =?utf-8?q?iWZKY3WLbGj/GMUAtShMSisJL1Abn28oeETegYh9yRFih4AV3wE9HEG2Nq3DMvnq8?= =?utf-8?q?FWPM7byrqm/EC7tVcu8d+YXPUhqCoATyTCRdujE4fKKE6wQzpNo32rGKlChKbJTGT?= =?utf-8?q?Ml5x2JBrbLvF4x8hSFwARZ/ljV+J0BKT9sQMpzHuoJbxNmd4XXlkexr6YKKqDp+v9?= =?utf-8?q?Uqyoi8mF39OopK3Zwwt853hXIcEXF0/94i2fMpUHGow16bBgAc15qAX2dEEjyQQ1q?= =?utf-8?q?JMZF4usqpo9Bbs+ixi9YE8JGR8sc+q2o/qV3uvYSwqKWmd7jZq21JVzWCJgQxa84S?= =?utf-8?q?lkqLKQH0n2KodLnVYPvacPEgiJ0fsOO2/06JpWRq55lMI1lZStBNMo0IsmU6XMSHw?= =?utf-8?q?KTjF9QPopRpqfcNQVmfjebtd5cpvToIEqO1b48RL+h/6XI7J7g6YNB97ljzZ4gx8j?= =?utf-8?q?FHsO7zsf76CZ+xKUq0H/en/bLew8jPRxHP8GoI389wp5ALvIVtMebeHEDS15a3fbh?= =?utf-8?q?+k6XKKcY2XAcega6T4WlceOdw054QJuJXF6ZKcRakxU5KcZqsSxaH8FScVCJwQUkn?= =?utf-8?q?qOV8V+hjJ4/R+Ml3a0gFXnrMPL52+BHtFqHT6b2sdApW5AiHONYWbpqYK9Ty1/8kP?= =?utf-8?q?UfYqg6mMQyjsKpM/dMqebs78BlGibRA7Coz+TJds/ylXKRfGatOxcT+8QQTe36ZER?= =?utf-8?q?l+NhWURQtKRc83md44Ufdek4Zt8Y0T+B3kOHm5f67fWMB4Ik/Eq/BZeJkQHBlXSE1?= =?utf-8?q?h6RBXh7e26XnlsOGQVP8uk9nSwEyUEvxg01wvlVSNC3h9k1h01TJvMAOMzPgoZeN/?= =?utf-8?q?yr2fjeI+FlgwCYb99CbB9RtG/AtpjzV+KCXONQKlkA9WGAsrCG5nrK6FcZLUTqJ4a?= =?utf-8?q?iXq9+Nlnu7buH2i18DoYBTeBkG2KMbXEVuQo668upAxZ52SPTi3iqQOst5C+Ed/2H?= =?utf-8?q?4HZEzKCsDrl3EXTZmgTMZ1Z5+UyHm2+750jXY69KQg79yElFbGS99dbc=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37ab7dbe-91b1-4265-5508-08dcf9c8dfe0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2024 16:27:12.5438 (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: 7SN21zDEsJ62kzUx84UOBKOdG1ZDTvdJQcGkPNhiqwSyVQNtixQd7s7JZolMn2Q5cwyIKeY0kXda3J2njPZToQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB11081 |
Series |
PCI: EP: Add RC-to-EP doorbell with platform MSI controller
|
expand
|
┌────────────┐ ┌───────────────────────────────────┐ ┌────────────────┐ │ │ │ │ │ │ │ │ │ PCI Endpoint │ │ PCI Host │ │ │ │ │ │ │ │ │◄──┤ 1.platform_msi_domain_alloc_irqs()│ │ │ │ │ │ │ │ │ │ MSI ├──►│ 2.write_msi_msg() ├──►├─BAR<n> │ │ Controller │ │ update doorbell register address│ │ │ │ │ │ for BAR │ │ │ │ │ │ │ │ 3. Write BAR<n>│ │ │◄──┼───────────────────────────────────┼───┤ │ │ │ │ │ │ │ │ ├──►│ 4.Irq Handle │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └────────────┘ └───────────────────────────────────┘ └────────────────┘ This patches based on old https://lore.kernel.org/imx/20221124055036.1630573-1-Frank.Li@nxp.com/ Original patch only target to vntb driver. But actually it is common method. This patches add new API to pci-epf-core, so any EP driver can use it. Previous v2 discussion here. https://lore.kernel.org/imx/20230911220920.1817033-1-Frank.Li@nxp.com/ Changes in v4: - Remove patch genirq/msi: Add cleanup guard define for msi_lock_descs()/msi_unlock_descs() - Use new method to avoid compatible problem. Add new command DOORBELL_ENABLE and DOORBELL_DISABLE. pcitest -B send DOORBELL_ENABLE first, EP test function driver try to remap one of BAR_N (except test register bar) to ITS MSI MMIO space. Old driver don't support new command, so failure return, not side effect. After test, DOORBELL_DISABLE command send out to recover original map, so pcitest bar test can pass as normal. - Other detail change see each patches's change log - Link to v3: https://lore.kernel.org/r/20241015-ep-msi-v3-0-cedc89a16c1a@nxp.com Change from v2 to v3 - Fixed manivannan's comments - Move common part to pci-ep-msi.c and pci-ep-msi.h - rebase to 6.12-rc1 - use RevID to distingiush old version mkdir /sys/kernel/config/pci_ep/functions/pci_epf_test/func1 echo 16 > /sys/kernel/config/pci_ep/functions/pci_epf_test/func1/msi_interrupts echo 0x080c > /sys/kernel/config/pci_ep/functions/pci_epf_test/func1/deviceid echo 0x1957 > /sys/kernel/config/pci_ep/functions/pci_epf_test/func1/vendorid echo 1 > /sys/kernel/config/pci_ep/functions/pci_epf_test/func1/revid ^^^^^^ to enable platform msi support. ln -s /sys/kernel/config/pci_ep/functions/pci_epf_test/func1 /sys/kernel/config/pci_ep/controllers/4c380000.pcie-ep - use new device ID, which identify support doorbell to avoid broken compatility. Enable doorbell support only for PCI_DEVICE_ID_IMX8_DB, while other devices keep the same behavior as before. EP side RC with old driver RC with new driver PCI_DEVICE_ID_IMX8_DB no probe doorbell enabled Other device ID doorbell disabled* doorbell disabled* * Behavior remains unchanged. Change from v1 to v2 - Add missed patch for endpont/pci-epf-test.c - Move alloc and free to epc driver from epf. - Provide general help function for EPC driver to alloc platform msi irq. - Fixed manivannan's comments. To: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: Krzysztof Wilczyński <kw@linux.com> To: Kishon Vijay Abraham I <kishon@kernel.org> To: Bjorn Helgaas <bhelgaas@google.com> To: Arnd Bergmann <arnd@arndb.de> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-kernel@vger.kernel.org Cc: linux-pci@vger.kernel.org Cc: imx@lists.linux.dev Cc: Niklas Cassel <cassel@kernel.org> Cc: cassel@kernel.org Cc: dlemoal@kernel.org Cc: maz@kernel.org Cc: tglx@linutronix.de Cc: jdmason@kudzu.us Signed-off-by: Frank Li <Frank.Li@nxp.com> --- Frank Li (5): PCI: endpoint: Add pci_epc_get_fn() API for customizable filtering PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller PCI: endpoint: pci-epf-test: Add doorbell test support misc: pci_endpoint_test: Add doorbell test case tools: PCI: Add 'B' option for test doorbell drivers/misc/pci_endpoint_test.c | 63 +++++++++++++ drivers/pci/endpoint/Makefile | 2 +- drivers/pci/endpoint/functions/pci-epf-test.c | 104 +++++++++++++++++++++ drivers/pci/endpoint/pci-ep-msi.c | 128 ++++++++++++++++++++++++++ drivers/pci/endpoint/pci-epc-core.c | 23 ++++- include/linux/pci-ep-msi.h | 15 +++ include/linux/pci-epc.h | 2 + include/linux/pci-epf.h | 19 ++++ include/uapi/linux/pcitest.h | 1 + tools/pci/pcitest.c | 16 +++- 10 files changed, 369 insertions(+), 4 deletions(-) --- base-commit: f231847d7f5a171be4566099f654521606b3ec37 change-id: 20241010-ep-msi-8b4cab33b1be Best regards, --- Frank Li <Frank.Li@nxp.com>