Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp225814lqe; Thu, 4 Apr 2024 05:10:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWo7HrNU5GkYTsQmVUZ6bFhzxxaCCfwr/mGgOvQg7c2x1dSxWC/jz7pmqrmyekgrqGnFZJBtU7vm2gsn4xriTEh400CcblJcrHGLOoySA== X-Google-Smtp-Source: AGHT+IGFUq/cSAzbUazyC2bdnR2Mv0PpBM1Ip+hTxxvVtYyKs3q0+cWNAmJz55qSWXvNforBaoD2 X-Received: by 2002:a17:903:595:b0:1e2:af83:7d24 with SMTP id jv21-20020a170903059500b001e2af837d24mr1693223plb.23.1712232601284; Thu, 04 Apr 2024 05:10:01 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f14-20020a170902684e00b001e2b6baa834si673072pln.95.2024.04.04.05.10.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 05:10:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131360-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=neutral (body hash did not verify) header.i=@ventanamicro.com header.s=google header.b=H7hHb2Pq; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-131360-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131360-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 66080B247A6 for ; Thu, 4 Apr 2024 12:02:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8CD88528F; Thu, 4 Apr 2024 12:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="H7hHb2Pq" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 741E383A10 for ; Thu, 4 Apr 2024 12:02:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712232123; cv=none; b=nbVBgvVOdQ8UhJ2mFeYJUpvvd0vfaYXyW2Iq9X2qzEHwDXhfNBuK1RMBkjqzLnPSOSX9TJk/5c+bee2rLU9c+f7E/EB/lC/1JNknYtIUv7hQLGDxkijCgusf1KiSQyphanYtZhwAFrNgKsdqiO7XUJ2tcKbJYUW5OZI12hQo9UQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712232123; c=relaxed/simple; bh=W9ko0RfNE+S1DiS7+KgLkrYBPHmkmYztpcltRdxaN5o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=R6BO4GC9trS/dTwxjPIs07DYf2PhnwC+nHsAHb5I0ElQP6AyVx3kUuEX8rL7sB6IdoAruBoGF9soSzU3BzxkNv0J8ars92s/+JfKDue6dF0FGPJv2hK8z8UiT4qYeaFv5WwDcBe9yKqnDNTmd6x2Vd4LF0GYQ+IoU59uk7ZdpvQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=H7hHb2Pq; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a46ea03c2a5so153794566b.1 for ; Thu, 04 Apr 2024 05:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1712232120; x=1712836920; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=i6sgTwxk9jhbJgHBwC7uiEgEw3bNU/OxwYHoyLaglJk=; b=H7hHb2PqfDTZ0NdF7Lkzz3dEXUQZSTEF2o/9++LqNBz1yUbtOkix5A4WdbHQYmp5JV vIrUWS3gclXDWHvip4umv8wY6JnirVc8g7xVotMJ4oMA618NhFHw/resoT99254DmdoJ otHIbUSq/r+LcS0B8WA6WrghL1gajvik9TiaSd/kJp+Be7+cVBxsW3hvAvKG/xi/C9bm KXq09/+uUGhAabkvzmdepeoT3Rwz2p82HEoINFJ0wgqOSUyGzCQofFLPKj95+12+uC/c SXCKnVRifUw1DXGxENAQThnkB5kOtp7IIRp+4MOj7OszVc8rXFac3UNRe1V0wGenhVMG 4ZXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712232120; x=1712836920; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=i6sgTwxk9jhbJgHBwC7uiEgEw3bNU/OxwYHoyLaglJk=; b=azeKdCugXRUWabCMNJQx4qO3FwjkiZuhtokoxOOvqiaerQ/Idahxqi2gzeBW5wMa/H 7z2NDswWFSKOR87VboWvdP22sBtve7Umy3qHZINfS1kHCGd59Tpv9WlMrnwsaVdR1ocn RAKVZH43mKajyKmPtg6e8Jd+2VlwJweQ0p5Avx0QEgPvyVbAtkz0pRYotGqoMd8k+sZK M3RxYTl3R6MCfY6YynA24uNHKmZLuh1wffbZ+Y8NsBf6dxoaXKJzi5Xzuzsp9Y+CrvX2 3FZw+kID/LsRnSFhuE6QaiX84/E8CGTFzxwfkXkrv0sG0Emb3mASxsV+NdB7AJ9pwl7s SrsQ== X-Gm-Message-State: AOJu0YwVBtbWJb01ok12HgFfD0k1YmFPz1yYNLOFpYnfw8NBjCOGaeb3 qxou+C+vPF2gMz0D1Cal//35MAP32mFsxdH/RZaIxj6R7ySXbI9Xis9J3q+6zmw= X-Received: by 2002:a17:906:f912:b0:a4e:13ee:5dec with SMTP id lc18-20020a170906f91200b00a4e13ee5decmr4834184ejb.17.1712232119747; Thu, 04 Apr 2024 05:01:59 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id la6-20020a170907780600b00a4e2db8ffdcsm8202481ejc.111.2024.04.04.05.01.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 05:01:59 -0700 (PDT) Date: Thu, 4 Apr 2024 14:01:58 +0200 From: Andrew Jones To: Atish Patra 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 Subject: Re: [PATCH v5 06/22] drivers/perf: riscv: Implement SBI PMU snapshot function Message-ID: <20240404-bbfb02e3aec944f9e11745ae@orel> References: <20240403080452.1007601-1-atishp@rivosinc.com> <20240403080452.1007601-7-atishp@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240403080452.1007601-7-atishp@rivosinc.com> 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. Thanks, drew