Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2452851ybi; Sun, 9 Jun 2019 12:09:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3obke/2Ck3KJL/1qXPiAWN2bmQSNpLv5/6chPs8bwwm47E4SxxU3kz1jcP07BbF1X5HN2 X-Received: by 2002:a17:90a:898e:: with SMTP id v14mr17513384pjn.119.1560107377659; Sun, 09 Jun 2019 12:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560107377; cv=none; d=google.com; s=arc-20160816; b=clh+L4uIhWRD+yuaPq0PzuA0zHDu4y8uI/smwddsMzXHLX5zoknxWL6AyMVs3vwX7Z 6k28/f5nOINrwTfY0aqayL6e88m03gTQe+SknciyGbtfPeAjSxSqIk1dUROD2jbApDmO RN90Z7/AqFGZEYKRt0fNIpe7NuSKDk87rkjQqq64rcvPqQsXK71yIIWf22eihElHdxBt 2SnTq5K/LzuwOmUD6TinXct8ZpToZxOmKH+Z+FH2jExdJgM9I6iXZCOzhWey2uyW0E/E QtlXHGxmLKiRxZr4BslTvofBAgzh1tPPCFHvxQysuy1ASRAZJ9AONUtziQMJyS3qYc8K Z0yw== 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=Z1hmwgxtYlbh11gmI7ZU3w14+oFOLtKzkN4HACmMswc=; b=u8thBYY/kJYg6qWOMR3UGkTXpT6hhuOHzYZGqP8Zl+YnJWnQR827V8kqmRFetGEmjh N5RHIK6bWa1nXLydbncep3kgnR8trjNaQUSsy6myGUZcl2CZL1IdMlfouMgvL80vKPDg WcFJ9geN+RfexBwT//iAxK/6yM36z+ytBsTiLKeRPPlADkwWYsJ5awyVqIO3xH33f4F1 t6kw/wR/92jvovH+muM+7RUZJLVBqrblsJpA4WrCjvbcwml6qHWB7gCHC9WGDyuJo+c8 YGcl6F0m2f/ZQj7Ki8i75t5lp7tYz4mmeXYvHWXLfixnG6Zf7uLtpYd2h1+GiuF9WWiX L/Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wln66yJH; 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 q4si8435653pfg.286.2019.06.09.12.09.21; Sun, 09 Jun 2019 12:09:37 -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=wln66yJH; 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 S1732671AbfFIQyq (ORCPT + 99 others); Sun, 9 Jun 2019 12:54:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:56546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732683AbfFIQyo (ORCPT ); Sun, 9 Jun 2019 12:54:44 -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 96BBC205ED; Sun, 9 Jun 2019 16:54:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560099284; bh=ZelLAq095nPzT9U+ik2QCM4aygITCEP6x05Ax+TYATc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wln66yJHN6atG1uw+LkuY9I1JBnmEgUGXrYUiRYPBqpjSwHloa7dcU7/viJXZSdJP wW0enRIu3p+e8lHAWXvh9COPUl85Uj3BzbuSKOmLYkuQn3SWDbqQzG+Wc5hFQu4O8q 2bRN9xaYZ5WtrHqK9h0TO5ljrydI1YmjUS2M/Yso= 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.9 76/83] Revert "MIPS: perf: ath79: Fix perfcount IRQ assignment" Date: Sun, 9 Jun 2019 18:42:46 +0200 Message-Id: <20190609164134.390310228@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190609164127.843327870@linuxfoundation.org> References: <20190609164127.843327870@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 f9b1baac265600a61d36ebaf9ba657119303b5b5 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 @@ -183,6 +183,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);