Feifei Xu
e75279e871
drm/amdgpu/sdma4: Add raven2 golden setting
...
Golden register settings from the hw team.
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:36:32 -05:00
Feifei Xu
e7497a302b
drm/amdgpu/sdma4: specify raven2 firmware.
...
use raven2 sdma firmware.
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:36:22 -05:00
Likun Gao
e11fa1b68a
drm/amdgpu: add psp support for raven2
...
Modified for using raven2_asd.bin to replace raven_asd.bin for raven2
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:36:18 -05:00
Feifei Xu
8b47cc9bb1
drm/amdgpu: add raven2 vcn firmware support
...
Specify raven2 vcn firmware on amdgpu_vce_sw_init.
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:36:15 -05:00
Feifei Xu
54c4d17e98
drm/amdgpu: add raven2 to gpu_info firmware
...
Add gpu_info firmware for raven2.
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:36:11 -05:00
Alex Deucher
1879e6a7f8
drm/amdgpu: set external rev id for raven2
...
It's different from raven1.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:36:08 -05:00
Huang Rui
4cb0becb26
drm/amdgpu: move get_rev_id at first before load gpu_info firmware
...
Rev id is used for identifying Raven2 series of chips. So we would better to
initialize it at first.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:36:04 -05:00
Alex Deucher
44876ae294
drm/amdgpu: use IP presence to free uvd and vce handles
...
Rather than checking the asic type, check whether the UVD
or VCE IP blocks exist. This way we don't have to update
the check with new asics that use VCN.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:36:00 -05:00
Kenneth Feng
a06c3ee083
drm/amdgpu: enable gfxoff in non-sriov and stutter mode by default
...
enable gfxoff in non-sriov and stutter mode by default
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:57 -05:00
Huang Rui
367b013ce0
drm/amdgpu: add new raven series device
...
This patch is to add new pci device for raven series.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:54 -05:00
Huang Rui
40c2358b11
drm/amdgpu: add ip blocks for picasso (v2)
...
Add PCO IPs.
V2: enable VCN as well
Signed-off-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:52 -05:00
Kenneth Feng
1a84d967c1
drm/amdgpu: enable vcn powergating for PCO
...
enable vcn pg
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:47 -05:00
Kenneth Feng
91468057d3
drm/amdgpu: enable mmhub power gating
...
Remove some functions due to the design change.
All the mmhub power gating sequence is moved to
smu fw.Driver sends the message to enable mmhub
powergating.We can also skip the fw version check
since the old fw version is in a very early stage
and we don't use that fw for release.
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:44 -05:00
Kenneth Feng
a4494fda32
drm/amdgpu: Enable SDMA power gating for PCO
...
Enable SDMA power gating
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Acked-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:38 -05:00
Kenneth Feng
8c7bf5834a
drm/amdgpu: Add pg support for gfxoff for PCO
...
Add pg support for gfxoff.
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:33 -05:00
Likun Gao
b95874cfa8
drm/amdgpu: add picasso for amdgpu kms
...
Add picasso for amdgpu kms
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:30 -05:00
Likun Gao
84ad2e1bd6
drm/amdgpu: add picasso support for sdma_v4
...
Add sdma support to picasso
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:28 -05:00
Likun Gao
501a580ae6
drm/amdgpu: add picasso support for gfx_v9_0
...
Add gfx support to picasso
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:24 -05:00
Likun Gao
e21f561ad5
drm/amdgpu: add picasso support for gmc
...
Same as raven.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:21 -05:00
Likun Gao
79f3641cc0
drm/amdgpu: add clockgating support for picasso
...
Treat it the same as raven for now.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:18 -05:00
Likun Gao
86771d9a58
drm/amdgpu: add picasso support for vcn
...
Add vcn support for picasso.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:15 -05:00
Likun Gao
669018bdcd
drm/amdgpu: add picasso ucode loading method
...
Same as raven.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:11 -05:00
Likun Gao
227f3dc5f6
drm/amdgpu: initilize picasso psp firmwares support
...
Same as raven for now.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:08 -05:00
Likun Gao
b22ab73314
drm/amd/display/dm: add picasso support
...
Add support for picasso to the display manager.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:03 -05:00
Likun Gao
5f4e2085ee
drm/amdgpu: add picasso support for vm
...
Add vm support for picasso.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:35:00 -05:00
Likun Gao
ad5a67a7ea
drm/amdgpu: add soc15 support for picasso
...
Add the IP blocks, clock and powergating flags, and common clockgating support.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:34:57 -05:00
Likun Gao
be9699e392
drm/amdgpu: add picasso to asic_type enum
...
Add picasso to amd_asic_type enum and amdgpu_asic_name[].
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-14 09:34:48 -05:00
Dave Airlie
2dc7bad71c
Merge tag 'drm-misc-next-2018-09-13' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
...
drm-misc-next for 4.20:
UAPI Changes:
- Add host endian variants for the most common formats (Gerd)
- Fail ADDFB2 for big-endian drivers that don't advertise BE quirk (Gerd)
- clear smem_start in fbdev for drm drivers to avoid leaking fb addr (Daniel)
Cross-subsystem Changes:
Core Changes:
- fix drm_mode_addfb() on big endian machines (Gerd)
- add timeline point to syncobj find+replace (Chunming)
- more drmP.h removal effort (Daniel)
- split uapi portions of drm_atomic.c into drm_atomic_uapi.c (Daniel)
Driver Changes:
- bochs: Convert open-coded portions to use helpers (Peter)
- vkms: Add cursor support (Haneen)
- udmabuf: Lots of fixups (mostly cosmetic afaict) (Gerd)
- qxl: Convert to use fbdev helper (Peter)
Cc: Gerd Hoffmann <kraxel@redhat.com >
Cc: Chunming Zhou <david1.zhou@amd.com >
Cc: Daniel Vetter <daniel.vetter@ffwll.ch >
Cc: Peter Wu <peter@lekensteyn.nl >
Cc: Haneen Mohammed <hamohammed.sa@gmail.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
From: Sean Paul <sean@poorly.run >
Link: https://patchwork.freedesktop.org/patch/msgid/20180913130254.GA156437@art_vandelay
2018-09-14 09:43:16 +10:00
Christian König
646b902598
drm/amdgpu: use a single linked list for amdgpu_vm_bo_base
...
Instead of the double linked list. Gets the size of amdgpu_vm_pt down to
64 bytes again.
We could even reduce it down to 32 bytes, but that would require some
rather extreme hacks.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Chunming Zhou <david1.zhou@amd.com >
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:12 -05:00
Christian König
e83dfe4d86
drm/amdgpu: remove amdgpu_bo_list_entry.robj (v2)
...
We can get that just by casting tv.bo.
v2: squash in kfd fix (Alex)
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Chunming Zhou <david1.zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:12 -05:00
Christian König
0c70dd4985
drm/amdgpu: allow fragment processing for invalid PTEs
...
That should improve the PRT performance on Vega quite a bit.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Junwei Zhang <Jerry.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:11 -05:00
Christian König
1b1d5c43db
drm/amdgpu: use the maximum possible fragment size on Vega/Raven
...
The fragment size controls only the L1 on Vega/Raven and we now don't
have any extra overhead any more because of larger fragments.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Acked-by: Junwei Zhang <Jerry.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:10 -05:00
Christian König
dfcd99f627
drm/amdgpu: meld together VM fragment and huge page handling
...
This optimizes the generating of PTEs by walking the hierarchy only once
for a range and making changes as necessary.
It allows for both huge (2MB) as well giant (1GB) pages to be used on
Vega and Raven.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Acked-by: Junwei Zhang <Jerry.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:10 -05:00
Christian König
dfa70550f5
drm/amdgpu: use leaf iterator for filling PTs
...
Less overhead and is the starting point for further cleanups and
improvements.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:10 -05:00
Christian König
d4085ea9bc
drm/amdgpu: use the DFS iterator in amdgpu_vm_invalidate_pds v2
...
Less code and easier to maintain.
v2: rename the function as well
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:09 -05:00
Christian König
229a37f834
drm/amdgpu: use dfs iterator to free PDs/PTs
...
Allows us to free all PDs/PTs without recursion.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:09 -05:00
Christian König
d72a6887ee
drm/amdgpu: use leaf iterator for allocating PD/PT
...
Less code and allows for easier error handling.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:08 -05:00
Christian König
73633e3223
drm/amdgpu: add some VM PD/PT iterators v2
...
Both a leaf as well as dfs iterator to walk over all the PDs/PTs.
v2: update comments and fix for_each_amdgpu_vm_pt_dfs_safe
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:08 -05:00
James Zhu
52e211c1f0
drm/amdgpu:Add error message when register failed to reach expected value
...
Add error message when register failed to reach expected value, It will
help discover potential issue.
Signed-off-by: James Zhu <James.Zhu@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 15:14:08 -05:00
Ville Syrjälä
351c4dbe4f
drm/amdgpu: Use per-device driver_features to disable atomic
...
Disable atomic on a per-device basis instead of for all devices.
Made possible by the new device.driver_features thing.
Cc: Alex Deucher <alexander.deucher@amd.com >
Cc: "Christian König" <christian.koenig@amd.com >
Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com >
Cc: Harry Wentland <harry.wentland@amd.com >
Cc: Michel Dänzer <michel@daenzer.net >
Suggested-by: Michel Dänzer <michel@daenzer.net >
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20180913163147.27900-2-ville.syrjala@linux.intel.com
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-13 21:24:06 +03:00
David Francis
6b7eab2ce6
drm/amd: Add PSP DMCU support
...
DMCU (Display Microcontroller Unit) is a GPU chip involved in
eDP features like Adaptive Backlight Modulation and Panel Self
Refresh.
PSP is already equipped to handle DMCU firmware loading, all
that is needed is to translate between the new DMCU ucode ID and
the equivalent psp_gfx_fw_type.
Signed-off-by: David Francis <David.Francis@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-12 16:29:31 -05:00
David Francis
01fcfc83fe
drm/amd: Add ucode DMCU support
...
DMCU (Display Microcontroller Unit) is a GPU chip involved in
eDP features like Adaptive Backlight Modulation and Panel Self
Refresh.
DMCU has two pieces of firmware: the ERAM and the interrupt
vectors, which must be loaded seperately.
To this end, the DMCU firmware has a custom header and parsing
logic similar to MEC, to extract the two ucodes from a single
struct firmware.
Signed-off-by: David Francis <David.Francis@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-12 16:29:09 -05:00
Oak Zeng
240cd9a642
drm/amdgpu: Move fault hash table to amdgpu vm
...
In stead of share one fault hash table per device, make it
per vm. This can avoid inter-process lock issue when fault
hash table is full.
Change-Id: I5d1281b7c41eddc8e26113e010516557588d3708
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com >
Suggested-by: Christian Konig <Christian.Koenig@amd.com >
Suggested-by: Felix Kuehling <Felix.Kuehling@amd.com >
Reviewed-by: Christian Konig <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-12 16:28:53 -05:00
Chunming Zhou
7e7bf8de43
drm/amdgpu: move cs dependencies front a bit
...
cs dependencies handling doesn't need in vm resv
Signed-off-by: Chunming Zhou <david1.zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-12 16:28:41 -05:00
Christian König
433ca05494
drm/amdgpu: try allocating VRAM as power of two
...
Try to allocate VRAM in power of two sizes and only fallback to vram
split sizes if that fails.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-12 16:28:28 -05:00
Christian König
0165de9832
drm/amdgpu: fix error handling in amdgpu_cs_user_fence_chunk
...
Slowly leaking memory one page at a time :)
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-11 16:35:00 -05:00
Andrey Grodzovsky
d8de8260a4
drm/amdgpu: Fix SDMA TO after GPU reset v3
...
After GPU reset amdgpu_vm_clear_bo triggers VM flush
but job->vm_pd_addr is not set causing SDMA TO.
v2:
Per advise by Christian König avoid flushing VM for jobs where
job->vm_pd_addr wasn't explicitly set.
v3:
Shortcut vm_flush_needed early.
Fixes cbd5285 drm/amdgpu: move setting the GART addr into TTM.
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-11 16:30:48 -05:00
Christian König
1c860a022f
drm/amdgpu: add amdgpu_vm_update_func
...
Add helper to call the update function for both BO and shadow.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-11 16:30:32 -05:00
Christian König
ba79fde47b
drm/amdgpu: add amdgpu_vm_pt_parent helper
...
Add a function to get the parent of a PD/PT.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-11 16:30:16 -05:00
Christian König
7893499e30
drm/amdgpu: fix error handling in amdgpu_cs_user_fence_chunk
...
Slowly leaking memory one page at a time :)
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-09-11 16:29:58 -05:00