summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2018-04-19 05:49:39 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-04-22 10:33:29 -0400
commita7a256d7c408fe77208518704b0eca1e2e1aa483 (patch)
tree2549e25a20ac95185a93707565773c36d184028e /drivers
parentdea01d0acf80e69429adc31b6311d7f64c658440 (diff)
gpu: nvgpu: support PCI device 0x1e3f
Add PCI device ID for 0x1e3f and also add gk20a_platform data for same Jira NVGPUT-42 Change-Id: I3a6fb8ac4378d45add09795134da8fd3b174ac56 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1699311 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/common/linux/pci.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/pci.c b/drivers/gpu/nvgpu/common/linux/pci.c
index 74f08704..c19ced7c 100644
--- a/drivers/gpu/nvgpu/common/linux/pci.c
+++ b/drivers/gpu/nvgpu/common/linux/pci.c
@@ -349,6 +349,43 @@ static struct gk20a_platform nvgpu_pci_device[] = {
349 .hardcode_sw_threshold = false, 349 .hardcode_sw_threshold = false,
350 .run_preos = true, 350 .run_preos = true,
351 }, 351 },
352 { /* SKU 0x1e3f */
353 /* ptimer src frequency in hz */
354 .ptimer_src_freq = 31250000,
355
356 .probe = nvgpu_pci_tegra_probe,
357 .remove = nvgpu_pci_tegra_remove,
358
359 /* power management configuration */
360 .railgate_delay_init = 500,
361 .can_railgate_init = false,
362 .can_elpg_init = false,
363 .enable_elpg = false,
364 .enable_elcg = false,
365 .enable_slcg = false,
366 .enable_blcg = false,
367 .enable_mscg = false,
368 .can_slcg = false,
369 .can_blcg = false,
370 .can_elcg = false,
371 .default_pri_timeout = 0x3ff,
372
373 .disable_aspm = true,
374
375 /* power management callbacks */
376 .is_railgated = nvgpu_pci_tegra_is_railgated,
377 .clk_round_rate = nvgpu_pci_clk_round_rate,
378
379 /*
380 * WAR: PCIE X1 is very slow, set to very high value till nvlink is up
381 */
382 .ch_wdt_timeout_ms = 30000,
383
384 .honors_aperture = true,
385 .vbios_min_version = 0x1,
386 .hardcode_sw_threshold = false,
387 .unified_memory = false,
388 },
352}; 389};
353 390
354static struct pci_device_id nvgpu_pci_table[] = { 391static struct pci_device_id nvgpu_pci_table[] = {
@@ -400,6 +437,12 @@ static struct pci_device_id nvgpu_pci_table[] = {
400 .class_mask = 0xff << 16, 437 .class_mask = 0xff << 16,
401 .driver_data = 7, 438 .driver_data = 7,
402 }, 439 },
440 {
441 PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1e3f),
442 .class = PCI_BASE_CLASS_DISPLAY << 16,
443 .class_mask = 0xff << 16,
444 .driver_data = 8,
445 },
403 {} 446 {}
404}; 447};
405 448