• Mikko Perttunen's avatar
    gpu: host1x: Add support for syncpoint waits in CDMA pushbuffer · e902585f
    Mikko Perttunen authored
    Add support for inserting syncpoint waits in the CDMA pushbuffer.
    These waits need to be done in HOST1X class, while gather submitted
    by the application execute in engine class.
    
    Support is added by converting the gather list of job into a command
    list that can include both gathers and waits. When the job is
    submitted, these commands are pushed as the appropriate opcodes
    on the CDMA pushbuffer.
    
    Also supported are waits relative to the start of the job,
    which are useful for jobs doing multiple things with an engine
    that doesn't natively support pipelining.
    
    While at it, use 32-bit waits on chips that support them.
    Signed-off-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    e902585f
job.c 15.1 KB