Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp312796ybe; Tue, 3 Sep 2019 23:28:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzI89UOge29cT87SEIm4V6TXKgnAZJoQ+XSUQRoCmf/Xb0zze5NOLJXDrH/ivBWDU2YnkQj X-Received: by 2002:aa7:8556:: with SMTP id y22mr17482741pfn.252.1567578495035; Tue, 03 Sep 2019 23:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567578495; cv=none; d=google.com; s=arc-20160816; b=C7D+yuR5T8cVcGP86DX95szgcSZE+DPWfkfwYgrlfwsApjXFSE3QlDyacQtxym4GQP e6YV+zLi3zAwewyrxadYoyNN07WXOv47XacpjOXHX2izhS4x2f2XxicyMNEMYW3mnxor ofvRZ5czcI0tbphMKdsio27R8SRT+nRop0GoWP7oyJd9OX9zOIwghzI1d7HdnIZek+8F vEO4Qu8/lWTKrBUqSQ3UXmmywEikkw6Gb3XwTu/IkEvI4eaNCHDBqWOtQrOPmHVb1zNc RnLtZoNCZzHZboSdCHqVsy8NhCtSs3m6fZx6CUn/R8uNS252eUVfHSe0M24rXP3buvf+ NLHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=301QxUco5I3dQe4T+We/wenGJ04JMaljq/r8UhNBVjs=; b=e5LPgYkf/8SsddhxGb8uzUztn8KN0NpGtCyFFrYNWGbhO5LiUOb/DqZnFrePDyi9xm BYOzP8cTpYP0z/O6tkp6ueH1JmBKqkHXapeN5O8EbRi02An8DXwke1TJcaUn1tSsb8Ex zpUcHMKqKT0HHhhl2fGKS/pzczYIphi4d4uzd/gb2Uy8NaW6mwUl74m0MJLjIwdO/GFy jO4JvUWZA2fTO8UsKcFJ0SZzB5TxF6OB17beyaNTKdUvLGN+eBOM5i1JemwELVDqh431 ZDMtOQdJ+Gs/ObweCuzV22jZrYDjVzodeTQlgXjAfeihuHNWw2dm2Lqj8yKeenSnJBEG 9IXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si2214360pfw.253.2019.09.03.23.27.59; Tue, 03 Sep 2019 23:28:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728756AbfIDG0w (ORCPT + 99 others); Wed, 4 Sep 2019 02:26:52 -0400 Received: from mga05.intel.com ([192.55.52.43]:61238 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbfIDG0w (ORCPT ); Wed, 4 Sep 2019 02:26:52 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Sep 2019 23:26:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,465,1559545200"; d="scan'208";a="198955603" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.147.113]) by fmsmga001.fm.intel.com with ESMTP; 03 Sep 2019 23:26:50 -0700 Date: Wed, 4 Sep 2019 14:27:16 +0800 From: Feng Tang To: Thomas Zimmermann Cc: Rong Chen , Stephen Rothwell , michel@daenzer.net, lkp@01.org, linux-kernel@vger.kernel.org, dri-devel Subject: Re: [LKP] [drm/mgag200] 90f479ae51: vm-scalability.median -18.8% regression Message-ID: <20190904062716.GC5541@shbuild999.sh.intel.com> References: <20190812072545.GA63191@shbuild999.sh.intel.com> <20190813093616.GA65475@shbuild999.sh.intel.com> <64d41701-55a4-e526-17ae-8936de4bc1ef@suse.de> <20190824051605.GA63850@shbuild999.sh.intel.com> <1b897bfe-fd40-3ae3-d867-424d1fc08c44@suse.de> <44029e80-ba00-8246-dec0-fda122d53f5e@suse.de> <90e78ce8-d46a-5154-c324-a05aa1743c98@intel.com> <2e1b4d65-d477-f571-845d-fa0a670859af@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e1b4d65-d477-f571-845d-fa0a670859af@suse.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Wed, Aug 28, 2019 at 12:51:40PM +0200, Thomas Zimmermann wrote: > Hi > > Am 28.08.19 um 11:37 schrieb Rong Chen: > > Hi Thomas, > > > > On 8/28/19 1:16 AM, Thomas Zimmermann wrote: > >> Hi > >> > >> Am 27.08.19 um 14:33 schrieb Chen, Rong A: > >>> Both patches have little impact on the performance from our side. > >> Thanks for testing. Too bad they doesn't solve the issue. > >> > >> There's another patch attached. Could you please tests this as well? > >> Thanks a lot! > >> > >> The patch comes from Daniel Vetter after discussing the problem on IRC. > >> The idea of the patch is that the old mgag200 code might display much > >> less frames that the generic code, because mgag200 only prints from > >> non-atomic context. If we simulate this with the generic code, we should > >> see roughly the original performance. > >> > >> > > > > It's cool, the patch "usecansleep.patch" can fix the issue. > > Thank you for testing. But don't get too excited, because the patch > simulates a bug that was present in the original mgag200 code. A > significant number of frames are simply skipped. That is apparently the > reason why it's faster. Thanks for the detailed info, so the original code skips time-consuming work inside atomic context on purpose. Is there any space to optmise it? If 2 scheduled update worker are handled at almost same time, can one be skipped? Thanks, Feng > > Best regards > Thomas