Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3931066imu; Fri, 18 Jan 2019 21:59:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN52ikMgPseCzx2mD45K9ElaGeceG2uaR3/u7E6N/AUTtVVAhtXSbTDSfH0WMT8dMCdy3I+g X-Received: by 2002:a62:37c3:: with SMTP id e186mr22642702pfa.251.1547877583068; Fri, 18 Jan 2019 21:59:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547877583; cv=none; d=google.com; s=arc-20160816; b=yPVzDBro4W2mFKCOk+PdCzMBkNWesZ3M4oW9kb8ID/RP/R3o0yBfAZut7y2M92HUse ENgUrjLETQC822CVbEYy/L90QUxjfjomwm7bM7P/csPS5zR/sL0Ymb7crJ3KimEjYfmt cXe4W966fWA9R2lNKQkkt8S+juWOzFDCUztMBdmQO/ja8xD4KXrmhUY4GnBBE6CZzX6p 1UmnbhGmf0JF37u5T7/TSR9RQ1nfqPVus5y/7NXV5uFjOfz7/Pr5pxPOcJGMib8NUNRY /ZgI+JlS8z00bTjg4CCNHv0+6/EazpkNrvJ7dJZ8ZNTystgywaUUXhtaz75t5tGqzHiv L0mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=sQoivAFbNDy6muWIVQt/y3vdJRVoP20aiW8gxmhC/Eg=; b=yWO304c+lx4CmefDBs1iver+m5ZLCap0hiwyomBjKke8w62I7Sd6Jo/jGArLWvf3eZ 36+Dn6haKpHR0HE2xH9RbmF+0XY5F3UKQigQBEUw4MRXqZ0ocRzDuChQfeqipUEB7w9G OlgzQSjrI2SXVW9LVKd3BOBEAWp9KrvTlyZ5SKl0yWkFLNMLpdFYgCZs/VwLiyKrMWA3 QGiFHs/5j+M1Bfqrrt03XKViGAfqESLHnQc9JxMLaTU2i8ORQcik7oRmGRKM38n1+l/c nlW383FDy647rztujCBmtAjF8SQb+u4LYOYba81DARp1+RjD5DMEpQx+glyQW9OXnAdv 2FTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=Abbiyo33; 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 w15si3811840plk.357.2019.01.18.21.59.27; Fri, 18 Jan 2019 21:59:43 -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=Abbiyo33; 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 S1726829AbfASF4l (ORCPT + 99 others); Sat, 19 Jan 2019 00:56:41 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33765 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbfASF4l (ORCPT ); Sat, 19 Jan 2019 00:56:41 -0500 Received: by mail-pl1-f196.google.com with SMTP id z23so7295033plo.0 for ; Fri, 18 Jan 2019 21:56:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=sQoivAFbNDy6muWIVQt/y3vdJRVoP20aiW8gxmhC/Eg=; b=Abbiyo336l24wipav+ZxwC19i158Qe2M89QOsU8cICHRf9im14FWdTdwzrJj2QRuUf qHAnUDQs1GWIM+kwV+l9Vu1QiSRImZJQMVTCYCUlk1/dfdJ5HlPJhZYlt/uyIRnfTxTc 1mU3PmS31ZNgj1u3kUjCZ+ts/lSKt0P+3uNBYPaV/bKFIWfV36EM/SkwgZBPzbuxwJV3 Y7UU0WBnlU3qEWJjCyUHx//1MPmCF+zVHAFOMZt3i5/hyPYWNmLEh0SJZCyC3a002GPi vGY8HTh9C4L+uLtZScU5gfnI7jb2Ix7fP2tz3s/IupOHnwy+QeCmWkx/Cshxub2DG0CI gGaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sQoivAFbNDy6muWIVQt/y3vdJRVoP20aiW8gxmhC/Eg=; b=Z8/ymbkh20Zb2ZGREUBH/X/WpAsi8TNmByt7SqCG/ss4MOptKXQwUozWd5t05BwUCG xdWE4co/QesrPXEREilDfUAAvhJio8kD7pBFLmbe6w/gHAzZiRqWAG20Kk0KB5EtfiM6 Xf6a9sagoliV4LdOuWFg3nxIL8heIQU75pdAdrKMfZDc44RqoorwOZoCVtrHf8/PBCYM BB2P/QseRmloMG3x1tDdG/gUJUZ9CrfuAB4AeVGGsc/gXE9ofXu9cBpboX6xEQV81VDQ bPTgmiajkmKmQUTUSxh9IeyOyc6iUYfhAns5JCbIU+/ZQ18JtAcgt9WmVRx9Z/1ZT0Ci pmkA== X-Gm-Message-State: AJcUukeViF422Eyr7dpGWzXf81+0De5Jx+pCLL0S5yeyrQj2NCouz1wl 9UgJNCa6ZRwSYG/eHojN1ktk1w== X-Received: by 2002:a17:902:4225:: with SMTP id g34mr22348699pld.152.1547877400048; Fri, 18 Jan 2019 21:56:40 -0800 (PST) Received: from localhost.localdomain ([49.207.51.221]) by smtp.gmail.com with ESMTPSA id c7sm9295535pfh.18.2019.01.18.21.56.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 21:56:39 -0800 (PST) From: Anup Patel 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, Anup Patel Subject: [PATCH v5 0/5] IRQ affinity support in PLIC driver Date: Sat, 19 Jan 2019 11:26:20 +0530 Message-Id: <20190119055625.100054-1-anup@brainfault.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v4: - Use "if (force)" instead of "if (!force)" in PATCH5 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