Bunch of cleanups in DM and amdgpu_crtc
Subsystems (3)
cover Bunch of cleanups in DM and amdgpu_crtc
Just removing a couple unused things I noticed while going through the code.
Harry Wentland (3):
amdgpu/dm: Remove fb_location form fill_plane_attributes drm/amdgpu: Remove unused dc_stream from amdgpu_crtc amdgpu/dm: Remove unused forward declaration
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 -- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 13 ------------- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 -- 3 files changed, 17 deletions(-)
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20171108153339.19723-1-harry.wentland-5C7GfCeVMHo@public.gmane.org
PATCH 1/3 amdgpu/dm: Remove fb_location form fill_plane_attributes
We no longer set the framebuffer address here so this is now dead code.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 13 ------------- 1 file changed, 13 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -13
@@ -1764,8 +1764,6 @@ static int fill_plane_attributes_from_fb(struct amdgpu_device *adev, const struct amdgpu_framebuffer *amdgpu_fb) {uint64_t tiling_flags; -uint64_t fb_location =0 ; -uint64_t chroma_addr =0 ;unsigned int awidth;const struct drm_framebuffer *fb = &amdgpu_fb->base;int ret =0 ;
@@ -1811,8 +1809,6 @@ static int fill_plane_attributes_from_fb(struct amdgpu_device *adev,if (plane_state->format <SURFACE_PIXEL_FORMAT_VIDEO_BEGIN ) { plane_state->address.type =PLN_ADDR_TYPE_GRAPHICS ; - plane_state->address.grph.addr.low_part =lower_32_bits (fb_location); - plane_state->address.grph.addr.high_part =upper_32_bits (fb_location); plane_state->plane_size.grph.surface_size.x =0 ; plane_state->plane_size.grph.surface_size.y =0 ; plane_state->plane_size.grph.surface_size.width = fb->width;
@@ -1825,15 +1821,6 @@ static int fill_plane_attributes_from_fb(struct amdgpu_device *adev, }else { awidth =ALIGN (fb->width,64 ); plane_state->address.type =PLN_ADDR_TYPE_VIDEO_PROGRESSIVE ; - plane_state->address.video_progressive.luma_addr.low_part - =lower_32_bits (fb_location); - plane_state->address.video_progressive.luma_addr.high_part - =upper_32_bits (fb_location); - chroma_addr = fb_location + (u64)(awidth * fb->height); - plane_state->address.video_progressive.chroma_addr.low_part - =lower_32_bits (chroma_addr); - plane_state->address.video_progressive.chroma_addr.high_part - =upper_32_bits (chroma_addr); plane_state->plane_size.video.luma_size.x =0 ; plane_state->plane_size.video.luma_size.y =0 ; plane_state->plane_size.video.luma_size.width = awidth;
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/3 drm/amdgpu: Remove unused dc_stream from amdgpu_crtc
In reply to a message not in the archiveIt's no longer used. In fact, there is no more dc_stream object.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +0 -2
@@ -437,8 +437,6 @@ struct amdgpu_crtc {enum amdgpu_interrupt_state vsync_timer_enabled;int otg_inst; -/* After Set Mode stream will be non-NULL */ -const struct dc_stream *stream;struct drm_pending_vblank_event *event; };
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/3 amdgpu/dm: Remove unused forward declaration
In reply to a message not in the archivedc_stream has long been renamed to dc_stream_state, so this forward declaration hasn't been used at all.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +0 -2
@@ -199,8 +199,6 @@ struct amdgpu_framebuffer;struct amdgpu_display_manager ;struct dc_validation_set ;struct dc_plane_state ; -/* TODO rename to dc_stream_state */ -struct dc_stream ;struct dm_plane_state {struct drm_plane_state base;
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Andrey Grodzovsky
Reviewed-byQuoted 8 lines · Harry Wentland
Just removing a couple unused things I noticed while going through the code.
Harry Wentland (3):
amdgpu/dm: Removefb_locationformfill_plane_attributesdrm/amdgpu: Remove unuseddc_streamfromamdgpu_crtcamdgpu/dm: Remove unused forward declaration
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 -- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 13 ------------- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 -- 3 files changed, 17 deletions(-)
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx