Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp614158ybg; Wed, 10 Jun 2020 09:08:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7eCE2bNcDZfNmgTigMglX+Ke65lPsaZFcIJfr7Oa+R/dujHHBbhqx8eWw0kQx1Y1GGQOE X-Received: by 2002:aa7:c790:: with SMTP id n16mr3228884eds.54.1591805300055; Wed, 10 Jun 2020 09:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591805300; cv=none; d=google.com; s=arc-20160816; b=aehhISMNTin7XaJ8blAxb6TiRH00gz2htBpuRJkH8zOPpz1MgHu7BADkAu1avboh9E /Ckm82tUv4UFAxLpA8zsmfVkV+6+ZezZD2wiYBcoCmWC+5M4Xg1xTW0+aTVEEG8ubm8Q pnzuhPa56rOM0UCHyvtYgoZp8h7G18itveTEJXnQSjk52RSXlOY2XoEm9aM1jPizLja0 w4uZoe/3ZTscFeh6WuXL5wuLWkxJmgbVaQ8YEQmKr8r71dwTQa9tvfDIW8uc+Vijv4HN T8zFfC6gZCk1bvJC6vdZO8Wg6suzNGfSm7oRzdrL0dpI9Rlk/IPpL344xlivlgdymymJ qVFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VAhzONNr7z3ygGUqG934E3Yihpizy6C4bWVguia+sKY=; b=j939o7O28jcGTsPzO5KCtzV9H0QO6HTRALCFzFnFcnv+8kRNTYYQxTokQ5aGVmtwpC n+tMeEhPHBuwKopjRycl/EAE+GO4cF4lJWsHW2E1DspRK+hncNWRmMcJih/5+22K11QS lflcXDtykOyEew7VYbmRmXBCXd5+DS+X2rwpYdUsz47lxMLJKF4uGoyJKOg7eJUIQLpv IwR1D7sVbR0BqvGEquGYS8R6/6uAR/plXS5VpCrT7P+TXuCPxMS3LMfKhpSaSzaHS5PV ea2M8fKc4U8TEXSn0elXY3uIHtlapBB/zzfAQjYBRtBj0IoeNvYOHn77hbY5BXVKv7KN 7Grw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dL2TrTTL; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si35903edq.97.2020.06.10.09.07.56; Wed, 10 Jun 2020 09:08:20 -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=@linaro.org header.s=google header.b=dL2TrTTL; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728082AbgFJKKe (ORCPT + 99 others); Wed, 10 Jun 2020 06:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbgFJKKe (ORCPT ); Wed, 10 Jun 2020 06:10:34 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEA00C03E96B for ; Wed, 10 Jun 2020 03:10:33 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id d7so1092171lfi.12 for ; Wed, 10 Jun 2020 03:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VAhzONNr7z3ygGUqG934E3Yihpizy6C4bWVguia+sKY=; b=dL2TrTTLy7r6e6P3kCV8VlxlA9Db3VcE3zFFe7xcEr8nMHDScBF9vsWQ8ytW1YJrYW etOhipCNb6uKdjPJMUNNfm4So/Spq0mvAuxViNW9ugd0BbRtIo/UeVrWOA+Av48tDdMj 07fZcBb7KtQoRqCVtf4uBi/r8znrUa4mXMjym8Q7WcXQzJYbQ6R+zNSAIsA3+WnNPVE2 sXVJYECC0MwXDOt3idZeZQaetYMUte4/kDSMGagZpNxEKtD50aiKyzxVf7FyVDx95dKj l/nU+Zz248XNJfMLXvnkbuaYrR36t4JFSvN0tOG2mQBAJtcHCgcjdBecZyVu4FxQb+Nj onzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VAhzONNr7z3ygGUqG934E3Yihpizy6C4bWVguia+sKY=; b=Fh5n3qOsw4vzhwHxdXiQeWpcQf6kkKrrVq4cWvGoypiK26Qtahj1j50Mc+jfj8fnz+ A6jhxSZImPz6FPadiDxoZsHqU5qEXVHjpxHRXMSFvh45nnaMLDMdeX8TMgfdu8gw/LB1 H+Uo4IHoUdWiRgOs5hR+cJlh2187w1OCVVXEVYyINLKouzEGaPyAFAYwbHhfv8OJ5Y37 VcqGqtvoeypEF8AnljKFgHDgxzChEwRuXNvBGzH8658cr8XQ/Z2dUEH4GCkU/yQcbfu7 0Ax44XTKRXOJ3iEqPjHZY15M3XwwiChUDfABogQ5BVgEpjHrCJWixXEMU9iuXS9kNgso Nw6A== X-Gm-Message-State: AOAM530IzF2MJMAa4sPWS4f8bGNBWMBpQfZWgBp8jMT+9tL3OnHNE8Xa VUIxyiCUuQYjy0c3p9m93dKK69p7ht/7Ys3JNsY61A== X-Received: by 2002:ac2:562b:: with SMTP id b11mr1305542lff.47.1591783832131; Wed, 10 Jun 2020 03:10:32 -0700 (PDT) MIME-Version: 1.0 References: <20200512104758.GA12980@afzalpc> <20200514111755.GA4997@afzalpc> <20200514133545.GA5020@afzalpc> <20200516060624.GA6371@afzalpc> <20200607125932.GA4576@afzalpc> <20200607161116.GN1551@shell.armlinux.org.uk> <20200608110902.GA5736@afzalpc> In-Reply-To: <20200608110902.GA5736@afzalpc> From: Linus Walleij Date: Wed, 10 Jun 2020 12:10:21 +0200 Message-ID: Subject: Re: ARM: vmsplit 4g/4g To: afzal mohammed Cc: Russell King - ARM Linux admin , Arnd Bergmann , Linux ARM , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 8, 2020 at 1:09 PM afzal mohammed wrote: > On Sun, Jun 07, 2020 at 05:11:16PM +0100, Russell King - ARM Linux admin wrote: > > On Sun, Jun 07, 2020 at 06:29:32PM +0530, afzal mohammed wrote: > > > > get_user_pages_fast() followed by kmap_atomic() & then memcpy() seems > > > to work in principle for user copy. > > > > Have you done any performance evaluation of the changes yet? I think > > it would be a good idea to keep that in the picture. If there's any > > significant regression, then that will need addressing. > > Not yet. Yes, i will do the performance evaluation. > > i am also worried about the impact on performance as these > [ get_user_pages() or friends, kmap_atomic() ] are additionally > invoked in the copy_{from,to}_user() path now. I am happy to help! I am anyway working on MMU-related code (KASan) so I need to be on top of this stuff. What test is appropriate for this? I would intuitively think hackbench? > Note that this was done on a topic branch for user copy. Changes for > kernel static mapping to vmalloc has not been merged with these. > Also having kernel lowmem w/ a separate asid & switching at kernel > entry/exit b/n user & kernel lowmem by changing ttbr0 is yet to be > done. Quite a few things remaining to be done to achieve vmsplit 4g/4g I will be very excited to look at patches or a git branch once you have something you want to show. Also to just understand how you go about this. I have several elder systems under my roof so my contribution could hopefully be to help and debug any issues on these. Yours, Linus Walleij