Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752797AbdCFH3r (ORCPT ); Mon, 6 Mar 2017 02:29:47 -0500 Received: from terminus.zytor.com ([65.50.211.136]:50030 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752599AbdCFH2s (ORCPT ); Mon, 6 Mar 2017 02:28:48 -0500 Subject: Re: Question Regarding ERMS memcpy To: Logan Gunthorpe , Borislav Petkov , Linus Torvalds References: <20170304224341.zfp4fl37ypt57amg@pd.tnic> <5CCEF10D-5647-4503-A398-0681DF2C8847@zytor.com> <20170305001447.kcxignj3nsq35vci@pd.tnic> <20170305003349.6kgq4ovj7ipezfxu@pd.tnic> <20170305095059.l4od2yjqm5yxx6ln@pd.tnic> <20170305195432.6occvwaujq3l4ejl@pd.tnic> <5be40886-b468-d828-f948-2ad99b95a230@deltatee.com> Cc: Thomas Gleixner , Ingo Molnar , Tony Luck , Al Viro , the arch/x86 maintainers , Linux Kernel Mailing List From: "H. Peter Anvin" Message-ID: <471eb23d-40f2-0c66-c9db-c8b0b5204c07@zytor.com> Date: Sun, 5 Mar 2017 23:28:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <5be40886-b468-d828-f948-2ad99b95a230@deltatee.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 626 Lines: 18 On 03/05/17 23:01, Logan Gunthorpe wrote: > > On 05/03/17 12:54 PM, Borislav Petkov wrote: >> Logan, wanna give that a try, see if it takes care of your issue? > > Well honestly my issue was solved by fixing my kernel config. I have no > idea why I had optimize for size in there in the first place. > Yes, to gcc "optimize for size" means exactly that... intended for cases where saving storage (e.g. ROM) or code download time is paramount. We have frequently asked them for an optimization option that is not strictly byte-count-based but still tries to reduce cache footprint, but it is a nontrivial project. -hpa