From patchwork Mon Feb 13 17:05:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihail Atanassov X-Patchwork-Id: 9570319 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7E9B860442 for ; Mon, 13 Feb 2017 17:05:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E606268AE for ; Mon, 13 Feb 2017 17:05:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6215726E77; Mon, 13 Feb 2017 17:05:26 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CBE08268AE for ; Mon, 13 Feb 2017 17:05:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 93E316E4BD; Mon, 13 Feb 2017 17:05:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0081.outbound.protection.outlook.com [104.47.2.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4E3766E4BD for ; Mon, 13 Feb 2017 17:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IU4F7gRLzIpzN6rBzW/i4/kD47UevXKPcxo1YU7TxFA=; b=hZ88VkqL6Eaq/+HLU+PmKUkHugFa60G73ORCQcaOzyjbYPKb6FcmyEyfD3E6PoopxtTcMtCKVsR0SSHKa3bP7eIxDhA2PKaH1ga5LFIq9yixqlm85Rks1Pw68XndU9buevSdSQ8eqAHP8uo2hAcgbLAMMSadMPtQ90geQ4vpcsU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Mihail.Atanassov@arm.com; Received: from e110433-lin.cambridge.arm.com (217.140.96.140) by DB5PR08MB0885.eurprd08.prod.outlook.com (10.164.43.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Mon, 13 Feb 2017 17:05:18 +0000 From: Mihail Atanassov To: Subject: [PATCH] drm: mali-dp: add atomic_print_state for planes Date: Mon, 13 Feb 2017 17:05:17 +0000 Message-ID: <1487005517-3186-1-git-send-email-mihail.atanassov@arm.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: AM4PR0202CA0013.eurprd02.prod.outlook.com (10.171.80.23) To DB5PR08MB0885.eurprd08.prod.outlook.com (10.164.43.27) X-MS-Office365-Filtering-Correlation-Id: 4ba27372-cbbc-4ed7-cc65-08d454327d4d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:DB5PR08MB0885; X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB0885; 3:G+oToIWshtnk1G7rsXizAw/YudjfbIW9rN5p+z3dJnFjNElrPI59rKcC3JJ1uL646Wb9jYP30tipEs67gpWPsftCs3ieaIjvocdJx7XIxcyoiwHWbgFN8y0TsOdcYDRdQSYSuuLTkPiS+ym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NoDisclaimer: True X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123555025)(20161123558025)(20161123560025)(20161123562025)(6072148); SRVR:DB5PR08MB0885; BCL:0; PCL:0; RULEID:; SRVR:DB5PR08MB0885; X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB0885; 4:ELnZh8/ao/TAp55UpRCY/EfyssP7Lhjt9MueKRpg+99raxIyg2kSb4qhkKUHjJ3Pax/OzWWypjVJtqjp7TFmu4eo8y2VBA6yG5ELnLetf5oiSB7loHQHbMBVtAM6XY1ilVrLqdN8Y21Ml+d4xr2tDYKGwX4TXhOAPkEj9SjoODqh00Hc2sOtdRLAeL70dMDM5QLtYhmqGCO1MbtYJwPVosgx32ZvK6U0MU3ULpUO87fF9Hcu8W6Vg0C/IdYsR3eR8bC43e3/f9F5M74anAIw4TWRRBLV3HSBBWgJ/lSmLrAYHWs1g+n5mzTm5Js6SpcYhGHBvHfCGGZPbTnlHzzUiXdweab1zhb6gbJZS911YKno7KJN/D8qQwzS6N1TK0qVj2qd3DFWUISGjJtYowVX+sgwVMA5U1YII/HHRSFg/bSustIg5ImH4j+ldCuID3WUQtrDFG+VbZ+N2CxpENAO3BNSe4KN4iGb0hDS130qUhro8ujctFBn/tj6fOoAo/ijFwSfkl5ttpc2erL0oifi99CjMf4vIAhH4Rf22FWbqYcQu3NTc7GqUaK0GAZfXB1B5o25tS9PB76D5wLF6FD5ZFx13NQ0arhGgIdocvYp5XJAirWoVB4vNuGCXdcRpw2dPsyC4r+3KPSwIlujsN1Zl32sioweX4yJ2XovrvJNL0M= X-Forefront-PRVS: 02176E2458 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39450400003)(39840400002)(39850400002)(39860400002)(39410400002)(199003)(189002)(189998001)(97736004)(48376002)(68736007)(50226002)(47776003)(50466002)(105586002)(92566002)(5660300001)(42186005)(5003940100001)(6916009)(2351001)(53936002)(33646002)(8676002)(106356001)(81166006)(81156014)(3846002)(7736002)(54906002)(305945005)(36756003)(6486002)(101416001)(86362001)(2906002)(66066001)(50986999)(6116002)(4326007)(110136004)(38730400002)(25786008); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR08MB0885; H:e110433-lin.cambridge.arm.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB5PR08MB0885; 23:VVYmNTO88kNdqiOwYyFcSqeZvug62ORiKnutYtmH4?= =?us-ascii?Q?Z/3IfCeg5dQsOhDRwLwwkVALivfQt1/e+ZgsWE2ksZlQ3xPXOlaOGhGOyKXO?= =?us-ascii?Q?fAN2uGBUMYTk4YpAloDAiSX2iBvgaIIL5RutpnaSWFytEFSc8CnuZa+KzXGh?= =?us-ascii?Q?fYDCcg8Phwu7rIzlStLh2uOLHBfvr8iJcliAp/9podNAp+MCwaIh/xY+6Q6W?= =?us-ascii?Q?5R1hKjiEcqnw2839uDUaqkRoO02XhWocHNhh/zEu1IwYXkP8m0Iw8eLlgpu3?= =?us-ascii?Q?bqeF8YvSvJaaaUh8+wy9s/RzgPYzy9VNiAFDKfM3I/evOfDdGAnVK0apUpNt?= =?us-ascii?Q?JDqXMhfzlDBWMVs3U4+LQXT8REnDhdG1HVJzXn0hF5VDDSNG3qFqfX3UBOPF?= =?us-ascii?Q?ggNUOYpS7tW5IBx91c60zEZZPRpDrQMEchgKHmcE+w/p8VpSja0Q/uDHUVJZ?= =?us-ascii?Q?zG6BXPj5lCsv7X2EWLjtEgH5R9dxSb8USEkRAZ3g8PPx3haX7zx4Ulcys0zE?= =?us-ascii?Q?wCkfbCNdpb0xAemB7wLOpLVFJqV0QXzHIPmwY9BpAi4/bv1jWWWcEIi6ljtL?= =?us-ascii?Q?44AP/ehNQ6NYaptD9dKwuI85psFW/oYiWSZApR7k/ej0YYlXQTScv6dUTVSY?= =?us-ascii?Q?DhEArovri6EBqiXyMBm4fbSsiUKRfBByjCDVpplXbXiNhMwbOCsSknrb9IYm?= =?us-ascii?Q?3gC+ujkOmhrh3+IRhmowaHBlNG3dwERcATtz+1d06qkyZLQJfMuHa/fvs/GF?= =?us-ascii?Q?f3OaWP92cVff9OcwQwdSKJxJVSx0tjo63CFB/H9hx7K5fIRcwcfsIst29/5z?= =?us-ascii?Q?Kks0Wxy8UKimQn64SRQY8EloRwOi6sK9b29Bqbe8OPMiDPP7LLyvMGvEUN69?= =?us-ascii?Q?qCnsCqThye5TL3VcQE/d4ODGwEg70Z+AwYb7NRL6mThgXXYMLdxFMVD8ahA8?= =?us-ascii?Q?PckVLWCRBj4s8icEbYgqc4sc0Aid1EHrv1r4cc6eO3ZwauVzBpMLHw4q6MC+?= =?us-ascii?Q?8GM0xUdYIyemKbuP8na2tYHw+WtrcKV+Sv9avG0qXfhRXe7dlZEAYiL2ui38?= =?us-ascii?Q?NoJWF7szkI+c3a+eMpMcrxT06oIxgdcbYu0qNWWEqHtN+mE4cAKqw294KASy?= =?us-ascii?Q?gFUrUFB1Yr5j2ucHQ4IXvneAv65WzOJ?= X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB0885; 6:TnI+alLZn9I4c/1OWotRHGrpLetl9yHCUSSfIvUXIbaSjpzSwOhQqGen5TQcGVLjCBPglLOt4aM++/wPIheIf0jldLjcIwgUQu7si2898QKayG2DnNdU+9y1ym1KrdtSojDlN6yzZXmnI52HCyQnXHtwHXCtswbgZWQH7OShNYmgrD0yQk68G6d/kO8RdbXNM8bEyPxx9KQOSyq2q7vOrsEb5kIkJdAnJfBgUF9JOWZmfHcHJWc8G3L0pWXov7XioCh7/ZzzZwJKB/g90UjKwS6obtN9KiKVuNnvS+aIG/A56zJF1NbqijBOlNkx9U7Hezhl88mTFyxS9mJ82gLUD+d4NjUgmdnWLDKUbIkcc0dXWqHJ2qeutxOcIZ7ZWJauNjfJ9of64/LWoPMJiISt5A==; 5:qnrVA9WgjWSWd1muRXJgv/+95k7ZPZQrEsq7ypKYCC8kAZzTCf5Uo2LxX4iDD93QcNRuo911UvbPBqz4uYgFg3Vcy1HyXHOVns7xU3hO731mLE1XGbxzYFlChjAXkxqJhHhaOMTTB50IzTag6eyagw==; 24:PYDYswEtr/xdz3d+UmQb/zT7TPN3esADdxlLqjOvw41Ruo9pErkba9c5K0YNPov+gGTQ067D2vK1+CfVwRBkvyRQDEoxZn7tW//xLGEVcjA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB0885; 7:LWjzc4rAiiubgOGBPvA5KupuZ/V5aQKeHqhWfw4EGasYFeQGswqSd0txsudJPshcLT9Jp6CDPwVpbTcx813lgRB6pP1GWRTjERGJnz1kdCYjL5Q+FmZck7zSy8TNBhUkJUS/qtjT3DJiery/ZX0JXs1ahnP05pvNxH+ITPTN5YG6K3V/XhgCBuDgNo748UQnp6MUZthhx+gf5b22GB1qvH/F0jBCiuMxxfCzhzTwgBDG7qs7urOulNF/AbijmqafeyMaxtFMXdGUMUDYK9x3MxDoQdz4Xs5xL8dNsSHcs8QahIt/yVydv2KvgYmA8ZUR9TTmP1gyK/rE4TxXWsrM6L4eb8Yp+Qav5Dy4KQ6jxzgQDTVJIpxgEYMNrGANjUHBya2PomvKau+GQtLSnWWHurn+o0MPboyU00WqHmJWOGECpdHXksOitn5Z7js+s7yOZfiq+rljbQ9SIOI6Xc+7uCK90oz5UHo5PFm5oizIzDCfQXlv9J6IBIjYEDHEo2NLX59upUh+nT/qiy4W54Z1Tg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2017 17:05:18.9887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB0885 Cc: Liviu Dudau , linux-kernel@vger.kernel.org, Mali DP Maintainers , nd@arm.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Print all the extra fields of malidp_plane_state. Signed-off-by: Mihail Atanassov --- drivers/gpu/drm/arm/malidp_planes.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c index 414aada..3879dc5 100644 --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "malidp_hw.h" #include "malidp_drv.h" @@ -88,6 +89,17 @@ static void malidp_destroy_plane_state(struct drm_plane *plane, kfree(m_state); } +static void malidp_plane_atomic_print_state(struct drm_printer *p, + const struct drm_plane_state *state) +{ + struct malidp_plane_state *ms = to_malidp_plane_state(state); + struct malidp_plane *mp = to_malidp_plane(state->plane); + + drm_printf(p, "\trotmem_size=%u\n", ms->rotmem_size); + drm_printf(p, "\tformat_id=%u\n", ms->format); + drm_printf(p, "\tn_planes=%u\n", ms->n_planes); +} + static const struct drm_plane_funcs malidp_de_plane_funcs = { .update_plane = drm_atomic_helper_update_plane, .disable_plane = drm_atomic_helper_disable_plane, @@ -96,6 +108,7 @@ static void malidp_destroy_plane_state(struct drm_plane *plane, .reset = drm_atomic_helper_plane_reset, .atomic_duplicate_state = malidp_duplicate_plane_state, .atomic_destroy_state = malidp_destroy_plane_state, + .atomic_print_state = malidp_plane_atomic_print_state, }; static int malidp_de_plane_check(struct drm_plane *plane,