Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1893378imm; Thu, 2 Aug 2018 02:53:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfqCRC8/W1luajkFJ9YU9b7WfYrqs1O3Cgge9T4v9kLmC8Ei4Fmfnv94H9nDVd3Te1//D8x X-Received: by 2002:a62:5f82:: with SMTP id t124-v6mr2182529pfb.223.1533203590800; Thu, 02 Aug 2018 02:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533203590; cv=none; d=google.com; s=arc-20160816; b=gzVTYaCOCdnIQh6KUJughil8j2ltDyX+oM4Sc+DSRW6mu9VdivH/b8VQNBR/CVeB6c 9TCXclfpga86fauWdt0HO/PyInIaBNXMxhkhEyTsOU/CNED6aERjG6YKJ7f4TfSgN56o BAWMCd0LL8eDkr9+qHOfJao3JAa0znEr2YiaIRJf2eC1WKtAEttM76Z27W5rgPhKKAqH jpKBPO3gCF0XnftcYhw1biMsGzYOQ11PCo9RK9xKwJqOjRZHAoJjxod3iipInofOSbwG PDPhZQ/9H02mcyiJyFZZBdZs3LN8fBwA56K/23KuB9TVg/m6DMlRfXPcu9CgiW1BPma7 ziww== 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:date:cc:to:from:subject:message-id :arc-authentication-results; bh=z2p4Irxyxkly2xhAHjHJ2/TTlXHH9A1SUFSklxgWMWM=; b=iQ+eT7TEDZimPHF1+jSmo/y5cXhmGacijSbqmU0p56KXDbYXwyyCT662LVZ20LPgfA gXyEo5DaV2Uo7XxiYE8fCTrWwnYkxYeNu7jbpl6ezZEVmaCAnn9ya1Kt2w6Gswo+1HWe /hR1dlsUH0iMB1ENUn8eZyCws7LQvsejDTsn59+ZpcDGQadxKOQqgdwWdwRb+8C6lyvN aq37r6CXw4eA0k27unJkGLTU1gYtZotJG5LK0JYEOp8It0cLaZqUVYaCkxWYhMLO1faO KRIlB9JKeW6PaG47USyk6cUX9gjiy7EsoWFX7EI0f3FNtY9pB/cQtTZtpfyR0sjrV+py t4Tg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19-v6si1223511pgu.285.2018.08.02.02.52.55; Thu, 02 Aug 2018 02:53:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730730AbeHBLmW (ORCPT + 99 others); Thu, 2 Aug 2018 07:42:22 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:51661 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726260AbeHBLmW (ORCPT ); Thu, 2 Aug 2018 07:42:22 -0400 Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1flAGy-0008TE-54; Thu, 02 Aug 2018 11:51:56 +0200 Message-ID: <1533203515.3516.13.camel@pengutronix.de> Subject: Re: [PATCH v3 04/14] gpu: ipu-v3: Fix U/V offset macros for planar 4:2:0 From: Philipp Zabel To: Steve Longerbeam , linux-media@vger.kernel.org Cc: Steve Longerbeam , "open list:DRM DRIVERS FOR FREESCALE IMX" , open list Date: Thu, 02 Aug 2018 11:51:55 +0200 In-Reply-To: <1533150747-30677-5-git-send-email-steve_longerbeam@mentor.com> References: <1533150747-30677-1-git-send-email-steve_longerbeam@mentor.com> <1533150747-30677-5-git-send-email-steve_longerbeam@mentor.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-08-01 at 12:12 -0700, Steve Longerbeam wrote: > The U and V offset macros for planar 4:2:0 (U_OFFSET, V_OFFSET, and > UV_OFFSET), are not correct. The height component to the offset was > calculated as: > > (pix->width * y / 4) > > But this does not produce correct offsets for odd values of y (luma > line #). The luma line # must be decimated by two to produce the > correct U/V line #, so the correct formula is: > > (pix->width * (y / 2) / 2) > > Signed-off-by: Steve Longerbeam Thank you this patch is applied to imx-drm/fixes now. regards Philipp