Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2369708ybe; Tue, 3 Sep 2019 11:50:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNKvdL3CFFe/UP5q69ciqg+Hx1G/VfSnEjYFy5E4CUP3jGXGwJszRqdc0R3acMPcnyCtBq X-Received: by 2002:a17:902:b115:: with SMTP id q21mr17846950plr.241.1567536615541; Tue, 03 Sep 2019 11:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567536615; cv=none; d=google.com; s=arc-20160816; b=RBz7EXGcjjbPQoIMBJZHCFp6Slc5CeZQcb8r7ywamfkbfqsEzMPAdzJm/MAdDdORv9 wCz32euR7MzXSLX/iwBxVNMyWegBl+dO5Xxe/cu/k00H7k+ZEQ9HQKH2w4/zk5SICaB2 xAoEh1uHJG1Z0U3Wdu6yGJpoaH3ptA4IS0qWEeQQVyOQoxMKJ5W5fe/tbq4bMLAeo88p aPAtEywNiet3Tne/xoGqYpeZV5qHKjocmXPMjtgr6jsEmXvaP5wKak4j0/j+JI0za/80 M2jkj9QWh1T8UPsjQDWHKszFD5yE6bbIqT5Isup7jFgusZONUOZGAyDMyWNyrcaHdea/ EtjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date; bh=pVDfotd4+mwULNcYBfwZPb3QNstzNQ7Yt+TJQtciNHA=; b=FTjebAIYwA2JiykJawJQnfiAhiu1rTlYiPffCggC7K5dsZp6japA0IWJtSK4fZh8as SmpG2L9BIVveZvwHg+Uhv4WlVgNZUTjEloNmhGsoSlTu6QE4wBNmd2MKlZnB64YSoWuf ZMUEhKCk2AxPynqUI22wj0Folqo6SGSvEVCOSZqCjRuyJ+RUusATaKArHWcYsbDnJl0V KcKyApW5ksCSIGgTOIU3x1pY62xrcwmYjNpw+4B5Nbn2Y6m3h+OKwdcgt9BQuGtqDVME K0eUl6100QNo53njNdVCT7R6gjlntbJkTaoV+DPeTcXtI2Em++in1QJarRpHqlrOXFtb CZ3A== 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 i4si15493936pgj.558.2019.09.03.11.49.59; Tue, 03 Sep 2019 11:50:15 -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 S1726411AbfICSsy (ORCPT + 99 others); Tue, 3 Sep 2019 14:48:54 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:38313 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfICSsx (ORCPT ); Tue, 3 Sep 2019 14:48:53 -0400 Received: by mail-pl1-f196.google.com with SMTP id w11so8300382plp.5 for ; Tue, 03 Sep 2019 11:48:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=pVDfotd4+mwULNcYBfwZPb3QNstzNQ7Yt+TJQtciNHA=; b=MQEIeYFTUx+JIO0IAp6Z0e/o6ZuckATJYCqYrYVsPhNWxdwFVbbuYbtWf9ayJijgki BNsKl9kC74Q+z8mLmOQ5OxYDgjzWkcy4hyMUvkUtbiC4RRcbOhBMVqm8wd6x/oKlQHjs VD2nKSDwoCdq5Qc40TX+fF6svUjNBwmxxieP+3SfgNX+DTb3WJOGwC9nwt1grbg0mSiU ukQRnPTTj1AFOTDcymHuPaKeEfFAQxQAsGjVgReW8S2xpY1W1kyxNOA7/rLhl5v++iYJ LZvA1uGauNTVa6QDpjlrwkGbQtYgpfIWBtTzIBEskKNI6Urnw7T5GXOwoJ2iSN8FdfNZ YuuA== X-Gm-Message-State: APjAAAWHMJxsb8HXQ/oGLL07TzzEO9QHsSeiTZhmpPErFInSZIUKrPOw gQSf8LkUsLOw4JBT084QR84Jk8NsEr8= X-Received: by 2002:a17:902:b604:: with SMTP id b4mr4432102pls.94.1567536533041; Tue, 03 Sep 2019 11:48:53 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id r187sm11696625pfc.105.2019.09.03.11.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 11:48:52 -0700 (PDT) Date: Tue, 03 Sep 2019 11:48:52 -0700 (PDT) X-Google-Original-Date: Tue, 03 Sep 2019 11:48:19 PDT (-0700) Subject: Re: [PATCH 08/15] riscv: provide native clint access for M-mode In-Reply-To: <20190828061146.GA21670@lst.de> CC: Christoph Hellwig , mark.rutland@arm.com, Paul Walmsley , Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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.