Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1511885img; Tue, 19 Mar 2019 09:09:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwOEM/CzHCUCGXMZWW+KGOCMWPXVrP5jTFwjpXmZCSA/MGs5pAGzv6bl4m/vmyNMbXM0B+ X-Received: by 2002:a62:b61a:: with SMTP id j26mr2650258pff.151.1553011789837; Tue, 19 Mar 2019 09:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553011789; cv=none; d=google.com; s=arc-20160816; b=QrDAHQD17Q9cONS7JDptNJz3Z6ubc9D9M6SEHxIyD5p0Wy/LMCBd6N17N9nW+6zZLT ISxK4fpy+raWnRPJ4ttraFSC6jVRNJ8qb6ItIhE5BYaORlAnWvpNNxqX5XvD4GwN218c +BPUrsGL8hKByjUT8M5BqqZw+IFFSOS0jX45tg4M8Ryqe+5JtkwnNhpNUyQZO22DHNSS p4Su7lgroUO0sUsV1SvTyEPPPtDEhRzn/ixbFLvlg+r3UlBUmIwtSh3pJVA5vyKEmTiu L3tYXZ3kivTa5vrsvpc00AczVxhbc9vtM+j9Gp5e7ec6acTqyIrRrl3l+Qipfg83HBH0 9GDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Us0C2JeK6vyJd0nyK7+N9/NCj2Y6Oss3ZnMcasEj3nY=; b=x6ykEZrAqviSC4+ndmiWMaTJcagyT7IXBgvSePqoZmc34ZIf5pO39zwkt6qzhSJk4e K/xlQWZxABxUoLl63Q7gsJ7fCxpaiQzO/ja2fbHWaJKmApyIvDpCYj5CxWB+AkQESRIM VcYfWHpQPi2J5+EbgDQ0LeOr8fkuWurADmgf9PV7/CioJZfTdIAHkig9iA+CW+Taegcw 3ipocZ72/URtxbVR+EOOfr6yEJj4NqHEgN2bSE/z87LAGNminW/R71Sr754l5YNWueoy DL6/G5N90ebk0ay/VTRd+sBbH2+XeCqE3/LASUg0zH9Y9KmclS7V7uoc8uQKHTojQ98+ e2NQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s78si12229068pfa.161.2019.03.19.09.09.34; Tue, 19 Mar 2019 09:09:49 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727087AbfCSQI5 (ORCPT + 99 others); Tue, 19 Mar 2019 12:08:57 -0400 Received: from mga17.intel.com ([192.55.52.151]:18338 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbfCSQI5 (ORCPT ); Tue, 19 Mar 2019 12:08:57 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 09:08:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,498,1544515200"; d="scan'208";a="330023927" Received: from tyagiami-mobl.ger.corp.intel.com (HELO [10.252.56.226]) ([10.252.56.226]) by fmsmga005.fm.intel.com with ESMTP; 19 Mar 2019 09:08:52 -0700 Subject: Re: [PATCH v4 01/10] drm/fourcc: Add AFBC yuv fourccs for Mali To: Ayan Halder Cc: Brian Starkey , Liviu Dudau , "malidp@foss.arm.com" , "maxime.ripard@bootlin.com" , "sean@poorly.run" , "airlied@linux.ie" , "daniel@ffwll.ch" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "alyssa@rosenzweig.io" , nd , Daniel Vetter , Dave Airlie , Swati Sharma , Juha-Pekka Heikkila , Vidya Srinivas References: <1552414556-5756-1-git-send-email-ayan.halder@arm.com> <20190318154004.2llnsarwx77kyqbf@DESKTOP-E1NTVVP.localdomain> <20190318232746.GA32276@arm.com> From: Maarten Lankhorst Message-ID: <1059793f-9a8c-b81b-cb61-72a50426d50f@linux.intel.com> Date: Tue, 19 Mar 2019 17:08:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190318232746.GA32276@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, Op 19-03-2019 om 00:27 schreef Ayan Halder: > On Mon, Mar 18, 2019 at 07:12:24PM +0100, Maarten Lankhorst wrote: >> Op 18-03-2019 om 16:40 schreef Brian Starkey: >>> Hi, >>> >>> On Mon, Mar 18, 2019 at 11:17:55AM +0100, Maarten Lankhorst wrote: >>> >>> >>> >>>> Hey.. >>>> >>>> There's a conflict with this patch and the merge of topic/hdr-formats, resulting in double definitions for Y210, Y410 and P010. >>>> >>>> Worse still is that one has set has_alpha to true for Y41x and other to false. >>>> >>>> ~Maarten >>>> >>> Oh that's sad :-( I think this fell through the cracks on our side >>> when someone left our team. Also turns out I'm not subscribed to >>> igt-dev. >>> >>> I see you commented the same on one of the previous patches, and that >>> there was some discussion of this on the test patches too. >>> >>> I have been referring to Microsoft's page[1] as "the" source for these >>> formats, which does indeed call out Y410 as having 2 bits of alpha. >>> Our GPU expects alpha. >> Ah. Yeah there has been discussion on whether there was supposed to be alpha or not, but the original discussion on HDR formats has been completely ignored by arm. >> >> The patch had originally a few arm devs on cc and was sent to dri-devel with linux-media cc'd. Was sad to see it completely ignored so after having been sent twice I pushed it. > Apologies, I see that I was cc-ed in the mail 'drm: Add Y2xx and Y4xx > (xx:10/12/16) format definitions and fourcc' sent by > swati2.sharma@intel.com. It got lost in my pile of unread mails. :( > > About this patch, I had tagged you in irc channel > (https://people.freedesktop.org/~cbrill/dri-log/?channel=dri-devel&highlight_names=&date=2019-03-11&show_html=true) > for reviewing this seies. Did not hear back from you then ? Looks like we both unfortunately not looked at each others series then, or at least I missed the HDR formats part. >>> Was there a specific reason for opting to change the test instead of >>> the definition? Any way to get this changed now? >>> >>> It doesn't seem that sensible for the kernel to call something Y410 >>> which doesn't match an "existing" definition by the same name. If >>> alpha needs to be ignored on scanout, the alpha blend mode property >>> can be used (more archaeology - I see that was still giving CRC >>> failures, but that might be a "known issue" for all YUV on your HW?) >> Were a few bugs, but should be fixed now. :) >> >> Well only that we didn't have hw supporting alpha, and didn't hear back from others so we went without alpha. > In light of the suggestions made by brian.starkey@arm.com, I think > changing the format from Y410 to X410 (in your case) might make sense > as the alpha bits are absent. > If this suggestion looks reasonable to you, I can volunteer myself to make > this change in topic/hdr-formats. I sent a patch to fix the conflicts. There's already XVYU2101010 in that series, which is Y410 without alpha. I've extended it and used it to convert i915. It's unfortunate those conflicts happen, but fortunately it didn't spread to drm-next or linux-next. Link: https://patchwork.freedesktop.org/patch/292977/?series=58182&rev=1 Tested it, basic tests seems to work for i915. ~Maarten