From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rkCJ24nLKzDrYq for ; Tue, 5 Jul 2016 15:34:42 +1000 (AEST) In-Reply-To: <20160628031139.12500-1-sam@mendozajonas.com> To: Sam Mendoza-Jonas , linuxppc-dev@ozlabs.org From: Michael Ellerman Cc: Greg Kroah-Hartman , Jiri Slaby , "# 4 . 1 . x-" , Alistair Popple , Samuel Mendoza-Jonas Subject: Re: [1/2] tty/hvc: Use IRQF_SHARED for OPAL hvc consoles Message-Id: <3rkCJ22Wwpz9sBl@ozlabs.org> Date: Tue, 5 Jul 2016 15:34:42 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2016-28-06 at 03:11:38 UTC, Sam Mendoza-Jonas wrote: > 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. This is only set for consoles handled by > hvc_opal_probe(), leaving other types unaffected. > > Signed-off-by: Samuel Mendoza-Jonas Acked-by: Michael Ellerman Greg I'm assuming you'll take this unless you tell me otherwise. cheers