Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2511318ybl; Mon, 19 Aug 2019 03:18:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOSrGewktp+pNgleURINf+2HZi06En5Q1EGSpZhF7vtSXPuOZCDevQNHrOe09a33onIHR+ X-Received: by 2002:a17:902:b285:: with SMTP id u5mr21394896plr.329.1566209880773; Mon, 19 Aug 2019 03:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566209880; cv=none; d=google.com; s=arc-20160816; b=wmDBj18vyd+UVpEEZQ5bXDBEhf4IQkT8LPxNetDOeF4O/u+XouZbIUBqbFL0hWUa59 I2F0VvwZYi4qkcsHD9EUUI+rXiSz/4R7NnXEDe6PXZuwNF4sbq8sG7oP9JPK2Sd71Ze9 LUoTRhU0O7WwrFWfxhbuVp7J4o1XPDJRSheZ35DTiCe5h1KJTLZtSD2h4iQ2TrvtLujy XYtux0FBYobswFvatgRuMVvyelOHUpgZ3GwOUMjB6vP4r+VApiRphP+YD4RlRkOzEd3Z BC6b53BQ5696W/U4h2npxpsr+UfILorS0+P5eW6DTz0xG26q9QT305ouhT8peGahuqEK 3OGQ== 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=3v64IlkC0SQFy6WtkU/iJ/uEwJ3H9ksnAdmtUIz0ELI=; b=TS2cPDzS3049gfihblYuxmx4dnfbfPoFRUAlEU0Vto+cnoUt3/bjXiBg39Y8HsAO+X +t8PoHl6/h7bVVtlIEk/fQBLjzGhcIc10SkWJ22kj57HnFYbfIqdCisHI39B1acfvYEW KaHw98ZujjYcfLwUXUYRhRSwYWM6XHqszhTog7R3A1GPlArfKactCIyr9aaIul+HTl8t lA3nprKo3i+H/k10JxcpWIsSMErFHQTj6z6GWrxtvMdmZGwN/VdeCs86SqLmDAeeSjRm stbNO9N9AuE8WdI/VE5LK/pekuY9ePvl6lK+fzjWaSyoxoV4SuortPdr3FyZPw4gfpa0 DeXA== 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 n23si9490587pgv.163.2019.08.19.03.17.45; Mon, 19 Aug 2019 03:18:00 -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 S1727238AbfHSKQw (ORCPT + 99 others); Mon, 19 Aug 2019 06:16:52 -0400 Received: from verein.lst.de ([213.95.11.211]:46376 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbfHSKQw (ORCPT ); Mon, 19 Aug 2019 06:16:52 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 86B43227A81; Mon, 19 Aug 2019 12:16:48 +0200 (CEST) Date: Mon, 19 Aug 2019 12:16:48 +0200 From: Christoph Hellwig To: Mark Rutland Cc: Christoph Hellwig , Palmer Dabbelt , Paul Walmsley , Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/15] riscv: provide native clint access for M-mode Message-ID: <20190819101648.GA29645@lst.de> References: <20190813154747.24256-1-hch@lst.de> <20190813154747.24256-9-hch@lst.de> <20190813162958.GA27821@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190813162958.GA27821@lakrids.cambridge.arm.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 13, 2019 at 05:29:58PM +0100, Mark Rutland wrote: > > + np = of_find_compatible_node(NULL, NULL, "riscv,clint0"); > > Since the MMIO layout is that of the SiFive clint, the compatible string > should be specific to that. e.g. "sifive,clint". That way it will be > possible to distinguish it from other implementations. > > What exactly is the "0" suffix for? Is that a version number? > > If that's a CPU index, then I don't think that's the right way to encode > this unless the programming interface actually differs across CPUs. It > would be better to use an explicit phandle to express the affinity. It isn't a cpu index, I suspect a version number. These show up in a lot of the early RISC-V DTs coming from the UCB/SiFive sphere. They've now spread everywhere unfortunately.