From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 2/5] drm/i915: add cpu_map to i915 object Date: Fri, 13 Jul 2012 15:03:40 +0100 Message-ID: <1342188232_4561@CP5-2952> References: <1342160176-1807-1-git-send-email-ben@bwidawsk.net> <1342160176-1807-3-git-send-email-ben@bwidawsk.net> <1342165645_3225@CP5-2952> <20120713065644.20bd5170@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (smtp.fireflyinternet.com [109.228.6.236]) by gabe.freedesktop.org (Postfix) with ESMTP id 19596A10E3 for ; Fri, 13 Jul 2012 07:03:56 -0700 (PDT) In-Reply-To: <20120713065644.20bd5170@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, 13 Jul 2012 06:56:44 -0700, Ben Widawsky wrote: > 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? Yes. I'll happily pay a little one-off extra complexity to reduce the number of pages we have allocated for a smattering of dwords. -Chris -- Chris Wilson, Intel Open Source Technology Centre