From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EC2B81A1E92 for ; Thu, 22 Sep 2016 08:03:23 -0700 (PDT) Received: by mail-lf0-x22d.google.com with SMTP id g62so70421740lfe.3 for ; Thu, 22 Sep 2016 08:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=T704kPbaK+WIQBBY85yHcjS1A8cWSYMefVfVBRmdv5s=; b=LwvxIiUVdwOKr/YWFeitZZ8jLrlgXz0EMvkr+nEr7TfjrgJxwm6OR2d8mQdJ/MMGmf I6YuvkltqPshHsUpOTgiXXCzInl6SMALV5s/1U/naqmG6ArU4dQ5H78zTnrHIZjFvG4g 4wQmYQUvrJZBn+vF38e1Yhc/K0azURVr4mwis= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=T704kPbaK+WIQBBY85yHcjS1A8cWSYMefVfVBRmdv5s=; b=Kij1ZFmCczb3iTt/reEWQipoLk4fPNVdqH8P16tge3BDLZvh1voacpbt/f8djBSlLw Appejz2t8CuEKfICMhyc4sx/F2D5vVxMdfgaZjSzcMSrO7XaxfCJ15dNj5i+VSzaPRdb 2bqTyvlAu6R8JRe1fPZqG3XCOItqypboKmXMO6Bm4Qte+CScIUCvbjbOkML4kLjq5C7K KDn3dicMOMk5HRiByGFAXVyK6R28BJFKiP0tShcohPtcMHnvjGX12uHHJ25vaUWdYRUi gaMiuPi4cXsSi1meqKeGYg66852Z4i5ofrOx23Qd30zFPUel0dz4KKf/ZcQVJTHL6aa9 Htrw== X-Gm-Message-State: AE9vXwNRla75d/RnzzSXlQkFIjwKpRocop6ZsVuom3tgwL4mAhTRapWmvdknaL4adBGgFnek4+W870miJjhxXdeu X-Received: by 10.25.99.85 with SMTP id x82mr1091495lfb.179.1474556600830; Thu, 22 Sep 2016 08:03:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.157.204 with HTTP; Thu, 22 Sep 2016 08:03:20 -0700 (PDT) In-Reply-To: References: From: Ard Biesheuvel Date: Thu, 22 Sep 2016 16:03:20 +0100 Message-ID: To: valerij zaporogeci Cc: edk2-devel Subject: Re: flat mapping vs identity mapping on ARM X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2016 15:03:24 -0000 Content-Type: text/plain; charset=UTF-8 On 22 September 2016 at 15:30, valerij zaporogeci wrote: > In the ARM architecture, there is such a thing - "flat mapping", where > MMU stage 1 is disabled and the mapping done is 1:1 and attributes set > to the predefined values. What do you mean by 'attributes set to the predefined values' ? > Did I understand right, that this is NOT what UEFI means by "identity > mapping" with MMU enabled? And in the latter case there is need to > create all those page tables and stuff, setting 1:1 mapping between VA > and PA? If so, why to do that? Why "flat mapping" isn't what UEFI > would love to see as its mapping regime? On ARM, you need to enable the MMU in order to enable the Dcache.