]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: cpufeature: Remove cpu_has_fwb() check
authorVladimir Murzin <vladimir.murzin@arm.com>
Thu, 24 Feb 2022 16:47:39 +0000 (16:47 +0000)
committerWill Deacon <will@kernel.org>
Fri, 25 Feb 2022 13:52:23 +0000 (13:52 +0000)
commit2285708c39ae0377acc3aedc17ec85acdc342b7b
tree11ecf4ea93bf4881aaff7b94f78022f2f81c9e64
parent00ca03a42896d54de11cf7236380b6a8924aacdb
arm64: cpufeature: Remove cpu_has_fwb() check

cpu_has_fwb() is supposed to warn user is following architectural
requirement is not valid:

LoUU, bits [29:27] - Level of Unification Uniprocessor for the cache
                     hierarchy.

  Note

    When FEAT_S2FWB is implemented, the architecture requires that
    this field is zero so that no levels of data cache need to be
    cleaned in order to manage coherency with instruction fetches.

LoUIS, bits [23:21] - Level of Unification Inner Shareable for the
                      cache hierarchy.

  Note

    When FEAT_S2FWB is implemented, the architecture requires that
    this field is zero so that no levels of data cache need to be
    cleaned in order to manage coherency with instruction fetches.

It is not really clear what user have to do if assertion fires. Having
assertions about the CPU design like this inspire even more assertions
to be added and the kernel definitely is not the right place for that,
so let's remove cpu_has_fwb() altogether.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Link: https://lore.kernel.org/r/20220224164739.119168-1-vladimir.murzin@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c