From: Daniel Vetter Subject: Re: [PATCH 1/2] drm/i915/bdw: Implement a basic PM interrupt handler Date: Wed, 16 Apr 2014 09:47:30 +0200 Message-ID: <20140416074729.GE10722@phenom.ffwll.local> References: <1397495475-22667-1-git-send-email-deepak.s@intel.com> <1397495475-22667-2-git-send-email-deepak.s@intel.com> <20140414195553.GP18465@intel.com> <20140416024306.GA6425@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 6227F6E357 for ; Wed, 16 Apr 2014 00:47:36 -0700 (PDT) Received: by mail-ee0-f54.google.com with SMTP id d49so8436012eek.41 for ; Wed, 16 Apr 2014 00:47:33 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140416024306.GA6425@bwidawsk.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Ben Widawsky Cc: deepak.s@intel.com, intel-gfx@lists.freedesktop.org, Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Tue, Apr 15, 2014 at 07:43:07PM -0700, Ben Widawsky wrote: > On Mon, Apr 14, 2014 at 10:55:53PM +0300, Ville Syrj=E4l=E4 wrote: > > On Mon, Apr 14, 2014 at 10:41:14PM +0530, deepak.s@intel.com wrote: > > > From: Ben Widawsky > > > = > > > Almost all of it is reusable from the existing code. The primary > > > difference is we need to do even less in the interrupt handler, since > > > interrupts are not shared in the same way. > > > = > > > The patch is mostly a copy-paste of the existing snb+ code, with upda= tes > > > to the relevant parts requiring changes to the interrupt handling. As > > > such it /should/ be relatively trivial. It's highly likely that I mis= sed > > > some places where I need a gen8 version of the PM interrupts, but it = has > > > become invisible to me by now. > > > = > > > This patch could probably be split into adding the new functions, > > > followed by actually handling the interrupts. Since the code is > > > currently disabled (and broken) I think the patch stands better by > > > itself. > > > = > > > v2: Move the commit about not touching the ringbuffer interrupt to the > > > snb_* function where it belongs (Rodrigo) > > > = > > > v3: Rebased on Paulo's runtime PM changes > > > = > > > v4: Not well validated, but rebase on > > > commit 730488b2eddded4497f63f70867b1256cd9e117c > > > Author: Paulo Zanoni > > > Date: Fri Mar 7 20:12:32 2014 -0300 > > > = > > > drm/i915: kill dev_priv->pm.regsave > > > = > > > v5: Rebased on latest code base. (Deepak) > > > = > > > Signed-off-by: Ben Widawsky > > > = > > > Conflicts: > > > drivers/gpu/drm/i915/i915_irq.c > > = > > IIRC Daniel doesn't like these conflict markers. So should be dropped. > > = > = > I like the conflict markers generally. Daniel can kill it if he likes, > but thanks for the input. I've killed it this time around, but I don't > plan on it for the future. Imo leaving them in is just lazy. Either there was some real conflict that required real work, and then you should rev the patch revision and take note about the changes in the in-patch changelog. Or the conflict was trivial, in which case the left-behind marker is meaningless and doesn't add anything useful to the commit message. So please remove them and if it makes sense augment the patch revision log. See e.g. the rebase notes (where I mention the upstream changes that required the rebase) I add for -internal patches. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch