Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3637468ybg; Sun, 7 Jun 2020 06:04:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpguegtVdt6Hauh9PiD8dOjYWFRdcK2JBF7TPcjLExKV7OFIVb4AFd/tL6NN/n2NA8Txrq X-Received: by 2002:aa7:d359:: with SMTP id m25mr17182097edr.365.1591535086359; Sun, 07 Jun 2020 06:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591535086; cv=none; d=google.com; s=arc-20160816; b=qrw9OGo/1v+AQ5VyS96NCW2kDB7s3ySGycLNruYgodf3LMpNBR4PG1duX6xKBvrzCX vUYjFxgqHFCebFvz2Q98Pq7Xlcdd9rag4MwU8vjUMq++hcHc5vSqZtjvVDJSTg/hQ0h0 daWMTa01A+GbtW4lv9vYA81EJi9t/Gq+7Wm3szk/WG1KBMocrs88kt0rbxoyQUjvtHDQ f7V43+uArPgGuTVjIANLKI2mBr8gD1U35AldCA0FQmuM0sFfdnPPb+rGPy1RGNkMHlxU 4aGDxcQ7Fz5+D4wQhMzrGIO1BX4vaIv4kwrT1GbgLp83BJkGKkxiuExEdDX1NAZ9K87e 3R+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=13Yqp6cwkFCZ9XR53+tBkYuICFMznkDxO3gGMIN0iL8=; b=g+YgSSn//zy+mxQHQHYR7zTV8wGve9I+zsFtigotmsUXZ9BcFCdDk6tsOK7sQh9QEo Khf9OVI/sHtDfPz2zusvf8OkPtz6mEGcnPJxshpNt9uA1UCCTqptaWOjW8xpE/SY4IVI QsJjwPkKp58YoY9MSHVWKaPSbOQ/jBrgSJInUOMqaXL9f443oIZ4payHzzoQNhGp6amx sUKneLHc2Ke9k911yXGsyWgSS6ePV/QyTZJhxUsGJNCHjSTSUnwlFFEvyLfPRWDYApi+ l/NKAelM3BzYDXHRe2bLQppObI7jUOiMCbrbOMH9ozciBr3+sbMbDPyks1PoAaoqFp37 2jZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iksT6XN5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si7061248ejm.661.2020.06.07.06.04.23; Sun, 07 Jun 2020 06:04:46 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iksT6XN5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbgFGM7m (ORCPT + 99 others); Sun, 7 Jun 2020 08:59:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbgFGM7l (ORCPT ); Sun, 7 Jun 2020 08:59:41 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B509C08C5C2 for ; Sun, 7 Jun 2020 05:59:41 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id y18so5574234plr.4 for ; Sun, 07 Jun 2020 05:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=13Yqp6cwkFCZ9XR53+tBkYuICFMznkDxO3gGMIN0iL8=; b=iksT6XN5g4yhaxFtLLKlddI7+CySOqTPEAHzw9yQGDPzU4V2r9rA5XS6xSv+2xgKl0 rqPbFedISCJmLiswEZdbLRJDRVEO5P8GhZqBqt+nxHT7/jpnzDmg7Ah3t3LG3Rh59XT+ xDlCvdLC54WKOt3K1cwvLAhqpSaazrqw+lquSK/P/dtwLYLybCmDhRnASk8v5SKXEFme o2JQkxQxdLcUNrhBCVR8/3QoI8kgLhADVAyESFB+WodtcBAAk8IY/cvQEjxiuosdkpjB jD0FgcQ4nYo2XeuaPEzZhOcIk0vnL0kDKMDnbbG8DwT6IdWBY0xaWeMq2aMyuQAHPDCi z+Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=13Yqp6cwkFCZ9XR53+tBkYuICFMznkDxO3gGMIN0iL8=; b=l/Hs0ANqv1XUPC0hRuMbNy3++BzA7wswle7tGNrUVDcqzXrrVstpUSQJ0II/Gy9cj0 OENAwSo6drbcTPHtK29UqF2SczSCx/iHb/QOQkZH9KHRGPQfls7XYpKIuViHBYToehRT Xv25njuQACegq33jrsWRKDd7Dg9g4SunYUkt81BvQMYPw+97UpFQUMu8n1F1tGrnWlnV qAASpPTm8nAUCScRqOnDD7aPhiI9l3HqsGxuWD9FLQoEhL4yyr+Y+Q80E04HvQJxM036 b3oTxbexc938K6w8zZkE7hQYOW9wIhVo6vWrOgnEn/3h/RHP29FJxYi7UCtBYb4RW3D6 yN2Q== X-Gm-Message-State: AOAM532jx9qF+kZBbxtPo1knE8A76zRDsj/xHv21jBY9xePG7a6+Yiu2 9GXoUGxAWTz4o5UImaJNCt7+Tt5v X-Received: by 2002:a17:90a:a897:: with SMTP id h23mr12310158pjq.90.1591534780441; Sun, 07 Jun 2020 05:59:40 -0700 (PDT) Received: from localhost ([49.207.54.208]) by smtp.gmail.com with ESMTPSA id u35sm3656450pgm.48.2020.06.07.05.59.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Jun 2020 05:59:39 -0700 (PDT) Date: Sun, 7 Jun 2020 18:29:32 +0530 From: afzal mohammed To: Arnd Bergmann Cc: Russell King , Linux ARM , "linux-kernel@vger.kernel.org" Subject: ARM: vmsplit 4g/4g Message-ID: <20200607125932.GA4576@afzalpc> References: <20200511142113.GA31707@afzalpc> <20200512104758.GA12980@afzalpc> <20200514111755.GA4997@afzalpc> <20200514133545.GA5020@afzalpc> <20200516060624.GA6371@afzalpc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sat, May 16, 2020 at 09:35:57AM +0200, Arnd Bergmann wrote: > On Sat, May 16, 2020 at 8:06 AM afzal mohammed wrote: > > Okay, so the conclusion i take is, > > 1. VMSPLIT 4G/4G have to live alongside highmem > > 2. For user space copy, do pinning followed by kmap > Right, though kmap_atomic() should be sufficient here > because it is always a short-lived mapping. get_user_pages_fast() followed by kmap_atomic() & then memcpy() seems to work in principle for user copy. Verified in a crude way by pointing TTBR0 to a location that has user pgd's cleared upon entry to copy_to_user() & restoring TTBR0 to earlier value after user copying was done and ensuring boot. Meanwhile more testing w/ kernel static mapping in vmalloc space revealed a major issue, w/ LPAE it was not booting. There were issues related to pmd handling, w/ !LPAE those issues were not present as pmd is in effect equivalent to pgd. The issues has been fixed, though now LPAE boots, but feel a kind of fragile, will probably have to revisit it. Regards afzal