Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4665538imu; Tue, 8 Jan 2019 04:17:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN6VAJ1LlSR+SyW0fSIUqlyI/FXU0Eqjt+sCu6DhaA6gwZHfbH2ueZLqDyiivvuYeWLxkXbj X-Received: by 2002:a62:5884:: with SMTP id m126mr1498171pfb.177.1546949826496; Tue, 08 Jan 2019 04:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546949826; cv=none; d=google.com; s=arc-20160816; b=oQPh9qicvYU/JwTAAxVK9Khsa1MSKvpKBNPYMLcQLK/osSGOhiIzWnS4TgBK9zT7/C mSBjzW6Vh+6Db7rBzn6/QiN1fTqtscGetl7oMDPb3kXnB7kDa92oRjN4L4FyjZ2cnLYM W3x5PxmcYnYeUfAy+pq7yIi8yROeCfYRALyq85oBOrvTMFO3KqaeDX6tnwim+PZXmjc8 wugA+qFcRIuw10IrwC0c62cs8+n+1q8DsaPAEEMPcQ8XDGMZ17DjX1fezgIISOepuM0E SFtoNlLTVzEerpxbWekMTSATlfRKjDKW7Vwl4zMWjlGGYgpBIjlHMu3LCfLX3Rt1U3J2 Mdtw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=H58GJbXTkYOWpGzunPY/zRGy+r/zK4zeENd9eaVqfA8=; b=zeG1+8NHAOrIfXWGYSKFqjNmn2L362OYpIaIf23QRQGuQIu45KwCnvNalGVWM9X5ur NJ14Srcc/ZR6Yj1QibOT5uw8lPAJgjWgh0c1XE+lRJwDUr3GcRroSlupywuOjqCvHVEU fzI63B4bnB/dYiMjy3iC5WpZKVVPoYvfB2fyvDfTF6KrKdf8fB2HogeWgD5Hmrh4rslD lqg3n1L7Ma9XJruofQqy9s7sFiZJvQNd7JmsUcImwSqaXV1gy26k2YoBwKorrn6joWKl qjfE0R2ry8AwN7aV+fCPI/yezzr+wObL3bwmoYqK1lm5ad1eJhkVtn3P3bwQkUGsWJo6 Ggnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=aZdcNThX; 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 w31si13576586pla.308.2019.01.08.04.16.51; Tue, 08 Jan 2019 04:17:06 -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=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=aZdcNThX; 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 S1728929AbfAHMOT (ORCPT + 99 others); Tue, 8 Jan 2019 07:14:19 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44103 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727295AbfAHMOT (ORCPT ); Tue, 8 Jan 2019 07:14:19 -0500 Received: by mail-wr1-f66.google.com with SMTP id z5so3780078wrt.11 for ; Tue, 08 Jan 2019 04:14:17 -0800 (PST) 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=H58GJbXTkYOWpGzunPY/zRGy+r/zK4zeENd9eaVqfA8=; b=aZdcNThXWO06NC8TfXwatRCZ2mF4uvIWZfYfPXcH4Zv2XZTyEe1MuGi1vITINS9O5/ 5d/0J7z9p2z4R6hPmcLioNAuzY+ETzMNcY5GbK7u/DaO8EsQ13EwM2x6zyntBvKxnuZW 3l0ZIa61L94OyCBgnJBmkGfkpM/Lm3Ztwe8m33rtjZSUmT9PuePNaJk4DkrcCtWUOcMQ Qw6kLT9ktuCL7pbQwmIAG5ESaoBcsylmCnd37hbpRq9Bkf9MQv02Hrv0lp9HN8kye/ww p4Be/yetzJ22PmkHkuictC5AEMBbt4Xsmd5AUBO3dwCIdVbldnj2qWSj3M24CIGx+eeU vbPQ== 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=H58GJbXTkYOWpGzunPY/zRGy+r/zK4zeENd9eaVqfA8=; b=m2yJgQkbf6o3fM2SEe2cZIOBRpcryJlSfAK9H9urLQvQFyEJmiymJPbDdh5YXWh1g4 JuNjLzb5+vaBfYZd6/+p7zyhK7M+f+5UCCnwjlTfsXMrDCOKbDZx3JGrf5+8Fod2G457 eZcIlwBTwekuPcN0We+iQ9ERSnoz6d6mhB5Xhvljjgc2AEAKA68hMvVz8xPuU2iSlMAU z8CbFDUvRiNIezkFZ8/DM/7SJht3dlpieCVaDYHRt7O/mBflPPmqSNgQpBDlafRToq63 0x7YOWXeAlUnbMRO8EAlE8wjgZWnBa2BpRPd1H/wyTS/FpMUHvZD5Sqqu0coP15G3gYE JPxw== X-Gm-Message-State: AJcUukeDbPjoHflU9orbIngN1v+fdkr7VbUpEwTHD10CEqoJjj40bOZL N3wi3r3TDnXEEw0K4EFYOZUqd0KTgAm+Eo71V+KGbQ== X-Received: by 2002:adf:f785:: with SMTP id q5mr1351829wrp.9.1546949656721; Tue, 08 Jan 2019 04:14:16 -0800 (PST) MIME-Version: 1.0 References: <20181227111821.80908-1-anup@brainfault.org> In-Reply-To: <20181227111821.80908-1-anup@brainfault.org> From: Anup Patel Date: Tue, 8 Jan 2019 17:44:05 +0530 Message-ID: Subject: Re: [PATCH v4 0/5] IRQ affinity support in PLIC driver To: Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: Atish Patra , Christoph Hellwig , 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, Dec 27, 2018 at 4:48 PM Anup Patel wrote: > > This patchset primarily adds IRQ affinity support in PLIC driver and > other improvements. > > It gives mechanism for explicitly route external interrupts to particular > CPUs using smp_affinity attribute of each Linux IRQs. Also, we can now > use IRQ balancer from kernel-space or user-space. > > The patchset is tested on QEMU virt machine. It is based on Linux-4.20 > and can be found at riscv_plic_irq_affinity_v4 branch of: > https://github.com/avpatel/linux.git > > Changes since v3: > - Dropped PATCH2 > - Added PATCH to not inline plic_toggle() and plic_irq_toggle() > - Moved PATCH3 changes to PATCH6 > - Used WARN_ON_ONCE() instead of WARN_ON() in PATCH5 > > Changes since v2: > - Fixed incorrect address of enable registers using sizeof(u32) in PATCH1 > - Retained comment about need for locking in PATCH1 > - Split PATCH2 into two patches > - Split PATCH3 into two patches > - Minor fix in commit description of PATCH4 > > Changes since v1: > - Removed few whitspace changes from PATCH1 > - Keep use of DEFINE_PER_CPU() as it is > > Anup Patel (5): > irqchip: sifive-plic: Pre-compute context hart base and enable base > irqchip: sifive-plic: Don't inline plic_toggle() and plic_irq_toggle() > irqchip: sifive-plic: Add warning in plic_init() if handler already > present > irqchip: sifive-plic: Differentiate between PLIC handler and context > irqchip: sifive-plic: Implement irq_set_affinity() for SMP host > > drivers/irqchip/irq-sifive-plic.c | 110 +++++++++++++++++++----------- > 1 file changed, 71 insertions(+), 39 deletions(-) > > -- > 2.17.1 > Hi All, Any comments on this series?? Regards, Anup