From patchwork Mon Nov 5 10:45:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10667763 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5982714E2 for ; Mon, 5 Nov 2018 10:56:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45963296D1 for ; Mon, 5 Nov 2018 10:56:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 368FF29701; Mon, 5 Nov 2018 10:56:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 31108296FA for ; Mon, 5 Nov 2018 10:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=D3Rxuj6F9So9sa9P6XXgaM7+KSNUQJbGgEY4JKCjeM8=; b=dF2N+fiiM39C90 0jZOlcv2Xhf+hTYYxqVli38A6WXUDu0Zu8lKaXELnNgJMtGxf8b0PZdCVQH1/JRVWjKU2hD69qKnF X/nNCNDoRPg+qkn0kN8pL73iKLJ51NCcrP/DBuWlNtV/8BN5x/3YtdNy+IBERKralTImrKMOgh4uT RZdEp3Q0D90rSxRprdaSoPoxFqj2WhnPsm6OhCmDdmz00LhGDZVveWuuZrM8T3/hmK9y9xeCuGw6U VZFt9ILtPEpfpkoscIGrHJHGmiQGXZssG3d2p4iXwI777EKzgCvPAMMWipi+WvZPm2L5lm1DKqFQa iqnTxOZ+2P1ZyHTpGXIg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJcY2-000650-3E; Mon, 05 Nov 2018 10:55:58 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJcNn-00088Q-Dl for linux-amlogic@lists.infradead.org; Mon, 05 Nov 2018 10:45:26 +0000 Received: by mail-wm1-x344.google.com with SMTP id a8-v6so7524526wmf.1 for ; Mon, 05 Nov 2018 02:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BA8N+sCteaXCfPVHW2cboUva9koABLAGqJTeFtPRALs=; b=QrgZUbw/Z+5QapFPCs5f7igD3Q/cXFRshjqjrNpWIAPeW+Q3Dh2YLWjXcqJkxarXD9 PR07BzPEfiluT+xqJc7UigH1yl2JaQA3hNb1I+PdDsTKqeeRI2sFvYmxnMM7tzurPDEV tUQZcZs028BZjcruVY82sOinA/Qmxa67miatWkHbuDBEQqp2IpKUhMU94+OgjbSWCsUn lpnmys5yAlUMrTA8jogHhVCBbDfHyUTouKsOvfXPvlhF6WqKZ3fmljCblqgVgSGSMvTJ ffdzl8PNWygYiQv/OhyQdVLC4eqmBdauCpcePIfzbGdFaaJ6kH6ljQGvWj9+p4xsGbFn /+YA== 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=BA8N+sCteaXCfPVHW2cboUva9koABLAGqJTeFtPRALs=; b=Ki7ZULhUizyK2YDs5Mc9ZvaG5Nao4NuvkIpCvDUS3upiP79k78C6tRFEiEoekVvV7W OmMDjOiE9JdYiQkwwS263Ywn6ALMhyR8C0B/vUVELX/WJx3+xWYVOW+KnL2oViL2Zt/t xKcRIDR/MJ5sPF/YWqVQTtzxHnQpf0C0S8H9pe2XReM10K+/LEuvNVzakywRVLz/Zf31 CcDLO2rCnwvFzrLhFh2LTjDuCMX0vuzbdx+q9x2kFy/0PdvN7jtlUECmVI/YI4LKPsKu /gTJykbhRUvOQU0aFBChhj7OyWmK8fpT19MKBcc6RWgwi1DmNrFsN4B1iuz1ItKJaz0o HeFQ== X-Gm-Message-State: AGRZ1gJCZMpLc/QittqFRVIDNE9x+H9f6A8zrrqbupjg7ixGctWmeH4h yMy5o0PVBioaRr9bOtj3T04sMw== X-Google-Smtp-Source: AJdET5ffyrbHKofheAQX4EhJER7l83tSzvr9StrlcNqYzBYnMb1o2tbxCNNmqvNxQpO7nbLtM2XNzg== X-Received: by 2002:a1c:7508:: with SMTP id o8-v6mr5801533wmc.76.1541414711736; Mon, 05 Nov 2018 02:45:11 -0800 (PST) Received: from localhost.localdomain (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id p125-v6sm8033114wmp.2.2018.11.05.02.45.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 02:45:10 -0800 (PST) From: Maxime Jourdan To: Neil Armstrong Subject: [PATCH 0/2] drm/meson: Allow using optional canvas provider Date: Mon, 5 Nov 2018 11:45:06 +0100 Message-Id: <20181105104508.23090-1-mjourdan@baylibre.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181105_024523_905606_49429551 X-CRM114-Status: UNSURE ( 9.02 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Kevin Hilman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The meson DRM driver currently uses constant, static canvas indexes. This is not optimal and could conflict with other drivers also using canvases. This patch series allows the driver to optionnally use a canvas provider module that is able to dispatch canvases, on demand and free of conflict. In the future, the current way of doing things will be deprecated. Maxime Jourdan (2): dt-bindings: display: amlogic, meson-vpu: Add optional canvas provider node drm/meson: Use optional canvas provider .../bindings/display/amlogic,meson-vpu.txt | 2 + drivers/gpu/drm/meson/Kconfig | 1 + drivers/gpu/drm/meson/meson_crtc.c | 14 ++++-- drivers/gpu/drm/meson/meson_drv.c | 46 ++++++++++++------- drivers/gpu/drm/meson/meson_drv.h | 4 ++ drivers/gpu/drm/meson/meson_plane.c | 8 +++- 6 files changed, 53 insertions(+), 22 deletions(-)