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.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, 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 3E6FBC433E0 for ; Thu, 14 May 2020 14:44:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 143C820748 for ; Thu, 14 May 2020 14:44:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="blFSU6/k" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727975AbgENOoZ (ORCPT ); Thu, 14 May 2020 10:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbgENOoY (ORCPT ); Thu, 14 May 2020 10:44:24 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98384C061A0C for ; Thu, 14 May 2020 07:44:24 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id x77so1411524pfc.0 for ; Thu, 14 May 2020 07:44:24 -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=3517NpCaDBacg/Dwp902mIgUINgvR6pFPGbL/kslfaY=; b=blFSU6/kX50CoVlrbhPDy8DHQmKvZ1iW5M5e060phVc6yrJAI7mhafMTdfQ8a5yg8K kek6m1LiF3MDFjjFB7XMLpcjP1b9fqTCsBplPrLzh4BzDHMECFlXzJ/v6D5aNI58YqSr zdol8qDrATXLReGmRCXdVRXEgxpVJqqJVH0+svDutlfjhKLEGTuwFY3uUpvF8xQU1K++ 6vnZuE4QNeEhxUt5c7ryXSZcdtH+lGXE2bT3GAl8WnVbDe/ABhm8gAeiGVfLLW9Kf+UD 05RdbAQ3f9Hk5nCbXPcQTSu4Ox7vTPoXvCk+Bb+0RHi3LoGRwiFUEMMUPKMRGvu+6UyP 6QfA== 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=3517NpCaDBacg/Dwp902mIgUINgvR6pFPGbL/kslfaY=; b=dwUdk7JzHsjtjI6kn5DcDiI2EVBXGGTIs59Oy4BA6pNKnipnRwjUXGVtj1U/DkGnne W7WGSFTCfBM5eSviA16B46lv0j8rPZETEf1Oy1WZn/0JajgpwzI/Fla8n9nbNWu+wEDo xrgFuhtCG/TS0gOXLn5Y5OHn0kSS/FlidSVXI4ZHmsImwGsfX72fuWuGa2oDHhBngmZM qBxY6H6JvYTB9YXRUnhjHZhrefZLb+YHo/mRabVvZxzLP9Q3S+fiAKQCwmxckTg8o3WZ SMnhw4UpIF2G6a6OhpbY65eWj147bN3mNpuio1b+C+N/qLOAlKBp0CyX6HrVEuXm3zg7 WE3Q== X-Gm-Message-State: AOAM530O46+mvxVvNL1FfntksUc+XPedXvlWDFyTHCoWJCbG1cdkZQ7c YlCoMG5sNUGvDUc/gwDGw+o= X-Google-Smtp-Source: ABdhPJzTN+o4BlFp6Ad0119sdkLFW5d512QRy4tNm/IM3mh2dtrtu8tX3mFraIaxR60CiEHH6aB7Sg== X-Received: by 2002:aa7:8c0a:: with SMTP id c10mr5081607pfd.177.1589467464241; Thu, 14 May 2020 07:44:24 -0700 (PDT) Received: from localhost ([49.207.51.148]) by smtp.gmail.com with ESMTPSA id o21sm18060707pjr.37.2020.05.14.07.44.23 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 May 2020 07:44:23 -0700 (PDT) Date: Thu, 14 May 2020 20:14:21 +0530 From: afzal mohammed To: Arnd Bergmann Cc: Russell King , Linux ARM , "linux-kernel@vger.kernel.org" Subject: Re: ARM: static kernel in vmalloc space Message-ID: <20200514144421.GA6090@afzalpc> References: <20200504091018.GA24897@afzalpc> <20200511142113.GA31707@afzalpc> <20200512104758.GA12980@afzalpc> <20200514111755.GA4997@afzalpc> <20200514133545.GA5020@afzalpc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200514133545.GA5020@afzalpc> 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 Thu, May 14, 2020 at 07:05:45PM +0530, afzal mohammed wrote: > So if we make VMSPLIT_4G_4G, depends on !HIGH_MEMORY (w/ mention of > caveat in Kconfig help that this is meant for platforms w/ <=4GB), then > we can do copy_{from,to}_user the same way currently do, and no need to > do the user page pinning & kmap, right ? i think user page pinning is still required, but kmap can be avoided by using lowmem corresponding to that page, right ?, or am i completely wrong ? Regards afzal 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.0 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 6A5D4C433E0 for ; Thu, 14 May 2020 14:44:28 +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 3CA6020727 for ; Thu, 14 May 2020 14:44:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oju3JnK5"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="blFSU6/k" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3CA6020727 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MDK0Y1FrdFQ8ytetTvUkxoy9XWfAm6W8lXVgOtJlQkw=; b=oju3JnK5lkLdg1 bodb0/ooSf9uxmnOG5JOUXzsvKJLENvnxHkIcq/OHf30Nu3bE78sBDhY7gcpHEt+lI1DpMIcs+TCb szEqrh7h7MR/4jpqFNVBTchLCEAE48YTePLFvvPdn7V/4S6Sz56IV3Bqyn26orhWj2T7bi1zLzVvT oXOZ6l/pe6szSZ0zgMmFrplvIOewe/D3m75UAsbwFSzTtUsB7cuHaoAKb1njUY+Hp41eFbuvA32HC aOQk0FM+m9RTpq6i2hyFTHtIzT7kMtQ2Knk2xWRcT5eVN0IRK+FXv+eMiPHOeQaNZNztNJ1Rbak+w lk1WfSae5vasPwfI3zxw==; 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 1jZF63-0001Mx-QB; Thu, 14 May 2020 14:44:27 +0000 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZF61-0001Mc-OL for linux-arm-kernel@lists.infradead.org; Thu, 14 May 2020 14:44:26 +0000 Received: by mail-pg1-x535.google.com with SMTP id b8so1319264pgi.11 for ; Thu, 14 May 2020 07:44:24 -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=3517NpCaDBacg/Dwp902mIgUINgvR6pFPGbL/kslfaY=; b=blFSU6/kX50CoVlrbhPDy8DHQmKvZ1iW5M5e060phVc6yrJAI7mhafMTdfQ8a5yg8K kek6m1LiF3MDFjjFB7XMLpcjP1b9fqTCsBplPrLzh4BzDHMECFlXzJ/v6D5aNI58YqSr zdol8qDrATXLReGmRCXdVRXEgxpVJqqJVH0+svDutlfjhKLEGTuwFY3uUpvF8xQU1K++ 6vnZuE4QNeEhxUt5c7ryXSZcdtH+lGXE2bT3GAl8WnVbDe/ABhm8gAeiGVfLLW9Kf+UD 05RdbAQ3f9Hk5nCbXPcQTSu4Ox7vTPoXvCk+Bb+0RHi3LoGRwiFUEMMUPKMRGvu+6UyP 6QfA== 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=3517NpCaDBacg/Dwp902mIgUINgvR6pFPGbL/kslfaY=; b=r+UCtJlG4jBWy+OfgReg7BgolIRJ1xZEfRC+megsdtJ4DsISrBX9AjacBFvWNdTxEf NX4htojngMvxOJB8gPP9xmVXV48SYXzPrgBbb9LOLJrWhENTePcuHq+GN7Y3mCyqCvhy DBPZDxFXY8I/2i8kHbgL5gjt6T/cOVTwdtVfQNKICybKU9OpPC1CEdBRRXZaML+uImxC NpYQIS+WGJAsMuBHJQ/BK9dDz9O+A2eVMPh8X7p8HBzg/KK0Ad8Py59icm1YsVVIQq3G NwwsyPSdTl2HHu8AhH/B3HaUkDeppzfTJ5WjYHCwMkJRUpSkO5wKAPHz9t+qh8I0xLz2 QTfQ== X-Gm-Message-State: AOAM530XBcSqbkWMZ6z9QChRSxb9DifQe8jr+Uv3BdIlYQVMJcNx9a/X trQwH4KhhlzQ1wkvlwqHQkE3LSs8 X-Google-Smtp-Source: ABdhPJzTN+o4BlFp6Ad0119sdkLFW5d512QRy4tNm/IM3mh2dtrtu8tX3mFraIaxR60CiEHH6aB7Sg== X-Received: by 2002:aa7:8c0a:: with SMTP id c10mr5081607pfd.177.1589467464241; Thu, 14 May 2020 07:44:24 -0700 (PDT) Received: from localhost ([49.207.51.148]) by smtp.gmail.com with ESMTPSA id o21sm18060707pjr.37.2020.05.14.07.44.23 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 May 2020 07:44:23 -0700 (PDT) Date: Thu, 14 May 2020 20:14:21 +0530 From: afzal mohammed To: Arnd Bergmann Subject: Re: ARM: static kernel in vmalloc space Message-ID: <20200514144421.GA6090@afzalpc> References: <20200504091018.GA24897@afzalpc> <20200511142113.GA31707@afzalpc> <20200512104758.GA12980@afzalpc> <20200514111755.GA4997@afzalpc> <20200514133545.GA5020@afzalpc> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200514133545.GA5020@afzalpc> User-Agent: Mutt/1.9.3 (2018-01-21) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200514_074425_813974_A0BD1698 X-CRM114-Status: GOOD ( 10.64 ) 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: Russell King , Linux ARM , "linux-kernel@vger.kernel.org" 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, On Thu, May 14, 2020 at 07:05:45PM +0530, afzal mohammed wrote: > So if we make VMSPLIT_4G_4G, depends on !HIGH_MEMORY (w/ mention of > caveat in Kconfig help that this is meant for platforms w/ <=4GB), then > we can do copy_{from,to}_user the same way currently do, and no need to > do the user page pinning & kmap, right ? i think user page pinning is still required, but kmap can be avoided by using lowmem corresponding to that page, right ?, or am i completely wrong ? Regards afzal _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel