Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4731838imw; Tue, 19 Jul 2022 12:08:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vjJUNr5gqujfZ7Zdq20QYKodwAzJh8gfN6j2pRwLt3ThylNl8AUAHHnw92jVGp/1aj0Wdm X-Received: by 2002:a17:907:75cc:b0:72b:4a96:69fe with SMTP id jl12-20020a17090775cc00b0072b4a9669femr33240136ejc.276.1658257693702; Tue, 19 Jul 2022 12:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658257693; cv=none; d=google.com; s=arc-20160816; b=Gh7dK3LP8Cu7PK7FsTUZRlExlZ39vhVhV3e+INbTi65KVDcsmW/WHibZqXN5awxFaf TjFk1+lpaC9SXHctdHJ0KU9z0wU7Vk8Xgo/6QYXiMnxytpn7h7cEx4Tx0s6eQ8iesj6K Yh2xdaIbjlDcG9+L03si16/sp9X0bplbTeGlukF1bN/mQo3bh18xTjFy3XSsJ84kSAw/ VPYhASufsoQilq5Y81KSpqXzhM8czP8GD2t301qTZ7QUW4hoGzUEqPDOPksVzQAMvDX3 A2qz2pESUOebghJgECruesy12Gv+EF8cfaWVHUNBzjAG2KKN9mvRcxCYaLd6Is3KHahM MemQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6O5rQASUa6CUhSp3VMctvcO1drAlu/I5+Di3dtE6mtk=; b=yDD9X0ihzKpcd5xYfJuZ2e2leWy57nJEe7JnLv4B4ZU1NSgb1syP72oiIDsXFYGckN ueBJJtvZIIFEyP5s3PHxYX7pGLw0d1IIXZuT5w9ewVRC85n9HhyUERlwF5NmbPTiWYZq 4XBqqjfhQZ7zuUjIyI3Xp8o3M2swb2GKWJTAAefwW4UYny+9jMgp6cdD2NtcCWZBO4ur frVL3pON3ZEqH7hN2lHOhDAcnLxxP8GU0YL7ThB09Neg2ndTzKseOjgFWJPs83LfgSHy CbIJNquoXrpEHtjkPqGmfOdU0DmvBrl3yZQwYh+q51EGelynDg0Dc15q06sZfZhea9+f bfRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GO9pxN3F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc36-20020a17090716a400b006f8ee02afbbsi24299563ejc.513.2022.07.19.12.07.46; Tue, 19 Jul 2022 12:08:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GO9pxN3F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238690AbiGSS4R (ORCPT + 99 others); Tue, 19 Jul 2022 14:56:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230249AbiGSS4Q (ORCPT ); Tue, 19 Jul 2022 14:56:16 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 704DA27CD0; Tue, 19 Jul 2022 11:56:15 -0700 (PDT) Received: from [192.168.2.145] (109-252-119-232.nat.spd-mgts.ru [109.252.119.232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id A48B366019F4; Tue, 19 Jul 2022 19:56:12 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658256973; bh=Pmpn1KNodZGi3VW2Y2bnZCKePhymp3labejgNlq3r8I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GO9pxN3Fbw/c0pt1D/zMDFY2ys9X+ZsZ0CV7fMCGE2ELu0ZugrwevglWrR2cuqpD/ KHFz3HwRE/SWP1cpet3PAZtDcLUCm6i3LxZzLcZmxiFKMAfcrPoIfeE1+e5jJSISjS CEF/aaKp4x3JW81fnP2axbdi+/ZWrHpfYew+JQnslN4gtTTg/PFNAj+4Rue33vdeXJ Zvg+v+zIS+7AIui/PCX7L7LL834VxjxAIYeFDGzZNZ9mQ1K6SMTLhWY4qncaPCPoxe qo/r1Rbr+DMS0JuPSH2zRguKXNC7T4zbhMnOCInL9GV93rseG6GOv+MbAWfQVTZJb9 FqOi+Saf0NNAA== Message-ID: Date: Tue, 19 Jul 2022 21:56:09 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2 09/13] drm/gem: Add LRU/shrinker helper Content-Language: en-US To: Rob Clark , dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Daniel Vetter , Thomas Zimmermann , Maarten Lankhorst , Maxime Ripard , David Airlie , open list References: <20220719171900.289265-1-robdclark@gmail.com> <20220719171900.289265-10-robdclark@gmail.com> From: Dmitry Osipenko In-Reply-To: <20220719171900.289265-10-robdclark@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/19/22 20:18, Rob Clark wrote: > +void > +drm_gem_lru_move_tail_locked(struct drm_gem_lru *lru, struct drm_gem_object *obj) > +{ > + WARN_ON(!mutex_is_locked(lru->lock)); Nit: What about lockdep_assert_held_once(&lru->lock->base)) ? Otherwise, looks good! I'll use it for the DRM-SHMEM shrinker after completing the work on the dma-buf locks. Reviewed-by: Dmitry Osipenko -- Best regards, Dmitry