Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp323201pxu; Thu, 15 Oct 2020 05:04:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxObjYLkmhWnp4X11MItpo5oygtzV2xoIsv36VW/3FALxJUqJsa5VLFfC/k/Y5NOd/OiWt X-Received: by 2002:adf:f3d2:: with SMTP id g18mr3837052wrp.367.1602763448889; Thu, 15 Oct 2020 05:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602763448; cv=none; d=google.com; s=arc-20160816; b=c8f9+mIMSM8+m9FSPqltLpueBwQnbcD0oBadLCZmYeq3MckcCIxid2+WuM/KnnKquu D575ji46/5EOLwxLhGAJn5r4rNeEW3ae7tCiqK+C4AXgXaRgTWzxSZaXgJhjtAYN2vt3 u64fc98yK76gjfoG9vciK9iiAsAjdnNQOjdN+qnaAjf8+D5ddPLmh2AEMoFBscXExPC6 E0WHDv+tZ20SPp+cptAjjguJw86yCGmOSPExoHHycZtJ5ypl1uqJD2RYufpD71VhdRnR U7CiwBmeko1H7CLgFwlb2htXJ5fUzbc5jrLUETle1UgkTOvpCtdwTi/9AcsQ0JWRvevT pKbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZVf1ic7c+5qbe1kvMGzYPhD6kZkQ1kdeKGnHwzIPNCc=; b=tjkYbTESwSZO0h6+I3opufzOuwsL6SMFpTaIrYCPt0KuJoK8zG/ab59lgfYN5YL+e/ st1IiMKJLNkv+Pzz2/nSY+dgSuTe2fj2Gx0cq+v9aGW2Cw5Xu/zBWfcIDY0qkL9Pb68y BKXYqABDdFAZlXpkTX8y21yAJB6OI4t5Ht0ZgKqvAzacE1v9f+dsaKWmp3K6D/GkOmoa /rWsqS+GSXf7DnZ2PGxXT+8oyMJnj8nQxtkk1x297mU022UA+2FR/wIyfltUGbDOjBp5 Mt8EdF5iU1s6WjGEQiBEUX97xqc0ndegqI5xStk1Mc8wFlDQfRmc+rgGohDUY7wwYbVh Zg9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RJFNy71q; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si1842710edn.588.2020.10.15.05.03.42; Thu, 15 Oct 2020 05:04:08 -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=@alien8.de header.s=dkim header.b=RJFNy71q; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731226AbgJOKfm (ORCPT + 99 others); Thu, 15 Oct 2020 06:35:42 -0400 Received: from mail.skyhub.de ([5.9.137.197]:38596 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731220AbgJOKfl (ORCPT ); Thu, 15 Oct 2020 06:35:41 -0400 Received: from zn.tnic (p200300ec2f0ed200d49a97be428f152e.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:d200:d49a:97be:428f:152e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 354A01EC0284; Thu, 15 Oct 2020 12:35:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1602758140; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=ZVf1ic7c+5qbe1kvMGzYPhD6kZkQ1kdeKGnHwzIPNCc=; b=RJFNy71qR3kfFzJ/+npNj8Vfl7cv+0r5u0HfGOj9sXwbKguqx0tSx0YceHjqN0WDwQV7q6 ygNW+Dl8zgGwJBV8aNLviF4VSjuWMLRlcF6dNDqDp448swLTKTuovTLJkp8xcX1/sIF3pI r02e6aA2ZuedpCXiSNBD1KPggr9SOtY= Date: Thu, 15 Oct 2020 12:35:35 +0200 From: Borislav Petkov To: Ankur Arora Cc: Andy Lutomirski , Andy Lutomirski , LKML , Linux-MM , "Kirill A. Shutemov" , Michal Hocko , Boris Ostrovsky , Konrad Rzeszutek Wilk , Thomas Gleixner , Ingo Molnar , X86 ML , "H. Peter Anvin" , Arnd Bergmann , Andrew Morton , Ira Weiny , linux-arch Subject: Re: [PATCH 5/8] x86/clear_page: add clear_page_uncached() Message-ID: <20201015103535.GC11838@zn.tnic> References: <20201014195823.GC18196@zn.tnic> <22E29783-F1F5-43DA-B35F-D75FB247475D@amacapital.net> <20201014211214.GD18196@zn.tnic> <3de58840-1f4c-566b-3a66-46d57475820c@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3de58840-1f4c-566b-3a66-46d57475820c@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2020 at 08:37:44PM -0700, Ankur Arora wrote: > I don't disagree but I think the selection of cached/uncached route should > be made where we have enough context available to be able to choose to do > this. > > This could be for example, done in mm_populate() or gup where if say the > extent is larger than LLC-size, it takes the uncached path. Are there examples where we don't know the size? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette