From patchwork Fri Sep 29 10:55:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 146519 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3982249vqu; Fri, 29 Sep 2023 05:18:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF70SDon63j6jriOKsoWc3xTZIUmNaArpn9v5P4uywHvLvZvmkxHyK9D9rm6DDBLPHX+EoQ X-Received: by 2002:a17:90b:50d:b0:273:83ac:5eb9 with SMTP id r13-20020a17090b050d00b0027383ac5eb9mr6514083pjz.4.1695989920992; Fri, 29 Sep 2023 05:18:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695989920; cv=pass; d=google.com; s=arc-20160816; b=gZSxaGIq+90XCxO4+qa0Bc2L/QYWUPJWI5y/pXfpln+TJ4sAQHfJEbU1mUN10gFeue VaJsjN93seKP84jydiIONBE3v9Khuae7ahEUNt7QXkyT0/rihamWqXjtwlhki2DlZNl6 0vZwgkcLX/O461ekoV9w0JQt41zUXRrf8drmLq3icfPBQZrnOaB/hiXxkeonBZ+Zr6ED W7cTkBtqmzD3EuIDcbHzMDUE7NOq+xxLRsN5VNLJyCqKRUdI5P16qvxd4wZwt41J8HPp zloJ6R40Lf1affkfyaYbJkSmxIKHppJFOPTRYFu7VnUW9tvyDv0/mTuWAjfwSXJxPwiI Wpyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/KyZeer0+O9IJCYIfYBm2aTpBVbpw6pEzNjZY9ptrM0=; fh=K64Gs6w/dUY5eJJCnul+TLyTCQYUdAoEFvTRboRIq6Y=; b=0ZB7EGSY09u9FDl7BsmaCztzFPDw/HsjdvFTy41S1zjHmXn3jmKYu7Y3b7U+5eCuqQ POmuPRUPIubYeZ4meoxW8qWiTfuRD3C3huJVyp6UCUoaBxBw8lPBy3CIjVcCkGwYPxTv 2eCGbOIi3g15ZKQp7q0ZGegnNOBh+6uq6TwEEHLuMOBLmR2clh6++iKVl6VfoMtPSiYY z9XjTvTFlCvsoEc7cigEjBF8VUc+ktIVBngh7wWrT4E9YGQn5a1uH+Nkk4TOKhmBNJay 5a9r0c2XfZryRXj1Dqj9wLU6zS7T3J+obPJHi+xRLVbRmtr4abHiWt0Qww/WIxFRcmNV +NBw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=tXDJOczf; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l190-20020a6388c7000000b00565325c6ca6si20786271pgd.489.2023.09.29.05.18.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 05:18:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=tXDJOczf; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 15A52819A68E; Fri, 29 Sep 2023 03:58:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233187AbjI2K5y (ORCPT + 20 others); Fri, 29 Sep 2023 06:57:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233112AbjI2K5i (ORCPT ); Fri, 29 Sep 2023 06:57:38 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2084.outbound.protection.outlook.com [40.107.243.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8DF211F for ; Fri, 29 Sep 2023 03:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XTx1+cmdFutP8tsNMGg+lrfNWaoCqJSyov5Bn1WHg4TOmiyh3T3kNxOcwPqBA8KH+8auyG2cx/V/FOUbLtaYNAvsY4g4pazLjQTNvQfKnzhKCdGeG7BJEjzkyJr8mN9uj6lAiZO9DlNSourjUBU14KGl2MMmkHJd6g5vNg3F0SS2L4YV0hA2Q9ekRtKZ1iffGj502xPo3W6balHWNVIzCeDO8Oi3+E8TsKIn/PcCps+oLI+Dgph8DwJGuqViRDlyDOck2afq3UGiiZDfXSlXCHv7koTEk/fEOOFAZASeqUDBw4I7X/mC6/2MGG6l3zMW0PlW2eHMjxolnlpXZ0Zo7A== 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=/KyZeer0+O9IJCYIfYBm2aTpBVbpw6pEzNjZY9ptrM0=; b=D/Mv+E6l8P5AuYTZz021avbRMKNRdYgLAUnA3USuk3Au3NYp1OF3LTjSvA+r0PN28OehFYb7jaAGymp8dMk9P5PlQqUx0wySjAuF3xYHLkSxg8TXb5T6cClOjAPIQu0IAv8+vuKueM9xxdYUK9PVgAXRah4+idsnDQkj/zACHTnbhT4WJlT9z7ohjVHnGHJ18ZZcpNxI1Sc+HASM0AMe5k/OWynCRyAJOeUWvYnKgxqjzBMtPNZuJQPkfXWfyb31TJszdUNk5tQhFLKoSTTnZt9imfccXGIe91t9fp7VZsbBH1SaGS4wdqm5TwPIxACv9xf6thwe7fxORLdN0hiQrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linuxfoundation.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 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=/KyZeer0+O9IJCYIfYBm2aTpBVbpw6pEzNjZY9ptrM0=; b=tXDJOczfAv9zS/j0+/MI1t/6B6c4fjTLC8x5KAjhpC4rECov7uNQRDgCu9iNzlKZVNOl4M0m5cjryq/jyg6p95SHDa+T1XyeiIqJBOS6Eh6Oi9eNjkA06cagyCBQV8iha8JbQFV20xxNEQCVuxaOOu/tthzz7rWmzwZmAReDwCI= Received: from DM6PR11CA0060.namprd11.prod.outlook.com (2603:10b6:5:14c::37) by PH7PR12MB5733.namprd12.prod.outlook.com (2603:10b6:510:1e0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.22; Fri, 29 Sep 2023 10:57:32 +0000 Received: from CY4PEPF0000E9D5.namprd05.prod.outlook.com (2603:10b6:5:14c:cafe::85) by DM6PR11CA0060.outlook.office365.com (2603:10b6:5:14c::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.25 via Frontend Transport; Fri, 29 Sep 2023 10:57:32 +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 CY4PEPF0000E9D5.mail.protection.outlook.com (10.167.241.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Fri, 29 Sep 2023 10:57:32 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) 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.2507.27; Fri, 29 Sep 2023 05:57:29 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 29 Sep 2023 03:57:29 -0700 Received: from xsjarunbala50.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Fri, 29 Sep 2023 05:57:28 -0500 From: Jay Buddhabhatti To: , , , , , , , , , , , , CC: , , Jay Buddhabhatti , Naman Trivedi Manojbhai Subject: [PATCH 6/7] firmware: zynqmp: Add support to handle IPI CRC failure Date: Fri, 29 Sep 2023 03:55:57 -0700 Message-ID: <20230929105558.11893-7-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230929105558.11893-1-jay.buddhabhatti@amd.com> References: <20230929105558.11893-1-jay.buddhabhatti@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D5:EE_|PH7PR12MB5733:EE_ X-MS-Office365-Filtering-Correlation-Id: cc97f218-2ea4-4b37-68aa-08dbc0dae196 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bwS9aEKb0fG3ZafKfI9q9FnzbUsAnKa6wBuNA4waxC55RkbCechs3GUTBYTdvvSaNOieD9hg/pdwnnMAfNL8MjTzRgPFVYENWuDMAPRcEaP89XRGp/Ssy6KppCtev0iqgQn+OfmJHU9nHfjX5RDPpBlOzGIGZYiXFsl9cSZK9CesNgwRlvkUj3l43rArm27IYLxp+ak5jHxp5lFVZ94s0KMYrSYT9lHxtJM5urlLyuWtFbthLRz4iRgnhTchnfOrmTdPxsTsxtLVVFX/C14QuRuCyVYCQRfH0aliD/l0qwlsWbkkD5W2OA2NA/GmXRDyuBejhyFf5f8LFbBO83v0kPggnMhBDCGhskjUUEfXR+wVsRGvQ+4C80rmbwzrfkgoPzVNqnmWrc0tfkBsjX5q7IfHdcdG0E/0mYhPuOZd0oINH43SdztvuOGHfDG1cy6BXR4ErfE9y0ImnaBPox6DaJS7oMKhyy43Bi5AZJJwd6uI+z16Csk0727r6/8uESB9Dp56qPNFR3kDFIf2oAWqW9OfpH4WF74KXYX98ESl+vdTtB0kuma+f5uEs+AtIy1saLAkDtFiGtaeDY/ogBkWOXEo0aYmYh2uevkNkawkDbtxExR7pAx73NG1ViyPzWsJ3YKxzE9tkXp+cLsE7EnAh7PXPyapWUh4jqyDy/1z68D9fyfTYiRbQkdN2k0Y8AWxRuSpCxXg9JrGpn0IWoR2wQJXqGILN2q6rsPQzNC1UxuLJrYWT89j+HunVd7wA6AyFWcVcZbyNB3/l3LZNYUrFFWeS6dOAR5M2khyt8gCFik= 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:(13230031)(4636009)(39860400002)(346002)(376002)(136003)(396003)(230922051799003)(1800799009)(64100799003)(186009)(82310400011)(451199024)(40470700004)(46966006)(36840700001)(40460700003)(6666004)(83380400001)(356005)(82740400003)(86362001)(81166007)(921005)(47076005)(36860700001)(1076003)(36756003)(2616005)(40480700001)(26005)(2906002)(336012)(426003)(5660300002)(478600001)(8676002)(8936002)(44832011)(41300700001)(70206006)(110136005)(316002)(4326008)(54906003)(70586007)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2023 10:57:32.2253 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cc97f218-2ea4-4b37-68aa-08dbc0dae196 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: CY4PEPF0000E9D5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5733 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 03:58:33 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778374327480712045 X-GMAIL-MSGID: 1778374327480712045 Added new PM error code XST_PM_INVALID_CRC to handle CRC validation failure during IPI communication. Co-developed-by: Naman Trivedi Manojbhai Signed-off-by: Naman Trivedi Manojbhai Signed-off-by: Jay Buddhabhatti --- drivers/firmware/xilinx/zynqmp.c | 1 + include/linux/firmware/xlnx-zynqmp.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 0316db03fa51..5e497a8ea7e8 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -103,6 +103,7 @@ static int zynqmp_pm_ret_code(u32 ret_status) case XST_PM_INTERNAL: case XST_PM_CONFLICT: case XST_PM_INVALID_NODE: + case XST_PM_INVALID_CRC: default: return -EINVAL; } diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 880c3b17571b..1aadcd2dc34c 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -170,6 +170,7 @@ enum pm_ret_status { XST_PM_SUCCESS = 0, XST_PM_INVALID_VERSION = 4, XST_PM_NO_FEATURE = 19, + XST_PM_INVALID_CRC = 301, XST_PM_INTERNAL = 2000, XST_PM_CONFLICT = 2001, XST_PM_NO_ACCESS = 2002,