parisc: mask out enable and reserved bits from sba imask
authorSven Schnelle <svens@stackframe.org>
Tue, 11 Aug 2020 16:19:19 +0000 (18:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 07:48:16 +0000 (09:48 +0200)
commitb1dd9a06bcc8e724ee8e5acbc83b29f05f598211
tree5dcee3f1b8a9585635f72da9ea86fc658e9b50f3
parent0ca974e9e527afb1e9941f5f13c0cecac8d2b7b6
parisc: mask out enable and reserved bits from sba imask

commit 5b24993c21cbf2de11aff077a48c5cb0505a0450 upstream.

When using kexec the SBA IOMMU IBASE might still have the RE
bit set. This triggers a WARN_ON when trying to write back the
IBASE register later, and it also makes some mask calculations fail.

Cc: <stable@vger.kernel.org>
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parisc/sba_iommu.c