Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1799409imm; Wed, 16 May 2018 03:18:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp49k/W3kppHtvsGK2WkmEzxFDWyfvbAP8+7z47Y3myKp4H2Rs9Y7cP8yzqB6IglMyhrlU4 X-Received: by 2002:a62:469b:: with SMTP id o27-v6mr303108pfi.124.1526465929592; Wed, 16 May 2018 03:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526465929; cv=none; d=google.com; s=arc-20160816; b=Y/ytd/4fdnfZ0C+QN6CFpI67HBwtgAngpfZXDXJOxNwqTMk9F8u5I1NbJSrfAWk5Oo 5u+0jzXSDZB7YEWcUSR7NmDdeoIxEuJGc9jJAC3XeyVVLV0YOH+uOh6CKlxk0Nt0PnOm h10ay5P3O5bXC6SlqTECCwRoPij9bOWZU7vBMihmMvrT51BRQyd10dRmGZ+myPehJDMl hqPLIuR6SEhC7BtGkBBGB72D8zHCqMdNyUS9spnnDGxeUSVb4qKzFMTbl4xCDgHaP72e WwM5q+zN/TJfe+DKmAFqFrd5ehLYDwJHzKvQnpaQlGdQHAiAEBno274dxRSnpRMGOcvl JfKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=TtFRo3ZtQok+Tz4yU98bNaLl8tqnWCKUVClkdXDMcn8=; b=oNt19NrResKD1CKQxI6PwT5err3OaaObxfPCNewUYSz8uYstMEmN/8AK1BWrsDiDU3 JDMikIQZTl3Twc7V432nZf/XvizuFQAk14F+/iapVw6g3pewJ3uLJz7sGpt+wlt3eZs9 X6g4U8QwuUpUNzVt/UQd+y5T6pruNI6HPdEUfg9SjB3YRSR84wW4ClgtVvpglGxY4/0R +PIWJhqU4Lmcw1bUUWZ8npjAG+yrq0lpp0ceop/CwSh/U7C2qv7D1kWSZgy/POX2m9KE CT5DnPjbx5z3aaNlkBhZA5J1xRcJ0wcS/WWk9TYWBvqBoM103jlhpTCby+Q4VB1VVPXl b+lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9-v6si1910719plb.522.2018.05.16.03.18.35; Wed, 16 May 2018 03:18:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752995AbeEPKSR (ORCPT + 99 others); Wed, 16 May 2018 06:18:17 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:44554 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173AbeEPKR7 (ORCPT ); Wed, 16 May 2018 06:17:59 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 40m9Nz40Hwz9txfP; Wed, 16 May 2018 12:17:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id gwK3O5V-_Ums; Wed, 16 May 2018 12:17:55 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 40m9Nz3TzGz9txfM; Wed, 16 May 2018 12:17:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A0C698B94D; Wed, 16 May 2018 12:17:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 2giEGuLzM7PW; Wed, 16 May 2018 12:17:58 +0200 (CEST) Received: from PO15451 (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 613158B830; Wed, 16 May 2018 12:17:58 +0200 (CEST) Subject: Re: [PATCH 00/17] Implement use of HW assistance on TLB table walk on 8xx To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , aneesh.kumar@linux.vnet.ibm.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <87sh6yr8l2.fsf@concordia.ellerman.id.au> From: Christophe LEROY Message-ID: Date: Wed, 16 May 2018 12:17:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <87sh6yr8l2.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 11/05/2018 à 08:48, Michael Ellerman a écrit : > Christophe Leroy writes: > >> The purpose of this serie is to implement hardware assistance for TLB table walk >> on the 8xx. >> >> First part is to make L1 entries and L2 entries independant. >> For that, we need to alter ioremap functions in order to handle GUARD attribute >> at the PGD/PMD level. >> >> Last part is to try and reuse PTE fragment implemented on PPC64 in order to >> not waste 16k Pages for page tables as only 4k are used. For the time being, >> it doesn't work, but I include it in the serie anyway in order to get feedback. >> >> Tested successfully on 8xx up to the one before the last. >> >> Didn't have time to do compilation test on other configs, I send it anyway >> before leaving for one week vacation in order to get feedback. > > I replied to a few patches, here's some other build errors: > > > arch/powerpc/mm/ioremap.c:135:15: error: '_PAGE_GUARDED' undeclared (first use in this function): > pseries_defconfig/powerpc > > arch/powerpc/include/asm/book3s/32/pgtable.h:53:19: error: 'PKMAP_BASE' undeclared (first use in this function): > pmac32_defconfig/powerpc-5.3 > > include/linux/mm.h:533:41: error: 'PKMAP_BASE' undeclared (first use in this function): > pmac32_defconfig/powerpc > > ERROR: "ioremap_bot" [net/netfilter/nf_conntrack.ko] undefined!: > linkstation_defconfig/powerpc > > ERROR: "ioremap_bot" [fs/xfs/xfs.ko] undefined!: > linkstation_defconfig/powerpc > > arch/powerpc/include/asm/nohash/32/pgtable.h:80:20: error: 'PKMAP_BASE' undeclared (first use in this function): > corenet32_smp_defconfig/powerpc-5.3 > > arch/powerpc/include/asm/nohash/32/pgalloc.h:64:43: error: '_PMD_GUARDED' undeclared (first use in this function): > ppc40x_defconfig/powerpc-5.3 > > ERROR: "ioremap_bot" [net/packet/af_packet.ko] undefined!: > storcenter_defconfig/powerpc > > ERROR: "ioremap_bot" [drivers/usb/core/usbcore.ko] undefined!: > ppc44x_defconfig/powerpc > Thanks for testing. I have now fixed all of them in v2. For PKMAP_BASE, I had to move it from asm/highmem.h into the book3s/32/pgtable.h and nohash/32/pgtable.h because including asm/highmem.h in the pgtable.h files was introducing circular dependency. Christophe