From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3325AC4646D for ; Wed, 8 Aug 2018 16:52:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DBB5321A32 for ; Wed, 8 Aug 2018 16:52:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DBB5321A32 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728283AbeHHTMb (ORCPT ); Wed, 8 Aug 2018 15:12:31 -0400 Received: from verein.lst.de ([213.95.11.211]:38902 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727347AbeHHTMb (ORCPT ); Wed, 8 Aug 2018 15:12:31 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 8101868D60; Wed, 8 Aug 2018 18:57:29 +0200 (CEST) Date: Wed, 8 Aug 2018 18:57:29 +0200 From: Christoph Hellwig To: Marc Zyngier Cc: Christoph Hellwig , Rob Herring , Palmer Dabbelt , atish.patra@wdc.com, Thomas Gleixner , Jason Cooper , Mark Rutland , devicetree@vger.kernel.org, Albert Ou , Anup Patel , "linux-kernel@vger.kernel.org" , linux-riscv@lists.infradead.org, Stafford Horne Subject: Re: [PATCH 03/11] dt-bindings: interrupt-controller: RISC-V PLIC documentation Message-ID: <20180808165729.GA6079@lst.de> References: <20180808150938.GA32274@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 Wed, Aug 08, 2018 at 05:47:40PM +0100, Marc Zyngier wrote: > The original GIC driver deals with 2.5 revisions of the architecture > (yes, there was something pre-GICv1...), and implementers have been > creative to the extreme. Still, we could have done without most of these > compat strings. Hindsight and all that jazz. > > GICv3 is a much more controlled architecture, and although people have > come up with a number of turds masquerading as implementations, it has > never been bad enough to mandate a different set of compat strings. > Also, you cannot describe that kind of stuff in ACPI, and we need to > support both, so we've come up with different ways of handling this. So the claim from SiFive is that all their current plic blocks are the same. Based on that I'd be really tempted to just match for sifive,plic (or sifive,plic1 as suggested by them), but also require each device to actually provide a board specific compatible string, just in case that something goes wrong. Which I suspect is what you are doing with GICv3, right?