Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4631333pxj; Wed, 12 May 2021 09:37:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFiR3qT7aXcZxppvP0e6R+MXGCElgpgkN9XklwKbvXchivbb2W4hecuVjZrgROHKf5CoVq X-Received: by 2002:aa7:dbcd:: with SMTP id v13mr44077465edt.59.1620837479564; Wed, 12 May 2021 09:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837479; cv=none; d=google.com; s=arc-20160816; b=EOQnQIpMnw0qsiGd+XOlYsIkBefdonR0JsHqNyKWq/YSIiPePAUWNhp+lKkitGWjWA JV9soYXk5cO/tIUWdUcO5/tBgvy0lo4dD2cKp247nX+nMuvOQ/CHg7b53j3fAjl0yjRN 9ftvSLsXtbM/fjiVV5PH68KmePQtqI1iIey7qCW2C9dtIVrR2yBvZeLMwC6MNDveVpp5 5cKC+eqFFXjn3ouyYP7gUBIIGC4GuirlhEXEKgU8P/0boMO7ww3GEuT3/RpfahyZuh8c PEFLLb2lowRTC7WlUWlgDgi1UDnxrLx3r1BD6nS0Cmh9UfoXEOgx4qOx8+bWS3zJRfl/ K7CQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=848rPKod9zfykPtqbRUE+enx0+xVtQKjUK2cM6Ay08k=; b=acS0KM6z4FqNg4OPkDfEWn4adBaF6mNCfac+QRkkptF9R2xp88hVhrtF1e3eLKsdXv REOfjAORBMNMKV2yRchidWPnYnFBTnfEttSOXfqd7191MiM+mJAqwFmyp5b41oEbevQk 0rDP3/YDmo8WjdJQiqKhagHuYV+04axEtwzct/re9+DUGPhRKR3eRheiGRPPYh6P4eEK ZAcF3nq1X+1xen0T9gMJqLu1CK1Z6qncX16mojEXpuewIoZQ5FbjVYUDCIfjIvjlwbWd AAZEn/Otzt7EqxXa1qJSvajpu60o21C2d+BH27X3W/qaH1a1ucp23UOGmeTIXh6qJ3IH aXrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P03l3EtO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay17si436165ejb.340.2021.05.12.09.37.35; Wed, 12 May 2021 09:37:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P03l3EtO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242845AbhELQf6 (ORCPT + 99 others); Wed, 12 May 2021 12:35:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:42370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235272AbhELPnb (ORCPT ); Wed, 12 May 2021 11:43:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B2C361C8D; Wed, 12 May 2021 15:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832952; bh=gHumCT2Bq/aO1rrARC0tkzCXKm++3NEnGMitLRGdozs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P03l3EtODaIWW38001qdP1JubEF+9X8yOQPqydYVikHxhamtefgm7RJEMAli4eSQ5 fLP5ZWV97XG/brHXAnzvcMxY5ti4Ju2hpvlonVNWtydpYjvAY2jvKrrUqrTP6tlLpe q/SHO77akHvTSVnf2R20CVsqIkZn6BlJHBIpSDgg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Athira Rajeev , Madhavan Srinivasan , Michael Ellerman , Sasha Levin Subject: [PATCH 5.10 490/530] powerpc/perf: Fix the threshold event selection for memory events in power10 Date: Wed, 12 May 2021 16:50:00 +0200 Message-Id: <20210512144835.853543016@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Athira Rajeev [ Upstream commit 66d9b7492887d34c711bc05b36c22438acba51b4 ] Memory events (mem-loads and mem-stores) currently use the threshold event selection as issue to finish. Power10 supports issue to complete as part of thresholding which is more appropriate for mem-loads and mem-stores. Hence fix the event code for memory events to use issue to complete. Fixes: a64e697cef23 ("powerpc/perf: power10 Performance Monitoring support") Signed-off-by: Athira Rajeev Reviewed-by: Madhavan Srinivasan Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/1614840015-1535-1-git-send-email-atrajeev@linux.vnet.ibm.com Signed-off-by: Sasha Levin --- arch/powerpc/perf/power10-events-list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/perf/power10-events-list.h b/arch/powerpc/perf/power10-events-list.h index 60c1b8111082..e66487804a59 100644 --- a/arch/powerpc/perf/power10-events-list.h +++ b/arch/powerpc/perf/power10-events-list.h @@ -66,5 +66,5 @@ EVENT(PM_RUN_INST_CMPL_ALT, 0x00002); * thresh end (TE) */ -EVENT(MEM_LOADS, 0x34340401e0); -EVENT(MEM_STORES, 0x343c0401e0); +EVENT(MEM_LOADS, 0x35340401e0); +EVENT(MEM_STORES, 0x353c0401e0); -- 2.30.2