Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17607482ybl; Thu, 2 Jan 2020 08:33:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyvENTX6/RjVQ7brOMnmN6XCvXI8sO+4xQBlX76WRN7maX3WqXOw+piQPRy7VlNtROgzz0k X-Received: by 2002:a05:6830:1e67:: with SMTP id m7mr89949929otr.262.1577982817440; Thu, 02 Jan 2020 08:33:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577982817; cv=none; d=google.com; s=arc-20160816; b=zIOD/WX9ghNI/LaNY/YXX4Vz6EhwKoiuvuLP4DTapY+o0fMmRxABUspsltmTZDjR9d 964ADMTKG++RGS2JG9ECNGGZFQ/cVxErQdOB3xDysSRQYg2b1IveiIzuteOAbrbYZjoY RhRZAmmha0uUQ5nnOaDZ6Mr7YCaJZEYSTGT++09fjUTQe6CcIlXX7xLI0SJnYppPpWKA BdrSAux4vPQaCbxX/bltwRw6liNgTBmRBIak/5ODwR5FZlD72hgYrlHqAKspVY8v9RSS 8zx7UqKKLuqL3Eeg9JQmvNjuL5qET5W0JWBqMJqoSGJBqG+1yvrO5LqskMB41+zSae0L 9dQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2Tko8occFlhTAmLh+pmq5km+IinxZOdXNCIFDK4BrgI=; b=goglA5cskS+3vE9rr1B8vPen/g6avgExrjneTYhwMHn4nhJVhBMl1u8awh/qywljlo RUiRaZm15QqX9KW2T0Jz2xWq4EUSVEE4onx4pUxV6CqWSHfwSqFmvTzLIK+v59wwiSnc KBmaoqHdaqjzua8eChSdp/5l4pq0rPApVuxSXro88Vo+/krM/3chpUkyduOEP8Qefgm0 DW0nxNGIyf6STo30s8i6LwgdyOqwsI9nRATPkXhlHp/65ITwFfODRR0PCOE9BBVHhVcV ywzRa6SuFHBzZXna1XNxMTY5uEeeJegr5XUqZQfHr5dQ0dFHX6K1P9IQrf48pBhFJceR 6/7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=Yxb2DtgB; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m85si26631123oig.158.2020.01.02.08.33.19; Thu, 02 Jan 2020 08:33:37 -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; dkim=pass header.i=@globallogic.com header.s=google header.b=Yxb2DtgB; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728819AbgABQcV (ORCPT + 99 others); Thu, 2 Jan 2020 11:32:21 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37703 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728795AbgABQcV (ORCPT ); Thu, 2 Jan 2020 11:32:21 -0500 Received: by mail-ed1-f65.google.com with SMTP id cy15so39554885edb.4 for ; Thu, 02 Jan 2020 08:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=globallogic.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=2Tko8occFlhTAmLh+pmq5km+IinxZOdXNCIFDK4BrgI=; b=Yxb2DtgByNnm2fvJC5grlaYIWQcduaEV1xN7bE+1BWv/5kIsEJGJzn9NPu60o6gEGk glSFoj0DxpmRKQ3KN+2OW667MMbrcOpFVILpvUMgzz25kWv5AmCq76nosJLB38Qy5t9/ BaeF0w5f11a83pMJHTlEO8TUuLJSgrOKMAb2L6HMcgquZoDgGnW8O9Q2vMtV8OJrHB/X cRHSKwZKg1BAaOmUbpunrXdAFZOL17dgxP4hYHB95aM1oBz9s9BVJFfNU4Zjjy5JDmJ5 n5917hecOxtC2Ntp4XqcebffaigCfGTiha5Qu2ErrHP+ZeTx+RWp8D4YFOJu7BpcnsGg ILFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=2Tko8occFlhTAmLh+pmq5km+IinxZOdXNCIFDK4BrgI=; b=tGtu31ZUlIjmDtsntMvH1qZmCnpPhe4KfcuUHjrTyxTQLBr4q5jdReLUTq/3evxArr DkVJrmLfeflrnRGEnEZwpth7o2tN1YOTC1my6RB0xzyXJ5P61ki+NamEkBRY+J7dGLO4 1ZEw/IEffj5MF/P2gBTOX1/JSrC+4vAiIiiekbxpNyoYdwPqrvyTiVf9SZooinJPaz1J 6L9VKCKFXqJpC9AEksZLG6VIv8a3Iyu62T9mekCJJ7FvJH+Sy09gDGKPn3S1QS4Tw0Vy Qd4dG/dqPc9IgxsJHfYYBSyoRZUEZnDtxWfMrGYAPg147ZGp1x+v5Y8713rgCmDJaVvZ 5XDw== X-Gm-Message-State: APjAAAVrbug6LsF5fnf5SKQ0ruNbZXamkhr6sMvZohfAmY4tbIO8JP2H FVYuVpdVucEZe06+rjCuMfoLN1oz2tIzC2STmZDZXsBm X-Received: by 2002:a50:9f65:: with SMTP id b92mr87854876edf.275.1577982739378; Thu, 02 Jan 2020 08:32:19 -0800 (PST) MIME-Version: 1.0 References: <20200101204750.50541-1-roman.stratiienko@globallogic.com> <20200101204750.50541-2-roman.stratiienko@globallogic.com> <20200102100832.c5fc4imjdmr7otam@gilmour.lan> In-Reply-To: <20200102100832.c5fc4imjdmr7otam@gilmour.lan> From: Roman Stratiienko Date: Thu, 2 Jan 2020 18:32:07 +0200 Message-ID: Subject: Re: [PATCH v3 2/2] drm/sun4i: Use CRTC size instead of PRIMARY plane size as mixer frame. To: Maxime Ripard Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Jernej_=C5=A0krabec?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =D1=87=D1=82, 2 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3., 12:08 Maxime Ripard : > > Hi, > > On Wed, Jan 01, 2020 at 10:47:50PM +0200, roman.stratiienko@globallogic.c= om wrote: > > From: Roman Stratiienko > > > > According to DRM documentation the only difference between PRIMARY > > and OVERLAY plane is that each CRTC must have PRIMARY plane and > > OVERLAY are optional. > > > > Allow PRIMARY plane to have dimension different from full-screen. > > > > Fixes: 5bb5f5dafa1a ("drm/sun4i: Reorganize UI layer code in DE2") > > Signed-off-by: Roman Stratiienko > > So it applies to all the 4 patches you've sent, but this lacks some > context. > > There's a few questions that should be answered here: > - Which situation is it fixing? Setting primary plane size less than crtc breaks composition. Also shifting top left corner also breaks it. > - What tool / userspace stack is it fixing? I am using Android userspace and drm_hwcomposer HAL. @Jernej, you've said that you observed similar issue. Could you share what userspace have you used? > - What happens with your fix? Do you set the plane at coordinates > 0,0 (meaning you'll crop the top-lef corner), do you center it? If > the plane is smaller than the CTRC size, what is set on the edges? You can put primary plane to any part of the screen and make it as small as 8x8 (according to the datasheet) . Background would be filled with black color, that is default, but it also could be overridden by setting corresponding registers. > > > Thanks! > Maxime