gpu: nvgpu: fix verbose return value

verbose return value is not taking all the channels into account.
Fix this by ORing verbose values for all channels.

Change-Id: Id77c74458067c72792422aa69be1626c3d164e1c
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1549645
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Seema Khowala
2017-08-31 12:45:10 -07:00
committed by mobile promotions
parent 5d09c908b0
commit e229cb76ba

View File

@@ -1333,12 +1333,12 @@ bool gk20a_fifo_error_tsg(struct gk20a *g,
struct tsg_gk20a *tsg)
{
struct channel_gk20a *ch = NULL;
bool verbose = true;
bool verbose = false;
down_read(&tsg->ch_list_lock);
list_for_each_entry(ch, &tsg->ch_list, ch_entry) {
if (gk20a_channel_get(ch)) {
verbose = gk20a_fifo_error_ch(g, ch);
verbose |= gk20a_fifo_error_ch(g, ch);
gk20a_channel_put(ch);
}
}