Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751059AbdGaRK1 (ORCPT ); Mon, 31 Jul 2017 13:10:27 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:33087 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750881AbdGaRKY (ORCPT ); Mon, 31 Jul 2017 13:10:24 -0400 X-AuditID: b6c32a37-f79886d000004f16-04-597f647ee054 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: Mon, 31 Jul 2017 19:10:19 +0200 Message-id: <9159891.uf5zLSyfMh@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <3242167.nzKsUOiBJb@amdc3058> MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset="us-ascii" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDKsWRmVeSWpSXmKPExsWy7bCmgW5dSn2kwdLtJhYnri9isrh6awGT xbSN4hYn+j6wWlzeNYfN4vyutawWXQtvsFs86nvL7sDhsXPWXXaPTas62TxOzPjN4vF+31U2 j8+b5DxOtHxhDWCL4rJJSc3JLEst0rdL4MpYfOEYc8E14YoVD2YxNzD28ncxcnBICJhInN7B 1cXICWSKSVy4t56ti5GLQ0hgB6PEnaZmVgjnM6PE68P3mGAa9n3VgSta8LSFEcL5yijxtu0s O8goNgEriYntqxhBbBEBZYmnh3+zgxQxCyxkkrh/bjsbSEJYwFPiwsKpzCA2i4CqxI+mb2A2 r4CmxLfl05hAbFEBL4kt+9rBbE4BLYmDExexQtQISvyYfI8FxGYWkJfYt38qK4StI3H22Dqw iyQEdrFLLDvxhQ3ibFmJTQeYIf50kXjRspYRwhaWeHV8CzuELSXR+PIhE4Q9nVFi+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IqtSg/vqg0J7X4EKMp0H8TmaVEk/OBCSGvJN7QxNLIxMDMzNDI wNhMSZx3QuCXCCGB9MSS1OzU1ILUIpg+Jg5OqQbGbYftBCumuyUyb2CYvPm88O+a9m/Md+ek CR70M6vVXB/QqqrblfVjwdXFS2ebKsnN2GvPIatssW/lrgcqF+/w8LLOizTZ8YrvYsRpsz72 Jxbut3xm3d2mcZ/DZHOVxfqMDqdrG3zyXngI6+6Uu/7t4v5rzH5v/z3ct9a83PKaadsbn3dF 9u9TlViKMxINtZiLihMB0EpEItACAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170731171022epcas1p2c5537a0a79eca05a729773d4cabaac27 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: 20170731171022epcas1p2c5537a0a79eca05a729773d4cabaac27 X-RootMTR: 20170731171022epcas1p2c5537a0a79eca05a729773d4cabaac27 References: <20170718060909.5280-1-airlied@redhat.com> <3242167.nzKsUOiBJb@amdc3058> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2462 Lines: 54 On Tuesday, July 25, 2017 10:56:15 AM Bartlomiej Zolnierkiewicz wrote: > 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. Patch queued for 4.13, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics