Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3589209pxp; Tue, 15 Mar 2022 01:46:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqk0uf9PWD1I/rnk4DN4RhEw1mQPtAM6qkcWS+4FptzrcnZ//3d5pQRJNbGovNyLpW7za2 X-Received: by 2002:a63:1620:0:b0:375:948e:65bf with SMTP id w32-20020a631620000000b00375948e65bfmr23855195pgl.49.1647333977271; Tue, 15 Mar 2022 01:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647333977; cv=none; d=google.com; s=arc-20160816; b=gRzkADZCNiNVCsD+pyur6KDyrhCq5xBvjeRGS6xmVHxXws8ZLVXYWke6Aty//tRTVL HAGQC9vDxaj4pZHXnqgYfgy8bQJxuoDFdnv5ohcG/ngrqyjIWcMJfyKxmRm5bs93/dp+ uGIWJ1gRkk+5Z+IhqNEN3JNnzEINdcuathcC9xEm95p3EXTyV9cjYsUq0wFbgbpRBpU8 Gmvtu3+oIlsgfW+8qOWVQJBttgeM2YsE5Yq6wsH4vWaEOP2U+pPUjPtWKchqEbqdzP5s zb0rBqbf88pVfThMDlRTmzo9KGFRQqhqqwjYdyeH2buePE+nVuIv4zcM65PepNU3mUnH EJKQ== 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=R9cuytuzzfbXo+UoxhRBqhxkNk96AsNeq3yKBzJj4Io=; b=NzmWWRZ5QEfNrc5lgY/om32Nl9B4+Mt4Ed31oFAhDul7FzI1C3HPnBBW9QlbIHqK2z KxB2jDqG+B8+q/IsbSczwk3s/5LTf3atMnAnmDb/emygiOEOrCPz5e4pyvSXRAyeHmaW b/rsGTJatbmDBDZ2roR1NxvkbX4aWnnUROT86Ec6JtMtSh1RsvyyyLD8uTKle1WPvJPz xlTAx3li69YkLtsIeLxHBn5zGPa/h65ywS3f/rDDQaBv1VUm49Ru3+dyUy4ngzia8ES0 RvNDpeoMtmM2ghHkWe9NkXZDvzd8ZcVkBDj3SERIhrF1OVwE4y4F4Oox1Q1fTQtbQnMo AEBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=cusMh++H; 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 q2-20020a632a02000000b0038083f63444si16471476pgq.744.2022.03.15.01.46.04; Tue, 15 Mar 2022 01:46:17 -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=cusMh++H; 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 S1343696AbiCNXd1 (ORCPT + 99 others); Mon, 14 Mar 2022 19:33:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232873AbiCNXd0 (ORCPT ); Mon, 14 Mar 2022 19:33:26 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF5AFD10 for ; Mon, 14 Mar 2022 16:32:15 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id EB1A21F433BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1647300734; bh=9clAFUpmyfjDVmXRc8GUa3ADKwVw6CLuu2WzpsLgnrQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cusMh++HSY9Mu8xH2QJtv7+yNcgFTInEIC9S1TQ37r87YqQK0Cbr+l8E5kvCU2AHU IPrSmZbOYKir/Zm3aQubN11Jfer0fCrYEkW0TZcvzt7lcTuzdjL3lFvD0FDAsieTyX tiaHBcIQn7fxWcA43hBPz2VSoJOCe3vsDpQhF7/eUsui8EsKp289qqBwduO4KnTU+M UhbX4uBTGvUJ9vEiU+gbnygEKmla/oeTSxevMvoEOpirWNUC1XU13yYBzUha5hiT8z 9Kge3LtkPCnnTfa5b7fETcmqq5F3OMtEVkpTx6/7qdf+63JzqhwtXM89NytBlOQGl5 YjMDA3m8lTv2A== Message-ID: <4c107b1a-ad6b-8d20-9336-8e08adffe09c@collabora.com> Date: Tue, 15 Mar 2022 02:32:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH v2 8/8] drm/panfrost: Switch to generic memory shrinker Content-Language: en-US To: Alyssa Rosenzweig Cc: David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Daniel Almeida , Gert Wollny , Tomeu Vizoso , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Steven Price , Alyssa Rosenzweig , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Gustavo Padovan , Daniel Stone , virtualization@lists.linux-foundation.org, Dmitry Osipenko References: <20220314224253.236359-1-dmitry.osipenko@collabora.com> <20220314224253.236359-9-dmitry.osipenko@collabora.com> From: Dmitry Osipenko In-Reply-To: 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_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 3/15/22 02:26, Alyssa Rosenzweig wrote: > On Tue, Mar 15, 2022 at 01:42:53AM +0300, Dmitry Osipenko wrote: >> Replace Panfrost's memory shrinker with a generic DRM memory shrinker. >> >> Signed-off-by: Dmitry Osipenko >> --- >> drivers/gpu/drm/panfrost/Makefile | 1 - >> drivers/gpu/drm/panfrost/panfrost_device.h | 4 ---- >> drivers/gpu/drm/panfrost/panfrost_drv.c | 19 ++------------- >> drivers/gpu/drm/panfrost/panfrost_gem.c | 27 ++++++++++++++-------- >> drivers/gpu/drm/panfrost/panfrost_gem.h | 9 -------- >> drivers/gpu/drm/panfrost/panfrost_job.c | 22 +++++++++++++++++- >> 6 files changed, 40 insertions(+), 42 deletions(-) >> >> diff --git a/drivers/gpu/drm/panfrost/Makefile b/drivers/gpu/drm/panfrost/Makefile >> index b71935862417..ecf0864cb515 100644 >> --- a/drivers/gpu/drm/panfrost/Makefile >> +++ b/drivers/gpu/drm/panfrost/Makefile >> @@ -5,7 +5,6 @@ panfrost-y := \ >> panfrost_device.o \ >> panfrost_devfreq.o \ >> panfrost_gem.o \ >> - panfrost_gem_shrinker.o \ >> panfrost_gpu.o \ >> panfrost_job.o \ >> panfrost_mmu.o \ > > I'm not sure you actually deleted gem_shrinker anywhere in this patch? > Diff stat is too small. Indeed, I was also confused by the diffstat once noticed it after the patches were sent out. And yes, I missed to git-add the panfrost_gem_shrinker.c by accident. Good catch, thank you! I'll correct it in in the v3. Meanwhile, will be great if you or somebody else could test this Panfrost patch. I don't have any h/w with Mali on hands yet and only compile-tested it.