Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4545548ybp; Mon, 7 Oct 2019 10:01:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAM0Ze1CAYeMvRoVVgan9hTrZ/OknB6plABDOUAGfO6o4fdqywXa6enIEmYP5crZ0qq4MS X-Received: by 2002:a17:906:fd1:: with SMTP id c17mr25134949ejk.45.1570467661037; Mon, 07 Oct 2019 10:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570467661; cv=none; d=google.com; s=arc-20160816; b=wJNoul9/cBvOx5mghOF+D1jkLwhVpxKH4xdKLZ6bk5+E+WWDNCrziCoa2nWBKd/pHz 3utouXyXR4BVymczGxVuUQkHPzdRZkRL2SARaKO4bCfeCKduiSUu9BjheHPuO62exBb1 //F0/L0KzkEIA0zOkA1OX70dO1751aqFg8qSFP/DtkekwQPuO1LK94Bks/Ft8sh18mQ6 +6D1Ht6Na4Gokjzgb8xl4S9P+QT9XkQLE3PbfDdnG/txsbDHaeM2GTHbRpSSeDH9AKQA LMththx8Rym0rfxGjo/S/MaFOsD+Ru14dHHMXZPniNtIlqLQM/VAjFaQmTzzNG7P5MEp w8Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DNC+6fO8Y7VsQGNpxImS/ME5ZTTCJiI/xs8ualzyIZg=; b=nDWqyTaX0PAOlwxzmehSzhUTTxOWl49RG642s5l22a1Z5g34QPNKcQ0zmdynJCBRmo 0y5C2uBW3L2Ax16c8FmYSJBnVC0Znj525QvWnlCkw2Qe8j/UxQ801sQUn9K/wAe0nBXO 9EyKIaO1cCxEbXvqviGPMXSA+iSVPb1ewhB3UVV/nFKmuBR8i5+epAzFAxdmgozpECpQ nkux+JZ5LGir63kVXHJ3X13sWx8PdIX2S3kZAfv4mL9RFE1WI/G8MxCYQrzfNbead1YX UVkCIbgND2w8T/hT8BhBD1oTal2CoThnhSzNEY9BIy3AL0dGoN0VjpCmDReS63IEdd90 m2ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=CoU+pLP4; 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 gf9si2125189ejb.230.2019.10.07.10.00.36; Mon, 07 Oct 2019 10:01:01 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=CoU+pLP4; 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 S1728891AbfJGQ60 (ORCPT + 99 others); Mon, 7 Oct 2019 12:58:26 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60766 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728474AbfJGQ60 (ORCPT ); Mon, 7 Oct 2019 12:58:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DNC+6fO8Y7VsQGNpxImS/ME5ZTTCJiI/xs8ualzyIZg=; b=CoU+pLP43na+N69/nRTFBOZiG OiFkiBH+m077C6YpIUknzK/1tOnPM3WFkO8c6SsxyGbgiSrrzT4H+P9gkTuUHXtWNbWiP+zkVzRin sd7HalyjK7hc0yfISDxAKc40hanzYRybd9e5VpwGyfwqMyo1mdwpS1SEbFB3+4DojiAP8KWRrusJP onEYKOkRepj4A2Hm9ccKrb95FMV0fXiYQEAuo2yD40m8yxBDNgm1ITOgqIdruZSw0JNZz7SKsxDY1 8FvPJKTtiYTYoHgTxXxaL3WkrEjosBTzEiiOvPmFLH2x6BWqU8/xGMDz+VIc0HouZ+binjUVmri2N cpPacYw2w==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHWL1-0001MY-46; Mon, 07 Oct 2019 16:58:23 +0000 Date: Mon, 7 Oct 2019 09:58:23 -0700 From: "hch@infradead.org" To: Atish Patra Cc: "hch@infradead.org" , "alankao@andestech.com" , "anup@brainfault.org" , "paul.walmsley@sifive.com" , "linux-riscv@lists.infradead.org" , "palmer@sifive.com" , "linux-kernel@vger.kernel.org" , "aou@eecs.berkeley.edu" , "johan@kernel.org" Subject: Re: [v6 PATCH] RISC-V: Remove unsupported isa string info print Message-ID: <20191007165823.GA5116@infradead.org> References: <20191001002318.7515-1-atish.patra@wdc.com> <20191001070236.GA7622@infradead.org> <20191001101016.GB23507@infradead.org> <20191002015338.GA28086@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 02, 2019 at 06:28:59AM +0000, Atish Patra wrote: > On Wed, 2019-10-02 at 09:53 +0800, Alan Kao wrote: > > On Tue, Oct 01, 2019 at 03:10:16AM -0700, hch@infradead.org wrote: > > > On Tue, Oct 01, 2019 at 08:22:37AM +0000, Atish Patra wrote: > > > > riscv_of_processor_hartid() or seems to be a better candidate. We > > > > already check if "rv" is present in isa string or not. I will > > > > extend > > > > that to check for rv64i or rv32i. Is that okay ? > > > > > > I'd rather lift the checks out of that into a function that is > > > called > > > exactly once per hart on boot (and future cpu hotplug). > > > @Christoph > Do you mean to lift the checks for "rv" as well from > riscv_of_processor_hartid as well or leave that as it is? Sounds good to me (as a separate patch). Again it makes much more sense to validate this once early at boot time rather than a function that can be called many tims during run time.