Skip to content
Commit d5df9dc9 authored by Marc Zyngier's avatar Marc Zyngier
Browse files

irqchip/gic-v3-its: Probe ITS page size for all GITS_BASERn registers



The GICv3 ITS driver assumes that once it has latched on a page size for
a given BASER register, it can use the same page size as the maximum
page size for all subsequent BASER registers.

Although it worked so far, nothing in the architecture guarantees this,
and Nianyao Tang hit this problem on some undisclosed implementation.

Let's bite the bullet and probe the the supported page size on all BASER
registers before starting to populate the tables. This simplifies the
setup a bit, at the expense of a few additional MMIO accesses.

Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Reported-by: default avatarNianyao Tang <tangnianyao@huawei.com>
Tested-by: default avatarNianyao Tang <tangnianyao@huawei.com>
Link: https://lore.kernel.org/r/1584089195-63897-1-git-send-email-zhangshaokun@hisilicon.com
parent bd59b343
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment