Message ID | 20230608032152.980-2-venkatesh.abbarapu@amd.com |
---|---|
State | Accepted |
Commit | 2eed42c2f18c739303b098370019e366aeb64ae6 |
Delegated to: | Michal Simek |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=IWbwQL2J; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QcNnD54cwz20Ty for <incoming@patchwork.ozlabs.org>; Thu, 8 Jun 2023 22:29:20 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 18347860C4; Thu, 8 Jun 2023 14:29:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="IWbwQL2J"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B9EBE857D2; Thu, 8 Jun 2023 05:22:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2062d.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eab::62d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D41828475F for <u-boot@lists.denx.de>; Thu, 8 Jun 2023 05:22:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=venkatesh.abbarapu@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lZocyPQXM9gog+6N3Ke1D4dG6ZBOlLS4F0p8Yh97Q+nJUSBOMIjlaWFuUHWdvXMrSAJ5qX5xaqW4fgNeHDIZw4nCSCe4GzGDw4jnrLP1FwKfOS3WayWnnn60BCLQiyEtYHAAZjzjdYrEpNlixT9El/0PFBF7x/Fh7ryZlRW6zKbogArY8SWaqo+EwChO063bctPTNrUjS76j7aB3gLTBHm7AJC3rsoIO312ls6fPt2FdkBNrjgEeZISepiLA7IFr6zitJdUiFlq4z0JUJzz/LJ5ehEgz+4swk03kXM++zd0wJ9jibXT3qdbC6/a1VhrpHFvL1Pwx3spEUc5TkPcrzA== 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=zaST4d1HqYrKMi/uiHM54LdWU2g0A9kxiNCr77i/FIw=; b=JN+F7lXiJLfZkkPGHvMiHWfs4P2eIdkPMKM4XNcWbCZ4SrywHTXW6XD7HsmJ69Th2Oc6rtoxrHRJ/HLLcH1PuVgWkx2++F0SWY6UdAaQDGcDXXd6LCwLGi9Uv1bY0Dk50yDH/Z9sOZN+RXFSN9AHHO7EaD5bIvAbFGVCJGZ1RG8yboPbNB2P8yvLHMzDE6ZdThGBGm7sb1CLQmUUSloB0wZnjzdsMvM7iBeQSc4gPU64VoNr0BM3Y0F62FKKWMkgNhyTOWTVbMHZms9ps2WZFFxH18CBVtEq18jwy29OuvCk/OvnB6pBB2gbIcBZkS+5SxccZwFuCSUTIKBDHvCJww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de 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 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=zaST4d1HqYrKMi/uiHM54LdWU2g0A9kxiNCr77i/FIw=; b=IWbwQL2JSZc7Ngk30PBlrm8zVCScS7HthQpiI4w6duDbzcFDMojafmgPDBPFPgwYP9jCJP0+BX9t43iieaRCiO9gRgU9jTMhc5NGJRl5veAD3awgS87goKTi48/yFA96V/TiywCZBVmzDQE8DJVmY9RQTl5NBcuUbPc001vHQdM= Received: from MW4PR04CA0366.namprd04.prod.outlook.com (2603:10b6:303:81::11) by CH3PR12MB8308.namprd12.prod.outlook.com (2603:10b6:610:131::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Thu, 8 Jun 2023 03:22:26 +0000 Received: from MWH0EPF000971E3.namprd02.prod.outlook.com (2603:10b6:303:81:cafe::25) by MW4PR04CA0366.outlook.office365.com (2603:10b6:303:81::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33 via Frontend Transport; Thu, 8 Jun 2023 03:22: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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by MWH0EPF000971E3.mail.protection.outlook.com (10.167.243.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6477.24 via Frontend Transport; Thu, 8 Jun 2023 03:22:25 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 7 Jun 2023 22:22:03 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 7 Jun 2023 22:22:02 -0500 Received: from xhdvabbarap40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34 via Frontend Transport; Wed, 7 Jun 2023 22:22:01 -0500 From: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> To: <u-boot@lists.denx.de> CC: <michal.simek@amd.com>, <git@xilinx.com> Subject: [PATCH 1/2] arm64: zynqmp: Fix tcminit mode param Date: Thu, 8 Jun 2023 08:51:51 +0530 Message-ID: <20230608032152.980-2-venkatesh.abbarapu@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230608032152.980-1-venkatesh.abbarapu@amd.com> References: <20230608032152.980-1-venkatesh.abbarapu@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000971E3:EE_|CH3PR12MB8308:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c06fc61-10d8-4b95-fc08-08db67cf949d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j3KByiQbVzHJKs/bh6uL/dCbBMR2MNALz3HJGFy6wLmCU3OE+pWdg+sMtb9GWCT2Zt0XLyYeK4K2CKT/n5hEzrw9eQC5BlM6SKY6YoJdZP/K0VVEoWGC41tRD9/luw3gwUslkV8ExRRCP6rM8IEyYpFj/KH9Ye0GJ6zjvQHEoc4oQZv9kHmGdpZAc+OHuxcv5+l3Gig+Hw4sf1Zy3WUfvngP3wtDGLfozQvfataP8i2tOj7OXu7A18Yqnl3Bn7c0OCJ/C9ZEK2B56Q60Ysg0mrj+of9k65iBw5gHSaI5Yj6ehU+M0U6eR8SvyxPdBuAL9WipTeU93mqcQ+yba3NlcKR1jJEp2ET8HerHaT3ciV0P8mK1dVAaVoUmDltBY8m2tVPBNJ3T/HAofgtdr65srQqt+9JlZb1eWY/mv1AKT5QzYMiA4sY0vHPpR3SN9kFmwvQUG/uYW4o5pcl3og8Eoih4rkfn0Z3a3ynR88+C80vcVUd1Ltc3DTKypvvZOZcD5YTqrT5uC6YLTAFAKueUGedLhTedztu4VuHfm5aPDSuq1plKNniBw34MEOY4CvUJ6YKn00WTOo0uTHn41eytWpJC5HgF4igvPi6gMuKvWdn6zq9nh5zuMFWMhG0gLFaVEV4438TosE2HEqh9yPOvVpyIbTHahrxmdVunIuopi/MdU0WEBJOj7YMKkzVTv5fiFn6eTa2BUacreyX21ZrXF7I4QG6Ss50DX5qA6EyDKO1Bqllt7+lef+ayWHfVpCZmJC4CfssQSTtGXIOVIU5OOA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(376002)(396003)(346002)(136003)(451199021)(40470700004)(46966006)(36840700001)(1076003)(26005)(107886003)(82740400003)(83380400001)(81166007)(86362001)(36860700001)(4744005)(40460700003)(36756003)(186003)(40480700001)(316002)(2906002)(2616005)(5660300002)(8676002)(8936002)(41300700001)(70586007)(70206006)(6916009)(6666004)(426003)(4326008)(356005)(47076005)(54906003)(336012)(478600001)(82310400005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2023 03:22:25.0923 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c06fc61-10d8-4b95-fc08-08db67cf949d 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000971E3.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8308 X-Mailman-Approved-At: Thu, 08 Jun 2023 14:28:58 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Fix the tcminit command
|
expand
|
diff --git a/board/xilinx/zynqmp/cmds.c b/board/xilinx/zynqmp/cmds.c index e20030ecda..fff3f37807 100644 --- a/board/xilinx/zynqmp/cmds.c +++ b/board/xilinx/zynqmp/cmds.c @@ -187,6 +187,11 @@ static int do_zynqmp_tcm_init(struct cmd_tbl *cmdtp, int flag, int argc, if (argc != cmdtp->maxargs) return CMD_RET_USAGE; + if (strcmp(argv[2], "lockstep") && strcmp(argv[2], "split")) { + printf("mode param should be lockstep or split\n"); + return CMD_RET_FAILURE; + } + mode = hextoul(argv[2], NULL); if (mode != TCM_LOCK && mode != TCM_SPLIT) { printf("Mode should be either 0(lock)/1(split)\n");
While invoking "zynqmp tcminit mode" command (which is invalid command) on U-Boot, it just works. Check the mode param, if it is valid then only initialize the TCM. Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> --- board/xilinx/zynqmp/cmds.c | 5 +++++ 1 file changed, 5 insertions(+)