]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:16 +0000 (09:33 +0100)
commit344baddc5d4c52058ff57694e00a47b4eff49b57
tree46f23cf68ac4bd6733d41a127200d0ccab6432cd
parentb262065c3c742403a7e85add95b1f465dc3c74b7
gpu: host1x: Don't skip assigning syncpoints to channels

[ Upstream commit ab37bd3161ef14e16ab7b4299ba0507f812c6091 ]

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: f5f94031cf49 ("gpu: host1x: Enable Tegra186 syncpoint protection")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/host1x/hw/syncpt_hw.c