From 4d2cbefd1ea57bb2d708fad81d493a2ecc0c3309 Mon Sep 17 00:00:00 2001 From: Kyle Roarty Date: Tue, 21 Dec 2021 14:55:24 -0600 Subject: [PATCH] gpu-compute: Set scratch_base, lds_base for gfx902 When updating how scratch_base and lds_base were set, gfx902 was left out. This adds in gfx902 to the case statement, allowing the apertures to be set and for simulations using gfx902 to not error out Change-Id: I0e1adbdf63f7c129186fb835e30adac9cd4b72d0 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/54663 Reviewed-by: Matt Sinclair Maintainer: Matt Sinclair Reviewed-by: Matthew Poremba Maintainer: Matthew Poremba Tested-by: kokoro --- src/gpu-compute/gpu_compute_driver.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gpu-compute/gpu_compute_driver.cc b/src/gpu-compute/gpu_compute_driver.cc index e908f4eecc..d98f4c63a9 100644 --- a/src/gpu-compute/gpu_compute_driver.cc +++ b/src/gpu-compute/gpu_compute_driver.cc @@ -331,6 +331,7 @@ GPUComputeDriver::ioctl(ThreadContext *tc, unsigned req, Addr ioc_buf) ldsApeBase(i + 1); break; case GfxVersion::gfx900: + case GfxVersion::gfx902: args->process_apertures[i].scratch_base = scratchApeBaseV9(); args->process_apertures[i].lds_base = @@ -631,6 +632,7 @@ GPUComputeDriver::ioctl(ThreadContext *tc, unsigned req, Addr ioc_buf) ape_args->lds_base = ldsApeBase(i + 1); break; case GfxVersion::gfx900: + case GfxVersion::gfx902: ape_args->scratch_base = scratchApeBaseV9(); ape_args->lds_base = ldsApeBaseV9(); break;