Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935565AbdGTJBK (ORCPT ); Thu, 20 Jul 2017 05:01:10 -0400 Received: from eu-smtp-delivery-167.mimecast.com ([146.101.78.167]:21365 "EHLO eu-smtp-delivery-167.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933932AbdGTJBG (ORCPT ); Thu, 20 Jul 2017 05:01:06 -0400 X-Greylist: delayed 304 seconds by postgrey-1.27 at vger.kernel.org; Thu, 20 Jul 2017 05:01:06 EDT From: Michal Lukaszek To: Daniel Vetter , =?utf-8?B?U3TDqXBoYW5lIE1hcmNoZXNpbg==?= CC: Dave Airlie , Linux Kernel Mailing List , dri-devel , Dawid Kurek Subject: RE: [PATCH] drm/udl: Make page_flip asynchronous Thread-Topic: [PATCH] drm/udl: Make page_flip asynchronous Thread-Index: AQHS+hMvycPJxZ6m/0a6y/UnWemO4KJR9TgAgAAMm4CACm55IA== Date: Thu, 20 Jul 2017 08:54:35 +0000 Message-ID: References: <20170707054849.GA16959@displaylink.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [85.14.102.90] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1PR0701MB2490;20:Kkd8QKSVYRcl8FFTusHtNBsTc7R+n9IKSP44+QX9kayz2G2cfcyT2SFCUukEH2bZK8mxU5YY5PGre3UeR3th0gPscQdq20UZl9y+CwF/xRdNa7Y/gwN5PdMNh21+xngGnr8KJKVDR3dlw4wL3YkEBSMyE0Ng9G+nT7PrguLDQuo= x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(6009001)(39830400002)(39450400003)(39400400002)(39410400002)(24454002)(377454003)(55016002)(2900100001)(189998001)(25786009)(5660300001)(54906002)(99286003)(39060400002)(102836003)(3846002)(9686003)(6306002)(6116002)(54356999)(50986999)(93886004)(66066001)(7696004)(6246003)(107886003)(53936002)(76176999)(6436002)(38730400002)(4326008)(53546010)(74316002)(966005)(5250100002)(14454004)(305945005)(3280700002)(478600001)(33656002)(3660700001)(2906002)(2950100002)(7736002)(8676002)(6506006)(8936002)(229853002)(81166006)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR0701MB2490;H:HE1PR0701MB2219.eurprd07.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; x-ms-office365-filtering-correlation-id: cbb625b1-8477-44e8-d043-08d4cf4cf256 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:HE1PR0701MB2490; x-ms-traffictypediagnostic: HE1PR0701MB2490: x-exchange-antispam-report-test: UriScan:(133145235818549)(236129657087228); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:HE1PR0701MB2490;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:HE1PR0701MB2490; x-forefront-prvs: 0374433C81 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: displaylink.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2017 08:54:35.4210 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a4bda75a-b444-4312-9c90-44a7c4b2c91a X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2490 X-MC-Unique: 65UFVUsBMJ2h7yMU2hZNKA-1 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v6K91DcX007511 Content-Length: 1297 Lines: 25 On Thursday, July 13, 2017 7:11 PM, Daniel Vetter wrote: >>> Can't we roll this driver over to the atomic helpers instead? There >>> you get nonblocking pretty much for free ... I'm not sure extending >>> the old modeset code has all that much benefit really. >> This code certainly has value by itself; it makes the driver more >> efficient. I think the best can sometimes be the enemy of the good -- >> this code is here and written, but I don't think any of us is going to >> tackle atomic for udl. > Sure, I guess I should have clarified this with "If you want me to > review and merge this, then pls look into atomic, since that seems > actually beneficial for my own interest". I'm not paid by intel to > review driver patches at random, but to keep overall drm in nice > shape. Moving drivers to atomic and using more shared infrastructure > is in that interest, reviewing random driver patches isn't. So, what's the next step here then? This code makes udl work better, without investing a lot of effort to move everything to atomics. Btw, this is already causing modesetting not to support page flips (while Chrome OS, having this code uses page flips with udl): https://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/drivers/modesetting/driver.c#n1198 Regards, Michal Lukaszek