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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C93EC43334 for ; Mon, 18 Jul 2022 12:56:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 77A7D14B8B4; Mon, 18 Jul 2022 12:56:35 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id AB8F514BFA0 for ; Mon, 18 Jul 2022 10:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658141487; 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=QQ3EHE5Y/uXmTBk59WY/sBfkyYOaAyrJ99vyQlUJOsY=; b=KtnHMQ45H6fUTApqJwQks4id7VGvoA60j+53ASM+EkgRLuiDz+S/mgikM2b2Jifu72jhmU WKTSPM3Vg+PYvCqgxkwJ2M0NSZvfQCB3uwVG3eB3UK7TO8sygSGBDC14khGRFGLC3GLQhe egm5yHoMlfMTr3t+MBDGvflqEHJfbvk= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-523-mEqYwG7FME6sHgjTNrxLQQ-1; Mon, 18 Jul 2022 06:51:26 -0400 X-MC-Unique: mEqYwG7FME6sHgjTNrxLQQ-1 Received: by mail-wm1-f69.google.com with SMTP id i132-20020a1c3b8a000000b003a2fe4c345cso5423429wma.0 for ; Mon, 18 Jul 2022 03:51:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=QQ3EHE5Y/uXmTBk59WY/sBfkyYOaAyrJ99vyQlUJOsY=; b=OixJ3tNDptb9xYnhK7xX7DMJRnhhreshlFaTtPZlEez/dPndndt9j9+n/XPg+YNKd6 4okRkLNsKxw5y0+SufC1Mt85kRHM8N+KmmeY5pF0QfXu2u3kZ5WO7GWDyqIkbEFUqO90 0qbD/apgROT5LNPLzAtY55k93oPq46NHgvzO1ZQW2zZwfU0DeYhsJygZdieKdbPTVEfU HiAdoBhXXWjw9DoxeVdpPG58Lgpc7snLtS84cTwYmDcU9Idtc6VZdLOsCLx1g3M+Ipxl KJdbFJTK6NgO9gIWsZ2dmVokk42PWnAIoPBcYlz53loq8LBQqPeoQx1WmyCHrW0bmduZ dXGQ== X-Gm-Message-State: AJIora9i7Aw2+JBsUR4ZKwOSgHyDDNW9HNojmnS8T2x7SO3ldt/eWvHE e7g3gyZ8piVaOI0b2C+sIIEivFbOQuVW7tRKOGxw/aPmOJBwtWrj44Qwz9v9WdiUKmT2Twzg7aG TpAc/ACDgUaPqBMgTRj6OgONcoQ== X-Received: by 2002:adf:f905:0:b0:21d:f460:1acf with SMTP id b5-20020adff905000000b0021df4601acfmr7759829wrr.108.1658141485649; Mon, 18 Jul 2022 03:51:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vOXS/jyYuLht99baWDw+JXGFOCaonutnGNWmhXXtQ2efKyLTqtTuwadUZoGMqOmdhX/IMMMw== X-Received: by 2002:adf:f905:0:b0:21d:f460:1acf with SMTP id b5-20020adff905000000b0021df4601acfmr7759740wrr.108.1658141484280; Mon, 18 Jul 2022 03:51:24 -0700 (PDT) Received: from ?IPV6:2003:cb:c705:7400:6b3a:a74a:bd53:a018? (p200300cbc70574006b3aa74abd53a018.dip0.t-ipconnect.de. [2003:cb:c705:7400:6b3a:a74a:bd53:a018]) by smtp.gmail.com with ESMTPSA id z11-20020a05600c0a0b00b003a033177655sm21076465wmp.29.2022.07.18.03.51.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jul 2022 03:51:23 -0700 (PDT) Message-ID: <95b3c8f3-2e4d-fa2f-1552-580236eea485@redhat.com> Date: Mon, 18 Jul 2022 12:51:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v9 04/14] mm: handling Non-LRU pages returned by vm_normal_pages To: Alex Sierra , jgg@nvidia.com References: <20220715150521.18165-1-alex.sierra@amd.com> <20220715150521.18165-5-alex.sierra@amd.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220715150521.18165-5-alex.sierra@amd.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 18 Jul 2022 12:56:34 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: rcampbell@nvidia.com, willy@infradead.org, Felix.Kuehling@amd.com, apopple@nvidia.com, amd-gfx@lists.freedesktop.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org, jglisse@redhat.com, dri-devel@lists.freedesktop.org, akpm@linux-foundation.org, linux-ext4@vger.kernel.org, hch@lst.de Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On 15.07.22 17:05, Alex Sierra wrote: > With DEVICE_COHERENT, we'll soon have vm_normal_pages() return > device-managed anonymous pages that are not LRU pages. Although they > behave like normal pages for purposes of mapping in CPU page, and for > COW. They do not support LRU lists, NUMA migration or THP. > > Callers to follow_page() currently don't expect ZONE_DEVICE pages, > however, with DEVICE_COHERENT we might now return ZONE_DEVICE. Check > for ZONE_DEVICE pages in applicable users of follow_page() as well. > > Signed-off-by: Alex Sierra > Acked-by: Felix Kuehling (v2) > Reviewed-by: Alistair Popple (v6) > Acked-by: David Hildenbrand -- Thanks, David / dhildenb