From patchwork Mon Aug 24 14:44:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pragnesh Patel X-Patchwork-Id: 1350429 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.a=rsa-sha256 header.s=selector1 header.b=Pt/PrDYE; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BZw0G4fZ5z9sRK for ; Tue, 25 Aug 2020 00:45:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F40581B79; Mon, 24 Aug 2020 16:45:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.b="Pt/PrDYE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6A9EF81BB3; Mon, 24 Aug 2020 16:45:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, RCVD_ILLEGAL_IP,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2062b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe59::62b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 83616812FE for ; Mon, 24 Aug 2020 16:45:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pragnesh.patel@openfive.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WZqnrh4RyyLJ/YT27vYvWeJzE3wUS272Ccc+HHIfHj0x8Vrj4CMLYFk1SB8Piu6ZC2dPAjntzPTJroEwiSdZOwBd1HzCoCjp3VAGdfCaFc1KUhhk7OryAdtYq9MDeppdqXKlEUl54scw/gjKCS5BcyYH+H1lKX5dSgC3vzTM2/ONX0gQRWiMQwB1O0LfOI0Tuxinnc9nWznEkgl7M7s7MCS6rMPUJ1Eb39ufs+okUw55/sImMHtjpAkZ0PDLFte81PAw0qlktybML/VSeUucEPNTniU2TH3on76rpxElDZC/SB8Dmifz6JDISftBn4812qTJzLLV/w1iDbTWAeI8dg== 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=pJ7WfI68Abvt17SLaGJKlvc54VeQTmw6aE9/hQvsaxs=; b=X0fHAyIB9XaEZPfV3Fi8uXKauzeUgOQvv97ka9J4VWVFmy4bxpZ6tw3fG8b/Ibfm6aaapJFRHtMCQsVSgk7CaJtEPVshD11rMiA76ghjgiJwu46BwjGGIee6gBBxbMznBsntfxctm4+2URfJ6ceZNI1OD09+MnNlk/9zG6uhWSMD5y+zwK4SfPRmdl1DFH1byQhzBGX3M5wnKDRZOBqFVafwR6QVLjjMxhJX5BTkmBgyiPJ7uG1h0eb6niGjRxAzW2XQto9mTOWchegXafUGMeLdog2QXe4ZAh5uJVtImbwThPGdUJ89PtTydzDdkUiQdFnc1iu3gMyMC9P5j/cgiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=openfive.com; dmarc=pass action=none header.from=sifive.com; dkim=pass header.d=sifive.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pJ7WfI68Abvt17SLaGJKlvc54VeQTmw6aE9/hQvsaxs=; b=Pt/PrDYEJzxE47XAP5Hk4E6+7cSDwGMXOFgctwHwV0eQzuEtnBni10woz7dzxlWXxtAQ4TS81E0BFaUB/iI1aj3ccZy+iKs2z83v+iRf12znKbpEcTdEe99uz2NFkBI/g3Zo8OAe60xyH3cQxMkl+a96JBXJM89DBVOUHtoA25s= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=sifive.com; Received: from MN2PR13MB2797.namprd13.prod.outlook.com (2603:10b6:208:f2::30) by MN2PR13MB4118.namprd13.prod.outlook.com (2603:10b6:208:26a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.10; Mon, 24 Aug 2020 14:45:04 +0000 Received: from MN2PR13MB2797.namprd13.prod.outlook.com ([fe80::c5b4:919d:f869:fce2]) by MN2PR13MB2797.namprd13.prod.outlook.com ([fe80::c5b4:919d:f869:fce2%7]) with mapi id 15.20.3326.018; Mon, 24 Aug 2020 14:45:04 +0000 From: Pragnesh Patel To: u-boot@lists.denx.de, atish.patra@wdc.com, bmeng.cn@gmail.com, anup.patel@wdc.com, sagar.kadam@sifive.com, rick@andestech.com Cc: paul.walmsley@sifive.com, Pragnesh Patel , Sean Anderson , Simon Glass , Anatolij Gustschin , Lukas Auer , Bin Meng Subject: [PATCH 2/3] riscv: Mark riscv_timer_get_count() and sifive_clint_get_count() with 'notrace' Date: Mon, 24 Aug 2020 20:14:28 +0530 Message-Id: <20200824144429.12641-3-pragnesh.patel@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824144429.12641-1-pragnesh.patel@sifive.com> References: <20200824144429.12641-1-pragnesh.patel@sifive.com> X-ClientProxiedBy: LNXP265CA0032.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::20) To MN2PR13MB2797.namprd13.prod.outlook.com (2603:10b6:208:f2::30) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 255.255.255.255 (255.255.255.255) by LNXP265CA0032.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Mon, 24 Aug 2020 14:45:00 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [114.143.65.226] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e3cc93d9-87d1-4684-3c25-08d8483c497b X-MS-TrafficTypeDiagnostic: MN2PR13MB4118: X-LD-Processed: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:217; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kCPfj8+06FJPfmwEhAgyk9w2l5JhIOd7P4TrNS2eElh+RQTPbnNNOdnHAzT4TGQXlu2BmkE/EwOt/8tpuMWUQHWkc1TS9flfv9wgRPBeSy0MHOuf7t0DCLzGz9/4TfIx7yGu5Qdjg01DQdWcMgRKrpVIx50EoopdhbukPi+q8HrTx8BvIaq2bjMnjMKtFac3AVI2gYe6OsoUaRzw8s0f0LjLvGQWpho12YP2ZanB9QO25ewEH5QhtBilze5GqmCRMToPZUnYeV5Dvfde3WM+uByIRR20J/41XYM+AeaKTiQlQud7AeiRLPlP9oodL137wIhTOysp59bccSsHRfA5RA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR13MB2797.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(346002)(376002)(39850400004)(136003)(396003)(83380400001)(4326008)(36756003)(478600001)(66556008)(66476007)(66946007)(8676002)(83170400001)(1076003)(8936002)(16576012)(316002)(2906002)(6666004)(54906003)(7416002)(26005)(2616005)(42882007)(6486002)(5660300002)(956004)(186003)(44832011)(52116002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: FocCYc74AJnuvT3TYVBVKI+8Ij62bC6RYFmMk5bJtAootDjZh8HloMYSaOGzxXKv3B34eRBv6DWE6GYoVYmJ1d3WSYsSXPaJ1RE2ZsdT3cP9OwUODqT1hKvMw9awbGZpsq0LKTlRH3TfVNv5oUpyYQjD866wxDnrFOFOa5mvkjMywF5WhnoO6RWTeZ8UOYxsiY8iKmHSt8v339n8I0rz86NYbQW6DeZOkJ/IRxMUPoQlp8dORuXL7HOMw3YNG2PJcY2R3QuvAwp/R1S33RkCspyA1tYZ7UcH1pSJGZmDdqaghAi6EySIyPl2wgYbbMbxNscRRBAtGjwwEPWPoeArlgfcwKEeYB64VCEwqE0QGTu6VPS/O4GSvWr3Q/Z7cS4ntWdkeDKDFdojdhdhW6NYjde+sNoQeBe27PVSQZsATHSy+U1c1Q74ovgtsBsa0Y1EgJAAjveS/78Ko4VNJwMKAU7vNPN9MJPO55P2qT72LIRaqm8XvmRqQ2nHi/ckmWSlZ0N1IWx0+dXP6sS6ThHyrjsUDw1pvmknLIWAwU6ceINJGk0nSGwgu7OTt91r8YartZkxcqOANHjTETp1tXSe5kdrvwHxCeXOXWai0l0l6BA4T4H1+/M6bNTHtMVA+9keH5AOu3zl5VYHEBCFjtfLiA== X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3cc93d9-87d1-4684-3c25-08d8483c497b X-MS-Exchange-CrossTenant-AuthSource: MN2PR13MB2797.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2020 14:45:04.5703 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Bb9kFvt1VrbvjQJm0keuC0xlKI9SriWLlNY/fKQzcFyDwhWXZPAKZ0liCMQraRvjuSsivn7RF/mZzWiql05YOSxegTrSiHmofR581Tnlo7A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB4118 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Mark them as 'notrace' so that it doesn't cause infinite recursion. Signed-off-by: Pragnesh Patel --- arch/riscv/lib/sifive_clint.c | 2 +- drivers/timer/riscv_timer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/lib/sifive_clint.c b/arch/riscv/lib/sifive_clint.c index 3345a17ad2..1cf74a6cf4 100644 --- a/arch/riscv/lib/sifive_clint.c +++ b/arch/riscv/lib/sifive_clint.c @@ -62,7 +62,7 @@ int riscv_get_ipi(int hart, int *pending) return 0; } -static int sifive_clint_get_count(struct udevice *dev, u64 *count) +static int notrace sifive_clint_get_count(struct udevice *dev, u64 *count) { *count = readq((void __iomem *)MTIME_REG(dev->priv)); diff --git a/drivers/timer/riscv_timer.c b/drivers/timer/riscv_timer.c index 449fcfcfd5..342e0354dc 100644 --- a/drivers/timer/riscv_timer.c +++ b/drivers/timer/riscv_timer.c @@ -16,7 +16,7 @@ #include #include -static int riscv_timer_get_count(struct udevice *dev, u64 *count) +static int notrace riscv_timer_get_count(struct udevice *dev, u64 *count) { if (IS_ENABLED(CONFIG_64BIT)) { *count = csr_read(CSR_TIME);