From patchwork Wed Jun 17 23:40:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 11611563 Return-Path: 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 9F2B614B7 for ; Thu, 18 Jun 2020 07:18:46 +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 7D7FF21532 for ; Thu, 18 Jun 2020 07:18:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I4EL+9xS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D7FF21532 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 0A8D56EB17; Thu, 18 Jun 2020 07:17:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 765F66E150 for ; Wed, 17 Jun 2020 23:41:02 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id s1so5056802ljo.0 for ; Wed, 17 Jun 2020 16:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OcOqz11XDX1GFeXdHeD+rrzTbKQ6O43sVtDhODmNqc0=; b=I4EL+9xSGNrxK6Z2hdF8hp2JFC0Q71MdVSv9gkIsSfmBiXE3tO953ygNuEyhWzWq/Y kt5sgsr0FU2tTuUPnCvyEy7uo41zYwtq/dc73J6ghXA2pAHLwbp5yDmdG5/9Lj7ZsKVB e95PwhYCe6jdiPXV9LN4hyWDXJXW7lEadkgGY1uzMk4kXxOOVB6yJQDhIC+MAszjYRK0 HzWexz6TTLOMQLkNeq0V64kYu3nwoGtyZKNUAtmX+v9HIHye607uCpTMNtke6/agA4AN aHu0CkuCGO4alJutuER72zo7mtz4yAcvRq0eFLnDx7ATn2lh86AUYnSifHlgJcewZFde Y+Og== 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=OcOqz11XDX1GFeXdHeD+rrzTbKQ6O43sVtDhODmNqc0=; b=Y5gB0P89pKkhnKZGLD/LDa0tcN4If+dhdY6eHS9Auz1O2/eUisjPOyD4rPQIOp4827 /eIsSBXlPmMLljyHVSGFuEJyVn3f3aHLNrRqW8WT+rmRCWjopFSshXMSNW268VDHjoZl mdjWvVkYYPy8W2Gg6I0otXZV4u7nG4DVcJStZeGjvi5Xja1qNf4yStlxDky2iUsEM7Lf 4/UBbVMw+35HCpKAml5f+svfGrfc68oU6UIAEB2A4hoOd3NvP0NBPzw8EZLsJrTKKi/Q vKb5PC7EvQGrf2dTn1+QSBael1N0wcCYfS/6CHCiHwtoCzvWdiDg9l3NXDjy139nwu2Q kwbQ== X-Gm-Message-State: AOAM531DxD+QoRR2AXQ5dHPUHBJFGb4EnSDf0l7mqs+KgkxoY/qXGGGJ XvYXMREDi6rk1Uzx9ZN6R8A= X-Google-Smtp-Source: ABdhPJzwtCosDXfqxKV938U918086QPW2Y3T4a+nySVKa/edKjWK6dOc4Uodf6FWGzHT3zqti2DCHg== X-Received: by 2002:a2e:9b8f:: with SMTP id z15mr879391lji.185.1592437260890; Wed, 17 Jun 2020 16:41:00 -0700 (PDT) Received: from localhost.localdomain (79-139-237-54.dynamic.spd-mgts.ru. [79.139.237.54]) by smtp.gmail.com with ESMTPSA id c8sm287871lfc.46.2020.06.17.16.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 16:41:00 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Thomas Zimmermann , Derek Basehore , Sam Ravnborg , Laurent Pinchart , Sean Paul , Daniel Vetter , =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= , Emil Velikov , Daniel Stone Subject: [PATCH v3 0/3] 180 degrees rotation support for NVIDIA Tegra DRM Date: Thu, 18 Jun 2020 02:40:37 +0300 Message-Id: <20200617234040.1094-1-digetx@gmail.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 18 Jun 2020 07:17:31 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hello! This series adds 180° display plane rotation support to the NVIDIA Tegra DRM driver which is needed for devices that have display panel physically mounted upside-down, like Nexus 7 tablet device for example [1]. Since DRM panel rotation is a new thing for a userspace, currently only Opentegra Xorg driver [2] and a recent Weston [3] have support for the rotated display panels, but this is more than good enough for the starter. [1] https://patchwork.ozlabs.org/project/linux-tegra/patch/20200607154327.18589-3-digetx@gmail.com/ [2] https://github.com/grate-driver/xf86-video-opentegra/commit/28eb20a3959bbe5bc3a3b67e55977093fd5114ca [3] https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/315 Changelog: v3: - Factored out the panel patches into standalone series [4] because this series doesn't have hard dependency on the panel patches and it should be nicer to review and apply the properly grouped patches. - The DRM_MODE_ROTATE_180 now isn't passed to drm_rotation_simplify(), like it was suggested by Ville Syrjälä in the comment to v2. - Added clarifying comment for the tegra_fb_is_bottom_up() in the code. [4] https://lore.kernel.org/lkml/20200617231842.30671-1-digetx@gmail.com/T/#t Dmitry Osipenko (3): drm/tegra: plane: Rename bottom_up to reflect_y drm/tegra: plane: Support horizontal reflection drm/tegra: plane: Support 180° rotation drivers/gpu/drm/tegra/dc.c | 46 ++++++++++++++++++++++++++++------- drivers/gpu/drm/tegra/dc.h | 3 ++- drivers/gpu/drm/tegra/plane.c | 3 ++- drivers/gpu/drm/tegra/plane.h | 3 ++- 4 files changed, 43 insertions(+), 12 deletions(-)