gpu: nvgpu: delete raw chid lookup

This (dangerous) array lookup with no channel references is now unused.

Jira NVGPU-1460

Change-Id: Ic6bdbcf19fc8996bc6ff02a40afe3224bdd5bc27
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1955402
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Konsta Holtta
2018-11-15 15:31:09 +02:00
committed by mobile promotions
parent 4e6d9afab8
commit 4a53854a92
2 changed files with 0 additions and 13 deletions

View File

@@ -3894,16 +3894,6 @@ u32 gk20a_fifo_get_pbdma_signature(struct gk20a *g)
return pbdma_signature_hw_valid_f() | pbdma_signature_sw_zero_f();
}
struct channel_gk20a *gk20a_fifo_channel_from_chid(struct gk20a *g,
u32 chid)
{
if (chid != FIFO_INVAL_CHANNEL_ID) {
return g->fifo.channel + chid;
} else {
return NULL;
}
}
static const char * const ccsr_chan_status_str[] = {
"idle",
"pending",

View File

@@ -316,9 +316,6 @@ void gk20a_fifo_set_ctx_mmu_error_ch(struct gk20a *g,
bool gk20a_fifo_error_tsg(struct gk20a *g, struct tsg_gk20a *tsg);
bool gk20a_fifo_error_ch(struct gk20a *g, struct channel_gk20a *refch);
struct channel_gk20a *gk20a_fifo_channel_from_chid(struct gk20a *g,
u32 chid);
void gk20a_fifo_issue_preempt(struct gk20a *g, u32 id, bool is_tsg);
int gk20a_fifo_set_runlist_interleave(struct gk20a *g,
u32 id,