Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp396751ybe; Wed, 4 Sep 2019 01:13:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeA5dyK+iZPBo2zSWU3y7JyTmJWAjv6AJghJimffl4r8TbY2NhNfiBT7gpU41gVNTkS6+i X-Received: by 2002:a17:90a:de16:: with SMTP id m22mr3547814pjv.40.1567584832717; Wed, 04 Sep 2019 01:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567584832; cv=none; d=google.com; s=arc-20160816; b=P91zcmeKRwUTbNBVbC6Zhgo9Po1sHx2L2Nr9AQabRFVIhpDScKLkF2r4p4d1stmrJ7 ovnlqTUQTk67qpKMy6ONwT2jV+bTtnt+LvIBg3/9nXqBj8PMZP1lcbAtJwoTYPj1Xnnv YOAQSHmO20IvkQfP6c4T5/rJugp/tHdFnioAcboDIG5I9QBFGi4uwOr0zyTSODQZhalG twY/I2AZNEGg1Aw+kfl7OzapnXXKhrblJXQJtxjPA1VDirMaK6hhm3Y/Dcov5Kfn5FON /mmBzg+H9ThogL9CrXopG2cPf73fBmjCXbWt2h4Y+zfKDFYjMav2UcXcNGTZVFqySDmh LtFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QBe1xYUcl4wDPPrpgdNI6/tC7+3FY0gRDDgV5gUzDa0=; b=k34cdRrbZaXLwaCKMjRfoBEwU22zk0xayYUP5jG9VRRmSqGP9ixYJVBraPMssx/ctN ziQZFJ96o4MKfYDBVZHHaHAnvZWPZMNlUdMn2sBvrwViaUHnH00S92auGS1B6Jrf9D14 OkzBtulUKrIM/G2j7F2yYr8Fv9zuMeHla5YpJcRI4cTz5+v/NxMrJqoztM6wcq3sbaN0 kPbFdQtBAaHQh8ALlDwM4uxnNtAcK4mkOM+hhAL+KbzHYS0vlCzfsEljIo7ySQP+Lm2w a8V0TrexBJG0sxaCoaUCC8AUOhE/FGIvs6hvsJHxnqPfbQH897w6yphUS3akDvsIc80M Rihg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Rueq1X24; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l184si16540250pgd.203.2019.09.04.01.13.35; Wed, 04 Sep 2019 01:13:52 -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; dkim=pass header.i=@ffwll.ch header.s=google header.b=Rueq1X24; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729146AbfIDILY (ORCPT + 99 others); Wed, 4 Sep 2019 04:11:24 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36244 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727787AbfIDILY (ORCPT ); Wed, 4 Sep 2019 04:11:24 -0400 Received: by mail-oi1-f196.google.com with SMTP id k20so8697221oih.3 for ; Wed, 04 Sep 2019 01:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QBe1xYUcl4wDPPrpgdNI6/tC7+3FY0gRDDgV5gUzDa0=; b=Rueq1X24ipwfeeFmHVaKF9ycat0gHgTh38x0qR37JORw4l5B2Wx493lvyQia1pYdLI XNHfFSGS00l0i9/yVSMrUkxRqU9GDLooHyNNMbCUv8+BSDeEsz1XqDoJoGfWRTlCcUPr E+1DBRUq50i1U1CmBJ2wizt5bfZY1AGffFX8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QBe1xYUcl4wDPPrpgdNI6/tC7+3FY0gRDDgV5gUzDa0=; b=BE6Lh+4CrYhQ2aZnOvcJGo3yDTDoGdJ2VdUGqoQ1QTWOzzexji/XlDGg43C+E/77VC PeL+Rz7MA+AIHi6ULuZD7L/Jw4and720DGjUlGvCZkd7YWPmvYFY09VIruokh22p/VPr 9hTPZrtPld1pIHUJjyi1ldIYM9F4eMZOul7Esg0mgTgdPYHiG1/j6mmgW5UJp5vfExVG iJOT3NFm2fGyOgxcH5LJxjIb+97d7+VG8jjMmWeVlFbXd6V01yKvIYwRRd8ROUJLPcsU OJv61feb1rmASNNbpCZhZ/TmGexuhHlFj/QLrpV2hk8BEGbtlZel359Ln7JNagGApN7f 9JHQ== X-Gm-Message-State: APjAAAXMKTs9Y5fFSJMPHp9OyaJH1sqcb+VRuXmxcxofggSWDa/fJL0E 7EfQXYb7qafQKsbW4UsBkPMa6b4fm6ijbfJajf38EspCyWM= X-Received: by 2002:aca:f20a:: with SMTP id q10mr2479529oih.128.1567584683033; Wed, 04 Sep 2019 01:11:23 -0700 (PDT) MIME-Version: 1.0 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> <20190904062716.GC5541@shbuild999.sh.intel.com> <72c33bf1-9184-e24a-c084-26d9c8b6f9b7@suse.de> In-Reply-To: <72c33bf1-9184-e24a-c084-26d9c8b6f9b7@suse.de> From: Daniel Vetter Date: Wed, 4 Sep 2019 10:11:11 +0200 Message-ID: Subject: Re: [LKP] [drm/mgag200] 90f479ae51: vm-scalability.median -18.8% regression To: Thomas Zimmermann Cc: Feng Tang , Stephen Rothwell , Rong Chen , =?UTF-8?Q?Michel_D=C3=A4nzer?= , Linux Kernel Mailing List , dri-devel , LKP Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 4, 2019 at 8:53 AM Thomas Zimmermann wrot= e: > > Hi > > Am 04.09.19 um 08:27 schrieb Feng Tang: > >> 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 th= e > >> 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 b= e > > skipped? > > To my knowledge, there's only one instance of the worker. Re-scheduling > the worker before a previous instance started, will not create a second > instance. The worker's instance will complete all pending updates. So in > some way, skipping workers already happens. So I think that the most often fbcon update from atomic context is the blinking cursor. If you disable that one you should be back to the old performance level I think, since just writing to dmesg is from process context, so shouldn't change. https://unix.stackexchange.com/questions/3759/how-to-stop-cursor-from-blink= ing Bunch of tricks, but tbh I haven't tested them. In any case, I still strongly advice you don't print anything to dmesg or fbcon while benchmarking, because dmesg/printf are anything but fast, especially if a gpu driver is involved. There's some efforts to make the dmesg/printk side less painful (untangling the console_lock from printk), but fundamentally printing to the gpu from the kernel through dmesg/fbcon won't be cheap. It's just not something we optimize beyond "make sure it works for emergencies". -Daniel > > Best regards > Thomas > > > > > Thanks, > > Feng > > > >> > >> Best regards > >> Thomas > > _______________________________________________ > > dri-devel mailing list > > dri-devel@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > > > -- > Thomas Zimmermann > Graphics Driver Developer > SUSE Linux GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany > GF: Felix Imend=C3=B6rffer, Mary Higgins, Sri Rasiah > HRB 21284 (AG N=C3=BCrnberg) > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel --=20 Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch