]> 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>
Sat, 11 Mar 2023 15:43:46 +0000 (16:43 +0100)
commit36b17760c475a9e03dac34cdea4acfdf5cf02bc2
treefaa798ccf88cf07793bb71828ad5fdb7f54fee39
parentf4443ad60fb4cc06ad1409fed6d7024268a5e033
gpu: host1x: Don't skip assigning syncpoints to channels

[ Upstream commit eb258cc1fd458e584082be987dbc6ec42668c05e ]

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