Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3053254rwe; Mon, 29 Aug 2022 05:11:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR5xBCyuy+J7VC+zj9ism+2N7z/5dLiJM4CIPZIZT3Nk9NuZmADMoxz1H3earf7P7IdAznmC X-Received: by 2002:a17:902:dac8:b0:174:cf17:6e87 with SMTP id q8-20020a170902dac800b00174cf176e87mr4234073plx.129.1661775114309; Mon, 29 Aug 2022 05:11:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661775114; cv=none; d=google.com; s=arc-20160816; b=XOlwG16oJTrAzgsGDe3iv63cfglUmMGbB0oxmaOCphhFJIu8sKv62uQ2D3+Y0pSJWB XpUYRAeDAu7ojO3ZHQgZZepp3I0R/mV+4P/8S5MJbIZUDbR4eLWhNgz8kN4J1h2NCXT9 F7diix5otI9tUsxaxdTdk05eESrJCyMUVOK/nYx/xzc2YQd4FfHm3X+yDmCE/pc1ULO9 W/lFxTi3USYcKT8uPE44qB5qT+L95mcww3ryCjzU+S3Cf5alSlc2xMsWOn6n3cfuEBBV 8Iu1iILVW3Y9n6oy9WvIMyEw9LA+JdZMzDVDUPCB0Xjx5oRQqL6nGKSwKrmZmC4kCqZS WaUQ== 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=GyRrKXmGyLmwf7Uyi50wQ4n8Knajvi++eZFjGpA0RdA=; b=IY2vUplHDiwJBgAkzPscwv9cSAMatGxvx4ts2Kgyo355hbCi+Hdugk7h9ckOuQvAwu AouDYtyBOOrZZY1QYudS6Xqsi3/AJ27Lb2xZohUJYQMkubTKrQPpVq43unUDMZaZvLDI /r9gXP9UdZKMH+wh0DC8F/4LQ7bBlz03YuX5llz0yZjifINpaI1nOvWz5eTujibdKaYd xi/gINfqDR+P8Hd5qD4xwo40mgLlaDgYNmmODt8un1tyoiI0s6M8WdRMENmbBzmHYvgI pLvXinIA3F4XuaCfrdoFQDRA8bLW/j+rPeyuCDgTe6FmQeNQ/Tdg9EdXgQSm/HbThDhB Wk0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FRp+CzJX; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a631144000000b0041afbe04925si9524327pgr.193.2022.08.29.05.11.43; Mon, 29 Aug 2022 05:11:54 -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=@linuxfoundation.org header.s=korg header.b=FRp+CzJX; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232620AbiH2Lcx (ORCPT + 99 others); Mon, 29 Aug 2022 07:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231991AbiH2L3w (ORCPT ); Mon, 29 Aug 2022 07:29:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 344D679606; Mon, 29 Aug 2022 04:17:49 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8B4AC6122E; Mon, 29 Aug 2022 11:16:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96EB5C433C1; Mon, 29 Aug 2022 11:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771802; bh=DvKoNBXZQ3lSMZDV8guVSXKw8UBkl1O4MYqLwlKmqCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FRp+CzJXHV8zYKSBRlJdC8n2AUHDVjPoW6348Y9kB1iE4unt1ZIXyH9L7AvLcVtlf pezWNi6JncCnLfI0w7+a7uI3aQsaFz52aAYOPVTnsQ8EHCxsuCrlQ6bHJ13s/N2juJ m65RK+fiQSJoHxuzRA7nTQDL6asqIj4k0SL/GMQU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ammy Yi , Kan Liang , "Peter Zijlstra (Intel)" Subject: [PATCH 5.19 102/158] perf/x86/intel: Fix pebs event constraints for ADL Date: Mon, 29 Aug 2022 12:59:12 +0200 Message-Id: <20220829105813.372152512@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105808.828227973@linuxfoundation.org> References: <20220829105808.828227973@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 From: Kan Liang commit cde643ff75bc20c538dfae787ca3b587bab16b50 upstream. According to the latest event list, the LOAD_LATENCY PEBS event only works on the GP counter 0 and 1 for ADL and RPL. Update the pebs event constraints table. Fixes: f83d2f91d259 ("perf/x86/intel: Add Alder Lake Hybrid support") Reported-by: Ammy Yi Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20220818184429.2355857-1-kan.liang@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/events/intel/ds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/events/intel/ds.c +++ b/arch/x86/events/intel/ds.c @@ -822,7 +822,7 @@ struct event_constraint intel_glm_pebs_e struct event_constraint intel_grt_pebs_event_constraints[] = { /* Allow all events as PEBS with no flags */ - INTEL_HYBRID_LAT_CONSTRAINT(0x5d0, 0xf), + INTEL_HYBRID_LAT_CONSTRAINT(0x5d0, 0x3), INTEL_HYBRID_LAT_CONSTRAINT(0x6d0, 0xf), EVENT_CONSTRAINT_END };