Received: by 10.223.185.116 with SMTP id b49csp393756wrg; Fri, 23 Feb 2018 00:01:58 -0800 (PST) X-Google-Smtp-Source: AH8x227nGSwcYNLx2lixJ3DlgbB1a30IW+SqaPSTJckcVSNknZBz2nw13Mo3ao4mTsTWM1s+Whl2 X-Received: by 10.98.0.67 with SMTP id 64mr886808pfa.63.1519372918168; Fri, 23 Feb 2018 00:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519372918; cv=none; d=google.com; s=arc-20160816; b=Wcq9CF4yB3ifZxgCb3xB9UoZ6NVrZ+8pAERxKDH728qeNFghr+ZmDekFtG2bY+3HZv NTls4zuOAVxNr47AL9jV5qfE9fvbR06GIeyXPbiKq/flYO1tL2qdnYSRYH4GZG/Zb/ns Tn+nuFbtdhDm7RgCXhqCqGvI056M0ovQSWqdV4+a653wz45n1YBOKN6soPMEqd2ztAQw W/okc7gOlYedH98yhbHdMVFCmvGTelJluMuHUfXg+z7l2ruK6IjCwSjJfPP3XSMUZl3P gJrB8HcgAEGTux3xX+YUzhveul5mYO+P+EgY3LVgAsZebZ89kF8psxGw449I1p6FpqK8 +C9A== 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=/FUF7NWi39/owoVLU/KleodnQK4996cSvVBXFkW7n2M=; b=A47PVNbiPqwhJvZGzailKFsugC7JCF75VitYUM9lBrRusICA2adZg8zj2oJVNk0CPq bw8YOUZnCyM3P0zypRIUXjQgzre73wuCv2PzaTrnIZxebRP9oiFrbgSAPXtfq1iDCU1Q tt5PvO8Y/I7Br3wdxH/0WlYSGwiGkIXF+V4oXJfPX3yy7jTh1ZUSxw1WeRiEJv4vnBx2 xJow4MZeUBdkimQs5ZFIr5SdD0H2KcJ/AbX347nTbIophoBF9/d6GqJhuopExYMzxXzu N3phvFgEAq0Bciv+sZLH5Imh/w2Kq70fuASLcytrJJoi+Yl5/lQ/lX7BnLBcxhTpzXcx 0YAA== 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 s24si1428174pfj.121.2018.02.23.00.01.42; Fri, 23 Feb 2018 00:01:58 -0800 (PST) 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 S1750916AbeBWIBF (ORCPT + 99 others); Fri, 23 Feb 2018 03:01:05 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:12071 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724AbeBWIBE (ORCPT ); Fri, 23 Feb 2018 03:01:04 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 3znkDc49STz9tvlt; Fri, 23 Feb 2018 09:00:48 +0100 (CET) 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 272hOzSEl_EZ; Fri, 23 Feb 2018 09:00:48 +0100 (CET) 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 3znkDc3YQsz9tvlk; Fri, 23 Feb 2018 09:00:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4377C8BBA3; Fri, 23 Feb 2018 09:01:03 +0100 (CET) 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 0Fy94qi38uxW; Fri, 23 Feb 2018 09:01:03 +0100 (CET) Received: from PO15451 (po15451.idsi0.si.c-s.fr [172.25.231.5]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 137688BB7F; Fri, 23 Feb 2018 09:01:03 +0100 (CET) Subject: Re: [PATCH 0/5] PPC32/ioremap: Use memblock API to check for RAM To: =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= , linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, Michael Ellerman , linux-mm@kvack.org, Joel Stanley References: <20180222121516.23415-1-j.neuschaefer@gmx.net> From: Christophe LEROY Message-ID: Date: Fri, 23 Feb 2018 09:01:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180222121516.23415-1-j.neuschaefer@gmx.net> 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 22/02/2018 à 13:15, Jonathan Neuschäfer a écrit : > This patchset solves the same problem as my previous one[1] but follows > a rather different approach. Instead of implementing DISCONTIGMEM for > PowerPC32, I simply switched the "is this RAM" check in __ioremap_caller > to the existing page_is_ram function, and unified page_is_ram to search > memblock.memory on PPC64 and PPC32. > > The intended result is, as before, that my Wii can allocate the MMIO > range of its GPIO controller, which was previously not possible, because > the reserved memory hack (__allow_ioremap_reserved) didn't affect the > API in kernel/resource.c. > > Thanks to Christophe Leroy for reviewing the previous patchset. I tested your new serie, it doesn't break my 8xx so it is OK for me. Christophe > > [1]: https://www.spinics.net/lists/kernel/msg2726786.html > > Jonathan Neuschäfer (5): > powerpc: mm: Simplify page_is_ram by using memblock_is_memory > powerpc: mm: Use memblock API for PPC32 page_is_ram > powerpc/mm/32: Use page_is_ram to check for RAM > powerpc: wii: Don't rely on the reserved memory hack > powerpc/mm/32: Remove the reserved memory hack > > arch/powerpc/mm/init_32.c | 5 ----- > arch/powerpc/mm/mem.c | 12 +----------- > arch/powerpc/mm/mmu_decl.h | 1 - > arch/powerpc/mm/pgtable_32.c | 4 +--- > arch/powerpc/platforms/embedded6xx/wii.c | 14 +------------- > 5 files changed, 3 insertions(+), 33 deletions(-) >