Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5728096imw; Wed, 20 Jul 2022 11:14:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tLcgkRw7G1J9scObhA2ruEwHS6wCecZLJVpEjHmsL/E0Newdk8uAPOgW2B1+QyLqmQ/p0+ X-Received: by 2002:a05:6870:5b81:b0:101:b256:b7d with SMTP id em1-20020a0568705b8100b00101b2560b7dmr3218013oab.198.1658340845062; Wed, 20 Jul 2022 11:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658340845; cv=none; d=google.com; s=arc-20160816; b=v3AJNyjS8r6JOa9j7/911hGKYSxHLQNowTT4ceiRhK2Q5UxLcwXXup7y2g8PLwVqlt 2nAc9a99U+vzDVALaFHldT2n1d3ItnHfo0leYj9g7ehs6pcA9VIWdohPfkl4oaDtZSqc Sw6rBTNHANIsuw4rIumUqbeQq/geOOOSXfjIOR5Ft+uaUBlvwVzE1owME+SdwrKiFYPS OCVIH0RwdmZNH5vQjWkVTMpIrWx4m3VQJHxTu8WvxVVqzd7uU2Zl7HuvlWp4CsN+Hl24 EUVn2IxvLgOQLEPdQ0UvGic0q4KwH86CYgmMZyBtCHL/BV9RZiv6T3tWAQ/uMOEaRXo3 QySg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yHRPEwie+kv37rjFQaOMTG39vvbswHQIAL5qJKmAXZY=; b=LodVRr5w5fpIktsStgmLzNd6uvoMku/z2/4NOmtTFqFpe7fDXs9w6jOTKP8PKHkpNx d9agdD6EYYXG2WrUgH7XYLjJBFZ9dpt4epwdDYE9UU4PQ56eUrvE7g77ElLZNJagYXTg ed5ffGUavOIkxAsOWryEIpGGd8OXpdoOEUpThNwukJUpxPo8Yp6g9qwZnICFbxSPWwtt 8xvIR+z6LGrOLikZz5AwP26Qohdp9/tDi0TOP6lTINMrc5LhGgNiQX8VkiXj+wSDpWH8 sU/xMFI8T4GxXaigPKYkOrHum2otE3KfBjCfRhLK0TuyyLfr7CkOUYcuZJupjOKEsIIp uQBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jHHP9ovM; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a9d0004000000b0061c81ac9451si14393819ota.322.2022.07.20.11.13.51; Wed, 20 Jul 2022 11:14:05 -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=@gmail.com header.s=20210112 header.b=jHHP9ovM; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229664AbiGTR5G (ORCPT + 99 others); Wed, 20 Jul 2022 13:57:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiGTR5D (ORCPT ); Wed, 20 Jul 2022 13:57:03 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF0CB24951; Wed, 20 Jul 2022 10:57:01 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id p26-20020a1c545a000000b003a2fb7c1274so1857780wmi.1; Wed, 20 Jul 2022 10:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yHRPEwie+kv37rjFQaOMTG39vvbswHQIAL5qJKmAXZY=; b=jHHP9ovMBvjF1Tz2XGF2O9uZIGYUh8uL3ccc1JcN0v8LL9vnt/CinMBSagcmUsB0Ha xOMPdfqLVfRR8KBTjUW3q4gJAiq9/Bj+xwq8vM5i2NJGbuUau3prMQFvEfK187IPw3sP ldn0KN2bm3rURRez4YtZRMTE9BhOk8rkB5kG+pW/VAI5cr1aqPSKS04ccEoqIYJR6tVy Zuw3v3nP+Hb8a3vYv7VyQIgdXWHzjqNVBfIr4tnV16bQGFafAwIaR6YmH3qdWmpIj3MM 3fM2UpyV4zp2x+GfoPfTe10AJahSclTCRwIrWIwAQ6N64nxC0rG4BGVOnfxlHcdrCw9m qR4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yHRPEwie+kv37rjFQaOMTG39vvbswHQIAL5qJKmAXZY=; b=EMrO5uBrQB3xChamH6PnF9txpk3mUXEH8WZqoIZT19muEMEGx1ZoZq3QQaW5wr1h30 e+mZGNU5v6QuJ8cMwSZ05k5+Ou4rqNu+NRzLQ9T25y7u8kTglp9UTQKOFCmtlQ9Tx+1T npDMPOAhdjscfk1PqrcLyirSsa+CvyqjtbbDWLlI4lLT6pYVOr9aYqUogHToaBOL+1gM d7jldZ+/C+GFfr34gIYaCF2kyls1VJCcK7H7NSL122VPbvwSKfTEMdm3HceGE/Q1PjVb 42raYm4IgY8aSMMo0dloWih4L5kK9n4gxI5+z+y9olNh7ZO0nwWlclx2WvRPRP/n+/0u FiFw== X-Gm-Message-State: AJIora+0P0BdKZHTew0ijJ2G3uDOvM1BWXp1933KOxHqVg5+GRyWSI+z p7tjgelnPI8DLbN0pFmkFdiKXbqsemLI01GLLdw= X-Received: by 2002:a05:600c:3ac3:b0:3a0:45b6:7efb with SMTP id d3-20020a05600c3ac300b003a045b67efbmr4906657wms.183.1658339820479; Wed, 20 Jul 2022 10:57:00 -0700 (PDT) MIME-Version: 1.0 References: <20220719171900.289265-1-robdclark@gmail.com> <20220719171900.289265-10-robdclark@gmail.com> In-Reply-To: From: Rob Clark Date: Wed, 20 Jul 2022 10:57:21 -0700 Message-ID: Subject: Re: [PATCH v2 09/13] drm/gem: Add LRU/shrinker helper To: Dmitry Osipenko Cc: dri-devel , freedreno , linux-arm-msm , Rob Clark , Daniel Vetter , Thomas Zimmermann , Maarten Lankhorst , Maxime Ripard , David Airlie , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Tue, Jul 19, 2022 at 11:56 AM Dmitry Osipenko wrote: > > 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)) ? ahh, good point.. I've switched it locally BR, -R > 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