summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/common/linux/pci.c2
-rw-r--r--drivers/gpu/nvgpu/gm206/bios_gm206.c14
2 files changed, 11 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/pci.c b/drivers/gpu/nvgpu/common/linux/pci.c
index c0510b72..94ef340d 100644
--- a/drivers/gpu/nvgpu/common/linux/pci.c
+++ b/drivers/gpu/nvgpu/common/linux/pci.c
@@ -197,7 +197,7 @@ static struct gk20a_platform nvgpu_pci_device[] = {
197 .ch_wdt_timeout_ms = 7000, 197 .ch_wdt_timeout_ms = 7000,
198 198
199 .honors_aperture = true, 199 .honors_aperture = true,
200 .vbios_min_version = 0x86065600, 200 .vbios_min_version = 0x86065300,
201 .hardcode_sw_threshold = false, 201 .hardcode_sw_threshold = false,
202 .ina3221_dcb_index = 1, 202 .ina3221_dcb_index = 1,
203 .ina3221_i2c_address = 0x80, 203 .ina3221_i2c_address = 0x80,
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c
index 0bc78724..c32959a3 100644
--- a/drivers/gpu/nvgpu/gm206/bios_gm206.c
+++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c
@@ -23,6 +23,7 @@
23#include "gk20a/platform_gk20a.h" 23#include "gk20a/platform_gk20a.h"
24#include "gm20b/fifo_gm20b.h" 24#include "gm20b/fifo_gm20b.h"
25#include "bios_gm206.h" 25#include "bios_gm206.h"
26#include "gp106/pmu_mclk_gp106.h"
26 27
27#include <nvgpu/hw/gm206/hw_pwr_gm206.h> 28#include <nvgpu/hw/gm206/hw_pwr_gm206.h>
28#include <nvgpu/hw/gm206/hw_mc_gm206.h> 29#include <nvgpu/hw/gm206/hw_mc_gm206.h>
@@ -314,11 +315,16 @@ int gm206_bios_init(struct gk20a *g)
314 return -EINVAL; 315 return -EINVAL;
315 } 316 }
316 317
317 /* WAR for missing INA3221 on HW2.5 RevA */ 318 /* WAR for HW2.5 RevA (identified by VBIOS version)
318 g->power_sensor_missing = 319 * - INA3221 is missing
319 (g->pci_vendor_id == PCI_VENDOR_ID_NVIDIA) && 320 * - use PG418 MCLK switching sequences
321 */
322 if ((g->pci_vendor_id == PCI_VENDOR_ID_NVIDIA) &&
320 (g->pci_device_id == 0x1c75) && 323 (g->pci_device_id == 0x1c75) &&
321 (g->gpu_characteristics.vbios_version == 0x86065300); 324 (g->gpu_characteristics.vbios_version == 0x86065300)) {
325 g->power_sensor_missing = true;
326 g->mem_config_idx = GP106_MEM_CONFIG_GDDR5_PG418;
327 }
322 328
323#ifdef CONFIG_DEBUG_FS 329#ifdef CONFIG_DEBUG_FS
324 g->bios_blob.data = g->bios.data; 330 g->bios_blob.data = g->bios.data;