drm/amdgpu: rename static functions in amdgpu_display.c
Subsystems (3)
PATCH 1/13 drm/amdgpu: rename static functions in amdgpu_display.c
Add display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 41 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 19 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +22 -19
@@ -37,7 +37,8 @@#include <drm/drm_edid.h> #include <drm/drm_fb_helper.h> -static void amdgpu_flip_callback (struct dma_fence *f,struct dma_fence_cb *cb) +static void amdgpu_display_flip_callback (struct dma_fence *f, +struct dma_fence_cb *cb) {struct amdgpu_flip_work *work = container_of(cb, struct amdgpu_flip_work, cb);
@@ -46,8 +47,8 @@ static void amdgpu_flip_callback(struct dma_fence *f, struct dma_fence_cb *cb)schedule_work (&work->flip_work.work); } -static bool amdgpu_flip_handle_fence (struct amdgpu_flip_work *work, -struct dma_fence **f) +static bool amdgpu_display_flip_handle_fence (struct amdgpu_flip_work *work, +struct dma_fence **f) {struct dma_fence *fence= *f;
@@ -56,14 +57,15 @@ static bool amdgpu_flip_handle_fence(struct amdgpu_flip_work *work, *f =NULL ; -if (!dma_fence_add_callback (fence, &work->cb, amdgpu_flip_callback)) +if (!dma_fence_add_callback (fence, &work->cb, + amdgpu_display_flip_callback))return true;dma_fence_put (fence);return false; } -static void amdgpu_flip_work_func (struct work_struct *__work) +static void amdgpu_display_flip_work_func (struct work_struct *__work) {struct delayed_work *delayed_work = container_of(__work, struct delayed_work, work);
@@ -77,11 +79,11 @@ static void amdgpu_flip_work_func(struct work_struct *__work)unsigned i;int vpos, hpos; -if (amdgpu_flip_handle_fence (work, &work->excl)) +if (amdgpu_display_flip_handle_fence (work, &work->excl))return ;for (i =0 ; i < work->shared_count; ++i) -if (amdgpu_flip_handle_fence (work, &work->shared[i])) +if (amdgpu_display_flip_handle_fence (work, &work->shared[i]))return ;/* Wait until we're out of the vertical blank period before the one
@@ -118,7 +120,7 @@ static void amdgpu_flip_work_func(struct work_struct *__work)/* * Handle unpin events outside the interrupt handler proper. */ -static void amdgpu_unpin_work_func (struct work_struct *__work) +static void amdgpu_display_unpin_work_func (struct work_struct *__work) {struct amdgpu_flip_work *work = container_of(__work, struct amdgpu_flip_work, unpin_work);
@@ -163,8 +165,8 @@ int amdgpu_crtc_page_flip_target(struct drm_crtc *crtc,if (work ==NULL )return -ENOMEM ; -INIT_DELAYED_WORK (&work->flip_work, amdgpu_flip_work_func); -INIT_WORK (&work->unpin_work, amdgpu_unpin_work_func); +INIT_DELAYED_WORK (&work->flip_work, amdgpu_display_flip_work_func); +INIT_WORK (&work->unpin_work, amdgpu_display_unpin_work_func); work->event = event; work->adev = adev;
@@ -229,7 +231,7 @@ int amdgpu_crtc_page_flip_target(struct drm_crtc *crtc,/* update crtc fb */ crtc->primary->fb = fb;spin_unlock_irqrestore (&crtc->dev->event_lock, flags); -amdgpu_flip_work_func (&work->flip_work.work); +amdgpu_display_flip_work_func (&work->flip_work.work);return 0 ; pflip_cleanup:
@@ -480,7 +482,7 @@ bool amdgpu_ddc_probe(struct amdgpu_connector *amdgpu_connector,return true; } -static void amdgpu_user_framebuffer_destroy (struct drm_framebuffer *fb) +static void amdgpu_display_user_framebuffer_destroy (struct drm_framebuffer *fb) {struct amdgpu_framebuffer *amdgpu_fb =to_amdgpu_framebuffer (fb);
@@ -489,9 +491,10 @@ static void amdgpu_user_framebuffer_destroy(struct drm_framebuffer *fb)kfree (amdgpu_fb); } -static int amdgpu_user_framebuffer_create_handle (struct drm_framebuffer *fb, -struct drm_file *file_priv, -unsigned int *handle) +static int amdgpu_display_user_framebuffer_create_handle ( +struct drm_framebuffer *fb, +struct drm_file *file_priv, +unsigned int *handle) {struct amdgpu_framebuffer *amdgpu_fb =to_amdgpu_framebuffer (fb);
@@ -499,8 +502,8 @@ static int amdgpu_user_framebuffer_create_handle(struct drm_framebuffer *fb, }static const struct drm_framebuffer_funcs amdgpu_fb_funcs = { - .destroy = amdgpu_user_framebuffer_destroy, - .create_handle = amdgpu_user_framebuffer_create_handle, + .destroy = amdgpu_display_user_framebuffer_destroy, + .create_handle = amdgpu_display_user_framebuffer_create_handle, };uint32_t amdgpu_display_framebuffer_domains (struct amdgpu_device *adev)
@@ -667,7 +670,7 @@ void amdgpu_update_display_priority(struct amdgpu_device *adev) } -static bool is_hdtv_mode (const struct drm_display_mode *mode) +static bool amdgpu_display_is_hdtv_mode (const struct drm_display_mode *mode) {/* try and guess if this is a tv or a monitor */ if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */
@@ -724,7 +727,7 @@ bool amdgpu_crtc_scaling_mode_fixup(struct drm_crtc *crtc, ((amdgpu_encoder->underscan_type ==UNDERSCAN_ON ) || ((amdgpu_encoder->underscan_type ==UNDERSCAN_AUTO ) &&drm_detect_hdmi_monitor (amdgpu_connector_edid (connector)) && - is_hdtv_mode(mode)))) { + amdgpu_display_is_hdtv_mode(mode)))) { if (amdgpu_encoder->underscan_hborder != 0) amdgpu_crtc->h_border = amdgpu_encoder->underscan_hborder; else
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1516649894-4518-1-git-send-email-Samuel.Li-5C7GfCeVMHo@public.gmane.org
PATCH 2/13 drm/amdgpu: rename amdgpu_crtc_page_flip_target
Add display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 10 +++++----- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 10 +++++----- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +5 -5
@@ -142,11 +142,11 @@ static void amdgpu_display_unpin_work_func(struct work_struct *__work)kfree (work); } -int amdgpu_crtc_page_flip_target (struct drm_crtc *crtc, -struct drm_framebuffer *fb, -struct drm_pending_vblank_event *event, -uint32_t page_flip_flags,uint32_t target, -struct drm_modeset_acquire_ctx *ctx) +int amdgpu_display_crtc_page_flip_target (struct drm_crtc *crtc, +struct drm_framebuffer *fb, +struct drm_pending_vblank_event *event, +uint32_t page_flip_flags,uint32_t target, +struct drm_modeset_acquire_ctx *ctx) {struct drm_device *dev = crtc->dev;struct amdgpu_device *adev = dev->dev_private;
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +5 -5
@@ -670,11 +670,11 @@ void amdgpu_print_display_setup(struct drm_device *dev);int amdgpu_modeset_create_props (struct amdgpu_device *adev);int amdgpu_crtc_set_config (struct drm_mode_set *set,struct drm_modeset_acquire_ctx *ctx); -int amdgpu_crtc_page_flip_target (struct drm_crtc *crtc, -struct drm_framebuffer *fb, -struct drm_pending_vblank_event *event, -uint32_t page_flip_flags,uint32_t target, -struct drm_modeset_acquire_ctx *ctx); +int amdgpu_display_crtc_page_flip_target (struct drm_crtc *crtc, +struct drm_framebuffer *fb, +struct drm_pending_vblank_event *event, +uint32_t page_flip_flags,uint32_t target, +struct drm_modeset_acquire_ctx *ctx);extern const struct drm_mode_config_funcs amdgpu_mode_funcs;#endif
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +1 -1
@@ -2519,7 +2519,7 @@ static const struct drm_crtc_funcs dce_v10_0_crtc_funcs = { .gamma_set = dce_v10_0_crtc_gamma_set, .set_config = amdgpu_crtc_set_config, .destroy = dce_v10_0_crtc_destroy, - .page_flip_target = amdgpu_crtc_page_flip_target, + .page_flip_target = amdgpu_display_crtc_page_flip_target, };static void dce_v10_0_crtc_dpms (struct drm_crtc *crtc,int mode)
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +1 -1
@@ -2594,7 +2594,7 @@ static const struct drm_crtc_funcs dce_v11_0_crtc_funcs = { .gamma_set = dce_v11_0_crtc_gamma_set, .set_config = amdgpu_crtc_set_config, .destroy = dce_v11_0_crtc_destroy, - .page_flip_target = amdgpu_crtc_page_flip_target, + .page_flip_target = amdgpu_display_crtc_page_flip_target, };static void dce_v11_0_crtc_dpms (struct drm_crtc *crtc,int mode)
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +1 -1
@@ -2409,7 +2409,7 @@ static const struct drm_crtc_funcs dce_v6_0_crtc_funcs = { .gamma_set = dce_v6_0_crtc_gamma_set, .set_config = amdgpu_crtc_set_config, .destroy = dce_v6_0_crtc_destroy, - .page_flip_target = amdgpu_crtc_page_flip_target, + .page_flip_target = amdgpu_display_crtc_page_flip_target, };static void dce_v6_0_crtc_dpms (struct drm_crtc *crtc,int mode)
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +1 -1
@@ -2423,7 +2423,7 @@ static const struct drm_crtc_funcs dce_v8_0_crtc_funcs = { .gamma_set = dce_v8_0_crtc_gamma_set, .set_config = amdgpu_crtc_set_config, .destroy = dce_v8_0_crtc_destroy, - .page_flip_target = amdgpu_crtc_page_flip_target, + .page_flip_target = amdgpu_display_crtc_page_flip_target, };static void dce_v8_0_crtc_dpms (struct drm_crtc *crtc,int mode)
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -1
@@ -132,7 +132,7 @@ static const struct drm_crtc_funcs dce_virtual_crtc_funcs = { .gamma_set = dce_virtual_crtc_gamma_set, .set_config = amdgpu_crtc_set_config, .destroy = dce_virtual_crtc_destroy, - .page_flip_target = amdgpu_crtc_page_flip_target, + .page_flip_target = amdgpu_display_crtc_page_flip_target, };static void dce_virtual_crtc_dpms (struct drm_crtc *crtc,int mode)
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/13 drm/amdgpu: rename amdgpu_crtc_set_config
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 4 ++-- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +2 -2
@@ -257,8 +257,8 @@ int amdgpu_display_crtc_page_flip_target(struct drm_crtc *crtc,return r; } -int amdgpu_crtc_set_config (struct drm_mode_set *set, -struct drm_modeset_acquire_ctx *ctx) +int amdgpu_display_crtc_set_config (struct drm_mode_set *set, +struct drm_modeset_acquire_ctx *ctx) {struct drm_device *dev;struct amdgpu_device *adev;
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +2 -2
@@ -668,8 +668,8 @@ int amdgpu_align_pitch(struct amdgpu_device *adev, int width, int bpp, bool tile/* amdgpu_display.c */ void amdgpu_print_display_setup (struct drm_device *dev);int amdgpu_modeset_create_props (struct amdgpu_device *adev); -int amdgpu_crtc_set_config (struct drm_mode_set *set, -struct drm_modeset_acquire_ctx *ctx); +int amdgpu_display_crtc_set_config (struct drm_mode_set *set, +struct drm_modeset_acquire_ctx *ctx); int amdgpu_display_crtc_page_flip_target(struct drm_crtc *crtc, struct drm_framebuffer *fb, struct drm_pending_vblank_event *event,
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +1 -1
@@ -2517,7 +2517,7 @@ static const struct drm_crtc_funcs dce_v10_0_crtc_funcs = { .cursor_set2 = dce_v10_0_crtc_cursor_set2, .cursor_move = dce_v10_0_crtc_cursor_move, .gamma_set = dce_v10_0_crtc_gamma_set, - .set_config = amdgpu_crtc_set_config, + .set_config = amdgpu_display_crtc_set_config, .destroy = dce_v10_0_crtc_destroy, .page_flip_target = amdgpu_display_crtc_page_flip_target, };
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +1 -1
@@ -2592,7 +2592,7 @@ static const struct drm_crtc_funcs dce_v11_0_crtc_funcs = { .cursor_set2 = dce_v11_0_crtc_cursor_set2, .cursor_move = dce_v11_0_crtc_cursor_move, .gamma_set = dce_v11_0_crtc_gamma_set, - .set_config = amdgpu_crtc_set_config, + .set_config = amdgpu_display_crtc_set_config, .destroy = dce_v11_0_crtc_destroy, .page_flip_target = amdgpu_display_crtc_page_flip_target, };
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +1 -1
@@ -2407,7 +2407,7 @@ static const struct drm_crtc_funcs dce_v6_0_crtc_funcs = { .cursor_set2 = dce_v6_0_crtc_cursor_set2, .cursor_move = dce_v6_0_crtc_cursor_move, .gamma_set = dce_v6_0_crtc_gamma_set, - .set_config = amdgpu_crtc_set_config, + .set_config = amdgpu_display_crtc_set_config, .destroy = dce_v6_0_crtc_destroy, .page_flip_target = amdgpu_display_crtc_page_flip_target, };
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +1 -1
@@ -2421,7 +2421,7 @@ static const struct drm_crtc_funcs dce_v8_0_crtc_funcs = { .cursor_set2 = dce_v8_0_crtc_cursor_set2, .cursor_move = dce_v8_0_crtc_cursor_move, .gamma_set = dce_v8_0_crtc_gamma_set, - .set_config = amdgpu_crtc_set_config, + .set_config = amdgpu_display_crtc_set_config, .destroy = dce_v8_0_crtc_destroy, .page_flip_target = amdgpu_display_crtc_page_flip_target, };
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -1
@@ -130,7 +130,7 @@ static const struct drm_crtc_funcs dce_virtual_crtc_funcs = { .cursor_set2 = NULL, .cursor_move = NULL, .gamma_set = dce_virtual_crtc_gamma_set, - .set_config = amdgpu_crtc_set_config, + .set_config = amdgpu_display_crtc_set_config, .destroy = dce_virtual_crtc_destroy, .page_flip_target = amdgpu_display_crtc_page_flip_target, };
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/13 drm/amdgpu: rename amdgpu_print_display_setup
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -355,7 +355,7 @@ static const char *hpd_names[6] = { "HPD6", }; -void amdgpu_print_display_setup (struct drm_device *dev) +void amdgpu_display_print_display_setup (struct drm_device *dev) {struct drm_connector *connector;struct amdgpu_connector *amdgpu_connector;
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +1 -1
@@ -666,7 +666,7 @@ bool amdgpu_fbdev_robj_is_fb(struct amdgpu_device *adev, struct amdgpu_bo *robj)int amdgpu_align_pitch (struct amdgpu_device *adev,int width,int bpp,bool tiled);/* amdgpu_display.c */ -void amdgpu_print_display_setup (struct drm_device *dev); +void amdgpu_display_print_display_setup (struct drm_device *dev);int amdgpu_modeset_create_props (struct amdgpu_device *adev);int amdgpu_display_crtc_set_config (struct drm_mode_set *set,struct drm_modeset_acquire_ctx *ctx);
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +1 -1
@@ -2841,7 +2841,7 @@ static int dce_v10_0_sw_init(void *handle) }if (amdgpu_atombios_get_connector_info_from_object_table (adev)) -amdgpu_print_display_setup (adev->ddev); +amdgpu_display_print_display_setup (adev->ddev);else return -EINVAL ;
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +1 -1
@@ -2957,7 +2957,7 @@ static int dce_v11_0_sw_init(void *handle) }if (amdgpu_atombios_get_connector_info_from_object_table (adev)) -amdgpu_print_display_setup (adev->ddev); +amdgpu_display_print_display_setup (adev->ddev);else return -EINVAL ;
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +1 -1
@@ -2711,7 +2711,7 @@ static int dce_v6_0_sw_init(void *handle) ret =amdgpu_atombios_get_connector_info_from_object_table (adev);if (ret) -amdgpu_print_display_setup (adev->ddev); +amdgpu_display_print_display_setup (adev->ddev);else return -EINVAL ;
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +1 -1
@@ -2741,7 +2741,7 @@ static int dce_v8_0_sw_init(void *handle) }if (amdgpu_atombios_get_connector_info_from_object_table (adev)) -amdgpu_print_display_setup (adev->ddev); +amdgpu_display_print_display_setup (adev->ddev);else return -EINVAL ;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 5/13 drm/amdgpu: rename amdgpu_ddc_probe
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 10 ++++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 6 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 3 ++- 3 files changed, 11 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +6 -4
@@ -877,7 +877,7 @@ amdgpu_connector_vga_detect(struct drm_connector *connector, bool force) ret = connector_status_disconnected;if (amdgpu_connector->ddc_bus) - dret =amdgpu_ddc_probe (amdgpu_connector, false); + dret =amdgpu_display_ddc_probe (amdgpu_connector, false);if (dret) { amdgpu_connector->detected_by_load = false;amdgpu_connector_free_edid (connector);
@@ -998,7 +998,7 @@ amdgpu_connector_dvi_detect(struct drm_connector *connector, bool force) }if (amdgpu_connector->ddc_bus) - dret =amdgpu_ddc_probe (amdgpu_connector, false); + dret =amdgpu_display_ddc_probe (amdgpu_connector, false);if (dret) { amdgpu_connector->detected_by_load = false;amdgpu_connector_free_edid (connector);
@@ -1401,7 +1401,8 @@ amdgpu_connector_dp_detect(struct drm_connector *connector, bool force)/* setup ddc on the bridge */ amdgpu_atombios_encoder_setup_ext_encoder_ddc (encoder);/* bridge chips are always aux */ -if (amdgpu_ddc_probe (amdgpu_connector, true))/* try DDC */ +/* try DDC */ +if (amdgpu_display_ddc_probe (amdgpu_connector, true)) ret = connector_status_connected;else if (amdgpu_connector->dac_load_detect) {/* try load detection */ const struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private;
@@ -1421,7 +1422,8 @@ amdgpu_connector_dp_detect(struct drm_connector *connector, bool force) ret = connector_status_connected; }else {/* try non-aux ddc (DP to DVI/HDMI/etc. adapter) */ -if (amdgpu_ddc_probe (amdgpu_connector, false)) +if (amdgpu_display_ddc_probe (amdgpu_connector, + false)) ret = connector_status_connected; } }
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +3 -3
@@ -432,11 +432,11 @@ void amdgpu_display_print_display_setup(struct drm_device *dev) }/** -* amdgpu_ddc_probe +* amdgpu_display_ddc_probe * */ -bool amdgpu_ddc_probe (struct amdgpu_connector *amdgpu_connector, -bool use_aux) +bool amdgpu_display_ddc_probe (struct amdgpu_connector *amdgpu_connector, +bool use_aux) {u8 out =0x0 ;u8 buf[8 ];
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +2 -1
@@ -631,7 +631,8 @@ bool amdgpu_dig_monitor_is_duallink(struct drm_encoder *encoder,u16 amdgpu_encoder_get_dp_bridge_encoder_id (struct drm_encoder *encoder);struct drm_encoder *amdgpu_get_external_encoder (struct drm_encoder *encoder); -bool amdgpu_ddc_probe (struct amdgpu_connector *amdgpu_connector,bool use_aux); +bool amdgpu_display_ddc_probe (struct amdgpu_connector *amdgpu_connector, +bool use_aux);void amdgpu_encoder_set_active_device (struct drm_encoder *encoder);
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 6/13 drm/amdgpu: rename amdgpu_framebuffer_init
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 11 +++++------ drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +5 -6
@@ -520,11 +520,10 @@ uint32_t amdgpu_display_framebuffer_domains(struct amdgpu_device *adev)return domain; } -int -amdgpu_framebuffer_init (struct drm_device *dev, -struct amdgpu_framebuffer *rfb, -const struct drm_mode_fb_cmd2 *mode_cmd, -struct drm_gem_object *obj) +int amdgpu_display_framebuffer_init (struct drm_device *dev, +struct amdgpu_framebuffer *rfb, +const struct drm_mode_fb_cmd2 *mode_cmd, +struct drm_gem_object *obj) {int ret; rfb->obj = obj;
@@ -565,7 +564,7 @@ amdgpu_user_framebuffer_create(struct drm_device *dev,return ERR_PTR (-ENOMEM ); } - ret =amdgpu_framebuffer_init (dev, amdgpu_fb, mode_cmd, obj); + ret =amdgpu_display_framebuffer_init (dev, amdgpu_fb, mode_cmd, obj);if (ret) {kfree (amdgpu_fb);drm_gem_object_put_unlocked (obj);
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +2 -1
@@ -227,7 +227,8 @@ static int amdgpufb_create(struct drm_fb_helper *helper, info->par = rfbdev; info->skip_vt_switch = true; - ret =amdgpu_framebuffer_init (adev->ddev, &rfbdev->rfb, &mode_cmd, gobj); + ret =amdgpu_display_framebuffer_init (adev->ddev, &rfbdev->rfb, + &mode_cmd, gobj);if (ret) {DRM_ERROR ("failed to initialize framebuffer %d\n" , ret); goto out;
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +4 -4
@@ -641,10 +641,10 @@ int amdgpu_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe, ktime_t *stime, ktime_t *etime, const struct drm_display_mode *mode); -int amdgpu_framebuffer_init (struct drm_device *dev, -struct amdgpu_framebuffer *rfb, -const struct drm_mode_fb_cmd2 *mode_cmd, -struct drm_gem_object *obj); +int amdgpu_display_framebuffer_init (struct drm_device *dev, +struct amdgpu_framebuffer *rfb, +const struct drm_mode_fb_cmd2 *mode_cmd, +struct drm_gem_object *obj);int amdgpufb_remove (struct drm_device *dev,struct drm_framebuffer *fb);
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 7/13 drm/amdgpu: rename amdgpu_user_framebuffer_create
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_display.h | 6 +++--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +4 -4
@@ -537,9 +537,9 @@ int amdgpu_display_framebuffer_init(struct drm_device *dev, }struct drm_framebuffer * -amdgpu_user_framebuffer_create (struct drm_device *dev, -struct drm_file *file_priv, -const struct drm_mode_fb_cmd2 *mode_cmd) +amdgpu_display_user_framebuffer_create (struct drm_device *dev, +struct drm_file *file_priv, +const struct drm_mode_fb_cmd2 *mode_cmd) {struct drm_gem_object *obj;struct amdgpu_framebuffer *amdgpu_fb;
@@ -575,7 +575,7 @@ amdgpu_user_framebuffer_create(struct drm_device *dev, }const struct drm_mode_config_funcs amdgpu_mode_funcs = { - .fb_create = amdgpu_user_framebuffer_create, + .fb_create = amdgpu_display_user_framebuffer_create, .output_poll_changed = drm_fb_helper_output_poll_changed, };
drivers/gpu/drm/amd/amdgpu/amdgpu_display.h +3 -3
@@ -25,8 +25,8 @@uint32_t amdgpu_display_framebuffer_domains (struct amdgpu_device *adev);struct drm_framebuffer * -amdgpu_user_framebuffer_create (struct drm_device *dev, -struct drm_file *file_priv, -const struct drm_mode_fb_cmd2 *mode_cmd); +amdgpu_display_user_framebuffer_create (struct drm_device *dev, +struct drm_file *file_priv, +const struct drm_mode_fb_cmd2 *mode_cmd);#endif
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
@@ -826,7 +826,7 @@ dm_atomic_state_alloc_free(struct drm_atomic_state *state) }static const struct drm_mode_config_funcs amdgpu_dm_mode_funcs = { - .fb_create = amdgpu_user_framebuffer_create, + .fb_create = amdgpu_display_user_framebuffer_create, .output_poll_changed = drm_fb_helper_output_poll_changed, .atomic_check = amdgpu_dm_atomic_check, .atomic_commit = amdgpu_dm_atomic_commit,
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 8/13 drm/amdgpu: rename amdgpu_modeset_create_props
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 2 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -597,7 +597,7 @@ static const struct drm_prop_enum_list amdgpu_dither_enum_list[] = { AMDGPU_FMT_DITHER_ENABLE, "on" }, }; -int amdgpu_modeset_create_props (struct amdgpu_device *adev) +int amdgpu_display_modeset_create_props (struct amdgpu_device *adev) {int sz;
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +1 -1
@@ -668,7 +668,7 @@ int amdgpu_align_pitch(struct amdgpu_device *adev, int width, int bpp, bool tile/* amdgpu_display.c */ void amdgpu_display_print_display_setup (struct drm_device *dev); -int amdgpu_modeset_create_props (struct amdgpu_device *adev); +int amdgpu_display_modeset_create_props (struct amdgpu_device *adev);int amdgpu_display_crtc_set_config (struct drm_mode_set *set,struct drm_modeset_acquire_ctx *ctx); int amdgpu_display_crtc_page_flip_target(struct drm_crtc *crtc,
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +1 -1
@@ -2826,7 +2826,7 @@ static int dce_v10_0_sw_init(void *handle) adev->ddev->mode_config.fb_base = adev->gmc.aper_base; - r =amdgpu_modeset_create_props (adev); + r =amdgpu_display_modeset_create_props (adev);if (r)return r;
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +1 -1
@@ -2941,7 +2941,7 @@ static int dce_v11_0_sw_init(void *handle) adev->ddev->mode_config.fb_base = adev->gmc.aper_base; - r =amdgpu_modeset_create_props (adev); + r =amdgpu_display_modeset_create_props (adev);if (r)return r;
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +1 -1
@@ -2695,7 +2695,7 @@ static int dce_v6_0_sw_init(void *handle) adev->ddev->mode_config.prefer_shadow =1 ; adev->ddev->mode_config.fb_base = adev->gmc.aper_base; - r =amdgpu_modeset_create_props (adev); + r =amdgpu_display_modeset_create_props (adev);if (r)return r;
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +1 -1
@@ -2726,7 +2726,7 @@ static int dce_v8_0_sw_init(void *handle) adev->ddev->mode_config.fb_base = adev->gmc.aper_base; - r =amdgpu_modeset_create_props (adev); + r =amdgpu_display_modeset_create_props (adev);if (r)return r;
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -1
@@ -408,7 +408,7 @@ static int dce_virtual_sw_init(void *handle) adev->ddev->mode_config.fb_base = adev->gmc.aper_base; - r =amdgpu_modeset_create_props (adev); + r =amdgpu_display_modeset_create_props (adev);if (r)return r;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
@@ -1316,7 +1316,7 @@ static int amdgpu_dm_mode_config_init(struct amdgpu_device *adev) adev->ddev->mode_config.fb_base = adev->gmc.aper_base; - r =amdgpu_modeset_create_props (adev); + r =amdgpu_display_modeset_create_props (adev);if (r)return r;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 9/13 drm/amdgpu: rename amdgpu_update_display_priority
In reply to a message not in the archiveRename as amdgpu_display_update_priority for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -1
@@ -1834,7 +1834,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev, struct amdgpu_job* job, bool force);void amdgpu_device_pci_config_reset (struct amdgpu_device *adev);bool amdgpu_device_need_post (struct amdgpu_device *adev); -void amdgpu_update_display_priority (struct amdgpu_device *adev); +void amdgpu_display_update_priority (struct amdgpu_device *adev);void amdgpu_cs_report_moved_bytes (struct amdgpu_device *adev,u64 num_bytes,u64 num_vis_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -659,7 +659,7 @@ int amdgpu_display_modeset_create_props(struct amdgpu_device *adev)return 0 ; } -void amdgpu_update_display_priority (struct amdgpu_device *adev) +void amdgpu_display_update_priority (struct amdgpu_device *adev) {/* adjustment options for the display watermarks */ if ((amdgpu_disp_priority ==0 ) || (amdgpu_disp_priority >2 ))
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +1 -1
@@ -1205,7 +1205,7 @@ static void dce_v10_0_bandwidth_update(struct amdgpu_device *adev)u32 num_heads =0 , lb_size;int i; -amdgpu_update_display_priority (adev); +amdgpu_display_update_priority (adev);for (i =0 ; i < adev->mode_info.num_crtc; i++) {if (adev->mode_info.crtcs[i]->base.enabled)
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +1 -1
@@ -1229,7 +1229,7 @@ static void dce_v11_0_bandwidth_update(struct amdgpu_device *adev)u32 num_heads =0 , lb_size;int i; -amdgpu_update_display_priority (adev); +amdgpu_display_update_priority (adev);for (i =0 ; i < adev->mode_info.num_crtc; i++) {if (adev->mode_info.crtcs[i]->base.enabled)
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +1 -1
@@ -1108,7 +1108,7 @@ static void dce_v6_0_bandwidth_update(struct amdgpu_device *adev)if (!adev->mode_info.mode_config_initialized)return ; -amdgpu_update_display_priority (adev); +amdgpu_display_update_priority (adev);for (i =0 ; i < adev->mode_info.num_crtc; i++) {if (adev->mode_info.crtcs[i]->base.enabled)
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +1 -1
@@ -1144,7 +1144,7 @@ static void dce_v8_0_bandwidth_update(struct amdgpu_device *adev)u32 num_heads =0 , lb_size;int i; -amdgpu_update_display_priority (adev); +amdgpu_display_update_priority (adev);for (i =0 ; i < adev->mode_info.num_crtc; i++) {if (adev->mode_info.crtcs[i]->base.enabled)
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 10/13 drm/amdgpu: rename amdgpu_crtc_scaling_mode_fixup
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 6 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 6 +++--- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +3 -3
@@ -681,9 +681,9 @@ static bool amdgpu_display_is_hdtv_mode(const struct drm_display_mode *mode)return false; } -bool amdgpu_crtc_scaling_mode_fixup (struct drm_crtc *crtc, -const struct drm_display_mode *mode, -struct drm_display_mode *adjusted_mode) +bool amdgpu_display_crtc_scaling_mode_fixup (struct drm_crtc *crtc, +const struct drm_display_mode *mode, +struct drm_display_mode *adjusted_mode) {struct drm_device *dev = crtc->dev;struct drm_encoder *encoder;
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +3 -3
@@ -650,9 +650,9 @@ int amdgpufb_remove(struct drm_device *dev, struct drm_framebuffer *fb);void amdgpu_enc_destroy (struct drm_encoder *encoder);void amdgpu_copy_fb (struct drm_device *dev,struct drm_gem_object *dst_obj); -bool amdgpu_crtc_scaling_mode_fixup (struct drm_crtc *crtc, -const struct drm_display_mode *mode, -struct drm_display_mode *adjusted_mode); +bool amdgpu_display_crtc_scaling_mode_fixup (struct drm_crtc *crtc, +const struct drm_display_mode *mode, +struct drm_display_mode *adjusted_mode);void amdgpu_panel_mode_fixup (struct drm_encoder *encoder,struct drm_display_mode *adjusted_mode);int amdgpu_crtc_idx_to_irq_type (struct amdgpu_device *adev,int crtc);
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +1 -1
@@ -2676,7 +2676,7 @@ static bool dce_v10_0_crtc_mode_fixup(struct drm_crtc *crtc, amdgpu_crtc->connector =NULL ;return false; } -if (!amdgpu_crtc_scaling_mode_fixup (crtc, mode, adjusted_mode)) +if (!amdgpu_display_crtc_scaling_mode_fixup (crtc, mode, adjusted_mode))return false;if (amdgpu_atombios_crtc_prepare_pll (crtc, adjusted_mode))return false;
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +1 -1
@@ -2779,7 +2779,7 @@ static bool dce_v11_0_crtc_mode_fixup(struct drm_crtc *crtc, amdgpu_crtc->connector =NULL ;return false; } -if (!amdgpu_crtc_scaling_mode_fixup (crtc, mode, adjusted_mode)) +if (!amdgpu_display_crtc_scaling_mode_fixup (crtc, mode, adjusted_mode))return false;if (amdgpu_atombios_crtc_prepare_pll (crtc, adjusted_mode))return false;
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +1 -1
@@ -2562,7 +2562,7 @@ static bool dce_v6_0_crtc_mode_fixup(struct drm_crtc *crtc, amdgpu_crtc->connector =NULL ;return false; } -if (!amdgpu_crtc_scaling_mode_fixup (crtc, mode, adjusted_mode)) +if (!amdgpu_display_crtc_scaling_mode_fixup (crtc, mode, adjusted_mode))return false;if (amdgpu_atombios_crtc_prepare_pll (crtc, adjusted_mode))return false;
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +1 -1
@@ -2587,7 +2587,7 @@ static bool dce_v8_0_crtc_mode_fixup(struct drm_crtc *crtc, amdgpu_crtc->connector =NULL ;return false; } -if (!amdgpu_crtc_scaling_mode_fixup (crtc, mode, adjusted_mode)) +if (!amdgpu_display_crtc_scaling_mode_fixup (crtc, mode, adjusted_mode))return false;if (amdgpu_atombios_crtc_prepare_pll (crtc, adjusted_mode))return false;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 11/13 drm/amdgpu: rename amdgpu_get_crtc_scanoutpos
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 14 +++++++------- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 10 +++++----- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++--- drivers/gpu/drm/amd/display/dc/dc_stream.h | 2 +- 6 files changed, 22 insertions(+), 22 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +7 -7
@@ -90,9 +90,9 @@ static void amdgpu_display_flip_work_func(struct work_struct *__work)* targeted by the flip */ if (amdgpu_crtc->enabled && - (amdgpu_get_crtc_scanoutpos(adev->ddev, work->crtc_id, 0, - &vpos, &hpos, NULL, NULL, - &crtc->hwmode) + (amdgpu_display_get_crtc_scanoutpos(adev->ddev, work->crtc_id, 0, + &vpos, &hpos, NULL, NULL, + &crtc->hwmode) & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK)) == (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK) && (int)(work->target_vblank -
@@ -794,10 +794,10 @@ bool amdgpu_display_crtc_scaling_mode_fixup(struct drm_crtc *crtc,* unknown small number of scanlines wrt. real scanout position. * */ -int amdgpu_get_crtc_scanoutpos (struct drm_device *dev,unsigned int pipe, -unsigned int flags,int *vpos,int *hpos, -ktime_t *stime,ktime_t *etime, -const struct drm_display_mode *mode) +int amdgpu_display_get_crtc_scanoutpos (struct drm_device *dev, +unsigned int pipe,unsigned int flags,int *vpos, +int *hpos,ktime_t *stime,ktime_t *etime, +const struct drm_display_mode *mode) {u32 vbl =0 , position =0 ;int vbl_start, vbl_end, vtotal, ret =0 ;
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +2 -2
@@ -837,8 +837,8 @@ amdgpu_get_crtc_scanout_position(struct drm_device *dev, unsigned int pipe, ktime_t *stime, ktime_t *etime, const struct drm_display_mode *mode) { -return amdgpu_get_crtc_scanoutpos (dev, pipe,0 , vpos, hpos, - stime, etime, mode); +return amdgpu_display_get_crtc_scanoutpos (dev, pipe,0 , vpos, hpos, + stime, etime, mode); }static struct drm_driver kms_driver = {
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +4 -4
@@ -980,11 +980,11 @@ u32 amdgpu_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe)*/ do { count = amdgpu_display_vblank_get_counter(adev, pipe); - /* Ask amdgpu_get_crtc_scanoutpos to return vpos as - * distance to start of vblank, instead of regular - * vertical scanout pos. + /* Ask amdgpu_display_get_crtc_scanoutpos to return + * vpos as distance to start of vblank, instead of + * regular vertical scanout pos. */ - stat = amdgpu_get_crtc_scanoutpos( + stat = amdgpu_display_get_crtc_scanoutpos( dev, pipe, GET_DISTANCE_TO_VBLANKSTART, &vpos, &hpos, NULL, NULL, &adev->mode_info.crtcs[pipe]->base.hwmode);
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +5 -5
@@ -612,7 +612,7 @@ struct amdgpu_mst_connector {#define ENCODER_MODE_IS_DP (em) (((em) == ATOM_ENCODER_MODE_DP) || \ ((em) == ATOM_ENCODER_MODE_DP_MST)) -/* Driver internal use only flags of amdgpu_get_crtc_scanoutpos() */ +/* Driver internal use only flags of amdgpu_display_get_crtc_scanoutpos() */ #define DRM_SCANOUTPOS_VALID (1 << 0)#define DRM_SCANOUTPOS_IN_VBLANK (1 << 1)#define DRM_SCANOUTPOS_ACCURATE (1 << 2)
@@ -636,10 +636,10 @@ bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector,void amdgpu_encoder_set_active_device (struct drm_encoder *encoder); -int amdgpu_get_crtc_scanoutpos (struct drm_device *dev,unsigned int pipe, -unsigned int flags,int *vpos,int *hpos, -ktime_t *stime,ktime_t *etime, -const struct drm_display_mode *mode); +int amdgpu_display_get_crtc_scanoutpos (struct drm_device *dev, +unsigned int pipe,unsigned int flags,int *vpos, +int *hpos,ktime_t *stime,ktime_t *etime, +const struct drm_display_mode *mode); int amdgpu_display_framebuffer_init(struct drm_device *dev, struct amdgpu_framebuffer *rfb,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +3 -3
@@ -3944,9 +3944,9 @@ static void amdgpu_dm_do_flip(struct drm_crtc *crtc,* targeted by the flip */ while ((acrtc->enabled && - (amdgpu_get_crtc_scanoutpos(adev->ddev, acrtc->crtc_id, 0, - &vpos, &hpos, NULL, NULL, - &crtc->hwmode) + (amdgpu_display_get_crtc_scanoutpos(adev->ddev, acrtc->crtc_id, + 0, &vpos, &hpos, NULL, + NULL, &crtc->hwmode) & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK)) == (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK) && (int)(target_vblank -
drivers/gpu/drm/amd/display/dc/dc_stream.h +1 -1
@@ -152,7 +152,7 @@ struct dc_stream_state *dc_get_stream_at_index(struct dc *dc, uint8_t i);uint32_t dc_stream_get_vblank_counter (const struct dc_stream_state *stream);/* TODO: Return parsed values rather than direct register read -* This has a dependency on the caller (amdgpu_get_crtc_scanoutpos) +* This has a dependency on the caller (amdgpu_display_get_crtc_scanoutpos) * being refactored properly to be dce-specific */ bool dc_stream_get_scanoutpos(const struct dc_stream_state *stream,
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 12/13 drm/amdgpu: rename amdgpu_crtc_idx_to_irq_type
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 +- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 5 +++-- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 6 ++++-- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 6 ++++-- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 6 ++++-- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 3 ++- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 9 files changed, 22 insertions(+), 14 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -889,7 +889,7 @@ int amdgpu_display_get_crtc_scanoutpos(struct drm_device *dev,return ret; } -int amdgpu_crtc_idx_to_irq_type (struct amdgpu_device *adev,int crtc) +int amdgpu_display_crtc_idx_to_irq_type (struct amdgpu_device *adev,int crtc) {if (crtc <0 || crtc >= adev->mode_info.num_crtc)return AMDGPU_CRTC_IRQ_NONE ;
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +2 -2
@@ -1025,7 +1025,7 @@ u32 amdgpu_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe)int amdgpu_enable_vblank_kms (struct drm_device *dev,unsigned int pipe) {struct amdgpu_device *adev = dev->dev_private; -int idx =amdgpu_crtc_idx_to_irq_type (adev, pipe); +int idx =amdgpu_display_crtc_idx_to_irq_type (adev, pipe);return amdgpu_irq_get (adev, &adev->crtc_irq, idx); }
@@ -1041,7 +1041,7 @@ int amdgpu_enable_vblank_kms(struct drm_device *dev, unsigned int pipe)void amdgpu_disable_vblank_kms (struct drm_device *dev,unsigned int pipe) {struct amdgpu_device *adev = dev->dev_private; -int idx =amdgpu_crtc_idx_to_irq_type (adev, pipe); +int idx =amdgpu_display_crtc_idx_to_irq_type (adev, pipe);amdgpu_irq_put (adev, &adev->crtc_irq, idx); }
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +1 -1
@@ -655,7 +655,7 @@ bool amdgpu_display_crtc_scaling_mode_fixup(struct drm_crtc *crtc, struct drm_display_mode *adjusted_mode);void amdgpu_panel_mode_fixup (struct drm_encoder *encoder,struct drm_display_mode *adjusted_mode); -int amdgpu_crtc_idx_to_irq_type (struct amdgpu_device *adev,int crtc); +int amdgpu_display_crtc_idx_to_irq_type (struct amdgpu_device *adev,int crtc);/* fbdev layer */ int amdgpu_fbdev_init (struct amdgpu_device *adev);
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +3 -2
@@ -2537,7 +2537,8 @@ static void dce_v10_0_crtc_dpms(struct drm_crtc *crtc, int mode)amdgpu_atombios_crtc_blank (crtc,ATOM_DISABLE );dce_v10_0_vga_enable (crtc, false);/* Make sure VBLANK and PFLIP interrupts are still enabled */ - type =amdgpu_crtc_idx_to_irq_type (adev, amdgpu_crtc->crtc_id); + type =amdgpu_display_crtc_idx_to_irq_type (adev, + amdgpu_crtc->crtc_id);amdgpu_irq_update (adev, &adev->crtc_irq, type);amdgpu_irq_update (adev, &adev->pageflip_irq, type);drm_crtc_vblank_on (crtc);
@@ -3249,7 +3250,7 @@ static int dce_v10_0_crtc_irq(struct amdgpu_device *adev, {unsigned crtc = entry->src_id -1 ;uint32_t disp_int =RREG32 (interrupt_status_offsets[crtc].reg); -unsigned irq_type =amdgpu_crtc_idx_to_irq_type (adev, crtc); +unsigned int irq_type =amdgpu_display_crtc_idx_to_irq_type (adev, crtc);switch (entry->src_data[0 ]) {case 0 :/* vblank */
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +4 -2
@@ -2612,7 +2612,8 @@ static void dce_v11_0_crtc_dpms(struct drm_crtc *crtc, int mode)amdgpu_atombios_crtc_blank (crtc,ATOM_DISABLE );dce_v11_0_vga_enable (crtc, false);/* Make sure VBLANK and PFLIP interrupts are still enabled */ - type =amdgpu_crtc_idx_to_irq_type (adev, amdgpu_crtc->crtc_id); + type =amdgpu_display_crtc_idx_to_irq_type (adev, + amdgpu_crtc->crtc_id);amdgpu_irq_update (adev, &adev->crtc_irq, type);amdgpu_irq_update (adev, &adev->pageflip_irq, type);drm_crtc_vblank_on (crtc);
@@ -3368,7 +3369,8 @@ static int dce_v11_0_crtc_irq(struct amdgpu_device *adev, {unsigned crtc = entry->src_id -1 ;uint32_t disp_int =RREG32 (interrupt_status_offsets[crtc].reg); -unsigned irq_type =amdgpu_crtc_idx_to_irq_type (adev, crtc); +unsigned int irq_type =amdgpu_display_crtc_idx_to_irq_type (adev, + crtc);switch (entry->src_data[0 ]) {case 0 :/* vblank */
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +4 -2
@@ -2425,7 +2425,8 @@ static void dce_v6_0_crtc_dpms(struct drm_crtc *crtc, int mode)amdgpu_atombios_crtc_enable (crtc,ATOM_ENABLE );amdgpu_atombios_crtc_blank (crtc,ATOM_DISABLE );/* Make sure VBLANK and PFLIP interrupts are still enabled */ - type =amdgpu_crtc_idx_to_irq_type (adev, amdgpu_crtc->crtc_id); + type =amdgpu_display_crtc_idx_to_irq_type (adev, + amdgpu_crtc->crtc_id);amdgpu_irq_update (adev, &adev->crtc_irq, type);amdgpu_irq_update (adev, &adev->pageflip_irq, type);drm_crtc_vblank_on (crtc);
@@ -2966,7 +2967,8 @@ static int dce_v6_0_crtc_irq(struct amdgpu_device *adev, {unsigned crtc = entry->src_id -1 ;uint32_t disp_int =RREG32 (interrupt_status_offsets[crtc].reg); -unsigned irq_type =amdgpu_crtc_idx_to_irq_type (adev, crtc); +unsigned int irq_type =amdgpu_display_crtc_idx_to_irq_type (adev, + crtc);switch (entry->src_data[0 ]) {case 0 :/* vblank */
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +4 -2
@@ -2441,7 +2441,8 @@ static void dce_v8_0_crtc_dpms(struct drm_crtc *crtc, int mode)amdgpu_atombios_crtc_blank (crtc,ATOM_DISABLE );dce_v8_0_vga_enable (crtc, false);/* Make sure VBLANK and PFLIP interrupts are still enabled */ - type =amdgpu_crtc_idx_to_irq_type (adev, amdgpu_crtc->crtc_id); + type =amdgpu_display_crtc_idx_to_irq_type (adev, + amdgpu_crtc->crtc_id);amdgpu_irq_update (adev, &adev->crtc_irq, type);amdgpu_irq_update (adev, &adev->pageflip_irq, type);drm_crtc_vblank_on (crtc);
@@ -3063,7 +3064,8 @@ static int dce_v8_0_crtc_irq(struct amdgpu_device *adev, {unsigned crtc = entry->src_id -1 ;uint32_t disp_int =RREG32 (interrupt_status_offsets[crtc].reg); -unsigned irq_type =amdgpu_crtc_idx_to_irq_type (adev, crtc); +unsigned int irq_type =amdgpu_display_crtc_idx_to_irq_type (adev, + crtc);switch (entry->src_data[0 ]) {case 0 :/* vblank */
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +2 -1
@@ -149,7 +149,8 @@ static void dce_virtual_crtc_dpms(struct drm_crtc *crtc, int mode)case DRM_MODE_DPMS_ON : amdgpu_crtc->enabled = true;/* Make sure VBLANK interrupts are still enabled */ - type =amdgpu_crtc_idx_to_irq_type (adev, amdgpu_crtc->crtc_id); + type =amdgpu_display_crtc_idx_to_irq_type (adev, + amdgpu_crtc->crtc_id);amdgpu_irq_update (adev, &adev->crtc_irq, type);drm_crtc_vblank_on (crtc);break ;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
@@ -3725,7 +3725,7 @@ static void manage_dm_interrupts(struct amdgpu_device *adev,* constant is the same as PFLIP */ int irq_type = -amdgpu_crtc_idx_to_irq_type ( +amdgpu_display_crtc_idx_to_irq_type ( adev, acrtc->crtc_id);
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 13/13 drm/amdgpu: rename amdgpu_freesync_ioctl
In reply to a message not in the archiveAdd display to the name for consistency.
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +2 -2
@@ -1256,8 +1256,8 @@ int amdgpu_cs_wait_fences_ioctl(struct drm_device *dev, void *data,int amdgpu_gem_metadata_ioctl (struct drm_device *dev,void *data,struct drm_file *filp); -int amdgpu_freesync_ioctl (struct drm_device *dev,void *data, -struct drm_file *filp); +int amdgpu_display_freesync_ioctl (struct drm_device *dev,void *data, +struct drm_file *filp);/* VRAM scratch page for HDP bug, default vram page */ struct amdgpu_vram_scratch {
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +2 -2
@@ -912,8 +912,8 @@ int amdgpu_display_crtc_idx_to_irq_type(struct amdgpu_device *adev, int crtc) } } -int amdgpu_freesync_ioctl (struct drm_device *dev,void *data, -struct drm_file *filp) +int amdgpu_display_freesync_ioctl (struct drm_device *dev,void *data, +struct drm_file *filp) {int ret = -EPERM ;struct amdgpu_device *adev = dev->dev_private;
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +1 -1
@@ -1064,7 +1064,7 @@ const struct drm_ioctl_desc amdgpu_ioctls_kms[] = {DRM_IOCTL_DEF_DRV (AMDGPU_GEM_VA , amdgpu_gem_va_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (AMDGPU_GEM_OP , amdgpu_gem_op_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (AMDGPU_GEM_USERPTR , amdgpu_gem_userptr_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), - DRM_IOCTL_DEF_DRV(AMDGPU_FREESYNC, amdgpu_freesync_ioctl, DRM_MASTER) + DRM_IOCTL_DEF_DRV(AMDGPU_FREESYNC, amdgpu_display_freesync_ioctl, DRM_MASTER) };const int amdgpu_max_kms_ioctl =ARRAY_SIZE (amdgpu_ioctls_kms);
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Am 22.01.2018 um 20:38 schrieb Samuel Li:
Quoted 3 lines
Add display to the name for consistency.
Signed-off-by Samuel Li <[email protected]>
Nice cleanup, series is Acked-by: Christian König <[email protected]>
Quoted 134 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 41 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 19 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +21
-18@@ -37,7 +37,8 @@#include <drm/drm_edid.h> #include <drm/drm_fb_helper.h> -static void amdgpu_flip_callback (struct dma_fence *f,struct dma_fence_cb *cb) +static void amdgpu_display_flip_callback (struct dma_fence *f, +struct dma_fence_cb *cb) {struct amdgpu_flip_work *work = container_of(cb, struct amdgpu_flip_work, cb);@@ -46,8 +47,8 @@ static void amdgpu_flip_callback(struct dma_fence *f, struct dma_fence_cb *cb)schedule_work (&work->flip_work.work); } -static bool amdgpu_flip_handle_fence (struct amdgpu_flip_work *work, -struct dma_fence **f) +static bool amdgpu_display_flip_handle_fence (struct amdgpu_flip_work *work, +struct dma_fence **f) {struct dma_fence *fence= *f;@@ -56,14 +57,15 @@ static bool amdgpu_flip_handle_fence(struct amdgpu_flip_work *work, *f =NULL ; -if (!dma_fence_add_callback (fence, &work->cb, amdgpu_flip_callback)) +if (!dma_fence_add_callback (fence, &work->cb, + amdgpu_display_flip_callback))return true;dma_fence_put (fence);return false; } -static void amdgpu_flip_work_func (struct work_struct *__work) +static void amdgpu_display_flip_work_func (struct work_struct *__work) {struct delayed_work *delayed_work = container_of(__work, struct delayed_work, work);@@ -77,11 +79,11 @@ static void amdgpu_flip_work_func(struct work_struct *__work)unsigned i;int vpos, hpos; -if (amdgpu_flip_handle_fence (work, &work->excl)) +if (amdgpu_display_flip_handle_fence (work, &work->excl))return ;for (i =0 ; i < work->shared_count; ++i) -if (amdgpu_flip_handle_fence (work, &work->shared[i])) +if (amdgpu_display_flip_handle_fence (work, &work->shared[i]))return ;/* Wait until we're out of the vertical blank period before the one @@ -118,7 +120,7 @@ static void amdgpu_flip_work_func(struct work_struct *__work)/* * Handle unpin events outside the interrupt handler proper. */ -static void amdgpu_unpin_work_func (struct work_struct *__work) +static void amdgpu_display_unpin_work_func (struct work_struct *__work) {struct amdgpu_flip_work *work = container_of(__work, struct amdgpu_flip_work, unpin_work);@@ -163,8 +165,8 @@ int amdgpu_crtc_page_flip_target(struct drm_crtc *crtc,if (work ==NULL )return -ENOMEM ; -INIT_DELAYED_WORK (&work->flip_work, amdgpu_flip_work_func); -INIT_WORK (&work->unpin_work, amdgpu_unpin_work_func); +INIT_DELAYED_WORK (&work->flip_work, amdgpu_display_flip_work_func); +INIT_WORK (&work->unpin_work, amdgpu_display_unpin_work_func); work->event = event; work->adev = adev;@@ -229,7 +231,7 @@ int amdgpu_crtc_page_flip_target(struct drm_crtc *crtc,/* update crtc fb */ crtc->primary->fb = fb;spin_unlock_irqrestore (&crtc->dev->event_lock, flags); -amdgpu_flip_work_func (&work->flip_work.work); +amdgpu_display_flip_work_func (&work->flip_work.work);return 0 ; pflip_cleanup:@@ -480,7 +482,7 @@ bool amdgpu_ddc_probe(struct amdgpu_connector *amdgpu_connector,return true; } -static void amdgpu_user_framebuffer_destroy (struct drm_framebuffer *fb) +static void amdgpu_display_user_framebuffer_destroy (struct drm_framebuffer *fb) {struct amdgpu_framebuffer *amdgpu_fb =to_amdgpu_framebuffer (fb);@@ -489,9 +491,10 @@ static void amdgpu_user_framebuffer_destroy(struct drm_framebuffer *fb)kfree (amdgpu_fb); } -static int amdgpu_user_framebuffer_create_handle (struct drm_framebuffer *fb, -struct drm_file *file_priv, -unsigned int *handle) +static int amdgpu_display_user_framebuffer_create_handle ( +struct drm_framebuffer *fb, +struct drm_file *file_priv, +unsigned int *handle) {struct amdgpu_framebuffer *amdgpu_fb =to_amdgpu_framebuffer (fb);@@ -499,8 +502,8 @@ static int amdgpu_user_framebuffer_create_handle(struct drm_framebuffer *fb, }static const struct drm_framebuffer_funcs amdgpu_fb_funcs = { - .destroy = amdgpu_user_framebuffer_destroy, - .create_handle = amdgpu_user_framebuffer_create_handle, + .destroy = amdgpu_display_user_framebuffer_destroy, + .create_handle = amdgpu_display_user_framebuffer_create_handle, };uint32_t amdgpu_display_framebuffer_domains (struct amdgpu_device *adev)@@ -667,7 +670,7 @@ void amdgpu_update_display_priority(struct amdgpu_device *adev) } -static bool is_hdtv_mode (const struct drm_display_mode *mode) +static bool amdgpu_display_is_hdtv_mode (const struct drm_display_mode *mode) {/* try and guess if this is a tv or a monitor */ if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c bool amdgpu_crtc_scaling_mode_fixup(struct drm_crtc *crtc, · line 733
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1
-1@@ -724,7 +727,7 @@ bool amdgpu_crtc_scaling_mode_fixup(struct drm_crtc *crtc, ((amdgpu_encoder->underscan_type ==UNDERSCAN_ON ) || ((amdgpu_encoder->underscan_type ==UNDERSCAN_AUTO ) &&drm_detect_hdmi_monitor (amdgpu_connector_edid (connector)) && - is_hdtv_mode(mode)))) { + amdgpu_display_is_hdtv_mode(mode)))) { if (amdgpu_encoder->underscan_hborder != 0) amdgpu_crtc->h_border = amdgpu_encoder->underscan_hborder; else
_______________________________________________
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): 0ce90ad9-7453-9a02-0c75-27b1bc7539d8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Alex Deucher
Reviewed-byQuoted 8 lines · Christian König
Am 22.01.2018 um 20:38 schrieb Samuel Li:
Quoted 4 lines
Add display to the name for consistency.
Signed-off-by Samuel Li <[email protected]>Nice cleanup, series is Acked-by: Christian König <[email protected]>
Nice work:
Quoted 143 lines
Quoted 143 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 41 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 19 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +4
-1@@ -37,7 +37,8 @@#include <drm/drm_edid.h> #include <drm/drm_fb_helper.h> -static void amdgpu_flip_callback(struct dma_fence *f, structdma_fence_cb *cb) +static void amdgpu_display_flip_callback(struct dma_fence *f, + struct dma_fence_cb *cb) {struct amdgpu_flip_work *work = container_of(cb, struct amdgpu_flip_work, cb);@@ -46,8 +47,8 @@ static void amdgpu_flip_callback(struct dma_fence *f, struct dma_fence_cb *cb) schedule_work(&work->flip_work.work); } -static bool amdgpu_flip_handle_fence(struct amdgpu_flip_work *work, - struct dma_fence **f) +static bool amdgpu_display_flip_handle_fence (struct amdgpu_flip_work *work, + struct dma_fence **f) {struct dma_fence *fence= *f; @@ -56,14 +57,15 @@ static bool amdgpu_flip_handle_fence(struct
amdgpu_flip_work*work,*f = NULL;- if (!dma_fence_add_callback(fence,
&work->cb,amdgpu_flip_callback))drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +5
-1+if (!dma_fence_add_callback (fence, &work->cb, + amdgpu_display_flip_callback))return true;dma_fence_put (fence);return false; } -static void amdgpu_flip_work_func(struct work_struct *__work) +static void amdgpu_display_flip_work_func(struct work_struct *__work) {struct delayed_work *delayed_work = container_of(__work, struct delayed_work, work);@@ -77,11 +79,11 @@ static void amdgpu_flip_work_func(struct work_struct *__work)unsigned i;int vpos, hpos; - if (amdgpu_flip_handle_fence(work, &work->excl)) +if (amdgpu_display_flip_handle_fence (work, &work->excl))return ;for (i =0 ; i < work->shared_count; ++i) -if (amdgpu_flip_handle_fence (work, &work->shared[i])) +if (amdgpu_display_flip_handle_fence (work, &work->shared[i]))return ;/* Wait until we're out of the vertical blank period before the one
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1
-1@@ -118,7 +120,7 @@ static void amdgpu_flip_work_func(struct work_struct *__work)/* * Handle unpin events outside the interrupt handler proper. */ -static void amdgpu_unpin_work_func (struct work_struct *__work) +static void amdgpu_display_unpin_work_func (struct work_struct *__work) { struct amdgpu_flip_work *work =container_of(__work, struct amdgpu_flip_work, unpin_work);drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +4
-2@@ -163,8 +165,8 @@ int amdgpu_crtc_page_flip_target(struct drm_crtc *crtc, if (work == NULL) return -ENOMEM; -INIT_DELAYED_WORK (&work->flip_work, amdgpu_flip_work_func); -INIT_WORK (&work->unpin_work, amdgpu_unpin_work_func); +INIT_DELAYED_WORK (&work->flip_work, amdgpu_display_flip_work_func); +INIT_WORK (&work->unpin_work, amdgpu_display_unpin_work_func); work->event = event; work->adev = adev;@@ -229,7 +231,7 @@ int amdgpu_crtc_page_flip_target(struct drm_crtc *crtc,/* update crtc fb */ crtc->primary->fb = fb;spin_unlock_irqrestore (&crtc->dev->event_lock, flags); -amdgpu_flip_work_func (&work->flip_work.work); +amdgpu_display_flip_work_func (&work->flip_work.work);return 0 ; pflip_cleanup:@@ -480,7 +482,7 @@ bool amdgpu_ddc_probe(struct amdgpu_connector *amdgpu_connector, return true; } -static void amdgpu_user_framebuffer_destroy(struct drm_framebuffer *fb) +static void amdgpu_display_user_framebuffer_destroy(struct drm_framebuffer *fb) {struct amdgpu_framebuffer *amdgpu_fb =to_amdgpu_framebuffer (fb); @@ -489,9 +491,10 @@ static void amdgpu_user_framebuffer_destroy(struct
drm_framebuffer*fb)kfree(amdgpu_fb);}
-static int amdgpu_user_framebuffer_create_handle(structdrm_framebuffer
*fb,
- structdrm_file*file_priv,drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +4
-1- unsigned int *handle) +static int amdgpu_display_user_framebuffer_create_handle ( +struct drm_framebuffer *fb, +struct drm_file *file_priv, +unsigned int *handle) {struct amdgpu_framebuffer *amdgpu_fb =to_amdgpu_framebuffer (fb); @@ -499,8 +502,8 @@ static intamdgpu_user_framebuffer_create_handle(struct
drm_framebuffer*fb,
}static const struct drm_framebuffer_funcs amdgpu_fb_funcs = {drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +2
-2- .destroy = amdgpu_user_framebuffer_destroy, - .create_handle = amdgpu_user_framebuffer_create_handle, + .destroy = amdgpu_display_user_framebuffer_destroy, + .create_handle = amdgpu_display_user_framebuffer_create_handle, }; uint32_t amdgpu_display_framebuffer_domains(struct amdgpu_device*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1
-0@@ -667,7 +670,7 @@ void amdgpu_update_display_priority(struct amdgpu_device *adev) } -static bool is_hdtv_mode(const struct drm_display_mode *mode) +static bool amdgpu_display_is_hdtv_mode(const struct drm_display_mode *mode) {/* try and guess if this is a tv or a monitor */ if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */@@ -724,7 +727,7 @@ bool amdgpu_crtc_scaling_mode_fixup(struct drm_crtc *crtc, ((amdgpu_encoder->underscan_type == UNDERSCAN_ON) || ((amdgpu_encoder->underscan_type == UNDERSCAN_AUTO)&&
Quoted 13 lines
Quoted 7 lines
drm_detect_hdmi_monitor(amdgpu_connector_edid(connector)) &&
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1
-1- is_hdtv_mode(mode)))) { + amdgpu_display_is_hdtv_mode(mode)))) {if (amdgpu_encoder->underscan_hborder !=0 ) amdgpu_crtc->h_border =
amdgpu_encoder->underscan_hborder;
else_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx