From patchwork Thu Feb 27 10:13:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 183926 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4305472ile; Thu, 27 Feb 2020 02:13:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzGAjK2TMxv0MmiRGrAvi3GZ8XPoQSHQVOvzMZiBEqnrbk5G26ut0blnTFscAeKtEjOziQc X-Received: by 2002:a63:4a57:: with SMTP id j23mr3263211pgl.217.1582798398419; Thu, 27 Feb 2020 02:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582798398; cv=none; d=google.com; s=arc-20160816; b=AmFf6J2CUr4k2zrNdmjkXTCHiDKW9UcA5rRqalOUKAVo/p1gJ2MyYSzdqhUYEPlAdh xs7wgDePgHTFOmCXZ3Bx71P6slPk0Q8wI2ueocp5KoUCnlgi+rX6hhFPUSOOhXk/Cocr iS88MLuXDRDoFB72UINufFhgSsK4NvRQgEON9XLwv4cPEM3uv/3OloXtphucxe0bCnM1 fn3O97HgKW2Hi3LuI0t0vbNgsl2yy0rN6QGbYhj7I5aiiqrdbF5VY3lPlHsUZmAyeDey n0H/VGH+VRrOr/c8H64qsO1OJ7NwykuIHcQo+LjPHwmdevWUppiwgC4bWr8LgvLxIClA SMyQ== 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; bh=hLBl8NHlECCAh7F81zsz1DjKuk3JUk+bCUrvAVZNdGE=; b=qB4mlWngS+wwKo92FAnCNpV8dvDnqNwUIYgMuKYTk04O2T8wmNMMnMug1/Qt7Tj2FM 3AxaIasjGfKaxtpbPJvDrCqnjgrEo3fUsXq3aziG5LMTGsZ78pKFKYujUOO34l+ThRxP Q63J174MXRrDBZIC5UXrkP3a+eEG2SiyGAFtsWmg9QHzZE6+zbZwPq7GrQlhLyYabKgk n+TSLn/6xC7zqxGUU8Vr9obqXToiBPEKPYNaJ+aL6IYPpFPidy+ZaahyUIwO1bFg65jw tofWbDvyaj7oRTyyTtJT+9gLgRXdAVs5fAo40Q5dXd7Tz3enSVl/Xlf9Bdzf4Pwe4C0z yZDA== 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=VeoyF7nx; 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 m20si2655222pgb.440.2020.02.27.02.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 02:13:18 -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=VeoyF7nx; 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 A6E176E578; Thu, 27 Feb 2020 10:13:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0A6CF6E578 for ; Thu, 27 Feb 2020 10:13:12 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 01RADA8t083565; Thu, 27 Feb 2020 04:13:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1582798390; bh=cGrdzz8ubZbEjX9A2eX0STvAo2kTLZTumyl+BULt1os=; h=From:To:CC:Subject:Date; b=VeoyF7nxufm6JvXVcAeMr8naJvY+sGk6IUwX6hJvGIgF48Crsj3Mu8Qh2K8vV+x8z CcaMy4nbrj/LgMcrpLljdEUL4fMfuSzo9oMejL8m4I9HSFZBlFGmiihfTtzNFYk8nr nkHdFPI2HFyc6EegwcVEAdQXZQx953xsTzjHoPQw= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 01RADAGY064251 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Feb 2020 04:13:10 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 27 Feb 2020 04:13:09 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 27 Feb 2020 04:13:09 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 01RAD76C118676; Thu, 27 Feb 2020 04:13:07 -0600 From: Jyri Sarha To: Subject: [PATCH] drm/tidss: Add prepare_fb to the plane helper funcs Date: Thu, 27 Feb 2020 12:13:07 +0200 Message-ID: <20200227101307.4385-1-jsarha@ti.com> X-Mailer: git-send-email 2.17.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.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.ujfalusi@ti.com, tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com, g-tammana@ti.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Gowtham Tammana drm_gem_fb_prepare_fb() extracts fence and attaches to plane state. The fence info is needed if implicit fencing is used. Add this as prepare_fb function pointer to plane helper funcs. Signed-off-by: Gowtham Tammana Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tidss/tidss_plane.c | 2 ++ 1 file changed, 2 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Daniel Vetter diff --git a/drivers/gpu/drm/tidss/tidss_plane.c b/drivers/gpu/drm/tidss/tidss_plane.c index ff99b2dd4a17..345678faaeb6 100644 --- a/drivers/gpu/drm/tidss/tidss_plane.c +++ b/drivers/gpu/drm/tidss/tidss_plane.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "tidss_crtc.h" #include "tidss_dispc.h" @@ -142,6 +143,7 @@ static void tidss_plane_atomic_disable(struct drm_plane *plane, } static const struct drm_plane_helper_funcs tidss_plane_helper_funcs = { + .prepare_fb = drm_gem_fb_prepare_fb, .atomic_check = tidss_plane_atomic_check, .atomic_update = tidss_plane_atomic_update, .atomic_disable = tidss_plane_atomic_disable,