mirror of https://gitee.com/openkylin/linux.git
coresight: etb10: fixing the right amount of words to read
This patch rectifies the amount of words to read when the internal buffer is deemed bigger than the amount of space available in the perf ring buffer. The amount to read is set to the amount of space in the perf ring buffer rather than being subtracted by it. Reported-by: Suzuki K Poulose <Suzuki.Poulose@arm.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
237483aa5c
commit
b5af0a26da
|
@ -440,7 +440,7 @@ static void etb_update_buffer(struct coresight_device *csdev,
|
|||
u32 mask = ~(ETB_FRAME_SIZE_WORDS - 1);
|
||||
|
||||
/* The new read pointer must be frame size aligned */
|
||||
to_read -= handle->size & mask;
|
||||
to_read = handle->size & mask;
|
||||
/*
|
||||
* Move the RAM read pointer up, keeping in mind that
|
||||
* everything is in frame size units.
|
||||
|
|
Loading…
Reference in New Issue