gpu: host1x: Don't skip assigning syncpoints to channels
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 19 Jan 2023 13:39:00 +0000 (15:39 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 26 Jan 2023 14:55:38 +0000 (15:55 +0100)
commiteb258cc1fd458e584082be987dbc6ec42668c05e
tree60164f5fcff73ff5f0f5b2d4b280917dbe4aa18f
parent79aad29c7d2d2cd64790115d3a6ebac28c00a8ec
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>
drivers/gpu/host1x/hw/syncpt_hw.c