From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756241Ab2INItn (ORCPT ); Fri, 14 Sep 2012 04:49:43 -0400 Received: from outgoing.email.vodafone.de ([139.7.28.128]:35390 "EHLO outgoing.email.vodafone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754607Ab2INIte (ORCPT ); Fri, 14 Sep 2012 04:49:34 -0400 X-Authentication-Info: Sender authenticated as deathsimple@vodafone.de (using CRAM-MD5) Message-ID: <5052EF8F.1020905@vodafone.de> Date: Fri, 14 Sep 2012 10:49:19 +0200 From: =?ISO-8859-1?Q?Christian_K=F6nig?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Jerome Glisse CC: Alex Deucher , Dmitry Cherkasov , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Alex Deucher , Dave Airlie , Dmitry Cherkasov Subject: Re: [PATCH] Add 2-level GPUVM pagetables support to radeon driver. References: <1347545629-3474-1-git-send-email-Dmitrii.Cherkasov@amd.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.09.2012 20:42, Jerome Glisse wrote: > On Thu, Sep 13, 2012 at 2:37 PM, Alex Deucher wrote: >> On Thu, Sep 13, 2012 at 2:17 PM, Jerome Glisse wrote: >>> On Thu, Sep 13, 2012 at 10:13 AM, Dmitry Cherkasov >>> wrote: >>>> PDE/PTE update code uses CP ring for memory writes. >>>> All page table entries are preallocated for now in alloc_pt(). >>>> >>>> It is made as whole because it's hard to divide it to several patches >>>> that compile and doesn't break anything being applied separately. >>>> >>>> Tested on cayman card. >>>> >>>> Signed-off-by: Dmitry Cherkasov >>>> --- >>>> I couldn't test in on SI card, so would be happy if someone could check it there. >>> I wonder how this could have work as you don't set >>> PAGE_TABLE_BLOCK_SIZE field so each page directory entry cover only 1 >>> page. >> I think PAGE_TABLE_BLOCK_SIZE refers number of 4k pages used for PTE >> entries per PDE. E.g., 1 4k page contains 512 64 bit PTEs. so if >> BLOCK_SIZE is set to 1 page, each PDE points to 1 page (4k) or PTE >> entries. If BLOCK_SIZE is 2, each PDE points to 2 pages (8k) or PTEs, >> etc. >> >> Alex >> > If so then it's ok Yeah, minor nitpick: BLOCK_SIZE seems to be number of 4k pages in a page directory entry minus 1. So with a BLOCK_SIZE of 0 you get one 4K page and with a BLOCK_SIZE of 1 you get 8K, etc... Christian.