From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.56.61 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796320660; b=oYPDquCXI2HeJ8G5qLT3Cie/HXasd/Ni4fgyaj3VCyVK1cuFSIsnZYEhASYee5JBXQBt 0TypI/OIj1mxNKaV83PGI8reWomKak/eueVD/PGjxTMGE6y/m4vXLgh0M+WEhhwf+b0Dy +0rIYMMW6+JRUsezn9DLEPHaUvSWatVft3+v0GBF3mQgldpc6/spysCXphOdEfhyn+AAy NgGc4CcWNgdCmpkrhcHDNTYWtx6wbnHJzY4JI6XVuIabqULc9NpLjEDaoz/QgumO/Bf1s iQXWE8R3QKAUB1hgZo4Ae6rAIE4tX2qIvV39maXQ26EEt/54B4e8vFd2SD6FeCFMpVQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796320660; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:Content-Type:X-EOPAttributedMessage: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=wlBqTwL+KziTK6VNsTqRroZoY3NfXURbaBP/XsveoQo=; b=PGjxX2ygBuKJTR1qIjaPOpNEKu1IAcDoO3bP+cpt8m1jaKxfmAejoTLXVUsscNj2bE/4 tpWHl/O9aRk8dkYQIB/lhYdQNbZNglrZAT+hP5jwW7WkY+0bnUycaE41PU8t7d+GcNl5H 1zAG7SwH9DVLq7l3DaV2deTxVnRAzP0jKL5pNiA5aB57LSj0ukVXoRAYsO5qAO203Tw5q u35K23HAoKc3IKYzjo+hU9HEiCi7QyjG3hVQn6UUbCwGNOt9PSpYPmkOHiGUR2yUriMRC xV83T0Vjvnq/SZubQ87F+1KnalxuRz+EWgtSkrMQLe2ilKuHS26awbXRFx3Rsax1Bbg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=Lm+JJeqY; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.56.61 Received: from BN1PR04CU002.outbound.protection.outlook.com (mail-eastus2azon11010061.outbound.protection.outlook.com [52.101.56.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E12E7606A682; Thu, 3 Dec 2026 17:57:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E12E7606A682 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=Lm+JJeqY ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tDLmwzbnHPU2GZe8D9qOOaRLyRwhesBwR2n26bjuDGXLis5jyEvh6P/0JA60WUKri4tEr6RMGQF/FL3Zrxv3eHXJQifu536IQmhu++AtSXrNBKK09cqpzet6HfNePEND4suRPvcLBVB9nitbAwupWKZCRqRFStPvuFYfwL+Ce6Nc8zRTeUF49jNXA9XW3wGwBFUTbjdfy3/jC1013N6OAFyFgAS0CZCXgyU0a1dqgtNEEF5xMLJrFgoIkgr8lhRBb03q9mE15kze/v2agXolOjgNgdTC9nYRrwutwYL9u/n+g6bBbfl7g9tw8iC2nVCOjz4m2EkT9n0SfMkii4qjFA== 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=wlBqTwL+KziTK6VNsTqRroZoY3NfXURbaBP/XsveoQo=; b=Ae33ZNGDPURbbl52KqXvKczesO+qLdc4gKvvUWSKsr0fhQsFi67t27fO3vgHNUSsq1FYL4Yq3n9oTc4DAfxPpVY+5HDGnukqb8FtdUDhi4my+50NHVWi+yaj5o0ADMpSxTuoJ7ft3FGVD3MZXhde/Q8gRXIYuFi4l/T3L68rXEomMVjxZcpN3xYYJ8D8NzrrubES/EMLpVaqHglfHaEhKruiOLvw56rCp6qNH6eGdp90BqdCaXcwVnjEsf7IzfqUSdoyvcLXLM963EzppCvPf66wBzF1chP+DwL+yEPqioAp/YlSPjZmHuF0jvXLeAkWVJuzUcitvGoG6GpDw24TJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wlBqTwL+KziTK6VNsTqRroZoY3NfXURbaBP/XsveoQo=; b=Lm+JJeqYCNIVU1fO04piFko6v9Gj+A5U/e/RIeQUEmN/QY2z9joeyRfKywHkJhDuOFtVt53yGghfFnHq9IOJrLeBOPVvrOXqPV8/lj2xE/a528XlcadY/75bW3T4K0JQ7W5QjFIQ56YiKvuXhrZutlPSWCaiskQ4PR3gEpp75jU= Received: from CH2PR12CA0021.namprd12.prod.outlook.com (2603:10b6:610:57::31) by CY8PR12MB8409.namprd12.prod.outlook.com (2603:10b6:930:7f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Thu, 3 Dec 2026 17:57:35 +0000 Received: from CH01EPF000BE94D.namprd02.prod.outlook.com (2603:10b6:610:57:cafe::5f) by CH2PR12CA0021.outlook.office365.com (2603:10b6:610:57::31) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.615.8 via Frontend Transport; Thu, 3 Dec 2026 17:57:32 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by CH01EPF000BE94D.mail.protection.outlook.com (10.167.244.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Thu, 3 Dec 2026 17:57:32 +0000 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 11:57:32 -0600 Received: from xsjblevinsk51.xilinx.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Thu, 3 Dec 2026 11:57:31 -0600 From: Ben Levinsky To: Mathieu Poirier , Bjorn Andersson , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , , , Subject: [PATCH v4 0/4] Add AMD PL Mailbox and RPMsg support for the AMD BRAM remoteproc Date: Thu, 3 Dec 2026 09:57:27 -0800 Message-ID: <20261203175731.661503-1-ben.levinsky@amd.com> X-Mailer: git-send-email 2.34.1 X-Mailing-List: linux-remoteproc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH01EPF000BE94D:EE_|CY8PR12MB8409:EE_ X-MS-Office365-Filtering-Correlation-Id: 91244564-84f6-476c-76db-08df5166e7e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|23010399003|7416014|376014|1800799024|36860700016|5023799004|11063799006|18002099003|261009223327099003|261009223027099003|261009221227099003|261009220027099003|261009221727099003|13003099007|56012099006|10067099003|261026121527099003|261026140227099003|261028144727099003|261021123027099003|261102123227099003|261022105027099003|261021121427099003; X-Microsoft-Antispam-Message-Info: EnScA2p2eB3/WeY4i/l6yWfZU5XwU655wxnbutCp6AyWvRWzLTr2qMJoPFH6piVEAyL/3MFX9Xf9T5/Dtz5WOHLh9rzncHmpeuttJqkyvw7kUXx6VZ7/vsG/c0QrpNaIRFeH7EBUMoWfuuoXrlVWUomxdJyep/mQMivb2ogP/kFOYS0jXdBh1Ouj9cTFZ+dMqH5eVW4Y+d1DIVhf8U8iUl7oSQG+ushq7wiwYgCZ0Kapq5L+o1Djm6Kpc7uGIXjK7i32Zuqt0V5WLhOSkSra9l/T6a5ATrMTPm1VDBl0EQ/1Ok1OEUTmmP1qjN4jZZK52mOo3qQ4API+J8xoHzHYLqyb1fO/5ROwUH+SXNEH37rsTviuFnkfKde+/sAEsajbk4v+2RdI4sSEp8eqlAGk/qtl095u2V43n4Ba53R0JfE9YlXJERJnrvWeBEw7hMhrvLcv13wPPk/Wk9jkN7nbULeLRnIebndDsvNacxf0Iaxy6REGwr5jbiUgR8eAgqppCOLe3ZrG2rLJ7+NxkX5rVxjFePetiqm8ehRdlMDmhLNumj9swRnprzvFJVwy6+zA6K041IGpmnOb8CkT76T+CCaVnsSYQlhhChc8/kOXzEhcfNHuSZNI+uiv15Jlm4omK+NYRABrb2f1IvhOp75XuEFrLrDJXELT9IpshioxC2s= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(23010399003)(7416014)(376014)(1800799024)(36860700016)(5023799004)(11063799006)(18002099003)(261009223327099003)(261009223027099003)(261009221227099003)(261009220027099003)(261009221727099003)(13003099007)(56012099006)(10067099003)(261026121527099003)(261026140227099003)(261028144727099003)(261021123027099003)(261102123227099003)(261022105027099003)(261021121427099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: l+lc0R5lY3WGhvUf0fHpw7MyEN6cmD21Tl0HCf04kAeQTolGTM7e+mMKjtJ+08CmGvd46qhZi0EA7EFxByBUsoSBHr7H+vBthgxojBboWYRe9vzTMmLBo8aq+aFhWrPM6MxMHY6y6+kzywEHzn8S2YZbnWpj5aVkZnYeWtoZUKkEZU05MSBD294usJPiGYL9B8sMAfH7+81gAZEu1kyeynnrHkrqh+GpBUnOnYg+vkg27Ov4myw9Y3Dq4I+Eq2H0pBM9CNcD+Z5MLlpO+6kOXlHU19fwkAGMCSHWgkHrEUJ0YgaA2zRx0+Tu+fhwGaFs8VBvf5C/evJgMYg/ghs0qurZrr7k3IlQs7RA9+eLAPOqWvBvjlyP13Bb7t1ZkIyF3WqOBBCOvz7RsKw/x7/4l9ECjAFmP/fI9C61yQFEMKUT3aQJETFrm39r949jOOfO X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 17:57:32.8090 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91244564-84f6-476c-76db-08df5166e7e0 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH01EPF000BE94D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8409 This series adds a driver for the AMD PL Mailbox soft IP and uses it to add RPMsg support to the AMD MicroBlaze/V BRAM remoteproc driver. Patches 1-2 add the PL Mailbox binding and driver, and patches 3-4 add RPMsg resources to the BRAM remoteproc binding and driver. Changes in v4: - Drop the Assisted-by tags; tool use is noted above. - dt-bindings: mailbox: Drop the lkml list from the MAINTAINERS entry. - Add Krzysztof's Reviewed-by tags to the binding patches. Changes in v3: - Drop "remoteproc: amd_mbv_bram: Bound device name formatting". The name is already bounded by rproc_mem_entry_init() and a DT node name can't contain '%', so there was nothing to fix. - Drop "remoteproc: amd_mbv_bram: Restore reset GPIO direction after PL reconfig". The problem only shows when the PL is reprogrammed while the devices it contains are still bound, which isn't a supported flow. - dt-bindings: mailbox: Reword the description, which no longer refers to a "register aperture" or "processor-facing interfaces". - remoteproc: amd_mbv_bram: Add RPMsg support: - Reject memory regions above 4 GiB, since the remote uses the physical address as device address. - Validate all memory regions before registering any carveout. v3: https://lore.kernel.org/r/20261119220405.2838553-1-ben.levinsky@amd.com v2: https://lore.kernel.org/r/20261105051902.1646651-1-ben.levinsky@amd.com v1: https://lore.kernel.org/r/20261014213426.2957480-1-ben.levinsky@amd.com Ben Levinsky (4): dt-bindings: mailbox: Add AMD PL Mailbox IP mailbox: Add AMD PL Mailbox soft IP controller dt-bindings: remoteproc: Add RPMsg resources to AMD BRAM rproc remoteproc: amd_mbv_bram: Add RPMsg support .../bindings/mailbox/amd,pl-mailbox-2.1.yaml | 71 ++++ .../bindings/remoteproc/amd,bram-rproc.yaml | 21 + MAINTAINERS | 6 + drivers/mailbox/Kconfig | 11 + drivers/mailbox/Makefile | 1 + drivers/mailbox/amd-pl-mailbox.c | 378 ++++++++++++++++++ drivers/remoteproc/Kconfig | 5 + drivers/remoteproc/amd_mbv_bram_rproc.c | 295 +++++++++++++- 8 files changed, 787 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/mailbox/amd,pl-mailbox-2.1.yaml create mode 100644 drivers/mailbox/amd-pl-mailbox.c base-commit: f1715c0c04606ebbe832cc760abf49dfd6f2ae1f -- 2.34.1