]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: Read upper bits of trace buffer from RWPHI
authorTomer Tayar <ttayar@habana.ai>
Tue, 4 Jun 2019 11:35:30 +0000 (11:35 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 4 Jun 2019 12:13:09 +0000 (15:13 +0300)
commit0cdef9af977a167ec20b74ebde93617d7dbeba93
treeefd85947c007776a581cf6330e33a81d21ffc38d
parent16f7ad9dc06721373354d81f2f0ca851309c0e42
habanalabs: Read upper bits of trace buffer from RWPHI

The trace buffer address is 40 bits wide.
The end of the buffer is set in the RWP register (lower 32 bits), and in
the RWPHI register (upper 8 bits).
Currently only the lower 32 bits are read, and this patch fixes it and
concatenates the upper 8 bits to the output address.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya_coresight.c