Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2743602pxj; Mon, 14 Jun 2021 06:16:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzj5tx/R2gSKt08hU9K5Q4R8HWqVjmnE5yRh9lWaW6R592auyROHlwK9xYtZypBiqDTu+ta X-Received: by 2002:a17:906:8aa7:: with SMTP id mu39mr6524799ejc.400.1623676581355; Mon, 14 Jun 2021 06:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623676581; cv=none; d=google.com; s=arc-20160816; b=CxOXJtbj7fbwrGdLX6BANi3W9hXbngl/xDDj3HmGmdv5SoNXAlqS7/9hh5sF/g1n8D +lwa/p5PDQj8xhOUhe4UTdDV1UDhRsfsnf0s+gKWi9eAlzBP57Ds7ymeU6Hcc7ApxIX5 vygbOwpqT8xh1d7cLx90qjn4vtrBZOwllmyrAh1AGGSPToRsweTK8kI4AdctQGJE0l5L cmPq+9N0nA7D8Pp6NWhsjS9sHIYBWuK/NM+fecH9VY6jqBijMhbYgxMDKXfToZsx5uH4 TgKfqUDbOR+wwbLo1k4aTeJlnIvapphYC4Kc5ei7DH2G1ijkJeAwfhhxa6D/5QTGR9l0 YzhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XaqFjDhdi9dIScXFDsKNQBeWGz1HwBH0TF+QCGhEDg4=; b=VHA7nqxaQhMLypum3IQV327kEAPF3i/VyuvHhoasoUo+Lvx863laduV9NARUzv9cYN KLADvyGWg6AxlkxK1+K+CxqnUkBu6hjPdfmY1AHH6tncfZJdBSUupbC41+ILZH1rfOIC zPINBWddi43OujTH593bXFIGgxh1GDeImu7fMpexnHKXh6qkiyToTd1folhqmeY3Lkm7 60ZvAhImObDxy3o1/tXPRcZPewIpcCMt94/M6oPpMGahmv2zpkmmLWGIoLkf8nwYzYaD 4hSABcGCBlvDer3iJGDaI+lf0pcu+PcIgM4mHeEhH6rjC6m9AVR/+CnoXEH1aCkwvYCu G5WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=HwYvbf7w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si11481579ejo.252.2021.06.14.06.15.58; Mon, 14 Jun 2021 06:16:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=HwYvbf7w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233218AbhFNNQ4 (ORCPT + 99 others); Mon, 14 Jun 2021 09:16:56 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:36465 "EHLO mail-wr1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbhFNNQz (ORCPT ); Mon, 14 Jun 2021 09:16:55 -0400 Received: by mail-wr1-f45.google.com with SMTP id n7so8342025wri.3 for ; Mon, 14 Jun 2021 06:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XaqFjDhdi9dIScXFDsKNQBeWGz1HwBH0TF+QCGhEDg4=; b=HwYvbf7w8uywUzYEqLUcnCZiAoF1NoeXpwx56KYax2Bqehbxafzv0waHhZPevrg34z nMVIV1K2SC/msQ0BkfdJVwOnqO7JGAR3knwH8dySAyCL6llJHF/ZBeBexlWz9Rj1w6ME /qsPwb9mSuOs1YXOWxV6d8fSl67TpC0S6DAu1duEPhbxAYsXpUCUufv180Y56LA+2UA2 7I28bWDD3lZPoygb9Mue5oUHuN2FeGyqZyD+Vg3QeMdAYFkhGqQ0om3jqjWlhXIcRStK cmxS9cTwwQWja5rRwcthhKqHsu/h3SifiTTuP5aWrznboqD4461X5ez91LokOV7+f/vd X/tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XaqFjDhdi9dIScXFDsKNQBeWGz1HwBH0TF+QCGhEDg4=; b=lxBBKWwSZYN6R88cvYx7yw0xMa/LuK6o5aap9Mm7tsYizaLnnA9Z7SEj0UnMdK4nFz +AXaflQq1Lrd6R34tfzdIn5lbnRJoe8YVfU/a4ZXe0AzuH0NvKno6iTjKslE5ocG66lm FmpoB4KIAoaZ5rsI5wOxN6iPiO4oiU/Avd4zJifPo0MevVED9Q7Fw7CjOTwUgiWvrYCn cva1O146MGO79cZIZsMFf1hj5Nb1lVZ6kmt7dooQP45Jl/SJZKSpDfcYZWqOFfZddJDC VROOWfaq/EVyAlGiAKDUQUJPSItUWDfPrpffiCHjYjxl4Lubf7x33ftXQbkPHJ9PC8Z7 lpPA== X-Gm-Message-State: AOAM533XR3/xaBJCebFBlPcauKwTt0IPeQa0CSscGHT+TeJ3LgtvzJVJ ZyUQEHft4J3gfuaxzqLDOFoc4G0wk6ezuJ1ZhKhuHA== X-Received: by 2002:a5d:6b81:: with SMTP id n1mr18528505wrx.144.1623676416729; Mon, 14 Jun 2021 06:13:36 -0700 (PDT) MIME-Version: 1.0 References: <20210612160422.330705-1-anup.patel@wdc.com> <20210612160422.330705-6-anup.patel@wdc.com> <878s3et831.wl-maz@kernel.org> <87a6nsrdkm.wl-maz@kernel.org> In-Reply-To: <87a6nsrdkm.wl-maz@kernel.org> From: Anup Patel Date: Mon, 14 Jun 2021 18:43:25 +0530 Message-ID: Subject: Re: [RFC PATCH v1 05/10] irqchip: Add ACLINT software interrupt driver To: Marc Zyngier Cc: Anup Patel , Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Daniel Lezcano , Rob Herring , Atish Patra , Alistair Francis , linux-riscv , "linux-kernel@vger.kernel.org List" , DTML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 14, 2021 at 3:08 PM Marc Zyngier wrote: > > On Sun, 13 Jun 2021 13:25:40 +0100, > Anup Patel wrote: > > > > On Sun, Jun 13, 2021 at 3:11 PM Marc Zyngier wrote: > > > > > > I'm sorry, but this really isn't an irqchip driver. This is a piece of > > > arch-specific code that uses *none* of the irq subsystem abstractions > > > apart from the IRQCHIP_DECLARE() macro. > > > > Yes, I was not sure we can call it IRQCHIP hence the RFC PATCH. > > > > Both ACLINT MSWI and SSWI are special devices providing only IPI > > support so I will re-think how to fit this. > > It depends on how you think of IPIs in your architecture. > > arm64 (and even now 32bit) have been moved to a mode where IPIs are > normal interrupts, as it helps with other things such as our pseudo > NMIs, and reduces code duplication. MIPS has done the same for a long > time (they don't have dedicated HW for that). RISC-V is also moving in a similar direction with the RISC-V advanced interrupt architecture (AIA) specification which aims at defining an interrupt controller having MSI support, virtualization support and scalable for a large number of CPUs. The RISC-V AIA treats IPIs as normal interrupts. The RISC-V ACLINT based IPI support is for RISC-V systems which only need a simple interrupt controller without MSI support and virtualization support. These systems will not implement RISC-V AIA. Regards, Anup > > M. > > -- > Without deviation from the norm, progress is not possible.