Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6896962rwn; Tue, 13 Sep 2022 10:28:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ZnoojqATfr8VhN7eNXMETk70+sNCbWEMgdyhzUsSrdNlgtN/y+gpY8ihKWWYRgxtnLdCo X-Received: by 2002:a05:6402:f07:b0:450:bf95:59e9 with SMTP id i7-20020a0564020f0700b00450bf9559e9mr22222278eda.46.1663090122091; Tue, 13 Sep 2022 10:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663090122; cv=none; d=google.com; s=arc-20160816; b=bW7lYyUJrtxNGdI6lyland+rMkttCY/Lbyd/01IsGy1EoasKaHuNNXFF73qzb+7FbA 77uA9UzJYJN/6GpMyPpw8NN+kwo8nYS5Bcg/QcvyKrwDhTanOSt4guQqX04BKc/X2RZ4 GOztJ3w50nRuBkTO9rihfu/gWbPGPeioxTaDgHT8HViLAzkcUJN+5vekWtbxMvBTAFN6 qGNaBkTHBEZYRCB+GQunavMtMFt9L1a7wbyRnmnBK2/g/INDTQdEOwlIxR/ri3+Gjqtq I3i6PWRU3hla5ULBXjv0RA2dTFwhdsPPgiZsMAx5tbqjBFXuRdUtHKqIWv+1SQP914+b 73eQ== 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=HhCgEjJmhhf2GwGJfCSUnczw1VuE0L5LQEdPHWlYXgs=; b=bh06Fx8RuhITO/0vSmgDvOYg0lF8UD9vG252CqxyEV8sGcK1k762ocpDoWtQjy2TMd R4a4pJxAQx35fsAm3vVKw/97zX9JU21eHiK+APbe9HXXBu0MFy/+lUbR1rCIrr2xjEWU Knv+NpGfCjwYHB64cKikdTCH3LLTy5TDuk44a8kK2/MHNnaa1qbY8a4h29PNQa6ZZJAn VHdXnUg4gWm6BJP02sIqWaNxMuqiCSjgylZROLtAmhJG1XZmH1v1GuU9X7lGzpvrdk1c ytC3k2nxF5J6sl7IjoQ1DwyI4M4S1c5goJCO7l49sn1JhTLiFQSL2kvEq1GTNilkaenc 8Fkw== 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 hc39-20020a17090716a700b0077b08d909fbsi12898611ejc.53.2022.09.13.10.28.15; Tue, 13 Sep 2022 10:28:42 -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 S230226AbiIMQv7 (ORCPT + 99 others); Tue, 13 Sep 2022 12:51:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbiIMQvi (ORCPT ); Tue, 13 Sep 2022 12:51:38 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9971481695 for ; Tue, 13 Sep 2022 08:45:12 -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 280ED1A2D for ; Tue, 13 Sep 2022 08:37:11 -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 8455E3F73B for ; Tue, 13 Sep 2022 08:37:04 -0700 (PDT) Date: Tue, 13 Sep 2022 16:36:57 +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 Subject: Re: [PATCH] drm/fourcc: Fix vsub/hsub for Q410 and Q401 Message-ID: References: <20220913144306.17279-1-brian.starkey@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220913144306.17279-1-brian.starkey@arm.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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? 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! / --------------- ¯\_(ツ)_/¯