linux-stable/drivers/hwtracing
Leo Yan 3cd8af57e0 coresight: tmc: Fix byte-address alignment for RRP
[ Upstream commit e7753f3937 ]

>From the comment in the code, it claims the requirement for byte-address
alignment for RRP register: 'for 32-bit, 64-bit and 128-bit wide trace
memory, the four LSBs must be 0s. For 256-bit wide trace memory, the
five LSBs must be 0s'.  This isn't consistent with the program, the
program sets five LSBs as zeros for 32/64/128-bit wide trace memory and
set six LSBs zeros for 256-bit wide trace memory.

After checking with the CoreSight Trace Memory Controller technical
reference manual (ARM DDI 0461B, section 3.3.4 RAM Read Pointer
Register), it proves the comment is right and the program does wrong
setting.

This patch fixes byte-address alignment for RRP by following correct
definition in the technical reference manual.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-20 18:00:38 +01:00
..
coresight coresight: tmc: Fix byte-address alignment for RRP 2019-11-20 18:00:38 +01:00
intel_th intel_th: pci: Add Jasper Lake PCH support 2019-11-12 19:18:10 +01:00
stm stm class: Fix a double free of stm_source_device 2019-09-06 10:20:58 +02:00