[PATCH] drm/nouveau/ttm: Add limits.h

Daniel Vetter daniel at ffwll.ch
Mon Nov 2 12:49:56 UTC 2020


On Mon, Nov 2, 2020 at 12:18 PM Maxime Ripard <maxime at cerno.tech> wrote:
>
> On Mon, Nov 02, 2020 at 12:08:06PM +0100, Maxime Ripard wrote:
> > It seems that a recent commit broke the nouveau compilation when swiotlb is
> > disabled (which is the case on our ARM defconfig for example).
> >
> > Daniel says
> >
> > """
> > Since the proper fix is maybe stuck in the usual "drm abuses swiotlb
> > internals" bikeshed, maybe best if we push a fix to including limits.h
> > in nouveau and call it done?
> > """
> >
> > So let's go down the simplest path to fix our build, and goes back to it
> > later if needed.
> >
> > Link: https://patchwork.freedesktop.org/patch/397835/
> > Fixes: 4dbafbd30aef ("drm/nouveu: fix swiotlb include")
> > Acked-by: Daniel Vetter <daniel at ffwll.ch>
> > Signed-off-by: Maxime Ripard <maxime at cerno.tech>
>
> Note that I misunderstood what Daniel was saying on IRC and ended up
> pushing that patch in drm-misc-next. We can revert it if needed.

Yeah I guess I shouldn't ack patches without seeing the commit message
first  and all that :-) Code imo still fine, other bits maybe
suboptimal:
- Even in emergency for reverts or so, patch should still go to the
m-l, as fyi. That's why dim checks for the Link: tag, which should
point at that submission, not something else.
- The Link: tag here should have been a References: or so, since
that's for related discussions and other material.
- sfr's mail would have been good as a References: too, plus including
his explanation for what's going on
- Also maybe some notes why we're rushing here, since there's a few
patches stuck behind the backmerge.
- Reported-by: credits for sfr would have been nice.

Anyway, it's done, so that's all for next time around.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the dri-devel mailing list