Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2609099rbb; Wed, 28 Feb 2024 07:12:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVzPMIKCLMxZyGuvorTb/TA1tX/GYtLWZd/sIQsewW/W6qJl1TxdK5mYOE8/2Ic1TDiofMvOG39O9m4MOMwClOmu3feVK8Wj5RpqF/Wng== X-Google-Smtp-Source: AGHT+IGV/DBDMvz8EsSs6obwa/d+mZ+WFS9hb9Mu5VsBN0uKpSqxuzTcupSMFtnwKiBcRBJmefSq X-Received: by 2002:a17:902:a384:b0:1dc:1e7c:6dd4 with SMTP id x4-20020a170902a38400b001dc1e7c6dd4mr10805992pla.68.1709133139011; Wed, 28 Feb 2024 07:12:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709133138; cv=pass; d=google.com; s=arc-20160816; b=esHnJwKqXNv8dm0dt2nyZUfPzzZRc6LoQ3g5HVhtefSoNMP7OpNHnmpEwvKFnj2IqI LztQ8yZ1nA09DosdG/5njGKPDjjWh66lDV0Yu2Uq8XhwF6DsxnKRadywlaml0x2+UCiy eMuBlSJySY1gS9Z9selc2kJhskODa3Tt5OUWMZKvSsbZ8JTmxFeTkBL46MZKfDT6e6sI 2rK681F9zd56kY0QCEjwg9WQzfUGMttBCmNlEa/BGMmQRkHL49JsB2KiZcgoQDgmdMQu 2nAcB0XAR2x+PQyNc/Z6EW3RPMOZ2zYZIxCF5yC/SAJD18PaomU8EEd1YRkfyJgx0CAA wdMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=1wosW8Qm+w2su1xnaUjFZkWEKmLGgIL2W9UzuLMrsVM=; fh=Dnxjm9Lq66O228IbkBZFuoyKys1WrE3y8egra9K9wXM=; b=lvD05Gfz89xfkyYJAey79wpfSSKJLedbJzvV8sV4bIKe4023llUjsepGCPUSLB8gOj NZyZ87dLnwzsdWeC1X9i78wx3+Md3Ca6cfLLx7vJ+H8HteFZehyncK5D0mdIo5q5z2UH +Hlm3ALdKxeud1aSLSkAzrwqYvlhygdb2G7JCMogm/xCLodCAp2wMzn1MODnpeJ6ZGD2 pONG2lTvlfZn1s6HckZYURqWq8qqgUJHVei3RwhDxiJILsVIytyJD288WKhN+4OUqQI0 O2pstFmnkdbQoVhX2hrHvJMGIUrdMR9UsjncN+nG4TsfeO+NeCMDLAQLsTw3+ViNpmvG qPFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oq9+Wk21; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c1-20020a170902aa4100b001d98bf6ee04si3404129plr.502.2024.02.28.07.12.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 07:12:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oq9+Wk21; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B6C2B28AEB9 for ; Wed, 28 Feb 2024 15:11:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C4E815B988; Wed, 28 Feb 2024 15:10:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oq9+Wk21" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 520E92D022 for ; Wed, 28 Feb 2024 15:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709133030; cv=none; b=XXmjhY/9XM9RDWAaeY3ALQOFIp2nqeY2/T2njYxxkYMdvH6C3IYLHW9OdkcHB1ixyT6VfT9pWgcHYnq0CV/Of93Plf4fvvVwp41JpZ4F5LsJFmuJs9bRQ9bzAH2RBY2hkyX6toGfkdpxf37IjbOC/DmkYkbwGcWOwvt9FSJw3D4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709133030; c=relaxed/simple; bh=Hl4aguKOTd8JlLqCsXIN7K+U/MvNiYnC1LzWdx7ZBq0=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=cqECxOq4LbqXnqxe8i48BooI25zdoc+FxYJGLcpYZlNogHWxz9DiVOMDk1XqgiKb5aW9qirH+Hu7UwHVPOdoV+Cw9q3fNy7UM9uWC4hx9+LlkLzj5PYSaCs3Ome1oVBK1qAOYL0G22dgGNGZEzdxU4mMsf9MXEPo+W9joY70bz8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oq9+Wk21; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id CD5D9C433F1; Wed, 28 Feb 2024 15:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709133029; bh=Hl4aguKOTd8JlLqCsXIN7K+U/MvNiYnC1LzWdx7ZBq0=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=oq9+Wk21fB3vdeq1PxsrpEc6OYKE8ugwMPUiHXnzSzt0I1QhRZBqNX1jBK2QB0zfy yPlEtVWMmXrxLN34z+5fBmQ46+f3zD66tkOhozaVrDUVpS9sr+VghyVXor3YpDzq2U cj1p6vYpSvWJK2rJ+T/HGJjUAl4KOjA3AY3VXxyUnDN0YuE6W0U20Ux+UCHWpdjd9M lTlh8f+Dh0klWreWUZ3+yoq+wNqrDeCuqGM42PvXPan/xBnaf38uGHO8zhzVIAkSVK 680qGQ5knv1t4Y9escBw9XxPK7B2qi1C590U9MFEgyj2xu2gnIlIXzKRKdGpSVemRY oVUIHSu8k7TWQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id B2121C595D2; Wed, 28 Feb 2024 15:10:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 1/2] drivers: perf: ctr_get_width function for legacy is not defined From: patchwork-bot+linux-riscv@kernel.org Message-Id: <170913302972.9913.1220229545519276494.git-patchwork-notify@kernel.org> Date: Wed, 28 Feb 2024 15:10:29 +0000 References: <20231205092555.35617-1-vadim.shakirov@syntacore.com> In-Reply-To: <20231205092555.35617-1-vadim.shakirov@syntacore.com> To: Vadim Shakirov Cc: linux-riscv@lists.infradead.org, atishp@atishpatra.org, anup@brainfault.org, will@kernel.org, mark.rutland@arm.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alexghiti@rivosinc.com, ajones@ventanamicro.com, linux-kernel@vger.kernel.org Hello: This series was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Tue, 5 Dec 2023 12:25:54 +0300 you wrote: > With parameters CONFIG_RISCV_PMU_LEGACY=y and CONFIG_RISCV_PMU_SBI=n > linux kernel crashes when you try perf record: > > $ perf record ls > [ 46.749286] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 > [ 46.750199] Oops [#1] > [ 46.750342] Modules linked in: > [ 46.750608] CPU: 0 PID: 107 Comm: perf-exec Not tainted 6.6.0 #2 > [ 46.750906] Hardware name: riscv-virtio,qemu (DT) > [ 46.751184] epc : 0x0 > [ 46.751430] ra : arch_perf_update_userpage+0x54/0x13e > [ 46.751680] epc : 0000000000000000 ra : ffffffff8072ee52 sp : ff2000000022b8f0 > [ 46.751958] gp : ffffffff81505988 tp : ff6000000290d400 t0 : ff2000000022b9c0 > [ 46.752229] t1 : 0000000000000001 t2 : 0000000000000003 s0 : ff2000000022b930 > [ 46.752451] s1 : ff600000028fb000 a0 : 0000000000000000 a1 : ff600000028fb000 > [ 46.752673] a2 : 0000000ae2751268 a3 : 00000000004fb708 a4 : 0000000000000004 > [ 46.752895] a5 : 0000000000000000 a6 : 000000000017ffe3 a7 : 00000000000000d2 > [ 46.753117] s2 : ff600000028fb000 s3 : 0000000ae2751268 s4 : 0000000000000000 > [ 46.753338] s5 : ffffffff8153e290 s6 : ff600000863b9000 s7 : ff60000002961078 > [ 46.753562] s8 : ff60000002961048 s9 : ff60000002961058 s10: 0000000000000001 > [ 46.753783] s11: 0000000000000018 t3 : ffffffffffffffff t4 : ffffffffffffffff > [ 46.754005] t5 : ff6000000292270c t6 : ff2000000022bb30 > [ 46.754179] status: 0000000200000100 badaddr: 0000000000000000 cause: 000000000000000c > [ 46.754653] Code: Unable to access instruction at 0xffffffffffffffec. > [ 46.754939] ---[ end trace 0000000000000000 ]--- > [ 46.755131] note: perf-exec[107] exited with irqs disabled > [ 46.755546] note: perf-exec[107] exited with preempt_count 4 > > [...] Here is the summary with links: - [1/2] drivers: perf: ctr_get_width function for legacy is not defined https://git.kernel.org/riscv/c/682dc133f83e - [2/2] drivers: perf: added capabilities for legacy PMU https://git.kernel.org/riscv/c/65730fe8f4fb You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html