]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: guard dsp early init against non ARCv2
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Tue, 28 Apr 2020 18:50:24 +0000 (21:50 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 29 Apr 2020 18:53:51 +0000 (11:53 -0700)
commit487d656a133d10f4b0e3bf905918d4e310a215b8
tree4fba0744912fe0145cb16b593b77888a0994cb51
parentf85737c53b2955179bdc93a4238674abc32bdd47
ARC: guard dsp early init against non ARCv2

As of today we guard early DSP init code with
ARC_AUX_DSP_BUILD (0x7A) BCR check to verify that we have
CPU with DSP configured. However that's not enough as in
ARCv1 CPU the same BCR (0x7A) is used for checking MUL/MAC
instructions presence.

So, let's guard DSP early init against non ARCv2.

Fixes: 546f2eaf606b ("ARC: handle DSP presence in HW")
Reported-by: Angelo Ribeiro <angelor@synopsys.com>
Suggested-by: Jose Abreu <oabreu@synopsys.com>
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/dsp-impl.h