Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp3035549ybh; Sat, 25 Jul 2020 08:58:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjf5PXwieeDuclMYvRJqEYN6cnaXjKGbK/PXOT5Xn6IhA7infJFD/YIpWGLDT3rtx7A1Pm X-Received: by 2002:a17:906:d78f:: with SMTP id pj15mr14593231ejb.283.1595692679805; Sat, 25 Jul 2020 08:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595692679; cv=none; d=google.com; s=arc-20160816; b=PiujdwBeV70H9vZAxFg47SlBc40F66niKZF7ZdlzhXdwYSJqG5GgEMmPGDFLR4fLn2 +BzrDEvoI578IRDTIlhX13qnWRz8WXvzczPqwFXMJhGvoCtrZFwiYkgLO9TpR5NtdKnC J/s33PvKoJGGT1oJejgLNnhN8ZywvgsMLFl7ee2ue96zPqPuk45pBFayUcZxi4L73x6S voHhnEWAznPzo8ikMGA5Q8+CJ6J+HwA2ED88lnRkQ23CnJWTnKDRvj5AlGPo3xe4nF7Y XvBjZAyZccQpLKMYe0nnmwcx4GCGHFDtugiJyxitXl/Xpbh5rKG+YtFAnxExGjRUxyh3 dLdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7BjkiE1GN+mh3yOkUNEJsHhkZ6KsGJ1P6f7ZdAty3Jc=; b=QUYx9mrv4ZU5NTVraR+SFLKIHHCTtNjG3ZVT2DSV2rplT2etAoiDbw6P1mwiG0MwlP mKJOyHUnn2y4HMWW01u1zIIm2G2SvWRphSs8sordksOG6flGu02IpUTU4gZv424+Ge3q UcqssnjMTXf80S7WCY9xDrxNvPg9GJrsLpoxoKj49OcZhOknU7/eMafh1Zh+tfDw3t6N 0FeTrRio8zoqDG3yr20SqITJhDFvzy3FunhK7JVnc7VBpxd5HXOb8e4+RRQr2k1eSMWp sFpqiS2OnRdgXUi0c3MPKs5oKINb+sVrME9BDvgU7ij2PvshrNjxirn+DVt31pVQ3IdZ Vqgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=GcEseSQX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si2511533edy.356.2020.07.25.08.57.35; Sat, 25 Jul 2020 08:57:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=GcEseSQX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727043AbgGYPyS (ORCPT + 99 others); Sat, 25 Jul 2020 11:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbgGYPyS (ORCPT ); Sat, 25 Jul 2020 11:54:18 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC95AC08C5C0 for ; Sat, 25 Jul 2020 08:54:17 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id k4so10703876oik.2 for ; Sat, 25 Jul 2020 08:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7BjkiE1GN+mh3yOkUNEJsHhkZ6KsGJ1P6f7ZdAty3Jc=; b=GcEseSQX/ZY/yzXt4/evGDbqxoqUKrU1b7V6U1nn0kb9tbsrUu8sxbo0i1s4VGmQMY Z8aEue4FMAqkmS5v4Ai5Mgs4tJNYPLdnG1qzuiuCHCiabR4f1YTUb10eBP4eLChx60jD QJALmHTm+Oir2mxrR6e1sMTU1KxAjgf2jXVc8= 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; bh=7BjkiE1GN+mh3yOkUNEJsHhkZ6KsGJ1P6f7ZdAty3Jc=; b=iAnu3Fs8Rb0MORLsrp+zpzSZGMelMb6bIGNCdnHUmTjCNTXoF7XYy18M9k+9tTdsSF Btn8TtKETFEjxEDF+OJwVM9bdv3hNSTLbbsa6D/m8VPSglZoQZRSwJB0V6xE8MuXriEt P2e/Yh5i/Mp4vRhtdIc2fdhjswfcsXMqmfQnncDG3MfT7LThec4ychzrgfl8nzOP2haY tqyDC8O/O5n9elVmJI95oWE7Z49SKHJZe66GQKQWL581B6fIaI+1oPpN2SzchFNfMDDV Y0BZWAEwFe94tbFgRg4hbSP7THl3DgrDXjkRV16eDuFSx0QV7qEE/KLiRF/MxwWc4cyl gyTQ== X-Gm-Message-State: AOAM533XEfRMrfb5KhFYlf0EY8aXBTJ/Kk8efXpLu9KqclKYdYmIDxo3 5fMJhMG91KtBikrw3PEA8Vycwx4lDsq0jEZrB/wdwQPN X-Received: by 2002:a05:6808:88:: with SMTP id s8mr11568435oic.101.1595692457203; Sat, 25 Jul 2020 08:54:17 -0700 (PDT) MIME-Version: 1.0 References: <20200722181332.26995-1-knaerzche@gmail.com> <47599ce1-2a3b-87eb-c46e-8f7f79ca945e@gmail.com> In-Reply-To: <47599ce1-2a3b-87eb-c46e-8f7f79ca945e@gmail.com> From: Daniel Vetter Date: Sat, 25 Jul 2020 17:54:06 +0200 Message-ID: Subject: Re: [PATCH v2 0/5] drm: rockchip: various ports for older VOPs To: Alex Bee Cc: Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , David Airlie , dri-devel , Linux ARM , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 25, 2020 at 3:52 PM Alex Bee wrote: > > > Am 22.07.20 um 23:43 schrieb Daniel Vetter: > > On Wed, Jul 22, 2020 at 8:13 PM Alex Bee wrote: > >> Hi, > >> > >> this series mainly ports existining functionality to older SoCs - most > >> importantly enables alpha blending for RK3036, RK3066, RK3126 and > >> RK3188. > >> Besides that, it also changes the window type from DRM_PLANE_TYPE_CURSOR > >> to DRM_PLANE_TYPE_OVERLAY for VOPs that have only one (1) overlay window. > > This doesn't make much sense, the cursor overlay is really just a hint > > for legacy ioctls that this is the overlay that should be used for > > cursors. Compositors should try to use such planes as full overlays > > (if they don't want to use them as a cursor). So sounds like a case of > > "fix your compositor". > I agree here - but: If HWC windows would have been implemented in this > particular driver, their max size would be 128x128 on some SoCs - so > they woudn't be really suitable to create an OSD overlay at 4K, for > example. I don't know, but I guess other vendors implement their HWC > windows on this reduced HW resources as well. I guess that is one of the > reasons, why userspace, which aims to be cross-plattfrom, avoids > DRM_PLANE_TYPE_CURSOR when its looking for an usable overlay plane. (a > heuristic, indeed) Which userspace does that? We should fix that, not try to work around that in all the drivers in upstream, that wont work. -Daniel > > For atomic there's 0 difference between a overlay or a cursor (primary > > plane is still treated somewhat special in the RMFB ioctl, but again > > that's for backwards compat reasons with existing uapi, not because > > the primary plane is different). > > > > What does happen though is that this breaks cursor for legacy > > userspace, which is probably not really what you want. > > Indeed not. > > Beforhand I was submiiting this, I looked arround and couldn't find > anything which relies or even depends of a cursor window to be > available. Even if: as per spec only one DRM_PLANE_TYPE_PRIMARY is > mandatory, everything else is optional. > > > -Daniel > > > > > >> Regards, > >> Alex > >> > >> Changes in v2: > >> - drop not yet upstreamed dsp_data_swap from RK3188 regs > >> - rephrase most commit messages > >> > >> Alex Bee (5): > >> drm: rockchip: add scaling for RK3036 win1 > >> drm: rockchip: add missing registers for RK3188 > >> drm: rockchip: add alpha support for RK3036, RK3066, RK3126 and RK3188 > >> drm: rockchip: set alpha_en to 0 if it is not used > >> drm: rockchip: use overlay windows as such > >> > >> drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 1 + > >> drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 42 ++++++++++++++++++--- > >> drivers/gpu/drm/rockchip/rockchip_vop_reg.h | 1 + > >> 3 files changed, 38 insertions(+), 6 deletions(-) > >> > >> -- > >> 2.17.1 > >> > > > > -- > > Daniel Vetter > > Software Engineer, Intel Corporation > > http://blog.ffwll.ch > > Best Regards > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch