From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752145AbcERGx2 (ORCPT ); Wed, 18 May 2016 02:53:28 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:60895 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750925AbcERGx1 (ORCPT ); Wed, 18 May 2016 02:53:27 -0400 Subject: Re: [PATCH 1/3] MIPS: Clear Status IPL field when using EIC To: Paul Burton , , "Ralf Baechle" References: <1463495466-29689-1-git-send-email-paul.burton@imgtec.com> <1463495466-29689-2-git-send-email-paul.burton@imgtec.com> CC: Guenter Roeck , Sergei Shtylyov , , "Joe Perches" , James Hogan From: Matt Redfearn Message-ID: <573C1161.6060608@imgtec.com> Date: Wed, 18 May 2016 07:53:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1463495466-29689-2-git-send-email-paul.burton@imgtec.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.154.116] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/05/16 15:31, Paul Burton wrote: > When using an external interrupt controller (EIC) the interrupt mask > bits in the cop0 Status register are reused for the Interrupt Priority > Level, and any interrupts with a priority lower than the field will be > ignored. Clear the field to 0 by default such that all interrupts are > serviced. Without doing so we default to arbitrarily ignoring all or > some subset of interrupts. > > Signed-off-by: Paul Burton > --- > > arch/mips/kernel/irq.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c > index 8eb5af8..f25f7ea 100644 > --- a/arch/mips/kernel/irq.c > +++ b/arch/mips/kernel/irq.c > @@ -54,6 +54,9 @@ void __init init_IRQ(void) > for (i = 0; i < NR_IRQS; i++) > irq_set_noprobe(i); > > + if (cpu_has_veic) > + clear_c0_status(ST0_IM); > + > arch_init_irq(); > } > Hi Paul Reviewed-by: Matt Redfearn Tested-by: Matt Redfearn