From patchwork Sun May 4 15:26:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 4107691 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 344C1BFF02 for ; Sun, 4 May 2014 15:27:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E93B203F7 for ; Sun, 4 May 2014 15:27:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 84104203EC for ; Sun, 4 May 2014 15:27:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752358AbaEDP0m (ORCPT ); Sun, 4 May 2014 11:26:42 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:49263 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752329AbaEDP0l (ORCPT ); Sun, 4 May 2014 11:26:41 -0400 Received: by mail-pd0-f182.google.com with SMTP id fp1so1665462pdb.41 for ; Sun, 04 May 2014 08:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sPMk6wY9KWnGEH18Fnv/+M4MrBprLuf28IZ97OlSRu0=; b=XdrPu1OZGt1Hdd1qO83GL9pBPwjsB5Pipp1gLorPAtpcHjEv7WKuHR82EfSSXoojEQ 2dXgJ1C+3EuZ7q21bW35kKjMhZeyrVllNelCC6gqdyxMl/6aqdEi6ipWGa5TisNODEFn bLtXik5A4ExN4unkuXFGEwlBpylA8ernCSSKc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sPMk6wY9KWnGEH18Fnv/+M4MrBprLuf28IZ97OlSRu0=; b=fXPqZqekO01R2Di+gvP6W8B2wlT05/mdniY060YnBpFRKKFHiktwzDpX7hl/kA9EWZ BRH3LU4kbKgAz9Q83PXcPMNK23OaH/aSbdXmpqPZhw7vQttY2hnjUeaxD/UyClbbc+ki iOD2Gz/lE4M8h8HU4lMvlKZ9qbUmqb+5RJIYZR513DnQK8Xks7pqJS1wva2t3FP0Qd2d Mpc9EfPhPOzckRNVx89LmD4l9bD7lLWH19HA6Ido9yIY9AwCces0rSAy/O67OXgsHWzD +r2BMYOcVQox2Uxdmq5ybgV+zCV2K/B0PKjN5eIhOVIuwLwh3ht7jn8pBz5aI/MdioBZ uCow== X-Gm-Message-State: ALoCoQmP09lgfN9nHxQxaScHf2C9eNcRQb+4TBjGo0JbRfwH38Hoo7GDTkwTOtMSB8ur+XQZwP93 X-Received: by 10.66.240.130 with SMTP id wa2mr61195058pac.73.1399217200348; Sun, 04 May 2014 08:26:40 -0700 (PDT) Received: from djkurtzt530-glaptop.hitronhub.home (123-193-41-132.dynamic.kbronet.com.tw. [123.193.41.132]) by mx.google.com with ESMTPSA id ry10sm48005129pab.38.2014.05.04.08.26.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 04 May 2014 08:26:39 -0700 (PDT) From: Daniel Kurtz To: Inki Dae , Kukjin Kim Cc: Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , David Airlie , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, seanpaul@chromium.org, marcheu@chromium.org, Daniel Kurtz Subject: [PATCH 2/4] drm/exynos/mixer: use MXR_GRP_SXY_SY Date: Sun, 4 May 2014 23:26:19 +0800 Message-Id: <1399217181-26442-3-git-send-email-djkurtz@chromium.org> X-Mailer: git-send-email 1.9.1.423.g4596e3a In-Reply-To: <1399217181-26442-1-git-send-email-djkurtz@chromium.org> References: <1399217181-26442-1-git-send-email-djkurtz@chromium.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Mixer hardware supports offsetting dma from start of source buffer using the MXR_GRP_SXY register. Signed-off-by: Daniel Kurtz --- drivers/gpu/drm/exynos/exynos_mixer.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index 475eb49..40cf39b 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c @@ -529,13 +529,11 @@ static void mixer_graph_buffer(struct mixer_context *ctx, int win) dst_x_offset = win_data->crtc_x; dst_y_offset = win_data->crtc_y; + src_x_offset = win_data->fb_x; + src_y_offset = win_data->fb_y; /* converting dma address base and source offset */ - dma_addr = win_data->dma_addr - + (win_data->fb_x * win_data->bpp >> 3) - + (win_data->fb_y * win_data->fb_width * win_data->bpp >> 3); - src_x_offset = 0; - src_y_offset = 0; + dma_addr = win_data->dma_addr; if (win_data->scan_flags & DRM_MODE_FLAG_INTERLACE) ctx->interlace = true;