* [PATCH 0/3] Bunch of cleanups in DM and amdgpu_crtc
@ 2017-11-08 15:33 Harry Wentland
[not found] ` <20171108153339.19723-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Harry Wentland @ 2017-11-08 15:33 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Harry Wentland
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(-)
--
2.14.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] amdgpu/dm: Remove fb_location form fill_plane_attributes
[not found] ` <20171108153339.19723-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
@ 2017-11-08 15:33 ` Harry Wentland
2017-11-08 15:33 ` [PATCH 2/3] drm/amdgpu: Remove unused dc_stream from amdgpu_crtc Harry Wentland
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Harry Wentland @ 2017-11-08 15:33 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Harry Wentland
We no longer set the framebuffer address here so this is now
dead code.
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 86c39fc68b2f..ccfbf14c0f09 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -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;
--
2.14.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] drm/amdgpu: Remove unused dc_stream from amdgpu_crtc
[not found] ` <20171108153339.19723-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
2017-11-08 15:33 ` [PATCH 1/3] amdgpu/dm: Remove fb_location form fill_plane_attributes Harry Wentland
@ 2017-11-08 15:33 ` Harry Wentland
2017-11-08 15:33 ` [PATCH 3/3] amdgpu/dm: Remove unused forward declaration Harry Wentland
2017-11-08 15:51 ` [PATCH 0/3] Bunch of cleanups in DM and amdgpu_crtc Andrey Grodzovsky
3 siblings, 0 replies; 5+ messages in thread
From: Harry Wentland @ 2017-11-08 15:33 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Harry Wentland
It's no longer used. In fact, there is no more dc_stream object.
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
index 4069a3b2f55f..dd9ecd3e40e8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
@@ -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;
};
--
2.14.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] amdgpu/dm: Remove unused forward declaration
[not found] ` <20171108153339.19723-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
2017-11-08 15:33 ` [PATCH 1/3] amdgpu/dm: Remove fb_location form fill_plane_attributes Harry Wentland
2017-11-08 15:33 ` [PATCH 2/3] drm/amdgpu: Remove unused dc_stream from amdgpu_crtc Harry Wentland
@ 2017-11-08 15:33 ` Harry Wentland
2017-11-08 15:51 ` [PATCH 0/3] Bunch of cleanups in DM and amdgpu_crtc Andrey Grodzovsky
3 siblings, 0 replies; 5+ messages in thread
From: Harry Wentland @ 2017-11-08 15:33 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Harry Wentland
dc_stream has long been renamed to dc_stream_state, so this
forward declaration hasn't been used at all.
Change-Id: I0c03cfe600f39eb1ec4f8015be340c62a7d22eb3
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
index 82a7457d7f62..6b81e124ea57 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
@@ -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;
--
2.14.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] Bunch of cleanups in DM and amdgpu_crtc
[not found] ` <20171108153339.19723-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
` (2 preceding siblings ...)
2017-11-08 15:33 ` [PATCH 3/3] amdgpu/dm: Remove unused forward declaration Harry Wentland
@ 2017-11-08 15:51 ` Andrey Grodzovsky
3 siblings, 0 replies; 5+ messages in thread
From: Andrey Grodzovsky @ 2017-11-08 15:51 UTC (permalink / raw)
To: Harry Wentland, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
On 11/08/2017 10:33 AM, Harry Wentland wrote:
> 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(-)
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-11-08 15:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-08 15:33 [PATCH 0/3] Bunch of cleanups in DM and amdgpu_crtc Harry Wentland
[not found] ` <20171108153339.19723-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
2017-11-08 15:33 ` [PATCH 1/3] amdgpu/dm: Remove fb_location form fill_plane_attributes Harry Wentland
2017-11-08 15:33 ` [PATCH 2/3] drm/amdgpu: Remove unused dc_stream from amdgpu_crtc Harry Wentland
2017-11-08 15:33 ` [PATCH 3/3] amdgpu/dm: Remove unused forward declaration Harry Wentland
2017-11-08 15:51 ` [PATCH 0/3] Bunch of cleanups in DM and amdgpu_crtc Andrey Grodzovsky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.