gpu: host1x: Add channel support
Add support for host1x client modules, and host1x channels to submit work to the clients. Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de> Tested-by: Thierry Reding <thierry.reding@avionic-design.de> Tested-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
This commit is contained in:

committed by
Thierry Reding

parent
7ede0b0bf3
commit
6579324a41
@@ -93,10 +93,21 @@ static void syncpt_cpu_incr(struct host1x_syncpt *sp)
|
||||
wmb();
|
||||
}
|
||||
|
||||
/* remove a wait pointed to by patch_addr */
|
||||
static int syncpt_patch_wait(struct host1x_syncpt *sp, void *patch_addr)
|
||||
{
|
||||
u32 override = host1x_class_host_wait_syncpt(
|
||||
HOST1X_SYNCPT_RESERVED, 0);
|
||||
|
||||
*((u32 *)patch_addr) = override;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct host1x_syncpt_ops host1x_syncpt_ops = {
|
||||
.restore = syncpt_restore,
|
||||
.restore_wait_base = syncpt_restore_wait_base,
|
||||
.load_wait_base = syncpt_read_wait_base,
|
||||
.load = syncpt_load,
|
||||
.cpu_incr = syncpt_cpu_incr,
|
||||
.patch_wait = syncpt_patch_wait,
|
||||
};
|
||||
|
Reference in New Issue
Block a user