Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2270330pxb; Mon, 12 Apr 2021 20:16:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuFZ40lpJ6pbyMiEZmg9udwE45dOoukMpDm8f7bHJoEeoSClsta9dU63R+UhGCqJz0dBlv X-Received: by 2002:a05:6402:440d:: with SMTP id y13mr32730156eda.316.1618283760017; Mon, 12 Apr 2021 20:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618283760; cv=none; d=google.com; s=arc-20160816; b=L+xmYk8988/OW02V6XQWoiBiejewX1roI5azN1AV2SJZeej0XNyV5KMrSpuhFgNFxd +pv/pZ3vr6+NgQPy+gMPjFoGOmk16ZXb9Y2kEjfwWm/6iCLp/0z9VCAPDzJuUSpobr1v n78pswPNbF8SsuFq0m2TWdA5R8/jZrhH2AF8CcPS5KaOe4B8v44ynfQwYYjqfaIe6d76 2H2Rx4MIgfXXDFTyA5DfKaHtVEFqnquQJuiz+t26GMeM4Sy7eRa3znVlVY97xth/C6Qa WSwKPAr36tBtS4xw6gKRFqQp3OOKXv2kVQvNnGHYYEaha2VoXJdH4t8mOr41sMotVQIy QMmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date; bh=MRH1VViPD+ILHyQb98ygecm3leJzVjTis15e2sWS1Oo=; b=FtwgSgVNapHbY602v8o6HLa51/8nhAeY36xNxj98Jj5i2HT8R6ZpY3swy8oLJyZyJO 7iOyYpsLP24WpXhfeDYsxAozQ5YhwZ+02w1QnTOHefMiYDbIHugmqIuDb5PyiwcuRsFa YZtAeaI6uC0ERYaZriYiYtdLSNc4QARTAsV6NgcLbBWQyPv1gGIlXtxJmUkDJKR+l3mr elgtxHNWYHnUv+A9ivVey/up5EeVFTJl6OvW8HzAg6bRZL//zxhUuhWjEcJyMsfO38Pw ZiIXRHYhNFw1IAo+fisH0nd/dloWYLKHQPOpj9SqyKrYo9lfgMPvb3AjI9pbKWhHNG9q +1HQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m24si9229188ejx.322.2021.04.12.20.15.36; Mon, 12 Apr 2021 20:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239653AbhDLOdD convert rfc822-to-8bit (ORCPT + 99 others); Mon, 12 Apr 2021 10:33:03 -0400 Received: from aposti.net ([89.234.176.197]:54714 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237806AbhDLOdD (ORCPT ); Mon, 12 Apr 2021 10:33:03 -0400 Date: Mon, 12 Apr 2021 15:32:27 +0100 From: Paul Cercueil Subject: Re: [PATCH 2/2] drm/ingenic: Don't request full modeset if property is not modified To: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Simon Ser Cc: Sam Ravnborg , od@zcrc.me, linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Message-Id: <3EGGRQ.5XC2ZJHIFWID@crapouillou.net> In-Reply-To: <20210329175046.214629-3-paul@crapouillou.net> References: <20210329175046.214629-1-paul@crapouillou.net> <20210329175046.214629-3-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Can I have an ACK for this patch? Cheers, -Paul Le lun. 29 mars 2021 ? 18:50, Paul Cercueil a ?crit : > Avoid requesting a full modeset if the sharpness property is not > modified, because then we don't actually need it. > > Fixes: fc1acf317b01 ("drm/ingenic: Add support for the IPU") > Cc: # 5.8+ > Signed-off-by: Paul Cercueil > --- > drivers/gpu/drm/ingenic/ingenic-ipu.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/ingenic/ingenic-ipu.c > b/drivers/gpu/drm/ingenic/ingenic-ipu.c > index 3b1091e7c0cd..95b665c4a7b0 100644 > --- a/drivers/gpu/drm/ingenic/ingenic-ipu.c > +++ b/drivers/gpu/drm/ingenic/ingenic-ipu.c > @@ -640,10 +640,12 @@ ingenic_ipu_plane_atomic_set_property(struct > drm_plane *plane, > { > struct ingenic_ipu *ipu = plane_to_ingenic_ipu(plane); > struct drm_crtc_state *crtc_state; > + bool mode_changed; > > if (property != ipu->sharpness_prop) > return -EINVAL; > > + mode_changed = val != ipu->sharpness; > ipu->sharpness = val; > > if (state->crtc) { > @@ -651,7 +653,7 @@ ingenic_ipu_plane_atomic_set_property(struct > drm_plane *plane, > if (WARN_ON(!crtc_state)) > return -EINVAL; > > - crtc_state->mode_changed = true; > + crtc_state->mode_changed |= mode_changed; > } > > return 0; > -- > 2.30.2 >