From patchwork Wed Nov 7 14:44:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: archit taneja X-Patchwork-Id: 1710841 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3CA7F3FC8F for ; Wed, 7 Nov 2012 14:45:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753948Ab2KGOpT (ORCPT ); Wed, 7 Nov 2012 09:45:19 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:33926 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752128Ab2KGOpQ (ORCPT ); Wed, 7 Nov 2012 09:45:16 -0500 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id qA7EjG4p020735; Wed, 7 Nov 2012 08:45:16 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id qA7EjGvj010896; Wed, 7 Nov 2012 08:45:16 -0600 Received: from dlelxv24.itg.ti.com (172.17.1.199) by dfle73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.1.323.3; Wed, 7 Nov 2012 08:45:15 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id qA7EjFCP011131; Wed, 7 Nov 2012 08:45:15 -0600 Received: from localhost (a0393947pc.apr.dhcp.ti.com [172.24.136.151]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id qA7EjEw12905; Wed, 7 Nov 2012 08:45:14 -0600 (CST) From: Archit Taneja To: CC: , , Archit Taneja Subject: [RFC 08/11] OMAPDSS: APPLY: Check if overlay is connected in mem to mem mode Date: Wed, 7 Nov 2012 20:14:26 +0530 Message-ID: <1352299469-17609-9-git-send-email-archit@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352299469-17609-1-git-send-email-archit@ti.com> References: <1352299469-17609-1-git-send-email-archit@ti.com> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org When a manager is connected to writeback in mem to mem mode, all the connected fetch and process data at rate suitable for the scalar to perform the required downscaling. This is because there isn't any display connected here, and hence no real time constraints. When calling dispc_ovl_setup, pass the correct value of mem_to_mem parameter so that it can discard pixel clock related scaling limitations. Signed-off-by: Archit Taneja --- drivers/video/omap2/dss/apply.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c index 2fd08d8..e1c589c 100644 --- a/drivers/video/omap2/dss/apply.c +++ b/drivers/video/omap2/dss/apply.c @@ -615,10 +615,13 @@ int dss_mgr_wait_for_go_ovl(struct omap_overlay *ovl) static void dss_ovl_write_regs(struct omap_overlay *ovl) { + struct omap_overlay_manager *mgr = ovl->manager; + struct omap_dss_output *out = mgr->output; struct ovl_priv_data *op = get_ovl_priv(ovl); struct omap_overlay_info *oi; bool replication; struct mgr_priv_data *mp; + bool mem_to_mem; int r; DSSDBG("writing ovl %d regs", ovl->id); @@ -628,11 +631,13 @@ static void dss_ovl_write_regs(struct omap_overlay *ovl) oi = &op->info; - mp = get_mgr_priv(ovl->manager); + mp = get_mgr_priv(mgr); replication = dss_ovl_use_replication(mp->lcd_config, oi->color_mode); - r = dispc_ovl_setup(ovl->id, oi, replication, &mp->timings, false); + mem_to_mem = output_is_wb(out) ? wb_manual_update(out) : false; + + r = dispc_ovl_setup(ovl->id, oi, replication, &mp->timings, mem_to_mem); if (r) { /* * We can't do much here, as this function can be called from