intel_th: Wait until port is in reset before programming it
[ Upstream commit ab1afed701d2db7eb35c1a2526a29067a38e93d1 ] Some devices don't drain their pipelines if we don't make sure that the corresponding output port is in reset before programming it for a new trace capture, resulting in bits of old trace appearing in the new trace capture. Fix that by explicitly making sure the reset is asserted before programming new trace capture. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Link: https://lore.kernel.org/r/20210621151246.31891-5-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Esse commit está contido em:

commit de
Greg Kroah-Hartman

pai
45f1de1fff
commit
9c6c657047
@@ -143,6 +143,7 @@ intel_th_output_assigned(struct intel_th_device *thdev)
|
||||
* @remove: remove method
|
||||
* @assign: match a given output type device against available outputs
|
||||
* @unassign: deassociate an output type device from an output port
|
||||
* @prepare: prepare output port for tracing
|
||||
* @enable: enable tracing for a given output device
|
||||
* @disable: disable tracing for a given output device
|
||||
* @irq: interrupt callback
|
||||
@@ -164,6 +165,8 @@ struct intel_th_driver {
|
||||
struct intel_th_device *othdev);
|
||||
void (*unassign)(struct intel_th_device *thdev,
|
||||
struct intel_th_device *othdev);
|
||||
void (*prepare)(struct intel_th_device *thdev,
|
||||
struct intel_th_output *output);
|
||||
void (*enable)(struct intel_th_device *thdev,
|
||||
struct intel_th_output *output);
|
||||
void (*trig_switch)(struct intel_th_device *thdev,
|
||||
|
Referência em uma nova issue
Block a user