mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: falcon debug unit update
- Don't print error if debug display buffer is empty.
Bug 3623500
Bug 3418561
Bug 3659996
Change-Id: I066999fb0f7d41d491c3b01df2b976fcfa833ebf
Signed-off-by: mkumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2704967
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
GVS: Gerrit_Virtual_Submit
(cherry picked from commit 162d7ec32d)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2722384
This commit is contained in:
committed by
mobile promotions
parent
028b6dd811
commit
684bc1c8cb
@@ -197,7 +197,7 @@ static int falcon_update_debug_buffer_from_dmem(struct nvgpu_falcon *flcn,
|
||||
}
|
||||
|
||||
if (first_read_size == 0 && second_read_size == 0) {
|
||||
nvgpu_err(g, "Debug buffer empty, can't read any data!");
|
||||
nvgpu_falcon_dbg(g, "Debug buffer empty, can't read any data!");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -300,8 +300,9 @@ int nvgpu_falcon_dbg_buf_display(struct nvgpu_falcon *flcn)
|
||||
}
|
||||
|
||||
if (falcon_update_debug_buffer_from_dmem(flcn, write_offset) != 0) {
|
||||
nvgpu_err(g, "Failed to fetch debug buffer contents");
|
||||
return -EINVAL;
|
||||
nvgpu_falcon_dbg(g, "Failed to fetch debug buffer contents");
|
||||
// Return error once Bug 3623500 issue is fixed
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Buffer is empty when read_offset == write_offset */
|
||||
|
||||
Reference in New Issue
Block a user