Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3050311imm; Mon, 10 Sep 2018 10:12:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbRFR7RMc6xFUi8Vga/nLnbdZYKhhmOvoR5euq7I9HUPNdHmhgZTVc7bZvymagp1EmDXIjT X-Received: by 2002:a17:902:b784:: with SMTP id e4-v6mr23168724pls.204.1536599526798; Mon, 10 Sep 2018 10:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536599526; cv=none; d=google.com; s=arc-20160816; b=rfj/NTO/hcUxeuy4SAosafXCRj5cw9EP+LDyR3DTC4wYtlBTIUDIXJh4JqJH5SAtPB liJ8/+04BOdoun2JVTQ2FYB6QufC7P2bvOhRGmCpBBgBqbdoyn1c092/xB2I3yF6uQTa 4Ghfg/G8OENMFTUPkoG0KuFLBfkGJZgS7rdvwLTLhzH5wiCcJejxS5lStUrvUSCCGpnz ywvtFo1amFxR5SegcKKnsmSj1iLl41eVX3cui0v8GJpL0oPCd12UsmyNeeSfoTi3hM+O ftgMoxq7V6eMq8rzUCDPUC4yoTK+Kbd2aDIW5xSb7GQvouIOP7dZJ2TfhiFyDCaz90Ah zuGg== 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 :references:in-reply-to:mime-version:dkim-signature; bh=vaMQR0dRmZEQ+ju6zEMmH7ubkKV3XafxDe1F0Ae3TdI=; b=rR1aL3r7mHG48bCQ+oGNiGAMAODExL1wbFK1f7yefUWa22Dh5Li4+8a+hB2rAgyrd8 LMVl3XCwD4gfZcg3621bKsi2YI0oXcpAO3mW1y+GR/LDK/LQFO8ehgJt/7IPRacq2vex kA3kfjdSPMJiTcaMMiInA8eOTpXJAsQNnikHVqq2lE+dxzmWuxr1ZS2iJdISe7d3kk1o VN4iOa2ocNiwyvyeZxSbXyzwekf63j+GflFSWhd2Q6gCc4MbaMyCfpobgJRelDTKiUx7 GoScA+rLIvABujhBl+9AsxkZuQgF2VYEqTtm2j790RhqfuWZ7jx6QWNkfzjjBt7w4kvr omZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=rUd33oBW; 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 z71-v6si17299238pff.223.2018.09.10.10.11.39; Mon, 10 Sep 2018 10:12: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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=rUd33oBW; 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 S1728007AbeIJWG2 (ORCPT + 99 others); Mon, 10 Sep 2018 18:06:28 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40873 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727031AbeIJWG2 (ORCPT ); Mon, 10 Sep 2018 18:06:28 -0400 Received: by mail-wr1-f67.google.com with SMTP id n2-v6so22771882wrw.7 for ; Mon, 10 Sep 2018 10:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vaMQR0dRmZEQ+ju6zEMmH7ubkKV3XafxDe1F0Ae3TdI=; b=rUd33oBWWPGiHnMsYGk402Dav0s1oopmGRXNjCAB4jBEhO8FKBABSgQtLb9g0nLwxG cahtdx7WVmsFaqPmL3Dm7WI0lSS8gGhs/SpfEtWCI7sQyd50gK69gIBwnCnYaOORusb3 j0nbeWQKCrSkkpoYqLMkhlDhi48jk6xFBdvyMnpZoD9jpKEexCrsK2aJ5gAYaBmalnZf CWWeM23mHE8NpVUn2SNbW3cCA5perEDIZVV3RIkwRYLjAJOK19EBTdSW098VujIzx8J6 joJQxspap3FUQ4EaXn0uasjhXkvHeuOL50s3SONzgfrHRticDuYLLp6oii7VHYEnueq8 RHUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vaMQR0dRmZEQ+ju6zEMmH7ubkKV3XafxDe1F0Ae3TdI=; b=kw+d1XkXCQGfkE1K6lxcUMmd8CWz4fCnCoa3jQjuz9YpGjWWbN9v4lNpp/uau7glyV y1mvUSyuOeiGHnLAHVFVYTiua17My90FVWvJdDJ98ZLLG6lOXWSoRuppCKKA0RCjLxnB QN3k20mJQEhASMlKgSGWnlSz02hLZa44kcCg/PJDwgZDKcTvMkxzlw2j1fcZNPyzl9WC 0Ln2jZ+UNxShXJOjECEIpvYKMkKoZpGUgqUtXQICfXosllyIpgozHNQGiwLjw/xMUT9Y 4Sshq7V6qZ8g7sjyokhkdegfO7yEoj1W7q4HXBDHij3PB/00X0tXoGxPZl9DNxpUznOA APqg== X-Gm-Message-State: APzg51CcjrO5wb/N93c8E2pO165wEEOhSZgM6ii1vpObrHrjZgb5Etls YMn7wl3sfTlxhPcjkXisMo3t7r+ASbNlkCBqgvX6yQ== X-Received: by 2002:adf:c554:: with SMTP id s20-v6mr15151351wrf.46.1536599483636; Mon, 10 Sep 2018 10:11:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:9dcb:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 10:11:22 -0700 (PDT) In-Reply-To: <20180910163936.GA18699@infradead.org> References: <20180910132924.GA6987@infradead.org> <20180910133902.GB21593@infradead.org> <20180910134915.GB30774@infradead.org> <20180910161143.GA1053@infradead.org> <20180910163936.GA18699@infradead.org> From: Anup Patel Date: Mon, 10 Sep 2018 22:41:22 +0530 Message-ID: Subject: Re: [PATCH v2 3/5] irqchip: RISC-V Local Interrupt Controller Driver To: Christoph Hellwig Cc: Thomas Gleixner , Daniel Lezcano , Jason Cooper , Marc Zyngier , Palmer Dabbelt , "linux-kernel@vger.kernel.org List" , Atish Patra , Albert Ou , Palmer Dabbelt , linux-riscv@lists.infradead.org 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 Mon, Sep 10, 2018 at 10:09 PM, Christoph Hellwig wrote: > On Mon, Sep 10, 2018 at 10:05:42PM +0530, Anup Patel wrote: >> I am quite sure RISC-V spec does not restrict the use of other >> local interrupts. Different CPU implementations can have their >> own local interrupts. > > Please take a look at sections 3.1.14 and 4.1.1 of the RISC-V privileged > spec 1.10. RISC-V priv spec 1.10 defines the 9 bits in MIE and MIP registers and other bits are reserved. The unused bits in MIP are WIRI (reserved write ignored and read ignored) and unused bits in MIE are WPRI (reserved write preserve values and read ignored). The RISC-V priv spec 1.10 does not tell that unused reserved bits in MIE/MIP cannot be used for: 1. CPU implementation specific local interrupts 2. Per-CPU device interrupts. The RISC-V priv spec 1.10 tries to only describe MIE/MIP bits which are mandatory on any RISC-V 1.10 compliant CPU but it possible to used other reserved bits for implementation specific local interrupts. Regards, Anup