Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3016007imm; Mon, 10 Sep 2018 09:41:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYOKYKBfSpPYPus2lYTWNz6c6bBxJ4ilyZvTzOGMP5AeXifJDxljznhanAEVzo12re9NGXn X-Received: by 2002:a62:d1b:: with SMTP id v27-v6mr24211118pfi.87.1536597661119; Mon, 10 Sep 2018 09:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536597661; cv=none; d=google.com; s=arc-20160816; b=XR0MGc8bgz5//bpSOgkm3v80N7M78h6Y4cw+cvSUPooe9LLef/fkNACkLS6h1SqugY 6emjD1aSLQrsvMiKEfCuHSOuKtWUZ8DgMoWnnh9PCLEg+HVQbHPwHsebW8V/xOFIpsAe upU4mxIngQrkxi0wBoe1B+SbXhko5e9o49WMQYQnFH/xBflrWnMLcNoVOEKydGSyA5e+ yK1J2oD6LP2Mgu8zSyhA3lMIAA4WZjO5GlicG24CEieTNG66JOIt/nodO08tEP3O1VyK Ebt303BZFTUkBmU7AIGzIFwHw7j8uTaEG83NvXY5+6XcRvg0iL6UPbWxD4m6LC8GOJqU DLFA== 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=eT67aDDJX41BI/4OE8SPSYWviBYvqnHeXdNuaYmyZ1U=; b=E1Mjd4JXolKUoZAG6syW1gXanYs0ChNuRoyy9TIooPTWQcCl1fJTuI1tXsihV5PE4I B52Fv64lp82B6IrxGDkt3jVg/c2a9H14TlB2PSpr2k7CFc9nTxFJmoC9WqSQozPCPx5L GspmQoOKvNJ3ct1VW53zBp1hkoSZqlZbi6BMsUAmCpRUvY87b5d7SUv5vNI3Q8eng9ns 2k0Lx03mLCAO4XIHBR5FJOMZcCj+J1O94xpUuZ7HlrKGKDRz/wIu9XsCOVmsPQ4kZmV2 /6cP7ApE5GMS3yNWqxrBG87ay9Tn3IvEVIbc/SQaI4NUDE2sDjyYhS0IHjNOtCWAQLTO O5qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=QWNUzYxQ; 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 g6-v6si16061677pgq.240.2018.09.10.09.40.45; Mon, 10 Sep 2018 09:41:01 -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=QWNUzYxQ; 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 S1728714AbeIJVdz (ORCPT + 99 others); Mon, 10 Sep 2018 17:33:55 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44340 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727810AbeIJVdz (ORCPT ); Mon, 10 Sep 2018 17:33:55 -0400 Received: by mail-wr1-f65.google.com with SMTP id v16-v6so22632816wro.11 for ; Mon, 10 Sep 2018 09:38:59 -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=eT67aDDJX41BI/4OE8SPSYWviBYvqnHeXdNuaYmyZ1U=; b=QWNUzYxQ3z30rXNqI/j5w5dZry0roe5YdO6CFiT9qLdjN9YOTw6NyzdkA74L7E0Lpt Y+eyBDYG70Y6FtvU9tLNp59X4DIAtOfhH4HXAogiyAQIoPfGb4MXQlIrD1wyWhv5FvKY 8meEZ4bbAV2ScuXekIyBE0UmG3UqTDx0dFGD8HZ01vXmKo+jAVaeQT3EwZDSSLL81dWD gGU94bt5L5lj3ReF4WhUGHypza/RFSeK0iTBYla04A25Ey4VEzC4Zt80YYzKtTGAmvjU Wzsl6rCaeC3xCzQa4kz2ENZaR+j5qy1S+NgrhygdO+AuLDuom9qt3FA1SyT6FvP77/8w X2qw== 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=eT67aDDJX41BI/4OE8SPSYWviBYvqnHeXdNuaYmyZ1U=; b=oY2e7Q/LvMkj24RgRmEK8NDcpM/TiCa4WbLIIzKil5ojp80Md0PMrECnLj85YSnidb 1fJI/SanbEMJm7hSr7/57R4bPMIKuPI/CRyn24UdIICRtfvg+Q7qQZSdNEoXnEaRGuo2 7YLyyWxfUtH38ZCgjWZCVnom9dlTWB9utN1jg0n99oz/0QEjCBWO5LOzWf0ZHHWvgmFW DgMopYQdiSgevg8F965L25cX11noy+iV0kdj6xXZQtZeo3abNumuGg+ZGAYgmcqv3qrq 58KHEtwxLKqsD9qZ9atlfTvLb1CmVraNRGjK/lv0dNpKk6FWJuQ/37R+Vmx+3HqZX2lG rfew== X-Gm-Message-State: APzg51Dd4u/4PMCCxPBO+9fmsQ633L6Nr60asmEWU+16lfK+PIYZlzsM hXzTfJPwyN9zM7Ph9fMUlSWpIwX67LxeMMZ8/c318A== X-Received: by 2002:adf:c554:: with SMTP id s20-v6mr15056980wrf.46.1536597539091; Mon, 10 Sep 2018 09:38:59 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:9dcb:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 09:38:58 -0700 (PDT) In-Reply-To: <20180910163543.GA13052@infradead.org> References: <20180910132924.GA6987@infradead.org> <20180910133902.GB21593@infradead.org> <20180910134915.GB30774@infradead.org> <20180910161328.GA13171@infradead.org> <20180910163543.GA13052@infradead.org> From: Anup Patel Date: Mon, 10 Sep 2018 22:08:58 +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:05 PM, Christoph Hellwig wrote: > On Mon, Sep 10, 2018 at 10:02:09PM +0530, Anup Patel wrote: >> You are thinking very much in-context of SiFive CPUs only. > > No. I think in terms of the RISC-V spec. I could care less about > SiFive to be honest. > >> Lot of SOC vendors are trying to come-up with their own CPUs >> and RISC-V spec does not restrict the use of local interrupts. > > Yes, it does. > >> The mie/mip/sie/sip/uie/uip are all machine word size so on >> riscv64 we can theoretically have maximum 64 local interrupts. > > They could in theory IFF someone actually get the use case through > the riscv privileged spec working group. Their is no point in having each and every possible local interrupts defined by RISC-V spec because some of these will be CPU implementation specific in which case these local interrupts will be described in platform specific DT passed to Linux. Regards, Anup