From: Daniel Vetter Subject: Re: [PATCH] drm/i915: clear up I915_(READ|WRITE)_NOTRACE confusion Date: Thu, 22 Dec 2011 19:16:47 +0100 Message-ID: <20111222181647.GB3904@phenom.ffwll.local> References: <1324513716-2330-1-git-send-email-daniel.vetter@ffwll.ch> <86pqfgwkz0.fsf@sumi.keithp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ww0-f43.google.com (mail-ww0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 658309E77A for ; Thu, 22 Dec 2011 10:15:02 -0800 (PST) Received: by wgbds11 with SMTP id ds11so13586803wgb.12 for ; Thu, 22 Dec 2011 10:15:01 -0800 (PST) Content-Disposition: inline In-Reply-To: <86pqfgwkz0.fsf@sumi.keithp.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: Keith Packard Cc: Daniel Vetter , intel-gfx List-Id: intel-gfx@lists.freedesktop.org On Thu, Dec 22, 2011 at 09:54:27AM -0800, Keith Packard wrote: > On Thu, 22 Dec 2011 01:28:36 +0100, Daniel Vetter wrote: > > Half of the users actually don't want just no tracing, but need to > > avoid the forcewake dance for correctness. So add new variants > > __I915_READ and __I915_WRITE for that. > > I'd sure like something more descriptive than '__' here. Perhaps > I915_READ_NOWAKE? Or even I915_READ_NO_FORCEWAKE? It's actually I915_READ_NO_FORCEWAKE_NOTRACE. Which is ugly, so Chris suggested the often-used (in the linux kernel) __ prefix for "raw interface, you better know what you're doing". I admit that I like that one quite a bit. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48