Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3790003ybl; Mon, 12 Aug 2019 06:29:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuJiIm2viw/I3qr8KLPKNTHdXb/cG+0XEdSFsrWWassdhsOOdKIdiB8lHqLc+3oExEs+fQ X-Received: by 2002:a17:90a:c58e:: with SMTP id l14mr23350784pjt.104.1565616557582; Mon, 12 Aug 2019 06:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565616557; cv=none; d=google.com; s=arc-20160816; b=CCe7BRI4fvYX9GjCHq/+5YqNjTqAU2/hUv/1ELI91tKRLY86Ma5qQfUpRqtHIA88rh YS/MDBp0/8ePA3diXZDl7qN4wmwm7VlZbITA/i+AZyR1lVHmkc88rjvAx4tC8lu9EOtq 9yfJji04iRbt2aNnGG0r9rkQ7EhWh/yjTFEc+wEDGnMB0yrYl5cocDt6o8/qtt4l1J76 EJ5tBSJZWJRHMO1Re+CMSfCJqeV4mpxubLOjP+en2vg/stu7NCLEolujaZ1J5MfDYy95 +GWJzNuQLleJfWHyJ2zmK97aCPK97aqHney19UY2vCnISqqBkK9XL7gBbr8Qq4+hv3pm zpMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=2P1OLY2PMUMMQbwogMWXTI7pfa1L8ZR5TB4ecK7eK0E=; b=FcOhvZyOofNVsEPV1LaHFh5KY9jNclSj0rXBYY9tlVLLsodzSymTsjOUSENhMaRfxp WZOVz0z3uHJaXidhdlRrK3X/UQH1swW/hqGWPzuB74lRJl5BeK8aQEji6/4RGUzV6Otm WjdcLEZJlKGcQV8w2s2b36AB1s/hbIcMQx5D308/Qm0qnEweNpElh8Bg/lQ+taJ3iYc/ i72UFW+BwTvD9lsBIZpr3L2CscO6v7FC2WiVPkbCthV7AlTZcveX8NSRCH5CMo207+fO gzIJSmFvKSbmbYoJad0WUDdZuIAKIc/pVHpBn1SFDc3XdwnlcsvMcJzboJXcf89/wL9c 94sQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si2481825pjj.28.2019.08.12.06.29.02; Mon, 12 Aug 2019 06:29:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728898AbfHLN2W (ORCPT + 99 others); Mon, 12 Aug 2019 09:28:22 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57144 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbfHLN2V (ORCPT ); Mon, 12 Aug 2019 09:28:21 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 97A362834A8 Message-ID: <6c78d1343b92e08c92e568a9e349fe22ac2f4aed.camel@collabora.com> Subject: Re: [PATCH 1/7] media: cedrus: Disable engine after each slice decoding From: Ezequiel Garcia To: Maxime Ripard , Jernej Skrabec Cc: paul.kocialkowski@bootlin.com, wens@csie.org, mchehab@kernel.org, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Mon, 12 Aug 2019 10:28:11 -0300 In-Reply-To: <20190603113827.2nmm5wkycf44aqox@flea> References: <20190530211516.1891-1-jernej.skrabec@siol.net> <20190530211516.1891-2-jernej.skrabec@siol.net> <20190603113827.2nmm5wkycf44aqox@flea> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jernej, On Mon, 2019-06-03 at 13:38 +0200, Maxime Ripard wrote: > Hi, > > On Thu, May 30, 2019 at 11:15:10PM +0200, Jernej Skrabec wrote: > > libvdpau-sunxi always disables engine after each decoded slice. > > Do same in Cedrus driver. > > > > Presumably this also lowers power consumption which is always nice. > > > > Signed-off-by: Jernej Skrabec > > Is it fixing anything though? > > I indeed saw that cedar did disable it everytime, but I couldn't find > a reason why. > > Also, the power management improvement would need to be measured, it > can even create the opposite situation where the device will draw more > current from being woken up than if it had just remained disabled. > While reviewing this, I'm noticing that cedrus_engine_disable can be marked for static storage (with or without this patch). Regards, Eze