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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97958C0015E for ; Tue, 15 Aug 2023 12:58:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E670C8D0003; Tue, 15 Aug 2023 08:58:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E16EB8D0001; Tue, 15 Aug 2023 08:58:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CDEF08D0003; Tue, 15 Aug 2023 08:58:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id BBF378D0001 for ; Tue, 15 Aug 2023 08:58:48 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 9065AA016E for ; Tue, 15 Aug 2023 12:58:48 +0000 (UTC) X-FDA: 81126343536.23.FFBF94F Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) by imf22.hostedemail.com (Postfix) with ESMTP id A6B9FC0023 for ; Tue, 15 Aug 2023 12:58:45 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b=ib0C7xGJ; spf=pass (imf22.hostedemail.com: domain of linus.walleij@linaro.org designates 209.85.219.179 as permitted sender) smtp.mailfrom=linus.walleij@linaro.org; dmarc=pass (policy=none) header.from=linaro.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692104326; h=from:from:sender: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=jJSfsYnM138pKu53K9h3vIlSr2ZBnDVD+P1hLZ7pV7Y=; b=He6oXo9qnjeZiGqV+t4jdYdfR54bSECiv8ZpGGoH4umCzQ1w8/0fzkP3Pnw6tw2P9/zQbZ mnj2hDZjCsxwAODvyXqKptCWu5IYV8dH/IhCGKAYI8vWl95dU6TF0XNXA1z8lZ5q+zIphh /+42fuimtXGjiwbqA31npuP+4WlSwZg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692104326; a=rsa-sha256; cv=none; b=vTIHgJknMZ3hzF6RBKG+SredV3NEWorLjHTYwcVzKbngBiDj9tOfLcYlfCfTpb6PeAOYKa 076btgS8aotr4O9p2FLqY6C0M28rMtNgSJ8KhyIoRIe8Ej7MoIRSE/cnVPZGJlxrnr6UrS YXMkhGAIdvEPxuSze6AFzk04busxBoI= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b=ib0C7xGJ; spf=pass (imf22.hostedemail.com: domain of linus.walleij@linaro.org designates 209.85.219.179 as permitted sender) smtp.mailfrom=linus.walleij@linaro.org; dmarc=pass (policy=none) header.from=linaro.org Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-d645b95c7b8so4613890276.0 for ; Tue, 15 Aug 2023 05:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692104325; x=1692709125; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jJSfsYnM138pKu53K9h3vIlSr2ZBnDVD+P1hLZ7pV7Y=; b=ib0C7xGJh9v/1KNd+sc0caERL7aaD0QAa7OHGef9x0JrRkY/nyKAEwMNvdN1TqYg5j UI60ecWBtrbpvyQF/dMQVH+fdpy36CRkXdPRWbtyyuDgcmFzTtOHfEEM+dQhkww6GsVv nEKlxXFu3Cvk0s99Lai8x/2lSRfjLnsfKs9+mMLZ+IzoGh7YCoIV8S5C/vof6GVYbwPQ IK9WcE+I6yQ4WO+lW+ZgU01NxT/r29lBDoVpNcoEPvcvd+e2ADcmPQrrCuJZtiTpx3QJ UDjmE/gYFsMxb2hLEDo3EOToVH6jMo5U1R15qYnAkIAjqNhXFwO6CEz53B0aTpbq+qsI T1zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692104325; x=1692709125; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jJSfsYnM138pKu53K9h3vIlSr2ZBnDVD+P1hLZ7pV7Y=; b=C7gawhn9hD4mmpFkT9OCKp8z4BCL8dJmAte/OHvt8qMShkNfOiKVC75wJQhTRIT1Xu 1oNoxXoPhq7WJIDJroK5bn34mwlc61ez4QqlwRJBieWoi/KvxIsSA1LSqfygiHN+Y6pQ p+dfxQDqkk7CrYwOUicL9Z+7lKi1Rzf1693EzqZjHWJab98i0dFH9ILDpvVFnWP8IuF+ KQkIymK7qnKKp58Avmf9fA1nSOvNNpFDGYoOeUdmhy6rVuVv2Rw21007doy07jdsX17z nXIbR0/TF6fjrSrgxvnBWuOaPaGeskeCZWytGOLrbTOXvQWOfNZRg2MOZtq5QHgtguv7 mefw== X-Gm-Message-State: AOJu0YyrDzUIJ0/QIS9xFNsRDLNnw0sGl0o1dzc/PtYAXH18VtzrOS6+ R5eaXn46K6jl9fdfbKnNbTrx+pXpQrRmt+jCV1mfOQ== X-Google-Smtp-Source: AGHT+IE78hQXbbJl4eyc+svkBIt+hrE1wZN8h+2gI+VT4VqX/jyOv9Ezkr3iKgLg5H+I7L0hjbwU177OuDvE9Pwa5tM= X-Received: by 2002:a25:d405:0:b0:d35:f59a:6e46 with SMTP id m5-20020a25d405000000b00d35f59a6e46mr14376363ybf.49.1692104325619; Tue, 15 Aug 2023 05:58:45 -0700 (PDT) MIME-Version: 1.0 References: <20230813182552.31792-1-fmdefrancesco@gmail.com> <3179607.5fSG56mABF@suse> In-Reply-To: <3179607.5fSG56mABF@suse> From: Linus Walleij Date: Tue, 15 Aug 2023 14:58:33 +0200 Message-ID: Subject: Re: [PATCH v2] Documentation/page_tables: Add info about MMU/TLB and Page Faults To: "Fabio M. De Francesco" Cc: Jonathan Corbet , Jonathan Cameron , Mike Rapoport , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Ira Weiny , Matthew Wilcox , Randy Dunlap Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: A6B9FC0023 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: sdcxtmmdkkmn93rxwarkue6pjone3od7 X-HE-Tag: 1692104325-321849 X-HE-Meta: U2FsdGVkX19R0lEGoA1XuZITtaW4Yso4IpLub2j17uae5IP7qU62yxjOgLXptiY7pzGitcP37vJ7b6Nf3IXuW3BIgYWZFioCD0mdJAOFEFWfO+tdP1cmDWCJuuhL/yTW3GySzisJCB34T8vO2wumkEzlcVu2FEbtjxT+Ef+gll9QDpmAAKp0jXJ6jxH+OIaII7AvuOBhMIXVb01+oDy1v01MJbiXW/niXnhEKvWb9ZBrLgQHlHWCBOSX9/uTF0SG6+tEifajcurmU2B4JSCNLHkapDOMhR6Moq8Y+qfBYLtpmwluGUY7zMpIlu+o2js6jf/367Se7i6pqhv7pI8Lwg6ZOqtBZqWbIjfXLj1z1a93tqCotesZZUkPNO82Wd3jKRd+ElkRuIeZ3vFZ7AN2wnxekql83FtfbQRf9lpsQQBiJsynSz2RHFQmK/r67l/fF+whDW7l5cH+bF4FQy/B4lFJISfP/x0F+iqcC8D85eVlE0++75pM5FAF8pCNW46DFFyb0k6W/p4qJf8wcN+5zGXmN4lCWkl77m1ZYscyybPo35e8f1gxvj7odWbfRaYTzGJuu98PvTNd5Re6KkgQV8xClcOVBW2EVrlcKGe8vdqckrCFNOFxu6fcBgYjRNxpemVEZiH1czAqrN3MHxcoTgO1/S9Pa1M7mO9/SkCFa+i0ZFY1uaZfnAP7zjdsyTkxPYkZ6Y+MlOguP+ocM/WuvAGZE6wjkntmtsodVuw2XsxEYSHZwhJyYBoRxSLfzQiyKbC7edeeMaEUlFil8hwu5wx+6+CsY8Jvd6O+h+Sijm2FXxvNM+ISaksbEXUZkOsHGLPE3Jy+eTkty9RNfi7mi0C9btdvMFJnUzkP8aNbR/KXujtIYJXokv3C6AGFlaLQAcPK4hXszflU1DNFc9FBEnA3Qh86XsOpmJRJC/jYF22i2v+VMBW741dieQJQfUT2oDxj8IKoeXs0UQ+9/F8 bPLhg8Bx MGlwCqu5SH3/vNyHYjT0hjpnCeWjJjJJaGDpgQcwpjD/wMUned7wIrHf3fymxWyH8wgfcA3wS9rOn76UPfcA8xbU2dfEWGKSckvbkFZz1Mmi2XbCGZiBlWyCyQg60/aMsm4Uv6MdTs0ApBZqldxFsjXm12KruQsVpwkKD5726FBF5w57eCt/jo7dD4BX4J7YKdOLj8fsFCZ6j/4Xbkj/St2kkxgIWhBdn4Ta7RIDye0YVlrRWiox01gd3uL90S1/n2Tbqrca5YI9seCZ20UOlkK1yKOBbo1qvAR7w X-Bogosity: Ham, tests=bogofilter, spamicity=0.000035, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Fabio! trying to answer these things as best I can! Notice I'm not natively anglo-saxon either. It's refreshing to have a discussion about formulations in text in addition to our everyday technical churn! On Tue, Aug 15, 2023 at 2:27=E2=80=AFPM Fabio M. De Francesco wrote: > On marted=C3=AC 15 agosto 2023 10:51:24 CEST Linus Walleij wrote: > > > +Instead, there are also common and expected other causes of page fau= lts. > > > These > > The word you are looking for is "Additionally" right? > > > > "Additionally, there are..." > > I was only able to use "Instead" to express that, contrary to the former > conditions that is unexpected and uncommon, there are other expected and > common causes of page faults. I thought that "Instead" stresses that the > latter causes carry with them opposite and wanted consequences. > > I think of "additionally" as a means to introduce less important and less > frequently occurring conditions. > > Nevertheless, I'll change it to "Additionally" as you are asking for. I think the following is the best: "There are also other, common and expected causes of page faults". No bridge words. I can't really explain it, it's just language intuition. := / An option is to also move the section about the common case section before the exceptions, which may be more natural to the flow of the text. > > > +Swapping can't work for memory mapped by kernel logical addresses. T= hese > > > are a > > "kernel logical addresses" -> "kernel-internal logical addresses" > > My only question is about why you prefer "kernel-internal" to a straight > "kernel". Can you please say more about this? It's because the kernel handles many address spaces and is aware about also the userspace address space and the physical address space. So just so emphasize which one it is. Yours, Linus Walleij