From patchwork Tue Feb 21 20:59:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasad Sodagudi X-Patchwork-Id: 9585655 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DB8D06042F for ; Tue, 21 Feb 2017 20:59:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0A0C285CC for ; Tue, 21 Feb 2017 20:59:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3C862863F; Tue, 21 Feb 2017 20:59:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 78E0E285CC for ; Tue, 21 Feb 2017 20:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:Subject:To:From:Date:MIME-Version: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ABN2PXPi6/ZJuAUnEJNo3ZcMw/xmnVUh5zTrFVmor9g=; b=kWIawQAKgreIqGZSPOw3HjegZy q99DVcezB0IezG51pxXveLPOU3UUc3ryVMdOGtp81iGlVDOBlnt2YpP2XNEEFhtM9dmM5z5xL86VE Nd6cQNloOlGht5MxBZ4nhFDpEbkD3Q6gtkmAirQi+aObDxFqQFx4InquB1Slv74+1Ry0v6KsuDMA6 1UejoiJikS2HOlr346ocXstTrsocsxIj8GG/rIawu2j2tFDpq/WJLashL+5hOCjCp561HzpcfbAhQ DuNtaOJX0HI3d2bz+UrfwE1WEwyi3ZnQY5ESMH+pu6uuETreIwv5NUhK5rwSCfSGKbKMvc5WB5Ys0 D6v8CK5w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgHXB-0008Nw-1W; Tue, 21 Feb 2017 20:59:41 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgHX6-0008Kg-3V for linux-arm-kernel@lists.infradead.org; Tue, 21 Feb 2017 20:59:38 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2048B60CE3; Tue, 21 Feb 2017 20:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1487710754; bh=umTgHHpYDeyEUv6RMAGsKBvUu0DSjEM3ij5+j1Amw0M=; h=Date:From:To:Cc:Subject:From; b=VaBjorHNqJNh0TJzLYurSuzUxPgcGvPOmV0CpITjsaP1Zc7lIp5jMpcebPs2nqOSC vbFX5AyJek7q70ugGXcizb/FW9pFUAF7XQa/Ub5b0dhzcd3wG4Ejrl4QHdt77DJe2B xTlbnAxoXR1v9FuQ2oMpP5g12KArVF0OPddpBEkE= Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id A1B77607F2; Tue, 21 Feb 2017 20:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1487710753; bh=umTgHHpYDeyEUv6RMAGsKBvUu0DSjEM3ij5+j1Amw0M=; h=Date:From:To:Cc:Subject:From; b=GqdNjr8KO2U/jB0wChiYxhU1CzbdcNFwj7MRrAptK5/GbgpYY95bzRFww+GW4KLMs LYNwqdu34xsrJ4eZvzehO3FBAqPQquMt7ThFSZjVEj/CCT1GNRfAlr0WFDwvmwoKKH TKdpyNGEUyuAnMR+2LDpiE2b9HXdWr9re8yLK4Qk= MIME-Version: 1.0 Date: Tue, 21 Feb 2017 12:59:13 -0800 From: Sodagudi Prasad To: tglx@linutronix.de Subject: Schedule affinity_notify work while migrating IRQs during hot plug Message-ID: <05102c455476941d37904f8c6f387452@codeaurora.org> X-Sender: psodagud@codeaurora.org User-Agent: Roundcube Webmail/1.2.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_125936_178329_6E60738F X-CRM114-Status: UNSURE ( 6.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: will.deacon@arm.com, james.morse@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Thomas, Currently irq_set_affinity() is called to migrate irqs from migrate_one_irq() during cpu hot plug and clients which are interested to know the irq affinity change not getting notified take_cpu_down () --> __cpu_disable() --> irq_migrate_all_off_this_cpu(); irq_set_affinity() is changing the IRQ affinity at chip level but it is not notifying the affinity_notify work. How about below change, so that clients drivers gets notified about irq affinity changes? With this change, notifications of IRQ affinity gets executed and notified to client drivers. --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -207,6 +207,7 @@ int irq_do_set_affinity(struct irq_data *data, const struct cpumask *mask, case IRQ_SET_MASK_OK_DONE: cpumask_copy(desc->irq_common_data.affinity, mask); case IRQ_SET_MASK_OK_NOCOPY: + schedule_work(&desc->affinity_notify->work); irq_set_thread_affinity(desc); ret = 0;