From patchwork Mon Jul 2 11:12:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 1147381 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 25107DFFAD for ; Mon, 2 Jul 2012 15:57:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D06B99F4FA for ; Mon, 2 Jul 2012 08:57:22 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 514 seconds by postgrey-1.32 at gabe; Mon, 02 Jul 2012 13:23:51 CEST Received: from imta21.fe.bosch.de (imta21.fe.bosch.de [139.15.243.226]) by gabe.freedesktop.org (Postfix) with ESMTP id BDCE79F0EA for ; Mon, 2 Jul 2012 04:23:51 -0700 (PDT) Received: from smtp2-v.fe.bosch.de (imta24.fe.bosch.de [139.15.243.27]) by imta21.fe.bosch.de (Postfix) with ESMTP id 99A172802A9 for ; Mon, 2 Jul 2012 13:15:16 +0200 (CEST) Received: from vsmta11.fe.internet.bosch.com (unknown [10.4.98.30]) by imta24.fe.bosch.de (Postfix) with ESMTP id CDC75B00207; Mon, 2 Jul 2012 13:15:14 +0200 (CEST) Received: from localhost (vsgw1.fe.internet.bosch.com [10.4.98.15]) by vsmta11.fe.internet.bosch.com (Postfix) with SMTP id BD70943C033D; Mon, 2 Jul 2012 13:15:14 +0200 (CEST) Received: from FE-MBX1000.de.bosch.com (10.3.144.120) by fe-hub04.de.bosch.com (10.3.153.63) with Microsoft SMTP Server (TLS) id 8.3.245.1; Mon, 2 Jul 2012 13:15:09 +0200 Received: from FE-HUB1000.de.bosch.com (10.4.103.107) by FE-MBX1000.de.bosch.com (10.3.144.120) with Microsoft SMTP Server (TLS) id 14.2.283.3; Mon, 2 Jul 2012 13:15:09 +0200 Received: from [10.34.217.145] (10.34.217.145) by FE-HUB1000.de.bosch.com (10.4.103.107) with Microsoft SMTP Server id 14.2.283.3; Mon, 2 Jul 2012 13:15:10 +0200 Message-ID: <4FF18229.7030907@de.bosch.com> Date: Mon, 2 Jul 2012 13:12:41 +0200 From: Dirk Behme Organization: Robert Bosch Car Multimedia GmbH User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Sascha Hauer Subject: Re: [PATCH, RFC] i.MX DRM support References: <1339681407-28721-1-git-send-email-s.hauer@pengutronix.de> <20120702100506.GI24458@pengutronix.de> In-Reply-To: <20120702100506.GI24458@pengutronix.de> X-Originating-IP: [10.34.217.145] X-Mailman-Approved-At: Mon, 02 Jul 2012 08:56:16 -0700 Cc: David Jander , DRI Development , Ahmed Ammar , "kernel@pengutronix.de" , Greg Kroah-Hartman , "linux-arm-kernel@lists.infradead.org" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org On 02.07.2012 12:05, Sascha Hauer wrote: > On Thu, Jun 14, 2012 at 03:43:22PM +0200, Sascha Hauer wrote: >> Hi All, >> >> The following is the state-of-the-art i.MX IPU (Image Processing Unit) >> DRM support. >> >> This code is around for quite some time now and has been posted several >> times with different APIs, first with plain old framebuffer support, now >> DRM, first platform device binding, now devicetree. Unfortunately there's >> quite much code needed to get something useful out of the IPU, so these >> patches haven't received a lot of attention from people not involved in >> i.MX. I think we have now come to a point where this code needs more public >> exposure and where it's easier to talk in incremental changes instead of >> blobs. Therefore I request this to go to staging for some cycles. > > Dave, Greg, > > Comments to this one? I addressed the comments I received so far and am > about to respin this series. Is it ok to put this to staging? If yes, > should I move the whole stuff into drivers/staging/ or should it stay > in drivers/gpu/drm with just a Kconfig dependency on STAGING? We are very interested in this, so +1 from my side for this. Many thanks and best regards Dirk Btw.: Based on http://git.pengutronix.de/?p=imx/linux-2.6.git;a=shortlog;h=refs/heads/work/gpu/imx-drm-ipu-complete with [1] below I fixed some compiler warnings. I have some additional warnings drivers/gpu/drm/drm_edid.c: In function 'drm_find_cea_extension': drivers/gpu/drm/drm_edid.c:1466: warning: array subscript is above array bounds drivers/gpu/drm/drm_edid.c: In function 'drm_detect_hdmi_monitor': drivers/gpu/drm/drm_edid.c:1466: warning: array subscript is above array bounds drivers/gpu/drm/drm_edid.c: In function 'drm_detect_monitor_audio': drivers/gpu/drm/drm_edid.c:1466: warning: array subscript is above array bounds drivers/gpu/drm/drm_edid.c: In function 'drm_edid_to_eld': drivers/gpu/drm/drm_edid.c:1466: warning: array subscript is above array bounds drivers/gpu/drm/drm_edid.c: In function 'drm_add_edid_modes': drivers/gpu/drm/drm_edid.c:1466: warning: array subscript is above array bounds drivers/gpu/drm/drm_edid.c:1466: warning: array subscript is above array bounds but these seems to be compiler specific and not related to Sacha's patches. [1] From: Dirk Behme Subject: [PATCH 1/2] DRM i.MX: ldb: Fix compiler warnings Fix the compiler warnings drivers/gpu/drm/imx/imx-ldb.c: In function 'imx_ldb_encoder_mode_fixup': drivers/gpu/drm/imx/imx-ldb.c:118: warning: unused variable 'imx_ldb_ch' drivers/gpu/drm/imx/imx-ldb.c: In function 'imx_ldb_encoder_prepare': drivers/gpu/drm/imx/imx-ldb.c:134: warning: format '%ld' expects type 'long int', but argument 6 has type 'int' Signed-off-by: Dirk Behme --- drivers/gpu/drm/imx/imx-ldb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: freescale-linux-2.6-imx.git/drivers/gpu/drm/imx/imx-ldb.c =================================================================== --- freescale-linux-2.6-imx.git.orig/drivers/gpu/drm/imx/imx-ldb.c +++ freescale-linux-2.6-imx.git/drivers/gpu/drm/imx/imx-ldb.c @@ -115,9 +115,9 @@ static bool imx_ldb_encoder_mode_fixup(s struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) { +/* struct imx_ldb_channel *imx_ldb_ch = enc_to_imx_ldb_ch(encoder); -/* adjusted_mode->clock = clk_round_rate(imx_ldb_ch->clk_pll, adjusted_mode->clock * 1000) / 1000; */ @@ -131,7 +131,7 @@ static void imx_ldb_encoder_prepare(stru int ret; struct drm_display_mode *mode = &encoder->crtc->mode; - dev_dbg(ldb->dev, "%s: now: %ld want: %ld\n", __func__, + dev_dbg(ldb->dev, "%s: now: %ld want: %d\n", __func__, clk_get_rate(imx_ldb_ch->clk_pll), mode->clock * 1000 * 7); clk_set_rate(imx_ldb_ch->clk_pll, mode->clock * 1000 * 7);