From patchwork Fri Aug 25 13:35:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marco Pagani X-Patchwork-Id: 13365693 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 77C91C3DA66 for ; Fri, 25 Aug 2023 13:36:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DADE62800A5; Fri, 25 Aug 2023 09:36:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D5F598E0015; Fri, 25 Aug 2023 09:36:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C26DA2800A5; Fri, 25 Aug 2023 09:36:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id B42B58E0015 for ; Fri, 25 Aug 2023 09:36:25 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8CF02B25F9 for ; Fri, 25 Aug 2023 13:36:25 +0000 (UTC) X-FDA: 81162726330.02.37DBDE8 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf22.hostedemail.com (Postfix) with ESMTP id 8B63CC0011 for ; Fri, 25 Aug 2023 13:36:23 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=JyYBip27; spf=pass (imf22.hostedemail.com: domain of marpagan@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=marpagan@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692970583; 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: references:dkim-signature; bh=adBV5QdoIxMd11EUvCs5qDeDIAAmKS8CbHIBdJKT2cc=; b=3vTgDZ8JlOxs1syLSyd7tUtds7BoSfW4ok2dnvUM5+4a0LPYZIH3jMNI0Jq5xLRwzXlpFP Ci+Gvn7aBPTolVJCCIEeqnItiXn4TWJ/OFs2ySMIN15EdCyCgfQwbvGUT+YFsmNas7CJZy zHaxkgfLg08skMuOjCG+dHQ/txb12eM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692970583; a=rsa-sha256; cv=none; b=dSrsL9K5EmSDXzPcZtMXp4/W6SbKWl+R1cSSXbm4Iet6neg7hH466tzT7ZJOgsv0C2vc3q gt8mqWNDDlpDztRpLWDrn2jSnFaubxhT+7drLEMtr8/mrrYeIP6CCZMOHw7e1mYp0/5cwp cn1gre+RfK5eIoGajrLgctMVU1FVc0A= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=JyYBip27; spf=pass (imf22.hostedemail.com: domain of marpagan@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=marpagan@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692970582; 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:content-transfer-encoding; bh=adBV5QdoIxMd11EUvCs5qDeDIAAmKS8CbHIBdJKT2cc=; b=JyYBip27gRv6tt66zOG6qQOUbSqRjVK0lZ4+JJGsuB0Wh71OgSlCwqEpqGrzenMEC2rHv6 lUpoOcA9axkegGHlc4dYRiZLJZ0OktXhfeFfiVTGM8xCxhAtuPT7BkjWP94gdGIMKOffZb VTppixzKNVYroVgYgxPvaiIqkEGB0xs= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-651-4zkXRXYEPcKkgGtOeNHftw-1; Fri, 25 Aug 2023 09:36:21 -0400 X-MC-Unique: 4zkXRXYEPcKkgGtOeNHftw-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-31400956ce8so648351f8f.3 for ; Fri, 25 Aug 2023 06:36:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692970580; x=1693575380; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=adBV5QdoIxMd11EUvCs5qDeDIAAmKS8CbHIBdJKT2cc=; b=HR0nK9eytoNchNAiCeXpdOsr1xpWCgnqBQudgqDtV7t7tiC70uku8eZEzmi9kOrgCr d0Dx8tLbnZHJnXceQK0hzo1ENq+vJDTVXL6qeQDByp9trubl/Yo0OmP3pSxE2J+0iGrj yp5kzLFS9f9440b1F8dzbSqyniaAGyBU35P3klLLFim8jUOzjJxAh3zaTz/5lIrREtdN FNCP9tjvUIhny1LEqjgTgN8H1vzXDIiSAnnFmieQYVieuUHkVe5x4NCQt7GmXFkhrfgM klZyeO++miOZHx0bfl6ARl4nPZXusXoyWqJLbBfwwY3bBvbSt41+mIvzwBVdoH3T5b/c pfcA== X-Gm-Message-State: AOJu0YziNHSuM3U5ie6fi+KSZUItZKMDYiKD1FTVteucg1mhoFDRbi0h QQ7ZRt0In8XxRdTRK+l9Meky5zrJb4Z5ztlGPTwPisU9i3DXMfdwdAEvIH8Pk+mm4AHN9AP9s2d +qw/SD3+RDg== X-Received: by 2002:a5d:4211:0:b0:31c:769d:287c with SMTP id n17-20020a5d4211000000b0031c769d287cmr3990219wrq.50.1692970580508; Fri, 25 Aug 2023 06:36:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESApNQupeVzOoGH4xg/snp9WaQNwtnffnKK9WmFU7GZsNrMOGWLSfcHEOPViwtO0QwkRmx6A== X-Received: by 2002:a5d:4211:0:b0:31c:769d:287c with SMTP id n17-20020a5d4211000000b0031c769d287cmr3990199wrq.50.1692970580113; Fri, 25 Aug 2023 06:36:20 -0700 (PDT) Received: from klayman.redhat.com (net-2-34-31-124.cust.vodafonedsl.it. [2.34.31.124]) by smtp.gmail.com with ESMTPSA id e11-20020adffd0b000000b0031b2c01f342sm2253915wrr.87.2023.08.25.06.36.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 06:36:19 -0700 (PDT) From: Marco Pagani To: Jerome Glisse , Jonathan Corbet , Jason Gunthorpe Cc: Marco Pagani , Mika Penttila , linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] docs/mm: remove references to hmm_mirror ops and clean typos Date: Fri, 25 Aug 2023 15:35:46 +0200 Message-ID: <20230825133546.249683-1-marpagan@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Stat-Signature: rt47t9sx884bfp6hbd6zed9shpfpd8aw X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 8B63CC0011 X-Rspam-User: X-HE-Tag: 1692970583-794184 X-HE-Meta: U2FsdGVkX19PIM16TWNau3vKWQWGdl2B+24Umgm7s8R/51bA5aPkfJNPe5GpiMZTFYFzGbgYP7XFh4dHKDPA37nkGpkyySQk1LKIJLTP25wrlrrH+nq2/drX7FaAz2eGP/zYWBbHI2YREbetsqK6g62v30N/MjsaGibV/o9L04WoNBTPZ6DlMcQ9ygks20ruIkVLAqDfGp6b3VHVNLnhjb1bUGP2nllIU8ohX3wAJ1lPdhotwl4ljnu1+P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12fNoiRfMlGFgHZE9ZS66otGE6PY2LWWP0d/b0zA2ZAe5tYwMArVmPJmGEB8BR/EJUVMXAyR7XRdxqF5h25/UYo2b9jb3GRB2VTvlkjGmUHS1D8yxxreMZJGA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Clean typos and remove the reference to the sync_cpu_device_pagetables() callback since all hmm_mirror ops have been removed. Fixes: a22dd506400d ("mm/hmm: remove hmm_mirror and related") Signed-off-by: Marco Pagani Reviewed-by: Mika Penttilä Reviewed-by: Jason Gunthorpe --- Documentation/mm/hmm.rst | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Documentation/mm/hmm.rst b/Documentation/mm/hmm.rst index 9aa512c3a12c..1e0f2b2f58fb 100644 --- a/Documentation/mm/hmm.rst +++ b/Documentation/mm/hmm.rst @@ -163,16 +163,7 @@ use:: It will trigger a page fault on missing or read-only entries if write access is requested (see below). Page faults use the generic mm page fault code path just -like a CPU page fault. - -Both functions copy CPU page table entries into their pfns array argument. Each -entry in that array corresponds to an address in the virtual range. HMM -provides a set of flags to help the driver identify special CPU page table -entries. - -Locking within the sync_cpu_device_pagetables() callback is the most important -aspect the driver must respect in order to keep things properly synchronized. -The usage pattern is:: +like a CPU page fault. The usage pattern is:: int driver_populate_range(...) {