Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp184855rwb; Mon, 26 Sep 2022 10:53:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5NTmCMMO5QOYwmXCgMqOv2d1+CrUuUpbTca+cryRiY9vlr+d/b4mpwAv1HTQiFjhjrW69e X-Received: by 2002:a17:907:7612:b0:771:db66:7b77 with SMTP id jx18-20020a170907761200b00771db667b77mr19294717ejc.228.1664214784325; Mon, 26 Sep 2022 10:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664214784; cv=none; d=google.com; s=arc-20160816; b=kMohH/bfFqkMducYr1R/nD1F+k+pNMAQO1RKK5fHsP+NcgwbEcJE3grYrMVfHQQ17e uINNICdg6NzQefyevV66b3WPtfzA5f9nobAf+Kv1BenGGgLFYLU1zucmGx/87iXUmHJk UPRGhgIv9k9uPPsi6K1zOaFLxSUlimSIbuIyATHKODQLGtCfYqC2kPYDl7Z8Uz/XdV7+ pHE7NQ+R1DSDuicnFJQJHPLu9Gdfa6YKCws0JFADhE6TkHHzs+2/uFqJPm6imj904Gde 3lUAMVEEp4Ov5+ceB028Pthtmn6k50c6MJ8r/OlCM1cgxjaLL/7S0A2N043rnnY9T5Ju PT7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kUzyxoPR+RdTqP03WLln3dlPxOf7F+MJee9Z3PXpxXc=; b=MmlxfX+T28U4eeEDa1XPNXs+7icDePLtDj9vgOHelQIwDxEPsLW68dODyhJ0okUdE8 KIwMwTu/JxDQdvADPLBemrNlr6CDyxXcDEA7NM8kLlWKrm2TYLALVsf4cz3ouNxDq0bO P2tadxjY6P25IXMPa0Y/p4QvIlBG6Ld0sLuYMGm3MsKNg2hU5tw5oYC7jKzWKMVIEWpg wY8rI+NkaDDYL4hciRlzVqjQgPoyExkJjcf9bvCFseE+JAk2vISxl6vFIsGzpe29ObDj xaEU6aEC5RjEb26I3BHTo8GfE7VRdOcvLn7FXzWx/bOhN27TvTSifW8xepS49P/vGpFQ jmtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a170906698300b0078341b2e269si359196ejr.886.2022.09.26.10.52.37; Mon, 26 Sep 2022 10:53:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229701AbiIZQmn (ORCPT + 99 others); Mon, 26 Sep 2022 12:42:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiIZQlc (ORCPT ); Mon, 26 Sep 2022 12:41:32 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62586AE5D for ; Mon, 26 Sep 2022 08:29:39 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BEE7B1CE2 for ; Mon, 26 Sep 2022 08:29:45 -0700 (PDT) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E60CF3F66F for ; Mon, 26 Sep 2022 08:29:38 -0700 (PDT) Date: Mon, 26 Sep 2022 16:29:27 +0100 From: Liviu Dudau To: Brian Starkey Cc: ville.syrjala@linux.intel.com, butterflyhuangxx@gmail.com, tzimmermann@suse.de, jonas@kwiboo.se, airlied@linux.ie, linux-kernel@vger.kernel.org, George Kennedy , dri-devel@lists.freedesktop.org, ben.davis@arm.com, nd@arm.com Subject: Re: [PATCH] drm/fourcc: Fix vsub/hsub for Q410 and Q401 Message-ID: References: <20220913144306.17279-1-brian.starkey@arm.com> <20220926152119.aycl2thery6dtwyo@000377403353> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220926152119.aycl2thery6dtwyo@000377403353> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 26, 2022 at 04:21:19PM +0100, Brian Starkey wrote: > On Tue, Sep 13, 2022 at 04:36:57PM +0100, Liviu Dudau wrote: > > On Tue, Sep 13, 2022 at 03:43:06PM +0100, Brian Starkey wrote: > > > These formats are not subsampled, but that means hsub and vsub should be > > > 1, not 0. > > > > > > Fixes: 94b292b27734 ("drm: drm_fourcc: add NV15, Q410, Q401 YUV formats") > > > Reported-by: George Kennedy > > > Reported-by: butt3rflyh4ck > > > Signed-off-by: Brian Starkey > > > > Reviewed-by: Liviu Dudau > > > > Should this be backported into stable releases? How far back to we go? > > Probably, git says 94b292b27734 is in since 5.10. > > Could someone merge this so it doesn't get lost again? I'll merge this into drm-misc-next-fixes this week and notify stable about it. Best regards, Liviu > > Thanks, > -Brian > > > > > Best regards, > > Liviu > > > > > > > --- > > > drivers/gpu/drm/drm_fourcc.c | 8 ++++---- > > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > > > Sorry, I lost track of this - I thought it got fixed after the previous > > > thread[1]. > > > > > > -Brian > > > > > > [1] https://lore.kernel.org/all/26fdb955-10c8-a5d6-07b6-85a4374e7754@oracle.com/ > > > > > > diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c > > > index 07741b678798..6768b7d18b6f 100644 > > > --- a/drivers/gpu/drm/drm_fourcc.c > > > +++ b/drivers/gpu/drm/drm_fourcc.c > > > @@ -263,12 +263,12 @@ const struct drm_format_info *__drm_format_info(u32 format) > > > .vsub = 2, .is_yuv = true }, > > > { .format = DRM_FORMAT_Q410, .depth = 0, > > > .num_planes = 3, .char_per_block = { 2, 2, 2 }, > > > - .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, .hsub = 0, > > > - .vsub = 0, .is_yuv = true }, > > > + .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, .hsub = 1, > > > + .vsub = 1, .is_yuv = true }, > > > { .format = DRM_FORMAT_Q401, .depth = 0, > > > .num_planes = 3, .char_per_block = { 2, 2, 2 }, > > > - .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, .hsub = 0, > > > - .vsub = 0, .is_yuv = true }, > > > + .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, .hsub = 1, > > > + .vsub = 1, .is_yuv = true }, > > > { .format = DRM_FORMAT_P030, .depth = 0, .num_planes = 2, > > > .char_per_block = { 4, 8, 0 }, .block_w = { 3, 3, 0 }, .block_h = { 1, 1, 0 }, > > > .hsub = 2, .vsub = 2, .is_yuv = true}, > > > -- > > > 2.25.1 > > > > > > > -- > > ==================== > > | I would like to | > > | fix the world, | > > | but they're not | > > | giving me the | > > \ source code! / > > --------------- > > ¯\_(ツ)_/¯ -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯