From nobody Mon Jun 8 19:47:27 2026 Received: from SN4PR0501CU005.outbound.protection.outlook.com (mail-southcentralusazon11011050.outbound.protection.outlook.com [40.93.194.50]) (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 C4E4C405F7; Wed, 27 May 2026 05:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.194.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779858991; cv=fail; b=aqgKUgE7f32z2mP9Jwb05YgB5tdNmpcfMfg3yt3K41fQQKEYSSNBENhBG5LPCbnBCaTNQ698pZVnWEbJWZW0POrlf77x+gQ0gJw3gzszkggJSe1C27hgBoCrQZzcY2uZnnfW7Re6QN3cEiIGSqWG+E3X23hjJflf9ny8Wwsb49Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779858991; c=relaxed/simple; bh=S8EkWzQbCuayd08Krxyz043modoU0qxC8Du/t8ugwes=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=U681q9iHc8JxiHn4Io4FkDFkQKTkHz/XID8gO6IKTIljwrXycUMdKfg2ixpeueNSeX9rNNCU5YAju7OkK/RQ1VCknPTxM/x+RUfKlSDIPzDWmpOJSn32o3OzMPxhrh3HZ06pZs0VSizXEz1ZQ0Mf6GkM+0yI2oL1TiX3mPGwUp4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=BwInhWDn; arc=fail smtp.client-ip=40.93.194.50 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) header.d=amd.com header.i=@amd.com header.b="BwInhWDn" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SXtrIeDNwTTSYuvryvOjF3b99yRYkaND3GB80XrXPRmXRbYmL53krDDwjxkZyxuFTd9gx0zS1Tag2f3N3sq4g6bZoxWp22+FAI2iNlycx0HcMJN2uWF0yl1WqtkrKr12zKVJlfLUh4pq7hebslfEvOZ+TDP69lZVMAmdpMU7N3VTQyBcwdVAsqnjU4UkaPmhgRltknaeBUY1aZDM0Xyyoh7abiz3IjLyAZoP4Ea89kFd3uiNuEO00UhLhYSYBlZGBjkXAwekFjGB0B191dEypPc25vp213T59/TdBhhP0o2TjduSsOa5cdQShubNTGWTY2+/fk8qUqFjYqt/Y8XS1A== 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=1tcX4Ju0JmFWsYM985UnhUMVbSAcWXikb/s27I8/vuk=; b=l2vQkPjD2T0e9P99SyRTnpTnFHmQ6tOWAc430oX5Ampu02Nkd7SBP/MA4bPitTrLLRscq1eKe+Xhlrn/suee+OhVu/KY/0/alNNrdWjWvkXMqBGgs23G6s6nsib5fWzizhnYMeDjhmOS1BGIilolQbkmKR24ZtszxbEwpgZHFDtocw/Re/fMNhQ2QT53cIiQYUuJVW51XMeCxSwlnTZr870UonJC4PTi0VWsL6OY32kHZTMHI26NbZlq+lJyvbMLZL6JG191HoCf+ize6biytR7pigpiRMiYP1/FjrfDNS0C8PSg5IFTSeHQRuDsddDBhUSNU1Je2F5SGWGuFBIQSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.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=1tcX4Ju0JmFWsYM985UnhUMVbSAcWXikb/s27I8/vuk=; b=BwInhWDnSERsp50RQ+izE9vMG02Hu/TlfqACXHSS5eTKDmED2L6M2qhXDTPkmCICM7FGppt4EoBfDHyWQJKIm0I5HyxrzpT7rE+xb3o5cJSMN8QJ4qowCKLPgJjMO2z2ENsQSmJCWq5iR73XmPjm8EZAHEwUngJ/IPoLb6eS5v4= Received: from MW4PR04CA0308.namprd04.prod.outlook.com (2603:10b6:303:82::13) by DM4PR12MB7575.namprd12.prod.outlook.com (2603:10b6:8:10d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.71.11; Wed, 27 May 2026 05:16:25 +0000 Received: from CO1PEPF00012E7D.namprd03.prod.outlook.com (2603:10b6:303:82:cafe::45) by MW4PR04CA0308.outlook.office365.com (2603:10b6:303:82::13) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.71.12 via Frontend Transport; Wed, 27 May 2026 05:16:25 +0000 X-MS-Exchange-Authentication-Results: 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=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by CO1PEPF00012E7D.mail.protection.outlook.com (10.167.249.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.71.7 via Frontend Transport; Wed, 27 May 2026 05:16:25 +0000 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Wed, 27 May 2026 00:16:24 -0500 Received: from xsjtanmays50.xilinx.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.41 via Frontend Transport; Wed, 27 May 2026 00:16:24 -0500 From: Tanmay Shah To: , , , , , , , CC: , , , , "Conor Dooley" Subject: [PATCH v3 1/2] dt-bindings: remoteproc: xlnx: add firmware-name property Date: Tue, 26 May 2026 22:16:10 -0700 Message-ID: <20260527051611.194844-2-tanmay.shah@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260527051611.194844-1-tanmay.shah@amd.com> References: <20260527051611.194844-1-tanmay.shah@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF00012E7D:EE_|DM4PR12MB7575:EE_ X-MS-Office365-Filtering-Correlation-Id: bb3ea08e-214c-4d61-bc3b-08debbaf1961 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|1800799024|7416014|376014|36860700016|11063799006|56012099006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: 45OHDXju9696xjnrp8doma3llfPv50KaT5F2x+j9/XTMrb72nqBu5Hkg6XnQCiN/XdrUuqpiqHPgKkHk6gy6HfQo1WuaKMohGPnYxtHs+egIsKu2pb8VaOVXExItiS3WC8ixotOoZpLcBQtgKZdfpLPNsyHfKGWYPx9JvCvE96SMo4Al1TDPt2DxOs8VPFUbB5GtoZJajTn2k4o+mXWHDktvRR/FZzQWbKENaKRM0v8dw/qFcmzZJ6Ea0BHymHA+4LY0bIRm8VOyEMc87HPrTa6eBd7pit9kCi05NHaV2w9Iq2C15vb/QvO33bDc3RHh3kq7XVYDfPy/nXXDzAzcrMVSZCivW4TBCCNthL5Khe3fbd3/0kpE3mGlBndsgz3VwoQzzJiGFx7HLVYz6FnY3o4+gENykoRHfA0qndrBCBxwr2RVeoggW8l2S+VyGSm+qmmxoi1g7xkwY00AW6vWCNpJzTjo86XRLQCYFSdqFQaIyQobzyiD/urYuCr/a4MCNN/NwMoo3Pg+l0HjNl9cJ/K/L5KhzBF4gVvSMpuSlk24FJEXMIPzTaYFSOp+d3M0vI02cl+HZnzM7zr+d1Cf9X3R8T4x08jIiAyrqGMQlFAOoxWnR5CzaPC8wjb32SmGjNTFCwCA6AWwAxp5PH+d6YGJx5z2Khw9cJ+jq4kWArm5ondsZEBLv9bHe0GbJc0H3C0ArUG39VQxJgboQxw2CUmDB0war2ovEYDkOEkVPjU= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(1800799024)(7416014)(376014)(36860700016)(11063799006)(56012099006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: S2uPAWwChEyveZp72hYk8cwWK/4RgK9SJ3DZQ0qVqpd8vs30d826WVr+ZFwVTVEzoHkqn24RDZo0jevkF16w0u6dutZD1oFP67TarrNKRAY77iQtUN0b4MHfTzTs+rSprAHrRXCuPm5qz6saSSSzWFgkQn0V3GftdpRRrdwAxE0ifpKL68ZZABYDef4UCrQz58gCXZ5/pU3LJIIrleUWtd3AM5PUcSKWhJHZtfbiop6/sG4EjfjvSbty9EdPZFOcyG2okSxHMlGujptT2d2BjDw12fCHtvtq5uZKUHLE5YxGsHuO0QPCRU2aldFrbAUTxcWGbtnZXXglbH/Z578LYufF2QV84YZGHP0vtM0smrRrYmW4yPMLgOZn7hwfZvZSOU4W8K+LxIzA5jcjpfZdOJ9HSbiuKm8NbqFCFpbRlCiGShPz/jtbgNj2o0vp2JuR X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2026 05:16:25.1866 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb3ea08e-214c-4d61-bc3b-08debbaf1961 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=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF00012E7D.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7575 Content-Type: text/plain; charset="utf-8" The firmware-name property indicates which firmware to load on RPU during the Linux boot time. It is possible to stop the RPU after boot and load different firmware and start RPU. Signed-off-by: Tanmay Shah Acked-by: Conor Dooley --- .../devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss= .yaml b/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml index ee63c03949c9..ae63c3e39ced 100644 --- a/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml +++ b/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml @@ -135,6 +135,10 @@ patternProperties: - description: vring1 additionalItems: true =20 + firmware-name: + maxItems: 1 + description: default firmware to load + required: - compatible - reg --=20 2.34.1 From nobody Mon Jun 8 19:47:27 2026 Received: from DM1PR04CU001.outbound.protection.outlook.com (mail-centralusazon11010042.outbound.protection.outlook.com [52.101.61.42]) (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 4BCF72C11F9; Wed, 27 May 2026 05:16:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.61.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779858993; cv=fail; b=Ev/sFXOqC4rnDHpu1P1ix5M+T6aRw8A/1joVTxsn2SjzRRVaUNb7XCxqzKzZIcdeEpaacG+yXnDXwzzCfWUNTXfxeHao4ipaut4q63u3LBWKma82bIFRLx46yQYNsPllrLtplJBWUP8+ihlLOrzWQTgNy10Oyu1vt8Rwhm9/jN8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779858993; c=relaxed/simple; bh=GbrtKALcGUD8l2E94CiGgBp6+MAjUb/v9l6ku950Bd8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Kd9VYt/p/Ji8OxyntL+zXTMZQdlTAB4TUA+EsOkojQutBQ0dGZCWPap1jMJVwOCUY6/gDPq4TAqtq0P+t5THmE5nEi3ETTmC/hoUnx0f1UJhcfPsvXELmTp9lNeFretGTm7Wox+YrgGL//GWM0h21vUK4lxadefKgXXWO4HMBA0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=vgTjq6Dg; arc=fail smtp.client-ip=52.101.61.42 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) header.d=amd.com header.i=@amd.com header.b="vgTjq6Dg" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aqyf80RGHATn5k+mkVycN6hxH2dp2hgRVd9jvuoDVMrIB14pf25Xfpdf9uAEzqPWk/muhsfGaTznpOYgRgFF3oHPuxlliS9FuPB2GIZFX39FQ1Xqsl6K13uNkS2rU9jp2Lc2enGzVFmGMyO7T7FX2p2Axv2PVBPLZW7d3chstkmXJ37yS0+SsiLnBLbozGgai88/bqW8REqqErl54zoYRiwPFsLvMhVdqosw5tOrAREWjGtPtn+coyQjaYUa+kzey5x/siy9vuG11K3ddbZfefZf/rxnfWhRRHq67bAI4ruhRhEAyIEYmFNutGHwRQNDTg+376JJZhHHwlwqnpdPXg== 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=BqGZjCsy69BlzaLw5VHyXBuuZ3S4tQVZBgAlVTRCmx8=; b=FVuP9kG9d9nOIduxy/thNREgMoqQqivCNKCwtM8UmtkiMLM10j4ibQDgcwRTGI0ymcFwscPmBdLPSX/zRceavyPj6VvUWIImhZfLoQ+xf5swLY4oAQRJsAedhzIofUc2dKHFmRb00VydQ4eyW1wXo2Qeyuo5qN5CwUbSG/4FgH7xzMtAE5a71t+WiPdxq7hk07zEg9JY6T5lFpvBsSUK8bCHEbpbB2d5t+nbxhmNMtrOBtfWV8rIH8eCwO41Mv/JpxkyBLfBh9giURoTVEz5/eiYcYJz7tDzUqZdIG8Z2LDgMNLh3Hh3BpUKq7Y467hGRTzz6SgHEh2mIJ6+mD2cOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.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=BqGZjCsy69BlzaLw5VHyXBuuZ3S4tQVZBgAlVTRCmx8=; b=vgTjq6DglbsuJf56etkHErkeLo/yCLX7MqsyLWOXaWVQslCUNhzRPQ1BqSvBwJe9tz+HGLgfUul1A3X7YB20pjhAia8vYdfe/lsYYxqt32CzCmsS6Uc/cRWKA1Ce3WWkRve1PU8ngsxQqXe5UFA81fb3yg9/I7RaD/yWCAn8gsc= Received: from MW4PR04CA0315.namprd04.prod.outlook.com (2603:10b6:303:82::20) by MW5PR12MB5621.namprd12.prod.outlook.com (2603:10b6:303:193::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.71.12; Wed, 27 May 2026 05:16:26 +0000 Received: from CO1PEPF00012E7D.namprd03.prod.outlook.com (2603:10b6:303:82:cafe::24) by MW4PR04CA0315.outlook.office365.com (2603:10b6:303:82::20) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.71.12 via Frontend Transport; Wed, 27 May 2026 05:16:26 +0000 X-MS-Exchange-Authentication-Results: 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 CO1PEPF00012E7D.mail.protection.outlook.com (10.167.249.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.71.7 via Frontend Transport; Wed, 27 May 2026 05:16:26 +0000 Received: from satlexmb10.amd.com (10.181.42.219) 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.41; Wed, 27 May 2026 00:16:25 -0500 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb10.amd.com (10.181.42.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Wed, 27 May 2026 00:16:25 -0500 Received: from xsjtanmays50.xilinx.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.41 via Frontend Transport; Wed, 27 May 2026 00:16:24 -0500 From: Tanmay Shah To: , , , , , , , CC: , , , Subject: [PATCH v3 2/2] remoteproc: xlnx: enable auto boot feature Date: Tue, 26 May 2026 22:16:11 -0700 Message-ID: <20260527051611.194844-3-tanmay.shah@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260527051611.194844-1-tanmay.shah@amd.com> References: <20260527051611.194844-1-tanmay.shah@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF00012E7D:EE_|MW5PR12MB5621:EE_ X-MS-Office365-Filtering-Correlation-Id: 9af457d8-8010-44cc-3ff2-08debbaf1a3f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|82310400026|376014|1800799024|11063799006|6133799003|56012099006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: QAgRZKbFgq0AA/LHwb7S9MlAkQhfEaHr1mJV2xmq9/tWYu+ORDMSy9mDNm4gA8do5eNJ1Fe7WtjiCTJRD052XgSGkzag1V/IZXbT0njC+7m/Mbq1vWHvAC9+oUWxnsszJQK8mRhzfrL0Ol4Lzm5mgqqGfMaUd0Mtx/+YOliq5RF+vuPF2Hq4x5BhREIqHH+ZeyuufqVBpZyAGNK2YTD7QvPU84AFgyc3WCDgsnmc3z53M+rE4vPmUaIyOAlfd3TQpQKKfNh4kYq2nyZ7apZQCKGQSKxx12SSuelTDO7Bm+TMV+JLF2R1NPVBIT6OkO+ghxO8DILDDvMBS9XkZiY8yBgCI0VLFOJe2RtvWXQ2OK8IEngbxjonffLuVF5tSBL65MnGn4PL9/k+zknkZcAOnbrIYYClAGcSrgU+4eH+UiVFlikX0N9LaDYiSkXB07UUXlMlVamg5Mku8QNruDy6odAUsJvvmhewauDj+Q5YVXCb+B50GlyPTe8T1618BQC3H68UlgaztfHJMvj20rPg+zJ6HVEe+s91jt5TmgeYoyfO7nMlC7PwtrEzQ7o09WcgW+aGBGxtSMnl1eqWKveP/d8LeaZnh2Xh68gpEGZeZUYbprpaLiFPPqyo8zxGcruYc9RZz0x7tEmIIcSZaTbkZq3TvfsXUlNjH/HPijGLFkxSxrWQ1DDlJoJkvH5NX9VuCnSf+EgGHg94QqP6w3UFSkT3duh89sECCyPLNKdDAQ4= 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)(36860700016)(82310400026)(376014)(1800799024)(11063799006)(6133799003)(56012099006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Fdx2eIM34+PE8hFPYOyl+XOCxiwbTp93rIhwolXWMpEqyNCS0I9U3NrQdECYCO6K/1z/ss5SsNDQO100ZFtyA4KuT7LOzun+l9uMmZN+TIGve+UCvsE4kKEmA3TTHFqSOu+mXdZ+kBLy1iK0RGgZfZO/SlEhZuDffjxOEpDScsZc1OcvhfN4v0mW/7luF4Jv7VUji9roA436p8Pi5nPcaHRZYkamWXeHoTsF+cB/U5K9tq4SbHhgKAqRr/kCifiBRsXpu2CIU0s9oqWpXqK36YwkX92jZFNwcf+AmYMyr9+VeRrPin0rcA9/CCA0v/Q7lYzfwXK8eCATLIg3tX0Y8w0r4stZvLA6TE1IqK7zhv8Zs7YgsvnGKYqs34gu1rrTmAsUe1J5MqydOBBBonAade4HeZsZ/0Cszr63+wLO7eCxV9oQjkad05pe+RGuoDem X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2026 05:16:26.5877 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9af457d8-8010-44cc-3ff2-08debbaf1a3f 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: CO1PEPF00012E7D.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR12MB5621 Content-Type: text/plain; charset="utf-8" The remoteproc framework has capability to start (or attach to) the remote processor automatically if auto boot flag is set by the driver during probe. If the 'firmware-name' property is available for the remoteproc node, then that firmware will be loaded and started during auto boot. If the remote core is started by the bootloader then during auto-boot remoteproc framework will try to attach to the remote processor. The current architecture allocates and adds the remoteproc instance before all the hardware such as sram, mbox, TCM is initialized. This design has to be changed for auto boot to work. So, rename zynqmp_r5_rproc_add() function to zynqmp_r5_rproc_alloc() and move adding the remoteproc instance at the end of cluster initialization. This makes sure that all the required hardware is initialized before starting the remote processor. Signed-off-by: Tanmay Shah --- Changes in v3: - add more descriptive commit message drivers/remoteproc/xlnx_r5_remoteproc.c | 48 +++++++++++++++++-------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/drivers/remoteproc/xlnx_r5_remoteproc.c b/drivers/remoteproc/x= lnx_r5_remoteproc.c index 45a62cb98072..652030f9cea2 100644 --- a/drivers/remoteproc/xlnx_r5_remoteproc.c +++ b/drivers/remoteproc/xlnx_r5_remoteproc.c @@ -899,17 +899,18 @@ static const struct rproc_ops zynqmp_r5_rproc_ops =3D= { }; =20 /** - * zynqmp_r5_add_rproc_core() - Add core data to framework. - * Allocate and add struct rproc object for each r5f core + * zynqmp_r5_alloc_rproc_core() - alloc rproc core data structure + * Allocate struct rproc object for each r5f core * This is called for each individual r5f core * * @cdev: Device node of each r5 core * * Return: zynqmp_r5_core object for success else error code pointer */ -static struct zynqmp_r5_core *zynqmp_r5_add_rproc_core(struct device *cdev) +static struct zynqmp_r5_core *zynqmp_r5_alloc_rproc_core(struct device *cd= ev) { struct zynqmp_r5_core *r5_core; + const char *fw_name =3D NULL; struct rproc *r5_rproc; int ret; =20 @@ -918,10 +919,15 @@ static struct zynqmp_r5_core *zynqmp_r5_add_rproc_cor= e(struct device *cdev) if (ret) return ERR_PTR(ret); =20 + ret =3D rproc_of_parse_firmware(cdev, 0, &fw_name); + if (ret < 0 && ret !=3D -EINVAL) + return ERR_PTR(dev_err_probe(cdev, ret, + "failed to parse firmware-name\n")); + /* Allocate remoteproc instance */ r5_rproc =3D rproc_alloc(cdev, dev_name(cdev), &zynqmp_r5_rproc_ops, - NULL, sizeof(struct zynqmp_r5_core)); + fw_name, sizeof(struct zynqmp_r5_core)); if (!r5_rproc) { dev_err(cdev, "failed to allocate memory for rproc instance\n"); return ERR_PTR(-ENOMEM); @@ -932,6 +938,11 @@ static struct zynqmp_r5_core *zynqmp_r5_add_rproc_core= (struct device *cdev) r5_rproc->recovery_disabled =3D true; r5_rproc->has_iommu =3D false; r5_rproc->auto_boot =3D false; + + /* attempt to boot automatically if the firmware-name is provided */ + if (fw_name) + r5_rproc->auto_boot =3D true; + r5_core =3D r5_rproc->priv; r5_core->dev =3D cdev; r5_core->np =3D dev_of_node(cdev); @@ -941,13 +952,6 @@ static struct zynqmp_r5_core *zynqmp_r5_add_rproc_core= (struct device *cdev) goto free_rproc; } =20 - /* Add R5 remoteproc core */ - ret =3D rproc_add(r5_rproc); - if (ret) { - dev_err(cdev, "failed to add r5 remoteproc\n"); - goto free_rproc; - } - r5_core->rproc =3D r5_rproc; return r5_core; =20 @@ -1280,6 +1284,7 @@ static int zynqmp_r5_core_init(struct zynqmp_r5_clust= er *cluster, if (zynqmp_r5_get_rsc_table_va(r5_core)) dev_dbg(r5_core->dev, "rsc tbl not found\n"); r5_core->rproc->state =3D RPROC_DETACHED; + r5_core->rproc->auto_boot =3D true; } } =20 @@ -1304,7 +1309,7 @@ static int zynqmp_r5_cluster_init(struct zynqmp_r5_cl= uster *cluster) enum rpu_oper_mode fw_reg_val; struct device **child_devs; enum rpu_tcm_comb tcm_mode; - int core_count, ret, i; + int core_count, ret, i, j; struct mbox_info *ipi; =20 ret =3D of_property_read_u32(dev_node, "xlnx,cluster-mode", &cluster_mode= ); @@ -1390,7 +1395,7 @@ static int zynqmp_r5_cluster_init(struct zynqmp_r5_cl= uster *cluster) child_devs[i] =3D &child_pdev->dev; =20 /* create and add remoteproc instance of type struct rproc */ - r5_cores[i] =3D zynqmp_r5_add_rproc_core(&child_pdev->dev); + r5_cores[i] =3D zynqmp_r5_alloc_rproc_core(&child_pdev->dev); if (IS_ERR(r5_cores[i])) { ret =3D PTR_ERR(r5_cores[i]); r5_cores[i] =3D NULL; @@ -1435,16 +1440,31 @@ static int zynqmp_r5_cluster_init(struct zynqmp_r5_= cluster *cluster) goto release_r5_cores; } =20 + for (j =3D 0; j < cluster->core_count; j++) { + /* Add R5 remoteproc core */ + ret =3D rproc_add(r5_cores[j]->rproc); + if (ret) { + dev_err_probe(r5_cores[j]->dev, ret, + "failed to add remoteproc\n"); + goto delete_r5_cores; + } + } + kfree(child_devs); return 0; =20 +delete_r5_cores: + i =3D core_count - 1; + /* delete previous added rproc */ + while (--j >=3D 0) + rproc_del(r5_cores[j]->rproc); + release_r5_cores: while (i >=3D 0) { put_device(child_devs[i]); if (r5_cores[i]) { zynqmp_r5_free_mbox(r5_cores[i]->ipi); of_reserved_mem_device_release(r5_cores[i]->dev); - rproc_del(r5_cores[i]->rproc); rproc_free(r5_cores[i]->rproc); } i--; --=20 2.34.1