Commit dca7da24 authored by Helge Deller's avatar Helge Deller
Browse files

parisc: Do not reprogram affinitiy on ASP chip



The ASP chip is a very old variant of the GSP chip and is used e.g. in
HP 730 workstations. When trying to reprogram the affinity it will crash
with a HPMC as the relevant registers don't seem to be at the usual
location.  Let's avoid the crash by checking the sversion. Also note,
that reprogramming isn't necessary either, as the HP730 is a just a
single-CPU machine.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org
parent 75b51437
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -154,6 +154,8 @@ static int gsc_set_affinity_irq(struct irq_data *d, const struct cpumask *dest,
	gsc_dev->eim = ((u32) gsc_dev->gsc_irq.txn_addr) | gsc_dev->gsc_irq.txn_data;

	/* switch IRQ's for devices below LASI/WAX to other CPU */
	/* ASP chip (svers 0x70) does not support reprogramming */
	if (gsc_dev->gsc->id.sversion != 0x70)
		gsc_writel(gsc_dev->eim, gsc_dev->hpa + OFFSET_IAR);

	irq_data_update_effective_affinity(d, &tmask);