From patchwork Fri Jul 13 15:10:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru-Cosmin Gheorghe X-Patchwork-Id: 10523565 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 7D9D7602A0 for ; Fri, 13 Jul 2018 15:13:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BE8529D3E for ; Fri, 13 Jul 2018 15:13:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EC5529D41; Fri, 13 Jul 2018 15:13:06 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 1784329D3E for ; Fri, 13 Jul 2018 15:13:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28F766F292; Fri, 13 Jul 2018 15:13:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40088.outbound.protection.outlook.com [40.107.4.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id A91FE6F292 for ; Fri, 13 Jul 2018 15:13:03 +0000 (UTC) Received: from e114479-lin.cambridge.arm.com (217.140.96.140) by HE1PR0802MB2556.eurprd08.prod.outlook.com (2603:10a6:3:e1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.21; Fri, 13 Jul 2018 15:13:00 +0000 From: Alexandru Gheorghe To: seanpaul@chromium.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, ville.syrjala@linux.intel.com, daniel@ffwll.ch, gustavo@padovan.org, maarten.lankhorst@linux.intel.com Subject: [PATCH v2 2/3] drm: mali-dp: Report writeback connector as connected Date: Fri, 13 Jul 2018 16:10:59 +0100 Message-Id: <1531494660-28668-2-git-send-email-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531494660-28668-1-git-send-email-alexandru-cosmin.gheorghe@arm.com> References: <1531494660-28668-1-git-send-email-alexandru-cosmin.gheorghe@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: LNXP265CA0014.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5e::26) To HE1PR0802MB2556.eurprd08.prod.outlook.com (2603:10a6:3:e1::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a9c1c4af-5ecb-489e-05a1-08d5e8d31fc3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(48565401081)(2017052603328)(7153060)(7193020); SRVR:HE1PR0802MB2556; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2556; 3:8BU2EWf4rBa5oEyFLnFfhloTRCfSqaowNxWhXObi6xohBUgvO9nHNClsJwK1IYD/54rQ7lpuXAdSFzgXyoxa34TN2B2EgLNcoLzcLi98WQEWBSc4SL/YQhevqKKkTpN5CvkHp60BS4R5Bt10PKxb3DnuYhaG44GT8X8poNpll2D7RVmNoyMh7/JT1ZfD+T4x5lab5oCQahDcUpKfxqvJ+kbvXU8bEqZFwW/bwJzNQafXapb0A7uJ56ROr3iL8Ahl; 25:DqhtPUklLCG02OCPyuQfms2RRGlhqgBA/dvqj6VlyGyQ6lsUByate39uYa5wiyXnTcuf3VGbS0n35l3Gv0x2992fetTLyfB+f7EVCG0IpWK2zsdjGq89KM0uFkMUYfd64su2yQint1WUw4IUxF1aD6+2Gg9pIXmME5hhzSDGTpI5Ygh8rErQtRUYv+gZeh2JHOseMJF4WH68JGDexC9JBKv2qnc4/LLsq/LfvaGvSt3NMze05ILGPatOOM+VjZmZh9271NLdyat0BL0NO1paDajBbm9aZ1LlYwXShF511HvA2xTUjjEYmjHC1AuLgXhFS3aRI8zjuGfeBSGVlidpGA==; 31:VMM0a+VwwOleYAMXi4HQnWjP3KdbQbf0Us9daEtnPwxlGHaLoUkyRtEo2UQdrVGAywiPjHQGP9x1G3yucQf7YfW1rtFduiBLMq/JJSp/1rK5YBigSqPcy2AFmiPxftdvXSoRivYiV2Vl5vW/30Y5zcNd80MN4jQviXEzF/XERdKBL0PjvgQ+Pc5sm9F7x1lyrWh2I4M0QAOIMXmHEjRaObd7wuq0HtDK+5wsey+yTdo= X-MS-TrafficTypeDiagnostic: HE1PR0802MB2556: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2556; 20:atPamkbujg37keNPfJIdPkDizQsIEdo4PqqJN6i+kdHWuXiB4xtn6n5sxdd9BH7ZbHuKcBW+2h5aEDjq1hobPrrG2dREItzIJi9m4jH+Leac8Xnb0rqgvgRkR6tsfQmX+J4InOfnqdyEgMXnoPZi5RA8YIGCRs/GCmxhd8n/QBw=; 4:prvTtbVC8ihHcQiqEaeAOT1GVqr8ZiwgSxUJgvhTAMNYb706MxLGNDWFBh8DatfVH4clqkCSuryzgZbUEseJe88v2ssjSfXQvIgczCiFj2Cic79OxqQSlqQx9UHSWOKhcUtbH90p8N0a1oC3MFIcZHaM9m7ZTNiUMjAI75BZtHZvCPzSnYtPmb+lIQw644CTbID866QzMLs5sl1L00jXCm2YKkXoXZxRm7lkMX3jTYukGCWRCkAageJaexIkLwFc3rvhMC3vU7n9YMjTrpJaDV+p3yGSHeAaDUUr1hTJq+W9kH499Hk7wKlzaUK0dyJ+QJwU8aWMkcKodpgAluSIgQ43k6nGVMps41LNPmmmlaA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(217544274631240); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:HE1PR0802MB2556; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0802MB2556; X-Forefront-PRVS: 07326CFBC4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39860400002)(376002)(136003)(396003)(199004)(189003)(5660300001)(36756003)(16526019)(6306002)(14444005)(25786009)(105586002)(3846002)(97736004)(6486002)(66066001)(8936002)(8676002)(86362001)(81166006)(4326008)(316002)(6116002)(81156014)(16586007)(26005)(11346002)(68736007)(72206003)(386003)(51416003)(50226002)(53936002)(478600001)(7736002)(47776003)(446003)(50466002)(486006)(2616005)(76176011)(106356001)(305945005)(48376002)(186003)(956004)(966005)(2906002)(52116002)(7696005)(476003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0802MB2556; H:e114479-lin.cambridge.arm.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1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MzqcXdnckk4yhFFUVMIWC?= =?us-ascii?Q?YlcbZ+fk+hI2aqokGZRenT4NvOcjvB4WeAJt16PEC/in73S2xzVR+RZQeysq?= =?us-ascii?Q?pmENazillGzfTQUDVGFHsGaZKwijxwGLsCsX2/MNs2bbxjTHOlnvGRoAssuj?= =?us-ascii?Q?uEOgXjN36KvRMFFteb/rzl9SeQHEveD2p8h0DsEAJ0dxb6PDqsCioIV1L8LU?= =?us-ascii?Q?e0wsQRe8jzFutQD209MLoyCF+EEYPDW+FJph4796XmIYyYQG0gCB8TdeuV7d?= =?us-ascii?Q?pFdx6o+Skygy32cKK7NXiCvLFcPYvf1mJJgd8RFnc+TXqZL3WdPHbcHavM9r?= =?us-ascii?Q?H5QKk9F5FYGHO6QTKU72R/iJEDVDlDBIjgEryLrZn5slISADwiDudCCX3Nw?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Antispam-Message-Info: wRrgRycwWUvCo8Zs/STQeQ4tUn7EAXRyGhVe6dbPXy2PCVUe0xnofJgEO8JS87B33baAZoXq+tqpfcGJykiQxEMNu8QBGyiobGkPPbYW6M6IWsELukZe63J1pkFYCLjXIaFhkeKyKXU80wp0IaPHJBNvzjmOLh1hfVd81puh44Y01UJpZLUntphFh3VafKqyvMCzkdbRb5+CWF/yINKcV1vkSvUDEd1WxTiM/tksn3XZajmRtYR+2LcJgsVEOWliGBRUpYzNF/WeQ5SrqPwhEfI1bkVx9k7qKbDZlTmT/xqWdT07BgEOeDfGpaXSNlq7MKnuk35eJJt3NrwKibJFFO4ex5i1Q3JsD3m3PSsGJoA= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2556; 6:7CwT6auP2xTU41H+hUSbGsiWUT+bYlH5YavNvvtD2cpREQYvdLThOqSM/NvTdlqaoKmPyGweaDL/MuG/4pXD9Fs/2ipSx3g2WabWnck7kXU0iRUpUW+2NgEjOx+nGnCBIQ5YiG/8pD8q+sf5+0PNwmI4yJ9X1dPsLbep8+MP/bd5AEPuK5SuSNH8a37rdUvb8jtiZpOVQMOf0/O2dZo/flrnXcX62s0qOb9MdLwHsqxfLYQBbtPTV00YPSvblPxImzWGR09dNJxO7wIKHnOsTH2lYgc1rUXAUJvtBLc79x2pWmF94kedpYEleu2HT8dMV88JE6b7/xLOovFWX3gutSul+fvC1oRFZwvcNidU2o8oJ+7uAhB6wZ2BE/JaQFRzFO2M1suOhfm4UlynzTYQp8EJTgtcwATD3kyxdBl/lMNpS1W+2qzavPKoVeSFwMIlDpzmNDimpT/IbEirZJPhFw==; 5:IGRJHTC4B8tGYV40byr6IgVsCsRS6UWHeDYNDhvJFpMCyNa3zkXcGPeh5wR8C0IlfIOPXE8Dqx9mWpWn5ijN9pOhPhQ4UQsncKq9gUAE/8y45YTRC8wDNPFJ/xh0UUluN51a/6X0gHg3jkqk00uZidztmo1qYJvdvLp429NT9To=; 24:6Z6yFvG/GSCH21NQ6liBBhc0cuITITQoiw3+soyneUWJghkuuQKaUfDhJWMI4+AKkfDCFELfmtvX4sVAPB8T6g08LJ8NxuiK46NVdW/lU40= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2556; 7:YcmCfd0oZAcxsmIgLWO1GM8m5fCjPOXRESzTX1ohvvxOU0j7JVbGQn8Aiv0K4AQTtsYgC2825fiNd9t9EwNTiX6kJ00Ps6tUj2yDPzmNjCwrhedQk1KnPRga0L3wM5jJz/TdrBRgHAuUGAQnXYY0bliQwzaIScomyWXE85CZOyKKfyA+zzOX/vCtBXJNwCFtCNj7kCptYrPKUl788IsRYRppDTAtCCAqXox8Zpw/GZwyA8m3M+NShIrj9pTsq7AY X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2018 15:13:00.4765 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9c1c4af-5ecb-489e-05a1-08d5e8d31fc3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2556 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: nd@arm.com, Alexandru Gheorghe Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Older version of this patch series reported writeback as disconnected to avoid confusing userspace not aware of writeback connectors. However, the version that got merged uses a special cap (DRM_CLIENT_CAP_WRITEBACK_CONNECTORS) for this purpose. This helps us avoid some special handling of writeback connector in drm_helper_probe_single_connector_modes, see [1]. https://lists.freedesktop.org/archives/dri-devel/2018-July/183144.html Signed-off-by: Alexandru Gheorghe Reviewed-by: Sean Paul Acked-by: Liviu Dudau --- drivers/gpu/drm/arm/malidp_mw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arm/malidp_mw.c b/drivers/gpu/drm/arm/malidp_mw.c index cfd718e..ba6ae66 100644 --- a/drivers/gpu/drm/arm/malidp_mw.c +++ b/drivers/gpu/drm/arm/malidp_mw.c @@ -73,7 +73,7 @@ static void malidp_mw_connector_reset(struct drm_connector *connector) static enum drm_connector_status malidp_mw_connector_detect(struct drm_connector *connector, bool force) { - return connector_status_disconnected; + return connector_status_connected; } static void malidp_mw_connector_destroy(struct drm_connector *connector)