Message ID | 20250129115411.2077152-8-david@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 22F0EC02190 for <linux-mm@archiver.kernel.org>; Wed, 29 Jan 2025 11:55:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9938E280035; Wed, 29 Jan 2025 06:55:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 94371280025; Wed, 29 Jan 2025 06:55:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 60FC3280035; Wed, 29 Jan 2025 06:55:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 30583280025 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 06:55:04 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B8065C0C9C for <linux-mm@kvack.org>; Wed, 29 Jan 2025 11:54:39 +0000 (UTC) X-FDA: 83060332278.08.4C32FE5 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf06.hostedemail.com (Postfix) with ESMTP id 7DF5A180007 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 11:54:37 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=CIPZkaeh; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf06.hostedemail.com: domain of dhildenb@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhildenb@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738151677; a=rsa-sha256; cv=none; b=wSFimgJgu4fEfZKId8178k2nq0AOacDFfvAR7lcwZUgZRKW1wrZ/9jbfkpOCeoOTzmfU0l oUtueNAQlxvljccRHcOVpyr4eMN7OBdAIf6y98a8ANf6bOYtXOYWf5WLFyrkvuDX67iOVG Leuw8paOKmVJK3ZD51uDQMNsq/qMFi4= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=CIPZkaeh; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf06.hostedemail.com: domain of dhildenb@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhildenb@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1738151677; 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=SXa0V5qonctJf7EFSiCmTQng5dHGkyNA7f/zw6SOSBk=; b=cdJg64M6GZll1i5os4br/SxYG3kuLVsl+VMT3vvVW+oI/sAE8Ggb4xvxXhKUgiSAatt+Gt noyBx0mx6xlXlqOwtH3Y4NfYP8jISS6FtOwtX1pP782sjsh2YdwtDAnrbCcHSWaPCaMLEn DjGUK44bEZOAvHC9sdZ8mDySRzOHUBc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1738151676; 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: in-reply-to:in-reply-to:references:references; bh=SXa0V5qonctJf7EFSiCmTQng5dHGkyNA7f/zw6SOSBk=; b=CIPZkaehG2lV94NEzq/CCGbNhSua8eIcjJCDRGNpUTOWgLUqUOz1YXYpDgZTa/yxauvRr7 8+xR39MKTl1962QncOXOD9iqyHxgilsXa5OP7Jd2/Qab/MbaDVzH7Vmr8bHXBtW3W+cdn/ ktQSUgbqYIhOg8DidA6T/r2bs9OhKh4= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-37-jIv0dDi4O7iUMcCCIXR6bA-1; Wed, 29 Jan 2025 06:54:35 -0500 X-MC-Unique: jIv0dDi4O7iUMcCCIXR6bA-1 X-Mimecast-MFC-AGG-ID: jIv0dDi4O7iUMcCCIXR6bA Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-43646b453bcso34325835e9.3 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 03:54:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738151674; x=1738756474; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SXa0V5qonctJf7EFSiCmTQng5dHGkyNA7f/zw6SOSBk=; b=nh6BRz1hmTRPmprs4FGwjmIjjzaeEIMV4KaDBo/NPW4t0IvNiJzfKBNPC3AyaHjJcf IDuA2ZRMQKHNv+mAXCx7eSC4pt+Fhom0vPLMOW20g8nvgXgOJDV5wJcWvx3t67pvkNuA on9bRP0uLbu071HJuMyc6lXRHWJt/hKsodxFLkL65pREaQJOYeqy7M17yGdVV0F3uQws V2ceaoSYbiUrJabd2jf4Qi52suZUZN2qbNqb2oj5tTEBRYoMK64XvuvJJ516vhk0KgJA Tgbl2ZmQDehXfSzyjjiv3p2j27PF9NEOfoYnAp1FHvvMGYKSyYlkaxllakv+xMyBDvKV e8iQ== X-Forwarded-Encrypted: i=1; AJvYcCXsPnM+dQ7mww+mEfcdQfZfuHYqhgjMd1dXKyu7+SrdLo7hUrK/h0XPVYYlx/LrOj5UtzzVESIRHw==@kvack.org X-Gm-Message-State: AOJu0Yz96ffiIO7nrU6zBZ/j81V7kE6O77D9Nqa0HTCd43L5R3CVsRFl l1LGMyTE/IaXVLbW23FJNUI9kb4eVGxkJo47atlkgdkdkOzkNgT89s6veOhG1rukE4WJnZW7qqN 5HIckcTC7iW1YF8kf0O7RNaukHDFOCN701QTB3FVE+rls3pP/nWuu7LwYiZ8= X-Gm-Gg: ASbGncsMGmHTPTkm6bfcbN+Ork0PKUQVcndPIZtZ2nj94Q6omGDmIbw0uyOJ/bG8dGo qJVCsT+VcQz4EcU68/tF912uBmvR58b0aXKt8IjkPN3uyH9pLGqwH65S3QeXjCORwTGvIwEpVTG Hy04MK21DC/EO3vpaoCCB2AvDw/Nx41KZZoW6XhrvpBp/iFCI1Vm0Lki4D4X7xLaK4vELEZA3pj uD7p/dEHI+ttHqkvziX+D1eME7knfc+WxbzugTpMIhwet6nACGbtvc32fZzVXOn0G0zLE2BVUhl fXD9fi2uG52Aw2WZxf4l0kq0Vc7Jnva3DlzuOnwDd6oEHTtuY40M7qqfnFz4RnLB7Q== X-Received: by 2002:a5d:61cd:0:b0:385:f7ef:a57f with SMTP id ffacd0b85a97d-38c519744d5mr2113628f8f.27.1738151674160; Wed, 29 Jan 2025 03:54:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYVCfHEVHB5xz9x9tgAenDwJY8DuXR9neg40xsYB0gvwDn7frPxCs2ZGd0+jvQzBFPN5gg9A== X-Received: by 2002:a5d:61cd:0:b0:385:f7ef:a57f with SMTP id ffacd0b85a97d-38c519744d5mr2113590f8f.27.1738151673837; Wed, 29 Jan 2025 03:54:33 -0800 (PST) Received: from localhost (p200300cbc7053b0064b867195794bf13.dip0.t-ipconnect.de. [2003:cb:c705:3b00:64b8:6719:5794:bf13]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-38c2a1bb040sm16943248f8f.67.2025.01.29.03.54.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jan 2025 03:54:32 -0800 (PST) From: David Hildenbrand <david@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-doc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mm@kvack.org, nouveau@lists.freedesktop.org, David Hildenbrand <david@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= <jglisse@redhat.com>, Jonathan Corbet <corbet@lwn.net>, Alex Shi <alexs@kernel.org>, Yanteng Si <si.yanteng@linux.dev>, Karol Herbst <kherbst@redhat.com>, Lyude Paul <lyude@redhat.com>, Danilo Krummrich <dakr@kernel.org>, David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>, "Liam R. Howlett" <Liam.Howlett@oracle.com>, Lorenzo Stoakes <lorenzo.stoakes@oracle.com>, Vlastimil Babka <vbabka@suse.cz>, Jann Horn <jannh@google.com>, Pasha Tatashin <pasha.tatashin@soleen.com>, Peter Xu <peterx@redhat.com>, Alistair Popple <apopple@nvidia.com>, Jason Gunthorpe <jgg@nvidia.com> Subject: [PATCH v1 07/12] mm/page_vma_mapped: device-private entries are not migration entries Date: Wed, 29 Jan 2025 12:54:05 +0100 Message-ID: <20250129115411.2077152-8-david@redhat.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250129115411.2077152-1-david@redhat.com> References: <20250129115411.2077152-1-david@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: acZ3F-Y15ChdFSQJexe-arbGIlIXZ3NJ3OUDpPdYrUk_1738151674 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 7DF5A180007 X-Stat-Signature: 9ra594yicadwfisx1bg357eac66dzyuc X-Rspam-User: X-HE-Tag: 1738151677-302545 X-HE-Meta: U2FsdGVkX1+9XZltnTYuQcqtCrjNt2WZDklYV9Chk6erj8GfB/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h40/8M5atQSmlzSWkPRs/s1A4SiHgmy8hti7Roc/1+7UoHD0efbOvrZ9YmciuVvH1h8/QRV3WBjL+N9bZRpk+T5FlairwnXQfllOZy3NKs3wJwW0hjSXx1RYUTc7D3gZhjvjYXDFe59dcAn4QCUf4uj5EkNnx6Jc2rPoIeJnRlOdajoqSagBivdT84pA0bUAqbNBUm1SPNMc5Fx8rumbuF7XVBzUmGsKmvcoxe2ud49AbYwkjb3WW7si3FXJpEyyJ4O1pbFVXiqVPyhGVpp45RRKZ7U82952vx+AgR8N5GfyhQBoGLIL7nZkVpQdqL5tPbiv8RnZjHI/8m59FTKvFjgig3TGMco657w9D3hjKiiF8gysNZqyifW/XOvwYqueO8CVLO3Yjj0fBA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000008, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: fixes for device-exclusive entries (hmm)
|
expand
|
diff --git a/mm/page_vma_mapped.c b/mm/page_vma_mapped.c index 81839a9e74f1..32679be22d30 100644 --- a/mm/page_vma_mapped.c +++ b/mm/page_vma_mapped.c @@ -111,8 +111,7 @@ static bool check_pte(struct page_vma_mapped_walk *pvmw) return false; entry = pte_to_swp_entry(ptent); - if (!is_migration_entry(entry) && - !is_device_exclusive_entry(entry)) + if (!is_migration_entry(entry)) return false; pfn = swp_offset_pfn(entry);
It's unclear why they would be considered migration entries; they are not. Likely we'll never really trigger that case in practice, because migration (including folio split) of a folio that has device-private entries is never started, as we would detect "additional references": device-private entries adjust the mapcount, but not the refcount. Fixes: b756a3b5e7ea ("mm: device exclusive memory access") Signed-off-by: David Hildenbrand <david@redhat.com> --- mm/page_vma_mapped.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)