Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753251AbcCWFSY (ORCPT ); Wed, 23 Mar 2016 01:18:24 -0400 Received: from e32.co.us.ibm.com ([32.97.110.150]:57959 "EHLO e32.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbcCWFSQ (ORCPT ); Wed, 23 Mar 2016 01:18:16 -0400 X-IBM-Helo: d03dlp02.boulder.ibm.com X-IBM-MailFrom: stewart@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org From: Stewart Smith To: Samuel Mendoza-Jonas Cc: Greg Kroah-Hartman , Samuel Mendoza-Jonas , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: Re: [PATCH] tty/hvc: Use IRQF_SHARED for hvc consoles In-Reply-To: <1458262483-15149-1-git-send-email-sam@mendozajonas.com> References: <1458262483-15149-1-git-send-email-sam@mendozajonas.com> User-Agent: Notmuch/0.21+24~gbceb651 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-redhat-linux-gnu) Date: Wed, 23 Mar 2016 16:17:56 +1100 Message-ID: <87twjxydq3.fsf@birb.au.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16032305-0005-0000-0000-00001F6C1A0B Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1214 Lines: 32 Samuel Mendoza-Jonas writes: > Commit 2def86a7200c > ("hvc: Convert to using interrupts instead of opal events") > enabled the use of interrupts in the hvc_driver for OPAL platforms. > However on machines with more than one hvc console, any console after > the first will fail to register an interrupt handler in > notifier_add_irq() since all consoles share the same IRQ number but do > not set the IRQF_SHARED flag: > > [ 51.179907] genirq: Flags mismatch irq 31. 00000000 (hvc_console) vs. > 00000000 (hvc_console) > [ 51.180010] hvc_open: request_irq failed with rc -16. > > This error propagates up to hvc_open() and the console is closed, but > OPAL will still generate interrupts that are not handled, leading to > rcu_sched stall warnings. > > Set IRQF_SHARED when calling request_irq, allowing additional consoles > to start properly. > > Signed-off-by: Samuel Mendoza-Jonas > Cc: # 4.1.x- Tested on 4.4.6 - seemed to stop (some of) the problems I was having when using it as a kernel for the bootloader on a FSP based POWER8 system. Tested-by: Stewart Smith -- Stewart Smith OPAL Architect, IBM.