From patchwork Fri May 18 08:24:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 136252 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp939386lji; Fri, 18 May 2018 01:24:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrbSWyAweOxc/I8k1FRe5YfgHbRhIUeG3NHJjp+XZU7777GMV+FdQVLitt1jec5taDT3WwE X-Received: by 2002:a17:902:6b44:: with SMTP id g4-v6mr8523894plt.390.1526631884729; Fri, 18 May 2018 01:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526631884; cv=none; d=google.com; s=arc-20160816; b=TuZPnYU4hHeWY7Qldu8ErAnYveQmeScW6O4Gi+5MhmxF/j+2z0hmfxDaDL2vpzG+x9 X8oCAaiOK7lmcAk0hZJNPa/oWicY5FWK6hV01MF1rXimenYPafcewiCeHgeHo0io8lr7 utlyj3+zqy5TYV8tvnY+Fo3q3gUSy0GJBTxiTgk3CdOIMqfB9zxzI/nndQhec/IihHze LQUOvf+2vlmKx6MTqjNPEc1ccctMofAk6MgHWHZAb/hRR5a/n4g6wUllT7g7pXdsBfat 4KnVXfJs8sJO/y/lRLZ59otRt3J/MragIyo3wx/rpBMh+GW+S7NVPq0EpFgS0fo19IEB TBpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=vsCKSgclzbgE+n0L3EFOPjG/7L1WrkyMCDpS0yJeINo=; b=JWMxyD0+bKZcuSNdjhYkCH/bIT1LuIfzYIgbZuYZohK/XtR42kfCfCoy9Z9XM5TfXK sZpIwAEmBR+m5tSfjHK6sNwTGuMizlSyPqwaTAuOo7q7iRVQpTuXXxoohOGmymbGvOYW NaFjAQpnGIoifRoXNnSwRnz8VA02FCn55/4GkWF6qbsYi60snSaxRZ/nlADaJPMS0ieZ blsQMtielZkB6wVsZMVntKSAIg7c2f06RiPrdJTYGFhP9Z3V5ON+EPuZKwgf/Stpmttl e31zaNRmvYisjBQkz3LrkSUs3DIOxslIVZxfNpnwnCrG6f/v3+2WaiTRW0HIlbB1VQap iwlA== 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 b3-v6si7075066pld.215.2018.05.18.01.24.44; Fri, 18 May 2018 01:24:44 -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 S1753888AbeERIYl (ORCPT + 29 others); Fri, 18 May 2018 04:24:41 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:31370 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753843AbeERIYi (ORCPT ); Fri, 18 May 2018 04:24:38 -0400 Received: from e110455-lin.cambridge.arm.com (e110455-lin.cambridge.arm.com [10.2.131.15]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id w4I8ONjV016404; Fri, 18 May 2018 09:24:24 +0100 From: Liviu Dudau To: Mali DP Maintainers Cc: Gustavo Padovan , Maarten Lankhorst , Sean Paul , DRI-devel , LKML , David Airlie , Brian Starkey , Alexandru-Cosmin Gheorghe , Eric Anholt , Boris Brezillon , Maxime Ripard , Daniel Stone , Liviu Dudau Subject: [PATCH v7 4/5] drm/mali-dp: Add RGB writeback formats for DP500. Date: Fri, 18 May 2018 09:24:22 +0100 Message-Id: <20180518082423.15500-5-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518082423.15500-1-Liviu.Dudau@arm.com> References: <20180518082423.15500-1-Liviu.Dudau@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Annotate the pixel format matrix for DP500 with the memory-write flag for formats that are supported by the SE memwrite engine. Signed-off-by: Liviu Dudau --- drivers/gpu/drm/arm/malidp_hw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.17.0 diff --git a/drivers/gpu/drm/arm/malidp_hw.c b/drivers/gpu/drm/arm/malidp_hw.c index d9a7f19c9f219..ea8b23aefe961 100644 --- a/drivers/gpu/drm/arm/malidp_hw.c +++ b/drivers/gpu/drm/arm/malidp_hw.c @@ -31,12 +31,12 @@ enum { static const struct malidp_format_id malidp500_de_formats[] = { /* fourcc, layers supporting the format, internal id */ - { DRM_FORMAT_ARGB2101010, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 0 }, - { DRM_FORMAT_ABGR2101010, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 1 }, + { DRM_FORMAT_ARGB2101010, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2 | SE_MEMWRITE, 0 }, + { DRM_FORMAT_ABGR2101010, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2 | SE_MEMWRITE, 1 }, { DRM_FORMAT_ARGB8888, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 2 }, { DRM_FORMAT_ABGR8888, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 3 }, - { DRM_FORMAT_XRGB8888, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 4 }, - { DRM_FORMAT_XBGR8888, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 5 }, + { DRM_FORMAT_XRGB8888, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2 | SE_MEMWRITE, 4 }, + { DRM_FORMAT_XBGR8888, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2 | SE_MEMWRITE, 5 }, { DRM_FORMAT_RGB888, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 6 }, { DRM_FORMAT_BGR888, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 7 }, { DRM_FORMAT_RGBA5551, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 8 }, @@ -45,7 +45,7 @@ static const struct malidp_format_id malidp500_de_formats[] = { { DRM_FORMAT_BGR565, DE_VIDEO1 | DE_GRAPHICS1 | DE_GRAPHICS2, 11 }, { DRM_FORMAT_UYVY, DE_VIDEO1, 12 }, { DRM_FORMAT_YUYV, DE_VIDEO1, 13 }, - { DRM_FORMAT_NV12, DE_VIDEO1, 14 }, + { DRM_FORMAT_NV12, DE_VIDEO1 | SE_MEMWRITE, 14 }, { DRM_FORMAT_YUV420, DE_VIDEO1, 15 }, };