From patchwork Fri Jun 18 12:38:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 12331253 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E427C48BE8 for ; Fri, 18 Jun 2021 12:39:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 105B3613EB for ; Fri, 18 Jun 2021 12:39:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 105B3613EB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7Eg+/YG4w/om39daiMjvWsH3sYsFZSSBuiulNUlgEik=; b=X1Gzul8pzvsNw8 +EI9P2IZx03JJsyhdsj5g0EIRWhbA49knPFfGlhgYJlAf+nubEWkDTC8ftGrTaS190toPWyFIo3md Kq8Gmfz+6hXz9qiSRsFfur2zg/8mJFvpqmSf7oO/8N5JripFNKSnKw+hBYK9iCxsqRJ9AbGR0/Lf1 Z6wJrV1AlPvnvw1TrTIW7P6OEXvmPfmWFZzDdO0jNt8bT4apDUsiOEmJjBK6BZy8N3r8ULaHli2jC 2LU9Qm2pln1N+jV6CVxXOQtZbuqBCjmUv9pNjdWH26USxG3IflLUykhhJAWiqajrlDcTzNxxD2q8a nGqV/qSiB/8rT2vOoHdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1luDmW-00E2rg-3M; Fri, 18 Jun 2021 12:39:32 +0000 Received: from esa1.hgst.iphmx.com ([68.232.141.245]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1luDmT-00E2q5-AK for linux-riscv@lists.infradead.org; Fri, 18 Jun 2021 12:39:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1624019968; x=1655555968; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=g1b2/gDgHvYWATa7oEh+ICidzjQOA9pjNXMVVbcwMoQ=; b=MiRs4I14lI4pcp8jdTsMXk9s6lN6nA2mde43Xu/VY8scWduB0HEDME9l LPyZUSkkfKP0kwHQTzt9JQoM1O5AviC8p4W/eD+LqM9ssXtvGYtY72H+1 /VtZhwpNwVTMeRUSRspzqx2jV4kFVBqkBKVRvS3AHiqUaJ0Fprr9PTIR5 K9VJS9yvikUPAoR8SQqnoveJ9UUXU6AXxIJeKFdwZn1KR75nBUOXSDv8b bDwBEafKaNTgZ20qOJ3cdsJuJ2OyeAYwq59jVGARiobqUBWjtCG95PC+3 TvQo7RLGHc9HnMjq80vAOOFCNatigDewqKMDlp83JA7yXglzCX2TBzLlF g==; IronPort-SDR: hF3Rya+y+Pr4NK90rj3PhZ/tuwDd3saYajaGoM+BUgh5K2BkN/+36E6FMkIC/dyigZm/SivkwR fRDB2Kn+F2jKfargPgosowYk614yWrt0mOU1Yg24vnXeeLdaDOcGlMLZYtJoNaDEOUb/4WNa9M n3JpdCf6i7FPoCjeCKb7s5OblGkU7Nc8VIkAMeZZ0htIihvBylm1xrQZrFvdIt6/DOlh57DlO7 yG9eb4TVYdKMb82VANhojdUgmV45X1UUPwdxbDGZSXmz72ucqI/Z4PU/tbJURLFLhhVTf4A/xa mc8= X-IronPort-AV: E=Sophos;i="5.83,283,1616428800"; d="scan'208";a="283779300" Received: from mail-mw2nam12lp2047.outbound.protection.outlook.com (HELO NAM12-MW2-obe.outbound.protection.outlook.com) ([104.47.66.47]) by ob1.hgst.iphmx.com with ESMTP; 18 Jun 2021 20:39:28 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DSIl68JiEN+pxIQKPfMxgiRE2Uvejwqzsh2cBzEpZZE32rhQhTihwDGmAzIvSpXlcUQ8Gvw55T3YG2IGh4q+Vzx2SiqButquJsbz02om4CfUVKYXorUBkQTR8/vgt8CiJrBqGE2HMxzIPvycE0X4jL487iKQoXV6a/kyMTixEnnKLH7XYcJY/6SsACiLFrI9MjgdcB68WSV+Fcrsc3PG4kejpdj6Dt/pSmy859YNjDPxd0MvthJzknhsNP2U5yfWlyNt3/ELnnWOFKTLDRVojAw6f/BVMcy03+kYk7iGryHJ69Hr1LCfIBQs5++ua9TiAGhqOGYBSW40y2VlMDy8NA== 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-SenderADCheck; bh=xw3ZR4ebXmD/CfNfUf3eyoqj9/uqZJYffw2EkdPNHaI=; b=glM2oPvqNCEsVrh0In3hYiRdOj6VFI2hKDyOPIztD2uNWM4bEAGNrV4gKbBMNVR1pH0mFP6J6BgSjX9JAUKqYruE/u6Ns6HXdGHSTwNoDaiPqwahbReto56Vd+W+4fFBif1Wq+yLeqTkLyOoUPlvRx4F/GjPppafRb+Hh0zyge3to8duEwnW3unevq5zSoRvl8nnh13KofnEfbnKfRQ5TlverbeJPkFhBQdWOBdTUjsbUwBMxndA6GBFDU9ctV9I3UjHZ0N1b64BgkNxfzrUGiBqXEJhXNgq+rdEUeVvRwioFT2Rxhm+a3uhmDRU3fcvdCAcUErxN9+80yeAoJR/Yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xw3ZR4ebXmD/CfNfUf3eyoqj9/uqZJYffw2EkdPNHaI=; b=a6VatJdMdfBiSQsTqDbmgv6oleH3l6B6kNiqXrX4gSRnpELoizpztATTkSRc2Dqj0LV1LWa+WIp8jSR2Y8YTiga3F7OZKVW8gOnPIXBlj1lH4OTYIwm0jpnjZ4Sj4csAZPhNMOVyAtzOmNZ2x62OEBnWo8a+PR1aCA4SZ6MnnDU= Authentication-Results: dabbelt.com; dkim=none (message not signed) header.d=none;dabbelt.com; dmarc=none action=none header.from=wdc.com; Received: from CO6PR04MB7812.namprd04.prod.outlook.com (2603:10b6:303:138::6) by CO6PR04MB7843.namprd04.prod.outlook.com (2603:10b6:5:35f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.19; Fri, 18 Jun 2021 12:39:27 +0000 Received: from CO6PR04MB7812.namprd04.prod.outlook.com ([fe80::a153:b7f8:c87f:89f8]) by CO6PR04MB7812.namprd04.prod.outlook.com ([fe80::a153:b7f8:c87f:89f8%9]) with mapi id 15.20.4242.021; Fri, 18 Jun 2021 12:39:27 +0000 From: Anup Patel To: Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Daniel Lezcano , Rob Herring Cc: Atish Patra , Alistair Francis , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Anup Patel , Bin Meng Subject: [RFC PATCH v2 02/11] RISC-V: Use common print prefix in smp.c Date: Fri, 18 Jun 2021 18:08:42 +0530 Message-Id: <20210618123851.1344518-3-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210618123851.1344518-1-anup.patel@wdc.com> References: <20210618123851.1344518-1-anup.patel@wdc.com> X-Originating-IP: [122.171.164.186] X-ClientProxiedBy: MA1PR0101CA0025.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::11) To CO6PR04MB7812.namprd04.prod.outlook.com (2603:10b6:303:138::6) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from wdc.com (122.171.164.186) by MA1PR0101CA0025.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15 via Frontend Transport; Fri, 18 Jun 2021 12:39:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 60989b56-104b-48a7-8b6d-08d932561c62 X-MS-TrafficTypeDiagnostic: CO6PR04MB7843: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: WDCIPOUTBOUND: EOP-TRUE X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jQ3YDaljQ6pMp8+b4378tEnFMuPLg5KMvLgU14rrOyTs1r2nW4jQBQRIuNPkaejnjbvHtFNekhRspuQbIcvpBuVdHO7kLFZqFkIF3dlKj6NEherWEQAQ4R2BKob3xbzqI5FTtSz2iGoC8xB+wFzErFjtPENlJtn1YO2cpLAoIIUszIlU+ZYVxm5uTQ428K1rH31/q4duP21wWdnnoN5UC37k7UkUJRzz1L5rHZgpcG/Scvz5FtbA6n16QO6FZHAtBMaQZTtcQ3AgJeQsIHpTS0KnKf84oloRcDyJph+ZQpEWi8XDMCZJOS3aKrvOyUF/1olIG+HVzCNgQo7DvucCZ8TZX8K0kMlJqdhPay6HJGILWJX3M8WcIhV3DTZ4iBG44cvPTD/UYIgS3BYbA/x7kc0Iq2zoM54eYfc6XH/u0x1k8c7idsU4qj/24G3EcH4MSYbT00mc8f6S6a9vT5mgKz8G0rYvAbb4yid21cTtiI4QyKeyZ/xqGcu9JxEKb26lNHJw9Os1I5KCO40GfKOSzwfei4ntTsqhN/JVzJgSvTUUnKGpSwpfTwdh1cpXawVu66s84rYhS2JW9dgAZQe5phDoha1kwRX05d0w/8QXWcYl7LdwZE7CDdd7z5e79dbzAeHuTr8a6iuBn6kq5k2xW+unqu75sc+4oCylU+iXId0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR04MB7812.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39860400002)(366004)(346002)(376002)(136003)(83380400001)(316002)(4326008)(16526019)(186003)(110136005)(54906003)(52116002)(26005)(55016002)(2616005)(956004)(2906002)(5660300002)(7416002)(478600001)(38100700002)(38350700002)(8676002)(66556008)(8886007)(44832011)(86362001)(8936002)(36756003)(1076003)(66476007)(66946007)(6666004)(7696005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-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BS/7+CzM0thoBmwy1Z7aziGNi0+/9GdA++T9RZuUv9vu4Pk9zgp1n2Z5kuwj9KggNAonN3uRGu6nBorIoSWUzM6uW8C9VVZGjtA+r4zCaMIfvZ/KN9vBFerViUxj6ge3dL0qHhfQJA4dHO/uuWHdtjvyea257cN1FrzCp6vhEBnUlhHit4a8wDtU/NUPE+O7FVR4O7ZOsA8RMft/ZPRfzvuKlAUF4x55BPg2pIf254zQLpMDwDaoJEv6VcMw4bbrnlnuSeC3EPu+0RW3QKQMNiB0HvPSEawAEugT9UrSijwW/Q4AiZly/+ X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60989b56-104b-48a7-8b6d-08d932561c62 X-MS-Exchange-CrossTenant-AuthSource: CO6PR04MB7812.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2021 12:39:27.6174 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZfkLvSWppim3CTat0Q1vsNesckl8ViYl80wRR7DlwGTl/e3kigucbE5/aXHt6QW3U9hVCK9syO6Fwe1FIb05zQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR04MB7843 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210618_053929_404573_55C318F6 X-CRM114-Status: GOOD ( 11.50 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org We add "#define pr_fmt()" in smp.c to use "riscv:" as common print prefix for all pr_xyz() statements in this file. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- arch/riscv/kernel/smp.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c index 547dc508f7d1..eea0c9d11d9f 100644 --- a/arch/riscv/kernel/smp.c +++ b/arch/riscv/kernel/smp.c @@ -8,6 +8,7 @@ * Copyright (C) 2017 SiFive */ +#define pr_fmt(fmt) "riscv: " fmt #include #include #include @@ -114,7 +115,7 @@ static void send_ipi_mask(const struct cpumask *mask, enum ipi_message_type op) if (ipi_ops && ipi_ops->ipi_inject) ipi_ops->ipi_inject(mask); else - pr_warn("SMP: IPI inject method not available\n"); + pr_warn("IPI inject method not available\n"); } static void send_ipi_single(int cpu, enum ipi_message_type op) @@ -126,7 +127,7 @@ static void send_ipi_single(int cpu, enum ipi_message_type op) if (ipi_ops && ipi_ops->ipi_inject) ipi_ops->ipi_inject(cpumask_of(cpu)); else - pr_warn("SMP: IPI inject method not available\n"); + pr_warn("IPI inject method not available\n"); } #ifdef CONFIG_IRQ_WORK @@ -242,7 +243,7 @@ void smp_send_stop(void) cpumask_clear_cpu(smp_processor_id(), &mask); if (system_state <= SYSTEM_RUNNING) - pr_crit("SMP: stopping secondary CPUs\n"); + pr_crit("stopping secondary CPUs\n"); send_ipi_mask(&mask, IPI_CPU_STOP); } @@ -252,7 +253,7 @@ void smp_send_stop(void) udelay(1); if (num_online_cpus() > 1) - pr_warn("SMP: failed to stop secondary CPUs %*pbl\n", + pr_warn("failed to stop secondary CPUs %*pbl\n", cpumask_pr_args(cpu_online_mask)); }