mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: falcon: test and code updates for more branch coverage
Passing branch of nvgpu_timeout_peek_expired was not covered due to jump over it in nvgpu_falcon_mem_scrub_wait. Remove that jump to cover the branch. Add unit test for covering the error handling in case of read from DMEM control register returns invalid data using fault injection. JIRA NVGPU-4814 Change-Id: I9f99186bd2b1c5f39ead130d3161d3e7fa622ac4 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2272937 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
7774669a30
commit
1513061fdd
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -38,6 +38,8 @@ struct utf_falcon {
|
||||
u32 *dmem;
|
||||
};
|
||||
|
||||
struct nvgpu_posix_fault_inj *nvgpu_utf_falcon_memcpy_get_fault_injection(void);
|
||||
|
||||
void nvgpu_utf_falcon_writel_access_reg_fn(struct gk20a *g,
|
||||
struct utf_falcon *flcn,
|
||||
struct nvgpu_reg_access *access);
|
||||
|
||||
Reference in New Issue
Block a user