Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp418361ybl; Tue, 27 Aug 2019 23:14:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwL4IdH/ecYWwXoAu6u8SVq114Zpucn2z1kkRUSJ3kl0nZXwUS9jdz6nq9fcQOuZxdvIHf8 X-Received: by 2002:a17:90a:e28a:: with SMTP id d10mr2586852pjz.107.1566972852727; Tue, 27 Aug 2019 23:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566972852; cv=none; d=google.com; s=arc-20160816; b=VJlfLdJtbyxVg+P3kVPwtKZzxfygHDlEv+p8gReVZ7/CUBsNxjGDaW4DP/qVb0PEh+ 9idSf2PJ9gorpvdo0lyu+7osmaajFoz1n9hDRJvMtY0//TirAd2YnAfxvDjWVlsXAz4J Z9IddtuAa05Ip8UxmNFIst8RCwRuC6JJW4OvPA4kw0Q9Qp4vaanWDWrr7EhHEJVUiRRW aDEfkmnLoIu4cgeftgG0RHm9fvLef5MQDUPe1HUG1oP2s7GyA2svOoQtW1SrgeOOFSpx qoCkfxSl4NQoNEwUr9N710gDDC19vO4V8yi5FAfXeFrDXxqJCuRuzKu7WWDEeBCZ8CgY Z7gQ== 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=P85TIbUSoIxMvZobwGFZ94aRGDHf7V6VDvzRc0rI01c=; b=oXLXIi+lWfLrXz6MeOdOn8UdM16YmYwZcf2IgWYnT9McqYrMJPgxovMj6FOIPm4tEl EH+jJC2PK/QjvSCyTFe1LFtG6whLuaGkn+VoIDkMAIPsSHHdePg/E52iO8390sFEgASE HknWlAF4YLkGtu/6uYh4xRbwpXVWkGpeNmKyQyZSI848r/lfIVXftwcIcKIzfxDO7+ew yYlguAvYpN01c4aECOt1uq7Gy7Qb0X//LZnzioErzTUCu8t6mW3FKwPJuYC/OJaPJe2s 3qhQ+91MQGv6GbD2W7AGrDEqginhKpCN83urCbI/m9i4HMSlniaDVBKbFdPttZ0ZbHVi bbPA== 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 u10si1083911pls.385.2019.08.27.23.13.57; Tue, 27 Aug 2019 23:14:12 -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 S1726400AbfH1GLu (ORCPT + 99 others); Wed, 28 Aug 2019 02:11:50 -0400 Received: from verein.lst.de ([213.95.11.211]:34559 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726052AbfH1GLt (ORCPT ); Wed, 28 Aug 2019 02:11:49 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id D25A168AFE; Wed, 28 Aug 2019 08:11:46 +0200 (CEST) Date: Wed, 28 Aug 2019 08:11:46 +0200 From: Christoph Hellwig To: Palmer Dabbelt Cc: Christoph Hellwig , mark.rutland@arm.com, 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: <20190828061146.GA21670@lst.de> References: <20190819101648.GA29645@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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.