Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1576314
| From | Daniel Vetter <daniel@ffwll.ch> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] drm/rockchip: support mode_valid for crtc |
| Date | 2017-02-08 08:40 +0100 |
| Message-ID | <t8v18-5P4-13@gated-at.bofh.it> (permalink) |
| References | <t7pAt-4j8-9@gated-at.bofh.it> <t8gEO-5ar-27@gated-at.bofh.it> <t8oCm-1zo-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Feb 8, 2017 at 1:45 AM, Mark yao <mark.yao@rock-chips.com> wrote: > On 2017年02月08日 00:14, Sean Paul wrote: >> >> On Sun, Feb 05, 2017 at 03:36:36PM +0800, Mark Yao wrote: >>> >>> drm crtc already has mode_fixup callback to can do mode check, but >>> We actually want to valid display mode on connector getmode time, >>> mode_fixup can't do it. >>> >>> So add a private mode_valid callback to rockchip crtc, connectors can >>> check mode with this mode_valid callback. >>> >> There are some nasty layer violations happening in this set. You should >> use >> mode_fixup if the crtc has limitations on the mode being set. >> >> Sean > > Mode_fixup can also check crtc limitations, but it's secondly time to check > display mode. > > mode_fixup only works on drm_setcrtc or atomic_commit check, when userspace > get a series of display modes, > They don't know which display mode is bad before drm_setcrtc or > atomic_commit check, they need try, > but drm_setcrtc or atomic_commit check not only for display mode check, > means that userspace didn't have a sure > method to verify display mode. > > So I try to add the mode_valid callback to connector getmodes time, verify > display mode before send mode list to userspace. > then userspace would get a good display mode list. You need both, the kerneldoc of these hooks explains in detail why. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/2] drm/rockchip: support mode_valid for crtc Mark Yao <mark.yao@rock-chips.com> - 2017-02-05 08:40 +0100
Re: [PATCH 1/2] drm/rockchip: support mode_valid for crtc Sean Paul <seanpaul@chromium.org> - 2017-02-07 17:20 +0100
Re: [PATCH 1/2] drm/rockchip: support mode_valid for crtc Mark yao <mark.yao@rock-chips.com> - 2017-02-08 01:50 +0100
Re: [PATCH 1/2] drm/rockchip: support mode_valid for crtc Daniel Vetter <daniel@ffwll.ch> - 2017-02-08 08:40 +0100
csiph-web