Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp834699ybh; Wed, 22 Jul 2020 14:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG5xCszo385l5+yU3fZfwagyJ8SyoagwTe1MvQGk/QunLeArn/82n0W1rrjf2JGyXvgzIs X-Received: by 2002:a17:906:f117:: with SMTP id gv23mr1449070ejb.528.1595454266410; Wed, 22 Jul 2020 14:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595454266; cv=none; d=google.com; s=arc-20160816; b=azQdmyF9ZF/4srsuy8yGsooTj4wP+IlNEpo98sLrt+UhTB9COnAyYCHQF+4j2bs/6y 74jQwfJI2Z0rf6qXeP54tsGLweqThSvOSfPyOou3NOaXmS69PKocNvbtX0Mzg/wHOzro sQQqyWq1R86CxOkDofrXovSC20KUA3ik+xe5tiUUBA7VYb+5LvTxs0VrwPm7NjD95RAA fRVgI/WpCL3szmO648mDLq2lEQABMTxSo13NVzArQ3YMbWakecPyzunNW053MQeDCOY8 zvKUEAdB8b/gS3aWBGu2hp5YQBIuxoyZVIHsucwCzmgZFEruHcNdFkdBX7l6986BuYYK PF1g== 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=j1t7HIxSpiPGVW8HIfsz8uFGun9cV3Lrnc1zjHDooMI=; b=J1PCvq2qle+548TxoGhxoJ1D/9GIXWdQizEj2W4Ezm6NJ/BbzMm8XRlhWrx3Twpleu C88RKiuNuOnhRcYXh7b4w00x85Rw2lygIWUA29TrwXamz0kjOWB2GR07wbkDUJwZCLMH 8g9fTtZ0Avr/O18x0v+H830q4WP8qyp32Ogarsz0x2PnnhhN+CYC2Za1NPiBG0SLtbsS JG6gwDeOyMOVaa1V5BwVCQtHJAm1ggpZmDpxSlO2ddeaBc+cG6hTeKB+VNFoigN+ErF0 fS4AGJKgYT/K1bJZpusOWAjSM04M/Ejyb2iwo9KiQrWqUz4H8U0EGEsn5AZVKYWUCjqQ 321g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=lqELnH6h; 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 f21si751568ejl.362.2020.07.22.14.44.02; Wed, 22 Jul 2020 14:44:26 -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=lqELnH6h; 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 S1732555AbgGVVnQ (ORCPT + 99 others); Wed, 22 Jul 2020 17:43:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgGVVnQ (ORCPT ); Wed, 22 Jul 2020 17:43:16 -0400 Received: from mail-oo1-xc42.google.com (mail-oo1-xc42.google.com [IPv6:2607:f8b0:4864:20::c42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C81DC0619DC for ; Wed, 22 Jul 2020 14:43:16 -0700 (PDT) Received: by mail-oo1-xc42.google.com with SMTP id d125so728313oob.0 for ; Wed, 22 Jul 2020 14:43:16 -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=j1t7HIxSpiPGVW8HIfsz8uFGun9cV3Lrnc1zjHDooMI=; b=lqELnH6haUXcDzCle4zBg4k9gYJ4kbFDCMVzzBCAbdY4yNoOnmUv00/yYP8npCFb6J f/7877AGDD3uB3UGQHTMGN18cYu1HyBrNoRB+9q7wqJa86XCzpFc3D5fvRJrhnDRB3ou lhT6TOYzeIYVJl3pRGIunfRB9Ah5D7XRQcq8E= 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=j1t7HIxSpiPGVW8HIfsz8uFGun9cV3Lrnc1zjHDooMI=; b=SfUScKxtXJTjOq5qZ9ACIPnnlwl7lu6b5jRVmw2grSLfksLxIay9GmTQ54SojD1beK q839+2Qdjn5KnrYOEyYdEt5pyUVAMESKQ1UnSd3fTmXIAdXhmJ00ZcdMM6EWRuqJseGv 25O7e4zeKhj+OYZ6nWhDMT0+D5Oro1lnw5cSVv90UqMOElhTqzSfc315Ls41FtEXh5rQ 6sHUGOWdtQo1rnvohViiArF0/Dwc9yLic97JONsK2eXrD0JCoWtEV/lvV17sUdJEF5ND JlbnnKzjCY/oIsEeDC/JhXVRZnL5YDmTJK7NyhQUVzl5Po+S4faRA1ybAL22dKu6brFn uhOg== X-Gm-Message-State: AOAM533777WCLbFAbBhGxS0dDL9OKAJQ6OdC+KD0EMAtA26yvT7K39mX wTyYTkVdxV3GlOAblDVACKe6lsyDzG8d/p6RdeOCu+1q X-Received: by 2002:a4a:b6c5:: with SMTP id w5mr1809420ooo.89.1595454195461; Wed, 22 Jul 2020 14:43:15 -0700 (PDT) MIME-Version: 1.0 References: <20200722181332.26995-1-knaerzche@gmail.com> In-Reply-To: <20200722181332.26995-1-knaerzche@gmail.com> From: Daniel Vetter Date: Wed, 22 Jul 2020 23:43:04 +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 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". 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. -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