Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2050521rbb; Tue, 27 Feb 2024 09:06:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU+KdrC+H+T5XAkzepKaPitSvH4XDZDPV4YFSqBLRLftKRCIokj/AK5L9pCIMjK+cLP1v8STKsVMVsXUp/JsDAd8XxEYIhGdVzkMEAatg== X-Google-Smtp-Source: AGHT+IHWZZIq6n91erlkmfVQ6yTVzQ6bkYeYyhHcQNgx0OBa/jAQFeFld17CnCeK3X9TtXfrewzs X-Received: by 2002:a05:620a:3782:b0:787:777c:c138 with SMTP id pi2-20020a05620a378200b00787777cc138mr2180633qkn.68.1709053606580; Tue, 27 Feb 2024 09:06:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709053606; cv=pass; d=google.com; s=arc-20160816; b=SZMnA5ozfkBHz22gY3lBstejGyd0LCHK6aQi/Y684z71KSTX4x9E0z645nbW7HJR0t CVbx9ZHMz1uV6iReFQ+VKVYdSDyG1wmmhL2lPKhaQHT/gUTdWckfzpKE2laUVfaf+Htd RAh+wUDLBLp53RVB21e8eDRZtp9r7sjzsXe+Q6AkqL+VR0JLlItfkYUpynZvW6188Hnb P82VB7c8zF8ipGLsfnsP0Hjz3jRkfmromSmd/CG+zyPd/RYRMes2h0Jykjm25FiYtoLy jVa6RTE471lV/7VRdfwrEeRmE1ibb9Z9K4RI8mGwMhgtPa9nPUNVwoi4/J8Mu9GfFdo3 5FmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature:dkim-filter; bh=MD+Aeir3B6NSv5VxdWchXqnIlbEpAOLGX4DiWLdrVQs=; fh=2hmqWtCcjtCMwW8nk/JH1dn0ryMGReRZogHdwCQv2XE=; b=n2vQTCCX0/FScm/73OqpXULPEkSxCv/L2jXs0xyUHSb+jO92g6AXi0ACgxgqVeq38j VbHXIhoIh7ejLSEoooEgA7fXW4TPIIM+TPhiOmTI1afk0LVH3cPCk/SBEBGFif/vvmq1 ASvMWDB6NFJ+kjzl74+gVccY5q5SraPPS9tcozh+ueGHW/IOyQNS6zEnfGQs5rVBwwH/ SjBhRyWlQRSX6d9/pij468ULcIUh35B+HEgS3Bhp2YT43E8ZwmmwX5XDyg52apY+reoU 2F1G6PhAvFcBBb7iK8zLo+1GsyPzyis6U9+BA1840e2mUCzmXqWHLf9PW0LtVKNjhGK8 N2RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@syntacore.com header.s=mta-04 header.b=odVUulp4; dkim=pass header.i=@syntacore.com header.s=mta-03 header.b=QEUyMi2g; arc=pass (i=1 dkim=pass dkdomain=syntacore.com dkim=pass dkdomain=syntacore.com dmarc=pass fromdomain=syntacore.com); spf=pass (google.com: domain of linux-kernel+bounces-83674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83674-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=syntacore.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vv27-20020a05620a563b00b00787cabb36aesi6446282qkn.244.2024.02.27.09.06.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 09:06:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@syntacore.com header.s=mta-04 header.b=odVUulp4; dkim=pass header.i=@syntacore.com header.s=mta-03 header.b=QEUyMi2g; arc=pass (i=1 dkim=pass dkdomain=syntacore.com dkim=pass dkdomain=syntacore.com dmarc=pass fromdomain=syntacore.com); spf=pass (google.com: domain of linux-kernel+bounces-83674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83674-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=syntacore.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 54F211C22798 for ; Tue, 27 Feb 2024 17:06:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C12783EA93; Tue, 27 Feb 2024 17:06:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=syntacore.com header.i=@syntacore.com header.b="odVUulp4"; dkim=pass (2048-bit key) header.d=syntacore.com header.i=@syntacore.com header.b="QEUyMi2g" Received: from mta-04.yadro.com (mta-04.yadro.com [89.207.88.248]) (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 6170C1EB40 for ; Tue, 27 Feb 2024 17:06:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.207.88.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709053599; cv=none; b=WgnRCL0hwHI/SqDhftHSz225o8iixNfDto9AfWH+HoXyR3kco6soHBTDSZg9TK/1J5iNlDqYU82FuYfIhxLF3FxsMR0TyRXi1skppEBogQzk2dBzJwWH7xVICL3ly+zaP9xU2VVT/5MVTVXE8j/yjl4xB7Ub5atMTxoFxjnVgsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709053599; c=relaxed/simple; bh=MebS9n5ZiCS4+c+fVej6vKE1hD4/nz20mid32q2t1s0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ZvzDSpVyGondt/EnKsgGe0FCDLfCsSCogOw5weAoFrauh05XC4UBHiyAS57SnV/dpJ4WG72y9fdyylfHRDX4n+EvMlSDnd2CymUAYEQQnz1luHrhbjtObbH0BlIjFrhJGOQEWZ1f9dlGBnN9P5lMibgoYEZ2qdUc7s++fn7P880= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=syntacore.com; spf=fail smtp.mailfrom=syntacore.com; dkim=pass (2048-bit key) header.d=syntacore.com header.i=@syntacore.com header.b=odVUulp4; dkim=pass (2048-bit key) header.d=syntacore.com header.i=@syntacore.com header.b=QEUyMi2g; arc=none smtp.client-ip=89.207.88.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=syntacore.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=syntacore.com DKIM-Filter: OpenDKIM Filter v2.11.0 mta-04.yadro.com 6DE4CC002E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mta-04; t=1709053260; bh=MD+Aeir3B6NSv5VxdWchXqnIlbEpAOLGX4DiWLdrVQs=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=odVUulp4NTJadskyMmbqTctpkueG6DuJQskXWlApGq9Of11jwpjc+jZO5lNzUvULZ 4bvfaTF5pihBqOcBZ4aR1kVPpxK3+yOftUV9Evv2ArDHGzfXGP8h5xdCEuxag8myTE WBMEn60qMbaRZ36RLeTEVg53ecVqA2XHm/qYjJXvWiiszQrlAWsqGXp1F49zjZyms7 WBneShy6r8Q7lxT6xk9iXwBjR3ULiwe7TDnEKO3cjXmxrS02y0HjSbtWsq3TqCdqJW dPEJpGGPAn6mCorXzK6eHLDuJp+0rfipZ6axfB4js2nRdXVYBK4So8wUrpdbhKvKdB I5k50oiX+0Z/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mta-03; t=1709053260; bh=MD+Aeir3B6NSv5VxdWchXqnIlbEpAOLGX4DiWLdrVQs=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=QEUyMi2grJRDP+vJgy1S9AD4Dh5Bl9f2gqJEX8jl10Wj0syR3GLEoi6sPoXtklDhj XD13tipkqxWH2MiC965NxNSKfSN62lyCnhxs0syGb0uRvwMlJJWQtvEra1MvVUKTuu hsFnLrLpSfxujVW8WsnZpGzdgClB5jnO1BcYFTQ5W8l8fIQkkzlIuzu1zDGLBrU2Xo hYPC3LEVZbPKM0zzDEEc43vVfzcFbxk83TkYIpdlRJkI9kG/4+nPhkQGZfYDqVkWLv vwHeE+HZK+9YUrsgeGEd9vgTEe7qQb1EE0tRlYdCZ0vMoCshElQrt3Pg4ShrDtaC74 qyXKMNMXXb/8w== From: Vadim Shakirov To: CC: Vadim Shakirov , Atish Patra , Anup Patel , Will Deacon , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Albert Ou , , Subject: [PATCH v2,RESEND 0/2] drivers: perf: fix crash with the legacy riscv driver Date: Tue, 27 Feb 2024 20:00:00 +0300 Message-ID: <20240227170002.188671-1-vadim.shakirov@syntacore.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: T-Exch-05.corp.yadro.com (172.17.10.109) To S-Exch-01.corp.yadro.com (10.78.5.241) This series fix crash with the legacy riscv driver when configs: CONFIG_RISCV_PMU_LEGACY=y and CONFIG_RISCV_PMU_SBI=n and you try to perf record Vadim Shakirov (2): drivers: perf: added capabilities for legacy PMU drivers: perf: ctr_get_width function for legacy is not defined drivers/perf/riscv_pmu.c | 18 +++++------------- drivers/perf/riscv_pmu_legacy.c | 10 +++++++++- 2 files changed, 14 insertions(+), 14 deletions(-) -- 2.34.1