Nouveau Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Pitoiset <samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH 5/5] recognize and accelerate GM20x
Date: Mon, 17 Oct 2016 11:47:04 +0200	[thread overview]
Message-ID: <ca9bc26d-f9b4-9cd9-17b8-e8f0a087db91@gmail.com> (raw)
In-Reply-To: <1476645274-9939-5-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>

This requires at least a quick test. :-)

Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>

On 10/16/2016 09:14 PM, Ilia Mirkin wrote:
> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
> ---
>
> Untested. I don't have the hardware.
>
>  src/nv_driver.c  |  2 ++
>  src/nvc0_accel.c | 10 +++++++++-
>  2 files changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/src/nv_driver.c b/src/nv_driver.c
> index fff83f8..61940a8 100644
> --- a/src/nv_driver.c
> +++ b/src/nv_driver.c
> @@ -390,6 +390,7 @@ NVHasKMS(struct pci_device *pci_dev, struct xf86_platform_device *platform_dev)
>  	case 0xf0:
>  	case 0x100:
>  	case 0x110:
> +	case 0x120:
>  		break;
>  	default:
>  		xf86DrvMsg(-1, X_ERROR, "Unknown chipset: NV%02X\n", chipset);
> @@ -941,6 +942,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
>  		pNv->Architecture = NV_KEPLER;
>  		break;
>  	case 0x110:
> +	case 0x120:
>  		pNv->Architecture = NV_MAXWELL;
>  		break;
>  	default:
> diff --git a/src/nvc0_accel.c b/src/nvc0_accel.c
> index 8da5051..996fb88 100644
> --- a/src/nvc0_accel.c
> +++ b/src/nvc0_accel.c
> @@ -236,9 +236,17 @@ NVAccelInit3D_NVC0(ScrnInfoPtr pScrn)
>  	} else if (pNv->dev->chipset < 0x110) {
>  		class  = 0xa197;
>  		handle = 0x0000906e;
> -	} else {
> +	} else if (pNv->dev->chipset < 0x120) {
>  		class  = 0xb097;
>  		handle = 0x0000906e;
> +	} else if (pNv->dev->chipset < 0x130) {
> +		class  = 0xb197;
> +		handle = 0x0000906e;
> +	} else {
> +		xf86DrvMsg(pScrn->scrnIndex, X_INFO,
> +			   "No 3D acceleration support for NV%X\n",
> +			   pNv->dev->chipset);
> +		return FALSE;
>  	}
>
>  	ret = nouveau_object_new(pNv->channel, class, class,
>

-- 
-Samuel
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2016-10-17  9:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-16 19:14 [PATCH 1/5] hwdefs: update nvc0_3d, add gm107_texture for new TIC format Ilia Mirkin
     [not found] ` <1476645274-9939-1-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
2016-10-16 19:14   ` [PATCH 2/5] nvc0: make use of the new hwdefs for TEX_CB_INDEX Ilia Mirkin
     [not found]     ` <1476645274-9939-2-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
2016-10-17  9:31       ` Samuel Pitoiset
2016-10-16 19:14   ` [PATCH 3/5] nvc0: rename BEGIN_IMC0 to IMMED_NVC0 Ilia Mirkin
     [not found]     ` <1476645274-9939-3-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
2016-10-17  9:31       ` Samuel Pitoiset
2016-10-16 19:14   ` [PATCH 4/5] nvc0: refactor TIC uploads to allow different specifies per generation Ilia Mirkin
     [not found]     ` <1476645274-9939-4-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
2016-10-17  9:46       ` Samuel Pitoiset
     [not found]         ` <2183f35a-731b-fe0c-e090-45315390a48d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-10-17 12:24           ` Ilia Mirkin
     [not found]             ` <CAKb7Uvi=97nnPn0Kypud0bm9UWRmCMct+8UfcmuK4qxLp7P9pw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-17 12:37               ` Samuel Pitoiset
2016-10-16 19:14   ` [PATCH 5/5] recognize and accelerate GM20x Ilia Mirkin
     [not found]     ` <1476645274-9939-5-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
2016-10-17  9:47       ` Samuel Pitoiset [this message]
     [not found]         ` <ca9bc26d-f9b4-9cd9-17b8-e8f0a087db91-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-10-18  9:19           ` Alexandre Courbot
     [not found]             ` <CAAVeFuLEwcyJEjShVVp1cqRdrXbk7SHEJf+otqQqu5CkPr3-dg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-19 12:19               ` Martin Peres
2016-10-17  9:31   ` [PATCH 1/5] hwdefs: update nvc0_3d, add gm107_texture for new TIC format Samuel Pitoiset
2016-10-17 17:30   ` Emil Velikov

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=ca9bc26d-f9b4-9cd9-17b8-e8f0a087db91@gmail.com \
    --to=samuel.pitoiset-re5jqeeqqe8avxtiumwx3w@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox