From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Lespiau Subject: Re: [PATCH 3/5] lib: Add a drm_open_any_render() that will try to use render nodes Date: Thu, 24 Oct 2013 22:01:21 +0100 Message-ID: <20131024210121.GA2935@strange.amr.corp.intel.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 0914FE5D70 for ; Thu, 24 Oct 2013 14:01:24 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20131024204322.GB28973@bwidawsk.net> 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: Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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. Actually, as Daniel said on IRC, we'd most likely want to run quite a few of the tests with both a fd from card0 and a fd from the render node to ensure that we can function correctly from the render node -- Damien