From patchwork Wed Feb 7 14:11:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 127187 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp509257ljc; Wed, 7 Feb 2018 06:12:12 -0800 (PST) X-Google-Smtp-Source: AH8x226R5WIECHOJmNOr20XRypQ0EifIqLVUqo1pdGUp74mOcNoKRttAHIMwrVIK8ZbejkXYdtpl X-Received: by 10.98.216.134 with SMTP id e128mr6243867pfg.36.1518012732223; Wed, 07 Feb 2018 06:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518012732; cv=none; d=google.com; s=arc-20160816; b=0KW9tFrKzxczR1QAi8UAnA0m25IYwmeKPdP2f61h240Ov+hCCLipGtq4II/rMKhCi2 pvGuqNPVEi2vVq5log0At66VxBEFmGbSjQ+GI3p8YGPLfJNg4vA+qyjiaoV33uuz2WhF 5qCN4RNftx/TyckV3NHdUp98ipV1JsHZ0d2yElrqwE/JMaarGSG4d1EADZfP5680gv0y iSRnV+6S+e9e7kNGVVdNbBpN5jgarMAfx+FLxge/PoFP5OnCKCJ4+Ayrv81SQ90QpY6s lL9iN86rl07qHMbyDU3C8rCqNFGTrvQhuurzsH9TeYMVJEisj05uB9BbfpBfGuSwt4Zf jDAw== 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=No++ppJ1/xpSGB8K5sS10myu1X9LtwCJKPdPs5DxY/E=; b=ndu8HJJNQf2zUjExqFZ6zVlV3g0vC76iGA5Q72kwVriBiisinmS8FeCXRnN8hPwxjg h8SAEZHZffH/4M5h1WPSFXFhTlDhZztdKgLagic4oCL0Qnmz7gl2Vtjed/cpFhSNtwbr LaomR1MbJSE7yubNBpzRMxzka5bQFQdUS/NOnHs5VI+x0uOk8WmspSlk/p2Zb999K/Fg QzY8ZJxseeq3t6qd8He1wJiJ6hueqESf3tmTV/yBe1AhCjqcphBy2jVG1QLid6owCtoT lNyHA++MPzxwWRxrfO5Y96qanY5+AwU2Lj6UM5sFDdO8WavvIiw9HLOtMkixlEjI7hvh iHyw== 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=rx5Kx0pB; 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 n71si1187269pfk.103.2018.02.07.06.12.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 06:12:12 -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=rx5Kx0pB; 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 9674389310; Wed, 7 Feb 2018 14:11:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E68189310 for ; Wed, 7 Feb 2018 14:11:39 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w17EBZdj014135; Wed, 7 Feb 2018 08:11:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518012695; bh=daTrS2o1SMGwSrsMRv5/hPChjHcrA9vE2qZJjK414tk=; h=From:To:CC:Subject:Date; b=rx5Kx0pBc6e3MDXzEaBTJ38TDdED9E9up4QjnQ7wvA6J23o4dP5b9xYgIszaAAstq EHSJghdMeF7+ZmlbjytTclwJK95NYgTUgld0ppPZPCMzVZm+oddWtrI24UiEoA/LKh b8/+sBtB67+hcEXH53lhAYE0Jb7h43T+iW8AZu54= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w17EBZ03029903; Wed, 7 Feb 2018 08:11:35 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 7 Feb 2018 08:11:35 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 7 Feb 2018 08:11:35 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w17EBXH1004400; Wed, 7 Feb 2018 08:11:34 -0600 From: Jyri Sarha To: Subject: [PATCH v3 0/3] drm/omap: Make omapdss API more generic + related patches Date: Wed, 7 Feb 2018 16:11:25 +0200 Message-ID: X-Mailer: git-send-email 1.9.1 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: airlied@linux.ie, tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com, Jyri Sarha Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Since v2: - Simplify dispc_mgr_has_framedone() - dispc_hw_to_api_irq() and dispc_api_to_hw_irq() use new dispc_irq_bits[] - rename dispc_ops read_irqstatus() to read_and_clear_irqstatus() and remove clearmask - precalculate priv->irq_uf_mask in omap_drm_irq_install() and use it in omap_irq_fifo_underflow() Here is the v2 round: https://lists.freedesktop.org/archives/dri-devel/2018-January/161353.html Since RFC: This the v2 rouns of a this RFC patch: https://patchwork.kernel.org/patch/10066245/ The first patch is a simple fix that should be applied in any case. I did not split the mgr_has_framedone() callback as a separate patch. It quite literally replaces the mgr_get_framedone_irq() and makes no sense without the "drm/omap: Make omapdss API more generic"-patch. Best regards, Jyri Jyri Sarha (3): drm/omap: Fail probe if irq registration fails drm/omap: Add get_ovl_name() and get_mgr_name() to dispc_ops drm/omap: Make omapdss API more generic drivers/gpu/drm/omapdrm/dss/dispc.c | 113 ++++++++++++++++++++++++------ drivers/gpu/drm/omapdrm/dss/dispc.h | 33 +++++++++ drivers/gpu/drm/omapdrm/dss/omapdss.h | 67 ++++++++---------- drivers/gpu/drm/omapdrm/omap_crtc.c | 27 +++----- drivers/gpu/drm/omapdrm/omap_crtc.h | 2 +- drivers/gpu/drm/omapdrm/omap_drv.c | 4 +- drivers/gpu/drm/omapdrm/omap_drv.h | 3 +- drivers/gpu/drm/omapdrm/omap_irq.c | 125 +++++++++++++++------------------- drivers/gpu/drm/omapdrm/omap_irq.h | 2 +- drivers/gpu/drm/omapdrm/omap_plane.c | 18 ++--- drivers/gpu/drm/omapdrm/omap_plane.h | 1 + 11 files changed, 237 insertions(+), 158 deletions(-)