Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2352300pxb; Mon, 19 Apr 2021 03:50:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbFjVf68xvxP8Uf6iYdvZHD+RW0/j/KdeB9d2HzQCce4nFb3PdU48yY6QSuicWnz3f+nmy X-Received: by 2002:a17:906:c1c9:: with SMTP id bw9mr22004265ejb.239.1618829436114; Mon, 19 Apr 2021 03:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618829436; cv=none; d=google.com; s=arc-20160816; b=bSwdHTAIQAC+djjtwFRzY/5RtzRjzIWeieuMXSNPY/iXspS1NwSyxtpYT13cooAjU1 B1Vct/S6vhi9t5lpDGfjJ7bfHYO4tmQ+PyHiObaK5PZ28Uga2Yxwnx8NlOXjnlpT0XRL UAE4fmtujVCzzeA+HQHR5Nr8QguLGde+jtA9eMGWh+Qdoqut8vATqfoPJGcloRuNAwBL R5ZP5O8dXq7suu5f9H0+wcQprxNj4PiIO79z9pfEMXeSmk0F6S+n+cY0CRK09RPEgway 0nCvNdFHukqk/nm5KrkORIftJsQwy2LpHLJUd/+1BK+YBB5mrqZ91HT/dFbZMEIB15ne Gldw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:message-id; bh=aAZ6Xq+Mb9ACZTGSdHjgOn/wOtun2tEWlFVwiO72ceA=; b=XBUQKF3b4Otit3Q24JAkMdvW7NkWl6+CdrikIwweKm6kTiuxPdz+BIsEk5ezakphcO KNbZS+QWXa3tvWYo3DLp3BFTNzwNB07+iMCitTGBoaetvJYoz3QEimI+CihpLin6oSPi W8NjeLidz7esKD0yOwYfTPvV+InYQYH9KBSBn3/FoVse3+mI38vSUgzwSNxuoBSnVFDU sEStHww83iubMwDazqxVanjfa0BuT/chKRgxvH2GjHDWOR6ZjAUq3mmVnEZCS1DpP7NI 3qUM60Q8A2vB0SRsCv5wa2Gs0CSiZq+8GLlNH6JadM36HAX/LgHjx+Rey0gz2k1AcMeJ YpLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si12113331ejk.321.2021.04.19.03.50.12; Mon, 19 Apr 2021 03:50:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238087AbhDSKsA (ORCPT + 99 others); Mon, 19 Apr 2021 06:48:00 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:26731 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232539AbhDSKr5 (ORCPT ); Mon, 19 Apr 2021 06:47:57 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4FP3RX3d3FzB09b1; Mon, 19 Apr 2021 12:47:20 +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 PNvDtWqSfhJq; Mon, 19 Apr 2021 12:47:20 +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 4FP3RX2Dw7zB09Zy; Mon, 19 Apr 2021 12:47:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2023B8B7BB; Mon, 19 Apr 2021 12:47:25 +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 vL0j2I5OqooE; Mon, 19 Apr 2021 12:47:25 +0200 (CEST) Received: from po16121vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.103]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D2F1A8B7B4; Mon, 19 Apr 2021 12:47:24 +0200 (CEST) Received: by po16121vm.idsi0.si.c-s.fr (Postfix, from userid 0) id B2CDC679FC; Mon, 19 Apr 2021 10:47:24 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH v2 0/4] Convert powerpc to GENERIC_PTDUMP To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Steven Price , akpm@linux-foundation.org, dja@axtens.net Cc: Oliver O'Halloran , linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Date: Mon, 19 Apr 2021 10:47:24 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series converts powerpc to generic PTDUMP. For that, we first need to add missing hugepd support to pagewalk and ptdump. v2: - Reworked the pagewalk modification to add locking and check ops->pte_entry - Modified powerpc early IO mapping to have gaps between mappings - Removed the logic that checked for contiguous physical memory - Removed the articial level calculation in ptdump_pte_entry(), level 4 is ok for all. - Removed page_size argument to note_page() Christophe Leroy (4): mm: pagewalk: Fix walk for hugepage tables powerpc/mm: Leave a gap between early allocated IO areas powerpc/mm: Properly coalesce pages in ptdump powerpc/mm: Convert powerpc to GENERIC_PTDUMP arch/powerpc/Kconfig | 2 + arch/powerpc/Kconfig.debug | 30 ----- arch/powerpc/mm/Makefile | 2 +- arch/powerpc/mm/ioremap_32.c | 4 +- arch/powerpc/mm/ioremap_64.c | 2 +- arch/powerpc/mm/mmu_decl.h | 2 +- arch/powerpc/mm/ptdump/8xx.c | 6 +- arch/powerpc/mm/ptdump/Makefile | 9 +- arch/powerpc/mm/ptdump/book3s64.c | 6 +- arch/powerpc/mm/ptdump/ptdump.c | 187 ++++++++---------------------- arch/powerpc/mm/ptdump/shared.c | 6 +- mm/pagewalk.c | 58 ++++++++- 12 files changed, 127 insertions(+), 187 deletions(-) -- 2.25.0