diff --git a/drivers/gpu/nvgpu/common/linux/pci.c b/drivers/gpu/nvgpu/common/linux/pci.c index acb1bb9f9..939854e72 100644 --- a/drivers/gpu/nvgpu/common/linux/pci.c +++ b/drivers/gpu/nvgpu/common/linux/pci.c @@ -96,7 +96,6 @@ static struct gk20a_platform nvgpu_pci_device[] = { .ina3221_dcb_index = 0, .ina3221_i2c_address = 0x84, .ina3221_i2c_port = 0x2, - .mem_config_idx = GP106_MEM_CONFIG_GDDR5_PG418, }, { /* DEVICE=0x1c36 */ /* ptimer src frequency in hz */ @@ -132,7 +131,6 @@ static struct gk20a_platform nvgpu_pci_device[] = { .ina3221_dcb_index = 0, .ina3221_i2c_address = 0x84, .ina3221_i2c_port = 0x2, - .mem_config_idx = GP106_MEM_CONFIG_GDDR5_PG418, }, { /* DEVICE=0x1c37 */ /* ptimer src frequency in hz */ @@ -168,7 +166,6 @@ static struct gk20a_platform nvgpu_pci_device[] = { .ina3221_dcb_index = 0, .ina3221_i2c_address = 0x84, .ina3221_i2c_port = 0x2, - .mem_config_idx = GP106_MEM_CONFIG_GDDR5_PG418, }, { /* DEVICE=0x1c75 */ /* ptimer src frequency in hz */ @@ -204,7 +201,6 @@ static struct gk20a_platform nvgpu_pci_device[] = { .ina3221_dcb_index = 1, .ina3221_i2c_address = 0x80, .ina3221_i2c_port = 0x1, - .mem_config_idx = GP106_MEM_CONFIG_GDDR5_PG419, } }; @@ -403,8 +399,6 @@ static int nvgpu_pci_probe(struct pci_dev *pdev, g->msi_enabled = true; #endif - g->mem_config_idx = platform->mem_config_idx; - g->irq_stall = pdev->irq; g->irq_nonstall = pdev->irq; if (g->irq_stall < 0) diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 63d2c5a25..72322e541 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h @@ -235,9 +235,6 @@ struct gk20a_platform { u32 ina3221_dcb_index; u32 ina3221_i2c_address; u32 ina3221_i2c_port; - - /* memory training pattern and mclk switch sequences */ - u8 mem_config_idx; }; static inline struct gk20a_platform *gk20a_get_platform( diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index 567b01ce6..499fb53ff 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c @@ -315,15 +315,11 @@ int gm206_bios_init(struct gk20a *g) return -EINVAL; } - /* WAR for HW2.5 RevA (identified by VBIOS version) - * - INA3221 is missing - * - use PG418 MCLK switching sequences - */ + /* WAR for HW2.5 RevA (INA3221 is missing) */ if ((g->pci_vendor_id == PCI_VENDOR_ID_NVIDIA) && (g->pci_device_id == 0x1c75) && (g->gpu_characteristics.vbios_version == 0x86065300)) { - g->power_sensor_missing = true; - g->mem_config_idx = GP106_MEM_CONFIG_GDDR5_PG418; + g->power_sensor_missing = true; } #ifdef CONFIG_DEBUG_FS