mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
(cherry picked from commit 4a53854a92 in
dev-kernel)
Reviewed-on: https://git-master.nvidia.com/r/2008517
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
301a9d2426
commit
7e8ba851a8
@@ -3859,16 +3859,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",
|
||||
|
||||
@@ -293,9 +293,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,
|
||||
|
||||
Reference in New Issue
Block a user