From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 10/9] drm/i915/bdw: Kill ppgtt->num_pt_pages Date: Tue, 4 Mar 2014 16:42:27 +0100 Message-ID: <20140304154227.GI17001@phenom.ffwll.local> References: <1392876349-24684-1-git-send-email-benjamin.widawsky@intel.com> <1393016794-4588-1-git-send-email-benjamin.widawsky@intel.com> <1393262222.13131.131.camel@intelbox> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f173.google.com (mail-ea0-f173.google.com [209.85.215.173]) by gabe.freedesktop.org (Postfix) with ESMTP id D6F50FA471 for ; Tue, 4 Mar 2014 07:42:33 -0800 (PST) Received: by mail-ea0-f173.google.com with SMTP id r15so441199ead.4 for ; Tue, 04 Mar 2014 07:42:33 -0800 (PST) Content-Disposition: inline In-Reply-To: <1393262222.13131.131.camel@intelbox> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Imre Deak Cc: Intel GFX , Ben Widawsky , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Mon, Feb 24, 2014 at 07:17:02PM +0200, Imre Deak wrote: > On Fri, 2014-02-21 at 13:06 -0800, Ben Widawsky wrote: > > With the original PPGTT implementation if the number of PDPs was not a > > power of two, the number of pages for the page tables would end up being > > rounded up. The code actually had a bug here afaict, but this is a > > theoretical bug as I don't believe this can actually occur with the > > current code/HW.. > > > > With the rework of the page table allocations, there is no longer a > > distinction between number of page table pages, and number of page > > directory entries. To avoid confusion, kill the redundant (and newer) > > struct member. > > > > Cc: Imre Deak > > Signed-off-by: Ben Widawsky > > Nitpick: keeping num_pt_pages instead would make the code more > understandable to me and symmetric with num_pd_pages, but that would've > been much more churn. In any case nice simplification, > > Reviewed-by: Imre Deak All merged to dinq, thanks for patches&review. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch