Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp128358ybe; Tue, 3 Sep 2019 19:08:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqySMeuB1Qg3ZZPbtZvSB88sZCXrqFAtrHHHb5Pn7JsK1fGU0w3tzM6GiEol8WIWExCa6pNa X-Received: by 2002:a63:c442:: with SMTP id m2mr33847985pgg.286.1567562926239; Tue, 03 Sep 2019 19:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567562926; cv=none; d=google.com; s=arc-20160816; b=nvpCriXi8s9uuWsX70ZR1dDIzf2t6/ki0KXzHkIevimYldO36YVxVnHb5vBKm8jAv+ NP0zbjkNDBfc7IbQtUQtP79VGS286FVZfqvkGXStgKr/TQyvjZ9eJ67+BfHkvX+F52Si EuFgiL5x5XU8udK5fqQFFJdTP2pQ+3+682XocCCHjkq+VGUiQBrYxo0Xz6vb/WkYgpf/ e++m8BnnC4Nt9Ulqu0iKfwrJpqADHR0kKYSxPwoI4BihIO5oceGFkNRAmH0YgytyBjjy DWVfaTaji/5A6F+Ul51arjhOkcb2MMj/Qd9nqaOrLQa64GzKLAZBN76rfP7Om1JvjPSz W0sQ== 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; bh=G7eI2jYOmHAOIOw53FuKXFLQysjmelTyu/FiFqQYkP8=; b=fIC2o11HHJVJPtiXG1UegofIFAl4DeKVwrvHqSDMDbwMLqJiGfklX/2uf20x9Iehw9 k8tFd1inL/Qi9lVkUS24Yj4xlpdtuu0p8FhO4Hb5niKzZirWIMNxKTDXkoJBCmZN9F3B Gs1w/BI/uTEfw1lwqj/Iu3A4oOMPIPXyFljmnKKp+QMQeagpsQGOAJ9lWswTQSTkJW2L GqPN+MWQCOitTyaNehbwuH3jcg0WtgTQ2O98LwnClcVvkgl0ja7I6ZEdsv8ZJlMuxKDq el+pNLENLun/3mcZKONy2TsGrlTKQjLWvCFSQ3bepoipp82MXAtzZE3tXjNvu5+GIx18 Gr0Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si3218090pll.436.2019.09.03.19.08.30; Tue, 03 Sep 2019 19:08:46 -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; 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 S1727891AbfIDCG2 (ORCPT + 99 others); Tue, 3 Sep 2019 22:06:28 -0400 Received: from 59-120-53-16.HINET-IP.hinet.net ([59.120.53.16]:28352 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727805AbfIDCG1 (ORCPT ); Tue, 3 Sep 2019 22:06:27 -0400 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id x841qSq9066455; Wed, 4 Sep 2019 09:52:28 +0800 (GMT-8) (envelope-from alankao@andestech.com) Received: from andestech.com (10.0.15.65) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Wed, 4 Sep 2019 10:05:39 +0800 Date: Wed, 4 Sep 2019 10:05:39 +0800 From: Alan Kao To: Palmer Dabbelt CC: Christoph Hellwig , , Damien Le Moal , , Paul Walmsley , Subject: Re: [PATCH 08/15] riscv: provide native clint access for M-mode Message-ID: <20190904020539.GA18202@andestech.com> References: <20190828061146.GA21670@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.0.15.65] X-DNSRBL: X-MAIL: ATCSQR.andestech.com x841qSq9066455 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 03, 2019 at 11:48:52AM -0700, Palmer Dabbelt wrote: > On Tue, 27 Aug 2019 23:11:46 PDT (-0700), Christoph Hellwig wrote: > >On Tue, Aug 27, 2019 at 04:37:16PM -0700, Palmer Dabbelt wrote: > >>clint0 would be version 0 of the clint, with is the core-local interrupt > >>controller in rocket chip. It should be "sifive,clint-1.0.0", not > >>"riscv,clint0", as it's a SiFive widget. Unfortunately there are a lot of > >>legacy device trees floating around, but I'm only considering what's been > >>upstream to be actually part of the spec. > >> > >>In this case the code should match on a "sifive,clint-1.0.0", and the > >>device trees should be fixed up to match. We match on "riscv,plic0" for > >>legacy systems, and I guess it makes sense to do something similar here. > > > >IFF we decided to change it I'd rather separate DT noes for the ipi > >bank vs timecmp register vs timeval to support variable layouts. The > >downside is that we can't just boot on unmodified upstream qemu, which > >has used the "riscv,clint0" for years. > > Like I alluded to above, matching on "riscv,clint0" seems reasonable to me > as it's a defacto standard -- we'll just have to make sure that if we ever > end up with a RISC-V CLINT that the DT entry is something else. De facto, but not mandatory. > > As far as splitting the memory maps goes, I don't have a strong opinion but > it seems like that'll introduce more complexity than it's worth. > At least the splitting can keep reminding us and any new comers in the future that CLINT is not (yet) a must in RISC-V landscape. A previous discussion FYI: ( https://lkml.org/lkml/2019/8/20/1361 ) > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv