From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH] drm/i915: Do hw quiescing first during unload Date: Fri, 18 Oct 2013 21:18:42 +0300 Message-ID: <20131018181842.GR13047@intel.com> References: <1382011373-22172-1-git-send-email-chris@chris-wilson.co.uk> <20131017190726.GB16575@bwidawsk.net> <20131017193744.GB4148@nuc-i3427.alporthouse.com> <20131017210434.GC16575@bwidawsk.net> <20131018073630.GK13047@intel.com> <20131018180914.GA24056@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 0898DE5DF6 for ; Fri, 18 Oct 2013 11:18:45 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20131018180914.GA24056@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 Fri, Oct 18, 2013 at 11:09:15AM -0700, Ben Widawsky wrote: > On Fri, Oct 18, 2013 at 10:36:30AM +0300, Ville Syrj=E4l=E4 wrote: > > On Thu, Oct 17, 2013 at 02:04:34PM -0700, Ben Widawsky wrote: > > > On Thu, Oct 17, 2013 at 08:37:44PM +0100, Chris Wilson wrote: > > > > On Thu, Oct 17, 2013 at 12:07:26PM -0700, Ben Widawsky wrote: > > > > > On Thu, Oct 17, 2013 at 01:02:53PM +0100, Chris Wilson wrote: > > > > > > If we force the hw to idle as our first step during unload, we = can abort > > > > > > the unload upon failure. Later we can probe whether the hardwar= e remain > > > > > > active even after we try to shut it down. > > > > > > = > > > > > > Signed-off-by: Chris Wilson > > > > > = > > > > > Isn't it pretty mean to fail to unload? Wouldn't pci_clear_master= yield > > > > > what we want? > > > > = > > > > It may be mean, but it seems to me to be the right thing to do if we > > > > cannot turn off the hardware to unload the driver... > > > > -Chris > > > > = > > > > -- = > > > > Chris Wilson, Intel Open Source Technology Centre > > > = > > > And what about my suggestion of simply using pci_clear_master? > > = > > Might that hang some boxes? > > = > = > Hmm, why are you thinking? No particular reason. Just my well honed "hardware is often borked" reflex. -- = Ville Syrj=E4l=E4 Intel OTC