dma-buf/sw_sync: build sw-sync as module for gki
Fixes: da8f900b52 ("dma-buf/sw_sync: sw_sync register as misc devices")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: If012d5f85b261690cb172b7b61b98212406f6a3d
This commit is contained in:
@@ -18,7 +18,7 @@ config SYNC_FILE
|
||||
Documentation/driver-api/sync_file.rst.
|
||||
|
||||
config SW_SYNC
|
||||
bool "Sync File Validation Framework"
|
||||
tristate "Sync File Validation Framework"
|
||||
default n
|
||||
depends on SYNC_FILE
|
||||
help
|
||||
@@ -29,6 +29,13 @@ config SW_SYNC
|
||||
WARNING: improper use of this can result in deadlocking kernel
|
||||
drivers from userspace. Intended for test and debug only.
|
||||
|
||||
config SW_SYNC_DEBUG
|
||||
bool "SW Sync Debug"
|
||||
depends on DEBUG_FS && SW_SYNC && NO_GKI
|
||||
default SW_SYNC
|
||||
help
|
||||
To get current fence point and timeline status.
|
||||
|
||||
config UDMABUF
|
||||
bool "userspace dmabuf misc driver"
|
||||
default n
|
||||
|
||||
@@ -4,7 +4,8 @@ obj-y := dma-buf.o dma-fence.o dma-fence-array.o dma-fence-chain.o \
|
||||
obj-$(CONFIG_DMABUF_HEAPS) += dma-heap.o
|
||||
obj-$(CONFIG_DMABUF_HEAPS) += heaps/
|
||||
obj-$(CONFIG_SYNC_FILE) += sync_file.o
|
||||
obj-$(CONFIG_SW_SYNC) += sw_sync.o sync_debug.o
|
||||
obj-$(CONFIG_SW_SYNC) += sw_sync.o
|
||||
obj-$(CONFIG_SW_SYNC_DEBUG) += sync_debug.o
|
||||
obj-$(CONFIG_UDMABUF) += udmabuf.o
|
||||
obj-$(CONFIG_DMABUF_SYSFS_STATS) += dma-buf-sysfs-stats.o
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <linux/debugfs.h>
|
||||
#include "sync_debug.h"
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
static struct dentry *dbgfs;
|
||||
|
||||
static LIST_HEAD(sync_timeline_list_head);
|
||||
@@ -189,4 +188,3 @@ static __init int sync_debugfs_init(void)
|
||||
return 0;
|
||||
}
|
||||
late_initcall(sync_debugfs_init);
|
||||
#endif
|
||||
|
||||
@@ -62,9 +62,9 @@ struct sync_pt {
|
||||
struct rb_node node;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
extern const struct file_operations sw_sync_debugfs_fops;
|
||||
|
||||
#ifdef CONFIG_SW_SYNC_DEBUG
|
||||
void sync_timeline_debug_add(struct sync_timeline *obj);
|
||||
void sync_timeline_debug_remove(struct sync_timeline *obj);
|
||||
void sync_file_debug_add(struct sync_file *fence);
|
||||
|
||||
Reference in New Issue
Block a user