Loading drivers/gpu/drm/msm/Kconfig +10 −0 Original line number Diff line number Diff line Loading @@ -113,3 +113,13 @@ config DRM_SDE_EVTLOG_DEBUG driver during fatal errors and enable some display-driver logging into an internal buffer (this avoids logging overhead). config DRM_SDE_RSC bool "Enable sde resource state coordinator(rsc) driver" depends on DRM_MSM help The SDE DRM RSC provides display Resource State Coordinator support to vote the ab/ib bandwidth for primary display. Each rsc client can vote their active state. Any active request from any client avoids the display core power collapse. A client can also register for display core power collapse events on rsc. drivers/gpu/drm/msm/Makefile +3 −2 Original line number Diff line number Diff line Loading @@ -50,10 +50,11 @@ msm_drm-y := \ sde_io_util.o \ sde/sde_hw_reg_dma_v1_color_proc.o \ sde/sde_hw_color_proc_v4.o \ sde_rsc.o \ sde_rsc_hw.o \ sde/sde_hw_ad4.o \ msm_drm-$(CONFIG_DRM_SDE_RSC) += sde_rsc.o \ sde_rsc_hw.o \ # use drm gpu driver only if qcom_kgsl driver not available ifneq ($(CONFIG_QCOM_KGSL),y) msm_drm-y += adreno/adreno_device.o \ Loading drivers/gpu/drm/msm/sde/sde_core_perf.c +1 −1 Original line number Diff line number Diff line Loading @@ -18,13 +18,13 @@ #include <linux/sort.h> #include <linux/clk.h> #include <linux/bitmap.h> #include <linux/sde_rsc.h> #include "msm_prop.h" #include "sde_kms.h" #include "sde_trace.h" #include "sde_crtc.h" #include "sde_rsc.h" #include "sde_core_perf.h" static struct sde_kms *_sde_crtc_get_kms(struct drm_crtc *crtc) Loading drivers/gpu/drm/msm/sde/sde_encoder.c +2 −2 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ #define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__ #include <linux/debugfs.h> #include <linux/seq_file.h> #include <linux/sde_rsc.h> #include "msm_drv.h" #include "sde_kms.h" Loading @@ -32,7 +33,6 @@ #include "sde_formats.h" #include "sde_encoder_phys.h" #include "sde_color_processing.h" #include "sde_rsc.h" #include "sde_power_handle.h" #include "sde_hw_dsc.h" Loading Loading @@ -1857,7 +1857,7 @@ struct drm_encoder *sde_encoder_init( sde_enc->rsc_client = sde_rsc_client_create(SDE_RSC_INDEX, name, disp_info->is_primary); if (IS_ERR_OR_NULL(sde_enc->rsc_client)) { SDE_ERROR("sde rsc client create failed :%ld\n", SDE_DEBUG("sde rsc client create failed :%ld\n", PTR_ERR(sde_enc->rsc_client)); sde_enc->rsc_client = NULL; } Loading drivers/gpu/drm/msm/sde/sde_encoder_phys.h +1 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #define __SDE_ENCODER_PHYS_H__ #include <linux/jiffies.h> #include <linux/sde_rsc.h> #include "sde_kms.h" #include "sde_hw_intf.h" Loading @@ -27,8 +28,6 @@ #include "sde_encoder.h" #include "sde_connector.h" #include "sde_rsc.h" #define SDE_ENCODER_NAME_MAX 16 /* wait for at most 2 vsync for lowest refresh rate (24hz) */ Loading Loading
drivers/gpu/drm/msm/Kconfig +10 −0 Original line number Diff line number Diff line Loading @@ -113,3 +113,13 @@ config DRM_SDE_EVTLOG_DEBUG driver during fatal errors and enable some display-driver logging into an internal buffer (this avoids logging overhead). config DRM_SDE_RSC bool "Enable sde resource state coordinator(rsc) driver" depends on DRM_MSM help The SDE DRM RSC provides display Resource State Coordinator support to vote the ab/ib bandwidth for primary display. Each rsc client can vote their active state. Any active request from any client avoids the display core power collapse. A client can also register for display core power collapse events on rsc.
drivers/gpu/drm/msm/Makefile +3 −2 Original line number Diff line number Diff line Loading @@ -50,10 +50,11 @@ msm_drm-y := \ sde_io_util.o \ sde/sde_hw_reg_dma_v1_color_proc.o \ sde/sde_hw_color_proc_v4.o \ sde_rsc.o \ sde_rsc_hw.o \ sde/sde_hw_ad4.o \ msm_drm-$(CONFIG_DRM_SDE_RSC) += sde_rsc.o \ sde_rsc_hw.o \ # use drm gpu driver only if qcom_kgsl driver not available ifneq ($(CONFIG_QCOM_KGSL),y) msm_drm-y += adreno/adreno_device.o \ Loading
drivers/gpu/drm/msm/sde/sde_core_perf.c +1 −1 Original line number Diff line number Diff line Loading @@ -18,13 +18,13 @@ #include <linux/sort.h> #include <linux/clk.h> #include <linux/bitmap.h> #include <linux/sde_rsc.h> #include "msm_prop.h" #include "sde_kms.h" #include "sde_trace.h" #include "sde_crtc.h" #include "sde_rsc.h" #include "sde_core_perf.h" static struct sde_kms *_sde_crtc_get_kms(struct drm_crtc *crtc) Loading
drivers/gpu/drm/msm/sde/sde_encoder.c +2 −2 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ #define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__ #include <linux/debugfs.h> #include <linux/seq_file.h> #include <linux/sde_rsc.h> #include "msm_drv.h" #include "sde_kms.h" Loading @@ -32,7 +33,6 @@ #include "sde_formats.h" #include "sde_encoder_phys.h" #include "sde_color_processing.h" #include "sde_rsc.h" #include "sde_power_handle.h" #include "sde_hw_dsc.h" Loading Loading @@ -1857,7 +1857,7 @@ struct drm_encoder *sde_encoder_init( sde_enc->rsc_client = sde_rsc_client_create(SDE_RSC_INDEX, name, disp_info->is_primary); if (IS_ERR_OR_NULL(sde_enc->rsc_client)) { SDE_ERROR("sde rsc client create failed :%ld\n", SDE_DEBUG("sde rsc client create failed :%ld\n", PTR_ERR(sde_enc->rsc_client)); sde_enc->rsc_client = NULL; } Loading
drivers/gpu/drm/msm/sde/sde_encoder_phys.h +1 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #define __SDE_ENCODER_PHYS_H__ #include <linux/jiffies.h> #include <linux/sde_rsc.h> #include "sde_kms.h" #include "sde_hw_intf.h" Loading @@ -27,8 +28,6 @@ #include "sde_encoder.h" #include "sde_connector.h" #include "sde_rsc.h" #define SDE_ENCODER_NAME_MAX 16 /* wait for at most 2 vsync for lowest refresh rate (24hz) */ Loading