Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1014103imm; Wed, 8 Aug 2018 09:18:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPysUSjTposA6OBWe0ebya0koPMtoTD9jePvf7hN2/HNGFsbDxurviTcIoKMCvmAnv3q7KtK X-Received: by 2002:a17:902:bcc6:: with SMTP id o6-v6mr3197175pls.117.1533745086092; Wed, 08 Aug 2018 09:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533745086; cv=none; d=google.com; s=arc-20160816; b=pELBeGE+fAx039xNrA2R/Kt50aMWT05kvzlxhWKenAOZDWg3Vgi/CnGyqMYzX5WsXE 7/JgeLMNsjW2YDSxdJLrhXG9Lufo3wfmZOlsage0LXWSYRzvjfJRP4I7yeZxT42+Qp7f 6QPfY40fpkDjaaR3dQOBD8ugJbXDWOeNsZNwdzVEXHa6PZ57BQJ4HC3pbeTztajgAFWY h32Q0xAlXlLvdvkbSz5CnjpCgfRSyZLaXtqcrt8xioqN7QRrXYmW0OEjPCKrdRoF6wSu vGeNKVa5u3WZu+buyBEQ8TeCVJvR2V0BKdOatRIU4IpoSzvn9aWBZo7vuprVrhNeHG+J qS8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=NZGc9huTAeoPSdtpHUbcdjvypNFsPHJfU8slyoTtmyk=; b=k07va0Qj2OCF+mpJHmwa0NVgIsr4AmN9Fg8o8X5T7SjMMmPw8zjK1sI5BDfO9eqv7C PGOPzFtE8lgFE5WsbBAeU2ccHDG56yVT0C9FYEVTvbyuSw8UWmm7YUGKdNyFqwIu+/UH gVU0etjxpRfKfb15u//6S5dtlG0vq7ztx1rAW/akapy14UnyDnpHWlmOJOY1+0AqKc5g F7odHqy1ylbnHyrjUIcmLzVtSQNq9uso2zN7Fk9j8EPxAzv4upeMtAy+rukiyg2CvbHN Y7jUwuPD253PURGFHR5e4dmQUeqmh8bx2sTfjhK7uLfeTlB2fxFsu9EHqXEgQcaSwwmF 76Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qod0KQL7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7-v6si3911886pgc.650.2018.08.08.09.17.51; Wed, 08 Aug 2018 09:18:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=qod0KQL7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729707AbeHHSge (ORCPT + 99 others); Wed, 8 Aug 2018 14:36:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:44362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727165AbeHHSge (ORCPT ); Wed, 8 Aug 2018 14:36:34 -0400 Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3F6621A52; Wed, 8 Aug 2018 16:16:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533744971; bh=ZyEDCI4dacowTr5e9laR4cSic9IT5OKy4k/xuEXJScU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qod0KQL7ceK6d+Y9cC+8heVKSkJgunlh7Cv8WXnAWhhQID4r0MXUNHDKXsY8aijI3 Xt86kWwKVJ9+4XICB6H+beJ5YTk6r5PcJB9ioEEsAzoT9oypjcOCyZYfs+RPOB+XYw dH2RaL2G0T5JYxI6VFjZz7l1H5qWJr/mc4ubK++Y= Received: by mail-qk0-f178.google.com with SMTP id c126-v6so1893720qkd.7; Wed, 08 Aug 2018 09:16:10 -0700 (PDT) X-Gm-Message-State: AOUpUlHA0oi6uiZJwYNobfiXeIFt8UwnrESQTex+CBIuFcpw9SeEC6ol lsTGizkEx/U/KNXxvteYnw3k+ES0PKA97lgByQ== X-Received: by 2002:ae9:e817:: with SMTP id a23-v6mr3062536qkg.213.1533744969973; Wed, 08 Aug 2018 09:16:09 -0700 (PDT) MIME-Version: 1.0 References: <20180804082319.5711-1-hch@lst.de> <20180804082319.5711-7-hch@lst.de> <20180808150448.GA31785@lst.de> In-Reply-To: <20180808150448.GA31785@lst.de> From: Rob Herring Date: Wed, 8 Aug 2018 10:15:58 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 6/8] dt-bindings: interrupt-controller: RISC-V PLIC documentation To: Christoph Hellwig , Mark Rutland Cc: Thomas Gleixner , Palmer Dabbelt , Jason Cooper , Marc Zyngier , Anup Patel , atish.patra@wdc.com, devicetree@vger.kernel.org, Albert Ou , "linux-kernel@vger.kernel.org" , linux-riscv@lists.infradead.org, Stafford Horne , Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 8, 2018 at 8:59 AM Christoph Hellwig wrote: > > On Wed, Aug 08, 2018 at 08:29:50AM -0600, Rob Herring wrote: > > Version numbers on the individual patches would be nice... > > We've never done these in the subsystems I'm involved with. Too > much clutter in the subject lines for information that is easily > deductable. Unfortunately not in Gmail which doesn't thread properly. But patchwork also provides the version tag which I use to sort my reviews. > > > +Example: > > > + > > > + plic: interrupt-controller@c000000 { > > > + #address-cells = <0>; > > > + #interrupt-cells = <1>; > > > + compatible = "riscv,plic0"; > > > + interrupt-controller; > > > + interrupts-extended = < > > > + &cpu0-intc 11 > > > + &cpu1-intc 11 &cpu1-intc 9 > > > + &cpu2-intc 11 &cpu2-intc 9 > > > + &cpu3-intc 11 &cpu3-intc 9 > > > + &cpu4-intc 11 &cpu4-intc 9>; > > > > I'm confused why this is still here if you are dropping the cpu intc binding? > > We need some parent that identifies the core (hart in RISC-V terminology). > The way the code now works is that it just walks up the parent chain > until it finds a CPU node, so it either accepts the legacy intc node > inbetween, or it accepts the cpu node directly as the intc node is pointless. > > I guess for the documentation we should instead just point to the > "riscv" cpu nodes instead? That's not valid and dtc will tell you that. 'interrupts' (via interrupt-parent) or 'interrupts-extended' has to point to an 'interrupt-controller' node. I guess you could make the cpu nodes interrupt-controllers. That's a bit strange, but I can't think of a reason why that wouldn't work. Just because the cpu-intc is not made to be an irqchip in the kernel doesn't mean it can't still be represented as an interrupt-controller in DT. It shouldn't be designed just around how some OS happens to implement things. > > I also noticed the cpu binding refers to "riscv,cpu-intc" as well. > > That needs to be fixed too if there's a change. > > Only in the examples. I'd be fine with dropping them, but let's keep > that separate from the interrupt support. You need to sort out how this is all tied together and works because right now you are supporting 2 ways and one is undocumented and the other is invalid. Changing things later is only going to be more painful. Rob