From: Damien Lespiau <damien.lespiau@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/4] drm/i915: check that the i965g/gm 4G limit is really obeyed
Date: Tue, 8 Oct 2013 12:06:24 +0100 [thread overview]
Message-ID: <20131008110624.GA27819@strange.amr.corp.intel.com> (raw)
In-Reply-To: <1381176948-2754-2-git-send-email-rodrigo.vivi@gmail.com>
On Mon, Oct 07, 2013 at 05:15:45PM -0300, Rodrigo Vivi wrote:
> From: Daniel Vetter <daniel.vetter@ffwll.ch>
>
> In truly crazy circumstances shmem might give us the wrong type of
> page. So be a bit paranoid and double check this.
>
> Reviewer: Damien Lespiau <damien.lespiau@intel.com>
> Cc: Rob Clark <robdclark@gmail.com>
> References: http://lkml.org/lkml/2011/7/11/238
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
> ---
> drivers/gpu/drm/i915/i915_gem.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> index 19ecfa8..692ebf7 100644
> --- a/drivers/gpu/drm/i915/i915_gem.c
> +++ b/drivers/gpu/drm/i915/i915_gem.c
> @@ -1903,6 +1903,9 @@ i915_gem_object_get_pages_gtt(struct drm_i915_gem_object *obj)
> sg->length += PAGE_SIZE;
> }
> last_pfn = page_to_pfn(page);
> +
> + /* Check that the i965g/gm workaround works. */
> + WARN_ON((gfp & __GFP_DMA32) && (last_pfn >= 0x00100000UL));
I guess we could have something like last_pfn >= (GB(4) >> PAGE_SHIFT)
but in any case:
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
--
Damien
next prev parent reply other threads:[~2013-10-08 11:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-07 20:15 [PATCH 0/4] drm-intel-collector - review request Rodrigo Vivi
2013-10-07 20:15 ` [PATCH 1/4] drm/i915: check that the i965g/gm 4G limit is really obeyed Rodrigo Vivi
2013-10-08 11:06 ` Damien Lespiau [this message]
2013-10-08 11:09 ` Daniel Vetter
2013-10-07 20:15 ` [PATCH 2/4] drm/i915: Asynchronously perform the set-base for a simple modeset Rodrigo Vivi
2013-10-17 12:24 ` Rodrigo Vivi
2013-10-07 20:15 ` [PATCH 3/4] drm/i915: implement another plane WM workaround for HSW Rodrigo Vivi
2013-10-09 10:11 ` [Intel-gfx] " Ville Syrjälä
2013-10-07 20:15 ` [PATCH 4/4] drm/i915: Use the real cpu max frequency for ring scaling Rodrigo Vivi
2013-10-08 6:14 ` Daniel Vetter
2013-10-08 4:25 ` [PATCH 0/4] drm-intel-collector - review request Ben Widawsky
2013-10-08 6:07 ` Daniel Vetter
2013-10-08 13:57 ` Paulo Zanoni
2013-10-08 14:37 ` Rodrigo Vivi
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=20131008110624.GA27819@strange.amr.corp.intel.com \
--to=damien.lespiau@intel.com \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=rodrigo.vivi@gmail.com \
/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