mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: Do not assign GPU classes in vgpu HAL
GPU class ids were moved to get_litter_value API, but vgpu was not updated to remove assigning them in HAL initialization. Remove the duplicate assignments. JIRA NVGPU-388 Change-Id: I65cf8f9cfcfc372c1c3b0d9239e55f19c9a02f46 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1596247 Reviewed-by: Automatic_Commit_Validation_User 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
8e611fb654
commit
c0a461dbbc
@@ -470,7 +470,6 @@ static const struct gpu_ops vgpu_gm20b_ops = {
|
||||
int vgpu_gm20b_init_hal(struct gk20a *g)
|
||||
{
|
||||
struct gpu_ops *gops = &g->ops;
|
||||
struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics;
|
||||
u32 val;
|
||||
|
||||
gops->ltc = vgpu_gm20b_ops.ltc;
|
||||
@@ -586,12 +585,5 @@ int vgpu_gm20b_init_hal(struct gk20a *g)
|
||||
|
||||
g->name = "gm20b";
|
||||
|
||||
c->twod_class = FERMI_TWOD_A;
|
||||
c->threed_class = MAXWELL_B;
|
||||
c->compute_class = MAXWELL_COMPUTE_B;
|
||||
c->gpfifo_class = MAXWELL_CHANNEL_GPFIFO_A;
|
||||
c->inline_to_memory_class = KEPLER_INLINE_TO_MEMORY_B;
|
||||
c->dma_copy_class = MAXWELL_DMA_COPY_A;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -511,7 +511,6 @@ static const struct gpu_ops vgpu_gp10b_ops = {
|
||||
int vgpu_gp10b_init_hal(struct gk20a *g)
|
||||
{
|
||||
struct gpu_ops *gops = &g->ops;
|
||||
struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics;
|
||||
u32 val;
|
||||
|
||||
gops->ltc = vgpu_gp10b_ops.ltc;
|
||||
@@ -628,12 +627,5 @@ int vgpu_gp10b_init_hal(struct gk20a *g)
|
||||
|
||||
g->name = "gp10b";
|
||||
|
||||
c->twod_class = FERMI_TWOD_A;
|
||||
c->threed_class = PASCAL_A;
|
||||
c->compute_class = PASCAL_COMPUTE_A;
|
||||
c->gpfifo_class = PASCAL_CHANNEL_GPFIFO_A;
|
||||
c->inline_to_memory_class = KEPLER_INLINE_TO_MEMORY_B;
|
||||
c->dma_copy_class = PASCAL_DMA_COPY_A;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user