Message ID | 20191105211034.123937-1-sean@poorly.run (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=rB/g=Y5=lists.freedesktop.org=dri-devel-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A6DC81390 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 5 Nov 2019 21:10:40 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 984022087E for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 5 Nov 2019 21:10:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 984022087E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=poorly.run Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4388C6E8F0; Tue, 5 Nov 2019 21:10:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yb1-xb43.google.com (mail-yb1-xb43.google.com [IPv6:2607:f8b0:4864:20::b43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 615A96E8DA for <dri-devel@lists.freedesktop.org>; Tue, 5 Nov 2019 21:10:37 +0000 (UTC) Received: by mail-yb1-xb43.google.com with SMTP id x14so4824735ybq.12 for <dri-devel@lists.freedesktop.org>; Tue, 05 Nov 2019 13:10:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5GhjUCkz3ocQmrG6PmUyRxi5BVK7ftViRGTD2rrmkKI=; b=VpZwMcvSdAtWReAHQx7Vlj3bbnQWWqaTPqE3uTYjPzMmT3cIi12/9/aLkmDkNcny5X 9gQd1V1tzLvoOJG4unMY9DSAPu0Lqou621qw4eWac77ZfOzyDCYtKbYGz8EMaj0lNoqd 5ETltQ5oXHkyaHSVwBpntMF9LuP7yV6gX5E7VZ8IkyKPIl4yHtw6A596d5YqliYXTOTh 2FrI7oD/mh9DWzB1y11oinNVwgHVIyq4T8SKZ1pa+3NyUo17jE5vUwg4Lp98z9sE7pl3 7+aJFgBnv305pswxac1eA0bMb6X8e0Padr5MsGfNdcF168REcG6BwsfX8UotL++vhZWn j6nA== X-Gm-Message-State: APjAAAWEhTvVY11FdDaGRcIPeVHt9GCSREL6lI2fu3Gs2b7SK2Mj6nU2 keZrGZEUOIhhYYckWMUvV8irNNSOw90= X-Google-Smtp-Source: APXvYqwZpVTKw7wEDsr9syi4VlENMgrIrYl9+rQ/rlZeFQSHvVhD8rMyrCSti6ffViFWSs7d4O4Rog== X-Received: by 2002:a5b:d0a:: with SMTP id y10mr6596220ybp.36.1572988235921; Tue, 05 Nov 2019 13:10:35 -0800 (PST) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id j66sm1815216ywb.101.2019.11.05.13.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 13:10:35 -0800 (PST) From: Sean Paul <sean@poorly.run> To: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 0/7] drm/mediatek: Refactor plane init/check and support rotation Date: Tue, 5 Nov 2019 16:10:17 -0500 Message-Id: <20191105211034.123937-1-sean@poorly.run> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5GhjUCkz3ocQmrG6PmUyRxi5BVK7ftViRGTD2rrmkKI=; b=Uuid+vkuIMoEPu11BJV35oCzoqSefDW9ZuIPEB7sSMRiLblnbvGw2td5OwAl0HYFEs UQF0Rnc3aJGQnFA+a1sDH1IvqHqKfMbeIYvLNjeLoB5eNFEKXyiis9Altea1PfmHu5zm GPdFmGda9zTFKHcAxkl3at79EyN9ESPetMHCcnN1+X6WVw0tU0K3Az1E6S8p0FiRbVV9 w1KOI8RL2KFZg/hZpLEe5JjxApP5DcS9nGCc5X8v4le9Gep+hxkTdws36dbptVGnOFfX 7yfQXQ6miw0VHXsnRDzXgNcPuMcdwP9ZW1Dzld4Ok8GP6z0UTNzUzDnTh8G5fJWTGHX2 zgHA== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: dcastagna@chromium.org, matthias.bgg@gmail.com, mcasas@chromium.org, Sean Paul <seanpaul@chromium.org>, frkoenig@chromium.org, linux-arm-kernel@lists.infradead.org, markyacoub@google.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
drm/mediatek: Refactor plane init/check and support rotation
|
expand
|
From: Sean Paul <seanpaul@chromium.org> Hello, This is a follow-on to [1], which supports the original Y-flip. I've added X-flip and 180 degree rotate. Additionally, the rotation property is only exposed for ovl planes, not rdma planes since rdma doesn't support it. In order to differentiate between the two types, I had to do some plumbing in order to surface the supported rotations of a component as well as allowing a component to implement plane checks. I've tested this on a 4.19 kernel on mt8183. The set was then forward ported to mainline and build tested. The forward port was relatively collision free, but there were a few. Sean [1]- https://lists.freedesktop.org/archives/dri-devel/2019-November/242312.html Sean Paul (7): drm/mediatek: Refactor plane init drm/mediatek: Add helper to get component for a plane drm/mediatek: Add plumbing for layer_check hook drm/mediatek: Plumb supported rotation values from components to plane init drm/mediatek: Support reflect-y plane rotation drm/mediatek: Support reflect-x plane rotation drm/mediatek: Support 180 degree rotation drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 50 +++++++ drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 145 ++++++++++++++------ drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 2 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 22 +++ drivers/gpu/drm/mediatek/mtk_drm_plane.c | 18 ++- drivers/gpu/drm/mediatek/mtk_drm_plane.h | 4 +- 6 files changed, 199 insertions(+), 42 deletions(-)