Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1199403imm; Wed, 1 Aug 2018 11:52:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe8/HlUsKRFgGqG+fDe+Ko4sUQfZ67wJZxgoxm7uxByhU3AK8kMVnGBDvFXa85SuL/XE0gQ X-Received: by 2002:a63:b213:: with SMTP id x19-v6mr25511570pge.393.1533149578756; Wed, 01 Aug 2018 11:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533149578; cv=none; d=google.com; s=arc-20160816; b=q5T5B1330uQj7xmirZXAjdc2x1qYS5gyv71zS9mq7j0JaJcA5M0mx7YLz6kAQnpbQN ji2B2Yr7IwKl+vsMf5+swtZo0vy2JhHwzu/2OxbxMtb/aN/gKoZ2Z1CMQvbtBg7mjwZZ dFCUg3WkRvg7195ExF5+sNP2uoS3uCtyNzLFOrAQX7i+VM6fbLTlUB7Pha3JK+wsfFvc GSWxvpv2jQoH8a/1/bwuW+HIus8dpZLqhLJ1FQ5+ItnCbLs70N/6qtI4Dg9UpLigF+3f t8Boy5I2M+VoyyPdD0zcCo6eq+GHUP0wgXfsTjQHU0HonET0VfXyd+9QCv002z0KAZbe sMeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=92c+ZHwx1VxUtD1kpnyaW95oep5OUN0f+KWBWW025WQ=; b=AfIpv8ndVmW+IAY33rI3Ox5Eya6kzgBdSg2i99OCPcWmCZB3hdFS4MKZ12zeZPN+nb HsdDptKCTxF9U8fO5N2YiYX7/V22kzE4pnyUiLnL/WuMUWNybmdQ9HJU5qrWEXj3wNfB ifOE2LwfuOg+tzVM+6qhXh5VULsHEaNGwLOtcDRoWfqnAGG9PCfGJLegvjjrZOd8/Vom 8CWyU0SAjjqqgtZPnESKP8MgnSjvG1+e0zQKUNqRV1tX27hu+q3ku8EX0DA4Ef3hfcLJ SU+yrA0oQursUaTU2iA/3/GCknSDP7Lmd/4UmWVsURK+P8/Ivsk10szVtIgSZ08oJU7J RSQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h126-v6si15658034pgc.429.2018.08.01.11.52.43; Wed, 01 Aug 2018 11:52:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732111AbeHAUjC (ORCPT + 99 others); Wed, 1 Aug 2018 16:39:02 -0400 Received: from smtp10.smtpout.orange.fr ([80.12.242.132]:21243 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731501AbeHAUjC (ORCPT ); Wed, 1 Aug 2018 16:39:02 -0400 Received: from localhost.localdomain ([81.67.76.113]) by mwinf5d86 with ME id Huro1y0012Sg6Vd03urr0A; Wed, 01 Aug 2018 20:51:52 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: bWF4aS5qb3VyZGFuQHdhbmFkb28uZnI= X-ME-Date: Wed, 01 Aug 2018 20:51:52 +0200 X-ME-IP: 81.67.76.113 From: Maxime Jourdan To: linux-amlogic@lists.infradead.org Cc: Maxime Jourdan , Kevin Hilman , Neil Armstrong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 0/4] soc: amlogic: add meson-canvas driver Date: Wed, 1 Aug 2018 20:51:24 +0200 Message-Id: <20180801185128.23440-1-maxi.jourdan@wanadoo.fr> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Amlogic SoCs feature a set of 256 canvas that act as pixel buffer descriptors. Some IPs like the display and video decoders access those pixels by using canvas IDs rather than direct phy addresses. As such, allocating/manipulating canvases can be done concurrently and there is a need for a standalone, lock-aware canvas provider module. Currently, canvas code lies in the drm/meson module as it is the sole user. This patchset adds such canvas provider module and converts drm/meson to using it, stripping/moving the current canvas code. Maxime Jourdan (4): soc: amlogic: add meson-canvas driver dt-bindings: soc: amlogic: add meson-canvas documentation ARM64: dts: meson-gx: add dmcbus and canvas nodes. drm/meson: convert to the new canvas module .../bindings/display/amlogic,meson-vpu.txt | 9 +- .../soc/amlogic/amlogic,meson-canvas.txt | 36 ++++ arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 24 ++- drivers/gpu/drm/meson/Kconfig | 1 + drivers/gpu/drm/meson/Makefile | 2 +- drivers/gpu/drm/meson/meson_canvas.c | 70 ------- drivers/gpu/drm/meson/meson_canvas.h | 42 ---- drivers/gpu/drm/meson/meson_crtc.c | 5 +- drivers/gpu/drm/meson/meson_drv.c | 35 ++-- drivers/gpu/drm/meson/meson_drv.h | 5 +- drivers/gpu/drm/meson/meson_plane.c | 3 +- drivers/gpu/drm/meson/meson_viu.c | 1 - drivers/soc/amlogic/Kconfig | 7 + drivers/soc/amlogic/Makefile | 1 + drivers/soc/amlogic/meson-canvas.c | 182 ++++++++++++++++++ include/linux/soc/amlogic/meson-canvas.h | 37 ++++ 16 files changed, 319 insertions(+), 141 deletions(-) create mode 100644 Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-canvas.txt delete mode 100644 drivers/gpu/drm/meson/meson_canvas.c delete mode 100644 drivers/gpu/drm/meson/meson_canvas.h create mode 100644 drivers/soc/amlogic/meson-canvas.c create mode 100644 include/linux/soc/amlogic/meson-canvas.h -- 2.17.1