From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755501AbcEQOb6 (ORCPT ); Tue, 17 May 2016 10:31:58 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:17062 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750758AbcEQOb4 (ORCPT ); Tue, 17 May 2016 10:31:56 -0400 From: Paul Burton To: , Ralf Baechle CC: Matt Redfearn , Paul Burton , Qais Yousef , , Thomas Gleixner , "Markos Chandras" Subject: [PATCH 2/3] MIPS: smp-cps: Clear Status IPL field when using EIC Date: Tue, 17 May 2016 15:31:05 +0100 Message-ID: <1463495466-29689-3-git-send-email-paul.burton@imgtec.com> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1463495466-29689-1-git-send-email-paul.burton@imgtec.com> References: <1463495466-29689-1-git-send-email-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.100.200.141] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Paul Burton --- arch/mips/kernel/smp-cps.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/smp-cps.c b/arch/mips/kernel/smp-cps.c index 253e140..f19f0d3 100644 --- a/arch/mips/kernel/smp-cps.c +++ b/arch/mips/kernel/smp-cps.c @@ -307,8 +307,12 @@ static void cps_init_secondary(void) if (cpu_has_mipsmt) dmt(); - change_c0_status(ST0_IM, STATUSF_IP2 | STATUSF_IP3 | STATUSF_IP4 | - STATUSF_IP5 | STATUSF_IP6 | STATUSF_IP7); + if (cpu_has_veic) + clear_c0_status(ST0_IM); + else + change_c0_status(ST0_IM, STATUSF_IP2 | STATUSF_IP3 | + STATUSF_IP4 | STATUSF_IP5 | + STATUSF_IP6 | STATUSF_IP7); } static void cps_smp_finish(void) -- 2.8.2