From patchwork Wed Oct 4 09:41:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 148211 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6f87:b0:13f:353d:d1ed with SMTP id tl7csp2498377rwb; Wed, 4 Oct 2023 02:43:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtWD4iuLz2pUDVwCnxYC7b9Xxu6Onqv+kby6kQt4U1dN1ZwLyPEOo9h+Aa3Z44Eq/gxMu5 X-Received: by 2002:a05:6a20:734b:b0:166:6582:a7d5 with SMTP id v11-20020a056a20734b00b001666582a7d5mr1930232pzc.3.1696412628185; Wed, 04 Oct 2023 02:43:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696412628; cv=pass; d=google.com; s=arc-20160816; b=RikhSGlZShY+jM6ATdIlSN3HqaG5rfljZBaQt5KcMuzddQzea3vJzUb0RKAW6QpmZJ nY29MO8neWWXh/Br4hME9zq+IGHR4IvJcJLBLv6C0DeDDWUkNPr7+SLNxrTkG+XR471g Iinel0WcDUKEO6dlPQnB/486gzrKtCbky+v/3+krZhh1xIL3Qtk8EktoZkW7UnJdPccS bdFCKAIFUrqo0nFhOjbfhsoatEHi3qycKB7XuewXfCl01dWTNQIozhlK7cRogqcOQo6X UpRbPLbYiRSoeJR3PSNdenhcXjWQ/+C6AGpm11ChOVr4exeY9iLNXTwlKHgv7iUHf371 hWBw== 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=sfKcNcAWqTexwDFh3gZn6KDWTZcgI0KSSV5ljLRLYGE=; fh=OuU1HFJpcPD++FxvCYF0jPyLbYe5vBK7LllcrNKODlM=; b=E4XD0RGFQV6aA6pRH/TuS2nr/m3RSIXskVnQKwfx82t2wa3zKGGb8/anvBoVanJCp5 qpOC+GHBpXWCo7wzE9gti89fKehztRqlSn8wmc/2mfy+F4NX3VVeTHxnvHGCjym4ffVu VxRBGDKeIC7dbLQ+3ubHlQZHb8UPE2EGbknCvfFAKkkF2cn+mH8igOXiqjDhZwVFuq04 Sp5rLnTkkGJEzY00zIe/Jqxwk/NGmrAMTMsTBiKkJnXmO5ZOj4tBjjL7tHXXysZqZkdc egwoZbSwf7aSAN+YBOIThxy6e9rNIrdWcFrM2T+9J2+WrHcwSJfz7EPVZdyXOGm5VKoL IpIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=38LEN0Vf; 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 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id be11-20020a056a001f0b00b00690d79b95f7si3246579pfb.288.2023.10.04.02.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:43:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=38LEN0Vf; 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 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 62B7181FDBAB; Wed, 4 Oct 2023 02:43:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242044AbjJDJnG (ORCPT + 18 others); Wed, 4 Oct 2023 05:43:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242012AbjJDJnE (ORCPT ); Wed, 4 Oct 2023 05:43:04 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2089.outbound.protection.outlook.com [40.107.243.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3553B4 for ; Wed, 4 Oct 2023 02:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YsfcG+FpVf0+PqHD/xBkZkavmytk0JyuXt0jJemataeazR9LpYnwXu/ext81ue0naMzy7h0kVJZj6GPYtr5awUDV+QLKM1Kf4gO4HDaz2O/sl0BA756mosg6T6NSzkIKaiSQDed33W6mBsDliXuUcgKg8gWS9a/59mCA8zwLnuQZ5kQ1+PPQdTviorLaPV2ATZ6Q0z13RhfFwsTu9KWMFl1R2PO1EZ8x0X0yXNpCX9S4vlHY7dMKoEAC27/dhXC/RRa+hiYhjl1QvohECl1Yx98eExjCVVCpoag23ghH4g5dBKcRjyT9LfvkzsQrTfishYtvfv6Tl+/rUc6SbqVX3g== 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=sfKcNcAWqTexwDFh3gZn6KDWTZcgI0KSSV5ljLRLYGE=; b=LzCXjQUz5A4mJVToazLRnP0IiqaY1gPSjCvEiEoxG9V9qKeHkNarfagOV03JtSkuXKo8MQ8TO6DSmCO7GB4Mrmtv27ub1FMC0ZOQy1vZyNNpqwHC4GJz79MzDvbW7Zb6fGVSmmakWhmTWmJyF+UC31h2WfwzD7QIlPS4qVZxN2gJoe07ID2iHGPN+jugaGzAkIyiHWT5WZ3hJRnSQyoMjnIk18F9bKeE4HkhwA2Z0PIn6lSRv2qLtzZcKEMeqZZNNNMIXYnfPaWpzIdFgcEeFqdyZOpUBenOKe+zpgyOoINqDuS85Xh7nHV40FzNA0ySv19kZ3MSI77eL/BVDRygfQ== 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=sfKcNcAWqTexwDFh3gZn6KDWTZcgI0KSSV5ljLRLYGE=; b=38LEN0VfRhcPqh4E2epPq/5VVf8MBXYY4mfHj7lqBE/UI2N9jxAlczavqbL/ogsTJbwuxkp+pUqtoZUbiu94ciGOtp00gx9mJuG8ndmSqh5hF0wsvDhcTs4+sfOmfrBokE4isnIWLv4g20VfOCACzqm9ieUm7U6ROWc3ojKbaXI= Received: from MN2PR03CA0020.namprd03.prod.outlook.com (2603:10b6:208:23a::25) by SN7PR12MB7853.namprd12.prod.outlook.com (2603:10b6:806:348::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.34; Wed, 4 Oct 2023 09:42:55 +0000 Received: from MN1PEPF0000F0E5.namprd04.prod.outlook.com (2603:10b6:208:23a:cafe::1c) by MN2PR03CA0020.outlook.office365.com (2603:10b6:208:23a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.25 via Frontend Transport; Wed, 4 Oct 2023 09:42:55 +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 MN1PEPF0000F0E5.mail.protection.outlook.com (10.167.242.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Wed, 4 Oct 2023 09:42:55 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) 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; Wed, 4 Oct 2023 04:42:54 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 04:42:54 -0500 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; Wed, 4 Oct 2023 04:42:53 -0500 From: Jay Buddhabhatti To: , , , , , , , , , , , CC: , , Jay Buddhabhatti Subject: [PATCH v2 1/6] firmware: xilinx: Update firmware call interface to support additional arg Date: Wed, 4 Oct 2023 02:41:11 -0700 Message-ID: <20231004094116.27128-2-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231004094116.27128-1-jay.buddhabhatti@amd.com> References: <20231004094116.27128-1-jay.buddhabhatti@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000F0E5:EE_|SN7PR12MB7853:EE_ X-MS-Office365-Filtering-Correlation-Id: 00ba0e2d-e555-4ee2-36b1-08dbc4be4916 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aVRRwIrqqrvzOtMwEyTjpKxv7WLe0gz7hcUHN9v+xyw4cC286+6S8ur1l3M4NMpUrL+B8mHAxXL29ZRMR9cgsVvCw4CzbroCmmx/mcO6dyGi+E+G1BRoFd3EaFvTUuNURsm0THRHwxc7xenJxPT2zTpa57j9mkbZQcMy+j7txCjIBeosSG8u+C/3YO3igP+NfoMTWpRVL0w4ak5lD6YatLmeG29Iba1wcwvkDsBwz1IDs01rMiX2RkIEEqFQPzc52AKkCX36IUVZ4u8MmPmtWi7w5ISmwm3cZveafY+qQ+4CD9cq8Nj2P9QUZQWsYxPxLj+Y7uwoeeSJ/xk663AuBeR3uG1CCfUFNUwHRumcLZnTtSl9nK4pbcIg2dloJcqLJoaPM4YPMCFGtusBrQpj0N+1BDMlT+lugRC1PowssUgeJ9f7UYHeVLTBGDmDpgLaU+qMjMoK8Rn0NQS12DYCCzpdWlxoS03WxSMpaTje33NGyDAdNbLYR3Og9mWAeckTKBIkJgg6X8uZPZdlPwSfRzQFbgxGkE2qI4rWzTebuIOjCCSbTIV5giX1M0V5RSnxbQ34YmgbX41I8TBFb0XOA+ivAKIl1gJrGE6p2bHvjn+o0QFWrUMvPghIYVuUvcpDEsULoko+NA8ZiWxgq7oRkQd8wuhWq7+8z3LtBNPN91QMQ5Xj0BXIaA/CXWEOfOxgJ+N1DDD8qQdboHiJT1DhxNobYpZOHOcd3diSRyUpnMcsVcgEMuigNeCKyA2GvNg4+4J5uB2U/QcDGARs21jC1kbWRwG9qD8ga6QJpzPHMpA= 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)(186009)(82310400011)(64100799003)(451199024)(1800799009)(40470700004)(46966006)(36840700001)(30864003)(47076005)(2906002)(83380400001)(40460700003)(15650500001)(81166007)(86362001)(356005)(82740400003)(921005)(40480700001)(36860700001)(36756003)(70206006)(316002)(54906003)(70586007)(110136005)(1076003)(336012)(41300700001)(2616005)(478600001)(6666004)(8676002)(4326008)(44832011)(426003)(8936002)(26005)(5660300002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 09:42:55.1611 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 00ba0e2d-e555-4ee2-36b1-08dbc4be4916 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: MN1PEPF0000F0E5.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7853 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:43:37 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778817568215798280 X-GMAIL-MSGID: 1778817568215798280 System-level platform management layer (do_fw_call()) has support for maximum of 5 arguments as of now (1 EEMI API ID + 4 command arguments). In order to support new EEMI PM_IOCTL IDs (Secure Read/Write), this support must be extended to support one additional argument, which results in a configuration of - 1 EEMI API ID + 5 command arguments. Update zynqmp_pm_invoke_fn() and do_fw_call() with this new definition containing additional argument. As a result, update all the references to pm invoke function with the updated definition. Co-developed-by: Izhar Ameer Shaikh Signed-off-by: Izhar Ameer Shaikh Signed-off-by: Jay Buddhabhatti --- drivers/firmware/xilinx/zynqmp.c | 155 +++++++++++++----------- drivers/soc/xilinx/xlnx_event_manager.c | 2 +- drivers/soc/xilinx/zynqmp_power.c | 2 +- include/linux/firmware/xlnx-zynqmp.h | 2 +- 4 files changed, 87 insertions(+), 74 deletions(-) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 4cc1ac7f76ed..d102619fd6f4 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -106,7 +106,7 @@ static int zynqmp_pm_ret_code(u32 ret_status) } } -static noinline int do_fw_call_fail(u64 arg0, u64 arg1, u64 arg2, +static noinline int do_fw_call_fail(u64 arg0, u64 arg1, u64 arg2, u64 arg3, u32 *ret_payload) { return -ENODEV; @@ -116,25 +116,26 @@ static noinline int do_fw_call_fail(u64 arg0, u64 arg1, u64 arg2, * PM function call wrapper * Invoke do_fw_call_smc or do_fw_call_hvc, depending on the configuration */ -static int (*do_fw_call)(u64, u64, u64, u32 *ret_payload) = do_fw_call_fail; +static int (*do_fw_call)(u64, u64, u64, u64, u32 *ret_payload) = do_fw_call_fail; /** * do_fw_call_smc() - Call system-level platform management layer (SMC) * @arg0: Argument 0 to SMC call * @arg1: Argument 1 to SMC call * @arg2: Argument 2 to SMC call + * @arg3: Argument 3 to SMC call * @ret_payload: Returned value array * * Invoke platform management function via SMC call (no hypervisor present). * * Return: Returns status, either success or error+reason */ -static noinline int do_fw_call_smc(u64 arg0, u64 arg1, u64 arg2, +static noinline int do_fw_call_smc(u64 arg0, u64 arg1, u64 arg2, u64 arg3, u32 *ret_payload) { struct arm_smccc_res res; - arm_smccc_smc(arg0, arg1, arg2, 0, 0, 0, 0, 0, &res); + arm_smccc_smc(arg0, arg1, arg2, arg3, 0, 0, 0, 0, &res); if (ret_payload) { ret_payload[0] = lower_32_bits(res.a0); @@ -151,6 +152,7 @@ static noinline int do_fw_call_smc(u64 arg0, u64 arg1, u64 arg2, * @arg0: Argument 0 to HVC call * @arg1: Argument 1 to HVC call * @arg2: Argument 2 to HVC call + * @arg3: Argument 3 to HVC call * @ret_payload: Returned value array * * Invoke platform management function via HVC @@ -159,12 +161,12 @@ static noinline int do_fw_call_smc(u64 arg0, u64 arg1, u64 arg2, * * Return: Returns status, either success or error+reason */ -static noinline int do_fw_call_hvc(u64 arg0, u64 arg1, u64 arg2, +static noinline int do_fw_call_hvc(u64 arg0, u64 arg1, u64 arg2, u64 arg3, u32 *ret_payload) { struct arm_smccc_res res; - arm_smccc_hvc(arg0, arg1, arg2, 0, 0, 0, 0, 0, &res); + arm_smccc_hvc(arg0, arg1, arg2, arg3, 0, 0, 0, 0, &res); if (ret_payload) { ret_payload[0] = lower_32_bits(res.a0); @@ -184,7 +186,7 @@ static int __do_feature_check_call(const u32 api_id, u32 *ret_payload) smc_arg[0] = PM_SIP_SVC | PM_FEATURE_CHECK; smc_arg[1] = api_id; - ret = do_fw_call(smc_arg[0], smc_arg[1], 0, ret_payload); + ret = do_fw_call(smc_arg[0], smc_arg[1], 0, 0, ret_payload); if (ret) ret = -EOPNOTSUPP; else @@ -299,6 +301,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_is_function_supported); * @arg1: Argument 1 to requested PM-API call * @arg2: Argument 2 to requested PM-API call * @arg3: Argument 3 to requested PM-API call + * @arg4: Argument 4 to requested PM-API call * @ret_payload: Returned value array * * Invoke platform management function for SMC or HVC call, depending on @@ -317,7 +320,8 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_is_function_supported); * Return: Returns status, either success or error+reason */ int zynqmp_pm_invoke_fn(u32 pm_api_id, u32 arg0, u32 arg1, - u32 arg2, u32 arg3, u32 *ret_payload) + u32 arg2, u32 arg3, u32 arg4, + u32 *ret_payload) { /* * Added SIP service call Function Identifier @@ -334,8 +338,10 @@ int zynqmp_pm_invoke_fn(u32 pm_api_id, u32 arg0, u32 arg1, smc_arg[0] = PM_SIP_SVC | pm_api_id; smc_arg[1] = ((u64)arg1 << 32) | arg0; smc_arg[2] = ((u64)arg3 << 32) | arg2; + smc_arg[3] = ((u64)arg4); - return do_fw_call(smc_arg[0], smc_arg[1], smc_arg[2], ret_payload); + return do_fw_call(smc_arg[0], smc_arg[1], smc_arg[2], smc_arg[3], + ret_payload); } static u32 pm_api_version; @@ -348,13 +354,13 @@ int zynqmp_pm_register_sgi(u32 sgi_num, u32 reset) int ret; ret = zynqmp_pm_invoke_fn(TF_A_PM_REGISTER_SGI, sgi_num, reset, 0, 0, - NULL); + 0, NULL); if (!ret) return ret; /* try old implementation as fallback strategy if above fails */ return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_REGISTER_SGI, sgi_num, - reset, NULL); + reset, 0, NULL); } /** @@ -376,7 +382,7 @@ int zynqmp_pm_get_api_version(u32 *version) *version = pm_api_version; return 0; } - ret = zynqmp_pm_invoke_fn(PM_GET_API_VERSION, 0, 0, 0, 0, ret_payload); + ret = zynqmp_pm_invoke_fn(PM_GET_API_VERSION, 0, 0, 0, 0, 0, ret_payload); *version = ret_payload[1]; return ret; @@ -399,7 +405,7 @@ int zynqmp_pm_get_chipid(u32 *idcode, u32 *version) if (!idcode || !version) return -EINVAL; - ret = zynqmp_pm_invoke_fn(PM_GET_CHIPID, 0, 0, 0, 0, ret_payload); + ret = zynqmp_pm_invoke_fn(PM_GET_CHIPID, 0, 0, 0, 0, 0, ret_payload); *idcode = ret_payload[1]; *version = ret_payload[2]; @@ -427,7 +433,7 @@ static int zynqmp_pm_get_family_info(u32 *family, u32 *subfamily) return 0; } - ret = zynqmp_pm_invoke_fn(PM_GET_CHIPID, 0, 0, 0, 0, ret_payload); + ret = zynqmp_pm_invoke_fn(PM_GET_CHIPID, 0, 0, 0, 0, 0, ret_payload); if (ret < 0) return ret; @@ -460,7 +466,7 @@ static int zynqmp_pm_get_trustzone_version(u32 *version) return 0; } ret = zynqmp_pm_invoke_fn(PM_GET_TRUSTZONE_VERSION, 0, 0, - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *version = ret_payload[1]; return ret; @@ -508,7 +514,7 @@ int zynqmp_pm_query_data(struct zynqmp_pm_query_data qdata, u32 *out) int ret; ret = zynqmp_pm_invoke_fn(PM_QUERY_DATA, qdata.qid, qdata.arg1, - qdata.arg2, qdata.arg3, out); + qdata.arg2, qdata.arg3, 0, out); /* * For clock name query, all bytes in SMC response are clock name @@ -530,7 +536,8 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_query_data); */ int zynqmp_pm_clock_enable(u32 clock_id) { - return zynqmp_pm_invoke_fn(PM_CLOCK_ENABLE, clock_id, 0, 0, 0, NULL); + return zynqmp_pm_invoke_fn(PM_CLOCK_ENABLE, clock_id, 0, 0, 0, 0, + NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_clock_enable); @@ -545,7 +552,8 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_clock_enable); */ int zynqmp_pm_clock_disable(u32 clock_id) { - return zynqmp_pm_invoke_fn(PM_CLOCK_DISABLE, clock_id, 0, 0, 0, NULL); + return zynqmp_pm_invoke_fn(PM_CLOCK_DISABLE, clock_id, 0, 0, 0, 0, + NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_clock_disable); @@ -565,7 +573,7 @@ int zynqmp_pm_clock_getstate(u32 clock_id, u32 *state) int ret; ret = zynqmp_pm_invoke_fn(PM_CLOCK_GETSTATE, clock_id, 0, - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *state = ret_payload[1]; return ret; @@ -585,7 +593,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_clock_getstate); int zynqmp_pm_clock_setdivider(u32 clock_id, u32 divider) { return zynqmp_pm_invoke_fn(PM_CLOCK_SETDIVIDER, clock_id, divider, - 0, 0, NULL); + 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_clock_setdivider); @@ -605,7 +613,7 @@ int zynqmp_pm_clock_getdivider(u32 clock_id, u32 *divider) int ret; ret = zynqmp_pm_invoke_fn(PM_CLOCK_GETDIVIDER, clock_id, 0, - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *divider = ret_payload[1]; return ret; @@ -626,7 +634,7 @@ int zynqmp_pm_clock_setrate(u32 clock_id, u64 rate) return zynqmp_pm_invoke_fn(PM_CLOCK_SETRATE, clock_id, lower_32_bits(rate), upper_32_bits(rate), - 0, NULL); + 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_clock_setrate); @@ -646,7 +654,7 @@ int zynqmp_pm_clock_getrate(u32 clock_id, u64 *rate) int ret; ret = zynqmp_pm_invoke_fn(PM_CLOCK_GETRATE, clock_id, 0, - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *rate = ((u64)ret_payload[2] << 32) | ret_payload[1]; return ret; @@ -665,7 +673,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_clock_getrate); int zynqmp_pm_clock_setparent(u32 clock_id, u32 parent_id) { return zynqmp_pm_invoke_fn(PM_CLOCK_SETPARENT, clock_id, - parent_id, 0, 0, NULL); + parent_id, 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_clock_setparent); @@ -685,7 +693,7 @@ int zynqmp_pm_clock_getparent(u32 clock_id, u32 *parent_id) int ret; ret = zynqmp_pm_invoke_fn(PM_CLOCK_GETPARENT, clock_id, 0, - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *parent_id = ret_payload[1]; return ret; @@ -705,7 +713,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_clock_getparent); int zynqmp_pm_set_pll_frac_mode(u32 clk_id, u32 mode) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_SET_PLL_FRAC_MODE, - clk_id, mode, NULL); + clk_id, mode, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_pll_frac_mode); @@ -722,7 +730,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_set_pll_frac_mode); int zynqmp_pm_get_pll_frac_mode(u32 clk_id, u32 *mode) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_GET_PLL_FRAC_MODE, - clk_id, 0, mode); + clk_id, 0, 0, mode); } EXPORT_SYMBOL_GPL(zynqmp_pm_get_pll_frac_mode); @@ -740,7 +748,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_get_pll_frac_mode); int zynqmp_pm_set_pll_frac_data(u32 clk_id, u32 data) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_SET_PLL_FRAC_DATA, - clk_id, data, NULL); + clk_id, data, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_pll_frac_data); @@ -757,7 +765,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_set_pll_frac_data); int zynqmp_pm_get_pll_frac_data(u32 clk_id, u32 *data) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_GET_PLL_FRAC_DATA, - clk_id, 0, data); + clk_id, 0, 0, data); } EXPORT_SYMBOL_GPL(zynqmp_pm_get_pll_frac_data); @@ -780,7 +788,7 @@ int zynqmp_pm_set_sd_tapdelay(u32 node_id, u32 type, u32 value) if (value) { return zynqmp_pm_invoke_fn(PM_IOCTL, node_id, IOCTL_SET_SD_TAPDELAY, - type, value, NULL); + type, value, 0, NULL); } /* @@ -798,7 +806,7 @@ int zynqmp_pm_set_sd_tapdelay(u32 node_id, u32 type, u32 value) * Use PM_MMIO_READ/PM_MMIO_WRITE to re-implement the missing counter * part of IOCTL_SET_SD_TAPDELAY which clears SDx_ITAPDLYENA bits. */ - return zynqmp_pm_invoke_fn(PM_MMIO_WRITE, reg, mask, 0, 0, NULL); + return zynqmp_pm_invoke_fn(PM_MMIO_WRITE, reg, mask, 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_sd_tapdelay); @@ -815,7 +823,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_set_sd_tapdelay); int zynqmp_pm_sd_dll_reset(u32 node_id, u32 type) { return zynqmp_pm_invoke_fn(PM_IOCTL, node_id, IOCTL_SD_DLL_RESET, - type, 0, NULL); + type, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_sd_dll_reset); @@ -832,7 +840,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_sd_dll_reset); int zynqmp_pm_ospi_mux_select(u32 dev_id, u32 select) { return zynqmp_pm_invoke_fn(PM_IOCTL, dev_id, IOCTL_OSPI_MUX_SELECT, - select, 0, NULL); + select, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_ospi_mux_select); @@ -848,7 +856,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_ospi_mux_select); int zynqmp_pm_write_ggs(u32 index, u32 value) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_WRITE_GGS, - index, value, NULL); + index, value, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_write_ggs); @@ -864,7 +872,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_write_ggs); int zynqmp_pm_read_ggs(u32 index, u32 *value) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_READ_GGS, - index, 0, value); + index, 0, 0, value); } EXPORT_SYMBOL_GPL(zynqmp_pm_read_ggs); @@ -881,7 +889,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_read_ggs); int zynqmp_pm_write_pggs(u32 index, u32 value) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_WRITE_PGGS, index, value, - NULL); + 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_write_pggs); @@ -898,14 +906,14 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_write_pggs); int zynqmp_pm_read_pggs(u32 index, u32 *value) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_READ_PGGS, index, 0, - value); + 0, value); } EXPORT_SYMBOL_GPL(zynqmp_pm_read_pggs); int zynqmp_pm_set_tapdelay_bypass(u32 index, u32 value) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_SET_TAPDELAY_BYPASS, - index, value, NULL); + index, value, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_tapdelay_bypass); @@ -921,7 +929,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_set_tapdelay_bypass); int zynqmp_pm_set_boot_health_status(u32 value) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_SET_BOOT_HEALTH_STATUS, - value, 0, NULL); + value, 0, 0, NULL); } /** @@ -936,7 +944,7 @@ int zynqmp_pm_reset_assert(const enum zynqmp_pm_reset reset, const enum zynqmp_pm_reset_action assert_flag) { return zynqmp_pm_invoke_fn(PM_RESET_ASSERT, reset, assert_flag, - 0, 0, NULL); + 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_reset_assert); @@ -956,7 +964,7 @@ int zynqmp_pm_reset_get_status(const enum zynqmp_pm_reset reset, u32 *status) return -EINVAL; ret = zynqmp_pm_invoke_fn(PM_RESET_GET_STATUS, reset, 0, - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *status = ret_payload[1]; return ret; @@ -982,7 +990,7 @@ int zynqmp_pm_fpga_load(const u64 address, const u32 size, const u32 flags) int ret; ret = zynqmp_pm_invoke_fn(PM_FPGA_LOAD, lower_32_bits(address), - upper_32_bits(address), size, flags, + upper_32_bits(address), size, flags, 0, ret_payload); if (ret_payload[0]) return -ret_payload[0]; @@ -1008,7 +1016,8 @@ int zynqmp_pm_fpga_get_status(u32 *value) if (!value) return -EINVAL; - ret = zynqmp_pm_invoke_fn(PM_FPGA_GET_STATUS, 0, 0, 0, 0, ret_payload); + ret = zynqmp_pm_invoke_fn(PM_FPGA_GET_STATUS, 0, 0, 0, 0, 0, + ret_payload); *value = ret_payload[1]; return ret; @@ -1039,7 +1048,7 @@ int zynqmp_pm_fpga_get_config_status(u32 *value) ret = zynqmp_pm_invoke_fn(PM_FPGA_READ, XILINX_ZYNQMP_PM_FPGA_CONFIG_STAT_OFFSET, lower_addr, upper_addr, - XILINX_ZYNQMP_PM_FPGA_READ_CONFIG_REG, + XILINX_ZYNQMP_PM_FPGA_READ_CONFIG_REG, 0, ret_payload); *value = ret_payload[1]; @@ -1058,7 +1067,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_fpga_get_config_status); */ int zynqmp_pm_pinctrl_request(const u32 pin) { - return zynqmp_pm_invoke_fn(PM_PINCTRL_REQUEST, pin, 0, 0, 0, NULL); + return zynqmp_pm_invoke_fn(PM_PINCTRL_REQUEST, pin, 0, 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_request); @@ -1072,7 +1081,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_request); */ int zynqmp_pm_pinctrl_release(const u32 pin) { - return zynqmp_pm_invoke_fn(PM_PINCTRL_RELEASE, pin, 0, 0, 0, NULL); + return zynqmp_pm_invoke_fn(PM_PINCTRL_RELEASE, pin, 0, 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_release); @@ -1094,7 +1103,7 @@ int zynqmp_pm_pinctrl_get_function(const u32 pin, u32 *id) return -EINVAL; ret = zynqmp_pm_invoke_fn(PM_PINCTRL_GET_FUNCTION, pin, 0, - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *id = ret_payload[1]; return ret; @@ -1113,7 +1122,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_get_function); int zynqmp_pm_pinctrl_set_function(const u32 pin, const u32 id) { return zynqmp_pm_invoke_fn(PM_PINCTRL_SET_FUNCTION, pin, id, - 0, 0, NULL); + 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_set_function); @@ -1137,7 +1146,7 @@ int zynqmp_pm_pinctrl_get_config(const u32 pin, const u32 param, return -EINVAL; ret = zynqmp_pm_invoke_fn(PM_PINCTRL_CONFIG_PARAM_GET, pin, param, - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *value = ret_payload[1]; return ret; @@ -1167,7 +1176,7 @@ int zynqmp_pm_pinctrl_set_config(const u32 pin, const u32 param, } return zynqmp_pm_invoke_fn(PM_PINCTRL_CONFIG_PARAM_SET, pin, - param, value, 0, NULL); + param, value, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_set_config); @@ -1186,7 +1195,7 @@ unsigned int zynqmp_pm_bootmode_read(u32 *ps_mode) u32 ret_payload[PAYLOAD_ARG_CNT]; ret = zynqmp_pm_invoke_fn(PM_MMIO_READ, CRL_APB_BOOT_PIN_CTRL, 0, - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *ps_mode = ret_payload[1]; @@ -1206,7 +1215,8 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_bootmode_read); int zynqmp_pm_bootmode_write(u32 ps_mode) { return zynqmp_pm_invoke_fn(PM_MMIO_WRITE, CRL_APB_BOOT_PIN_CTRL, - CRL_APB_BOOTPIN_CTRL_MASK, ps_mode, 0, NULL); + CRL_APB_BOOTPIN_CTRL_MASK, ps_mode, 0, + 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_bootmode_write); @@ -1221,7 +1231,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_bootmode_write); */ int zynqmp_pm_init_finalize(void) { - return zynqmp_pm_invoke_fn(PM_PM_INIT_FINALIZE, 0, 0, 0, 0, NULL); + return zynqmp_pm_invoke_fn(PM_PM_INIT_FINALIZE, 0, 0, 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_init_finalize); @@ -1235,7 +1245,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_init_finalize); */ int zynqmp_pm_set_suspend_mode(u32 mode) { - return zynqmp_pm_invoke_fn(PM_SET_SUSPEND_MODE, mode, 0, 0, 0, NULL); + return zynqmp_pm_invoke_fn(PM_SET_SUSPEND_MODE, mode, 0, 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_suspend_mode); @@ -1255,7 +1265,7 @@ int zynqmp_pm_request_node(const u32 node, const u32 capabilities, const u32 qos, const enum zynqmp_pm_request_ack ack) { return zynqmp_pm_invoke_fn(PM_REQUEST_NODE, node, capabilities, - qos, ack, NULL); + qos, ack, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_request_node); @@ -1271,7 +1281,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_request_node); */ int zynqmp_pm_release_node(const u32 node) { - return zynqmp_pm_invoke_fn(PM_RELEASE_NODE, node, 0, 0, 0, NULL); + return zynqmp_pm_invoke_fn(PM_RELEASE_NODE, node, 0, 0, 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_release_node); @@ -1291,7 +1301,8 @@ int zynqmp_pm_get_rpu_mode(u32 node_id, enum rpu_oper_mode *rpu_mode) int ret; ret = zynqmp_pm_invoke_fn(PM_IOCTL, node_id, - IOCTL_GET_RPU_OPER_MODE, 0, 0, ret_payload); + IOCTL_GET_RPU_OPER_MODE, 0, 0, 0, + ret_payload); /* only set rpu_mode if no error */ if (ret == XST_PM_SUCCESS) @@ -1315,7 +1326,7 @@ int zynqmp_pm_set_rpu_mode(u32 node_id, enum rpu_oper_mode rpu_mode) { return zynqmp_pm_invoke_fn(PM_IOCTL, node_id, IOCTL_SET_RPU_OPER_MODE, (u32)rpu_mode, - 0, NULL); + 0, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_rpu_mode); @@ -1333,7 +1344,7 @@ int zynqmp_pm_set_tcm_config(u32 node_id, enum rpu_tcm_comb tcm_mode) { return zynqmp_pm_invoke_fn(PM_IOCTL, node_id, IOCTL_TCM_COMB_CONFIG, (u32)tcm_mode, 0, - NULL); + 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_tcm_config); @@ -1348,7 +1359,8 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_set_tcm_config); int zynqmp_pm_force_pwrdwn(const u32 node, const enum zynqmp_pm_request_ack ack) { - return zynqmp_pm_invoke_fn(PM_FORCE_POWERDOWN, node, ack, 0, 0, NULL); + return zynqmp_pm_invoke_fn(PM_FORCE_POWERDOWN, node, ack, 0, 0, 0, + NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_force_pwrdwn); @@ -1368,7 +1380,7 @@ int zynqmp_pm_request_wake(const u32 node, { /* set_addr flag is encoded into 1st bit of address */ return zynqmp_pm_invoke_fn(PM_REQUEST_WAKEUP, node, address | set_addr, - address >> 32, ack, NULL); + address >> 32, ack, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_request_wake); @@ -1389,7 +1401,7 @@ int zynqmp_pm_set_requirement(const u32 node, const u32 capabilities, const enum zynqmp_pm_request_ack ack) { return zynqmp_pm_invoke_fn(PM_SET_REQUIREMENT, node, capabilities, - qos, ack, NULL); + qos, ack, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_requirement); @@ -1406,7 +1418,8 @@ int zynqmp_pm_load_pdi(const u32 src, const u64 address) { return zynqmp_pm_invoke_fn(PM_LOAD_PDI, src, lower_32_bits(address), - upper_32_bits(address), 0, NULL); + upper_32_bits(address), 0, + 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_load_pdi); @@ -1428,7 +1441,7 @@ int zynqmp_pm_aes_engine(const u64 address, u32 *out) ret = zynqmp_pm_invoke_fn(PM_SECURE_AES, upper_32_bits(address), lower_32_bits(address), - 0, 0, ret_payload); + 0, 0, 0, ret_payload); *out = ret_payload[1]; return ret; @@ -1457,7 +1470,7 @@ int zynqmp_pm_sha_hash(const u64 address, const u32 size, const u32 flags) u32 upper_addr = upper_32_bits(address); return zynqmp_pm_invoke_fn(PM_SECURE_SHA, upper_addr, lower_addr, - size, flags, NULL); + size, flags, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_sha_hash); @@ -1480,7 +1493,7 @@ int zynqmp_pm_register_notifier(const u32 node, const u32 event, const u32 wake, const u32 enable) { return zynqmp_pm_invoke_fn(PM_REGISTER_NOTIFIER, node, event, - wake, enable, NULL); + wake, enable, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_register_notifier); @@ -1494,7 +1507,7 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_register_notifier); int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype) { return zynqmp_pm_invoke_fn(PM_SYSTEM_SHUTDOWN, type, subtype, - 0, 0, NULL); + 0, 0, 0, NULL); } /** @@ -1507,7 +1520,7 @@ int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype) int zynqmp_pm_set_feature_config(enum pm_feature_config_id id, u32 value) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_SET_FEATURE_CONFIG, - id, value, NULL); + id, value, 0, NULL); } /** @@ -1521,7 +1534,7 @@ int zynqmp_pm_get_feature_config(enum pm_feature_config_id id, u32 *payload) { return zynqmp_pm_invoke_fn(PM_IOCTL, 0, IOCTL_GET_FEATURE_CONFIG, - id, 0, payload); + id, 0, 0, payload); } /** @@ -1535,7 +1548,7 @@ int zynqmp_pm_get_feature_config(enum pm_feature_config_id id, int zynqmp_pm_set_sd_config(u32 node, enum pm_sd_config_type config, u32 value) { return zynqmp_pm_invoke_fn(PM_IOCTL, node, IOCTL_SET_SD_CONFIG, - config, value, NULL); + config, value, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_sd_config); @@ -1551,7 +1564,7 @@ int zynqmp_pm_set_gem_config(u32 node, enum pm_gem_config_type config, u32 value) { return zynqmp_pm_invoke_fn(PM_IOCTL, node, IOCTL_SET_GEM_CONFIG, - config, value, NULL); + config, value, 0, NULL); } EXPORT_SYMBOL_GPL(zynqmp_pm_set_gem_config); diff --git a/drivers/soc/xilinx/xlnx_event_manager.c b/drivers/soc/xilinx/xlnx_event_manager.c index 86a048a10a13..38cfc161a713 100644 --- a/drivers/soc/xilinx/xlnx_event_manager.c +++ b/drivers/soc/xilinx/xlnx_event_manager.c @@ -483,7 +483,7 @@ static void xlnx_call_notify_cb_handler(const u32 *payload) static void xlnx_get_event_callback_data(u32 *buf) { - zynqmp_pm_invoke_fn(GET_CALLBACK_DATA, 0, 0, 0, 0, buf); + zynqmp_pm_invoke_fn(GET_CALLBACK_DATA, 0, 0, 0, 0, 0, buf); } static irqreturn_t xlnx_event_handler(int irq, void *dev_id) diff --git a/drivers/soc/xilinx/zynqmp_power.c b/drivers/soc/xilinx/zynqmp_power.c index c2c819701eec..52a868a09106 100644 --- a/drivers/soc/xilinx/zynqmp_power.c +++ b/drivers/soc/xilinx/zynqmp_power.c @@ -51,7 +51,7 @@ static enum pm_suspend_mode suspend_mode = PM_SUSPEND_MODE_STD; static void zynqmp_pm_get_callback_data(u32 *buf) { - zynqmp_pm_invoke_fn(GET_CALLBACK_DATA, 0, 0, 0, 0, buf); + zynqmp_pm_invoke_fn(GET_CALLBACK_DATA, 0, 0, 0, 0, 0, buf); } static void suspend_event_callback(const u32 *payload, void *data) diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index e8b12ec8b060..9e2d8e02d9e6 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -498,7 +498,7 @@ struct zynqmp_pm_query_data { }; int zynqmp_pm_invoke_fn(u32 pm_api_id, u32 arg0, u32 arg1, - u32 arg2, u32 arg3, u32 *ret_payload); + u32 arg2, u32 arg3, u32 arg4, u32 *ret_payload); #if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE) int zynqmp_pm_get_api_version(u32 *version); From patchwork Wed Oct 4 09:41:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 148213 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6f87:b0:13f:353d:d1ed with SMTP id tl7csp2498398rwb; Wed, 4 Oct 2023 02:43:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0uTn+YIrZ94Ze9llrOzhQCCi/B/ROskPurdWXu3/rVfOZXLs4dpz+XofpxBOGAkOm5j/O X-Received: by 2002:a05:6a00:24c6:b0:68f:b3ed:7d4d with SMTP id d6-20020a056a0024c600b0068fb3ed7d4dmr2165331pfv.15.1696412632962; Wed, 04 Oct 2023 02:43:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696412632; cv=pass; d=google.com; s=arc-20160816; b=FZaPvCkUkiGu6IPVe6nvRHy2yGn3BVWrG1U6cGcqHe5uOUENmI+I5BM5CkbYBKEkmj tzrQU3bhhXlGU1ZgjZz8Awvrj5kMk2Qe8vfdBuqltWqE78ZLW0n7THhE1AXcWTpH9L4y lQKothVkqsLGyuXPtyfFjDLrxCOArxew/IJm1HLskV4Yvbc5F68nATlDlTMWqJCF4c+p LA2AeaC6TiOrgvRmCd4TwI6O7SM3WcvMudvyvcwtKOuHuTyxmf+bgJDIenIsy5BNG7hz VU/IZOLU0a8Bq0PGtAetaHCALttmp5wo/jHR5VRrGISMkIm+2+2nEAVFE1VmCYWZgFfA mMew== 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=rTYwIdByS9O9WjKhtSHGjEQJ7fs/UHneiVQrvavhD6s=; fh=+j0lux2iE9qLfODoElnSe9wp8o0e9uU1NbBqGWoXbYc=; b=shV01V+Ni6lHAProZYWoIwHZt0rUjfpTKOcDAKxZzAVKAVGfYJmviAvf6TsO4FoJ72 YGgfweCR2O6fNJajYg9jumjiAIoqDVM5nMsTesjbngDRLutd8HPphiwyNSuUXKi5fUPd ozm5Y8bkIeFVYguvvgkaIW/E3nSfNcYfpg/g/NO2iYuf6t4XQyOnXsgHdXn84+/mn0cY 7k5BIFUt4fI1gfuO9ATcj0CJ50+bLbwmDuEQykUAHTZ/DY5Khn2qYY+dS1LQ/y02cvZf om38OI36wlhuyufgIwCJ7VZinJLuDucvMwEpxVXY957p946pS1sUZpIV8VTOIwGMkbTh oPlA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Y79tafxU; 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:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x191-20020a6386c8000000b00578e98deca3si3407454pgd.37.2023.10.04.02.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:43:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Y79tafxU; 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:3 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 lipwig.vger.email (Postfix) with ESMTP id 54D0B81FDBBE; Wed, 4 Oct 2023 02:43:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242083AbjJDJnR (ORCPT + 18 others); Wed, 4 Oct 2023 05:43:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242027AbjJDJnG (ORCPT ); Wed, 4 Oct 2023 05:43:06 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2084.outbound.protection.outlook.com [40.107.94.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 154C4B7 for ; Wed, 4 Oct 2023 02:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GnKKkvJLW8+N5h3bFpRDJPPYkdl05dSj3+xGQKQnAZFdMFksqWsZPbPKhPO+vzL67PJPMUZvYg8kWqU99XeR+Vy76sH6LpaOzf88nTbnrxba12XR+nzZuR/S2sptetg23KHdU4vC8DKumWe5D/0sFfmhMTqYK4H0AruVnbGM3cJ6splmiBKwhsVZ4DR9LzFQFei1Nd4sRhJhPj9RZOLkRtxBXArk/nCZYe5+P3bySAXAPjTUHP5IELsYFXksrI3GoToA4oo1lOVZIay5hq/j8IijxnQ2YYvnYteQrt8/jhMn9JVPiRvpwMMAlmVzzWNDKZwoVroBwtJtzfQAYsT9eg== 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=rTYwIdByS9O9WjKhtSHGjEQJ7fs/UHneiVQrvavhD6s=; b=ZSyE2BXvTd6uxn4CLUaraNlPAt2yOZ414wVggEisLjB9R11z9zsRrOVH5lKJrc5B9j/D78HZKEYhQFaBdDvJgsPqHXY2NMWMedMUU4hHbfKXbYjjTfEqh+ONfFFF/eh6DS8uGoI8VKEB5qXJt5vWwpmelUV226SeD6zYhAX5estPvUvTulAiLIIi7+dbn3ZWYqAcmjXWkJsHPeBCZ0Gl4aSUu1OxWDKNrR+HxMKlk/csQBAW/xzwNy8suLCakWBgyc9lLSyJBVN3rZY/uaZVlhv1hwfZjvIr2uvBa75fRwzxoBaZIGKbtDPRbZog6oYfSzDbCkLkZr6O5Wu0Vn5SPw== 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=rTYwIdByS9O9WjKhtSHGjEQJ7fs/UHneiVQrvavhD6s=; b=Y79tafxUXvoRf5rMaZBuIZX6cWpv5bydXUViTL0at1gN3RPjeozkBIMBLcCK3YemZmSzroxn0CZvt7FgW8TPC7gw+59s16FJlBXCuOJn2FtxdjOqPUVobb67csem19UYmbQ/nMjfP6O5xkHYR1kw0Ki82vxzK279j+XLr1btz1A= Received: from MN2PR15CA0011.namprd15.prod.outlook.com (2603:10b6:208:1b4::24) by SA1PR12MB6972.namprd12.prod.outlook.com (2603:10b6:806:24f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.29; Wed, 4 Oct 2023 09:42:56 +0000 Received: from BL02EPF0001A108.namprd05.prod.outlook.com (2603:10b6:208:1b4:cafe::b5) by MN2PR15CA0011.outlook.office365.com (2603:10b6:208:1b4::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.25 via Frontend Transport; Wed, 4 Oct 2023 09:42:56 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BL02EPF0001A108.mail.protection.outlook.com (10.167.241.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Wed, 4 Oct 2023 09:42:56 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 04:42:56 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 04:42:55 -0500 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; Wed, 4 Oct 2023 04:42:54 -0500 From: Jay Buddhabhatti To: , , , , , , , , , , , CC: , , Jay Buddhabhatti , Saeed Nowshadi Subject: [PATCH v2 2/6] firmware: xilinx: Expand feature check to support all PLM modules Date: Wed, 4 Oct 2023 02:41:12 -0700 Message-ID: <20231004094116.27128-3-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231004094116.27128-1-jay.buddhabhatti@amd.com> References: <20231004094116.27128-1-jay.buddhabhatti@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A108:EE_|SA1PR12MB6972:EE_ X-MS-Office365-Filtering-Correlation-Id: 1af85d81-26ea-410b-6684-08dbc4be49ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E80YYUMLF3GeY30Gp4IEAKzpmgfIU0goMzmm1jp2+JQiokBfTgG4n+2wMiCFl79zv+fOZCzny1auXdEu9chSrALX0ajsugslg7YUtvPnxiImeDY+xvMyJsHWF6z/m8Qp92+YovwX7rKLuBh3Ofdn2KLBA+74+6QJj8ULvHvC9KgW74QdyKWLEonPtShOnEppk7ZMTwcirhuUDNs/Lu8cvnGmQRZJK0hZbJxuD8br4oYgLJPUqQjgr9AdF4wRH63tvjJNbrXZsWZmU0uvg8jGbX43IA1yeTxJMqVckhxFfMGXzx4hWWtvs4wUUzrqz4IIrKnQbGe8E+GDTUgqS4Jf6a7GG39okHJyr/ozX4B2yOqS8ZPMaxHk4dDke2jAqaHjIJUCTQH1DFW8TVlfgroBISEyKwsW9WtQFCrWk4nDqTjwPLHPisea9VmXE4BqXVUNCHKWmeCE+f6mvgjQ0AElgMKHiL2GS/T/zvH2ZB2SUdbNf3pK/zRdyCVQdGJ0zRQCxn0Z8j6jrzt59Mxi8RDxHxAq51HbMbt0iiB/rZ32YtFYPoq7ntS8YohifsvQk0UEpr8iwFlRTBlAbTvV8Xfq3sxKdTTm63LeCZ7r4mOHZTXEbx2iofkh0sH/5Wxbwp6CVcMdhAtnudi7nrX401PT7huNfpfnpfGzw0S7rauN01ca5bfXs2nsNlPxV7/CbQTJUpAwYPzxL9plVw9P95kjtja0OXNCt8o5fxCf6/taTvVCQj30YYkJ4ensGEUfISvr1UNcFdIBURmQNlPy0vOi8Rhn7Z9azCHK4ZqzAQK2voA= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(396003)(346002)(376002)(136003)(39860400002)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(82310400011)(36840700001)(40470700004)(46966006)(47076005)(4326008)(8936002)(8676002)(478600001)(41300700001)(6666004)(36860700001)(26005)(2616005)(82740400003)(1076003)(336012)(316002)(921005)(70206006)(426003)(70586007)(81166007)(356005)(54906003)(110136005)(44832011)(5660300002)(36756003)(83380400001)(86362001)(2906002)(40460700003)(40480700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 09:42:56.5844 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1af85d81-26ea-410b-6684-08dbc4be49ef 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A108.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6972 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:43:42 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778817572665060852 X-GMAIL-MSGID: 1778817572665060852 To support feature check for all modules, append the module id of the API that is being checked to the feature check API so it could be routed to the target module for processing. There is no need to check compatible string becuase the board information is taken via firmware interface. Co-developed-by: Saeed Nowshadi Signed-off-by: Saeed Nowshadi Signed-off-by: Jay Buddhabhatti --- drivers/firmware/xilinx/zynqmp.c | 45 +++++++++++++++++----------- include/linux/firmware/xlnx-zynqmp.h | 11 +++++++ 2 files changed, 39 insertions(+), 17 deletions(-) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index d102619fd6f4..5f40288f69a9 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -182,9 +182,33 @@ static int __do_feature_check_call(const u32 api_id, u32 *ret_payload) { int ret; u64 smc_arg[2]; + u32 module_id; + u32 feature_check_api_id; - smc_arg[0] = PM_SIP_SVC | PM_FEATURE_CHECK; - smc_arg[1] = api_id; + module_id = FIELD_GET(MODULE_ID_MASK, api_id); + + /* + * Feature check of APIs belonging to PM, XSEM, and TF-A are + * handled by calling PM_FEATURE_CHECK API. For other modules, + * call PM_API_FEATURES API. + */ + if (module_id == PM_MODULE_ID || module_id == XSEM_MODULE_ID || + module_id == TF_A_MODULE_ID) + feature_check_api_id = PM_FEATURE_CHECK; + else + feature_check_api_id = PM_API_FEATURES; + + /* + * Feature check of TF-A APIs is done in the TF-A layer + * and it expects for MODULE_ID_MASK bits of SMC's arg[0] to + * be the same as PM_MODULE_ID. + */ + if (module_id == TF_A_MODULE_ID) + module_id = PM_MODULE_ID; + + smc_arg[0] = PM_SIP_SVC | FIELD_PREP(MODULE_ID_MASK, module_id) | + feature_check_api_id; + smc_arg[1] = (api_id & API_ID_MASK); ret = do_fw_call(smc_arg[0], smc_arg[1], 0, 0, ret_payload); if (ret) @@ -1937,22 +1961,9 @@ static int zynqmp_firmware_probe(struct platform_device *pdev) if (ret) return ret; - np = of_find_compatible_node(NULL, NULL, "xlnx,zynqmp"); - if (!np) { - np = of_find_compatible_node(NULL, NULL, "xlnx,versal"); - if (!np) - return 0; - + ret = do_feature_check_call(PM_FEATURE_CHECK); + if (ret >= 0 && ((ret & FIRMWARE_VERSION_MASK) >= PM_API_VERSION_1)) feature_check_enabled = true; - } - - if (!feature_check_enabled) { - ret = do_feature_check_call(PM_FEATURE_CHECK); - if (ret >= 0) - feature_check_enabled = true; - } - - of_node_put(np); devinfo = devm_kzalloc(dev, sizeof(*devinfo), GFP_KERNEL); if (!devinfo) diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 9e2d8e02d9e6..86fb73269d95 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -32,6 +32,7 @@ #define PM_SIP_SVC 0xC2000000 /* PM API versions */ +#define PM_API_VERSION_1 1 #define PM_API_VERSION_2 2 #define PM_PINCTRL_PARAM_SET_VERSION 2 @@ -47,6 +48,9 @@ #define FAMILY_CODE_MASK GENMASK(27, 21) #define SUB_FAMILY_CODE_MASK GENMASK(20, 19) +#define API_ID_MASK GENMASK(7, 0) +#define MODULE_ID_MASK GENMASK(11, 8) + /* ATF only commands */ #define TF_A_PM_REGISTER_SGI 0xa04 #define PM_GET_TRUSTZONE_VERSION 0xa03 @@ -100,6 +104,12 @@ #define SD_ITAPDLY 0xFF180314 #define SD_OTAPDLYSEL 0xFF180318 +enum pm_module_id { + PM_MODULE_ID = 0x0, + XSEM_MODULE_ID = 0x3, + TF_A_MODULE_ID = 0xa, +}; + enum pm_api_cb_id { PM_INIT_SUSPEND_CB = 30, PM_ACKNOWLEDGE_CB = 31, @@ -107,6 +117,7 @@ enum pm_api_cb_id { }; enum pm_api_id { + PM_API_FEATURES = 0, PM_GET_API_VERSION = 1, PM_REGISTER_NOTIFIER = 5, PM_FORCE_POWERDOWN = 8, From patchwork Wed Oct 4 09:41:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 148212 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6f87:b0:13f:353d:d1ed with SMTP id tl7csp2498392rwb; Wed, 4 Oct 2023 02:43:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAa+NAKKIcIIMn5c5MHMG1hR4uLXsCfDt0VZ3dSFBiELnbmfMi/RsHWRf9XPiCviv3HyCW X-Received: by 2002:a17:902:bf49:b0:1c6:112f:5d02 with SMTP id u9-20020a170902bf4900b001c6112f5d02mr1728171pls.55.1696412630995; Wed, 04 Oct 2023 02:43:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696412630; cv=pass; d=google.com; s=arc-20160816; b=QCZDVRjYflPMGHCNcoKlJqhleA3gcQnzvZuO/cJbu5X+UHyEbM59vjBiWSmBQkMYOb FHxSlYcGHAcE3tbbakDfdVYo3ZDH6QOu/dwK8iy0bQLQioxSp9BFDqaCRx319WYXV/ll ya+EZvEjP02KF0voFW2Tzw205MAPVfwjRvcyeZr+ESnUOBmal6gTAqJtqMvIaQWIOnWw c2QJuGD91uiPp//H+l8U6xFXD5GeLMJWDY1Jq5FwKj9kB0EBu7t8IeM5LhzlOR+CKajt Aa1kAzHqTskFTeZH1pYhRshwYRIBCTlqgvyjJHpb1b3E5Ph1D2UZ2CwDLJxB3LGrmx73 /IRw== 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=1wY+XKMOzMftdW+wGm79wKtIRAsDu0sgkE4NmaF2aPc=; fh=OuU1HFJpcPD++FxvCYF0jPyLbYe5vBK7LllcrNKODlM=; b=ooEymx2ncE3OJ/vvTbAj8ZgPGWZK1npigkjzHLdT+kKO2cNkp7UJ5jjSybn9q66YEc nPMFhgorLN7VQepcLZdl5IMUSDFjhOohfTsDeuW6Cd8XsTdL3E9RfIal+SEZQDx2K1TI dbtKNOXhL/BjbhEmMvmU9rLta1bs9V1XQw5/Gdfjpwprm+N/nypTyxsU4Ovr6gRNYxi3 SvUqN/AwWGqRw9vyxbLPQZI6bB3UVj2rWdbOXOSDRTz/z/NpO1HQ4aEInIHMIHzT4Wrq 7giL9+u3r6edhYpoy6QlE6yAjWJA1s2heZLj6aU7cNXDk1YwMe+zqBce3expNjucBq0v W62A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SARugKS3; 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id p8-20020a170902e74800b001bf01fee6bcsi3643302plf.610.2023.10.04.02.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:43:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SARugKS3; 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:2 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 agentk.vger.email (Postfix) with ESMTP id 2492681A0590; Wed, 4 Oct 2023 02:43:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242085AbjJDJnS (ORCPT + 18 others); Wed, 4 Oct 2023 05:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242046AbjJDJnG (ORCPT ); Wed, 4 Oct 2023 05:43:06 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2080.outbound.protection.outlook.com [40.107.220.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 364BAA7 for ; Wed, 4 Oct 2023 02:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uq0IK4KlJcyVGS+pIkw/+KlOwhR8fqMKE0IGOehBmdabsz85JP+NzfYCS3tY1RR2qb4UQdz5ZA2aCKRQviixBsXG/g7cTJkSyuN2sZV7FVSqhpgGECub91kj/ozz2JyJOyw05NdKCI02GOGA4Jy/R67oWNkd0Q5Joe1MukvqLvstVnkx4jRPQfEzeQFMGfeUvZvRiPdO27IqBFF3ZYK+WydP/j5AouhiOe8Ojgii3f22OmgA9qgj1A3BbwIATEyPsssYwljbgZtHuHoTYkQbiB11nMaUiPijKLhqs8AEJ8TgWrBlaXdwHGQWTEvEEMhg+mhN1GW7QTTYxbvmK9LMvw== 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=1wY+XKMOzMftdW+wGm79wKtIRAsDu0sgkE4NmaF2aPc=; b=Epf3Z+KyDSg+QjCQdgZBdqMtL1Gq5oH86rIFI7CpFaqoeLFy+udvGkpE++h/xVpJSIC6h8A59GbTVCWGdxTx6IIicAwPiNZH3yRNXk0oSGSGrxFOtQ5wAgT+TnMv7P9aXTn5EKdXlsaH3dzfIZH/14TZNDG3y8fCT+KSz/FegRYILrfEjcbnP20b5rxR+Xv3xx1+Svu4B+Jb/RRCO7yrfdSz4sXSZysuV0wgLcqnyE+Xlwd/h43rrXTqasurbGubyqpEaxida9RRlYxb7VvS/A9YO8lmYlSkV3TMczvm8SDkjrhrddEb476uRX7ZRJhqGJ1V9/2PrLizVdcJfuVxqQ== 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=1wY+XKMOzMftdW+wGm79wKtIRAsDu0sgkE4NmaF2aPc=; b=SARugKS3Ji9wTl4Y60iXBvm8WNN+S/B99ppxiJFsiclk31Y2FGa0LHWvaoBm4E5AOPyjJK3fTrWD8ZGuFr09wJQWkLy85FwhZHFmX8ZhxkDWU5jpHxG4ffOg9sqt5f7xUDigbhKumc1ipcyq1Aiu+qnSf5QnaxBvRz/CRvmHlf8= Received: from BL1PR13CA0248.namprd13.prod.outlook.com (2603:10b6:208:2ba::13) by SA3PR12MB8045.namprd12.prod.outlook.com (2603:10b6:806:31d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.35; Wed, 4 Oct 2023 09:43:00 +0000 Received: from BL02EPF0001A103.namprd05.prod.outlook.com (2603:10b6:208:2ba:cafe::cd) by BL1PR13CA0248.outlook.office365.com (2603:10b6:208:2ba::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.26 via Frontend Transport; Wed, 4 Oct 2023 09:43:00 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BL02EPF0001A103.mail.protection.outlook.com (10.167.241.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Wed, 4 Oct 2023 09:42:59 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 04:42:57 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 04:42:57 -0500 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; Wed, 4 Oct 2023 04:42:56 -0500 From: Jay Buddhabhatti To: , , , , , , , , , , , CC: , , Jay Buddhabhatti Subject: [PATCH v2 3/6] firmware: xilinx: Register event manager driver Date: Wed, 4 Oct 2023 02:41:13 -0700 Message-ID: <20231004094116.27128-4-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231004094116.27128-1-jay.buddhabhatti@amd.com> References: <20231004094116.27128-1-jay.buddhabhatti@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A103:EE_|SA3PR12MB8045:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c9f2c04-7ae5-449b-590e-08dbc4be4bd8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bo8OYgmZYAx5pR764qMAXPKuILQik+JviCQseHZ4kWOesAcZf+7NeKEUYjKgy7qx08PoUzb+ZL4DmWAlWLz0M9P951Xx//mp+rkcAjghvR1UbYLrWMCPqTCnRyXuJWZOJZQZcoZI5fRrhmnz4adXaGjcWLYjChiLKC+suZW9JumWGoDZMn6fuU2vUa2nw3rrSflVC1V0nrAJSY6kR19O76VRLiDhL8c3S/TS6ncbSUujVOUvljD5+i66ZMQYfOkbcvf1sPNfZf7tG4pKach8l9aBkG6ybVUaXMBmBnWxoDcFsbwsAHvcnKBwC7tVuXp2KCLmKHksQGUp1vLCaWziaIPYP6LdEFS+H5PxbrRqMCOFGnZ2X+18b5NuIGRKKjNnG+00n8+wW8YwjcpUGZIQZcTVvGAkWgb4KcQ+AgfvY/6s8s4Mpt5P7S0AWlPENgtolPJFGXXSHmY85JOwr0ZbGuUZTo8Gsgqw+sn6qvQ5RFNgIFM4KeL1mD7yJD/quNc9qXQJac2ZYMtft9Q4QWircrOb2VRUkEf+dqZZw9nZV9CMRHu+2twvrbSM/0BiGk512gtIfK2GGahcDU6cpdCNUY3cxlqWqPo62G24DqZNOuCkgdmplZgd1gW3tnb18pDgTDMF6t42U9P5cU0mmwvOyupkotgnOCF2VmiZAFP9LlolBOn8CwvXGPlof39/PV2HjYZuJuojmHBbD7oLAbbox92Q64DUAG1yI4RFvGOKX6BsEY4bT//8KKBC97oZhdsvUOBow/fZUESLfhOcoLr3drx1Api4dDPOsot27nhU0ac= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(376002)(136003)(396003)(346002)(39860400002)(230922051799003)(1800799009)(64100799003)(82310400011)(186009)(451199024)(36840700001)(40470700004)(46966006)(40460700003)(336012)(40480700001)(86362001)(70586007)(54906003)(41300700001)(110136005)(70206006)(316002)(478600001)(2906002)(8936002)(8676002)(4326008)(5660300002)(44832011)(83380400001)(36860700001)(921005)(47076005)(81166007)(82740400003)(6666004)(356005)(2616005)(426003)(1076003)(26005)(36756003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 09:42:59.8044 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c9f2c04-7ae5-449b-590e-08dbc4be4bd8 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A103.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB8045 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:43:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778817570887194706 X-GMAIL-MSGID: 1778817570887194706 Use family code in order to register event manager driver for Versal and Versal NET platforms, instead of using compatible string. Signed-off-by: Jay Buddhabhatti --- drivers/firmware/xilinx/zynqmp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 5f40288f69a9..00ea2508f692 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -1953,7 +1953,6 @@ ATTRIBUTE_GROUPS(zynqmp_firmware); static int zynqmp_firmware_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct device_node *np; struct zynqmp_devinfo *devinfo; int ret; @@ -2016,14 +2015,12 @@ static int zynqmp_firmware_probe(struct platform_device *pdev) zynqmp_pm_api_debugfs_init(); - np = of_find_compatible_node(NULL, NULL, "xlnx,versal"); - if (np) { + if (pm_family_code == VERSAL_FAMILY_CODE) { em_dev = platform_device_register_data(&pdev->dev, "xlnx_event_manager", -1, NULL, 0); if (IS_ERR(em_dev)) dev_err_probe(&pdev->dev, PTR_ERR(em_dev), "EM register fail with error\n"); } - of_node_put(np); return of_platform_populate(dev->of_node, NULL, NULL, dev); } From patchwork Wed Oct 4 09:41:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 148209 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6f87:b0:13f:353d:d1ed with SMTP id tl7csp2498131rwb; Wed, 4 Oct 2023 02:43:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEl5d0PyORGeJaznNvfCx0+m5sIUryAQx8KXrJ1tBnz/V75HYw44ugBmGfxSyEsLQmkBqBU X-Received: by 2002:a05:6a00:3a19:b0:693:4552:cd3e with SMTP id fj25-20020a056a003a1900b006934552cd3emr2025912pfb.19.1696412597136; Wed, 04 Oct 2023 02:43:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696412597; cv=pass; d=google.com; s=arc-20160816; b=fThQwJRkVvkwgBFcHXAmJhjjEldsjCy41DVlHkv3/z4mcV98GPTsb9i7rEdHY4S5Wg GIj5PHVMeBru7hBf2cvPd2V3iRvwGSNZx4sqNw7lS1CK7ZKd45Yqf7F+jkwz7NeM8wEl 0l43ZLsueGfiTMhNMrcuf52s5bccHnf9n0S2eNAJveJO8tgcmb052XBBNhJRFfmFSTAF xK9fs3LkPhG8k+nxPVHC8JnJVQjhgDqF4YxTb1xtiAup/BCZ1mKY/VkltdDz0JV4GX8p XR74n/VLITR4b3Iaja1C2uUueEzEtT53ZXunJrj4yX71B+bJNirChCvJti4jVZ7z8kAA u+JQ== 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=WvntDf7ACdTzxu4p0nJOztW/Udflc7A3Rx7vNR5xHlQ=; fh=OuU1HFJpcPD++FxvCYF0jPyLbYe5vBK7LllcrNKODlM=; b=rAuvE/oR7CRXYrmSszY+POogRIqkKt2OJQAQStGyyypDyvWJ9WRqdz10hbJ93l6zNV hEKo/E/NHOrVqICqMZlc8HWQmVH7+fWbY+X5KANalcZ0pvG5U/BBEfdgUhSuh6aRvp8g ZPMQVLENQv/XYAf5Syy+ZqcCps/Zz2jiCBM14/9FB9ugiwTDkUXe9gGK2aHCHd9jpD4d H5UbNyHDLW0ViOR4veYWC6WQV9DnCi6PUKTQiXYE9zc1c8fYp7qUcAN/xSUD6R9XXp/+ cheCMjsT6tNt4LeDwizX4Kr653UNoqtUIM4WZ35CLQXApdlq9PxYLgSqAJYwNJu0MtEI RJPw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=aGhmW3zK; 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 cd24-20020a056a00421800b0068fb5ca50cdsi3282459pfb.126.2023.10.04.02.43.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:43:17 -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=aGhmW3zK; 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 69557820DA27; Wed, 4 Oct 2023 02:43:16 -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 S242069AbjJDJnJ (ORCPT + 18 others); Wed, 4 Oct 2023 05:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242038AbjJDJnF (ORCPT ); Wed, 4 Oct 2023 05:43:05 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2046.outbound.protection.outlook.com [40.107.244.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26C629E for ; Wed, 4 Oct 2023 02:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vq+YGqOiXWKZR7qmK9CukXsGBTGNXIupqvx2Zp8wbHkTMM2HeLHwCIGiLoJCRQS4Jem4+pQmFNLH+NlW5Kr8kFcntYnavtyi/DgLF9ATvXbJYIYESa1WDQ/xYg0eoSQguCCUl8oKFr78Og8QFC1d2/KYhMkfADYq1ovdpnfvoGHLmev2vI84X5KtpA8bK8POSZUU+oFByL1P4eFPUoUqOV6S2mmCZPfBha5RtsiEF3KC3VdGF0JIi6VevXwDTJYB87PDS5IPhApn8weIzQ5BMqGr8u/Icp9E/uhaYhc9Xa2DfVGc2dtzvW2FT8HT1ubzTeaGTXmePsdtEzHxE1SNsQ== 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=WvntDf7ACdTzxu4p0nJOztW/Udflc7A3Rx7vNR5xHlQ=; b=E+pap3F+zMpwff/90H+Q3uQcEvFzIGZcOX459Ke4SkM3zbxKUjfX41L+eA0khSLgvHeZfrL0aYdFMwUS9ZLcJwpNqq68jOIODPDdUaC9Rmcw6Mbf6YhuQJ2R+uzsWilbGUft3OZaEmecP3UMmde7MoNRSbDGHwv14t2cG/PgS7uUmM0U9omHTcc+aheyguxb6z9Dmy6KUrz4uIAyYg9cORuFKoR7+HXQQZ+rKEhEDQSHiInk10DyVUtISCBAbUBjvscLttTlNIfIgHEU0Frsb2uV3Y6qn+cM0XW2wuEDc1Wip9HYKoGulBrrZwiXIQ1JxhW0qk/eODGuRn3V9599ng== 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=WvntDf7ACdTzxu4p0nJOztW/Udflc7A3Rx7vNR5xHlQ=; b=aGhmW3zKbQP0N1hfTJJxj0X72ufyJzWgdfflLC21aPI4fJR4knjGxfTmcafOEoUwPXIrGihL2NUsGAeXYluGNxEVJs5EASTvEnUh4XYEegEK9OJ1bLTXYEv4AwVYfYu6d2wS1hCpi0Otqr4mZbetX6AOlJYYOI5P+uCnhrRLSA8= Received: from MN2PR08CA0016.namprd08.prod.outlook.com (2603:10b6:208:239::21) by SJ2PR12MB8184.namprd12.prod.outlook.com (2603:10b6:a03:4f2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.23; Wed, 4 Oct 2023 09:42:59 +0000 Received: from MN1PEPF0000F0E2.namprd04.prod.outlook.com (2603:10b6:208:239:cafe::95) by MN2PR08CA0016.outlook.office365.com (2603:10b6:208:239::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.26 via Frontend Transport; Wed, 4 Oct 2023 09:42:59 +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 MN1PEPF0000F0E2.mail.protection.outlook.com (10.167.242.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Wed, 4 Oct 2023 09:42:58 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) 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; Wed, 4 Oct 2023 04:42:58 -0500 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; Wed, 4 Oct 2023 04:42:57 -0500 From: Jay Buddhabhatti To: , , , , , , , , , , , CC: , , Jay Buddhabhatti Subject: [PATCH v2 4/6] drivers: soc: xilinx: Fix error message on SGI registration failure Date: Wed, 4 Oct 2023 02:41:14 -0700 Message-ID: <20231004094116.27128-5-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231004094116.27128-1-jay.buddhabhatti@amd.com> References: <20231004094116.27128-1-jay.buddhabhatti@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000F0E2:EE_|SJ2PR12MB8184:EE_ X-MS-Office365-Filtering-Correlation-Id: 7a2790bb-fdcc-4013-a721-08dbc4be4b55 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J+4/w/S9BlDuwn18vPvoryOm83bWuWJ5fNxxKnONzoQ0Y+Vj8ybmIUtVjDvize6INoDB282J4sadpIXTpfTK2JUA3se/0BBiHYOhK3K65SDgnYWkQj4jbNtqD8qq/EmBMH+Aw5Fe9a91NEFhdqLKtUJ2BkfnVtO0rHani0e+11qgL7bzRPGlPPHyMsT0bphxGYIZKcX2xnOj7xegSFqoTeN9oCut5YewwW9qwDznE7WtKf5eo2AxBmwg+ELjPuHhab40B3F16fv/1Ne4qa8LADk5LDT+myg/djmEJQmwVSZkYJ2jOGRreQzb7OYpwmOmu8al3JBjBMJxKfGHGuR4vmSPnv2qTLuTzpYpLN2oFUlR4YecU8F78Rn5vWwOersVPHx1vDWFWkLF1rGTk0eTx/rxk4x4Qm0i6bUB5Da2tiuTbE2LTw17fzVGLrt/06+MvCNLNeEGtmXIOj/aKRbAmLHBkKCxz+nNQnkFLlsF3hAdYf2UWafzgxmNVdji7SQGm6LQj0eQUw94zpcMB6LrXiS2WlttGj499cuIKp6nVqaVuhEEJm6CDi2h96+JwH/P7chdzTEM3lJ89WnRjNv3JSjFmkp0/xOpAGlP+8XKHN9+tWbjYDK6S1NWitaLpz3ZMYwTcdJL+Bnp2HLam3kxLbiJRDaGqC+sUQYw3IdcQnJn7x8i6mDAwcl+g6kkHK/UMX/JjGufd+5eiK6cwwDXnMVFCWU8DASU3yGXw1B4CMUMc19WQfEHuTlkxYPr1sjvZimMVMltpUqpDfvLkRUqHkLJwrBnrdm+K8ej4LmNysE= 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)(136003)(376002)(346002)(396003)(39860400002)(230922051799003)(451199024)(64100799003)(82310400011)(186009)(1800799009)(40470700004)(36840700001)(46966006)(356005)(82740400003)(86362001)(921005)(36756003)(70586007)(81166007)(41300700001)(70206006)(40460700003)(8676002)(2906002)(40480700001)(8936002)(5660300002)(1076003)(110136005)(478600001)(83380400001)(44832011)(426003)(336012)(6666004)(316002)(15650500001)(4326008)(36860700001)(2616005)(54906003)(47076005)(26005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 09:42:58.9479 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a2790bb-fdcc-4013-a721-08dbc4be4b55 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: MN1PEPF0000F0E2.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8184 X-Spam-Status: No, score=-1.6 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, URIBL_BLOCKED autolearn=no 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]); Wed, 04 Oct 2023 02:43:16 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778817535244294775 X-GMAIL-MSGID: 1778817535244294775 Failure to register SGI for firmware event notification is non-fatal error when feature is not supported by other modules such as Xen and TF-A. Add _info level log message for such special case. Also add XST_PM_INVALID_VERSION error code and map it to -EOPNOSUPP Linux kernel error code. If feature is not supported or EEMI API version is mismatch, firmware can return XST_PM_INVALID_VERSION = 4 or XST_PM_NO_FEATURE = 19 error code. Co-developed-by: Tanmay Shah Signed-off-by: Tanmay Shah Signed-off-by: Jay Buddhabhatti --- drivers/firmware/xilinx/zynqmp.c | 4 +++- drivers/soc/xilinx/xlnx_event_manager.c | 7 ++++++- include/linux/firmware/xlnx-zynqmp.h | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 00ea2508f692..de09d77cf1e4 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -92,6 +92,8 @@ static int zynqmp_pm_ret_code(u32 ret_status) return 0; case XST_PM_NO_FEATURE: return -ENOTSUPP; + case XST_PM_INVALID_VERSION: + return -EOPNOTSUPP; case XST_PM_NO_ACCESS: return -EACCES; case XST_PM_ABORT_SUSPEND: @@ -379,7 +381,7 @@ int zynqmp_pm_register_sgi(u32 sgi_num, u32 reset) ret = zynqmp_pm_invoke_fn(TF_A_PM_REGISTER_SGI, sgi_num, reset, 0, 0, 0, NULL); - if (!ret) + if (ret != -EOPNOTSUPP && !ret) return ret; /* try old implementation as fallback strategy if above fails */ diff --git a/drivers/soc/xilinx/xlnx_event_manager.c b/drivers/soc/xilinx/xlnx_event_manager.c index 38cfc161a713..bfa5cf4a0cab 100644 --- a/drivers/soc/xilinx/xlnx_event_manager.c +++ b/drivers/soc/xilinx/xlnx_event_manager.c @@ -653,7 +653,12 @@ static int xlnx_event_manager_probe(struct platform_device *pdev) ret = zynqmp_pm_register_sgi(sgi_num, 0); if (ret) { - dev_err(&pdev->dev, "SGI %d Registration over TF-A failed with %d\n", sgi_num, ret); + if (ret == -EOPNOTSUPP) + dev_info(&pdev->dev, "PM firmware event notification not supported\n"); + else + dev_err(&pdev->dev, "SGI %d registration failed, err %d\n", + sgi_num, ret); + xlnx_event_cleanup_sgi(pdev); return ret; } diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 86fb73269d95..4afd5d63177e 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -160,6 +160,7 @@ enum pm_api_id { /* PMU-FW return status codes */ enum pm_ret_status { XST_PM_SUCCESS = 0, + XST_PM_INVALID_VERSION = 4, XST_PM_NO_FEATURE = 19, XST_PM_INTERNAL = 2000, XST_PM_CONFLICT = 2001, From patchwork Wed Oct 4 09:41:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 148210 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6f87:b0:13f:353d:d1ed with SMTP id tl7csp2498259rwb; Wed, 4 Oct 2023 02:43:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQMq9qZJnEypN8USgoNA+uP75AeoTzHAeAYfzuN10vXoLQWFVOIV/Zs6Jlzhd8Vful14uw X-Received: by 2002:a05:6358:9184:b0:143:1063:d1f4 with SMTP id j4-20020a056358918400b001431063d1f4mr1868190rwa.13.1696412611893; Wed, 04 Oct 2023 02:43:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696412611; cv=pass; d=google.com; s=arc-20160816; b=Pw0XecoNvyhD91NTy7JXMVTsuRQwDw2RqxHWNed6PlAQWPu8MOhRIoknsgdWg5MZgK NHLbf3iCgj3lBwDLH3bcgEL6aeDTQKHB8f7Z9tD2BFWA9+T+OVO9hj0LBuOQ4SvfECAw tTz3BY6qTSTNzB5WoxfyS5J3ODff1+19GMTGOlggpAfmeysCxohcqPvrFgVdXpEyWvPl uN+dZW2FyDOOOmtIFU2zaIbdbhuEZjD13bcgEpC84oB0LU/WP6H5Mh8TZ70BsdeuWW/w mvDm8sY45OduaJAzHyKR3EDJsUHvWFtMSznaUjrPwcrmqhARc1r1w0tObQunZsq8axKD l0pA== 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=ZE8g1kvoVq+w7u1BBdQcFf7ddk2hYdxtN69QARB7PL4=; fh=Mosn3DTf57DDOUmCRcJKMe/HgWWq9V4723QjJU/iKpg=; b=kv6gMEvpMqQXX/ZiInQ4KT4+ZMSz/5oDrfAkZphNoA/R1jcy0fch2t8rmZlyFG7EFG Wyj6Mfyb/cEfG/qkLoDYL5Y/MySAm5vTyuQLpYfUYkhxcT3qcKsVgfJLNmRzuFmbp7jV FO+PLQdE5O30kgOg5O/cC8jJHa578Qt7duwaqEe5W9dseJbKR16k4TIobgn+ySiHBmn4 O6lkfiIyIP3zrgzm+GQJS1XM/qic1AUNM9T9GL6VcFmTLfB7ontPIcH6QNFlmRaeWvoX Ku4YGcrGWFIEONEG1ZQHQbw5zDKCFm4gAfeMWlv90kIG/tEoBf2UFMFpb+JuzYcfrFJM ZLHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=kG8texCw; 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 n20-20020a637214000000b00563e283786esi3393280pgc.104.2023.10.04.02.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:43:31 -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=kG8texCw; 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 37958820DA2A; Wed, 4 Oct 2023 02:43:31 -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 S242095AbjJDJnV (ORCPT + 18 others); Wed, 4 Oct 2023 05:43:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242051AbjJDJnH (ORCPT ); Wed, 4 Oct 2023 05:43:07 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2056.outbound.protection.outlook.com [40.107.243.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CB96AC for ; Wed, 4 Oct 2023 02:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yvoc1xMBhLVczYV6aHhFVGfVV6F4SFaSGAxwwlS7yBCXxQf1CRDZjOEKUme6VK/8wq75wKxWSkxCSlHFylgZ1MXWI2hlV7Wv8o8rlnX60nCB61l5wszqhA6Ms1JMkr6KXVnwkWSGpNIWDdCwsyMxMthyhX5LI/FKNnZtSDAWBlOXZDN/Gkm0+Hy1PadnzgSyyF15YbAUNf3Ante6IgmvYocaJ8u+h7oh+2NymwQssrbgxTggtKllPGiDtz25R0Cd5qTeSIa23QliwS8Aclm/LLA4V71CpwYkPhSzB+a523vpt096U5lXNNYstQbx9Pp6kZbIbNU53c9P/Jismlpq+Q== 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=ZE8g1kvoVq+w7u1BBdQcFf7ddk2hYdxtN69QARB7PL4=; b=nA3uL2j2PtLNWEZ3u9wvAFAumKEbxzJ3Ff87Ywzfo7CCf2+M7J4Ba8UMH0UQIgCE1G8CNqJkPEK4bOyaXQphe+o9KKw0bqvtCbNDOVZ71jfcyVpTNbLXz0bOnLT+1Zc2gSaLn2jUMkO0y3fNow95DIgth2QGZwWlPpdA3XoI5vecZtDvzgjnHVFuV5WKTzJaZHkJXryj6rcXPOEAE4JeiCqhspiqJ6xoBITB8KUZ+hwqpAN4nPsh9FmCXGRLJjzh3jeuEOGO85jqFowHaiW7lzvTyQLB9urfOHf41ByH/6+8iaCoDFMpR/H43Odi8Py9EbNuZvG/x5PkkPIQtvkUsQ== 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=ZE8g1kvoVq+w7u1BBdQcFf7ddk2hYdxtN69QARB7PL4=; b=kG8texCwH54NvDx86Z2uzRZXcjvjKumk1bUHt1042z5Ql0+IjpScQhoPOq1vW1BlIy08eJW6Yg9/vzF7XsbSMfAffATR8U5SHwYJC7EWyumA/CYYqMBmrzox0TTrHbQyy29GvcC9p7OR3PsMY8O5D3cEhFkcmXOMW37lTElpO38= Received: from MN2PR08CA0006.namprd08.prod.outlook.com (2603:10b6:208:239::11) by CH0PR12MB8464.namprd12.prod.outlook.com (2603:10b6:610:184::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.25; Wed, 4 Oct 2023 09:43:01 +0000 Received: from MN1PEPF0000F0E2.namprd04.prod.outlook.com (2603:10b6:208:239:cafe::18) by MN2PR08CA0006.outlook.office365.com (2603:10b6:208:239::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.26 via Frontend Transport; Wed, 4 Oct 2023 09:43:01 +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 MN1PEPF0000F0E2.mail.protection.outlook.com (10.167.242.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Wed, 4 Oct 2023 09:43:01 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) 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; Wed, 4 Oct 2023 04:42:59 -0500 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; Wed, 4 Oct 2023 04:42:58 -0500 From: Jay Buddhabhatti To: , , , , , , , , , , , CC: , , Jay Buddhabhatti , Naman Trivedi Manojbhai Subject: [PATCH v2 5/6] firmware: zynqmp: Add support to handle IPI CRC failure Date: Wed, 4 Oct 2023 02:41:15 -0700 Message-ID: <20231004094116.27128-6-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231004094116.27128-1-jay.buddhabhatti@amd.com> References: <20231004094116.27128-1-jay.buddhabhatti@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000F0E2:EE_|CH0PR12MB8464:EE_ X-MS-Office365-Filtering-Correlation-Id: e5017f28-5474-412d-d37e-08dbc4be4ca5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: X9GjjZJnHfsQTkMC3d/H+1cBWEPJUvxp1riy2e7FJWgFmRpWZmjqxk3s8OqrnVG91lO7bHDCKwYdaEs21VW1dEHUvsBX23vGnGt+JJgayOlH6iIUJOooGpUX+xXy0vk6yIy1dpXa+DuoVygIActnlNcmLPpeG+nFr9f2tHYVWMaSFuyNBQ7SU2Yp+GiQDBcAIqxE6/g8fdpRmaJxcWM38+acVUCsT0LCJiU4KYzslXKw8fMtYQqi8cYe5L59bbfz0YwsUqgn63nMc6+3gTMUWIiHkYn6jGkJdwx0hJzAl7ZB3SVhQ5opcszOEHHNWJagE1jBRKUL3qTrDe2dq6vagBT49MonzmxyK5IV017/no11LPtogf1Jt5feYRg/KQc1l6ALoPDeOGWQObxtENEC7aV7QP/7+5kJO5fz0cl/wY/lvOnGewBzNyemkzfKBpF/vb8/NvltXPJ7T4J8WAxT/SI4R4Bp/nga5KKc9CWAbttNFOCPQdWjAM76vypCYkM8rkM0MLhPlgcKK8Jr+XZwIf6Bf2WVrHe8slPrSDQZe0f/jkXDCCW73qMIL/x75vfRp1Sf+7lQcBxACpxxdOkPqpd3R/hL9b46BoLWaVogNtO4CIOjsD8se15Wc5/1mZoSK6V1TOX8RkCpNN9/i8RNUDAJ51PKt0ZylJbMrZlGOhqbQevDEkugwkKXllstmBGL5brZQEQdsIPKbUauI3IxQRScmUElb6A2s4rZXBNwzoJ31Yx40/4V0P7wV666HpKhM86pBav4JU9V7swaR7GU0bTX3ihf3bhdt9ysStG4ZO4= 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)(136003)(39860400002)(396003)(346002)(376002)(230922051799003)(451199024)(1800799009)(64100799003)(186009)(82310400011)(40470700004)(36840700001)(46966006)(5660300002)(40480700001)(40460700003)(6666004)(478600001)(26005)(36860700001)(356005)(82740400003)(921005)(81166007)(86362001)(2616005)(2906002)(4326008)(336012)(8936002)(83380400001)(36756003)(426003)(1076003)(70586007)(316002)(8676002)(41300700001)(110136005)(54906003)(47076005)(70206006)(44832011)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 09:43:01.1354 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5017f28-5474-412d-d37e-08dbc4be4ca5 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: MN1PEPF0000F0E2.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB8464 X-Spam-Status: No, score=-1.6 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_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, URIBL_BLOCKED autolearn=no 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]); Wed, 04 Oct 2023 02:43:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778817550698268567 X-GMAIL-MSGID: 1778817550698268567 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 de09d77cf1e4..515936497927 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 4afd5d63177e..2fdda6086de2 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -162,6 +162,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, From patchwork Wed Oct 4 09:41:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 148214 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6f87:b0:13f:353d:d1ed with SMTP id tl7csp2498528rwb; Wed, 4 Oct 2023 02:44:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNiPOgEL1D8DwiI5B6J6WWOIE8stna1LUMOyeuOe4dchxNQfYIx3a9URXlgZVIhZe62Kbi X-Received: by 2002:a05:6a21:4841:b0:160:c502:6d93 with SMTP id au1-20020a056a21484100b00160c5026d93mr1610205pzc.25.1696412651476; Wed, 04 Oct 2023 02:44:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696412651; cv=pass; d=google.com; s=arc-20160816; b=Ki2rHYbLMNWvIGkPHmKkAcE0hwPg+OH2AewaNxs2EI1Uavo1QiVNByMIIGJZmFU8Zy 8E2JkFKZQj3lyU10T+zG7/CcyfRx3cgQ2gm2bx8rJg0Yg7bxIGgwXeEZSurQgQw9RBLk 8SLmfhBcRFN8kL3xXVaWrpA3khH1mrbHKAcivm+BrHNSpPYtdZ62E01fIsej/9ekIjzB jkQki/ymBf8t2PnaD58CBD1cfme7stK6+eIBDsZtxwLFFAaKL5r52UHpcVmeq///xiJU ILyxdvFL+aaB+OHNFaAXfcEn4YEKjtD7V75hchb1eRpq6LLcKwslcXad2psrSFd6wcVm aFzQ== 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=r1tMlNZSsc0NCz9cjCpGTGHz+MHBa4yIO6Nis0+ArdA=; fh=OuU1HFJpcPD++FxvCYF0jPyLbYe5vBK7LllcrNKODlM=; b=ub4U3oGHi6SZc+YTy6oCYJ3n54uot4F5NA6z69ONcG6pakOdhemcNfOsxXuJl4yTkk hY0jSBYWu5Mli7d42wGmFDlHHbEEQjeM/rPZk4ytVRPGveZhKdqBbomASbBmPKZHZE9v okBgdITgOnpxTd8Eqv/tMw/L9386YVt13/VLMD1+RlNctoLjW78JfpQy/ewSlpAyUwXk iYGykCF+MAQEEezHLPzn9ZLFNJAdpouPJ/AgCJqIOZdm0ADTPNOdJ7qbcs9T7qQ+nmPd GP+1r8G9gKYGIspGRvc0RLJnQJNPddjiYcQByQlpN3Iwp6J4aOIYkbvjhDeYxF6RyTTr PNeQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=GvzWM6Xp; 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id cu6-20020a056a00448600b0069058764684si3249801pfb.367.2023.10.04.02.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:44:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=GvzWM6Xp; 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:2 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 agentk.vger.email (Postfix) with ESMTP id 76D7A8133D1D; Wed, 4 Oct 2023 02:44:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242099AbjJDJnZ (ORCPT + 18 others); Wed, 4 Oct 2023 05:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242087AbjJDJnQ (ORCPT ); Wed, 4 Oct 2023 05:43:16 -0400 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2070.outbound.protection.outlook.com [40.107.212.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41A5FD9 for ; Wed, 4 Oct 2023 02:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TYFkY4bL8cpUyM62/mb8OKF+Tnky0HXC5SnmYHLPqQ/BJCHj3DtdDbDYNPGmmfGz+traw5pLlrSvvLgx6ddUHMcFhvwzs258NkP3GToKOTN8eipV2otAGCdgk5df2n4ie1jtCwo5F7hUIoQ7UiUVhEPb9Ct5E6zFT5WNFOk4ZlcTgptz9zgVQc4P8dzouoDqRsG9fzSsNeopNh5Iwi/KPypNjzTEbNezYmUUhKmrjvebRt48iLPTETKEtQM1oAMWAescmgDxle8i1QjSqU17+i6WPt/gOkGtiPW6aHeZyBMyEim+2RyeWOJsYC/eMhIbs2oNPooUH+VNtYR6QzMS9w== 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=r1tMlNZSsc0NCz9cjCpGTGHz+MHBa4yIO6Nis0+ArdA=; b=j4Fg6dqocJ1tJfPseWMVzr8pqRXMEUOnvXrD0l8TOefWyzTEBBS4aUbbksOXoYYdertJaIzpGl/G2ByU/A/78aIsBaBV4X8nB7lBTWOLtH4Z1CHQTsm5jWFM2QmkHbjrbzz9yc1hZmVyxePRZTtV0CsvnkQIsbapF77v6Ppe2W9Q4Oaipa2Dn7bGKSM5ww3v51n0eqCFsqCBv3kDybBWdkOpj4OSWd8+MJetHwJC+vnsJUtVjcAzSwLrQH6K7Yl2+RqSRuuGTtjMuPtPYTGI1Jb71OqZ9c9rEmzp8cAE4RNkoP1ZYMqHjgKyr1N4MQWBQq328izeAxZY/qFSbSN+DA== 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=r1tMlNZSsc0NCz9cjCpGTGHz+MHBa4yIO6Nis0+ArdA=; b=GvzWM6Xp/7OydzQCTz7/B9BDrSg/xoe4saz2HGAXDEhxZxV1C+Ct8cxw9Hj9CWAmMUNo2T2Vyjh419RbjW9LjCZ6QYrCSCz3ZKRjOz1qx4W9ZiTO3pMi9R0D3ViMsXD8CJiNHERUTxaH1cYFNbz3luOlAfmL2ha38evioJBF5Do= Received: from BL1PR13CA0269.namprd13.prod.outlook.com (2603:10b6:208:2ba::34) by DS7PR12MB5792.namprd12.prod.outlook.com (2603:10b6:8:77::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.35; Wed, 4 Oct 2023 09:43:04 +0000 Received: from BL02EPF0001A103.namprd05.prod.outlook.com (2603:10b6:208:2ba:cafe::90) by BL1PR13CA0269.outlook.office365.com (2603:10b6:208:2ba::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.25 via Frontend Transport; Wed, 4 Oct 2023 09:43:03 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BL02EPF0001A103.mail.protection.outlook.com (10.167.241.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Wed, 4 Oct 2023 09:43:03 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 04:43:01 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) 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.2507.27; Wed, 4 Oct 2023 04:43:00 -0500 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; Wed, 4 Oct 2023 04:42:59 -0500 From: Jay Buddhabhatti To: , , , , , , , , , , , CC: , , Jay Buddhabhatti Subject: [PATCH v2 6/6] drivers: soc: xilinx: update maintainer of event manager driver Date: Wed, 4 Oct 2023 02:41:16 -0700 Message-ID: <20231004094116.27128-7-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231004094116.27128-1-jay.buddhabhatti@amd.com> References: <20231004094116.27128-1-jay.buddhabhatti@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A103:EE_|DS7PR12MB5792:EE_ X-MS-Office365-Filtering-Correlation-Id: 66f07f69-b143-42cf-d9db-08dbc4be4e41 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OE9chN2iY7zqLEllhpXNXnVCj9rnbsmREpYwH++0VnrtbJhblp3daAc90GfWDMaU7F4rlN0o2Mai5b0sPe4NfYpB194g8Cn0cHDsYK9c5olHPGwObsl7kjCsBK3wZhhLvscztCHf6cVSZQrnA0kjHPz8FLSeidwbBjzPNJ7EHFGKDK8BCTaNfXXTkgwoaKGq/ffWtx0/BNPZC755eZY+J8L9TdlCXUfXD8LCvozKiKih1yfsx+AKVb+oDnZLYR7mi54w/QlrRhjv4ztA4hMkwzkvrnfy7ZUoHDDWoC/gd9tZuRRBnUv9gzqvXovi6EYRsHGYWjwcK21yyLV26qRdumHIJdX5ZsxQLdzQLQdsONDheITdVt0Rc9DUqIumx7/ARNR0fKq7DplA5EY797du03u/Owm28RQE/go21m+dP+17XVjnbDYctHJ/fitLOdpx8BTVT0jUjc+WA57o9Nw4xkWAGoN7Bvou0XADcrZtSi+B0iilmUePTALUcTVg1z2Lugw0ZK+pUwK6biguO8zgbhJwbyNk8L7cVTbd8/Q9CSsmRmOe68FBFlRJfGQ/0emdhGoD8GoOm/EghvPIfkAgwdFP0gzB/HYN3q9Km1AHsYH+tqjog6duhikH/3iKB+jJnWVfmwZrg3HPthGqRBKcoQy+sQLI3fEkfFviA9d4lZZCNy2bczfHyJY1+GIZnfCCioZDVVbL/j/93Yf5ecuXpUhw8uCj5q/bnxjtlBMEm1LQ4wdmL2EvsVMoyLHCdGP+jPWcxgOt40JU1xqiVKLJ3KG1htRS63b1dYT7kH3Y3J0= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(136003)(39860400002)(376002)(396003)(346002)(230922051799003)(451199024)(1800799009)(82310400011)(186009)(64100799003)(40470700004)(36840700001)(46966006)(40480700001)(40460700003)(478600001)(6666004)(36860700001)(82740400003)(86362001)(81166007)(356005)(921005)(4744005)(2906002)(47076005)(83380400001)(426003)(336012)(26005)(2616005)(1076003)(36756003)(70586007)(70206006)(8676002)(316002)(110136005)(54906003)(8936002)(41300700001)(44832011)(5660300002)(4326008)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 09:43:03.8357 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 66f07f69-b143-42cf-d9db-08dbc4be4e41 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A103.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5792 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:44:06 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778817592018470628 X-GMAIL-MSGID: 1778817592018470628 Added Michal as a maintainer of event manager driver as Abhyuday is no longer in AMD-Xilinx. Signed-off-by: Jay Buddhabhatti Acked-by: Michal Simek --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 35977b269d5e..f36fefd7032b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23672,7 +23672,7 @@ F: Documentation/devicetree/bindings/net/can/xilinx,can.yaml F: drivers/net/can/xilinx_can.c XILINX EVENT MANAGEMENT DRIVER -M: Abhyuday Godhasara +M: Michal Simek S: Maintained F: drivers/soc/xilinx/xlnx_event_manager.c F: include/linux/firmware/xlnx-event-manager.h