gpu: host1x: Program context stream ID on submission
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 27 Jun 2022 14:19:49 +0000 (17:19 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 14:27:52 +0000 (16:27 +0200)
commit2486254781eab6f6119fabea78f11386c54460d2
tree7f62533a047ef5c2738ac425a3ddc33f55c85aa3
parent8aa5bcb61612060429223d1fbb7a1c30a579fc1f
gpu: host1x: Program context stream ID on submission

Add code to do stream ID switching at the beginning of a job. The
stream ID is switched to the stream ID specified by the context
passed in the job structure.

Before switching the stream ID, an OP_DONE wait is done on the
channel's engine to ensure that there is no residual ongoing
work that might do DMA using the new stream ID.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/hw/channel_hw.c
drivers/gpu/host1x/hw/host1x06_hardware.h
drivers/gpu/host1x/hw/host1x07_hardware.h
include/linux/host1x.h