mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: posix: fix reg space boundaries
The nvgpu_posix_io_get_reg_space was incorrectly checking the upper boundary of the register space. Likewise, the mockIO test was passing where it shouldn't have. Change-Id: Ic45d99f0e1b27a87421f331b2f0ff4b4729f859f Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1852640 Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Abdul Salam
parent
2cafb5fe74
commit
7138e01666
@@ -268,7 +268,7 @@ static int test_register_space(struct unit_module *m, struct gk20a *g,
|
||||
if (value != 0x87654321) {
|
||||
return UNIT_FAIL;
|
||||
}
|
||||
nvgpu_posix_io_writel_reg_space(g, 0x10000100, 0x2727);
|
||||
nvgpu_posix_io_writel_reg_space(g, 0x100000FC, 0x2727);
|
||||
|
||||
/* Now re-define the callbacks to perform our own testing */
|
||||
struct nvgpu_posix_io_callbacks *old_cbs = nvgpu_posix_register_io(g,
|
||||
|
||||
Reference in New Issue
Block a user