Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp556770ybe; Wed, 4 Sep 2019 04:17:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxV8lArrL670A+7no+hphD4jW/SbcDi4gfSbPREwb3fINxkILEG9zhgbQDzoTZK9E3/xYf5 X-Received: by 2002:a62:e403:: with SMTP id r3mr19845040pfh.251.1567595877237; Wed, 04 Sep 2019 04:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567595877; cv=none; d=google.com; s=arc-20160816; b=yTVuoXr89utWyL9g5R9GvKTBv683Y4pQLM9QaReZqCEj6YawrneX5gip9rd+PsgOOI sXpyB/RoCM40a/SNtd+nVqFNuR3BOuJoY+TD8o1VkqdRN9T7gR6larE/MR86hE+RU3ob 9q3KJnrSZ6pPRsExkMjWLgPDnFqs3Y8oF02St1RG7l07qaNcCrffrXqwJNmmoDtYxEm1 5tp1ROMQXCUXNPRxC0hZZUUY5uCD42eWLAClLNJO7k8jNe7XKvpPULExPYHYbbq1Ok5V SHMYYfFAYDTUC68f3rPr0Rq4aQJ4CthH3JIBrL+eSD0Aw4hcRGhBFPPyFCe7Xeo4YF2N HqjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nHq3ycJ87pRU9sYhgJHhfznS6sB5FLISaAxTxaJIi4Q=; b=G9wTdRGJ7G8stEta2tqQBvFAwmKeoiuUE3wdj7xOWQl1d0PP4v+TR9jZzONvXTSuPH SOW4jl2/924xC6CkJYEmTEQTPmGpZmvMoiXRWtHJLtEJXmBUL4VSQE5AaYszgVaVpft/ TLyj1QCH2pX7ULSpfopoEwJgCNGI8L2G7D+S+8jpU6eJ4BxUjkf58m0hODzbM10iKKyj 8gU33qOx1FfRr/4KTvfHLpBqDMEDL69rLkLe62i2IOChDHcvDQNJhq9J2Vyxc84UEFuw X8dMpjitG97I66PDco8W3Lv7IjK86khgEcwc/dcXyw4ZpTZnGMTL6wWA1ThgCN0Fcxhq F2TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o5p1efLJ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v19si2014085pjn.96.2019.09.04.04.17.41; Wed, 04 Sep 2019 04:17:57 -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=@gmail.com header.s=20161025 header.b=o5p1efLJ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729269AbfIDLPh (ORCPT + 99 others); Wed, 4 Sep 2019 07:15:37 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44684 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727351AbfIDLPh (ORCPT ); Wed, 4 Sep 2019 07:15:37 -0400 Received: by mail-lj1-f195.google.com with SMTP id u14so12640381ljj.11 for ; Wed, 04 Sep 2019 04:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nHq3ycJ87pRU9sYhgJHhfznS6sB5FLISaAxTxaJIi4Q=; b=o5p1efLJErepXbkkgoCaSYwntoU0Yu8oLiX3TSWnk3q6AbU+GcoP4l60fwxs/JVYkT H7o/ClMARxhMlbsc2ku8rtFBEODbtEd6NBg/8RTXwh2XVpmM6KoQEuEqv8x3lG8PV5yH NgjzR+Z7vePf8ctqggj4hEqE9o/H3pQyISJm8Fheau6OnI2bj7JgLVQZT/wKheLpFBEf +WdRRNgoSoWxoCV0BrZe20hDQpmhoYUfe4wD1JRzWTNtRXcr2/ERQldKIfVJjxecStiK 9PBW5cOu9tDZ7AAc0UEv7fjrfKGDyFBre0HbqqFPSmsMfpt57lx43LjyPxlZSNg/bp4E lsTQ== 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; bh=nHq3ycJ87pRU9sYhgJHhfznS6sB5FLISaAxTxaJIi4Q=; b=fbh9vLyJMzUKPlINE+O8dR/TjygaIEaJTMYtIqGFevhpDvxFtppbBu2rdjohAmwmpL PCoAvO/7LMNe37qTFjV/aeApknzvAeZT3wieBnAIv5vwWlHRW9gNp4AmyyFe18dqC73I +hwl1l8rGyWbvhRNdbN7yrSgH2Koj6XDap7NQOdxEEFJVeSM7txJ6MP2eo4jMfrWCZ4I +RCe+M+lQDZvOqsQRXbklVHuGYkV9kB5aEx3g3AakYyMsjNxqjFKCZAGn+IrOtfLM9/w WSuj36BW+FcODQKnJ38xpFxvriZxRqwtqfx6HQkKOecJJ9Qkugn73zaPGl+dsk8iQEml rKIQ== X-Gm-Message-State: APjAAAXN5dNfK6nLc1SArO9xwrZs5n2v0lLPvGzKwWb4hjdE8oRBUgTD 2VhEd9NzvCidE0b7KxuaKY2/+X+cbHsX4gQUkvc= X-Received: by 2002:a2e:780c:: with SMTP id t12mr10331161ljc.226.1567595735449; Wed, 04 Sep 2019 04:15:35 -0700 (PDT) MIME-Version: 1.0 References: <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> <20190904083558.GD5541@shbuild999.sh.intel.com> In-Reply-To: From: Dave Airlie Date: Wed, 4 Sep 2019 21:15:23 +1000 Message-ID: Subject: Re: [LKP] [drm/mgag200] 90f479ae51: vm-scalability.median -18.8% regression To: Daniel Vetter Cc: Feng Tang , Stephen Rothwell , Rong Chen , =?UTF-8?Q?Michel_D=C3=A4nzer?= , Linux Kernel Mailing List , dri-devel , Thomas Zimmermann , LKP Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 Sep 2019 at 19:17, Daniel Vetter wrote: > > On Wed, Sep 4, 2019 at 10:35 AM Feng Tang wrote: > > > > Hi Daniel, > > > > On Wed, Sep 04, 2019 at 10:11:11AM +0200, Daniel Vetter wrote: > > > On Wed, Sep 4, 2019 at 8:53 AM Thomas Zimmermann wrote: > > > > > > > > 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 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? > > > > > > > > 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. > > > > Hmm, then for the old driver, it should also do the most update in > > non-atomic context? > > > > One other thing is, I profiled that updating a 3MB shadow buffer needs > > 20 ms, which transfer to 150 MB/s bandwidth. Could it be related with > > the cache setting of DRM shadow buffer? say the orginal code use a > > cachable buffer? > > Hm, that would indicate the write-combining got broken somewhere. This > should definitely be faster. Also we shouldn't transfer the hole > thing, except when scrolling ... First rule of fbcon usage, you are always effectively scrolling. Also these devices might be on a PCIE 1x piece of wet string, not sure if the numbers reflect that. Dave.