Received: by 10.223.148.5 with SMTP id 5csp7722743wrq; Thu, 18 Jan 2018 08:44:27 -0800 (PST) X-Google-Smtp-Source: ACJfBovzddzzw2HEwX6xoYu67kzvYtMFf5Kr5LSJE7Gc/L3rsbc3NTOIFlahYrqLjUC7zN6LIab0 X-Received: by 10.101.90.129 with SMTP id c1mr37859177pgt.209.1516293867792; Thu, 18 Jan 2018 08:44:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516293867; cv=none; d=google.com; s=arc-20160816; b=HmUGaDONuitJjSDGIlcqV/8V55XmWxEeAkmtGowOm6oCo31K6rgh3iOUjlU9l3vBx3 KGQ1L5E3celFyGVtbmILrfGtTzlVLA8kKlpN9PkOFSOHdijeGK7ePrt5MN0uHxHxdRRz 8UdGLb2nOZiTNEpI4H12C2rZ2Oa1KlYBVzfex8DVg/WrkfG+D8+2UJYRMAyWCfRU9RWq vd957yy9xjHibCjVMd/uDEKiXEQKHduCx6C71DFNybI7D2EeIMgu2UN/e4/6CrnMs0TC kwe5Cm9cclARNau3E8TLi3OxXKsgzzEIR7ThRu1qWUs7YscMIqKwRVHajRYx3495k9XW rgrg== 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 :arc-authentication-results; bh=vrSK6HcJ4zEHvfquNhYXb8POp3mSZAOCiN7DiWVUBts=; b=m4EpI2lSaXHcl9em1p7dxdsIBtuD/8fCukp00C5xeoh49hqK6gvk7FhK8Bvj8yOx2+ BMWDAfU9N6OOIYcxHUCmYyBIIf6SaqE2/zNylCnNLRU1c2yiQDxT/nkqG5WQE1a/9EoU Pg4dy00eTJ0aQYm6Ml+SwCBfAhK1ZxwB46shSKk/bf54GCdzT+2HaN5Cwlv7fkypvxSW lkx44kMmTFpbdjV7lPxRp6xRJSC9+xKqQmBZ5ry0fZNMXCzE21nD1WoUV2DqMMxAEKKR jkS3MYHQ7UxYzlCkv3l9SE8ScOsCkbSsCYfvlJJhRu3g/7YFOZWzqU/XRQ/wxgLrm4n0 oWhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Tqdyfg/w; 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 o23-v6si13870pll.552.2018.01.18.08.44.13; Thu, 18 Jan 2018 08:44:27 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=Tqdyfg/w; 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 S932473AbeARQnr (ORCPT + 99 others); Thu, 18 Jan 2018 11:43:47 -0500 Received: from mail-ot0-f176.google.com ([74.125.82.176]:46042 "EHLO mail-ot0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932169AbeARQnq (ORCPT ); Thu, 18 Jan 2018 11:43:46 -0500 Received: by mail-ot0-f176.google.com with SMTP id r4so16799709oti.12 for ; Thu, 18 Jan 2018 08:43:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=vrSK6HcJ4zEHvfquNhYXb8POp3mSZAOCiN7DiWVUBts=; b=Tqdyfg/weeZiljo2139VghMsnXAkQ64ML24ZShJfJsMq4ln50gfzemDzSZ+/GpBH4S TcXvGoyiF5qR7lZ5dV25Xp7t62Q2nFM1LWmzum9NI2E/w9bDX5+diNs0dMOBtoaC8cgr SnHaR23h1b8Q2JMvODkWp6fPvpUqNbv13T5eaQXKBuqNwyNuY3JJvfIgsIVDqE/s8PhO cWeEsaiCP90ImJ7+2CdLGi+OcfLfu6pnPkRqpFFAfiSiIcLYPNm3jhfcEFjEgeniigVx x6/i0/RSXCXze5zqWdAntbuQHCDhICcT1Kh2GCN0rbahnZ0c4nt2OVUMyPrsEWDnCmbf J7iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=vrSK6HcJ4zEHvfquNhYXb8POp3mSZAOCiN7DiWVUBts=; b=TsvjK0y0YldDM5Nu60yBFW4HJU3zpeE+YZn03aEf6HVHF6fXs8h0gZjfg/LWDeXx6S 8eO0W3wwhOSzyvO8NMg3fkwtqhEwxbEts+G0XbWbD5FPieG+D7bvrX0q8o6uT3Dha6HY TGBY8MJKs9DG+MhvIor6uehV3XhM8V5hStnT1ISo603uovvijY0sC0KYArA8wgabELIW IWyBh+v2she0ShFAJOUiCEWkp/XGOjVtHnjqWUfBV4iQ+xN3hzbGfytursA17ObV5+U8 Lazs+Q2H6RJ2RpgKxCwrRS5PdMt1sEMisf/RXdPb3xjiweFEQUpmx6q4q2UORjLXVee9 a/eA== X-Gm-Message-State: AKwxytf8PW1eCDym6WQ+htGktIErqH9Kk9+dPEMw22wEQiBns/Onss25 MklaKAaOR3PKgibFCxxEAaz8BRd9w0IfLN0W+9p8NA== X-Received: by 10.157.50.5 with SMTP id t5mr3569635otc.172.1516293825537; Thu, 18 Jan 2018 08:43:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.17.89 with HTTP; Thu, 18 Jan 2018 08:43:45 -0800 (PST) In-Reply-To: <20180118154005.24994-1-palmer@sifive.com> References: <20180118154005.24994-1-palmer@sifive.com> From: Arnd Bergmann Date: Thu, 18 Jan 2018 17:43:45 +0100 X-Google-Sender-Auth: bUO9geOuhyeOsgyB5KwcqCSCpsQ Message-ID: Subject: Re: Use arm64's scheme for registering first-level IRQ handlers on RISC-V To: Palmer Dabbelt Cc: Christoph Hellwig , Linux Kernel Mailing List , patches@groups.riscv.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 Thu, Jan 18, 2018 at 4:40 PM, Palmer Dabbelt wrote: > This patch set has been sitting around for a while, but it got a bit lost in > the shuffle. In RISC-V land we currently couple do_IRQ (the C entry point for > interrupt handling) to our first-level interrupt controller. While this isn't > completely crazy (as the first-level interrupt controller is specified by the > ISA), it is a bit awkward. > > This patch set decouples our trap handler from our first-level IRQ chip driver > by copying what a handful of other architectures are doing. This does add an > additional load to the interrupt handling path, but there's a handful of > performance problems in there that I've been meaning to look at so I don't mind > adding another one for now. The advantage is that our irqchip driver is > decoupled from our arch port, at least at compile time. Yes, this sounds like a useful cleanup. I also agree with all of Christoph's suggestions, otherwise it looks good to me. Arnd