Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2923488imu; Mon, 17 Dec 2018 10:01:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wk5TLlMRQZUc4ZPdoyQ2E8+lBHwsvETJzSXDAD7GwHlOe4HhW4t1Dic9oLW4jKU8PtIrgm X-Received: by 2002:a63:484c:: with SMTP id x12mr12824258pgk.375.1545069675692; Mon, 17 Dec 2018 10:01:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545069675; cv=none; d=google.com; s=arc-20160816; b=JHx74vvFkeb/EeSyRBp8JFldsEJwiuD9QB6w/sKbEzpaKU/NzsgwlCp9LN1roAhUO7 nHrKFsM3JhpeU9XqfVJrRi93SkHke8WDZFo+NvMLE7Cwd4TZZRA9PYeaDw/8bU7T/YeX qgMyC87V2f/LQeelg4xIBHXKBAJKcgJMb46T0nkmXw9UqP4p0FhNNeRIH+I8ZcJRdQnZ h58gubvq0/LMJJeowyan334h8dRHWJw1nizFFa/Kb8EEp4Y+jAU6wap98CO7Tlqptijr sd5tUemq2AESQT3PQbvMDEzpT1CsFnoV3qq4sm9v/86XUsIbJhV+W+qz56gXuI0Fmq1j vt4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=xGaN04NPmqsGq8i872SO7ZyrQmLoUAGPUcTHKFzkJI0=; b=klIge8aZvqCwKUfOippvXSSXDxiBvYUh/JuVrEQ/gClskVlCr0yv/SBFMiW21WFfsH KWdP+iHx8iqxTBCFKILK6AKI0RGohNbelpymqXz1BBIbsbkE7nFTqD/pbO/rqc9Im6qM 8RBqXlwpFVjiyVHsgzAY/6bH+2+vKD9hVlMdTadfaSSIrr6fJOHDJ6i8uXx0fP/QgGmP AdsQ0XVBkFH9oHXEsjbUUwrZTDkSiG7T+ZvklZ/T8gijFVd2G2kzZG63ETFMxhye7zh8 GV/GlfoCI18Q1uzEn2U5i0Hj3xHNY7klbtcfdAT820yttB+UKL2I4YEkjMoNDIb757wh trxg== 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 q13si11403644pgj.86.2018.12.17.10.00.59; Mon, 17 Dec 2018 10:01:15 -0800 (PST) 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 S1732597AbeLQOEg (ORCPT + 99 others); Mon, 17 Dec 2018 09:04:36 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56864 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727068AbeLQOEf (ORCPT ); Mon, 17 Dec 2018 09:04:35 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 19F8EA78; Mon, 17 Dec 2018 06:04:35 -0800 (PST) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BB8FF3F59C; Mon, 17 Dec 2018 06:04:34 -0800 (PST) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id 1E0856802BC; Mon, 17 Dec 2018 14:04:33 +0000 (GMT) Date: Mon, 17 Dec 2018 14:04:33 +0000 From: Liviu Dudau To: Ayan Halder Cc: "linux-doc@vger.kernel.org" , "arnd@arndb.de" , "corbet@lwn.net" , "airlied@linux.ie" , "gregkh@linuxfoundation.org" , "nicolas.ferre@microchip.com" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "davem@davemloft.net" , "maxime.ripard@bootlin.com" , "malidp@foss.arm.com" , "mchehab+samsung@kernel.org" , "akpm@linux-foundation.org" , nd , "sean@poorly.run" Subject: Re: [RFC AFBC 06/12] drm/arm/malidp:- Added support for new YUV formats for DP500, DP550 and DP650 Message-ID: <20181217140433.GA988@e110455-lin.cambridge.arm.com> References: <1543836703-8491-1-git-send-email-ayan.halder@arm.com> <1543836703-8491-7-git-send-email-ayan.halder@arm.com> <20181204165746.GN988@e110455-lin.cambridge.arm.com> <20181214141222.GC19564@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181214141222.GC19564@arm.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2018 at 02:12:23PM +0000, Ayan Halder wrote: > On Tue, Dec 04, 2018 at 04:57:46PM +0000, Liviu Dudau wrote: > > Hi Liviu, > > On Mon, Dec 03, 2018 at 11:32:00AM +0000, Ayan Halder wrote: > > > We have added some new formats to be supported on DP500/DP550/DP650. > > > > Make a bit more descriptive commit message here, please! > > > I will keep the following commit message :- > > ""We have added support for some AFBC only pixel formats like :- > DRM_FORMAT_YUV420_8BIT (single plane YUV 420 8 bit format) > DRM_FORMAT_VUY888 (single plane YUV 444 8 bit format) > DRM_FORMAT_VUY101010 (single plane YUV 444 10 bit format) > DRM_FORMAT_YUV420_10BIT (single plane YUV 420 10 bit format) > > Generally, these formats are supported by our hardware using the same hw-ids as > the equivalent multi plane pixel formats. > > Also we have added support for XYUV 444 8 and 10 bit formats."" > > Let me know if this looks fine. Yes, LGTM. Best regards, Liviu > > Thanks, > Ayan Kumar halder > > > > > > Signed-off-by: Ayan Kumar Halder > > > > > > Depends on :- https://patchwork.kernel.org/patch/10460063/ > > > > Reviewed-by: Liviu Dudau > > > > Best regards, > > Liviu > > > > > --- > > > drivers/gpu/drm/arm/malidp_hw.c | 22 +++++++++++++++++++++- > > > 1 file changed, 21 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/gpu/drm/arm/malidp_hw.c b/drivers/gpu/drm/arm/malidp_hw.c > > > index 55d379b..25ac5890 100644 > > > --- a/drivers/gpu/drm/arm/malidp_hw.c > > > +++ b/drivers/gpu/drm/arm/malidp_hw.c > > > @@ -49,6 +49,12 @@ static const struct malidp_format_id malidp500_de_formats[] = { > > > { DRM_FORMAT_YUYV, DE_VIDEO1, 13 }, > > > { DRM_FORMAT_NV12, DE_VIDEO1 | SE_MEMWRITE, 14 }, > > > { DRM_FORMAT_YUV420, DE_VIDEO1, 15 }, > > > + { DRM_FORMAT_XYUV8888, DE_VIDEO1, 16 }, > > > + /* These are supported with AFBC only */ > > > + { DRM_FORMAT_YUV420_8BIT, DE_VIDEO1, 14 }, > > > + { DRM_FORMAT_VUY888, DE_VIDEO1, 16 }, > > > + { DRM_FORMAT_VUY101010, DE_VIDEO1, 17 }, > > > + { DRM_FORMAT_YUV420_10BIT, DE_VIDEO1, 18 } > > > }; > > > > > > #define MALIDP_ID(__group, __format) \ > > > @@ -74,11 +80,25 @@ static const struct malidp_format_id malidp500_de_formats[] = { > > > { DRM_FORMAT_ABGR1555, DE_VIDEO1 | DE_GRAPHICS1 | DE_VIDEO2, MALIDP_ID(4, 1) }, \ > > > { DRM_FORMAT_RGB565, DE_VIDEO1 | DE_GRAPHICS1 | DE_VIDEO2, MALIDP_ID(4, 2) }, \ > > > { DRM_FORMAT_BGR565, DE_VIDEO1 | DE_GRAPHICS1 | DE_VIDEO2, MALIDP_ID(4, 3) }, \ > > > + /* This is only supported with linear modifier */ \ > > > + { DRM_FORMAT_XYUV8888, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 0) },\ > > > + /* This is only supported with AFBC modifier */ \ > > > + { DRM_FORMAT_VUY888, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 0) }, \ > > > { DRM_FORMAT_YUYV, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 2) }, \ > > > + /* This is only supported with linear modifier */ \ > > > { DRM_FORMAT_UYVY, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 3) }, \ > > > { DRM_FORMAT_NV12, DE_VIDEO1 | DE_VIDEO2 | SE_MEMWRITE, MALIDP_ID(5, 6) }, \ > > > + /* This is only supported with AFBC modifier */ \ > > > + { DRM_FORMAT_YUV420_8BIT, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 6) }, \ > > > { DRM_FORMAT_YUV420, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 7) }, \ > > > - { DRM_FORMAT_X0L2, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 6)} > > > + /* This is only supported with linear modifier */ \ > > > + { DRM_FORMAT_XVYU2101010, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 0)}, \ > > > + /* This is only supported with AFBC modifier */ \ > > > + { DRM_FORMAT_VUY101010, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 0)}, \ > > > + { DRM_FORMAT_X0L2, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 6)}, \ > > > + /* This is only supported with AFBC modifier */ \ > > > + { DRM_FORMAT_YUV420_10BIT, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 7)}, \ > > > + { DRM_FORMAT_P010, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 7)} > > > > > > static const struct malidp_format_id malidp550_de_formats[] = { > > > MALIDP_COMMON_FORMATS, > > > -- > > > 2.7.4 > > > > > > > -- > > ==================== > > | I would like to | > > | fix the world, | > > | but they're not | > > | giving me the | > > \ source code! / > > --------------- > > ??\_(???)_/?? > > _______________________________________________ > > dri-devel mailing list > > dri-devel@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯