Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1678389lqe; Mon, 8 Apr 2024 17:23:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUb0QwNvbKtDT4ly723COdzuYgnhfkNcY37VJJa2VyqAoiMEUpOjhzm+O+2+7h1WEJSPlMgucR/MKeJIYYNgCQBpndYO96WdQJG0OW59w== X-Google-Smtp-Source: AGHT+IGUDpQ0Z8ZpN+SGOXsljf0X9E0XX2UnGBSFpZdLk1NIm5V4jrc43S1s/v8+AJ60LD04UoYt X-Received: by 2002:a05:6358:d08c:b0:186:119d:8c16 with SMTP id jc12-20020a056358d08c00b00186119d8c16mr8031395rwb.23.1712622223756; Mon, 08 Apr 2024 17:23:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712622223; cv=pass; d=google.com; s=arc-20160816; b=Fw/TO1Hj8XxI5NJ4d7AJABEhRszWWGtcm0x2NkSGnMk4Q/q8j4GbpyudBMsaEiDXcj l7rWH6P/toMNTRsdHkkNumOFooCixDQXrtvyPfSUM+zrK6t+eyKp7Ctam/89Qx6jmBFm ZkoCcrEqwMtEVUJxLcnSZ6mArWgDChXQYXcDHsRdeomuHiyNgcoj66Oy2XMb4DLF0FjH sv5uuUaZplUNkhGRpxzWaOq39uhbpuYEzcwuE9wsqaCSGfhHJhSv9MG735uR9/9bO5zG b5sZtZ+YNbAfVPfGhD7rAK9c8Ok6Q8Fwc6gekXyGwKl9FxkJvUOj+lS3nNEO9nO9bSJF p83g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=k4RWqXaWFwmiNP6pNOx5Yfz/MuJboItuSjd5cmtvGoo=; fh=m04wfJnu5mzB3APdehtNOnj1/8J7hlhu+mIyxMNkvW8=; b=puVSwu27civbzsP1s/okHPW+qmDvgEFL5EXAOxcpq/YaiaPoP0ZTp3PCQnYEayF1/Q UEZfxlLp4QOzpBdKB2YPxm8QO8Acm3A3ELxSH17MM6j/5KpV37MU2Z/HnTT/+PUlAVnj xTbz4+wt2io04JNNXAlu/lj2Sv4Q3r+6zqhM4Qir68PsqHIBcaBvgzowinwg6xv6Q3fs rAglSiZRoeKusellBUaE2aOMkdwNzD7XrRCgd8FOOo9mXaxPicGZdU9ykg8BMOilX/KO aaoVktahhFtwwW4pWixvLBplz7fSbH+EGhW+pQx6ULlbDc1TReDXHnrSouyJIyNnqa0G nosw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=b9S1zA1O; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-136041-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136041-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 38-20020a631066000000b005d7bf204e22si7237077pgq.859.2024.04.08.17.23.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 17:23:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136041-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=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=b9S1zA1O; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-136041-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136041-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 18ECAB21E1B for ; Tue, 9 Apr 2024 00:22:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77189138E; Tue, 9 Apr 2024 00:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="b9S1zA1O" Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39E6119A for ; Tue, 9 Apr 2024 00:21:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712622117; cv=none; b=Cr1ceNxYTxA1Tt2FicvzT9xAU+d+pB0axMLhWg9/rlhGW/DIyiuf75rYWrRGoYZniZx7ZSmgl3nRgM0rajLRnJCYIIQmaf9dSbV4gipAXdBcL6Stx4RMF5/jq5JPqcGWjdHQpu8nQ3tPmr4tPmnTCC3rWm1PQr03hCScBgVR1s4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712622117; c=relaxed/simple; bh=y8+B3fBdv0+pwLEVFa2oRmsHTM6gfVbpXdHodVkQD0w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Z/h7ZVwWbYJocww6b+YhvUrNPYJuPwJCtYOGrUn8h9/2yItpYz0O9OkYhKTVVUE+v6oUJIoUEgZbDaO+si6ZsZS+IxfV5YAvmZBUlIh8mArVU8VMWIK9nWRlbTrczQad1DWdSSs1HZErdyeIZro/NrKXVMs4QZMEXRS+FhiMqsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=b9S1zA1O; arc=none smtp.client-ip=209.85.166.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-7c8d2e0e9cfso134678339f.1 for ; Mon, 08 Apr 2024 17:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712622115; x=1713226915; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=k4RWqXaWFwmiNP6pNOx5Yfz/MuJboItuSjd5cmtvGoo=; b=b9S1zA1ORGl8Msoxwg4m30cecQmnuSW8Ox7zcg9lza3xdjwGaNcR7na/2ZFXx5zUBs PYeL+K634UiZrCdSRh+zdomf5G8IOSPiFrVVpFfXqRGA6VfaoNK+L3zZSHxcoKZNbzyS llt21ZOMCReN4+yQCMC3jGp5IG2htaPFNOo5ApNy2S0gY29elaYGIgQaWs4S2IpTqIlf lu6W2wK5IPWhztOq6dBydOpT+3QJBge+aC3dBGJpi3TRetlTrw4SyQW0/1l2q5DFd0Ex eI/Ywf/LsRdrpMReLYGfSCrL5Gyn/4TTNHaOkdmUzXn5M38/LbnRb/TRlOU80VdkbEke UPwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712622115; x=1713226915; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=k4RWqXaWFwmiNP6pNOx5Yfz/MuJboItuSjd5cmtvGoo=; b=jaVqRS9OdR5y7qX/TqRUfO7e8L9/zLVnYcvmhPWkVZB9ZSGocTRmG8Dyq0VdaZgr6d RUwUMF/LZbUY0EVkhkESUPEvjKFtLkUfMTy/ZwinpcAKphvAEEUbrDhEWV1tUMKJVSyl As5ORC4errdvp6Z4udyRYP3JUXF0p5s68fbUrvDGz3YG9XNX3a9mhuXr9fB/4l8VIUBz h08VwtyrpbvLzCVaRoAXZGcguiDDNzfnuFK4HUh3BFAwZ39k+6SGUWLgVMoYBvIWBwN/ paPORoAvhFeoNZlcOc/q7fqvz6s/FKGZq3qf/N70lT6HPGt3IWboM0pOhpn2uHr5YmSF 2yuQ== X-Gm-Message-State: AOJu0YwMYw82y8Ys1veOaIRPh2wF0Czrw0ECth6M5M9K3bH2fGlgL/BJ OoDxtDs2+h7Fb4vZSzebOH3j8Blk9xbrd4y3xwzQTd1nHrH1NgxH2QGQwmX+JjA= X-Received: by 2002:a05:6e02:20cb:b0:36a:203e:6433 with SMTP id 11-20020a056e0220cb00b0036a203e6433mr6545247ilq.9.1712622115407; Mon, 08 Apr 2024 17:21:55 -0700 (PDT) Received: from ?IPV6:2601:647:4180:9630::e8c1? ([2601:647:4180:9630::e8c1]) by smtp.gmail.com with ESMTPSA id e1-20020a630f01000000b005f072084432sm7093745pgl.38.2024.04.08.17.21.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Apr 2024 17:21:55 -0700 (PDT) Message-ID: Date: Mon, 8 Apr 2024 17:21:53 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 06/22] drivers/perf: riscv: Implement SBI PMU snapshot function Content-Language: en-US To: Andrew Jones Cc: linux-kernel@vger.kernel.org, Palmer Dabbelt , Anup Patel , Conor Dooley , Ajay Kaher , Alexandre Ghiti , Alexey Makhalov , Juergen Gross , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paolo Bonzini , Paul Walmsley , Shuah Khan , virtualization@lists.linux.dev, VMware PV-Drivers Reviewers , Will Deacon , x86@kernel.org References: <20240403080452.1007601-1-atishp@rivosinc.com> <20240403080452.1007601-7-atishp@rivosinc.com> <20240404-bbfb02e3aec944f9e11745ae@orel> From: Atish Patra In-Reply-To: <20240404-bbfb02e3aec944f9e11745ae@orel> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/4/24 05:01, Andrew Jones wrote: > On Wed, Apr 03, 2024 at 01:04:35AM -0700, Atish Patra wrote: > ... >> +static int pmu_sbi_snapshot_disable(void) >> +{ >> + struct sbiret ret; >> + >> + ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_SNAPSHOT_SET_SHMEM, -1, >> + -1, 0, 0, 0, 0); > > The "Rename the SBI_STA_SHMEM_DISABLE" patch should come before this > patch so SBI_SHMEM_DISABLE can be used instead of the -1's here. > Sure. Done. > Thanks, > drew