xics: Add support for reduced priority field size
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 22 Jun 2020 13:38:34 +0000 (23:38 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 22 Jun 2020 22:23:19 +0000 (08:23 +1000)
commitbb54af59de6c71261e4893ba7a59305c415b63ce
treefe2ae7e1a0ae27f92c438c4c581731ea5c09987b
parent5c2fc47e2c30f1799eed95928578313d9afcb6af
xics: Add support for reduced priority field size

This makes the ICS support less than the 8 architected bits
and sets the soc to use 3 bits by default.

All the supported bits set translates to "masked" (and will read
back at 0xff), any small value is used as-is.

Linux doesn't use priorities above 5, so this is a way to save
silicon. The number of supported priority bits is exposed to the
OS via the config register.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
soc.vhdl
tests/test_xics.bin
tests/xics/xics.c
xics.vhdl