• Mikko Perttunen's avatar
    drm/tegra: Add job firewall · 8cc95f3f
    Mikko Perttunen authored
    Add a firewall that validates jobs before submission to ensure
    they don't do anything they aren't allowed to do, like accessing
    memory they should not access.
    
    The firewall is functionality-wise a copy of the firewall already
    implemented in gpu/host1x. It is copied here as it makes more
    sense for it to live on the DRM side, as it is only needed for
    userspace job submissions, and generally the data it needs to
    do its job is easier to access here.
    
    In the future, the other implementation will be removed.
    Signed-off-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    8cc95f3f
submit.c 15.1 KB