Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1349678lqt; Wed, 20 Mar 2024 00:34:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXI38UgC/VHtoa4YJqesLaUjPkgQOMCqHVwpHyrMapg2b99utMv5rvxjLajRQuZPiD9Wn8T5GcogA3IqRwZvPnseh1XVXsD3t6TgesG3g== X-Google-Smtp-Source: AGHT+IH9FqR8nAqNxMOYkgN9yyuWO6l7MDDUraLlqf1fXvoxv+ACscFiB/Up5P1V41+hEuQC0euK X-Received: by 2002:a05:6358:2799:b0:17e:68fb:8669 with SMTP id l25-20020a056358279900b0017e68fb8669mr18908603rwb.23.1710920067650; Wed, 20 Mar 2024 00:34:27 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f3-20020a635103000000b00565db2812a0si11755344pgb.60.2024.03.20.00.34.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 00:34:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=doPrtrAi; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-108547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E61B8B23006 for ; Wed, 20 Mar 2024 07:34:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DDCA224C6; Wed, 20 Mar 2024 07:34:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="doPrtrAi" Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2082.outbound.protection.outlook.com [40.107.241.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CE262208B for ; Wed, 20 Mar 2024 07:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.82 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710920055; cv=fail; b=OW7sxiE+hD9zJvcWH+/SfwdTynOLenmW0Pmu7SA9dbba6HmnyUuVQh909t3d0X2i1dArRF3KfDqHwfkNTxeTARbCElEjuSIlvCwAj3gsHAEQxk7eQqmtkoUAvXE/BA6nYXS//MDojEOa5NVA7XlBi3c3UA3omeUZcFj+ehTNtKU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710920055; c=relaxed/simple; bh=WY7mIU9YtsSl9roUgukGjb3lFUJIKHCeAVbk70ClbJY=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=IxUjGhq0rn0iYiveBU+3ODEBusjlMyxHNJTsJmVMUbKbFVxeT6nv1iHEQUrgRSlryoJYgpjJxdRTjkjKRBddjQLwRYJlNDA1yLXCWLOPxOaV7iSPCDpz5WqQuYOqxt94GyTe8h62AjKG1PwY4KdPg/ii8da/hA4v1rz1BHHf9j4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=doPrtrAi; arc=fail smtp.client-ip=40.107.241.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SS48Df6ky6zXfaTQXTahQVnZP+3GYbSMSb9gN82F0YA0X/UwgyqnIBU3Qu2G6zJdoW99P+NFVS+2ntJUUidPAa4Lis81flxl85NAXIQD2D4KFRMyQErvTzFmsmC9008+UH7fPZ2oUlKYcUKBij6IGUSja9Xq5wyo9Y6HQSAVwPHYFIFeadbVkrTMRdC2C6yNWlcwMXD5PcYjF8l49S528Xh0wvmTzxKGGUv0ZRyIwPmtkVIFu1AoVsfol0L8f7Q15NOviDtu2ALTSEHEGMPu6UGkkomIRpuf7AeU+ZqeufVMRU9uSwA1Oa3FCsO2osy/uPGuSMM6LXMvWTBPGKsVtQ== 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=mEa2Os3lBXfToh4/Rzbn0rgApqcEl7SpEz7tztXzlpY=; b=Fr1FtXjbnIJ1692pvzlXD3wwU+uXn0KMYj7Juu1UMfcVywY+7QViHcJJKur82BJH3PUpDUNYMFv+nrpBH2RG2YXPN7W7LiKWac47NcKApAVx/MBRXMU0EoXKXaXMnnMFYyVdZbYml7sEdtge3TjP1TyZN9ViMjg4C3Pc8Xy+AQgLNw1MTY6dhu9VbLVYrlmhuGOI+PRhrbO0c4l/9KMyAdeZpQZtP5NF3HXwzMJ5/XZWDn8TTla2RQMuq/s7Xy7f5OJ54uHz96tluVi7SKRPB0Pm5Yux7bTBQJdXLq6w0wJVuHDys8vwcyRzKWRSNeINtzEEtzedP6I+6CuNTrgbaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mEa2Os3lBXfToh4/Rzbn0rgApqcEl7SpEz7tztXzlpY=; b=doPrtrAiwuAVsMm8Inrpz9TT5395DcDDeBdwC7EaVUDHGrdyBHfmzFK3EbTCv+ZKD+3FynGhGQwneV74Xd94ICDShdPlFFJy4WXPpZpI06fgGe+lvvF3j0x6p08mbSkmz+X/+O1TyBk1whXjQIUY649slB6fKLNCwFQqe9T0BqQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DBBPR04MB7724.eurprd04.prod.outlook.com (2603:10a6:10:209::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.30; Wed, 20 Mar 2024 07:34:10 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7386.017; Wed, 20 Mar 2024 07:34:10 +0000 From: "Peng Fan (OSS)" To: sudeep.holla@arm.com, cristian.marussi@arm.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH] firmware: arm_scmi: perf: print domain name in error path Date: Wed, 20 Mar 2024 15:42:13 +0800 Message-Id: <20240320074213.1615888-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0007.apcprd02.prod.outlook.com (2603:1096:4:194::23) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DBBPR04MB7724:EE_ X-MS-Office365-Filtering-Correlation-Id: c343ac1b-21a4-499d-9469-08dc48b021e2 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9GORvsCN4fpnITEnxdH8oa0bSGRq1SahOyw6Lvw2m9XD8g0odL1PG9bgSRGLRqPBujIVQpzLPwGISw7ieEMlhH3Ri+ncctCc8/E6CtscFEXn58K6klkqQDfs8Y6XGvBWSBP1gcu++AZSVbOOYVQ7wk8JyVpgTnQi5R4Ci22HWkzGz5NcI9r1sSBG7v/EnLVZighBBHnYkf8mmxv+idFol37U1Pazxn4mZOubX1ZdRkI1I+lYb+87YQ4iaThAvTFXqZvA0kXq1W6/mdTgNh0v2yB4TtMffB6VbAXjBi9lqPTTppw9A+FVL/D4hbQFxb//Rr4XxPvCh5mTBWULH4yBhZhpBO76ZeuL1acUk+DxBtgvo4apOtjtcyuNATtuk3kNF51sjhIDJV9mtjNYc2PjOkWj8Ax3c5TPiAkVJmn/HcOtGEFlh9zmtVDZ5oRmPBu2qU1cKazx48jus1yNaOIH2rYYN4wq2vdZWCVAPz8gP/qhMCD89hpPofXwyrLV+Rd3Gs9M6xJurWHf1lgZmYhkvUC+NKD1jQpMws/9DTmPrjoyth8WHQQA7PzLiLPR6NN/3LN4mGfpdOXYA1PgEqSiehr19ahVmwsYlrzafJARElyC2dUQvLL36uMjMEmGFlvA7yOoBp7xSVydlfM9eMfvRkzvQV9JVil2gqpjl/MeAn2qI9z3xiCPZ6C54gMtw5N2ZU1d7PxUYIoo+Xsi51ZxuoqgXMcBkw8YjCo+tMjiE9o= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(52116005)(366007)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cLh2idBxTLcKyvQjz+ThmEplwmfHpkVg3h2haRl32SK8f15x3Hsi4JgnKGpo?= =?us-ascii?Q?zJs1VOEow7uxCf/et1YTzY0M/NshAax1CG51ekmrGNCbZRwkOJulOJRfiTTS?= =?us-ascii?Q?CmFwYjuY4Ep97ncV7qM6cH29qJk+NK2QNUhtk8cUkVv+o0/HbKBglGo66BbP?= =?us-ascii?Q?M197lOAJbWi6OpXoaWMYEkrypUq2Wa0ADEp57FVrychiYHCGlUER08XIRxgs?= =?us-ascii?Q?nrQicvuekrEc9lT/owVR62cUvtZGM6MIIFIg71y5nufyA9wwE87G2bjIuia5?= =?us-ascii?Q?XFJK5Sr/aimpxpCx3Oj4ugR7aJuo1JlTERP4o2OIthfw6tjuBPs9F/pp4RxO?= =?us-ascii?Q?7f9NFdc5kEX0clu/k3f3tFWjnSvaRx40+Bfu2cD2kDl0AANPGZTTrEIMr8GI?= =?us-ascii?Q?ejZq/QuC/53vPzjv5VL4VJDbhGwkT3f3McUVJbHYyY/YT+lbw1yeHR+oDfAx?= =?us-ascii?Q?a+On99vCgf+rL7Jy/D1anevvzisweFBwXekViOc11+0n9OYhsF6sYiwHHkC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pF9ujRiVK0FTz2TPcfVl+G8yc0?= =?us-ascii?Q?aziQ4E6gww01Mw0KyiPx2i55M7Y8ihjv0+K00hq9czByKE3wdyRsk0xiVeDX?= =?us-ascii?Q?JEN4nopzq5DGADxOVQXO/yoCXXMRncCYQsdQaCBreQK7VJHYcCOVfGYzDCaB?= =?us-ascii?Q?vl4UrvOobTGliNm2ed7bbopjQYO745PvtSbUyaa4?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c343ac1b-21a4-499d-9469-08dc48b021e2 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2024 07:34:10.1673 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Fn9ISYZvPTBQOwsgCeXnVjJZ4PT0KwG55orYWG1HovAbY7HYtNonuewoUF/cEuRdochGIgnR9Wr+gY+pKy9AoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7724 From: Peng Fan It would be easier to locate the problem if domain name is printed out. And including a coding style update. Signed-off-by: Peng Fan --- drivers/firmware/arm_scmi/perf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c index 345fff167b52..e98ca6d15b0c 100644 --- a/drivers/firmware/arm_scmi/perf.c +++ b/drivers/firmware/arm_scmi/perf.c @@ -79,7 +79,7 @@ struct scmi_msg_resp_perf_domain_attributes { __le32 rate_limit_us; __le32 sustained_freq_khz; __le32 sustained_perf_level; - u8 name[SCMI_SHORT_NAME_MAX_SIZE]; + u8 name[SCMI_SHORT_NAME_MAX_SIZE]; }; struct scmi_msg_perf_describe_levels { @@ -387,8 +387,8 @@ process_response_opp(struct device *dev, struct perf_dom_info *dom, ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL); if (ret) - dev_warn(dev, "Failed to add opps_by_lvl at %d - ret:%d\n", - opp->perf, ret); + dev_warn(dev, "Failed to add opps_by_lvl at %d for %s- ret:%d\n", + opp->perf, dom->info.name, ret); } static inline void @@ -405,8 +405,8 @@ process_response_opp_v4(struct device *dev, struct perf_dom_info *dom, ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL); if (ret) - dev_warn(dev, "Failed to add opps_by_lvl at %d - ret:%d\n", - opp->perf, ret); + dev_warn(dev, "Failed to add opps_by_lvl at %d for %s - ret:%d\n", + opp->perf, dom->info.name, ret); /* Note that PERF v4 reports always five 32-bit words */ opp->indicative_freq = le32_to_cpu(r->opp[loop_idx].indicative_freq); -- 2.37.1