Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2784080pxb; Sun, 29 Aug 2021 03:35:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZxWwyr1d0aWE89+913mQeBXcO+Bp9saMwUDs7QL9chvQZGPX5l2grClWj85LpQh9a1VZ0 X-Received: by 2002:a05:6e02:1d08:: with SMTP id i8mr12946016ila.185.1630233333515; Sun, 29 Aug 2021 03:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630233333; cv=none; d=google.com; s=arc-20160816; b=AKW1jncJYB0r1Vvc+xZbLVFKb5ZF0gm20ITNj60UKJifcViMPh6It03Gx/mNn3i7er 7gYd7cuknQ+/JrlBQsnqmhyzCllHOdx1F4zcf7cf274whtSN7Ucickw2EYnIEfv/hw8z fFywnHwNzxzytT0RXHT/qYjDYG//0pZj7FLbiz6JLH4B9VLh6IeupuFgy8WQ+lCV6iCj h35VPV428JEbCdNb8JJOYdFWgfR4svGzjb9j9oYERQtdG9fY43PVBSi2UsTb9fulW4o8 DY0NziGGbFWWR33pKGoPyeVXN+FuRUCGRC6GSJmVYNoidTDZKPyErURBHArB63/p86Tn jM6g== 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=cFa0z+8tZXoXVohz3bA4teT10uueXUcgoj4/QykJ7Dg=; b=g1M680CcGRi8QuXSbBRiamv80JEZzNtRMSYrpPjD2se35ItNm8hlgbwdMqsZ677o2o ZDO4TeLNag77N5aqSDlyWyfeGw9VzrBoFqnwIU9xJwrMqsyab+jxaofmYMWpHd17BKPb Ndh9SDmsKCdZ9TSlbOjKsfLZOD5VcTrrc6xROTVEhrURPX6thVwhn16b+TrHlGrT9tnS WU5rUoD9QDDRG3k3gHLiUztep5btHbwjWsN5FiTU7YHXaE8bELbP4Uh1XvF/p78nu5yV yw4OS3rXtQyfYie0TmRMslHZXD7BqDd+hQIWEvSbkmnaygRHnzaWBMtM/69H7mwYeVnt cyZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tDNKhmtz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si11353896ile.120.2021.08.29.03.35.19; Sun, 29 Aug 2021 03:35:33 -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=@gmail.com header.s=20161025 header.b=tDNKhmtz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235011AbhH2KfZ (ORCPT + 99 others); Sun, 29 Aug 2021 06:35:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233920AbhH2KfZ (ORCPT ); Sun, 29 Aug 2021 06:35:25 -0400 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78DFDC061575 for ; Sun, 29 Aug 2021 03:34:33 -0700 (PDT) Received: by mail-vs1-xe2e.google.com with SMTP id k24so8208967vsg.9 for ; Sun, 29 Aug 2021 03:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cFa0z+8tZXoXVohz3bA4teT10uueXUcgoj4/QykJ7Dg=; b=tDNKhmtz2UihxgLgra36E4OtwVK/2Cvka4Oa5mN0sWEWxmm9ebnp/P0NXMk/STNL4t +ZOi/VjH0zYVxeqPUM2mK/1pxs4VHMhfndGq5oGlOEgcVJ9yo3X46mP6GYyKMQcWDxGV Db7/S7aIA9rQygT+jrUN+guBju81SB1PagRRPVlBq8bhw/KajEE/rEL7I0nVaYRYiJhz QaDquBKKsiJhwJQ+jPrBdeiLH0zpJ+Em7xS7alDrgZircHIBxeN9Fr/+7CMhnJzIaEFj TvLBo/Og/mTUMFrTfkVScvlWvJGqWbfuBJXBGnkbLIxj2gc9VXp6Cwjec33vknYBArXL mBRw== 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=cFa0z+8tZXoXVohz3bA4teT10uueXUcgoj4/QykJ7Dg=; b=XEzAiFZcOVZ39E1DrAGZWSkk3dO5+SR6VW6fnVLzqOowxwdx8htB8lNhXgV0erMhMl z1dIBbvkaN5sZHeDznmLCKiOKpWQbsY+VqmYk5VTf8w4D95LFgVtmbUO86igEOdmYJiO B9o01A+7zfGZyVGqFeR8WuVYxP04YHXG38U0oMrJRQ+HZXfJrDcevnZnQ1gjeAl6vrRo PC+DxzGas2UMc9WiGRZUR2whx4n5Ttt5po9r7CpebVSmLAfZVM+PPVmRm+wyQ1/oYCYn 37MPQAJDfbfMLLxtIuWtxWayusD8pYfWxTEdizVr+ltn+LHJCBsMun5dc+kjpLmSL7iB MzTA== X-Gm-Message-State: AOAM53350AaEbZkNS1Hw7mT2mPNjm4IL+SEtj5+PuDo6mL5x9FRsz/QE xZTo6gm0LPxnKCWmWGyYrLV5himaRB1EqV/og4Q= X-Received: by 2002:a67:f510:: with SMTP id u16mr12392210vsn.60.1630233272549; Sun, 29 Aug 2021 03:34:32 -0700 (PDT) MIME-Version: 1.0 References: <20210825061152.3396398-1-chenhuacai@loongson.cn> <20210825061152.3396398-9-chenhuacai@loongson.cn> <87pmu1q5ms.wl-maz@kernel.org> <87v93pddzu.wl-maz@kernel.org> <87tuj8d0ie.wl-maz@kernel.org> In-Reply-To: <87tuj8d0ie.wl-maz@kernel.org> From: Huacai Chen Date: Sun, 29 Aug 2021 18:34:21 +0800 Message-ID: Subject: Re: [PATCH V3 08/10] irqchip: Add LoongArch CPU interrupt controller support To: Marc Zyngier Cc: Huacai Chen , Thomas Gleixner , LKML , Xuefeng Li , Jiaxun Yang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Marc, On Sun, Aug 29, 2021 at 6:10 PM Marc Zyngier wrote: > > On Sun, 29 Aug 2021 10:37:48 +0100, > Huacai Chen wrote: > > > > Are you saying that there is no way for the interrupt controller > > > driver to figure out the hwirq number on its own? That would seem > > > pretty odd (even the MIPS GIC has that). Worse case, you can provide > > > an arch-specific helper that exposes the current hwirq based on the > > > vector that triggered. > > We can get the hwirq number by reading CSR.ESTAT register, but in this > > way "vectored interrupts" is meaningless. > > Let's face it, the way you use vectored interrupts makes zero sense > already. The whole point of vectored interrupts is that the CPU can > branch to the handler directly, making the interrupt handling cheaper > as there should be no additional decoding and you can run the final > handler immediately. Here, all your interrupts point to the same > "default handler"... The default handler can be overridden by arch code. Huacai > > What do vectored interrupts bring? "Absolutely Nothing! (say it again!)" > > M. > > -- > Without deviation from the norm, progress is not possible.