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:
Konsta Holtta
2018-10-01 15:25:01 +03:00
committed by Abdul Salam
parent 2cafb5fe74
commit 7138e01666
2 changed files with 2 additions and 2 deletions

View File

@@ -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,