Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2696310imw; Wed, 6 Jul 2022 10:10:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uMNJAE8d9hsm+BKkf46bDOJ7m6oQATW1fkFKVupsqGuB6KzU75uLWarQiE4fRBoHI5ccDH X-Received: by 2002:a17:903:18f:b0:16b:79b3:d9a5 with SMTP id z15-20020a170903018f00b0016b79b3d9a5mr46942815plg.147.1657127416854; Wed, 06 Jul 2022 10:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657127416; cv=none; d=google.com; s=arc-20160816; b=Vq1stjkHFdnCIWYpzX9cf81+3P4sWeMr7rxBWsR2pP0gymw30gPG/bt2uQAB2tR6/s QDGIalCrkqCMgGqT+X3oYV+97QH/G5W4kH1vU8zP8FwcCxU9omKfogUAOGQ/dPIERKgP 8OuzQ7CRZdtDQ+00x9edqhiP6xZ6Q8tUU5p7CHwojDVeVKfZhSYpuhfwZVffi4SfFEzw kUkDtupFcrsbF5vjtlDoeYAghNbA/zxp829ObAXMCbRCg13NRSwzIVEz2ZehRnnCwtDS UEVyrqzWAF2/zL1KElBdaafaaBxGubAVfJs+88+qvG499KZXbkytrBjTgEKAh36e1i4m h9fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hZn8uvIozKXk19NAE+LwA56/IGeMdvoaiPcG3FUj+R8=; b=tXHjNJEX7V73eKXTjQaZmfoW6ZEav+Pzy/xj77qOrDEi1Kb4dECrFd7+wm2be535FN fZdoGqIOh0ilrk4zSCWBeGW9RZXU07caOgCIagx/oEfB9Uam2x6RatNQbmVC9nG5Gnys N95m7Z1W/5REW9B3fX/uYZpCeL4M9H0+f0CPq1IlkOJ0BQILdnI6eVj9Y6NQZuZ+azic rFozY/p4ppdWEINTYOnTvriovEnVed/Yej/UPmFp56Ihj1joECoxb9O78nFx/yNv5Ubr A+xUGSbepzBanhvao4A1QAtq7+j5d4d1dZ0b5OnYkp8AMtV2KVHg8eVBDWqUfilkyZi2 1obA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aBzQlPV1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t16-20020a634450000000b0040de29fae99si20415185pgk.540.2022.07.06.10.10.04; Wed, 06 Jul 2022 10:10:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aBzQlPV1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234036AbiGFQux (ORCPT + 99 others); Wed, 6 Jul 2022 12:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233615AbiGFQut (ORCPT ); Wed, 6 Jul 2022 12:50:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D6B92A425 for ; Wed, 6 Jul 2022 09:50:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 14BE5B81E30 for ; Wed, 6 Jul 2022 16:50:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 252E7C341CB; Wed, 6 Jul 2022 16:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657126245; bh=huZALYPFKBr4Np8d7D2qyaWr0GwXSIislDPcn8eFpkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aBzQlPV1dZT3PFatvoynD8ldDTQl8Zwj3jb35ihkPVgvSTGXYsDDh7SCKL0KwQPmY 8jTUHHXrFDW6apWQjBCeMA3a5xVkpFhcr32fac4VWuVLUm8X6WkD74juqSm26iPVLZ MGUt9RCQD8DGJV1f7hLnHQuJNZ8LiXBbuCo1gMvA2m0U/SRJuTjwEYoeqJQ8CmPDMi 6bv+Q+hUpqKadeTymHbyjPAUbiCaeZR7Ja6iP0YlmHCArxo9tA3jW9aRvA+0Wncgap wrgvORyVScpUecTMCevWM0Z6xnS45DvYqOkIFob9w/xic2n+0OKl6+/Gw/mWtYGQbh aoRzEkAUyhzBg== From: Will Deacon To: linux-riscv@lists.infradead.org, palmer@dabbelt.com, anup@brainfault.org, Eric Lin , atishp@atishpatra.org, atishp@rivosinc.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , greentime.hu@sifive.com Subject: Re: [PATCH] drivers/perf: riscv_pmu: Add riscv pmu pm notifier Date: Wed, 6 Jul 2022 17:50:31 +0100 Message-Id: <165710145080.2497812.7883037173076290820.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220705091920.27432-1-eric.lin@sifive.com> References: <20220705091920.27432-1-eric.lin@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 5 Jul 2022 17:19:20 +0800, Eric Lin wrote: > Currently, when the CPU is doing suspend to ram, we don't > save pmu counter register and its content will be lost. > > To ensure perf profiling is not affected by suspend to ram, > this patch is based on arm_pmu CPU_PM notifier and implements riscv > pmu pm notifier. In the pm notifier, we stop the counter and update > the counter value before suspend and start the counter after resume. > > [...] Applied to will (for-next/perf), thanks! [1/1] drivers/perf: riscv_pmu: Add riscv pmu pm notifier https://git.kernel.org/will/c/e9a023f2b73a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev