Received: by 10.223.185.116 with SMTP id b49csp4050518wrg; Tue, 13 Feb 2018 11:54:41 -0800 (PST) X-Google-Smtp-Source: AH8x225Uuer6wS92hrHACJnqPHaUVmfmNyP8HWF+v8WKdzCALIOK93JLe0avhLMvsZER1kBRAd3I X-Received: by 10.99.95.81 with SMTP id t78mr1887131pgb.380.1518551681675; Tue, 13 Feb 2018 11:54:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518551681; cv=none; d=google.com; s=arc-20160816; b=rFpgIEz6cFjjZQDTCLKjJW0AsQfFqrCVYMi4mW00xqMSvUzUFspAWShbbl0yxVuOqW uwPZhXa0Dp8y5lwf0TuP+DcdUJBKI77EWvd49RJf8FV8HangjXG36fw+dygEAXXAKmKm TSIW0ZaVlGa9GBXfK/dyD5vqVqXptrOa/IISXeHSXilq2T8k1RlZvGLPDHbkYuu4Hig2 yjMsXo/+SnUmjrM3dXVki3maqx1aNDLHQOsGO+Do7eeAoT8QXlgG0HgprwwhSNTuEKTC LJtMUyjzbjvoehDL9o2AsppBx1UKDDVmopYECJdYQEBGcK6B5J6et750VNanJczlmmxl u8nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=BdD/jbEqwqb8Iuo5KnD/8ff0DvUmLaTBP4C5OOg8DbQ=; b=Mm2i2PlhexsizdoS3ZqOFAkqnilrZx9p+6+lD/iUjPzcX9PkTe18UZg0LIyH8d2qA6 kRQtESVoDja9OpGIfIREwRtcdk26NKssR2Cn+FT1LoSj89GH61eacwylyodtAhKnXp0T gKa2pPbiy902agDZ/0GsYGeKuZ9W+dAw3F0C21O0WSnHeal2OM0juCSETmmzgbJWgoH1 558ZWvG21GbBLpAMf/6uz/1HyvFQ+QzzEI13ES7pZdmiDNOWYo1FZLfDKi2HVEuubSur ytThPHLwQzNXVQcvY1LC34zE10CYw2/EfyAonNYkTcR2p8pCRUfSXzOfdTIdUb3ay5eM 5zqA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f31-v6si250523plb.636.2018.02.13.11.54.27; Tue, 13 Feb 2018 11:54:41 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965711AbeBMTxg (ORCPT + 99 others); Tue, 13 Feb 2018 14:53:36 -0500 Received: from smtprelay.synopsys.com ([198.182.60.111]:50905 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965651AbeBMTxf (ORCPT ); Tue, 13 Feb 2018 14:53:35 -0500 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id AC45E10C071D; Tue, 13 Feb 2018 11:53:34 -0800 (PST) Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id 98A4EF73; Tue, 13 Feb 2018 11:53:34 -0800 (PST) Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.104) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 13 Feb 2018 11:53:28 -0800 Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by IN01WEHTCA.internal.synopsys.com (10.144.199.103) with Microsoft SMTP Server (TLS) id 14.3.266.1; Wed, 14 Feb 2018 01:23:26 +0530 Received: from [10.10.161.84] (10.10.161.84) by IN01WEHTCB.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.266.1; Wed, 14 Feb 2018 01:23:25 +0530 Subject: Re: [PATCH] ARC: Don't check presense of Timer1 in SMP builds To: Alexey Brodkin , "linux-snps-arc@lists.infradead.org" CC: "linux-kernel@vger.kernel.org" References: <20180213193504.28671-1-abrodkin@synopsys.com> From: Vineet Gupta Message-ID: <8a595f83-150c-443c-8aa6-b850877d841f@synopsys.com> Date: Tue, 13 Feb 2018 11:53:23 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180213193504.28671-1-abrodkin@synopsys.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.10.161.84] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/13/2018 11:35 AM, Alexey Brodkin wrote: > 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 Curious, you have a config w/o TIMER1, so is this a fallout of recent discussions ! -Vineet