drm/amd/display: fix mapping to non-allocated address[Why]There is an issue mapping non-allocated location of memory.It would allocate gpio registers from an array out of bounds.[How]Patch cor
drm/amd/display: fix mapping to non-allocated address[Why]There is an issue mapping non-allocated location of memory.It would allocate gpio registers from an array out of bounds.[How]Patch correct numbers of bounds for using.Tested-by: Daniel Wheeler <Daniel.Wheeler@amd.com>Reviewed-by: Martin Leung <Martin.Leung@amd.com>Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>Signed-off-by: Brandon Syu <Brandon.Syu@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
drm/amd/display: Fix comments[Why & how]Fix format and typo of comments.Acked-by: Alan Liu <HaoPing.Liu@amd.com>Signed-off-by: Samson Tam <Samson.Tam@amd.com>Tested-by: Daniel Wheeler <daniel.
drm/amd/display: Fix comments[Why & how]Fix format and typo of comments.Acked-by: Alan Liu <HaoPing.Liu@amd.com>Signed-off-by: Samson Tam <Samson.Tam@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm: amd/display: fix spelling of "function"Fix spellos of "function" in drivers/gpu/drm/amd/display/.Signed-off-by: Randy Dunlap <rdunlap@infradead.org>Cc: Harry Wentland <harry.wentland@amd.co
drm: amd/display: fix spelling of "function"Fix spellos of "function" in drivers/gpu/drm/amd/display/.Signed-off-by: Randy Dunlap <rdunlap@infradead.org>Cc: Harry Wentland <harry.wentland@amd.com>Cc: Leo Li <sunpeng.li@amd.com>Cc: amd-gfx@lists.freedesktop.orgCc: dri-devel@lists.freedesktop.orgSigned-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Drop CONFIG_DRM_AMD_DC_DCN2_0 and DSC_SUPPORTED[Why]DCN2 and DSC are stable enough to be build by default. So drop the flags.[How]Remove them using the unifdef tool. The foll
drm/amd/display: Drop CONFIG_DRM_AMD_DC_DCN2_0 and DSC_SUPPORTED[Why]DCN2 and DSC are stable enough to be build by default. So drop the flags.[How]Remove them using the unifdef tool. The following commands were executedin sequence:$ find -name '*.c' -exec unifdef -m -DCONFIG_DRM_AMD_DC_DSC_SUPPORT -DCONFIG_DRM_AMD_DC_DCN2_0 -UCONFIG_TRIM_DRM_AMD_DC_DCN2_0 '{}' ';'$ find -name '*.h' -exec unifdef -m -DCONFIG_DRM_AMD_DC_DSC_SUPPORT -DCONFIG_DRM_AMD_DC_DCN2_0 -UCONFIG_TRIM_DRM_AMD_DC_DCN2_0 '{}' ';'In addition:* Remove from kconfig, and replace any dependencies with DCN1_0.* Remove from any makefiles.* Fix and cleanup NV defninitions in dal_asic_id.h* Expand DCN1 ifdef to include DCN2 code in the following files: * clk_mgr/clk_mgr.c: dc_clk_mgr_create() * core/dc_resources.c: dc_create_resource_pool() * dce/dce_dmcu.c: dcn20_*lock_phy() * dce/dce_dmcu.c: dcn20_funcs * dce/dce_dmcu.c: dcn20_dmcu_create() * gpio/hw_factory.c: dal_hw_factory_init() * gpio/hw_translate.c: dal_hw_translate_init()Signed-off-by: Leo Li <sunpeng.li@amd.com>Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>Reviewed-by: Alex Deucher <alexander.deucher@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: add oem i2c implemenation in dc[why]Need it for some OEM I2C devices in Nv10[how]Link up code to parse OEM table and expose DC interfaceto access the pinsSigned-off-by: Jun
drm/amd/display: add oem i2c implemenation in dc[why]Need it for some OEM I2C devices in Nv10[how]Link up code to parse OEM table and expose DC interfaceto access the pinsSigned-off-by: Jun Lei <Jun.Lei@amd.com>Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: refactor gpio to allocate hw_container in constructor[why]if dynamic allocation fails during gpio_open, it will cause crash due topage fault.[how]handle allocation when gpio o
drm/amd/display: refactor gpio to allocate hw_container in constructor[why]if dynamic allocation fails during gpio_open, it will cause crash due topage fault.[how]handle allocation when gpio object gets created and prevent from callinggpio_open if allocation failedSigned-off-by: Su Sung Chung <Su.Chung@amd.com>Reviewed-by: Jun Lei <Jun.Lei@amd.com>Acked-by: Leo Li <sunpeng.li@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Change offset_to_id to reflect what id_to_offset returnsid_to_offset does not point to the same reg offset that offset_to_id checks for,causing unintended assertsSigned-off-by:
drm/amd/display: Change offset_to_id to reflect what id_to_offset returnsid_to_offset does not point to the same reg offset that offset_to_id checks for,causing unintended assertsSigned-off-by: Murton Liu <murton.liu@amd.com>Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>Acked-by: Leo Li <sunpeng.li@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Implement generic MUX registers (v2)[Why]Logic & structures for generic regs does not exist in DC currently.[How]Implement register masks/shifts and relevant functions for gene
drm/amd/display: Implement generic MUX registers (v2)[Why]Logic & structures for generic regs does not exist in DC currently.[How]Implement register masks/shifts and relevant functions for generic mux,similar to existing HPD and DDC objects.V2: fix includes for kalloc/free (Alex)Signed-off-by: Murton Liu <murton.liu@amd.com>Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>Acked-by: Joshua Aberback <Joshua.Aberback@amd.com>Acked-by: Leo Li <sunpeng.li@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Add GPIO support for DCN2Adding support to program GPIO HW block of DCN2Signed-off-by: Harry Wentland <harry.wentland@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.
drm/amd/display: Add GPIO support for DCN2Adding support to program GPIO HW block of DCN2Signed-off-by: Harry Wentland <harry.wentland@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>