Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp586848imu; Fri, 9 Nov 2018 02:47:38 -0800 (PST) X-Google-Smtp-Source: AJdET5dAJvToYqmyG7jHfP4MMWOrYnKgjRM2KgTf1B199GIKxoVQ6zRq9JrDKYGmCQ5OjkctBzHS X-Received: by 2002:a63:f74f:: with SMTP id f15mr7042775pgk.190.1541760458761; Fri, 09 Nov 2018 02:47:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541760458; cv=none; d=google.com; s=arc-20160816; b=hJj4NUGH4Uu4yO9GcsqtTSVtz1Y7WbWY6vmxSVxgb2YXXJP9K/nboXcnC4rq7rQIkx ozotK935JlCvzLe9u7Igx4NcpFC17qy+RTwsuaOUiZe0MMOI0AjP43m1yi26ZrzxWXnV OmSXSLhGg7DQBe9MOXcCLWZBPXPwMjkzUrKOLZKZeVfm7XcTsNen+MOnneEFZmhuMsik 00JsLcvN2BFryktnMCFpWj9q42/UhuAlE/fL3euPHxNhO9AO7gsJ8g+UjAYjZp5KR6X6 xlaQWjSXcuzuGCQzBnlS56LMf2ECEmlXcazbgmRIDgFS0DgQ370lw6/OnA66ihZcgOPr xnIA== 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=OdPqhvwHRlO/qe9EFb5aiZmLSYZ2Pe7mVm8WI1theuc=; b=Ji4hb9X4doZwFOPfnjh+DdnWeeeewsPnxY7V3h/TLhvd+H33TnjZVL1ol4bv9jtLGK t9KnfjQTLWCvVxZBlKTeuZ9Gf2jNDRlDXICPmxPtI1o042WLnNvilE4FN+RyvZLSVspt MrLfMwFuhe5JkUAKxZJeMtqlUiIqlsSGkbJ+DMrDSSwjuSynlTEsEtUpSmrA4YCDrDsJ t0Cw889sln2G0huoBdTSp6b0MGRhENhfDLODmGEUplZT+wNSIs6mLys+ws7zbzoxjdb7 rJiHpShqFp+XSzmi+med3hPJrYzhc0lJBdWwnq/eeyMhm/ZGQe9Z+gR/AaE69i/SYYxF z2kA== 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 a5-v6si5788462pgw.352.2018.11.09.02.47.22; Fri, 09 Nov 2018 02:47:38 -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 S1728167AbeKIU1A (ORCPT + 99 others); Fri, 9 Nov 2018 15:27:00 -0500 Received: from foss.arm.com ([217.140.101.70]:57058 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727532AbeKIU1A (ORCPT ); Fri, 9 Nov 2018 15:27:00 -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 E1509A78; Fri, 9 Nov 2018 02:46:57 -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 B22E63F718; Fri, 9 Nov 2018 02:46:57 -0800 (PST) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id 1748968012E; Fri, 9 Nov 2018 10:46:56 +0000 (GMT) Date: Fri, 9 Nov 2018 10:46:56 +0000 From: Liviu Dudau To: Ayan Halder Cc: Brian Starkey , "malidp@foss.arm.com" , "airlied@linux.ie" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , nd Subject: Re: [PATCH] drm/arm/malidp: Consider rotation memory requirement in case of AFBC framebuffer Message-ID: <20181109104655.GC3512@e110455-lin.cambridge.arm.com> References: <1541759832-19211-1-git-send-email-ayan.halder@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1541759832-19211-1-git-send-email-ayan.halder@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 09, 2018 at 10:37:19AM +0000, Ayan Halder wrote: > Rotation memory for layers is shared with AFBC decoder block. Thus one needs to > calculate rotation memory requirement in case of AFBC framebuffer. This is > used later to verify if it can be sufficed by the hardware rotation memory > availibility. > > Fixes: 66da13a ("drm/arm/malidp: Validate rotations for compressed/uncompressed framebuffers for each layer") > Signed-off-by: Ayan Kumar halder Acked-by: Liviu Dudau > --- > drivers/gpu/drm/arm/malidp_planes.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c > index c9a6d3e..3f4dc64 100644 > --- a/drivers/gpu/drm/arm/malidp_planes.c > +++ b/drivers/gpu/drm/arm/malidp_planes.c > @@ -470,7 +470,7 @@ static int malidp_de_plane_check(struct drm_plane *plane, > } > > ms->rotmem_size = 0; > - if (state->rotation & MALIDP_ROTATED_MASK) { > + if ((state->rotation & MALIDP_ROTATED_MASK) || fb->modifier) { > int val; > > val = mp->hwdev->hw->rotmem_required(mp->hwdev, state->crtc_w, > -- > 2.7.4 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯