Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1253594ybi; Thu, 30 May 2019 14:17:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqz72KNORMpsYSXU+36s888Wq7DP6tpp3zOPfYrSeTGEQbD0Bkfp+xwsWNCIdqE4b+XY/Rcv X-Received: by 2002:a17:902:a98b:: with SMTP id bh11mr5541657plb.8.1559251021070; Thu, 30 May 2019 14:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559251021; cv=none; d=google.com; s=arc-20160816; b=KAmI8SC86Gsyd9rBoEiFdHSlVP/aC+jLtK9xmejJUPHU4LXElpR+cDSUFfXxyn7ftE EGM+cK9+KOkZMgYMKGic4ZVamrNBPvk1PF+KhHYfHAs9WK5xiFAh2MWlZrqclMdqn8RM br91eQ8BhnV+iW2hfVWDbiU3mgN7PPtHBBKTKRVUIJIto8vhmXyQXyay5X6i4Eopn4b+ FwGjGqZXIAL/LYI2F3lhGamMV3oFpO6Rb4c4hE+w22J0hqGIAhofecUFvP6Al3VRJZkq bD0YNZRnrGUQpiyIIYjjEP6n+XHfECcwHE/fJntobRyFsQMgjAwOph+3kgw591ybkbVg C22g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1uHhnvQ/IxrzIRNKSl1O+X90iQD91sXMtWmRvoPp77c=; b=fei+3YkXjDPrKfg+MozzU9/lu0PxKEoU7hP9bgN4gDLqwTpcRiFrnPbpYroSSNyTaL DTHp9d1UAoo+NmP4V7+VsBt57NXlhEDKl8UpSzywY8wr0bfl4cLx/nnPqJqyO8LmEdtO MbUWz0cShSaeCzd5WMnsyZ9g47U9xCzPBnv1Wc445DwxRuobUITQhLZcCsKO5ZQc/XvR 9GVZuZ3rkbNdc6yCV5u9+0qe4vEjmbsg/VMn1caJKn/m4K7QXqv6C25fGr7Mcl2OJbhj FHYezqQl/xu/QVev0dyHNcRLnSnE2SOQqAzy9VSRxhi3HWLmJekT+bAOkR/30kS86RbY 22ow== 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=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si3963204pgj.272.2019.05.30.14.16.45; Thu, 30 May 2019 14:17:01 -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=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbfE3VPg (ORCPT + 99 others); Thu, 30 May 2019 17:15:36 -0400 Received: from mailoutvs60.siol.net ([185.57.226.251]:55332 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726100AbfE3VPf (ORCPT ); Thu, 30 May 2019 17:15:35 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 2B3CF52286B; Thu, 30 May 2019 23:15:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta11.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta11.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Uka6ARN8EejP; Thu, 30 May 2019 23:15:32 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id E23B9522869; Thu, 30 May 2019 23:15:32 +0200 (CEST) Received: from localhost.localdomain (cpe-86-58-52-202.static.triera.net [86.58.52.202]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id 2720952286B; Thu, 30 May 2019 23:15:30 +0200 (CEST) From: Jernej Skrabec To: paul.kocialkowski@bootlin.com, maxime.ripard@bootlin.com Cc: 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 Subject: [PATCH 1/7] media: cedrus: Disable engine after each slice decoding Date: Thu, 30 May 2019 23:15:10 +0200 Message-Id: <20190530211516.1891-2-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530211516.1891-1-jernej.skrabec@siol.net> References: <20190530211516.1891-1-jernej.skrabec@siol.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/staging/media/sunxi/cedrus/cedrus_hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c b/drivers/sta= ging/media/sunxi/cedrus/cedrus_hw.c index c34aec7c6e40..9c5819def186 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus_hw.c @@ -123,6 +123,7 @@ static irqreturn_t cedrus_irq(int irq, void *data) =20 dev->dec_ops[ctx->current_codec]->irq_disable(ctx); dev->dec_ops[ctx->current_codec]->irq_clear(ctx); + cedrus_engine_disable(dev); =20 src_buf =3D v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); dst_buf =3D v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); --=20 2.21.0