Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2219810iof; Tue, 7 Jun 2022 23:35:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyuayy0FbZM1iBP8yTqTaloEySdSKzG8IAilv2MshS57XAirqmy3YI5Ynqr6Uf+R7+y8uX X-Received: by 2002:a17:90b:350f:b0:1e6:94e1:bd17 with SMTP id ls15-20020a17090b350f00b001e694e1bd17mr32672980pjb.162.1654670157446; Tue, 07 Jun 2022 23:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654670157; cv=none; d=google.com; s=arc-20160816; b=Rm4DQuz0oT2vQJtXcAlPLOtcEspUJadMtXB9VoXJowBlzbU+kJn2QeosPBFOrpaiT/ BTYYVdyP+lW6G88rFs/aX6e5W/h/SpdqdFW2qrHzDahBw0aKSpN6uzYqwd/SNI5sKmR4 HV9/RLOsJMEz+l4YNRaWCb+xvoUnwqmt3PczSe/RoqMJXWl+x7KMfPGBWkQKzb4r3eD/ xXmk63B/8m6+eGZpxAThX0bRK9NdlG0Ap8RccWHvtqvzgINKrUkxIf+FM5Bm4+PWAnRk sTWiKS+OU3S18D2oNZ9JGxNLWYmSgckNHx13VcijsEXPE/fgUbcOMGkbC3kW2WNPHjNB UntQ== 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=7dtTpxeHzgWLEeeYsPS1ZuWBvZV/uV3SlaDQiBeoYnw=; b=1ADgDxlOsvjvlvjxm7PHmFSVzEE2hF0T3AID/5AU8okVshAehbMq+l510YxsV5w41c OOu4k6/UospBRWJHGItn78xtItKXPwoz2tOsQXdCezhjS1BHD4hCk6D4ZNwTVaYdCokQ puDk1HBeF98VWrYm04HR5sxfjQ2nhV9/v64d+bGYrYueqrOEZ6sg8eb0T6+bq9geTTrR YfAejulFD3fe6SB7F+/MIrlpqw8yeM1RebUIzlj7yS9lJBLRotCv5Lz4Ja1p+hxqJkV2 ZcGPvMBJAGd1McgF8TkQlBf2FM+6tW/hAxycXz9o4V/wlxYoeEqsEmdMSRhR4RYbNXl8 Og/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fIKEqwJ9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b20-20020a170902d89400b001675025f734si1919452plz.170.2022.06.07.23.35.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:35:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fIKEqwJ9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 450C09CF23; Tue, 7 Jun 2022 23:00:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232119AbiFHCXY (ORCPT + 99 others); Tue, 7 Jun 2022 22:23:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444862AbiFHCLY (ORCPT ); Tue, 7 Jun 2022 22:11:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB3DE25A818; Tue, 7 Jun 2022 12:24:43 -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 04F4D6077B; Tue, 7 Jun 2022 19:24:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C548C385A2; Tue, 7 Jun 2022 19:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629882; bh=SOVgZGmxox99chUL0j/dLJdoiw+f0+Ci7SsA5C0yofA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fIKEqwJ9JY35nTCOAossBxhSiCDoORh09P8h7/Omfe2LvJRX8wKOKghtMS6/h7sm4 Kk7kKAYF5v0p2S1K5Ee/yvVmiRUl2F3efG8CwGdqlw7p0evLqQoV/nSp1DFBSP9qX8 Dwq1VtFSGXmvyAOmGG7aaoPjDfcyzp0ANQIsNOJ0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Andrew Lunn , Marc Zyngier Subject: [PATCH 5.18 810/879] irqchip/armada-370-xp: Do not touch Performance Counter Overflow on A375, A38x, A39x Date: Tue, 7 Jun 2022 19:05:28 +0200 Message-Id: <20220607165026.369091113@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: Pali Rohár commit a3d66a76348daf559873f19afc912a2a7c2ccdaf upstream. Register ARMADA_370_XP_INT_FABRIC_MASK_OFFS is Armada 370 and XP specific and on new Armada platforms it has different meaning. It does not configure Performance Counter Overflow interrupt masking. So do not touch this register on non-A370/XP platforms (A375, A38x and A39x). Signed-off-by: Pali Rohár Cc: stable@vger.kernel.org Fixes: 28da06dfd9e4 ("irqchip: armada-370-xp: Enable the PMU interrupts") Reviewed-by: Andrew Lunn Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220425113706.29310-1-pali@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/irq-armada-370-xp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -308,7 +308,16 @@ static inline int armada_370_xp_msi_init static void armada_xp_mpic_perf_init(void) { - unsigned long cpuid = cpu_logical_map(smp_processor_id()); + unsigned long cpuid; + + /* + * This Performance Counter Overflow interrupt is specific for + * Armada 370 and XP. It is not available on Armada 375, 38x and 39x. + */ + if (!of_machine_is_compatible("marvell,armada-370-xp")) + return; + + cpuid = cpu_logical_map(smp_processor_id()); /* Enable Performance Counter Overflow interrupts */ writel(ARMADA_370_XP_INT_CAUSE_PERF(cpuid),