Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: host1x: Don't skip assigning syncpoints to channels

The code to write the syncpoint channel assignment register
incorrectly skips the write if hypervisor registers are not available.

The register, however, is within the guest aperture so remove the
check and assign syncpoints properly even on virtualized systems.

Fixes: c3f52220f276 ("gpu: host1x: Enable Tegra186 syncpoint protection")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Mikko Perttunen and committed by
Thierry Reding
eb258cc1 79aad29c

-3
-3
drivers/gpu/host1x/hw/syncpt_hw.c
··· 106 106 #if HOST1X_HW >= 6 107 107 struct host1x *host = sp->host; 108 108 109 - if (!host->hv_regs) 110 - return; 111 - 112 109 host1x_sync_writel(host, 113 110 HOST1X_SYNC_SYNCPT_CH_APP_CH(ch ? ch->id : 0xff), 114 111 HOST1X_SYNC_SYNCPT_CH_APP(sp->id));