From: Ben Widawsky <ben@bwidawsk.net>
To: Chris Wilson <chris@chris-wilson.co.uk>,
Ben Widawsky <benjamin.widawsky@intel.com>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
DRI Development <dri-devel@lists.freedesktop.org>,
Dave Airlie <airlied@redhat.com>
Subject: Re: [PATCH] drm/mm: Don't WARN if drm_mm_reserve_node
Date: Wed, 9 Apr 2014 16:20:04 -0700 [thread overview]
Message-ID: <20140409232004.GC4425@bwidawsk.net> (raw)
In-Reply-To: <20140409062537.GR8475@nuc-i3427.alporthouse.com>
On Wed, Apr 09, 2014 at 07:25:37AM +0100, Chris Wilson wrote:
> On Tue, Apr 08, 2014 at 10:21:44AM -0700, Ben Widawsky wrote:
> > I am not convinced this is the correct solution. At least the way we
> > used this interface, it isn't meant to ever fail. I also didn't look
> > into exactly why we depend an ENOSPC return. That sounds fragile to me,
> > especially for a public interface.
>
> Eh? This interface is explicitly used to check that the requested range
> is available.
> -Chris
>
What I mean is, the node is already initialized, and we always expect it
to be available - at least with all the callers prior to the fastboot.
I didn't look very closely at how we get the fb objects from the
existing stolen memory, but my drive-by review would suggest it's much
better to deal with the redundancy at that level (or make this an i915
private function).
Removing the WARN is fine with me though, it's:
Tested-by: Ben Widawsky <ben@bwidawsk.net>
My complaint was more with how we solved the problem initially, and not
with this patch itself.
--
Ben Widawsky, Intel Open Source Technology Center
prev parent reply other threads:[~2014-04-09 23:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-07 21:25 [PATCH] drm/mm: Don't WARN if drm_mm_reserve_node Daniel Vetter
2014-04-08 5:13 ` Jesse Barnes
2014-04-08 17:21 ` Ben Widawsky
2014-04-09 6:25 ` [Intel-gfx] " Chris Wilson
2014-04-09 23:20 ` Ben Widawsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140409232004.GC4425@bwidawsk.net \
--to=ben@bwidawsk.net \
--cc=airlied@redhat.com \
--cc=benjamin.widawsky@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jbarnes@virtuousgeek.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox