summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206/bios_gm206.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/bios_gm206.c')
-rw-r--r--drivers/gpu/nvgpu/gm206/bios_gm206.c14
1 files changed, 10 insertions, 4 deletions
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;