From patchwork Mon Aug 6 10:51:20 2018
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philipp Zabel
X-Patchwork-Id: 10556807
Return-Path:
Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org
[172.30.200.125])
by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 411F213B4
for ;
Mon, 6 Aug 2018 10:51:25 +0000 (UTC)
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E6CF2908B
for ;
Mon, 6 Aug 2018 10:51:25 +0000 (UTC)
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
id 2272629091; Mon, 6 Aug 2018 10:51:25 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
pdx-wl-mail.web.codeaurora.org
X-Spam-Level:
X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI,
RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1
Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177])
(using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CD9182908B
for ;
Mon, 6 Aug 2018 10:51:24 +0000 (UTC)
Received: from gabe.freedesktop.org (localhost [127.0.0.1])
by gabe.freedesktop.org (Postfix) with ESMTP id BA9706E1C6;
Mon, 6 Aug 2018 10:51:23 +0000 (UTC)
X-Original-To: dri-devel@lists.freedesktop.org
Delivered-To: dri-devel@lists.freedesktop.org
Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de
[IPv6:2001:67c:670:201:290:27ff:fe1d:cc33])
by gabe.freedesktop.org (Postfix) with ESMTPS id 9B4B36E1C6
for ; Mon, 6 Aug 2018 10:51:22 +0000 (UTC)
Received: from lupine.hi.pengutronix.de
([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine)
by metis.ext.pengutronix.de with esmtps
(TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89)
(envelope-from )
id 1fmd6f-0006pJ-5G; Mon, 06 Aug 2018 12:51:21 +0200
Received: from pza by lupine with local (Exim 4.89)
(envelope-from )
id 1fmd6e-0004F0-NJ; Mon, 06 Aug 2018 12:51:20 +0200
Message-ID: <1533552680.4204.14.camel@pengutronix.de>
Subject: drm/imx: ipu-v3 plane offset and IPU id fixes
From: Philipp Zabel
To: Dave Airlie
Date: Mon, 06 Aug 2018 12:51:20 +0200
X-Mailer: Evolution 3.22.6-1+deb9u1
Mime-Version: 1.0
X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17
X-SA-Exim-Mail-From: p.zabel@pengutronix.de
X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de);
SAEximRunCond expanded to false
X-PTX-Original-Recipient: dri-devel@lists.freedesktop.org
X-BeenThere: dri-devel@lists.freedesktop.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Direct Rendering Infrastructure - Development
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: kernel@pengutronix.de, dri-devel@lists.freedesktop.org
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
X-Virus-Scanned: ClamAV using ClamSMTP
Hi Dave,
please consider merging these two fixes for code used by imx-media.
Setting the IPU id to 0 if there are no OF aliases set fixes probing
on i.MX51 and i.MX53, and calculating odd YUV offsets correctly will
help fixing interlaced capture / deinterleaving.
regards
Philipp
The following changes since commit bbe4a089e299efe696ef520e58513c12c0d497c9:
gpu: ipu-csi: Check for field type alternate (2018-07-16 16:56:35 +0200)
are available in the git repository at:
git://git.pengutronix.de/git/pza/linux.git tags/imx-drm-fixes-2018-08-03
for you to fetch changes up to 2d87e6c1b99c402360fdfe19ce4f579ab2f96adf:
gpu: ipu-v3: default to id 0 on missing OF alias (2018-08-02 12:09:11 +0200)
----------------------------------------------------------------
drm/imx: ipu-v3 plane offset and IPU id fixes
- Fix U/V plane offsets for odd vertical offsets. Due to wrong operator
order, the y offset was not rounded down properly for vertically
chroma subsampled planar formats.
- Fix IPU id number for boards that don't have an OF alias for their
single IPU in the device tree. This is necessary to support imx-media
on i.MX51 and i.MX53 SoCs.
----------------------------------------------------------------
Philipp Zabel (1):
gpu: ipu-v3: default to id 0 on missing OF alias
Steve Longerbeam (1):
gpu: ipu-v3: Fix U/V offset macros for planar 4:2:0
drivers/gpu/ipu-v3/ipu-common.c | 2 ++
drivers/gpu/ipu-v3/ipu-cpmem.c | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)