Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2102299ybl; Thu, 9 Jan 2020 06:59:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyAq9kv/hGJb75ICZS5HePDP2Cn/Esw3ldm8RWNu6M/SmnS93va5ASK8X1f8DeghOKovWHy X-Received: by 2002:a9d:7552:: with SMTP id b18mr8344744otl.20.1578581953251; Thu, 09 Jan 2020 06:59:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578581953; cv=none; d=google.com; s=arc-20160816; b=zT2HNfsiRrcmLfoDweYP6rIlMowdJ1RP1QMs1YUKK5Io4qPfCiwrkgjrDOQ3nAVp3u siYrBZyQWgsgDAakKAH8l27KIC56vw3IHq5P7As3Nmr1Gr6x4lfXxlbCiQ0ojZsXC2bl BA7urorYd0eCNCP+qiNcT26EsC1A0LZJZjf7jUiZtSxdBVqKkyKax+lQoQPWCUt0uiW2 7E7sC5Mdxtl882+9isq8wiHNb67wcYVrw+QHYL/BvGkwcrr3T2wq05/HSMdllAm2RW2/ t/V3m3rTH0nQjnFed4YIDWoT2IWprtydZYZ/P7WusnZ7/KkcfvUKizyxvsvhGYwJw0/S gWlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5H23YJ70UoW+pLxWg2RgADM8mxSON5TUnrVnRt82z+o=; b=ptNZrHLSoqf5I1hXRIfQ1U5OCnRFeX7wfD+cS/QEmkCm5plQAeM6SZg/qV1TnfIaE0 lKhY3cQ6IXe6wIiCCLy6F9iS+1gUif3QHR3seyJdJZ+30E6/8HsSAvkgcWVXrtea96Lj Vmjp6aVGRVEyXUTYjg4lbMdr6tDsnTeNY/ncbfQ/hcPO7uIMDTXV/wETlz2TaflTb967 LOyADT4JEOOcdTexCBfWPwjorL6ZBHWAzEnFM0DpVRYARP5p6qLVY4jmmE9lMXBJ3W8e PeIK7OAo/HyyiYLR+1SDC6gPjSQ2i+rZuJvuVgNqtTh92O2Ta5sHPnxjxs+ulnNuaIjv G/fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si4092153otp.164.2020.01.09.06.59.01; Thu, 09 Jan 2020 06:59:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731081AbgAIMeq (ORCPT + 99 others); Thu, 9 Jan 2020 07:34:46 -0500 Received: from mx2.suse.de ([195.135.220.15]:38034 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730972AbgAIMeK (ORCPT ); Thu, 9 Jan 2020 07:34:10 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 03312B2213; Thu, 9 Jan 2020 12:34:07 +0000 (UTC) From: Thomas Bogendoerfer To: Paul Burton Cc: Ralf Baechle , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/14] MIPS: SGI-IP27: Only reserve interrupts used in Linux Date: Thu, 9 Jan 2020 13:33:49 +0100 Message-Id: <20200109123353.5656-13-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200109123353.5656-1-tbogendoerfer@suse.de> References: <20200109123353.5656-1-tbogendoerfer@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reduce number of reserved interrupts by removing bits copied from IRIX and not used by Linux. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/sn/intr.h | 17 ----------------- arch/mips/sgi-ip27/ip27-irq.c | 4 +--- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/arch/mips/include/asm/sn/intr.h b/arch/mips/include/asm/sn/intr.h index fc1348193957..3d6954d370dc 100644 --- a/arch/mips/include/asm/sn/intr.h +++ b/arch/mips/include/asm/sn/intr.h @@ -8,15 +8,6 @@ #ifndef __ASM_SN_INTR_H #define __ASM_SN_INTR_H -/* Number of interrupt levels associated with each interrupt register. */ -#define N_INTPEND_BITS 64 - -#define INT_PEND0_BASELVL 0 -#define INT_PEND1_BASELVL 64 - -#define N_INTPENDJUNK_BITS 8 -#define INTPENDJUNK_CLRBIT 0x80 - /* * Macros to manipulate the interrupt register on the calling hub chip. */ @@ -84,14 +75,6 @@ do { \ #define CPU_RESCHED_B_IRQ 8 #define CPU_CALL_A_IRQ 9 #define CPU_CALL_B_IRQ 10 -#define MSC_MESG_INTR 11 -#define BASE_PCI_IRQ 12 - -/* - * INT_PEND0 again, bits determined by hardware / hardcoded: - */ -#define SDISK_INTR 63 /* SABLE name */ -#define IP_PEND0_6_63 63 /* What is this bit? */ /* * INT_PEND1 hard-coded bits: diff --git a/arch/mips/sgi-ip27/ip27-irq.c b/arch/mips/sgi-ip27/ip27-irq.c index 5a4a782ceae5..42df9fafa943 100644 --- a/arch/mips/sgi-ip27/ip27-irq.c +++ b/arch/mips/sgi-ip27/ip27-irq.c @@ -287,11 +287,9 @@ void __init arch_init_irq(void) * Mark these as reserved right away so they won't be used accidentally * later. */ - for (i = 0; i <= BASE_PCI_IRQ; i++) + for (i = 0; i <= CPU_CALL_B_IRQ; i++) set_bit(i, hub_irq_map); - set_bit(IP_PEND0_6_63, hub_irq_map); - for (i = NI_BRDCAST_ERR_A; i <= MSC_PANIC_INTR; i++) set_bit(i, hub_irq_map); -- 2.24.1