linux/drivers/gpu/drm/amd/amdgpu
Xiaojie Yuan a84fddb16d drm/amdgpu: fix null pointer deref in firmware header printing
v2: declare as (struct common_firmware_header *) type because
    struct xxx_firmware_header inherits from it

When CE's ucode_id(8) is used to get sdma_hdr, we will be accessing an
unallocated amdgpu_firmware_info instance.

This issue appears on rhel7.7 with gcc 4.8.5. Newer compilers might have
optimized out such 'defined but not referenced' variable.

[ 1120.798564] BUG: unable to handle kernel NULL pointer dereference at 000000000000000a
[ 1120.806703] IP: [<ffffffffc0e3c9b3>] psp_np_fw_load+0x1e3/0x390 [amdgpu]
[ 1120.813693] PGD 80000002603ff067 PUD 271b8d067 PMD 0
[ 1120.818931] Oops: 0000 [#1] SMP
[ 1120.822245] Modules linked in: amdgpu(OE+) amdkcl(OE) amd_iommu_v2 amdttm(OE) amd_sched(OE) xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun bridge stp llc devlink ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_nat ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat iptable_mangle iptable_security iptable_raw nf_conntrack libcrc32c ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter sunrpc dm_mirror dm_region_hash dm_log dm_mod intel_pmc_core intel_powerclamp coretemp intel_rapl joydev kvm_intel eeepc_wmi asus_wmi kvm sparse_keymap iTCO_wdt irqbypass rfkill crc32_pclmul snd_hda_codec_realtek mxm_wmi ghash_clmulni_intel intel_wmi_thunderbolt iTCO_vendor_support snd_hda_codec_generic snd_hda_codec_hdmi aesni_intel lrw gf128mul glue_helper ablk_helper sg cryptd pcspkr snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_seq snd_seq_device snd_pcm snd_timer snd pinctrl_sunrisepoint pinctrl_intel soundcore acpi_pad mei_me wmi mei i2c_i801 pcc_cpufreq ip_tables ext4 mbcache jbd2 sd_mod crc_t10dif crct10dif_generic i915 i2c_algo_bit iosf_mbi drm_kms_helper e1000e syscopyarea sysfillrect sysimgblt fb_sys_fops ahci libahci drm ptp libata crct10dif_pclmul crct10dif_common crc32c_intel serio_raw pps_core drm_panel_orientation_quirks video i2c_hid
[ 1120.954136] CPU: 4 PID: 2426 Comm: modprobe Tainted: G           OE  ------------   3.10.0-1062.el7.x86_64 #1
[ 1120.964390] Hardware name: System manufacturer System Product Name/Z170-A, BIOS 1302 11/09/2015
[ 1120.973321] task: ffff991ef1e3c1c0 ti: ffff991ee625c000 task.ti: ffff991ee625c000
[ 1120.981020] RIP: 0010:[<ffffffffc0e3c9b3>]  [<ffffffffc0e3c9b3>] psp_np_fw_load+0x1e3/0x390 [amdgpu]
[ 1120.990483] RSP: 0018:ffff991ee625f950  EFLAGS: 00010202
[ 1120.995935] RAX: 0000000000000002 RBX: ffff991edf6b2d38 RCX: ffff991edf6a0000
[ 1121.003391] RDX: 0000000000000000 RSI: ffff991f01d13898 RDI: ffffffffc110afb3
[ 1121.010706] RBP: ffff991ee625f9b0 R08: 0000000000000000 R09: 0000000000000000
[ 1121.018029] R10: 00000000000004c4 R11: ffff991ee625f64e R12: ffff991edf6b3220
[ 1121.025353] R13: ffff991edf6a0000 R14: 0000000000000008 R15: ffff991edf6b2d30
[ 1121.032666] FS:  00007f97b0c0b740(0000) GS:ffff991f01d00000(0000) knlGS:0000000000000000
[ 1121.041000] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1121.046880] CR2: 000000000000000a CR3: 000000025e604000 CR4: 00000000003607e0
[ 1121.054239] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1121.061631] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 1121.068938] Call Trace:
[ 1121.071494]  [<ffffffffc0e3dba8>] psp_hw_init+0x218/0x270 [amdgpu]
[ 1121.077886]  [<ffffffffc0da3188>] amdgpu_device_fw_loading+0xe8/0x160 [amdgpu]
[ 1121.085296]  [<ffffffffc0e3b34c>] ? vega10_ih_irq_init+0x4bc/0x730 [amdgpu]
[ 1121.092534]  [<ffffffffc0da5c75>] amdgpu_device_init+0x1495/0x1c90 [amdgpu]
[ 1121.099675]  [<ffffffffc0da9cab>] amdgpu_driver_load_kms+0x8b/0x2f0 [amdgpu]
[ 1121.106888]  [<ffffffffc01b25cf>] drm_dev_register+0x12f/0x1d0 [drm]
[ 1121.113419]  [<ffffffffa4dcdfd8>] ? pci_enable_device_flags+0xe8/0x140
[ 1121.120183]  [<ffffffffc0da260a>] amdgpu_pci_probe+0xca/0x170 [amdgpu]
[ 1121.126919]  [<ffffffffa4dcf97a>] local_pci_probe+0x4a/0xb0
[ 1121.132622]  [<ffffffffa4dd10c9>] pci_device_probe+0x109/0x160
[ 1121.138607]  [<ffffffffa4eb4205>] driver_probe_device+0xc5/0x3e0
[ 1121.144766]  [<ffffffffa4eb4603>] __driver_attach+0x93/0xa0
[ 1121.150507]  [<ffffffffa4eb4570>] ? __device_attach+0x50/0x50
[ 1121.156422]  [<ffffffffa4eb1da5>] bus_for_each_dev+0x75/0xc0
[ 1121.162213]  [<ffffffffa4eb3b7e>] driver_attach+0x1e/0x20
[ 1121.167771]  [<ffffffffa4eb3620>] bus_add_driver+0x200/0x2d0
[ 1121.173590]  [<ffffffffa4eb4c94>] driver_register+0x64/0xf0
[ 1121.179345]  [<ffffffffa4dd0905>] __pci_register_driver+0xa5/0xc0
[ 1121.185593]  [<ffffffffc099f000>] ? 0xffffffffc099efff
[ 1121.190914]  [<ffffffffc099f0a4>] amdgpu_init+0xa4/0xb0 [amdgpu]
[ 1121.197101]  [<ffffffffa4a0210a>] do_one_initcall+0xba/0x240
[ 1121.202901]  [<ffffffffa4b1c90a>] load_module+0x271a/0x2bb0
[ 1121.208598]  [<ffffffffa4dad740>] ? ddebug_proc_write+0x100/0x100
[ 1121.214894]  [<ffffffffa4b1ce8f>] SyS_init_module+0xef/0x140
[ 1121.220698]  [<ffffffffa518bede>] system_call_fastpath+0x25/0x2a
[ 1121.226870] Code: b4 01 60 a2 00 00 31 c0 e8 83 60 33 e4 41 8b 47 08 48 8b 4d d0 48 c7 c7 b3 af 10 c1 48 69 c0 68 07 00 00 48 8b 84 01 60 a2 00 00 <48> 8b 70 08 31 c0 48 89 75 c8 e8 56 60 33 e4 48 8b 4d d0 48 c7
[ 1121.247422] RIP  [<ffffffffc0e3c9b3>] psp_np_fw_load+0x1e3/0x390 [amdgpu]
[ 1121.254432]  RSP <ffff991ee625f950>
[ 1121.258017] CR2: 000000000000000a
[ 1121.261427] ---[ end trace e98b35387ede75bd ]---

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Fixes: c5fb912653 ("drm/amdgpu: add firmware header printing for psp fw loading (v2)")
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-11-14 16:53:19 -05:00
..
amdgpu.h drm/amdgpu: introduce vram lost for reset (v2) 2019-08-29 15:52:32 -05:00
amdgpu_acp.c drm/amdgpu: fix multiple memory leaks in acp_hw_init 2019-10-02 12:58:33 -05:00
amdgpu_acp.h
amdgpu_acpi.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_afmt.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_amdkfd.c drm/amdgpu: enable Navi12 kfd support for amdgpu 2019-08-02 10:30:41 -05:00
amdgpu_amdkfd.h drm/amdkfd: Implement kfd2kgd_calls for Arcturus 2019-07-18 14:18:04 -05:00
amdgpu_amdkfd_arcturus.c drm/amdgpu: drop drmP.h in amdgpu_amdkfd_arcturus.c 2019-07-31 14:32:56 -05:00
amdgpu_amdkfd_fence.c drm/amdgpu: Simplify kgd2kfd interface 2019-01-14 15:04:29 -05:00
amdgpu_amdkfd_gfx_v7.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
amdgpu_amdkfd_gfx_v8.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
amdgpu_amdkfd_gfx_v9.c drm/amdgpu: Export function to flush TLB of specific vm hub 2019-08-15 10:57:48 -05:00
amdgpu_amdkfd_gfx_v9.h drm/amdgpu: drop unused function definitions 2019-07-18 14:18:07 -05:00
amdgpu_amdkfd_gfx_v10.c drm/amdkfd/gfx10: Calling amdgpu functions to invalidate TLB 2019-08-15 10:57:55 -05:00
amdgpu_amdkfd_gpuvm.c drm/amdgpu: untag user pointers 2019-09-25 17:51:41 -07:00
amdgpu_atombios.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_atombios.h
amdgpu_atomfirmware.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_atomfirmware.h drm/amdgpu: add atomfirmware helper function to query sram ecc caps 2019-03-19 15:36:51 -05:00
amdgpu_atpx_handler.c drm/amdgpu: Add APTX quirk for Dell Latitude 5495 2019-08-27 10:09:12 -05:00
amdgpu_benchmark.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_bios.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_bo_list.c drm/amdgpu: fix error handling in amdgpu_bo_list_create 2019-10-17 17:12:34 -04:00
amdgpu_bo_list.h drm/amdgpu: replace get_user_pages with HMM mirror helpers 2019-05-24 12:21:02 -05:00
amdgpu_cgs.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_connectors.c drm/amdgpu: Provide ddc symlink in connector sysfs directory 2019-07-31 16:35:37 +02:00
amdgpu_connectors.h
amdgpu_cs.c drm/amdgpu: user pages array memory leak fix 2019-10-17 17:12:34 -04:00
amdgpu_csa.c drm/amdgpu: program for resuming preempted ib 2019-06-21 18:57:40 -05:00
amdgpu_csa.h drm/amdgpu: Change AMDGPU_CSA_SIZE to 128K 2018-11-05 14:21:50 -05:00
amdgpu_ctx.c drm/amdgpu: dont schedule jobs while in reset 2019-11-06 15:26:53 -05:00
amdgpu_ctx.h drm/amdgpu: correct ras error count type 2019-08-23 11:30:32 -05:00
amdgpu_debugfs.c drm/amdgpu: fix a potential information leaking bug 2019-07-31 01:26:09 -05:00
amdgpu_debugfs.h drm/amdgpu: add mcbp unit test in debugfs (v3) 2019-06-21 18:58:21 -05:00
amdgpu_device.c drm/amdgpu: register gpu instance before fan boost feature enablment 2019-11-06 22:06:23 -05:00
amdgpu_discovery.c drm/amdgpu/discovery: fix DCE_HWIP mapping error in hw_id_map array 2019-07-11 14:37:24 -05:00
amdgpu_discovery.h drm/amdgpu/discovery: add ip discovery initial support 2019-06-21 18:58:21 -05:00
amdgpu_display.c drm-misc-next for 5.4: 2019-08-21 16:44:41 +10:00
amdgpu_display.h drm/amdgpu: Fix amdgpu_display_supported_domains logic. 2019-07-30 23:48:32 -05:00
amdgpu_dma_buf.c drm-misc-next for 5.4: 2019-08-21 16:44:41 +10:00
amdgpu_dma_buf.h drm/amdgpu: Fill out gem_object->resv 2019-07-31 10:19:23 +02:00
amdgpu_doorbell.h drm/amdgpu/: add doorbell assignment for 2nd vcn instance 2019-07-18 14:18:05 -05:00
amdgpu_dpm.c drm/amd/amdgpu: power up sdma engine when S3 resume back 2019-09-17 14:37:58 -05:00
amdgpu_dpm.h drm/amd: add gfxoff support on navi10 2019-06-21 18:59:25 -05:00
amdgpu_drv.c drm/amdgpu: add navi14 PCI ID 2019-11-06 15:35:08 -05:00
amdgpu_drv.h
amdgpu_encoders.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_fb.c drm/amdgpu: Fix amdgpu_display_supported_domains logic. 2019-07-30 23:48:32 -05:00
amdgpu_fence.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_gart.c dmr/amdgpu: Fix compile error with CONFIG_DRM_AMDGPU_GART_DEBUGFS 2019-08-15 10:59:17 -05:00
amdgpu_gart.h drm/amdgpu: Added a few comments for gart 2018-11-05 14:21:16 -05:00
amdgpu_gds.h Revert "drm/amdgpu: fix transform feedback GDS hang on gfx10 (v2)" 2019-08-12 12:47:47 -05:00
amdgpu_gem.c drm/amdgpu: untag user pointers 2019-09-25 17:51:41 -07:00
amdgpu_gem.h dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00
amdgpu_gfx.c drm/amdgpu: enable async gfx ring for navi14 2019-07-18 14:18:00 -05:00
amdgpu_gfx.h drm/amdgpu: add dummy read by engines for some GCVM status registers in gfx10 2019-11-06 22:06:23 -05:00
amdgpu_gmc.c drm/amdgpu: disable agp for sriov 2019-08-22 17:15:06 -05:00
amdgpu_gmc.h drm/amdgpu: Export function to flush TLB of specific vm hub 2019-08-15 10:57:48 -05:00
amdgpu_gtt_mgr.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_i2c.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_i2c.h
amdgpu_ib.c drm/amdgpu: Fix KFD-related kernel oops on Hawaii 2019-09-17 14:38:35 -05:00
amdgpu_ids.c drm-misc-next for 5.4: 2019-08-21 16:44:41 +10:00
amdgpu_ids.h dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00
amdgpu_ih.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_ih.h drm/amdgpu: limit the number of IVs processed at once 2019-03-19 15:36:58 -05:00
amdgpu_ioc32.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_irq.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_irq.h drm/amdgpu: cleanup amdgpu_ih_process a bit more 2019-02-13 17:47:11 -05:00
amdgpu_job.c drm/amdgpu: If amdgpu_ib_schedule fails return back the error. 2019-10-30 11:56:15 -04:00
amdgpu_job.h drm/amdgpu: add ib preemption status in amdgpu_job (v2) 2019-06-21 18:57:40 -05:00
amdgpu_kms.c drm/amdgpu: register gpu instance before fan boost feature enablment 2019-11-06 22:06:23 -05:00
amdgpu_mes.h drm/amdgpu/mes10.1: add mes firmware info fields 2019-06-21 18:59:28 -05:00
amdgpu_mmhub.h drm/amdgpu: add amdgpu_mmhub_funcs definition 2019-08-12 12:47:48 -05:00
amdgpu_mn.c hmm related patches for 5.4 2019-09-21 10:07:42 -07:00
amdgpu_mn.h drm/amdgpu: Prepare for hmm_range_register API change (v2) 2019-07-08 13:55:00 -05:00
amdgpu_mode.h drm/amd/display: Switch the custom "max bpc" property to the DRM prop 2019-05-24 12:25:56 -05:00
amdgpu_object.c drm/amdgpu: fix potential VM faults 2019-10-17 17:12:34 -04:00
amdgpu_object.h drm-misc-next for 5.4: 2019-08-21 16:44:41 +10:00
amdgpu_pll.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_pll.h
amdgpu_pm.c drm/amd/amdgpu: hide voltage and power sensors on SI and KV parts 2019-08-29 15:52:32 -05:00
amdgpu_pm.h drm/amdgpu: register pm sysfs for sriov (v2) 2019-06-13 13:59:48 -05:00
amdgpu_pmu.c drm/amdgpu: add pmu counters 2019-06-20 11:36:22 -05:00
amdgpu_pmu.h drm/amdgpu: add pmu counters 2019-06-20 11:36:22 -05:00
amdgpu_psp.c drm/amdgpu: fix null pointer deref in firmware header printing 2019-11-14 16:53:19 -05:00
amdgpu_psp.h drm/amdgpu/psp: move TMR to cpu invisible vram region 2019-08-21 22:16:45 -05:00
amdgpu_ras.c drm/amdgpu: correct ras error count type 2019-08-23 11:30:32 -05:00
amdgpu_ras.h drm/amdgpu: Add RAS EEPROM table. 2019-08-27 08:17:14 -05:00
amdgpu_ras_eeprom.c drm/amdgpu: fix spelling mistake "jumpimng" -> "jumping" 2019-08-29 15:52:32 -05:00
amdgpu_ras_eeprom.h drm/amdgpu: Add RAS EEPROM table. 2019-08-27 08:17:14 -05:00
amdgpu_ring.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_ring.h drm/amdgpu/: increase AMDGPU_MAX_RINGS to add 2nd vcn instance 2019-07-18 14:18:05 -05:00
amdgpu_rlc.c drm/amdgpu: abstract the function of enter/exit safe mode for RLC 2018-11-09 16:29:12 -05:00
amdgpu_rlc.h drm/amdgpu: use rlc toc from psp sos binary 2019-06-20 21:46:49 -05:00
amdgpu_sa.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_sched.c drm/amd: drop use of drmP.h in amdgpu.h 2019-06-10 22:59:53 +02:00
amdgpu_sched.h drm/amd: drop use of drmP.h from all header files 2019-06-10 23:00:08 +02:00
amdgpu_sdma.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_sdma.h drm/amdgpu: reorganize sdma v4 code to support more instances 2019-07-18 14:18:02 -05:00
amdgpu_socbb.h drm/amd/display: use fixed-width data type for soc bounding box struct 2019-06-21 18:59:34 -05:00
amdgpu_sync.c dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00
amdgpu_sync.h dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00
amdgpu_test.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_trace.h drm/amd: drop use of drmP.h from all header files 2019-06-10 23:00:08 +02:00
amdgpu_trace_points.c drm/amd: drop use of drmP.h in amdgpu/amdgpu* 2019-06-10 23:02:48 +02:00
amdgpu_ttm.c hmm related patches for 5.4 2019-09-21 10:07:42 -07:00
amdgpu_ttm.h drm-misc-next for 5.4: 2019-08-21 16:44:41 +10:00
amdgpu_ucode.c drm/amdgpu: fix debug level for ppt offset/size 2019-08-21 22:15:28 -05:00
amdgpu_ucode.h drm/amdgpu: extend PSP FW loading support to 8 SDMA instances 2019-08-02 10:30:39 -05:00
amdgpu_umc.h drm/amdgpu: implement UMC 64 bits REG operations 2019-08-09 11:17:10 -05:00
amdgpu_uvd.c dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00
amdgpu_uvd.h drm/amd:Enable/Disable NBPSTATE on On/OFF of UVD 2018-11-26 15:47:34 -05:00
amdgpu_vce.c drm/amdgpu/vce: fix allocation size in enc ring test 2019-10-17 17:12:34 -04:00
amdgpu_vce.h drm/amdgpu/vce: fix allocation size in enc ring test 2019-10-17 17:12:34 -04:00
amdgpu_vcn.c drm/amdgpu/vcn: fix allocation size in enc ring test 2019-10-17 17:12:34 -04:00
amdgpu_vcn.h drm/amd/amdgpu/vcn_v2_0: Mark RB commands as KMD commands 2019-08-02 10:36:34 -05:00
amdgpu_vf_error.c
amdgpu_vf_error.h
amdgpu_virt.c drm/amdgpu: cleanup vega10 SRIOV code path 2019-08-02 10:17:21 -05:00
amdgpu_virt.h drm/amdgpu: cleanup vega10 SRIOV code path 2019-08-02 10:17:21 -05:00
amdgpu_vm.c drm/amdgpu: revert "disable bulk moves for now" 2019-10-02 12:23:03 -05:00
amdgpu_vm.h drm/amdgpu/gmc10: fix pte mytpe field error for navi14 2019-07-30 23:19:35 -05:00
amdgpu_vm_cpu.c drm/amdgpu: move VM table mapping into the backend as well 2019-03-27 22:40:50 -05:00
amdgpu_vm_sdma.c drm/amdgpu: switch driver from bo->resv to bo->base.resv 2019-08-06 08:21:54 +02:00
amdgpu_vram_mgr.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_xgmi.c drm/amdgpu: adding xgmi error monitoring 2019-07-30 23:22:34 -05:00
amdgpu_xgmi.h drm/amdgpu: Implement get num of hops between two xgmi device 2019-05-24 12:20:48 -05:00
arct_reg_init.c drm/amd/powerplay: initialize arcturus MP1 and THM base address 2019-07-30 23:48:33 -05:00
athub_v1_0.c drm/amdgpu: split athub clock gating from mmhub 2019-08-12 12:47:48 -05:00
athub_v1_0.h drm/amdgpu: split athub clock gating from mmhub 2019-08-12 12:47:48 -05:00
athub_v2_0.c drm/amdgpu/athub2: set clock gating for navi12 2019-08-12 12:47:47 -05:00
athub_v2_0.h drm/amdgpu/athub2: enable athub2 clock gating 2019-06-20 21:35:29 -05:00
atom.c drm: move drm_can_sleep() to drm_util.h 2019-01-14 10:58:37 +01:00
atom.h drm/amd: drop use of drmP.h in atom.h 2019-06-10 23:00:01 +02:00
atombios_crtc.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
atombios_crtc.h
atombios_dp.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
atombios_dp.h
atombios_encoders.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
atombios_encoders.h drm/amdgpu: save/restore backlight level in legacy dce code 2018-03-14 15:39:51 -05:00
atombios_i2c.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
atombios_i2c.h
cik.c drm/amdgpu: add reset_method asic callback for cik 2019-07-30 23:24:06 -05:00
cik.h drm/amdgpu: Doorbell index initialization for ASICs before vega10 2018-11-28 15:55:32 -05:00
cik_dpm.h drm/amdgpu: remove old CI DPM implementation 2019-01-25 16:15:36 -05:00
cik_ih.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
cik_ih.h
cik_sdma.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
cik_sdma.h
cikd.h
clearstate_ci.h
clearstate_defs.h
clearstate_gfx9.h
clearstate_gfx10.h drm/amdgpu: add gfx v10 clear state header v2 2019-06-20 21:16:37 -05:00
clearstate_si.h
clearstate_vi.h
cz_ih.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
cz_ih.h
dce_v6_0.c drm/amdgpu: Update pitch on page flips without DC as well 2019-08-12 12:47:47 -05:00
dce_v6_0.h
dce_v8_0.c drm/amdgpu: Update pitch on page flips without DC as well 2019-08-12 12:47:47 -05:00
dce_v8_0.h
dce_v10_0.c drm/amdgpu: Update pitch on page flips without DC as well 2019-08-12 12:47:47 -05:00
dce_v10_0.h
dce_v11_0.c drm/amdgpu: Update pitch on page flips without DC as well 2019-08-12 12:47:47 -05:00
dce_v11_0.h
dce_virtual.c drm/amdgpu/virtual_dce: drop error message in hw_init 2019-08-29 15:52:32 -05:00
dce_virtual.h
df_v1_7.c drm/amdgpu: add sw_init to df_v1_7 2019-06-22 09:34:14 -05:00
df_v1_7.h drm/amdgpu/df: implement df v1_7 callback functions 2018-04-11 13:07:54 -05:00
df_v3_6.c drm/amdgpu: add perfmon and fica atomics for df 2019-07-30 23:22:26 -05:00
df_v3_6.h drm/amdgpu: update df_v3_6 for xgmi perfmons (v2) 2019-06-20 11:35:45 -05:00
emu_soc.c
gfx_v6_0.c drm/amd/amdgpu: Add VMID to SRBM debugfs bank selection 2019-07-16 13:08:38 -05:00
gfx_v6_0.h
gfx_v7_0.c Linux 5.3-rc3 2019-08-09 13:07:28 -05:00
gfx_v7_0.h
gfx_v8_0.c Linux 5.3-rc3 2019-08-09 13:07:28 -05:00
gfx_v8_0.h
gfx_v9_0.c drm/amdgpu/renoir: move gfxoff handling into gfx9 module 2019-11-06 22:06:23 -05:00
gfx_v9_0.h
gfx_v10_0.c drm/amdgpu: add dummy read by engines for some GCVM status registers in gfx10 2019-11-06 22:06:23 -05:00
gfx_v10_0.h drm/amdgpu: add gfx v10 implementation (v10) 2019-06-21 18:59:23 -05:00
gfxhub_v1_0.c drm/amdgpu: rename AMDGPU_GFXHUB/MMHUB macro with hub number 2019-07-18 14:18:01 -05:00
gfxhub_v1_0.h drm/amdgpu/amdkfd: clean up mmhub and gfxhub includes 2018-11-05 14:21:24 -05:00
gfxhub_v1_1.c drm/amdgpu/gmc9: Adjust GART and AGP location with xgmi offset (v2) 2018-09-10 22:47:34 -05:00
gfxhub_v1_1.h drm/amdgpu/gmc9: add a new gfxhub 1.1 helper for xgmi 2018-09-10 22:46:22 -05:00
gfxhub_v2_0.c drm/amdgpu/gmc10: properly set BANK_SELECT and FRAGMENT_SIZE 2019-10-30 11:56:20 -04:00
gfxhub_v2_0.h drm/amdgpu: add gfxhub v2.0 block for navi10 (v4) 2019-06-20 21:35:29 -05:00
gmc_v6_0.c drm/amdgpu: set adev->num_vmhubs for gmc6,7,8 2019-08-23 11:35:25 -05:00
gmc_v6_0.h
gmc_v7_0.c drm/amdgpu: set adev->num_vmhubs for gmc6,7,8 2019-08-23 11:35:25 -05:00
gmc_v7_0.h
gmc_v8_0.c drm/amdgpu: set adev->num_vmhubs for gmc6,7,8 2019-08-23 11:35:25 -05:00
gmc_v8_0.h
gmc_v9_0.c drm/amdgpu: keep the stolen memory in visible vram region 2019-08-29 15:52:32 -05:00
gmc_v9_0.h drm/amdkfd: Expose function mmhub_v9_4_setup_vm_pt_regs() for kfd to use 2019-07-18 14:18:04 -05:00
gmc_v10_0.c drm/amdgpu: add dummy read by engines for some GCVM status registers in gfx10 2019-11-06 22:06:23 -05:00
gmc_v10_0.h drm/amdgpu: add gmc v10 ip block for navi10 (v6) 2019-06-20 21:35:29 -05:00
iceland_ih.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
iceland_ih.h
iceland_sdma_pkt_open.h
Kconfig mm/hmm: make HMM_MIRROR an implicit option 2019-08-07 14:58:06 -03:00
kv_dpm.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
kv_dpm.h
kv_smc.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
Makefile drm/amdgpu: make pmu support optional, again 2019-10-02 12:58:33 -05:00
mes_v10_1.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
mes_v10_1.h drm/amdgpu/mes10.1: Fix header guard 2019-07-08 13:56:02 -05:00
mmhub_v1_0.c drm/amdgpu/mmhub1: set mmhub clock gating for rn 2019-08-22 17:40:58 -05:00
mmhub_v1_0.h drm/amdgpu: add amdgpu_mmhub_funcs definition 2019-08-12 12:47:48 -05:00
mmhub_v2_0.c drm/amdgpu/gmc10: properly set BANK_SELECT and FRAGMENT_SIZE 2019-10-30 11:56:20 -04:00
mmhub_v2_0.h drm/amdgpu: add mmhub v2 block for navi10 (v4) 2019-06-20 21:35:29 -05:00
mmhub_v9_4.c drm/amdgpu/arcturus: properly set BANK_SELECT and FRAGMENT_SIZE 2019-11-06 15:26:20 -05:00
mmhub_v9_4.h drm/amdgpu: add mmhub clock gating for Arcturus 2019-08-12 12:47:49 -05:00
mmsch_v1_0.h
mxgpu_ai.c drm/amdgpu: cleanup vega10 SRIOV code path 2019-08-02 10:17:21 -05:00
mxgpu_ai.h drm/amdgpu: Add IDH_QUERY_ALIVE event for SR-IOV 2019-05-06 09:36:48 -05:00
mxgpu_vi.c drm/amd/amdgpu: fix spelling mistake "recieve" -> "receive" 2019-04-19 11:33:27 -05:00
mxgpu_vi.h
navi10_ih.c drm/amdgpu: drop drmP.h from navi10_ih.c 2019-07-31 14:33:21 -05:00
navi10_ih.h drm/amdgpu: add navi10 ih ip block (v3) 2019-06-20 21:35:30 -05:00
navi10_reg_init.c drm/amdgpu/discovery: move common discovery code out of navi1*_reg_base_init() 2019-08-06 13:53:05 -05:00
navi10_sdma_pkt_open.h drm/amdgpu: add sdma v5 packet header file 2019-06-20 21:16:38 -05:00
navi12_reg_init.c drm/amdgpu: initialize reg base for navi12 2019-08-02 10:30:39 -05:00
navi14_reg_init.c drm/amdgpu/discovery: move common discovery code out of navi1*_reg_base_init() 2019-08-06 13:53:05 -05:00
nbio_v2_3.c drm/amdgpu: add vcn nbio doorbell range setting for 2nd vcn instance 2019-07-18 14:18:05 -05:00
nbio_v2_3.h drm/amdgpu: add nbio v2.3 for navi10 (v4) 2019-06-20 21:18:36 -05:00
nbio_v6_1.c drm/amdgpu: enable IH doorbell for ring 1&2 on Vega 2019-03-19 15:36:58 -05:00
nbio_v6_1.h
nbio_v7_0.c drm/amdgpu: enable Doorbell support for Renoir (v2) 2019-08-12 12:47:50 -05:00
nbio_v7_0.h
nbio_v7_4.c drm/amdgpu: add vcn nbio doorbell range setting for 2nd vcn instance 2019-07-18 14:18:05 -05:00
nbio_v7_4.h drm/amdgpu: Add nbio 7.4 support for vega20 (v3) 2018-08-27 11:10:23 -05:00
nv.c drm/amdgpu: don't increment vram lost if we are in hibernation 2019-10-02 12:58:19 -05:00
nv.h drm/amdgpu: initialize reg base for navi12 2019-08-02 10:30:39 -05:00
nvd.h drm/amdgpu: add navi pm4 header 2019-06-20 21:16:38 -05:00
ObjectID.h drm/amdgpu: Add BRACKET_LAYOUT_ENUMs to ObjectID.h 2018-06-15 12:20:42 -05:00
ppsmc.h
psp_gfx_if.h drm/amdgpu: extend PSP FW loading support to 8 SDMA instances 2019-08-02 10:30:39 -05:00
psp_v3_1.c drm/amdgpu: remove redundant argument for psp_funcs::cmd_submit callback 2019-08-21 22:16:37 -05:00
psp_v3_1.h
psp_v10_0.c drm/amdgpu: remove redundant argument for psp_funcs::cmd_submit callback 2019-08-21 22:16:37 -05:00
psp_v10_0.h
psp_v11_0.c drm/amdgpu: remove redundant argument for psp_funcs::cmd_submit callback 2019-08-21 22:16:37 -05:00
psp_v11_0.h drm/amdgpu: Add psp 11.0 support for vega20. (v2) 2018-08-27 11:10:34 -05:00
psp_v12_0.c drm/amdgpu: remove redundant argument for psp_funcs::cmd_submit callback 2019-08-21 22:16:37 -05:00
psp_v12_0.h drm/amdgpu: add psp_v12_0 for renoir (v2) 2019-08-12 12:47:50 -05:00
r600_dpm.h
sdma_v2_4.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
sdma_v2_4.h
sdma_v3_0.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
sdma_v3_0.h
sdma_v4_0.c drm/amdgpu: Fix SDMA hang when performing VKexample test 2019-10-30 11:54:33 -04:00
sdma_v4_0.h
sdma_v5_0.c drm/amdgpu: add dummy read by engines for some GCVM status registers in gfx10 2019-11-06 22:06:23 -05:00
sdma_v5_0.h drm/amdgpu: add initial support for sdma v5.0 (v6) 2019-06-21 18:58:21 -05:00
si.c drm/amdgpu/si: fix ASIC tests 2019-08-29 15:52:32 -05:00
si.h
si_dma.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
si_dma.h
si_dpm.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
si_dpm.h drm/amdgpu: Remove wrapper layer of smu ip functions 2018-03-15 09:57:50 -05:00
si_enums.h drm/amdgpu: enable ABGR and XBGR formats (v2) 2018-08-27 11:10:19 -05:00
si_ih.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
si_ih.h
si_smc.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
sid.h drm/amdgpu: enable ABGR and XBGR formats (v2) 2018-08-27 11:10:19 -05:00
sislands_smc.h
smu_v11_0_i2c.c drm/amdgpu: Remove clock gating restore. 2019-09-17 14:25:01 -05:00
smu_v11_0_i2c.h drm/amdgpu: Vega20 SMU I2C HW engine controller. 2019-08-27 09:17:35 -05:00
soc15.c drm/amdgpu/renoir: move gfxoff handling into gfx9 module 2019-11-06 22:06:23 -05:00
soc15.h drm/amdgpu: dynamically initialize IP offset for Arcturus 2019-07-18 14:18:02 -05:00
soc15_common.h drm/amdgpu: cleanup vega10 SRIOV code path 2019-08-02 10:17:21 -05:00
soc15d.h drm/amdgpu: add jpeg packet defines to soc15d.h 2018-06-15 12:20:34 -05:00
ta_ras_if.h drm/amdgpu/psp: udpate ta_ras interface header 2019-06-11 11:51:28 -05:00
ta_xgmi_if.h drm/amdgpu/psp: add xgmi ta header 2018-11-06 14:02:41 -05:00
tonga_ih.c drm/amd: drop use of drmP.h in remaining files 2019-06-10 23:04:34 +02:00
tonga_ih.h
tonga_sdma_pkt_open.h
umc_v6_1.c drm/amdgpu: implement UMC 64 bits REG operations 2019-08-09 11:17:10 -05:00
umc_v6_1.h drm/amdgpu: implement umc ras init function 2019-08-02 10:30:38 -05:00
uvd_v4_2.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
uvd_v4_2.h
uvd_v5_0.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
uvd_v5_0.h
uvd_v6_0.c drm/amdgpu/uvd6: fix allocation size in enc ring test (v2) 2019-10-17 17:12:34 -04:00
uvd_v6_0.h
uvd_v7_0.c drm/amdgpu/uvd7: fix allocation size in enc ring test (v2) 2019-10-17 17:12:34 -04:00
uvd_v7_0.h
vce_v2_0.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
vce_v2_0.h
vce_v3_0.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
vce_v3_0.h
vce_v4_0.c drm/amdgpu: rename AMDGPU_GFXHUB/MMHUB macro with hub number 2019-07-18 14:18:01 -05:00
vce_v4_0.h
vcn_v1_0.c drm/amdgpu: modify amdgpu_vcn to support multiple instances 2019-07-18 14:18:05 -05:00
vcn_v1_0.h
vcn_v2_0.c Revert "drm/amdgpu: use direct loading on renoir vcn for the moment" 2019-08-22 17:48:46 -05:00
vcn_v2_0.h drm/amdgpu/VCN2: expose rings functions 2019-07-18 14:18:04 -05:00
vcn_v2_5.c drm/amdgpu: drop drmP.h from vcn_v2_5.c 2019-07-31 14:33:41 -05:00
vcn_v2_5.h drm/amdgpu: enable VCN2.5 on Arcturus 2019-07-18 14:18:05 -05:00
vega10_ih.c drm/amdgpu: fix no interrupt issue for renoir emu (v2) 2019-08-30 15:37:17 -05:00
vega10_ih.h
vega10_reg_init.c drm/amdgpu: enable Doorbell support for Renoir (v2) 2019-08-12 12:47:50 -05:00
vega10_sdma_pkt_open.h
vega20_reg_init.c drm/amdgpu: init RSMU and UMC ip base address for vega20 2019-07-31 14:48:51 -05:00
vi.c drm/amdgpu: add reset_method asic callback for vi 2019-07-30 23:24:10 -05:00
vi.h drm/amdgpu: Doorbell index initialization for ASICs before vega10 2018-11-28 15:55:32 -05:00
vid.h