All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Samuel Pitoiset
	<samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: NV50 compute support questions
Date: Wed, 2 Dec 2015 16:34:26 +0100	[thread overview]
Message-ID: <565F0F82.9040300@redhat.com> (raw)
In-Reply-To: <5653314D.7010905-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

On 01-12-15, Samuel Pitoiset wrote:

 >>> Ok, here is a MMT trace of vectorAdd:
 >>>
 >>> https://fedorapeople.org/~jwrdegoede/vectorAdd.log.gz
 >>
 >> Hi Hans,
 >>
 >> Thanks a lot.
 >
 > Well, I didn't know but Martin has a GK208...
 > I just tested the compute support on his card and ... it works without
 > any changes. :-)
 >
 > I'm sorry, I was sure the compute support didn't work on this chipset.

No need to be sorry because, ...

 > Feel free to test on your GK208 and report back if you have problems.

I've done that, and for me it does not work, if I try to enable compute
support like this:

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index 461fcaa..ab4ea85 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -187,7 +187,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
     case PIPE_CAP_SEAMLESS_CUBE_MAP_PER_TEXTURE:
        return (class_3d >= NVE4_3D_CLASS) ? 1 : 0;
     case PIPE_CAP_COMPUTE:
-      return (class_3d <= NVE4_3D_CLASS) ? 1 : 0;
+      return 1;
     case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER:
        return nouveau_screen(pscreen)->vram_domain & NOUVEAU_BO_VRAM ? 1 : 0;

@@ -246,8 +246,6 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
           return 0;
        break;
     case PIPE_SHADER_COMPUTE:
-      if (class_3d > NVE4_3D_CLASS)
-         return 0;
        break;
     default:
        return 0;
@@ -574,11 +572,10 @@ nvc0_screen_init_compute(struct nvc0_screen *screen)
     case 0xd0:
        return nvc0_screen_compute_setup(screen, screen->base.pushbuf);
     case 0xe0:
-      return nve4_screen_compute_setup(screen, screen->base.pushbuf);
     case 0xf0:
     case 0x100:
     case 0x110:
-      return 0;
+      return nve4_screen_compute_setup(screen, screen->base.pushbuf);
     default:
        return -1;
     }

Then as soon as I do startx (which starts gnome-shell) the machine
freezes. This is with mesa-master with the above changes on top.

X / gnome-shell will happily work of I do not call nve4_screen_compute_setup()
but then test/trivial/compute fails with a null-ptr exception.

Do you perhaps have some extra patches in your tree, or am I just unlucky ?

I've tested this on both a 4.2 and a 4.4-rc3 kernel.

Regards,

Hans
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2015-12-02 15:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-20 10:36 NV50 compute support questions Hans de Goede
     [not found] ` <564EF7CA.4090809-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-11-20 11:55   ` Pierre Moreau
2015-11-20 16:07   ` Samuel Pitoiset
     [not found]     ` <564F452A.1010206-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-20 16:29       ` Hans de Goede
     [not found]         ` <564F4A54.7050704-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-11-23 15:31           ` Samuel Pitoiset
     [not found]             ` <5653314D.7010905-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-12-02 15:34               ` Hans de Goede [this message]
     [not found]                 ` <565F0F82.9040300-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-02 18:33                   ` Samuel Pitoiset
     [not found]                     ` <565F3988.10500-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-12-02 18:37                       ` Ilia Mirkin
2015-12-04  8:45                       ` Hans de Goede
     [not found]                         ` <566152BE.1080107-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-04  8:54                           ` Samuel Pitoiset
     [not found]                             ` <566154C2.4090509-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-12-04  9:12                               ` Hans de Goede
     [not found]                                 ` <56615907.5070909-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-04  9:21                                   ` Samuel Pitoiset
2015-12-07 15:10                           ` Hans de Goede
     [not found]                             ` <5665A161.90400-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-07 16:18                               ` Samuel Pitoiset
2015-11-25 14:43       ` Hans de Goede
     [not found]         ` <5655C92E.5010605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-11-25 16:50           ` Samuel Pitoiset
     [not found]             ` <5655E6CC.30905-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-25 16:54               ` Ilia Mirkin
2015-11-26  8:42           ` Samuel Pitoiset
     [not found]             ` <5656C5F1.2000406-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-26 12:21               ` Hans de Goede
     [not found]                 ` <5656F958.1030201-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-11-26 12:52                   ` Samuel Pitoiset
     [not found]                     ` <56570087.80800-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-30 13:27                       ` Hans de Goede
     [not found]                         ` <565C4EAD.8030508-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-11-30 15:13                           ` Samuel Pitoiset
     [not found]                             ` <565C67A3.2090609-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-12-01 16:00                               ` Samuel Pitoiset
2015-11-30 19:03                           ` Ilia Mirkin
     [not found]                             ` <CAKb7UvjviUPdMCMrmPCuKy65WkyTz7ehNKoxa0myFbQftcc5mw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-01  8:19                               ` Hans de Goede

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=565F0F82.9040300@redhat.com \
    --to=hdegoede-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@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.