From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH 3/5] lib: Add a drm_open_any_render() that will try to use render nodes Date: Thu, 24 Oct 2013 15:17:14 -0700 Message-ID: <20131024221714.GD28973@bwidawsk.net> References: <1382625656-3199-1-git-send-email-damien.lespiau@intel.com> <1382625656-3199-4-git-send-email-damien.lespiau@intel.com> <20131024204322.GB28973@bwidawsk.net> <20131024210121.GA2935@strange.amr.corp.intel.com> <20131024210543.GB2935@strange.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.bwidawsk.net (bwidawsk.net [166.78.191.112]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B074E710D for ; Thu, 24 Oct 2013 15:17:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20131024210543.GB2935@strange.amr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Damien Lespiau Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Oct 24, 2013 at 10:05:43PM +0100, Damien Lespiau wrote: > On Thu, Oct 24, 2013 at 10:01:21PM +0100, Damien Lespiau wrote: > > On Thu, Oct 24, 2013 at 01:43:22PM -0700, Ben Widawsky wrote: > > > On Thu, Oct 24, 2013 at 03:40:54PM +0100, Damien Lespiau wrote: > > > > I was fedup with having to run my tests as root and not being able to > > > > use my usual setup for tests that only exercise the GT part of the GPU. > > > > > > > > Render nodes to the rescue! > > > > > > I think usually this is a bad idea except for pretty isolated proof of > > > concept kind of things. Mostly intel-gpu-tools is testing our kernel > > > driver, and therefore running without a reboot anyway is sort of > > > unusual. > > > > Hum? I fail to see the link. It should be strickly equivalent, with the > > added bonus that you can write and execute a test as a normal user. > > By "normal user" I mean with a DRM master running and without having to > do the authentification dance. > > -- > Damien You're right, this was a half baked thought. What I was thinking is, condoning running tests on a live system is a bad idea - but forcing rendernodes doesn't effect that. Also, I agree with Daniel. Getting some simultaneous tests would be nice. Practically, requiring root won't go away I think, since certain things like our forcewake debugfs require root. Anyway, carry on. -- Ben Widawsky, Intel Open Source Technology Center