Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2345511ybj; Mon, 23 Sep 2019 02:07:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzP9TYkz1byWozahRoKc9nWgvX6ROsAb5jIuV2H8pS5ryCDCe3Jgx2+ONNgb8w8wlLoBczV X-Received: by 2002:a05:6402:32f:: with SMTP id q15mr33300733edw.143.1569229675875; Mon, 23 Sep 2019 02:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569229675; cv=none; d=google.com; s=arc-20160816; b=VDNLLUyFd5XYAmkI7a3L/E9FioZBxd9WdQCnaCIMGbCz7B5AKVNJku1KnxMvNdtIMi dLo/NoAcs8DaZ1OgkAGvl8Wgx0h5dvfOIFf8/spHkgM1cWDmnIpQqMkjDEKBblIuWGvL P+VhxPuNwbu9XwqC40Chb7Am3DzGKSA8QYZNHwKxykfUGDgInpcn7omZZn0RBT0CGl8p XiY81818NnuYv1weR9/5Qm4rB+UZ1gDltdkvPwYm1A47o4vFf6uZh1JwtOBaGOSLtAT6 50fBAayrYbRPTQy9+1N39dCZGD8q+XTQIg8lwCOjcEMdM7jFhm4UdJCjf2pQWfR7dQeb dnuQ== 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=Liy99NbfBPKnCLL5pI97ZdCbqOlNrE+8AE8B3qqiLLk=; b=BoGrxhr1k/lPxNnUqM1DT9+HcY0EswCcYq/5OiQnKc/s5w25RBzPP6izUJ0+XFR8DB yEfgnZ6kIJac8NzjDzzdyzCAL5MewjKUeytm3u7PvwqBnLh17NFQENLDkhGXF25eE7RB sDo70o5jkCQVnj/v/D6yzSqK3kkmCnOcnooLTqGOdy6odHmhh4ASqur+2rrPBwJIp8cQ uLP0EPGw7Z3Yzn5yCpEujo1INK+JOtUwaBdjoOHqW33EcUxV+PaOu6N3Zf6krxzDI5oU I5joext46vbVHMkwUVAs5zA6ELmPzeG5AsfYm204XmfK+SwYO22T3/Zn8gZBM9ov3NnH MyaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=BZyB9leZ; 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 h7si4611762ejx.59.2019.09.23.02.07.32; Mon, 23 Sep 2019 02:07:55 -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; dkim=pass header.i=@globallogic.com header.s=google header.b=BZyB9leZ; 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 S1728427AbfITUJx (ORCPT + 99 others); Fri, 20 Sep 2019 16:09:53 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:33993 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728325AbfITUJw (ORCPT ); Fri, 20 Sep 2019 16:09:52 -0400 Received: by mail-ed1-f68.google.com with SMTP id p10so7587596edq.1 for ; Fri, 20 Sep 2019 13:09:51 -0700 (PDT) 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=Liy99NbfBPKnCLL5pI97ZdCbqOlNrE+8AE8B3qqiLLk=; b=BZyB9leZy0o8BDwc4dpNHtln9sYHsI2MCbOSfmRGUGn35V2zNXwRBAEX+8CTMWS/KO JbR0CMvf6eYH71IuCq1KUXVRO6QJMLNr5DDBWlLvcn6KMHAGuQn7oiGF0ofNNZ7gA16f GiYGb/OkduiejdPeZtlVNxN3jSG7PD3+CKt77vUbyB//K5bbVqSQQa8dJ5ua0LDE2bN7 A2gprl4a9Y5zU6Zx0rbf3WB22Mi8RiPG/gZnhKi1/VL2+6gxkTzk46VWeB8x3xs7lAxc BFlzANjDARm8aoSD06T25RZc8hkJGDWBFAhEHI68xSyzvycMgpPRqboXkOLW4as7my2t NRsQ== 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=Liy99NbfBPKnCLL5pI97ZdCbqOlNrE+8AE8B3qqiLLk=; b=aghWHeJbSP1xX+Yt9n+PW4K42XemH2YN96hcUbSChU6le2aNozFgWLTYY0q1ZScqjb bwXzZXc69mXG2ZBgMQhK/e4RJByK7uDQvpU32AxLwwrt2mkrRxGManxVQ/OaPM5H+Op8 tDy0mQqG3m3fagesANroY/7dDZ7p9mBRT8eEXPrd2e45s4lGyWR7mFa+x6NY0JDW3g5a SmAYALbETbVW4lYiMEKYkAUvcqh/lG2714kMGg894Qv/o5aGXnxhhIRjamZt0Ia464sH fyeiGd5LVpgDM7mAcDZOPYMmS1m3WuLjR83LBMBFLLwzUQvfTzsPJFW+rw21CX8920p2 F2qg== X-Gm-Message-State: APjAAAVOSbkevd82wKKKCfg6jZx4LL3rs/2sP+i0WpOFaqDjHp5Md1Le 0r4scV8nO9x8ZDNu1ZJm2VHmsf+uDRzAbpBKfpr4ZA== X-Received: by 2002:a17:906:6c98:: with SMTP id s24mr11317157ejr.28.1569010190869; Fri, 20 Sep 2019 13:09:50 -0700 (PDT) MIME-Version: 1.0 References: <20190919123703.8545-1-roman.stratiienko@globallogic.com> <20190919171754.x6lq73cctnqsjr4v@gilmour> <104595190.vWb6g8xIPX@jernej-laptop> <20190920061800.65sm6jth2afatsvl@gilmour> In-Reply-To: <20190920061800.65sm6jth2afatsvl@gilmour> From: Roman Stratiienko Date: Fri, 20 Sep 2019 23:09:39 +0300 Message-ID: Subject: Re: [PATCH] drm/sun4i: Use vi plane as primary To: Maxime Ripard Cc: =?UTF-8?Q?Jernej_=C5=A0krabec?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org 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 @Jernej =C5=A0krabec @Maxime Ripard Thanks for your time and valuable suggestions. Currently I would have to go away from mainline KMS to solve my (Android) issues, and I hope to get back when I find mainline-friendly solution for it. Having no primary layer or zero-buffer primary layer and 4 overlays could be a universal solution, but I have not sufficient knowledge in KMS to bring-up this idea. On Fri, Sep 20, 2019 at 9:18 AM Maxime Ripard wrote: > > Hi, > > On Thu, Sep 19, 2019 at 11:03:26PM +0300, Roman Stratiienko wrote: > > Actually, I beleive this is True solution, and current one is wrong. L= et > > me explain why. > > > > De2. 0 was designed to match Android hwcomposer hal requirements IMO. > > You can easily agree with this conclusion by comparing Composer HAL and > > De2. 0 hardware manuals. > > > > I faced at least 4 issues when try to run Android using the mainline ke= rnel > > sun8i mixer implementation. Current one, missing pixel formats (my prev= ious > > patch), missing plane alpha and rotation properties. I plan to fix it a= nd > > also send appropriate solution to the upstream. > > > > To achieve optimal UI performance Android requires at least 4 ui layers= to > > make screen composition. Current patch enables 4th plane usable. > > Note that you can also get 4 UI planes by enabling more than one UI > layer per channel. You wouldn't be able to use alpha between each > plane of a given channel, but we can use a similar trick than what we > did for the pipes in the sun4i backend. > > Maxime --=20 Best regards, Roman Stratiienko Global Logic Inc.