mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: unit: stub l2_flush for channel setup bind
Stub g->ops.mm.l2_flush for channel setup bind, as calling HALs is failing in GVS. This does not affect branch coverage for this unit test. Bug 2621189 Change-Id: I3a286f8d09456fe94c661d4be7140791a5ddca61 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2134652 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@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
mobile promotions
parent
bf68ff68f0
commit
4d6aafe280
@@ -626,6 +626,11 @@ static int stub_ramfc_setup_EINVAL(struct nvgpu_channel *ch, u64 gpfifo_base,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int stub_mm_l2_flush(struct gk20a *g, bool invalidate)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int test_channel_setup_bind(struct unit_module *m,
|
||||
struct gk20a *g, void *args)
|
||||
{
|
||||
@@ -662,6 +667,7 @@ static int test_channel_setup_bind(struct unit_module *m,
|
||||
assert(ch != NULL);
|
||||
|
||||
g->ops.gr.intr.flush_channel_tlb = stub_gr_intr_flush_channel_tlb;
|
||||
g->ops.mm.cache.l2_flush = stub_mm_l2_flush; /* bug 2621189 */
|
||||
|
||||
mm.g = g;
|
||||
vm.mm = &mm;
|
||||
|
||||
Reference in New Issue
Block a user