Chunming Zhou
05a72a2864
drm/amdgpu: add gtt print like vram when dump mm table V2
...
Signed-off-by: Chunming Zhou <[email protected] >
Reviewed-by: Christian König <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-04-28 17:32:53 -04:00
Chris Wilson
4e64e5539d
drm: Improve drm_mm search (and fix topdown allocation) with rbtrees
...
The drm_mm range manager claimed to support top-down insertion, but it
was neither searching for the top-most hole that could fit the
allocation request nor fitting the request to the hole correctly.
In order to search the range efficiently, we create a secondary index
for the holes using either their size or their address. This index
allows us to find the smallest hole or the hole at the bottom or top of
the range efficiently, whilst keeping the hole stack to rapidly service
evictions.
v2: Search for holes both high and low. Rename flags to mode.
v3: Discover rb_entry_safe() and use it!
v4: Kerneldoc for enum drm_mm_insert_mode.
Signed-off-by: Chris Wilson <[email protected] >
Reviewed-by: Joonas Lahtinen <[email protected] >
Cc: Alex Deucher <[email protected] >
Cc: "Christian König" <[email protected] >
Cc: David Airlie <[email protected] >
Cc: Russell King <[email protected] >
Cc: Daniel Vetter <[email protected] >
Cc: Jani Nikula <[email protected] >
Cc: Sean Paul <[email protected] >
Cc: Lucas Stach <[email protected] >
Cc: Christian Gmeiner <[email protected] >
Cc: Rob Clark <[email protected] >
Cc: Thierry Reding <[email protected] >
Cc: Stephen Warren <[email protected] >
Cc: Alexandre Courbot <[email protected] >
Cc: Eric Anholt <[email protected] >
Cc: Sinclair Yeh <[email protected] >
Cc: Thomas Hellstrom <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Reviewed-by: Sinclair Yeh <[email protected] > # vmwgfx
Reviewed-by: Lucas Stach <[email protected] > #etnaviv
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-02-03 11:10:32 +01:00
Kees Cook
613e61a025
drm/amdgpu: use designated initializers
...
Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers. These were identified during
allyesconfig builds of x86, arm, and arm64, with most initializer fixes
extracted from grsecurity.
Signed-off-by: Kees Cook <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-01-27 11:12:40 -05:00
Daniel Vetter
b5c3714fe8
drm/mm: Convert to drm_printer
...
Including all drivers. I thought about keeping small compat functions
to avoid having to change all drivers. But I really like the
drm_printer idea, so figured spreading it more widely is a good thing.
v2: Review from Chris:
- Natural argument order and better name for drm_mm_print.
- show_mm() macro in the selftest.
Cc: Rob Clark <[email protected] >
Cc: Russell King <[email protected] >
Cc: Alex Deucher <[email protected] >
Cc: Christian König <[email protected] >
Cc: Lucas Stach <[email protected] >
Cc: Tomi Valkeinen <[email protected] >
Cc: Thierry Reding <[email protected] >
Cc: Jyri Sarha <[email protected] >
Reviewed-by: Chris Wilson <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2016-12-30 12:08:28 +01:00
Flora Cui
47e50d5c0d
drm/amdgpu: fix gtt available page num accounting
...
Signed-off-by: Flora Cui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Reviewed-by: Christian König <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2016-12-06 18:08:34 -05:00
Christian König
d2e938701a
drm/amdgpu: set at least the node size in the gtt manager
...
Otherwise the new VM code becomes confused.
Signed-off-by: Christian König <[email protected] >
Reviewed-by: Edward O'Callaghan <[email protected] >
Tested-by: Mike Lothian <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2016-10-25 14:38:15 -04:00
Flora Cui
8159730394
drm/amdgpu: fix gtt_mgr bo's offset
...
Signed-off-by: Flora Cui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Reviewed-by: Christian König <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2016-09-28 16:16:23 -04:00
Christian König
bb990bb092
drm/amdgpu: add a custom GTT memory manager v2
...
Only allocate address space when we really need it.
v2: fix a typo, add correct function description,
stop leaking the node in the error case.
Signed-off-by: Christian König <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Reviewed-by: Felix Kuehling <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2016-09-28 16:16:19 -04:00