Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1382137

Re: [PATCH] drm/rockchip: get rid of rockchip_drm_crtc_mode_config

From Mark yao <mark.yao@rock-chips.com>
Newsgroups linux.kernel
Subject Re: [PATCH] drm/rockchip: get rid of rockchip_drm_crtc_mode_config
Date 2016-04-19 04:50 +0200
Message-ID <rptTI-84W-3@gated-at.bofh.it> (permalink)
References <rp7Jx-6Rs-51@gated-at.bofh.it> <rpdFi-32l-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2016年04月18日 17:25, John Keeping wrote:
> On Mon, 18 Apr 2016 11:03:31 +0800, Mark Yao wrote:
>
>> >We need to take care of the vop status when use
>> >rockchip_drm_crtc_mode_config, if vop is disabled,
>> >the function would failed, that is terrible.
>> >
>> >Save connector type and output mode on drm_display_mode->private_flags
>> >at encoder mode_fixup, then we can configure the type and mode safely
>> >on crtc mode_set.
> Since Rockchip is atomic, shouldn't this be using atomic_check hooks and
> a subclassed crtc_state structure?
>
Hi John

I try to use atomic_check with crtc_state, but it seems not easy,
there are two value need transmit from connector to vop: connector type 
and out_mode

the connector type I think we can loop the atomic state to find the 
connector type.
but the out_mode is a custom value, I can't find a generic way to 
transmit it with atomic state.

BTW, I think on atomic side, the drm_display_mode is under control by 
atomic state,
and the mode->private_flags is not use by drm framework, I found i915 
and gma500 also use
mode->private_flags to transmit custom value.

So I think it's no problem using mode->private_flags.

-- 
Mark Yao

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] drm/rockchip: get rid of rockchip_drm_crtc_mode_config Mark Yao <mark.yao@rock-chips.com> - 2016-04-18 05:10 +0200
  Re: [PATCH] drm/rockchip: get rid of rockchip_drm_crtc_mode_config John Keeping <john@metanate.com> - 2016-04-18 11:30 +0200
    Re: [PATCH] drm/rockchip: get rid of rockchip_drm_crtc_mode_config Mark yao <mark.yao@rock-chips.com> - 2016-04-18 12:00 +0200
    Re: [PATCH] drm/rockchip: get rid of rockchip_drm_crtc_mode_config Mark yao <mark.yao@rock-chips.com> - 2016-04-19 04:50 +0200
      Re: [PATCH] drm/rockchip: get rid of rockchip_drm_crtc_mode_config John Keeping <john@metanate.com> - 2016-04-19 11:10 +0200
        Re: [PATCH] drm/rockchip: get rid of rockchip_drm_crtc_mode_config Mark yao <mark.yao@rock-chips.com> - 2016-04-20 04:30 +0200

csiph-web