From patchwork Tue Feb 13 19:35:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 873121 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kPHgypJI"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zgt6h6rmkz9t3n for ; Wed, 14 Feb 2018 06:35:24 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=Vv8C/KAtYW6gccbW7srC8g1eVlrcw6v/q7zx+P53h+w=; b=kPH gypJI6PY5faVu+XLKjt3fEm9tnNHvIUBMZoZ/RRnabwNvsW4HmNeE25C2sZK6zXjLzvlxUjARa6jo VCj+hYnACxMXSQfdhPcIg1Fz9FF0nTDOTd0BPaTMVyjwhim66EyQhpQPhIxlcobluDYrZCkweCpmK x1zgH8jPizwOGr8Z1DopFI7iWXiut0qjcRstE1/I77Z2vWEcSkZ0hXcTDkUaE2s+XjW02ffsnCz7k 8t9KhgsZXmFhiJ1kYwQhRULi0UKP2Vv4OryookCaj+vNKE7arBmSoEdFAZu7AU8ryTPnNNflXgG/M k0AT8KnI3cThsocQnNAa/dhPZdb5waw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elgMN-00058W-GY; Tue, 13 Feb 2018 19:35:23 +0000 Received: from smtprelay.synopsys.com ([198.182.47.9]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elgMK-00054r-LE for linux-snps-arc@lists.infradead.org; Tue, 13 Feb 2018 19:35:22 +0000 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 4339724E0535; Tue, 13 Feb 2018 11:35:09 -0800 (PST) Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id EF857D9C; Tue, 13 Feb 2018 11:35:07 -0800 (PST) From: Alexey Brodkin To: linux-snps-arc@lists.infradead.org Subject: [PATCH] ARC: Don't check presense of Timer1 in SMP builds Date: Tue, 13 Feb 2018 22:35:04 +0300 Message-Id: <20180213193504.28671-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180213_113520_708762_A6EFA3FF X-CRM114-Status: GOOD ( 13.44 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.47.9 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [198.182.47.9 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vineet Gupta , Alexey Brodkin , linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org In case of SMP we use GFRC from ARconnect and Timer1 is left untouched. Still with that check in place we're panicing if Timer1 is missing in current hardware which is quite unexpected. Signed-off-by: Alexey Brodkin --- arch/arc/kernel/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index cf97f7d88934..1142d76a7e8f 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c @@ -391,8 +391,10 @@ static void arc_chk_core_config(void) if (!cpu->extn.timer0) panic("Timer0 is not present!\n"); +#ifndef CONFIG_SMP if (!cpu->extn.timer1) panic("Timer1 is not present!\n"); +#endif #ifdef CONFIG_ARC_HAS_DCCM /*