summaryrefslogtreecommitdiff
path: root/drivers/soc/mediatek
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2017-10-17 16:20:18 -0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-20 10:10:34 +0100
commit9cd01922985ce5c00cf050f12daef304cc452761 (patch)
treef629c1643c4179e5424e983eac88c9ed6a9adb1a /drivers/soc/mediatek
parent8ee1eada4f1a6671517dc51f6bc11174faebea02 (diff)
powerpc/xmon: Check before calling xive functions
[ Upstream commit 402e172a2ce76210f2fe921cf419d12103851344 ] Currently xmon could call XIVE functions from OPAL even if the XIVE is disabled or does not exist in the system, as in POWER8 machines. This causes the following exception: 1:mon> dx cpu 0x1: Vector: 700 (Program Check) at [c000000423c93450] pc: c00000000009cfa4: opal_xive_dump+0x50/0x68 lr: c0000000000997b8: opal_return+0x0/0x50 This patch simply checks if XIVE is enabled before calling XIVE functions. Fixes: 243e25112d06 ("powerpc/xive: Native exploitation of the XIVE interrupt controller") Suggested-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com> Signed-off-by: Breno Leitao <leitao@debian.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/soc/mediatek')
0 files changed, 0 insertions, 0 deletions