Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp986454rdh; Fri, 24 Nov 2023 02:49:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtsgLAKxxpfDVvNulQrz9VlQhOtHgi0MnvVz6QlxIlWfVseQ8xeKaQCm20XP0a32y8qWjr X-Received: by 2002:a05:6808:1456:b0:3b8:339a:9a85 with SMTP id x22-20020a056808145600b003b8339a9a85mr3175970oiv.5.1700822950581; Fri, 24 Nov 2023 02:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700822950; cv=none; d=google.com; s=arc-20160816; b=BIKaIZzj+SC1yWQuBIxHp1FxfdqH4mnK9U0SRTd0skiWAh2h4hQHBrHsJfiHiCkPba b8lXVVlsAI9NlR2dOrSPfqtP+R1ax/2pv5lLuXBJLytpDwajQeqoMeJuP+wMZBUzgXxF 7POGt8OsM7H3TO/Yu+K+WaK1bhtP1EZDHYPZ5+XZVGqkze0Zj/NJZl5Vrf0gvWDSFlMd 8HemjCpEjHUjjNu40vY34M3+BcfOS20xgGjvP6UU4mlvdCGXF1xqXAmk0NDLBJRpzpGp viiLp3ZK4fG/bOH6sw0N4eU0n1ypxYEvLgGIzCWXsF6yEz4SsnTRuDyN6MTLAt++3K4E wx2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zysSZGvXrCbjCkNU5T+HVpgGk/opMa6u/fjLGWPdamA=; fh=MssLVuNFfao3hLv//G39nY917/y/Qe6Ek1xqTmQ5e/A=; b=Hal0tisVy+5qW4YX6nqbPlhvItjom++eLEwbMzeDS3lcSEg6fas9pRs0yEL1e+k54t TKpDrR3Z1eiSCA1qhNoN804JOaBy3Rwsu8u+sFhChQTgHvqI7Ucr5t1K9DlsV4CfFKng NqS0PiUq6mF2TDk6rTJNsqv628lUtZYL137mYAHihUkg5qagETtkA8+Ec3IiHRYJGhX5 d01By0AEsfahBgUFFmp9UnKvzxXHoCK2BloxRxvUwSE6Bqddr14he5POpFVVfrpRC5iJ REE2Y2nP+8sca1U7LKXaesBSnDpJG1C97eLHvGGfyU+jm5sVd3+/aVlbYfL5morPUKxo rtAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dTGLHLRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h10-20020a63df4a000000b005c1b2c911f0si3358927pgj.328.2023.11.24.02.49.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:49:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dTGLHLRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 28437829A070; Fri, 24 Nov 2023 02:49:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345669AbjKXKsn (ORCPT + 99 others); Fri, 24 Nov 2023 05:48:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345675AbjKXKsl (ORCPT ); Fri, 24 Nov 2023 05:48:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 546FED44 for ; Fri, 24 Nov 2023 02:48:47 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D963C433C8; Fri, 24 Nov 2023 10:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700822927; bh=zysSZGvXrCbjCkNU5T+HVpgGk/opMa6u/fjLGWPdamA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dTGLHLRkeWT7p2NtFKIaJPtU0xmJtdVXzOJTjqJ24XPyj6Az8c9s6/XRvnCB5fUr3 X6RVHahwnCGE5cIoe1l+aVNJMxGdDT8TXfWopsFBtpeEbRkM79Mh+JZUaboJwnnUi6 CTrlLz1+sRoQdzHiGAKBIQcUVnsTL0vDX28TOmfL5XRYWJDBfO1ZfyNsctD9iDVrUv rHXj0jarstAfAHeLJV2KBmOLCDKs5vpqgtTUfb0gfJ+0HwRIYBWnAbIL+Fu+ZIcVXs QBUDBU12X/eHss4YmdyUqhil//rSPydelKJ3UdcNj1ZwTpuFfuljf8USFKN+fOneoB plgyAnkRdNZgQ== Date: Fri, 24 Nov 2023 11:48:44 +0100 From: Maxime Ripard To: Dmitry Osipenko Cc: David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Maarten Lankhorst , Thomas Zimmermann , Christian =?utf-8?B?S8O2bmln?= , Qiang Yu , Steven Price , Boris Brezillon , Emma Anholt , Melissa Wen , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel@collabora.com, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v18 09/26] drm/shmem-helper: Switch drm_gem_shmem_vmap/vunmap to use pin/unpin Message-ID: References: <20231029230205.93277-1-dmitry.osipenko@collabora.com> <20231029230205.93277-10-dmitry.osipenko@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4lop2eds5vd4c6em" Content-Disposition: inline In-Reply-To: <20231029230205.93277-10-dmitry.osipenko@collabora.com> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 24 Nov 2023 02:49:08 -0800 (PST) --4lop2eds5vd4c6em Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 30, 2023 at 02:01:48AM +0300, Dmitry Osipenko wrote: > The vmapped pages shall be pinned in memory and previously get/put_pages() > were implicitly hard-pinning/unpinning the pages. This will no longer be > the case with addition of memory shrinker because pages_use_count > 0 won= 't > determine anymore whether pages are hard-pinned (they will be soft-pinned= ), > while the new pages_pin_count will do the hard-pinning. Switch the > vmap/vunmap() to use pin/unpin() functions in a preparation of addition > of the memory shrinker support to drm-shmem. >=20 > Reviewed-by: Boris Brezillon > Signed-off-by: Dmitry Osipenko The naming convention discussion aside, and once it's settled and fixed: Acked-by: Maxime Ripard Maxime --4lop2eds5vd4c6em Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZWB/jAAKCRDj7w1vZxhR xa3pAP9hrcOY656LtJ0jepRAz3Rd+bj52uTM2ZvzdbEGSMjhwQEAj7bIm9/CTTzB VnDL++pXP/ULo/+hXA7txBt3hwH+Awk= =aWnC -----END PGP SIGNATURE----- --4lop2eds5vd4c6em--