From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDD87C1975A for ; Wed, 25 Mar 2020 17:08:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A781220777 for ; Wed, 25 Mar 2020 17:08:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZpGBByy0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A781220777 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PUQHOVpHp5LOOP8cksxSLeqiK2QD+7Ce9ApkSV+GvWk=; b=ZpGBByy0WJuxGw 0kV+nIMsVfxrCezxY77hde4RUzjy66iJ1gOqSaIR3Qygpy3BBl8gOPZz99vXTxCt82zA6MeV6YBKJ mfyfHj7HrW+L/culdhP51a+JtMFBhDYqkBn4vY+fc6Kw//BERaFS/y5vrHKMeK7mqYwBJwoWhpCKX Oc4gIQXs4NCE2UImOan5NsNvYGxWQXgmnQfqqf1tsZn4BkNQbHbqtNJcX9fW9VnMPj1KKYqENu5cu 0npYyenfyPwSAczbHdGj+8YBySP40bgcJCzskDGIU8EcRna1A9YqgGfA6AQDWG0qwpmfwZAQiagXe wuo2QmACxjNYAsU2Qtvw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jH9Vs-0007WK-Sj; Wed, 25 Mar 2020 17:08:20 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jH9Vn-0007Sz-5e for linux-arm-kernel@lists.infradead.org; Wed, 25 Mar 2020 17:08:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D1CD81FB; Wed, 25 Mar 2020 10:08:13 -0700 (PDT) Received: from [172.16.1.108] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6CC683F52E; Wed, 25 Mar 2020 10:08:13 -0700 (PDT) Subject: Re: [RFC PATCH 3/3] arm64: hibernate: idmap the single page that holds the copy page routines To: Pavel Tatashin References: <20200115143322.214247-1-james.morse@arm.com> <20200115143322.214247-4-james.morse@arm.com> From: James Morse Openpgp: preference=signencrypt Message-ID: <4b04e9d9-f2e4-2919-6501-a62b3b03dca2@arm.com> Date: Wed, 25 Mar 2020 17:08:15 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200325_100815_274463_C8E253D3 X-CRM114-Status: GOOD ( 12.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Pavel, On 3/25/20 1:29 PM, Pavel Tatashin wrote: >> You keep coming back to this because you are trying to idmap all memory >> on arm64. You do not need to do this. > > No, this is not what I am trying to do. That approach was done in my > first RFC, but I have since abandoned it, Ah, okay. These all merge into one! >> You only need one page idmaped so you can switch TTBR1_EL1, and turn the >> MMU off. >> >> >> You can do the copy of memory using a copy of the linear map in >> TTBR1_EL1. For an example: hibernate does exactly this. > > Yes, this is exactly what I am currently doing. Great! Thanks, James _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel