Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8536018imu; Tue, 4 Dec 2018 09:51:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/WFabMxOUcwEQV9tnI8rrbGn4byD0A0Gx57XazQ/xDY09xJxjHGcsBZJ+2BlGMTW7HMX51A X-Received: by 2002:a65:534b:: with SMTP id w11mr17726429pgr.125.1543945916918; Tue, 04 Dec 2018 09:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543945916; cv=none; d=google.com; s=arc-20160816; b=XbKmkwCYnVkP5c0eHxxIUHOVTwY6MQOwz66D7yXeSBB17VEwwDFI9eJjoURmbN+CR3 EIlbcINAi3VE4OcutMZ7kL82PFBRrJo3D/xWSI/SQedUs12zUChF7LiXoUUc6LqESGnL puTV7YPZDtffTFJ9LY9LGZFG/zkZAqAJ+bbH14JQnpKICsiGMHB9NB/XEXWCEoQjBvZ9 311bBWi6+rEzOhVaDUs6sHEof+MgtqMqQyvI5J/cg0Gsntdc4w/PfYhEUWaYaj/sxPsM oSymYvKEMgcB1q7WfFyxS8820gRGijDNdktj19k954XrAoMZ36ZO8fXLCERDWpF660r/ sNhQ== 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=6ybd+QIWNSu4o8aKD83SHPpdFQvkH7rSOb1lQtToPpk=; b=FRIp+uL0ADrdmxbIGO8cznCO5DNbQZrsNKdxQL0houdPWTpw5DQTRcP8Vif0+q4uas sDyZH929NOC7rS0D4rIbpE2bmm4iTRHEciTI6AjJHHjiezrxopyG+d2KnM4f5yaMvC/y DNCpdRJJJ3tq76DcDssfYOeCRR9B15qHltEfVyFSBKHf5100tCdMPS3NnNR9D1bP5qJA p4PkgNTmA4doBWafkWuKGETYsp5/ZMecHfHA27mTSmUoEtEWTVRtCEWFpCc8mjyMf0jS 7re6DIL2OaPSWlGASUEHgdwohrk2tQpWs4XAAorpU5tiXYkVqc1m8K+PIrTrJKLKB6XY 6LOQ== 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 d39si13296682pla.278.2018.12.04.09.51.41; Tue, 04 Dec 2018 09:51:56 -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 S1727337AbeLDRvB (ORCPT + 99 others); Tue, 4 Dec 2018 12:51:01 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38090 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbeLDRvB (ORCPT ); Tue, 4 Dec 2018 12:51:01 -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 B554915BE; Tue, 4 Dec 2018 09:51:00 -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 85ED73F59C; Tue, 4 Dec 2018 09:51:00 -0800 (PST) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id E52916801C3; Tue, 4 Dec 2018 17:50:58 +0000 (GMT) Date: Tue, 4 Dec 2018 17:50:58 +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" , "maxime.ripard@bootlin.com" , "sean@poorly.run" , "maarten.lankhorst@linux.intel.com" , "corbet@lwn.net" , "mchehab+samsung@kernel.org" , "gregkh@linuxfoundation.org" , "davem@davemloft.net" , "akpm@linux-foundation.org" , "nicolas.ferre@microchip.com" , "arnd@arndb.de" , "linux-doc@vger.kernel.org" , nd Subject: Re: [RFC AFBC 09/12] drm/arm/malidp:- Writeback framebuffer does not support any modifiers Message-ID: <20181204175058.GQ988@e110455-lin.cambridge.arm.com> References: <1543836703-8491-1-git-send-email-ayan.halder@arm.com> <1543836703-8491-10-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: <1543836703-8491-10-git-send-email-ayan.halder@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 Mon, Dec 03, 2018 at 11:32:03AM +0000, Ayan Halder wrote: > In malidp, the writeback pipeline does not support writing crtc output > to a framebuffer with modifiers ie the memory writeback content is > devoid of any compression or tiling, etc. > So we have added a commit check in memory writeback encoder helper function > to validate if the framebuffer has any modifier and if so, return EINVAL. > > Signed-off-by: Ayan Kumar halder Acked-by: Liviu Dudau > --- > drivers/gpu/drm/arm/malidp_mw.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/arm/malidp_mw.c b/drivers/gpu/drm/arm/malidp_mw.c > index 0484744..90c964a 100644 > --- a/drivers/gpu/drm/arm/malidp_mw.c > +++ b/drivers/gpu/drm/arm/malidp_mw.c > @@ -141,6 +141,11 @@ malidp_mw_encoder_atomic_check(struct drm_encoder *encoder, > return -EINVAL; > } > > + if (fb->modifier) { > + DRM_DEBUG_KMS("Writeback framebuffer does not support modifiers\n"); > + return -EINVAL; > + } > + > mw_state->format = > malidp_hw_get_format_id(&malidp->dev->hw->map, SE_MEMWRITE, > fb->format->format, !!fb->modifier); > -- > 2.7.4 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯