diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2018-02-09 03:44:08 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-13 17:57:59 +0100 |
commit | 82626363a217d79128c447ab296777b461e9f050 (patch) | |
tree | 14ee04c19f1c95ba44bd257d6d44eacc610e0d2a /include/drm/drm_cache.h | |
parent | drm/vc4: Expose performance counters to userspace (diff) | |
download | linux-82626363a217d79128c447ab296777b461e9f050.tar.xz linux-82626363a217d79128c447ab296777b461e9f050.zip |
drm: add func to get max iomem address v2
it will be used to check if the driver needs swiotlb
v2: Don't use inline, instead, move function to drm_memory.c (Michel Daenzer <michel@daenzer.net>)
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180209024410.1469-1-david1.zhou@amd.com
Diffstat (limited to 'include/drm/drm_cache.h')
-rw-r--r-- | include/drm/drm_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_cache.h b/include/drm/drm_cache.h index beab0f0d0cfb..bfe1639df02d 100644 --- a/include/drm/drm_cache.h +++ b/include/drm/drm_cache.h @@ -38,6 +38,8 @@ void drm_clflush_pages(struct page *pages[], unsigned long num_pages); void drm_clflush_sg(struct sg_table *st); void drm_clflush_virt_range(void *addr, unsigned long length); +u64 drm_get_max_iomem(void); + static inline bool drm_arch_can_wc_memory(void) { |