Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp983591rdh; Fri, 24 Nov 2023 02:43:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXtlnOgoVgCd21FehS4skVyqRfsT2vnpVeJXGQHcLlxQtk6P6R7v//g7nK9yW/S/kfQUcn X-Received: by 2002:a9d:6641:0:b0:6d7:eaa8:a6e5 with SMTP id q1-20020a9d6641000000b006d7eaa8a6e5mr2531100otm.30.1700822618591; Fri, 24 Nov 2023 02:43:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700822618; cv=none; d=google.com; s=arc-20160816; b=g2k+1sHkdStM0wahy3f3rtOAFbP7r53x3V49NOT5+Id+EbIT3fhb67Gws2pS08lHny PSYE3D5VwjaRfQt05zLBDBItKibbQqrordCrT6vCBJUFTAsi18kRc6jmh+lCB0dAaTDT q8FrRPVq+qmPOgF/9aKdp88/PMWKOCldXGyill76bRAcvOuz4p3+2JIxKZV7+uR7I2r6 yLr36jQnadeuYfmZxBXMYjvKf+ZbAZZn1yQrB6X4dgZfw/hhBarCrZ1CfDACy8y+PJ0T Rpddb5dgGgHfchmgW8gfUGRlL0TrACj63trLW5kpPQ3LKL2fKExxGz5QeMIghkI7U5A7 262Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:references :in-reply-to:subject:to:from:date:message-id:dkim-signature; bh=B9wGFKlvp/YZEopRaAvdU1A2HubEm3DJLIXAlfjLLZA=; fh=Icg4OCv3shlK+ohy8wXXNa3gywwOYw505cpR7znLGl4=; b=fCW/qzmBY1G9MWzR+kA8RKbqWjfWOik1ZMIUv8xAlqdul4xRvYc6UgyR/ncAgC3NCG TJGklS6Q5WSt3XXX/UPPY+VZGapkR8UVYWlwQ6o/OfIYfJteZHk99r1hM7gj/3aQKW0t nHWT48/d6P1mX5uTCPFxoSUqY8ckfLIjWJk4Alv0CgPXssqub/XRHv6S2Zvme1il5luO fWnunAzb4Eb7L3RETmBkV+WUqYhS7wC5Ke5/Jhs21axQ6jadtNiXbkLjkPXKajMyyaq9 YcfPIh9BvR82YNk2ZGwTZ5iDbNziUL6dkyrrf/nwPg9MMA7zRWQC6lzmxkIAIKyxWF87 ioEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L69sDpmu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id z29-20020a63191d000000b00577fc59373fsi3122859pgl.296.2023.11.24.02.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:43:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L69sDpmu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1242081F1E92; Fri, 24 Nov 2023 02:41:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345608AbjKXKlF (ORCPT + 99 others); Fri, 24 Nov 2023 05:41:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345395AbjKXKlC (ORCPT ); Fri, 24 Nov 2023 05:41:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 236BE91 for ; Fri, 24 Nov 2023 02:41:09 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DADEC433C8; Fri, 24 Nov 2023 10:41:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700822468; bh=B9wGFKlvp/YZEopRaAvdU1A2HubEm3DJLIXAlfjLLZA=; h=Date:From:To:Subject:In-Reply-To:References:Cc:From; b=L69sDpmu9gMgz1zrB8/1oyyUf/W8N4ry1cjMHW049czR5sJm4eG5fugpYRBBKZuv4 W88Pn8p+EOJyPbq8U3moFuVR220+C6w/WiP+epLu7J+0iNf7PDI0lwF2DcW3NIw39D oSuL+Rnu1jyCxKR9e8SbLyIpSdpje4k2huqZftU98Q51+pi9Y4JzU/DSGgcPO+RS0J oV+SH4b3cmrABZlj9GcxMMSueE17XDXq0dpYHnUQdXAXR3l2CjBuGCwc5DUEm2Arh1 jc8FmE9NPKOLuuCHWVN5ectENAGY+uVpxn2/AWtRT/wbYAGkOC1qb4Wny7CPDFF+TH lHPyI9A+eZ8wA== Message-ID: <5b594d30e08b4acaf7aaf9b7a4419d2a.mripard@kernel.org> Date: Fri, 24 Nov 2023 10:41:05 +0000 From: "Maxime Ripard" To: "Dmitry Osipenko" Subject: Re: [PATCH v18 06/26] drm/shmem-helper: Add and use pages_pin_count In-Reply-To: <20231029230205.93277-7-dmitry.osipenko@collabora.com> References: <20231029230205.93277-7-dmitry.osipenko@collabora.com> Cc: dri-devel@lists.freedesktop.org, kernel@collabora.com, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, "Boris Brezillon" , "Chia-I Wu" , =?utf-8?b?Q2hyaXN0aWFuIEvDtm5pZw==?= , "Daniel Vetter" , "David Airlie" , "Emma Anholt" , "Gerd Hoffmann" , "Gurchetan Singh" , "Maarten Lankhorst" , "Maxime Ripard" , "Melissa Wen" , "Qiang Yu" , "Steven Price" , "Thomas Zimmermann" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 24 Nov 2023 02:41:20 -0800 (PST) On Mon, 30 Oct 2023 02:01:45 +0300, Dmitry Osipenko wrote: > Add separate pages_pin_count for tracking of whether drm-shmem pages are > moveable or not. With the addition of memory shrinker support to drm-shme= m, > the pages_use_count will no longer determine whether pages are hard-pinned > in memory, but whether pages exist and are soft-pinned (and could be swap= ped > out). The pages_pin_count > 1 will hard-pin pages in memory. >=20 > [ ... ] Acked-by: Maxime Ripard Thanks! Maxime