Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2152998ima; Mon, 22 Oct 2018 05:19:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV634NNnZXrlDRtPDw1Fk7T0vtL7O/aaI9S9ojxUP/yu07DW3yKZGttSjEWNTgMong7IgDnTN X-Received: by 2002:a63:fa4e:: with SMTP id g14-v6mr42803860pgk.18.1540210775998; Mon, 22 Oct 2018 05:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540210775; cv=none; d=google.com; s=arc-20160816; b=VobbOHEEcrbeNAiSk/4BW2vAk50q4ktBpyxKGSbWSzUjEPmJJos2H1O89eXMZYEub6 tREl5tB/HV46E7rWv3jQ3eS+JnEkKuFBYT8+vVgx4+UrUVihQVMLdNxjWiDXyVsCPCeL JAq5+zz/HFRVEVp5AGK6EkHiqeK20fu8G8CDOL8efSPYJtmvVPYJR7j7/8jRhUf07thy u6gemOJIgGtGg/qBCkYy7DCMixr22eVI4ZoUD94gEEwAQiVA2/sGLnG48vXGhfcbwIu4 89A0q9hbwqg7+qsH7NACsq03IEiKAKQwxoNX0xqu2EjhAQPa2BFfShdmiGSgWj0h1JtO VEnA== 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=dWqYib6c7YCfkEeuiyUid02W5JbWuq8jXJrrJ2nv3tM=; b=PI+u52kR1UcKjcy8fO8V2e2aG78vrAe9qF90i97pF+7SnjmjZASoFPpEy/9iJpUXx+ +I+cbxbX24j1ZWZChJYEZf5PlqSrf85HoY0qeumTzIA7EJtEUGGAcW6lMhJKZmhBHjXh ubI6mc2kFhO5sFOFjEgPh6IOGzWcij0CNHuzP4uzmAM9WSWdy02IjneAEc6byfrOd6rQ TAvn3tRLfl+u6BEuW2xtvbR9W/73gz5kaKY+eZdrnsID3aptLUaMb4XQHUlGZzCrCUrT rzmrZykiEuZSsBnE54hrKD83TXS0s4XJIEBs3QR9zw2lN+bJuqGZ1g/pogVSWS1f6oqV /9EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=kN56Gi4O; 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 f1-v6si35906615pln.317.2018.10.22.05.19.20; Mon, 22 Oct 2018 05:19:35 -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=kN56Gi4O; 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 S1728460AbeJVUV6 (ORCPT + 99 others); Mon, 22 Oct 2018 16:21:58 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36840 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727787AbeJVUV5 (ORCPT ); Mon, 22 Oct 2018 16:21:57 -0400 Received: by mail-pg1-f194.google.com with SMTP id l6-v6so206157pgp.3 for ; Mon, 22 Oct 2018 05:03:41 -0700 (PDT) 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=dWqYib6c7YCfkEeuiyUid02W5JbWuq8jXJrrJ2nv3tM=; b=kN56Gi4O7/FFa2Xc//BlTk+VZ0+ZxduRW9DN3Dd53WYr/HYBuvZ4EEavfu3eSh1or3 vc1yIfpRosWXeT6rDEJwKWOcCXREstmPIHvN+A1eVBbik0fHkwqxx7KFXJbte3Bm6A7m 3ikyCJcR6/yhpbX2a0/b9DQofhzvjSDb/7AuLxXk9tUCLunlnwoWdAqtrm5nEaIMU1sZ 7Pnhehag+gPyq2f/E6D/ReMQ5H0FuhHFoL7FjKzfYjpBSfLFLZp5edp+0+rn3uR2WY9O +ZwluxBDBXvmTYkjb6OqSA1B54nFMV9gb7nD29phNvaY4XfV3SEp3jnWv9J+sIZDnUf6 Lqaw== 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=dWqYib6c7YCfkEeuiyUid02W5JbWuq8jXJrrJ2nv3tM=; b=fsNE9vG7/gD+Ww/1ark/jTw76uTYbibUSKMU+bbljjRnY3X9UVEzugrqCF07JAGQnp S/t3IFsW0UWP7WNMaee3TXr1zEOhf9zPy+Gl/9I8BoT345Az+oVCdXSHRrdEXJPyGlql oqh3N5Xa0ejUdYlnF2z4qHjYVrNf0WSFM8xPy+mKta9HX9k+tp5Seb50aWPIiPCbv/m4 On8PSQBx0Luu3D4Q3BTRpuTPe7DejDRIw5axro40gM+VmIYYstoxh2lsGCMI6FNR9zr1 /9Oo8+YXvmGcGoNkxhC6bL7albiMIx+kl3B3Lm4XGX0EE+6TDvpiYK/PgCdaFdpnFp8+ B5fg== X-Gm-Message-State: ABuFfog6dbcYBmw8ovXMntheNQi1YZEb3r5JNog86s4Nk5uLqecQBuU3 idngeFceyKPVCV1t1YgnU+T0gQ== X-Received: by 2002:a63:584f:: with SMTP id i15-v6mr42745920pgm.178.1540209820537; Mon, 22 Oct 2018 05:03:40 -0700 (PDT) Received: from anup-ubuntu64.dlink.router ([106.51.30.16]) by smtp.googlemail.com with ESMTPSA id n79-v6sm55443405pfk.19.2018.10.22.05.03.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Oct 2018 05:03:39 -0700 (PDT) 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 0/4] IRQ affinity support in PLIC driver Date: Mon, 22 Oct 2018 17:15:13 +0530 Message-Id: <20181022114517.22748-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. The patchset gives mechanism for explicitly routing 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.19-rc2 and can be found at riscv_plic_irq_affinity_v1 branch of: https://github.com/avpatel/linux.git Anup Patel (4): irqchip: sifive-plic: Pre-compute context hart base and enable base irqchip: sifive-plic: More flexible plic_irq_toggle() 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 | 164 ++++++++++++++++++------------ 1 file changed, 99 insertions(+), 65 deletions(-) -- 2.17.1