Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp392657imm; Thu, 6 Sep 2018 04:17:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZOz/r5ZibjozzGe+19oLCQfA0H3qSBrHYFaMmgDvLqx4zKOMVNTI6XjD+LQTdUbWcW4PAQ X-Received: by 2002:a63:4606:: with SMTP id t6-v6mr2140318pga.271.1536232637201; Thu, 06 Sep 2018 04:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536232637; cv=none; d=google.com; s=arc-20160816; b=nU2JgXM830Tg8IWYlgxu3UZWywtcLPpsGG8nl/ptgfqQPeD+BDthlpPZ/830mQbQSq NyvnpENP508lLalrkmMrmJtgbgYOwNw0piAXEbIJnW1DsTufM8wO3EP/ZV9dbVlSXTVp CShuqpK6j7xNB2bRLs3zEqXE4PGkMp5vLbW1V2AEqceIN+Jok0i2NAFYwExTrHeTbZDg dLqkMr8JKjp5iXQwVtHErxmXn88Zxvmd3CXUMi72md8f8aRvV8cB8QpGBmovrlRQeFVT bwurt6nLwiK9dojbPLfHEciew2L3xeJNCBZP66Sdjq5q7WCHrPjXNufohvVN29iIp+re GS7w== 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=BqTeAkRMQmytqRPAe1z6pKoPYDWqrTtC8MO15hC2+6w=; b=kmkEyhPVRhsbuq8GoBLPGmFlKfXa7G7ChJ92FqMtjIwJQNyK8laazUgmr2mF/H42qa oGdMuO7nMkxaSy/gz1UDmZ9QwDCsmRwWHnzuqgXbdFD1MBcrf9Keofqb52Tfc9G2geJo 9C1z5G3iRVca7xn6k9YR+M7blF6Vjr8OyiP97tSDRNSlLgLiHztjSCstwVN3PFZZid6s Z10vZVofbK1Bj4vE1GO0+0kuxCosDrQFfFiOTpntddnuU6s+I67KiymjFp5fzDwdsag9 srHX1i+0Yr53WQo65qD66bi3IBY2LojecR5ztWiZbyJ4PWEMbFpPzg6IQiwR9Dq5xIwr DZAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=PwmTdHfc; 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 a27-v6si4985425pfh.164.2018.09.06.04.17.00; Thu, 06 Sep 2018 04:17:17 -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=PwmTdHfc; 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 S1727638AbeIFPUI (ORCPT + 99 others); Thu, 6 Sep 2018 11:20:08 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:32798 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725918AbeIFPUH (ORCPT ); Thu, 6 Sep 2018 11:20:07 -0400 Received: by mail-wr1-f68.google.com with SMTP id v90-v6so10903298wrc.0 for ; Thu, 06 Sep 2018 03:45:16 -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=BqTeAkRMQmytqRPAe1z6pKoPYDWqrTtC8MO15hC2+6w=; b=PwmTdHfcAElGaLMUMd26iLG5b2wRT4TFbPGpPT3i0Pq5F8GY3qeUTibIMstSYFwWD0 IuIkK89EChrElVh6EsxqMpKkWAjTjFSELmXALwN552ylg4V+uVyRfNwG3xdWwUL7oHgq bbGGrtD4LKfl+lCLpKsjhFxdOqIJ6FGSqH8Zhrwm68//PWDbI85Fva25RHFRWVdsy7Wl yQ4FqKq196QLAzcgLMs1niKwI/kkO+itrJSfj8YTC+QCAcTP4eRqMsi+d4UO9BkkOU3M n8QhobHVF1/udHM2Yw0vIE1OyuYiFMiJcWkKRWkVOtOUWXUi57g8YZItotazbYeVTE5F 8bZA== 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=BqTeAkRMQmytqRPAe1z6pKoPYDWqrTtC8MO15hC2+6w=; b=EPonFoCo4xeXga/mC4ROwnollaZXwo6V0vwUgOLHTdVOEaLyC8sJSQ9JoebcqBhzKM NsHY0QTZ0vLsv9c1LV3hfgXSX8vKb3ljshfqEYuxSe6ePnrYUAIOTVmtOUYoCRf2JHem iy6Ypalr4rhp7S5zg1eb4qJDXeWlXwpSi/74QHrae74P6Nq2tUZuUH7TVU4TSU8g9c6o o3U+x3zY/ZETTrMS7p/R0pINexdkfVIBI1bjFLHjpw7yNY5uk7zAEVm1W9lUAh+rdUy7 H6tpli7MywFcSNwR13xXOshH6WEnmsrOuzvyrO3fHYFmK8ZYO0cCCbsEsuHZunF6fhoV EyVQ== X-Gm-Message-State: APzg51DFxU3HeYHua7qg+SNwCQvYbtyYpsN9w75uXBDIbfSkHuUKaIZi s0cuqgst9J6NUamuRKUIQYA24emaTooXCXNHThwYzIEh X-Received: by 2002:adf:8167:: with SMTP id 94-v6mr1879471wrm.127.1536230715091; Thu, 06 Sep 2018 03:45:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:9dcb:0:0:0:0:0 with HTTP; Thu, 6 Sep 2018 03:45:14 -0700 (PDT) In-Reply-To: References: <20180904185001.GA25119@infradead.org> From: Anup Patel Date: Thu, 6 Sep 2018 16:15:14 +0530 Message-ID: Subject: Re: [RFC PATCH 1/5] RISC-V: Make IPI triggering flexible To: Palmer Dabbelt Cc: Christoph Hellwig , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Atish Patra , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" 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 Thu, Sep 6, 2018 at 3:15 PM, Palmer Dabbelt wrote: > On Tue, 04 Sep 2018 11:50:02 PDT (-0700), Christoph Hellwig wrote: >> >> On Tue, Sep 04, 2018 at 06:15:10PM +0530, Anup Patel wrote: >>> >>> The mechanism to trigger IPI is generally part of interrupt-controller >>> driver for various architectures. On RISC-V, we have an option to trigger >>> IPI using SBI or SOC vendor can implement RISC-V CPU where IPI will be >>> triggered using SOC interrupt-controller (e.g. custom PLIC). >> >> >> Which is exactly what we want to avoid, and should not make it easy. >> >> The last thing we need is non-standard whacky IPI mechanisms, and >> that is why we habe SBI calls for it. I think we should simply >> stat that if an RISC-V cpu design bypasse the SBI for no good reason >> we'll simply not support it. > > > I agree. Hiding this sort of stuff is the whole point of the SBI. > > Anup: do you have some concrete reason for trying to avoid the SBI? If it's > just to add non-standard interrupt controllers then I don't think that's a > sufficient reason, as you can just add support for whatever the non-standard > interrupt mechanism is in the SBI implementation -- that's what we're doing > with BBL's CLINT driver, though there's not a whole lot of wackiness there > so at least the SBI implementation is pretty small. > >> So NAK for this patch. > > > Certainly without a compelling reason, and even then I'd only want to take > some standard interrupt controller -- for example, the CLIC (or whatever the > result of the fast interrupts task group is called) could be a viable > option. Even with a standard interrupt controller, we'd need a really > compelling reason to do so. This patch is doing two things: 1. Allow IRQCHIP driver to provide IPI trigger mechanism 2. Have more generic IPI handler in arch/riscv so that IRQCHIP driver can call it The main intention behind point1 was to allow interrupt-controller specific IPI triggering mechanism. I am totally fine in dropping changes related to point1. May be we can revisit this if we find compelling use-case. I will revise this patch to have changes related to point2 only. These changes are required for the new RISCV local interrupt controller driver introduced by this patchset. Regards, Anup