diff options
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
| -rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.h | 12 | 
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h index fc1c0d8611a8..7a4fa1b8655b 100644 --- a/drivers/gpu/drm/msm/msm_gpu.h +++ b/drivers/gpu/drm/msm/msm_gpu.h @@ -13,7 +13,6 @@  #include <linux/interconnect.h>  #include <linux/pm_opp.h>  #include <linux/regulator/consumer.h> -#include <linux/reset.h>  #include "msm_drv.h"  #include "msm_fence.h" @@ -50,6 +49,12 @@ struct msm_gpu_funcs {  	int (*set_param)(struct msm_gpu *gpu, struct msm_file_private *ctx,  			 uint32_t param, uint64_t value, uint32_t len);  	int (*hw_init)(struct msm_gpu *gpu); + +	/** +	 * @ucode_load: Optional hook to upload fw to GEM objs +	 */ +	int (*ucode_load)(struct msm_gpu *gpu); +  	int (*pm_suspend)(struct msm_gpu *gpu);  	int (*pm_resume)(struct msm_gpu *gpu);  	void (*submit)(struct msm_gpu *gpu, struct msm_gem_submit *submit); @@ -281,9 +286,6 @@ struct msm_gpu {  	bool hw_apriv;  	struct thermal_cooling_device *cooling; - -	/* To poll for cx gdsc collapse during gpu recovery */ -	struct reset_control *cx_collapse;  };  static inline struct msm_gpu *dev_to_gpu(struct device *dev) @@ -499,7 +501,7 @@ struct msm_gpu_submitqueue {  	struct msm_file_private *ctx;  	struct list_head node;  	struct idr fence_idr; -	struct mutex idr_lock; +	struct spinlock idr_lock;  	struct mutex lock;  	struct kref ref;  	struct drm_sched_entity *entity;  |