From patchwork Fri Feb 16 11:25:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 128544 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp453783ljc; Fri, 16 Feb 2018 03:25:51 -0800 (PST) X-Google-Smtp-Source: AH8x225bBIWvKeXVPO8Y0t+6OfIL86viLvZ3ZhcQ4zj06kAsaE9mE2xuMt6Oicdbil1slVKtTTa3 X-Received: by 10.98.143.1 with SMTP id n1mr5806170pfd.126.1518780351240; Fri, 16 Feb 2018 03:25:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518780351; cv=none; d=google.com; s=arc-20160816; b=NRPdCehr1iq12/c+KoIVQsKnfRKhgR70jPzG5WcHDnJksJ55j1uxjOvBdyLw+dL5At II/sNszk8Qe/iraRee8BejV33UKmPVh7wd1NTgjGP5yI8zM23UblF03jMXiCjkEBeIkb vJvNnA9FG3EmWkAT7b4obfr2+g6b7K+aJoXjiIcc9y4BuXgzFg2uFmEOVLOyKtthoRps mnEa5GWP8zMEaiDSY+SunDzvR05WbV4JOQ3hL6I60aTC8WFGwQMgW45LGV15L1jj2JMr al+Fr4U+UBSvTJeIEVoJHFvKT6mGBO35Eeizsptx6rgBhWlUx0CfsYwLMOg61B4fDFvZ g2sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=3I0g06LXIVnEZ917z0+Y+H7pI417Dht68howz8vsZYI=; b=EbvgS+Yfsyn9EriBDjzFS7XQwoq6K9Xxdz4z1tpSWZq21yaFmq2F/nJFCm660c3+wG wf0CvzWBgdliRYhXFQvooxcxYCHbDitG+1vEb8+Btt5ssjDEUKZqNsd/ePj/GZvjym2E YAgp5FX39Gbme0gVYzBJUjYrSBi9JBTxOGVeEHpEUY8uVA7MnIZ4fHgjEKc2Qse9JPcw Nf/1K/nsaxSq5FhnPW6VgfOiDA/97Qg+KMyJS2rtff0UYH263CY9IhI9l9vbfRAzgo+j aIDrSNTuw5hq6gq949glXADpvcwJIh2A2dMy8AhDdjparSvOoMSLpwAIq+qvnYfNvV8i SvUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=GCKMRj6M; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 88-v6si2315701plb.156.2018.02.16.03.25.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Feb 2018 03:25:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=GCKMRj6M; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 74F526E009; Fri, 16 Feb 2018 11:25:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id 42E156E009 for ; Fri, 16 Feb 2018 11:25:18 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1GBPEMv018173; Fri, 16 Feb 2018 05:25:14 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518780314; bh=0Pja4qc9bwBWrENlOJxTfaJ1k0Z6FyLINLsgSO/UoAg=; h=From:To:CC:Subject:Date; b=GCKMRj6MM1xqxo57yHDdQK233OiKYYgL/AvNpXDzmrYdNFw1s6PWZKgbFbjYdsDFQ H4Pyn+6IwuVSHXNQ9MQsIt4lwisL0BBzgEmZs9P+vBSOCaV5N0V/0Mc+ZnnpuCnku+ KQ0oxrjPj/3iXxPz5CtHGPFwmvaq3m6A5chkCl9E= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1GBPEHQ003382; Fri, 16 Feb 2018 05:25:14 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 16 Feb 2018 05:25:14 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Fri, 16 Feb 2018 05:25:14 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1GBPCic028841; Fri, 16 Feb 2018 05:25:13 -0600 From: Jyri Sarha To: , , Subject: [PATCH RFC 0/9] drm/omap: DSS6 with dynamically allocated objects Date: Fri, 16 Feb 2018 13:25:01 +0200 Message-ID: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jyri Sarha Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series is an RFC or a proof of concept, to demostrate what is needed to get DSS6 driver workin on top of Laurent Pinchart's "omapdrm: Allocate objects dynamically" -series: https://patchwork.freedesktop.org/series/38152/ This series also contains my earlier "drm/omap: Make omapdss API more generic + related patches" -series: https://patchwork.freedesktop.org/series/35884/ ... however, I squeezed get_ off from olv_name and mgr_name dispc_ops. It is quite obvious from the prototype what these ops are for after all. These patches, plus some other patches need to get DSS6 workin on k2g-evm can be found here: git@github.com:jsarha/linux.git omapdrm-next-dss6 Jyri Sarha (7): drm/omap: Update omapdss API to allow alternative DSS implementations drm/omap: Fail probe if irq registration fails drm/omap: Add ovl_name() and mgr_name() to dispc_ops drm/omap: Make omapdss API more generic drm/omap: move common stuff from dss.h to omapdss.h drm/omap: dss: Move platform_device_register from core.c to dss.c probe drm/omap: dss: platform_register_drivers() to dss.c and remove core.c Tomi Valkeinen (2): drm/omap: add TI DSS6 driver drm/omap: boot-init: add k2g-dss drivers/gpu/drm/omapdrm/dss/Kconfig | 8 + drivers/gpu/drm/omapdrm/dss/Makefile | 5 +- drivers/gpu/drm/omapdrm/dss/base.c | 11 +- drivers/gpu/drm/omapdrm/dss/core.c | 88 -- drivers/gpu/drm/omapdrm/dss/dispc.c | 128 +- drivers/gpu/drm/omapdrm/dss/dispc.h | 33 + drivers/gpu/drm/omapdrm/dss/dispc6.c | 1438 +++++++++++++++++++++++ drivers/gpu/drm/omapdrm/dss/dispc6.h | 109 ++ drivers/gpu/drm/omapdrm/dss/dpi6.c | 283 +++++ drivers/gpu/drm/omapdrm/dss/dss.c | 58 +- drivers/gpu/drm/omapdrm/dss/dss.h | 43 +- drivers/gpu/drm/omapdrm/dss/dss6.c | 346 ++++++ drivers/gpu/drm/omapdrm/dss/dss6.h | 54 + drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c | 1 + drivers/gpu/drm/omapdrm/dss/omapdss.h | 135 ++- drivers/gpu/drm/omapdrm/omap_crtc.c | 30 +- drivers/gpu/drm/omapdrm/omap_crtc.h | 2 +- drivers/gpu/drm/omapdrm/omap_drv.c | 4 +- drivers/gpu/drm/omapdrm/omap_drv.h | 5 +- drivers/gpu/drm/omapdrm/omap_irq.c | 107 +- drivers/gpu/drm/omapdrm/omap_irq.h | 2 +- drivers/gpu/drm/omapdrm/omap_plane.c | 18 +- drivers/gpu/drm/omapdrm/omap_plane.h | 1 + 23 files changed, 2607 insertions(+), 302 deletions(-) delete mode 100644 drivers/gpu/drm/omapdrm/dss/core.c create mode 100644 drivers/gpu/drm/omapdrm/dss/dispc6.c create mode 100644 drivers/gpu/drm/omapdrm/dss/dispc6.h create mode 100644 drivers/gpu/drm/omapdrm/dss/dpi6.c create mode 100644 drivers/gpu/drm/omapdrm/dss/dss6.c create mode 100644 drivers/gpu/drm/omapdrm/dss/dss6.h