From patchwork Mon Aug 13 14:50:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 957005 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kNVE9xvt"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41pzDS3DLQz9s0n for ; Tue, 14 Aug 2018 00:50:32 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728557AbeHMRdF (ORCPT ); Mon, 13 Aug 2018 13:33:05 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:47027 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728455AbeHMRdF (ORCPT ); Mon, 13 Aug 2018 13:33:05 -0400 Received: by mail-wr1-f66.google.com with SMTP id h14-v6so14502868wrw.13; Mon, 13 Aug 2018 07:50:30 -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; bh=vpgbfZ9yqofH3jrl9HZ0yGNzC4/sS78j8GxuWC9Zonw=; b=kNVE9xvtwYkSFi8q6F1NUzIamYiNiurKcjuR7p/caZTCjzONgP34W97IWefk1cDTyb hlfHIR/l1vMrPepJy2bpAUhGrMVt80f9JrFkzza8K96u6VSEXlFq3YFIq0CZVQ3XY1Av KWwZ0w8XRs9T7rzVDJZmx7B1fw7paenCOWCmwFlCGPZXqr61YtrrGWNEECVQ4bWpDfNT zFw1UGUEuIOQZkO8B9LEibpMMZP7R5o4dxZQEh+6Or6qwCvr19qmq4Ur4xcOiQIHJ5yU yzYKZqqZRBdlRk+Y8reURlgpIDgEpZwr1UIpHS1nF+MB2aJX4NsFVqiLq0sAcYoXLpSV GQQg== 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; bh=vpgbfZ9yqofH3jrl9HZ0yGNzC4/sS78j8GxuWC9Zonw=; b=pEqb7FQQiy0rBsoA3sJ+Ul7LlWUWJkY9lrPVPM3nHMc6BOH1ojcA+8+7cSZ/OD1NkX NX12si+Yv0s0tv9+KsV0EjW6eNnWbV/pApcP6m47cROddV8mFtPOJcWXONlnKXui1JqY Cu75RJiG09A1R9rS5OGYVUCy1D0zNA7hUGo9XwBb1xYaN21qmExZr0EM8BVWSBauiFya TC3KoZ/J+toDsnrJlVsNUAcvg0tDYviMqLS4NqxlpdnQAq8iw7zxIliUhoWVIobboOeZ GxYNjLAnDDFvt8eWWqSDNOFnArBaoSIz31xZG/3RT6mmjpz3POXXLrhx/EyxYZxqly7m LgdA== X-Gm-Message-State: AOUpUlEzuvJTdrHp5tbwp+NU5RZ646oquMray77Z/DMU+46/HB1ywjxm 5uV/maSP0wYPxJfwWoUxZKI= X-Google-Smtp-Source: AA+uWPyCfEMrftXGWgkozXyJJOS5vpgsOsINLrjE+kxSnoJT/QAcng/jdvjjUHWMh0nSZB3WiRjKZA== X-Received: by 2002:adf:db11:: with SMTP id s17-v6mr11239723wri.221.1534171829108; Mon, 13 Aug 2018 07:50:29 -0700 (PDT) Received: from localhost (pD9E51C80.dip0.t-ipconnect.de. [217.229.28.128]) by smtp.gmail.com with ESMTPSA id m13-v6sm16676778wru.93.2018.08.13.07.50.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Aug 2018 07:50:28 -0700 (PDT) From: Thierry Reding To: Mauro Carvalho Chehab , Thierry Reding Cc: Greg Kroah-Hartman , Dmitry Osipenko , Jonathan Hunter , linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH 00/14] staging: media: tegra-vdea: Add Tegra124 support Date: Mon, 13 Aug 2018 16:50:13 +0200 Message-Id: <20180813145027.16346-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Thierry Reding Hi, this set of patches perform a bit of cleanup and extend support to the VDE implementation found on Tegra114 and Tegra124. This requires adding handling for a clock and a reset for the BSEV block that is separate from the main VDE block. The new VDE revision also supports reference picture marking, which requires that the BSEV writes out some related data to a memory location. Since the supported tiling layouts have been changed in Tegra124, which supports only block-linear and no pitch- linear layouts, a new way is added to request a specific layout for the decoded frames. Both of the above changes require breaking the ABI to accomodate for the new data in the custom IOCTL. Finally this set also adds support for dealing with an IOMMU, which makes it more convenient to deal with imported buffers since they no longer need to be physically contiguous. Userspace changes for the updated ABI are available here: https://cgit.freedesktop.org/~tagr/libvdpau-tegra/commit/ Mauro, I'm sending the device tree changes as part of the series for completeness, but I expect to pick those up into the Tegra tree once this has been reviewed and you've applied the driver changes. Thanks, Thierry Thierry Reding (14): staging: media: tegra-vde: Support BSEV clock and reset staging: media: tegra-vde: Support reference picture marking staging: media: tegra-vde: Prepare for interlacing support staging: media: tegra-vde: Use DRM/KMS framebuffer modifiers staging: media: tegra-vde: Properly mark invalid entries staging: media: tegra-vde: Print out invalid FD staging: media: tegra-vde: Add some clarifying comments staging: media: tegra-vde: Track struct device * staging: media: tegra-vde: Add IOMMU support staging: media: tegra-vde: Keep VDE in reset when unused ARM: tegra: Enable VDE on Tegra124 ARM: tegra: Add BSEV clock and reset for VDE on Tegra20 ARM: tegra: Add BSEV clock and reset for VDE on Tegra30 ARM: tegra: Enable SMMU for VDE on Tegra124 arch/arm/boot/dts/tegra124.dtsi | 42 ++ arch/arm/boot/dts/tegra20.dtsi | 10 +- arch/arm/boot/dts/tegra30.dtsi | 10 +- drivers/staging/media/tegra-vde/tegra-vde.c | 528 +++++++++++++++++--- drivers/staging/media/tegra-vde/uapi.h | 6 +- 5 files changed, 511 insertions(+), 85 deletions(-)