Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750919AbdGYI4W (ORCPT ); Tue, 25 Jul 2017 04:56:22 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:62910 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbdGYI4U (ORCPT ); Tue, 25 Jul 2017 04:56:20 -0400 X-AuditID: b6c32a39-f794a6d0000049f6-b3-597707b2c1d3 From: Bartlomiej Zolnierkiewicz To: Dave Airlie Cc: Peter Jones , Dave Airlie , Linux Fbdev development list , LKML , Andy Lutomirski , "H. Peter Anvin" , Linus Torvalds Subject: Re: [PATCH] efifb: allow user to disable write combined mapping. Date: Tue, 25 Jul 2017 10:56:15 +0200 Message-id: <3242167.nzKsUOiBJb@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset="us-ascii" X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0iTYRTHeba9F2eTt83LQVNrFqSUpiW+dg/8sEIikiArypEvU3Q69jpN +6KQtzGGpnYZ4q2EGl6nqDnTcDRXkdfMUtQKohRdgmnWIGt7J/jtdzj/8z/n//CQfHE15k+m ZmQx6gx5uhQXCrosoREHTURO4qHCajFtm2rg0ZPTdTz6XrsfbdOvYPREbzVOj/Q2Y7S2/gNB f9EvE6dJ2TPDLCEzGUtxme2BQyD70T+Jy1ZNQTLbnZ/YBfyK8Hgyk56azagjTiYJU2bHzYTq rvhWu2NdkI9KvbTIgwTqCNQ2TQg49oXRuVZci4SkmOpB8KrJirhiFcGb0d+8rYnCFou70YzA pGvhc8Uagr6+RuRU4dRRKC82utibCoGvFgfhFPGpeh7MD3fjzoaEOguj9VX/p0lSQO2D9ZEk J4qoUBh+HeVU+FDnoLO/2LXYg0qAKcs716kiaidsVMy5mE8FQ/9AFcbxAXhrbXEdB1Q/AdrN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RwrxpiRWVqUW5ccXleakFh9iNAX6biKzlGhyPjAd5JXEG5pYGpkYmJkZ GhkYmymJ804I/BIhJJCeWJKanZpakFoE08fEwSnVwFgiL8z83O1cje8TxS/TG1n+8f1UPLmg a8btl4f/e8xkkYte1Sd/rKzA8jRnQ/ZsHekdLIcKMiK3rzCYL/ql6LHg7OOtFvc6HaL4Pyeu mcp+RLFWotXzwCuj+TGSetzc6mILf6hembTogJvfBEH/lX2HfmziO3Pz3bdUdQlhFd4tK92u V+gZxCqxFGckGmoxFxUnAgB50fQ3zwIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170725085617epcas1p2d5f50a43c0f31ee4247bc844e5cc3ed3 X-Msg-Generator: CA X-Sender-IP: 182.195.42.79 X-Local-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRvsgrzshLHsoITsnpAbU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRtTYW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBF?= =?UTF-8?B?bmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 101P X-CMS-RootMailID: 20170725040003epcas5p1cc42506d53f8b865e4cfb7030bdcb9c4 X-RootMTR: 20170725040003epcas5p1cc42506d53f8b865e4cfb7030bdcb9c4 References: <20170718060909.5280-1-airlied@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2269 Lines: 51 On Tuesday, July 25, 2017 02:00:00 PM Dave Airlie wrote: > On 19 July 2017 at 00:34, Peter Jones wrote: > > On Tue, Jul 18, 2017 at 04:09:09PM +1000, Dave Airlie wrote: > >> This patch allows the user to disable write combined mapping > >> of the efifb framebuffer console using an nowc option. > >> > >> A customer noticed major slowdowns while logging to the console > >> with write combining enabled, on other tasks running on the same > >> CPU. (10x or greater slow down on all other cores on the same CPU > >> as is doing the logging). > >> > >> I reproduced this on a machine with dual CPUs. > >> Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz (6 core) > >> > >> I wrote a test that just mmaps the pci bar and writes to it in > >> a loop, while this was running in the background one a single > >> core with (taskset -c 1), building a kernel up to init/version.o > >> (taskset -c 8) went from 13s to 133s or so. I've yet to explain > >> why this occurs or what is going wrong I haven't managed to find > >> a perf command that in any way gives insight into this. > >> > >> 11,885,070,715 instructions # 1.39 insns per cycle > >> vs > >> 12,082,592,342 instructions # 0.13 insns per cycle > >> > >> is the only thing I've spotted of interest, I've tried at least: > >> dTLB-stores,dTLB-store-misses,L1-dcache-stores,LLC-store,LLC-store-misses,LLC-load-misses,LLC-loads,\mem-loads,mem-stores,iTLB-loads,iTLB-load-misses,cache-references,cache-misses > >> > >> For now it seems at least a good idea to allow a user to disable write > >> combining if they see this until we can figure it out. > > > > Well, that's kind of amazing, given 3c004b4f7eab239e switched us /to/ > > using ioremap_wc() for the exact same reason. I'm not against letting > > the user force one way or the other if it helps, though it sure would be > > nice to know why. > > > > Anyway, > > > > Acked-By: Peter Jones > > > > Bartlomiej, do you want to handle this in your devel tree? > > I'm happy to stick this in a drm-fixes pull with this ack. I'll put it into fbdev fixes for 4.13 with other fbdev patches. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics