Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4149818imu; Mon, 12 Nov 2018 06:37:25 -0800 (PST) X-Google-Smtp-Source: AJdET5djAipGX7ZRPl55cHGMPBYvO0O0OW+GcS3hUr3CT0izph0b3HLvLWWuZAYaKwLNu+4eCRhE X-Received: by 2002:a65:4208:: with SMTP id c8-v6mr1009842pgq.335.1542033445466; Mon, 12 Nov 2018 06:37:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542033445; cv=none; d=google.com; s=arc-20160816; b=Ym+YR6GTQIVqToCK/m7p01I1RDeNQ9X3ryfJPSL3QMAeoKBkLBwd3fZZ2BI20Fa2Cj 6gLMcPqJ91qNJK39Zf8+77B4RPuSo4Kt01C/3dwS3KTem5kl4C4L9QRULegINNauqRrD rv3Fw6CDyhkDjf1Pn+rryBb2pNKvIw7qB2kM9km0RlNZSUEoYxll/V5/JJkFzA32zVD0 8Mz/wIliO3bRrLpyv/184C3zQJCg3ouPQ/MVWd2bnU89Sl93oOp6NFesUbT3P8bOc1g8 Fx9//qNhQt7/vi6r8yd3+eqrjL/LNW5HWZY6MV8TjhvytXYt8reuEpTja4ZNx11YzoL6 /DVA== 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:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id; bh=fuWck9AC3bLXpdAZ3AVs50nsztZWlXfzGzcXwZRxJpc=; b=Gtj/BZpu3IO13PUvtfjQPz+AwefE0trrIvcfD8dSvSGXr2s+gB3MTR3YW9Hwc4wLS7 0mpMADVMcpHZ5K9COTt+l1E9cov8lD9YrAjmUgXHdhOyT2nF1Lr0iqlcgst+9phW6qUA zbzSLamMRIWkmqU0LlUn4W9/A+fOQD4/JHiR/BklE8cRQfstvJM0FMZYxLtNErDQb1Uh zZH8Wd2K6hdQGdngz2Lp5A1uerjWh0CcZcVkQ9cG6sKP3J2ldjTvbQXqyzLrVzGMQofe fXC0/aBa9zhA1sYhKMzTC67M9Uoe8AgETJ8ZiAfhF7D76rKk+Wg4dmq0GrRwIKYggBL7 e0yg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u28si16835749pgn.436.2018.11.12.06.37.08; Mon, 12 Nov 2018 06:37:25 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729412AbeKMA3o (ORCPT + 99 others); Mon, 12 Nov 2018 19:29:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:36168 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727033AbeKMA3n (ORCPT ); Mon, 12 Nov 2018 19:29:43 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 409E4B131; Mon, 12 Nov 2018 14:36:10 +0000 (UTC) Message-ID: <1542033367.2661.33.camel@suse.de> Subject: Re: Performance regression in ast drm driver From: Jean Delvare To: David Airlie Cc: christian.koenig@amd.com, "Iwai, Takashi" , dri-devel , linux-kernel Date: Mon, 12 Nov 2018 15:36:07 +0100 In-Reply-To: References: <20181101162707.598c1718@endymion> <20181108130509.3b2d42ff@endymion> Organization: Suse Linux Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Fri, 2018-11-09 at 10:04 +1000, David Airlie wrote: > On Thu, Nov 8, 2018 at 10:05 PM Jean Delvare wrote: > > > > On Thu, 1 Nov 2018 16:27:07 +0100, Jean Delvare wrote: > > > Hi David, > > > > > > The following commit: > > > > > > commit 7cf321d118a825c1541b43ca45294126fd474efa > > > Author: Dave Airlie > > > Date: Mon Oct 24 15:37:48 2016 +1000 > > > > > > drm/drivers: add support for using the arch wc mapping API. > > > > > > is causing a huge performance regression for the ast drm driver. In a > > > text console, if I call "cat" on a large text file, it takes almost > > > twice as much time to be displayed and scrolled completely. > > > > > > Can you please check that the ast driver portion of that commit is both > > > correct and complete? > > > > And in the meantime, what bad will happen if we just revert the ast > > portion of that commit? > > This seems likely to be a hw problem with PCI writes to the AST "GPU", > since it's just some sort of RAM + ARM on the end of a PCIE bus, we've > definitely seen possible issues in the past with write combining > around some of the mga GPUs with some CPUs. Takashi asked me to compare the contents of /sys/kernel/debug/x86/pat_memtype_list before and after the commit above. Before the commit, we have: uncached-minus @ 0xfafe0000-0xfb000000 uncached-minus @ 0xfb000000-0xfb005000 write-combining @ 0xfb005000-0xfb584000 After the commit, we have: uncached-minus @ 0xfafe0000-0xfb000000 uncached-minus @ 0xfb000000-0xfb005000 uncached-minus @ 0xfb000000-0xfb800000 uncached-minus @ 0xfb005000-0xfb584000 The corresponding lines in /proc/iomem are: f0000000-fed8ffff : PCI Bus 0000:00   faf00000-fb7fffff : PCI Bus 0000:01     fafe0000-faffffff : 0000:01:01.0     fb000000-fb7fffff : 0000:01:01.0 Does it help? Is the change of type expected? Is it not a problem that one of the ranges is overlapping with 2 other ranges? -- Jean Delvare SUSE L3 Support