Message ID | 20240105134244.13003-1-maoxiaochuan@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-17888-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp6226275dyb; Fri, 5 Jan 2024 05:43:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzrTpNxdu9fOozKEyv5vBDNHAmBJawMQnuaXzXRo6bVmkTSGOcauyDRCZfupuWBsK9m674 X-Received: by 2002:a05:6808:124e:b0:3bc:d45:e5e8 with SMTP id o14-20020a056808124e00b003bc0d45e5e8mr2107719oiv.22.1704462194693; Fri, 05 Jan 2024 05:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704462194; cv=none; d=google.com; s=arc-20160816; b=xO4o48TbNffoIJPHRdULBqzDIs5r57U+EzqD8OLz2XgMILzlkIbI4bUaQmXxwVqCZC AXiwX073VQ4CoLd7xgX58Txsy147ezuFOhCuFhBRuxDmONjHAHdekZ4C6y+O09AT/Kll snsh18i84VXOwU427zFwSvvTKZ9Cvi0dupsaOUt0Vf1Bp8gXCvXNcFJYlQ4648ZOmJS+ yR5uHiyiYVvgrCAsk1QhPVg8zDze94LS2SKZ2x/3VLK8aw+/bG3CK+MunpnSXycAy4RM oSC1d7c/Nl4HZ6ufh7f1fR62bdGU9dqnNTNXnYq/68vu2Fbl0s6IFyNMgPiGsMzcf+u7 Aw0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:to:from; bh=7jNnx/TZtPvA8oNGmanna7bRKzRHM67+k5WcTHWHmW8=; fh=5htQIy3vmg+B8Fln5T3ivOpwDlCfdjm1JvrBkS3hz94=; b=kMq7wvA3gQR39mcn3l6C+xmBEp9QBQs5iqPUCh5HuiI6CO44OOroLwkFcIq6NC3Byz imOPQ5syHmPd3p3L6w9PRu/Kp+4LnbGfxQmdf92oHVmSqsCmm9yMGafuo6mnxbFnXX9A f5peyDVA5YCrxRgZxbnvMPHSG52JlZMA0NVajB1pyYKOJVR2ur2vI3uL4rfWBmk2e8Fo iVSrRbQpXUDpKP3zWR7D5vwWrT/s8gCWqDLFqroxGx3FTsUn+B+y2/eOTIPq8WO/7Ssa Uh0t1iW6LLqc4E0b31x7UDX+HlRVG5EMpW0N2i6FBilXGSQccD74tKW9l2MFPuRfGCGL 285A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17888-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17888-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a9-20020a0ce389000000b0067f81bb73bbsi1825378qvl.569.2024.01.05.05.43.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 05:43:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17888-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17888-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17888-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 770D01C22B0F for <ouuuleilei@gmail.com>; Fri, 5 Jan 2024 13:43:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CABB2DF68; Fri, 5 Jan 2024 13:43:03 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 424912D787; Fri, 5 Jan 2024 13:42:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [120.235.8.87]) by gateway (Coremail) with SMTP id _____8Dx_7thB5hlzFUCAA--.281S3; Fri, 05 Jan 2024 21:42:57 +0800 (CST) Received: from localhost.localdomain (unknown [120.235.8.87]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxC95WB5hlx4cDAA--.9475S2; Fri, 05 Jan 2024 21:42:56 +0800 (CST) From: Xiaochuan Mao <maoxiaochuan@loongson.cn> To: Huacai Chen <chenhuacai@kernel.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Thomas Gleixner <tglx@linutronix.de>, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, maoxiaochuan@loongson.cn Subject: [PATCH] irqchip:Correct the offset value of interrupt status register Date: Fri, 5 Jan 2024 21:42:44 +0800 Message-Id: <20240105134244.13003-1-maoxiaochuan@loongson.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: AQAAf8CxC95WB5hlx4cDAA--.9475S2 X-CM-SenderInfo: xpdr5xxdrfx3ldqnw6o6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Wry8uryDtw4rAFyxXFyDXFc_yoWDXwbEgr WI9ws7Wr9Ykrn3KrW0yrWDZa4qkFyUW3WI9F1Svry5A347tw4ayw15u3WUGa1YyF4rZFn7 XryDKFyfZw17WosvyTuYvTs0mTUanT9S1TB71UUUUj7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbS8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r126r1DM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r12 6r1DMcIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64 vIr41lc7CjxVAaw2AFwI0_JF0_Jw1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_ Jr0_Gr1l4IxYO2xFxVAFwI0_JF0_Jw1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8Gjc xK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0 cI8IcVAFwI0_JFI_Gr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8V AvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E 14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j5o7tUUUUU= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787258150193966789 X-GMAIL-MSGID: 1787258150193966789 |
Series |
irqchip:Correct the offset value of interrupt status register
|
|
Commit Message
Xiaochuan Mao
Jan. 5, 2024, 1:42 p.m. UTC
from 2k500/2k1000 mannual known that the offset value between
the interrupt status register and the interrupt entry register
is 0x20.
Signed-off-by: Xiaochuan Mao <maoxiaochuan@loongson.cn>
---
drivers/irqchip/irq-loongson-liointc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
在2024年1月5日一月 下午1:42,Xiaochuan Mao写道: > from 2k500/2k1000 mannual known that the offset value between > the interrupt status register and the interrupt entry register > is 0x20. I recall this offset is a workaround offered by Loongson staff. INTISR0 register offered by manual is not really functional on 2K1000 MIPS Could you please investigate with hardware folks? Thanks > > Signed-off-by: Xiaochuan Mao <maoxiaochuan@loongson.cn> > --- > drivers/irqchip/irq-loongson-liointc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/irqchip/irq-loongson-liointc.c > b/drivers/irqchip/irq-loongson-liointc.c > index e4b33aed1c97..417b4c91ca67 100644 > --- a/drivers/irqchip/irq-loongson-liointc.c > +++ b/drivers/irqchip/irq-loongson-liointc.c > @@ -28,7 +28,7 @@ > > #define LIOINTC_INTC_CHIP_START 0x20 > > -#define LIOINTC_REG_INTC_STATUS (LIOINTC_INTC_CHIP_START + 0x20) > +#define LIOINTC_REG_INTC_STATUS (LIOINTC_INTC_CHIP_START) > #define LIOINTC_REG_INTC_EN_STATUS (LIOINTC_INTC_CHIP_START + 0x04) > #define LIOINTC_REG_INTC_ENABLE (LIOINTC_INTC_CHIP_START + 0x08) > #define LIOINTC_REG_INTC_DISABLE (LIOINTC_INTC_CHIP_START + 0x0c) > -- > 2.17.1
diff --git a/drivers/irqchip/irq-loongson-liointc.c b/drivers/irqchip/irq-loongson-liointc.c index e4b33aed1c97..417b4c91ca67 100644 --- a/drivers/irqchip/irq-loongson-liointc.c +++ b/drivers/irqchip/irq-loongson-liointc.c @@ -28,7 +28,7 @@ #define LIOINTC_INTC_CHIP_START 0x20 -#define LIOINTC_REG_INTC_STATUS (LIOINTC_INTC_CHIP_START + 0x20) +#define LIOINTC_REG_INTC_STATUS (LIOINTC_INTC_CHIP_START) #define LIOINTC_REG_INTC_EN_STATUS (LIOINTC_INTC_CHIP_START + 0x04) #define LIOINTC_REG_INTC_ENABLE (LIOINTC_INTC_CHIP_START + 0x08) #define LIOINTC_REG_INTC_DISABLE (LIOINTC_INTC_CHIP_START + 0x0c)