From: Emil Velikov <emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH 3/3] drm/nv31/mpeg: don't recognize nv3x cards as having nv44 graph class
Date: Tue, 30 Jul 2013 00:27:22 +0100 [thread overview]
Message-ID: <51F6FA5A.3030703@gmail.com> (raw)
In-Reply-To: <1375139118-17398-3-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
On 30/07/13 00:05, Ilia Mirkin wrote:
> Signed-off-by: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
> ---
> drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c b/drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c
> index 9f7c7d5..c190043 100644
> --- a/drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c
> +++ b/drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c
> @@ -284,7 +284,10 @@ nv31_mpeg_init(struct nouveau_object *object)
> /* PMPEG init */
> nv_wr32(priv, 0x00b32c, 0x00000000);
> nv_wr32(priv, 0x00b314, 0x00000100);
> - nv_wr32(priv, 0x00b220, nv44_graph_class(priv) ? 0x00000044 : 0x00000031);
> + if (nv_device(priv)->chipset >= 0x40 && nv44_graph_class(priv))
> + nv_wr32(priv, 0x00b220, 0x00000044);
> + else
> + nv_wr32(priv, 0x00b220, 0x00000031);
Might be a nitpicking too much, but I believe the check makes more sense
inside nv44_graph_class(), despite that this is the only nv3x context
that uses it
Emil
> nv_wr32(priv, 0x00b300, 0x02001ec1);
> nv_mask(priv, 0x00b32c, 0x00000001, 0x00000001);
>
>
next prev parent reply other threads:[~2013-07-29 23:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-29 23:05 [PATCH 1/3] drm/nouveau: remove duplicate copy of nv44_graph_class Ilia Mirkin
[not found] ` <1375139118-17398-1-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
2013-07-29 23:05 ` [PATCH 2/3] drm/nv40/mpeg: write magic value to channel object to make it work Ilia Mirkin
2013-07-29 23:05 ` [PATCH 3/3] drm/nv31/mpeg: don't recognize nv3x cards as having nv44 graph class Ilia Mirkin
[not found] ` <1375139118-17398-3-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
2013-07-29 23:27 ` Emil Velikov [this message]
[not found] ` <51F6FA5A.3030703-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-07-29 23:30 ` Ilia Mirkin
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=51F6FA5A.3030703@gmail.com \
--to=emil.l.velikov-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.