From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH 2/5] drm/i915: add cpu_map to i915 object Date: Fri, 13 Jul 2012 06:56:44 -0700 Message-ID: <20120713065644.20bd5170@bwidawsk.net> References: <1342160176-1807-1-git-send-email-ben@bwidawsk.net> <1342160176-1807-3-git-send-email-ben@bwidawsk.net> <1342165645_3225@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 699E59E74E for ; Fri, 13 Jul 2012 06:58:45 -0700 (PDT) In-Reply-To: <1342165645_3225@CP5-2952> 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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 13 Jul 2012 08:47:15 +0100 Chris Wilson wrote: > On Thu, 12 Jul 2012 23:16:13 -0700, Ben Widawsky wrote: > > mostly for convenience, this will help us clear up a bit of the code in > > intel_ringbuffer.c > > I don't think your couple of use-cases is a strong enough argument to > justify an extra pointer on thousands of objects. > > If you wanted, you could make the ilk pc w/a use the status page > instead... > -Chris > Actually, my original code went a step further than this. It combined all the ring data into 1 object, and then used a mini allocator for the pipe control, ring status, and the few dwords I need. I was _sure_ you would hate that, so I went to this. Can you swallow the one object for everything + allocator idea? -- Ben Widawsky, Intel Open Source Technology Center