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 X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80B8AC4708E for ; Sat, 29 May 2021 18:44:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0C2BC6113B for ; Sat, 29 May 2021 18:44:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C2BC6113B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 790BE6B006C; Sat, 29 May 2021 14:44:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 766176B006E; Sat, 29 May 2021 14:44:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 608046B0070; Sat, 29 May 2021 14:44:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0132.hostedemail.com [216.40.44.132]) by kanga.kvack.org (Postfix) with ESMTP id 235BA6B006C for ; Sat, 29 May 2021 14:44:39 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id BB4B7180AD815 for ; Sat, 29 May 2021 18:44:38 +0000 (UTC) X-FDA: 78195144636.09.8C80C23 Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) by imf26.hostedemail.com (Postfix) with ESMTP id 70ED841AD7B2 for ; Sat, 29 May 2021 18:44:33 +0000 (UTC) Received: by mail-qv1-f44.google.com with SMTP id a7so3580274qvf.11 for ; Sat, 29 May 2021 11:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=W4sY0Wie0MJZ2Hwlpjip2gvxEcx/kwsNggyPuijsEJY=; b=L/PqxFagH57z0outL+L9mEEONORYFl4Vmx7Bfhh/0qE4XudCliCdiyCUr48VscD/d9 i6d282R+j5Vp1NReTrsmu7AAQ6CIiiSKjWpbk7l03pqpKUUQnzt34h6/dEQUB0q7N/hX iFY70t3h9VcGey9vxoc1+AI49QWxEGMo4TxIaVjUNp+Yy6jlKg8ca6FBtBR1SAijc+CV 2hbj4PoQ5f5BZJac8UMtb872y6fEeeNxtX7jVq6hzvyGD2QKwCvvcxSRDu/u8fU5mTZt vUZp027RUC06J89CuEEJ0t2TRmnoPRwu0E2L4vqR4ng7wM984rE268ULZAssJ4oh88Bb aRyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=W4sY0Wie0MJZ2Hwlpjip2gvxEcx/kwsNggyPuijsEJY=; b=o6EjKaYj1B+U12asdk0zNIft2uYYiYdmjMoGeHBEIWIQk4FBK0vIdYNkjSr3TF/K+B uu1xBBi3sODIUvei+ecXbHhg7WU1po2EP1C2ixy8nMyUSc5xD0TulpmEDXAOEFBBQcGq XiMau0VvIw6+4zl6FGu9M4+jixk11EfSZ2J6STtcxD+9zryasklt19zNH9/jI8U0DTIT yJL9C6UzK+pY7zdzJ687w/EIDp/XFpSOwgUIum14vOIiHqbIwfLPZoOPBPibEth0i7Zb 4wwbHCp0QM/esTv7RX+jcfepAKYL4gNRqxuCdJ+Q8TR4joWMCjlABPO0we1+0zNerm5I ooLA== X-Gm-Message-State: AOAM531z/LE76k0+hr4trAHZcgRf65+K102KAbWidrr0th0lGot+QQjV UUkd7NTHftGwM3s7319+NuY= X-Google-Smtp-Source: ABdhPJxt4OrKu6VD+FgQYyXRlz8i46KZUPGzP/9eoAqtoqVIT4pASMrzimWB98Y2KLatv5Xk1MkL3Q== X-Received: by 2002:a05:6214:19ed:: with SMTP id q13mr1852035qvc.13.1622313877892; Sat, 29 May 2021 11:44:37 -0700 (PDT) Received: from [192.168.2.100] (lnsm1-toronto42-142-116-203-225.internet.virginmobile.ca. [142.116.203.225]) by smtp.gmail.com with ESMTPSA id 90sm5785231qtg.9.2021.05.29.11.44.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 May 2021 11:44:37 -0700 (PDT) Subject: Re: [RFC PATCH 5/5] mm: changes to unref pages with Generic type To: Christoph Hellwig Cc: felix.kuehling@amd.com, akpm@linux-foundation.org, linux-mm@kvack.org, jglisse@redhat.com, jgg@nvidia.com, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Alex Sierra References: <20210527230809.3701-1-Felix.Kuehling@amd.com> <20210527230809.3701-6-Felix.Kuehling@amd.com> <20210529064227.GD15834@lst.de> From: Felix Kuehling Message-ID: Date: Sat, 29 May 2021 14:44:36 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210529064227.GD15834@lst.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="G3x3cxLwvm5sc2boVqly3ItrkYb9GqxBZ" Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="L/PqxFag"; spf=pass (imf26.hostedemail.com: domain of felixkuehling@gmail.com designates 209.85.219.44 as permitted sender) smtp.mailfrom=felixkuehling@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 70ED841AD7B2 X-Stat-Signature: omcpgwncotypmzmuew3ptgmozdfr4677 X-HE-Tag: 1622313873-99731 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: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --G3x3cxLwvm5sc2boVqly3ItrkYb9GqxBZ Content-Type: multipart/mixed; boundary="jrXdr3e58CvRgT6KVy1fCOy9S5n1wBl1G"; protected-headers="v1" From: Felix Kuehling To: Christoph Hellwig Cc: felix.kuehling@amd.com, akpm@linux-foundation.org, linux-mm@kvack.org, jglisse@redhat.com, jgg@nvidia.com, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Alex Sierra Message-ID: Subject: Re: [RFC PATCH 5/5] mm: changes to unref pages with Generic type References: <20210527230809.3701-1-Felix.Kuehling@amd.com> <20210527230809.3701-6-Felix.Kuehling@amd.com> <20210529064227.GD15834@lst.de> In-Reply-To: <20210529064227.GD15834@lst.de> --jrXdr3e58CvRgT6KVy1fCOy9S5n1wBl1G Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Am 2021-05-29 um 2:42 a.m. schrieb Christoph Hellwig: > On Thu, May 27, 2021 at 07:08:09PM -0400, Felix Kuehling wrote: >> From: Alex Sierra >> >> pages in device mapping refcounts are 1-based, instead >> of 0-based. If refcount 1, means it can be freed. >> This logic is not set for Generic memory type. Therefore, >> its release is threated as a normal page, instead of >> the callback device driver release it. > So we really need to stop this magic one off refcount. We had a WIP > patchset to do that, and we need to finish that off instad of piling on= > more hacks. Sure. I'll be happy to help with that, if I can. Thanks, =C2=A0 Felix --jrXdr3e58CvRgT6KVy1fCOy9S5n1wBl1G-- --G3x3cxLwvm5sc2boVqly3ItrkYb9GqxBZ Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABEIACMWIQSF9iw3xYpcigJ58/LWGSsMBQyTdgUCYLKLlAUDAAAAAAAKCRDWGSsMBQyTdjwj AP0ehjdAXulaksrA6QcEpLPvPkwAgJ6/sP8IH2UwLePEegEAkJ4lZc22/kA41GXHo0JfTygUH6ww FLXRuBcMwz0nzPw= =cNv8 -----END PGP SIGNATURE----- --G3x3cxLwvm5sc2boVqly3ItrkYb9GqxBZ--