Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2383805ybi; Sun, 9 Jun 2019 10:22:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsh3/E3c/f1auhkcRk5DBYHyYTJvTCtXc6WaDGPOmqXzT2/XTkccoBq5bz+v3VI/6l+ISB X-Received: by 2002:aa7:9a01:: with SMTP id w1mr48540960pfj.262.1560100946698; Sun, 09 Jun 2019 10:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560100946; cv=none; d=google.com; s=arc-20160816; b=QYBu8TZEYiwML0Jrv0FCYCMonTQBjl6jh62vyLSpPj/BsTRs32x1XfsXSvrYttB2We uHlSCDRjFDPUASaPoLUwUtDObqDiJUQv5N8rDP58dfHS49MHMNObMNlPEtzVhi0zXxIC L0XKIi2MPJGl1rpTk6NMQfB/bh3qBxMNdCvKlm7D8sMWYtrjqSXW9zcsv2QozLv7o3v3 gqrQFF+GtvT795zgsd4Is+P72DkTrDCzizrhTGj7MJwZ+s8cpUe0mKZPNCGagzZv2cm2 1R5twwrLSe6fmTIJdRRUMAUcUSy2+hxd1mJUNYzYeVXtVxZyVP7GEEdY1f+NAkUE/Aj8 EJEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zAwMRsXRP9n/GICfUIwtWl92n7fTdOZkZtBn+TLwmvU=; b=Z7sPTdNV5MMkiZyKXDiM1hwiaBhRZQswIL981AXNeMwaBrboLnbK1B5Y74bdEb1nzR scgVU/G0OZKcGzqD+88og3TEV+1srLY4603GosZqJnBEudGAJr071V52+ia2Cq+MSAdL r+cwfKtJz8fAgqfyL3VhroVjN/u9pqsdSQTkN25gGr1uPBB3X0UqfhYDHCqB5CgXg4/8 Yags11hIrrQ3Shv7zB04l+P+iafxqmeWqrE5CuSYd3L74d0UIPqyEkkEjic17zJnvC2W HuyxpJ/uRyKgzcgRpAwIDbXpTTdeWDK4I1x2PehkJ2+sXjMray4P1AzVPiD/ZdwEXSSB nrwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vDjDBr17; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si6044975plo.306.2019.06.09.10.22.11; Sun, 09 Jun 2019 10:22:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vDjDBr17; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732129AbfFIRTf (ORCPT + 99 others); Sun, 9 Jun 2019 13:19:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:47768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730482AbfFIQsi (ORCPT ); Sun, 9 Jun 2019 12:48:38 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 93A62205ED; Sun, 9 Jun 2019 16:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560098917; bh=aI2xmFamXF/0UTAWDGIGWTN9D41YnsbOcTzuDUadPCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vDjDBr17F7D3Bw/qD/AhDkZURV04HfPVC/NbpJg6dHdKkDloYLSzUzeyZo2Kpr44z nNM0ITJefsnJEm8o1AQosHZWhzeQ+JEuWt+wmMj3cFtoHYoaArFftxI3T0XpCCVtAP D/lNn8SzwdYsyG9Km9oK7znT+vtRSBZPhGRMmQAk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Petr=20=C5=A0tetiar?= , Kevin ldir Darbyshire-Bryant , John Crispin , Marc Zyngier , Paul Burton , linux-mips@vger.kernel.org, Ralf Baechle , James Hogan , Thomas Gleixner , Jason Cooper , Sasha Levin Subject: [PATCH 4.19 34/51] Revert "MIPS: perf: ath79: Fix perfcount IRQ assignment" Date: Sun, 9 Jun 2019 18:42:15 +0200 Message-Id: <20190609164129.317004440@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190609164127.123076536@linuxfoundation.org> References: <20190609164127.123076536@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman This reverts commit ca8648816e3dcc8dadba0e79a034f61c85eb206d which is commit a1e8783db8e0d58891681bc1e6d9ada66eae8e20 upstream. Petr writes: Karl has reported to me today, that he's experiencing weird reboot hang on his devices with 4.9.180 kernel and that he has bisected it down to my backported patch. I would like to kindly ask you for removal of this patch. This patch should be reverted from all stable kernels up to 5.1, because perf counters were not broken on those kernels, and this patch won't work on the ath79 legacy IRQ code anyway, it needs new irqchip driver which was enabled on ath79 with commit 51fa4f8912c0 ("MIPS: ath79: drop legacy IRQ code"). Reported-by: Petr Štetiar Cc: Kevin 'ldir' Darbyshire-Bryant Cc: John Crispin Cc: Marc Zyngier Cc: Paul Burton Cc: linux-mips@vger.kernel.org Cc: Ralf Baechle Cc: James Hogan Cc: Thomas Gleixner Cc: Jason Cooper Cc: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/mips/ath79/setup.c | 6 ++++++ drivers/irqchip/irq-ath79-misc.c | 11 ----------- 2 files changed, 6 insertions(+), 11 deletions(-) --- a/arch/mips/ath79/setup.c +++ b/arch/mips/ath79/setup.c @@ -211,6 +211,12 @@ const char *get_system_type(void) return ath79_sys_type; } +int get_c0_perfcount_int(void) +{ + return ATH79_MISC_IRQ(5); +} +EXPORT_SYMBOL_GPL(get_c0_perfcount_int); + unsigned int get_c0_compare_int(void) { return CP0_LEGACY_COMPARE_IRQ; --- a/drivers/irqchip/irq-ath79-misc.c +++ b/drivers/irqchip/irq-ath79-misc.c @@ -22,15 +22,6 @@ #define AR71XX_RESET_REG_MISC_INT_ENABLE 4 #define ATH79_MISC_IRQ_COUNT 32 -#define ATH79_MISC_PERF_IRQ 5 - -static int ath79_perfcount_irq; - -int get_c0_perfcount_int(void) -{ - return ath79_perfcount_irq; -} -EXPORT_SYMBOL_GPL(get_c0_perfcount_int); static void ath79_misc_irq_handler(struct irq_desc *desc) { @@ -122,8 +113,6 @@ static void __init ath79_misc_intc_domai { void __iomem *base = domain->host_data; - ath79_perfcount_irq = irq_create_mapping(domain, ATH79_MISC_PERF_IRQ); - /* Disable and clear all interrupts */ __raw_writel(0, base + AR71XX_RESET_REG_MISC_INT_ENABLE); __raw_writel(0, base + AR71XX_RESET_REG_MISC_INT_STATUS);