Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp571165iog; Mon, 13 Jun 2022 08:20:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLAVDOE1eVXM20xU95YNkXdbI4eDzH+mAyaQO5w4XJWbUiUaSCPMpOz2J4NSrs9VIL12GI X-Received: by 2002:a17:907:6d91:b0:711:ec13:b7d8 with SMTP id sb17-20020a1709076d9100b00711ec13b7d8mr313661ejc.565.1655133655424; Mon, 13 Jun 2022 08:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655133655; cv=none; d=google.com; s=arc-20160816; b=Eg60cd7SdU8m1oF2gT/pOipN+9fpu/lBxa5Q70tHrTXBtXzcAca50rqtPbAmFfl/Mr sQtJ8J4fjrcx2Bf62qrDwb3ZR4/AjEtvz89A4IpsLcQ1kKhBguHkwlOdVswIzEM4snjs Nz7XvJuRwt9HFK2FkIbWyMvb2bDDbozIA18vwoi2darmeB2iEGJ0hVjYoOUVciOW37KT We7EsSkmUSgwHmWVguGuvgM96M/PsjPHfPrAvg7JXBN9v5CffUdx9MDEDy5T8sDWp/qu SDAWKngUvs3JygqeGvoLmSFRJKqbkn4oIoDXW5A9FC7QQedkEmVlseX/n7bgV0qyN96b NtxQ== 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=SH+v9zYnTQzfwR6987A8R1nT/mqUVi50eyckCkPHRbM=; b=v2qoGYTlAdqoKGuI2yfpw5IVHvYeYUXk5ziZWnmx7gPnYJYqryZpLMCJGAl8Dkiz2y lLvhogpAyQ05nhujHFvMskAm5wLsKjvFB9BNZhr2sWvTZvA+qJU0AZUJtwyBg9h+Siqw KE6j5F8pJmC8ht4v10B9vCaEDLEXb+6d80XZ4WY6TY/poPh/m7XEFynUsB1pn8etxFb3 E7eSWRobZe46lXR2sBNG+T/SOnwGD5E9ElC/tN5M8/jzG4RP+CypF8ZWSjlO7YkR9s8L pBZifBU3lEICWDEZum6ynZWX88E/VoXIAS/8IjB1VbHvV0ROMmMjMYILUY3bvinCIhup 7XKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dRctgWgN; 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 b18-20020a056402279200b00430262e2b6dsi8673391ede.206.2022.06.13.08.20.30; Mon, 13 Jun 2022 08:20:55 -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=dRctgWgN; 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 S242895AbiFMKZO (ORCPT + 99 others); Mon, 13 Jun 2022 06:25:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243652AbiFMKXb (ORCPT ); Mon, 13 Jun 2022 06:23:31 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA1AE22B1D; Mon, 13 Jun 2022 03:18:01 -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 sin.source.kernel.org (Postfix) with ESMTPS id 2B7BECE1171; Mon, 13 Jun 2022 10:18:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34405C3411C; Mon, 13 Jun 2022 10:17:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655115478; bh=UVZbryyDRvFXPAgUukkuskHIIdKF+Ch24XEU90ukkbw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dRctgWgNh4NSe9wW+2XZIeb3kwvm9RYhL795XVdcE6smofvVJoI7S/CJ8Hi987K/4 vnv/6XfhhbarVPrWAmVmNZioZlTvXOe7WawT+fTiFyDb0kqQCOyfYPG1AFUZX4YiwJ syvg4J9aMPB5OeTzdIgc84iHI/j8bWz5164lbfJQ= 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 4.9 091/167] irqchip/armada-370-xp: Do not touch Performance Counter Overflow on A375, A38x, A39x Date: Mon, 13 Jun 2022 12:09:25 +0200 Message-Id: <20220613094902.273591525@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094840.720778945@linuxfoundation.org> References: <20220613094840.720778945@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=-8.3 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: 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 @@ -312,7 +312,16 @@ static void armada_xp_mpic_smp_cpu_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),