replace common qcom sources with samsung ones
This commit is contained in:
@@ -203,6 +203,16 @@ struct kgsl_memobj_node {
|
||||
unsigned long priv;
|
||||
};
|
||||
|
||||
enum gpu_exception_type {
|
||||
GPU_HANG, // = 0
|
||||
GPU_PAGE_FAULT,
|
||||
GPU_TIMEOUT,
|
||||
GPU_PREEMPTION_FAULT,
|
||||
GPU_CXWAIT_TIMEOUT,
|
||||
GPU_HFI_ERROR,
|
||||
GPU_EXCEPTION_LIST_END, // = 6
|
||||
};
|
||||
|
||||
struct kgsl_device {
|
||||
struct device *dev;
|
||||
const char *name;
|
||||
@@ -351,6 +361,8 @@ struct kgsl_device {
|
||||
u32 max_syncobj_hw_fence_count;
|
||||
/** @file_mutex: Mutex to protect device open and close operations */
|
||||
struct mutex file_mutex;
|
||||
|
||||
atomic_t gpu_exception_count[GPU_EXCEPTION_LIST_END];
|
||||
};
|
||||
|
||||
#define KGSL_MMU_DEVICE(_mmu) \
|
||||
@@ -529,6 +541,10 @@ struct kgsl_process_private {
|
||||
* @fg_work: Work struct to schedule foreground work
|
||||
*/
|
||||
struct work_struct fg_work;
|
||||
/**
|
||||
* @bg_work: Work struct to schedule background work
|
||||
*/
|
||||
struct work_struct bg_work;
|
||||
/**
|
||||
* @reclaim_lock: Mutex lock to protect KGSL_PROC_PINNED_STATE
|
||||
*/
|
||||
@@ -569,10 +585,8 @@ struct kgsl_device_private {
|
||||
* struct kgsl_snapshot - details for a specific snapshot instance
|
||||
* @ib1base: Active IB1 base address at the time of fault
|
||||
* @ib2base: Active IB2 base address at the time of fault
|
||||
* @ib3base: Active IB3 base address at the time of fault
|
||||
* @ib1size: Number of DWORDS pending in IB1 at the time of fault
|
||||
* @ib2size: Number of DWORDS pending in IB2 at the time of fault
|
||||
* @ib3size: Number of DWORDS pending in IB3 at the time of fault
|
||||
* @ib1dumped: Active IB1 dump status to sansphot binary
|
||||
* @ib2dumped: Active IB2 dump status to sansphot binary
|
||||
* @start: Pointer to the start of the static snapshot region
|
||||
@@ -592,12 +606,10 @@ struct kgsl_device_private {
|
||||
* @recovered: True if GPU was recovered after previous snapshot
|
||||
*/
|
||||
struct kgsl_snapshot {
|
||||
u64 ib1base;
|
||||
u64 ib2base;
|
||||
u64 ib3base;
|
||||
u32 ib1size;
|
||||
u32 ib2size;
|
||||
u32 ib3size;
|
||||
uint64_t ib1base;
|
||||
uint64_t ib2base;
|
||||
unsigned int ib1size;
|
||||
unsigned int ib2size;
|
||||
bool ib1dumped;
|
||||
bool ib2dumped;
|
||||
u64 ib1base_lpac;
|
||||
|
Reference in New Issue
Block a user