From: Yipeng Zou <zouyipeng@huawei.com>
To: <caina@uniontech.com>, Marc Zyngier <maz@kernel.org>
Cc: <guohanjun@huawei.com>, <kernel@uniontech.com>,
<linux-kernel@vger.kernel.org>, <maz@kernel.org>,
<radu@rendec.net>, <stable@vger.kernel.org>, <tglx@kernel.org>,
<zouyipeng@huawei.com>, "liaochang (A)" <liaochang1@huawei.com>,
Ruan Jinjie <ruanjinjie@huawei.com>, <wangwudi@hisilicon.com>
Subject: Re: [PATCH] Revert "irqchip/mbigen: Fix mbigen node address layout"
Date: Tue, 1 Sep 2026 19:32:29 +0800 [thread overview]
Message-ID: <c3a8cf75-ea3a-4d67-b30d-c6ba3b70c844@huawei.com> (raw)
In-Reply-To: <20260821091720.16665-1-caina@uniontech.com>
Hi1616 is special hardware whose register layout differs from the other
mbigen platforms: it does not have the clear register range fixed at
[0xA000, 0xAFFF], on which the fix is based. As a result, skipping an
extra node offset for node IDs greater than or equal to ten, as the fix
does, makes the driver access wrong registers on Hi1616. The fix was
originally introduced to address a real problem on the other platforms:
each mbigen chip has its own independent set of clear registers, whose
offset is fixed within the range [0xA000, 0xAFFF]. Meanwhile, mbigen
allocates a consecutive 4-byte register to every hwirq for configuring
the interrupt type, EOI and so on, so each 4KB node region accommodates
128 hwirqs. Before the fix, the driver calculated the register address
of each interrupt from its hwirq. This works without any problem as long
as the number of interrupts is below 1280, which means no more than nine
mbigen nodes. Once the maximum number of interrupts of a mbigen chip
exceeds 1280, however, the node register addresses reach offset 0xA000
and start to clobber the fixed clear-register range. The final solution
will be worked out in cooperation with the BIOS: the firmware will pass
a chip version to the driver so that it can take care of all platforms.
Since this depends on the corresponding BIOS versions being adapted
first, it cannot land immediately. In the meantime it is safe to revert
the fix, because nobody has run into this problem for now: it can only
be triggered on "new hardware" platforms, while all the platforms
available today, including Hi1616, work correctly. So, let's revert this
patch first. Acked-by: Yipeng Zou <zouyipeng@huawei.com>
--
Regards,
Yipeng Zou
next prev parent reply other threads:[~2026-09-01 11:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-13 7:27 mbigen: node 10+ interrupts lost after "Fix " caina
2026-08-21 7:05 ` Marc Zyngier
2026-08-21 9:17 ` [PATCH] Revert "irqchip/mbigen: Fix " caina
2026-08-22 9:55 ` Hanjun Guo
2026-08-24 4:00 ` Yipeng Zou
2026-08-24 16:44 ` Marc Zyngier
2026-09-01 11:32 ` Yipeng Zou [this message]
2026-09-01 11:43 ` Yipeng Zou
2026-09-04 14:18 ` [tip: irq/urgent] " tip-bot2 for caina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3a8cf75-ea3a-4d67-b30d-c6ba3b70c844@huawei.com \
--to=zouyipeng@huawei.com \
--cc=caina@uniontech.com \
--cc=guohanjun@huawei.com \
--cc=kernel@uniontech.com \
--cc=liaochang1@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=radu@rendec.net \
--cc=ruanjinjie@huawei.com \
--cc=stable@vger.kernel.org \
--cc=tglx@kernel.org \
--cc=wangwudi@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®