Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2781057imw; Wed, 6 Jul 2022 11:37:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s0+ff6dfYxXVotJ9Yz/JztYc0g7QCjcBMqz3ufAMitVd7fHNY2icMli/nAKcBaDH4c6yNi X-Received: by 2002:a05:6402:1f01:b0:43a:239e:e65a with SMTP id b1-20020a0564021f0100b0043a239ee65amr28145952edb.428.1657132658574; Wed, 06 Jul 2022 11:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657132658; cv=none; d=google.com; s=arc-20160816; b=BFcStf+i+c/uzRwf17xgsdV6InJdqYSu4Jy3lZiu9bXwt5h0XgrhU3tuBPbMnFal/M elXrJJXVKQfKo8mOd8JYH1iWzrAmt953KGMj5cVv6tsmfl2o1A5+p2w/G6P4BkKVBZKf /Hymr01l/H4gcQmV1DPHdV5S+WvvC2OU+1cFmm8fEiIR8uuZsyY/ukIlpAP3zHYAj4E/ xvhhh5a++sl5VRgvukpRFjaQsU6V14DD0TmU/hbnDx0YWF+Sp2JZRDJzCxs96nIwcS6r i+5LWQBwYj/TZbG34ZpNBTBd/OOMIQJmRXVdPRAxtH/AHl9x2mkQ/sx/fOcx5XQx8c5f hMUg== 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=JqBcZVmZY62+uZaaDsEVHApvk4BPtabj2ze/xYSIKPM=; b=ZlafSgJ0uYelGuMj2+3q+CtRvcKqFiPqhvnMXaCeEz4PmgluhBafv83Z1Z+DnuR8KQ h98Lzl89IbJ87/d/9Hh+6z7oH32qPNBWB+UfdYBum9JRnm6B3wGNPc/8We+g6S02S3ZE YP/AAlt79j2C0soScl2vapDJfiNvM0m6Q+aFTQsireLUR8UIIfEg55J/0zJiDK5mw1Ck M7txkDrQpMzOyXiPncE8pfTsfAHSlrzsRZm5SXdHG/oWeVKJq+zPuudmxYVF9zhncZJr q1m030CC3LmBqAblT2QLZav4xzpW3yQsDFVB4vGT3NgGhvI/Sp9YNC9Nmo+pVKM37Jrk AclA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=dEPL46gw; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a1709065d0800b006feef404001si20688289ejt.801.2022.07.06.11.37.09; Wed, 06 Jul 2022 11:37:38 -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=@google.com header.s=20210112 header.b=dEPL46gw; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234392AbiGFScB (ORCPT + 99 others); Wed, 6 Jul 2022 14:32:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233945AbiGFScA (ORCPT ); Wed, 6 Jul 2022 14:32:00 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD44BE6 for ; Wed, 6 Jul 2022 11:31:59 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-2ef5380669cso148625657b3.9 for ; Wed, 06 Jul 2022 11:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JqBcZVmZY62+uZaaDsEVHApvk4BPtabj2ze/xYSIKPM=; b=dEPL46gwLY9Xnxeq7C4mX9Slt3nXB1pC1jn5H0CL9VX9G2i8J6+ylsbX1Mgg2ERRjp vlPsgCqXtBs1XZnGQqilXjd5GePb2UO5C6pmc+JN1fk6Wqr+Ol6n1+ETMDRdz1MbpBtX se7qXtyj0/MrUfsRscQXaxQREgk3/B/JhYx7GEriklH1gVdocFajhWPIjV+pRV1sOL1M 55HKrnvRjLHyI7UjeoWg73/+uxDsaFlG8k/XgUulVf0AGvgOOL2cjp6zctn+FPub2yuT 6Sa9SruHspQVXX5hrICktogXVFwx0I513/4Z7w3NV8jfaVdf3t2TkUdWgnHZFmwAAFKa XZQA== 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=JqBcZVmZY62+uZaaDsEVHApvk4BPtabj2ze/xYSIKPM=; b=POW9/jsQuAA/Eihs54LJoiV7iEbV/Dw7xjW4b7s3Ya3gbtlNNOXAMw7OOO4J0M4SWw ylvYAFOsvErDfpQxRTCS/MP2vzuOO3LfMMcvggqHymktSOHurkq+nMWWz4e6e4XrQ8s5 lnwEYq7ZQpwq9uQHOxb8spnOeNLfG2m2HZtBbvXsOa+ycBgJrQZ67lUOtdbkaQ66av3x APoHnAH8EA15vLe+8mHz0/Tu8MADsKkdwvzrGrW0ulrlG/kzArqEmOccjNjgf1BL1Io0 bQWTfAPYbBQgBcla4qPZbLfUCvHhNTb79IFkQNF1evfxdGgz9SmHiA6LchFiLcBs2h3q TW4Q== X-Gm-Message-State: AJIora9ti0HhuI84Uj889MzrhB9zUARrKdG719FAX2cuHAIvMFkcELZF qgc8dmv7Zi9iUW+orhs4JzZg2ZVb3NeCj7+mgVW7/w== X-Received: by 2002:a81:4f95:0:b0:31c:9817:90e5 with SMTP id d143-20020a814f95000000b0031c981790e5mr20142591ywb.280.1657132318960; Wed, 06 Jul 2022 11:31:58 -0700 (PDT) MIME-Version: 1.0 References: <20220706182924.2563058-1-tjmercier@google.com> In-Reply-To: <20220706182924.2563058-1-tjmercier@google.com> From: "T.J. Mercier" Date: Wed, 6 Jul 2022 11:31:48 -0700 Message-ID: Subject: Re: [PATCH] drm/etnaviv: Remove duplicate call to drm_gem_free_mmap_offset To: "T.J. Mercier" , Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter Cc: etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Wed, Jul 6, 2022 at 11:29 AM T.J. Mercier wrote: > > The docs explicitly say the drm_gem_object_release function already calls this, > and this does not appear to be a prerequisite for the call to > etnaviv_gem_ops.release. > > Signed-off-by: T.J. Mercier > --- > drivers/gpu/drm/etnaviv/etnaviv_gem.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem.c b/drivers/gpu/drm/etnaviv/etnaviv_gem.c > index cc386f8a7116..ecb828e4e156 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_gem.c > +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem.c > @@ -504,7 +504,6 @@ void etnaviv_gem_free_object(struct drm_gem_object *obj) > kfree(mapping); > } > > - drm_gem_free_mmap_offset(obj); > etnaviv_obj->ops->release(etnaviv_obj); > drm_gem_object_release(obj); > > -- > 2.37.0.rc0.161.g10f37bed90-goog > I don't have a device to test this with, but I believe this is correct based on inspecting the code and the drm_gem_free_mmap_offset function docs.