Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1593155
| From | Daniel Vetter <daniel@ffwll.ch> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] drm/arcpgu: use .mode_fixup instead of .atomic_check |
| Date | 2017-03-06 11:20 +0100 |
| Message-ID | <thXUf-6JB-49@gated-at.bofh.it> (permalink) |
| References | <tgCIb-5zE-41@gated-at.bofh.it> <tgIDU-10o-13@gated-at.bofh.it> <tgVrt-1O7-33@gated-at.bofh.it> <tgZY6-50J-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Mar 03, 2017 at 06:05:15PM +0000, Jose Abreu wrote:
> Hi Alexey,
>
>
> On 03-03-2017 13:27, Alexey Brodkin wrote:
> >
> > So if I understood you correct here what I really need is just to get rid of existing check,
> > right? I.e. the following is to be in v2 respin:
> > ------------------------------->8-------------------------------
> > diff --git a/drivers/gpu/drm/arc/arcpgu_crtc.c b/drivers/gpu/drm/arc/arcpgu_crtc.c
> > index ad9a95916f1f..86f1555914e8 100644
> > --- a/drivers/gpu/drm/arc/arcpgu_crtc.c
> > +++ b/drivers/gpu/drm/arc/arcpgu_crtc.c
> > @@ -129,20 +129,6 @@ static void arc_pgu_crtc_disable(struct drm_crtc *crtc)
> > ~ARCPGU_CTRL_ENABLE_MASK);
> > }
> >
> > -static int arc_pgu_crtc_atomic_check(struct drm_crtc *crtc,
> > - struct drm_crtc_state *state)
> > -{
> > - struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);
> > - struct drm_display_mode *mode = &state->adjusted_mode;
> > - long rate, clk_rate = mode->clock * 1000;
> > -
> > - rate = clk_round_rate(arcpgu->clk, clk_rate);
> > - if (rate != clk_rate)
> > - return -EINVAL;
> > -
> > - return 0;
> > -}
> > -
> > static void arc_pgu_crtc_atomic_begin(struct drm_crtc *crtc,
> > struct drm_crtc_state *state)
> > {
> > @@ -165,7 +151,6 @@ static const struct drm_crtc_helper_funcs arc_pgu_crtc_helper_funcs = {
> > .disable = arc_pgu_crtc_disable,
> > .prepare = arc_pgu_crtc_disable,
> > .commit = arc_pgu_crtc_enable,
> > - .atomic_check = arc_pgu_crtc_atomic_check,
> > .atomic_begin = arc_pgu_crtc_atomic_begin,
> > };
> > ------------------------------->8-------------------------------
>
> I don't think you can remove the check entirely as this will make
> any mode be accepted, right?
Yes there's still the issue of atomic_check/mode_fixup vs. mode_valid. I'm
still trying to volunteer someone to fix up that mess. But at least it's
all properly documented I hope (if not, pls send patch).
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] drm/arcpgu: use .mode_fixup instead of .atomic_check Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2017-03-02 18:30 +0100
Re: [PATCH] drm/arcpgu: use .mode_fixup instead of .atomic_check Daniel Vetter <daniel@ffwll.ch> - 2017-03-03 00:50 +0100
Re: [PATCH] drm/arcpgu: use .mode_fixup instead of .atomic_check Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2017-03-03 14:30 +0100
Re: [PATCH] drm/arcpgu: use .mode_fixup instead of .atomic_check Jose Abreu <Jose.Abreu@synopsys.com> - 2017-03-03 19:20 +0100
Re: [PATCH] drm/arcpgu: use .mode_fixup instead of .atomic_check Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2017-03-03 20:40 +0100
Re: [PATCH] drm/arcpgu: use .mode_fixup instead of .atomic_check Jose Abreu <Jose.Abreu@synopsys.com> - 2017-03-06 12:00 +0100
Re: [PATCH] drm/arcpgu: use .mode_fixup instead of .atomic_check Daniel Vetter <daniel@ffwll.ch> - 2017-03-06 11:20 +0100
csiph-web