]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb71f2d3c6ae178372d99e9e697a2beafdb640cc4
tree7f62533a047ef5c2738ac425a3ddc33f55c85aa3
parent19282f8e44a10cce6425ab15f88476013b80e635
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