media: cx23885: only reset DMA on problematic CPUs
commit6584ae39fa6063c322475d6bc6cee9eaa5d5183b
authorBrad Love <brad@nextdimension.cc>
Wed, 19 Dec 2018 17:07:01 +0000 (19 12:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 08:51:06 +0000 (13 09:51 +0100)
treec83f173c4719fe38de03e81d7212bf46b28ccdd8
parentb6f66e8b227fd0292e3a75c8e7799f4c2f90dbaf
media: cx23885: only reset DMA on problematic CPUs

commit 4bd46aa0353e022c2401a258e93b107880a66533 upstream.

It is reported that commit 95f408bbc4e4 ("media: cx23885: Ryzen DMA
related RiSC engine stall fixes") caused regresssions with other CPUs.

Ensure that the quirk will be applied only for the CPUs that
are known to cause problems.

A module option is added for explicit control of the behaviour.

Fixes: 95f408bbc4e4 ("media: cx23885: Ryzen DMA related RiSC engine stall fixes")

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/cx23885/cx23885-core.c
drivers/media/pci/cx23885/cx23885.h