From: Thomas Hellstrom <thomas@shipmail.org>
To: Dave Airlie <airlied@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/vmwgfx: fix warning if config intel iommu is off.
Date: Tue, 03 Dec 2013 21:04:09 +0100 [thread overview]
Message-ID: <529E3939.1060009@shipmail.org> (raw)
In-Reply-To: <1383891210-8270-1-git-send-email-airlied@gmail.com>
Hi, Dave, I'm sorry I missed this one.
(but the warning is shut up with another patch).
I agree this code is ugly, (and has become even uglier).
I'll put on my todo list to find a way to do this more cleanly...
/Thomas
On 11/08/2013 07:13 AM, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> Though I'm not really happy with how ugly this code is now.
>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> ---
> drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> index 0b5c781..ba1f8f1 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> @@ -482,7 +482,9 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv)
> dev_priv->map_mode = vmw_dma_map_populate;
> #endif
>
> +#ifdef CONFIG_INTEL_IOMMU
> out_fixup:
> +#endif
> if (dev_priv->map_mode == vmw_dma_map_populate &&
> vmw_restrict_iommu)
> dev_priv->map_mode = vmw_dma_map_bind;
prev parent reply other threads:[~2013-12-03 20:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-08 6:13 [PATCH] drm/vmwgfx: fix warning if config intel iommu is off Dave Airlie
2013-12-03 20:04 ` Thomas Hellstrom [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=529E3939.1060009@shipmail.org \
--to=thomas@shipmail.org \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.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