Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753042AbbKUUkv (ORCPT ); Sat, 21 Nov 2015 15:40:51 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:54127 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527AbbKUUku (ORCPT ); Sat, 21 Nov 2015 15:40:50 -0500 From: Arnd Bergmann To: Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Nicolas Pitre , Steven Rostedt , =?ISO-8859-1?Q?M=E5ns_Rullg=E5rd?= Subject: Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions Date: Sat, 21 Nov 2015 21:39:58 +0100 Message-ID: <7199523.6J0A1gxY4q@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1448068997-26631-1-git-send-email-sboyd@codeaurora.org> References: <1448068997-26631-1-git-send-email-sboyd@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:NyAMBeV2tPziA5hqKdm7IgLtuNctw/gD1NdJfHd4sDX31yNeVkC vKyxzUhwQNVaHQUN8y5YgsCwqyKVsGvGpCuK0kvXac++bHB/y+YyTFEMF8dz28A3rqtsxh8 LJYC35FyWs5seLh/TV9o4ZHfRWmI1tlhPb+7HVEeGwArJ795Lb8RbzAYitLt0verIoRYg7t d35zYUDuHJIMrHY9ESIFg== X-UI-Out-Filterresults: notjunk:1;V01:K0:0iqhDzYhQKg=:8Rtq/2LRiiINbgqf9SxAWW 5h5JbiTbYdAJt+5ESoMIg6fTh/u4aHzrHN95p5z58UO60+9gi0vUDbdHDp5pJaXALDoTtUuiM ut91+q/HLt49VKUMSLnvVPs7D6ZNZMXglcseJexHa/TXNZWlBuXo+o0mJ2adKKcXerpmovilx LYfXogzwdL0ArmwYqheRTdBBeWMogaQW97LpHUdHp+lVjmIB9VE69IRWSuzBl0QFvFrU+X3EO YmlTEuOytIUKLUKO4rVa+ArYmNAFOQt9Ts0bPpleAIVeDwDXwx4oFPSrqd38IGmzsGblCPATr UjD9vzJDBsulBN7h+1Fa9WZrNQanPjmaQgUSdMIwN22OhMxf2PEbq1gaFId3OQOXEAZGgX8gR 5SimTnYUny3Z9GOftqKOLMbK+xoNnOnjz3kI8B6Hij9PFGbY/iJW1ombbPbUV0q4H+QlDaIdP GmGmJNWhDcp8xGU8AVQT2sMHydphK8m0LoISXOfYlcWXQ8OEh5Qn17Vm6NnZKKbqoBc4ASBSv kxdv/ZBVpUpEI6XS6tGwuj8XfIqDIrTBFpyfhp4CBUMUeXfBSUTJsOZ38m8645qJ8ofq83n/q AzRQA2gNgde1nugK5oBI4CjJm44L/fxvN11oGI323AGZa4LnXCN/83/sBRDN0etM6KdLL6HXN mcvmRav+0UcDnXoeWNJJ9+LRWgdzE4+oM9f0ToJ1CsRE0h0hq4ZhMVT+qIGHnajbWWi/mfe0w fXKhbX88BFxZI3WR Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1451 Lines: 27 On Friday 20 November 2015 17:23:14 Stephen Boyd wrote: > This is a respin of a patch series from about a year ago[1]. I realized > that we already had most of the code in recordmcount to figure out > where we make calls to particular functions, so recording where > we make calls to the integer division functions should be easy enough > to add support for in the same codepaths. Looking back on the thread > it seems like Mans was thinking along the same lines, although it wasn't > obvious to me back then or even over the last few days when I wrote this. Shouldn't we start by allowing to build the kernel for -march=armv7ve on platforms that allow it? That would seem like a simpler change and likely generate better code for most people, except when you actually care about running the same binary kernel on older platforms. I tried to get a complete list of CPU cores with idiv, lpae and virtualization support at some point, but I don't remember the details for all Qualcomm and Marvell cores any more, to create the complete configuration matrix. IIRC, all CPUs that support virtualization also do lpae (they have to) and all CPUs that do lpae also do idiv, but the opposite is not true. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/