Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752481AbbKVT0Z (ORCPT ); Sun, 22 Nov 2015 14:26:25 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:50213 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752396AbbKVT0X (ORCPT ); Sun, 22 Nov 2015 14:26:23 -0500 From: Arnd Bergmann To: Peter Maydell Cc: =?ISO-8859-1?Q?M=E5ns_Rullg=E5rd?= , Nicolas Pitre , "linux-arm-msm@vger.kernel.org" , Stephen Boyd , lkml - Kernel Mailing List , Steven Rostedt , arm-mail-list Subject: Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions Date: Sun, 22 Nov 2015 20:25:27 +0100 Message-ID: <6840047.0HF9qAEq6r@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1448068997-26631-1-git-send-email-sboyd@codeaurora.org> <12750898.0A5czJmNqv@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:1C5kL61zsraUj/Jbhknr4SwSn4Sxas4rb/DIEwLuHXhTPVetcFk JxLAPZjc+TEbV6L8+JkUoI2dfTVmh77UpMXV8urnVT1cHOLY4tgSefuianM1EA0ajpmTT9v jRXNWk9JPihwP7dwtOeZrRu3XTdzLVipBiwFWCZIJY/Juf9twM3tVx6O0RZpIHKAMyNl5Bg sGklumJRDiJCyaDBMWwKg== X-UI-Out-Filterresults: notjunk:1;V01:K0:ATckeLl/Uqk=:7jMVWSOm/bhXQDtRF3CiRz 8EWZPwxVOp4R9x77LtV7zPGALyQ7aagnYZWchmCHyVkjajzgUjNUeLkNrADd77zcQPmI+MP5b K33Ck3eLvCZTr/gl8T03VFQu84K2azSBDuswnUIY/NFyKt/nCrZXflSnzzQJCmyf01BMXKKFb H4NBlrqGa+LpQUe/pBs6sFBFACC7N3T/DQntk1A0Oc8jmtQ2cbd76SQ5N+EkxPryDSt0+Db9f sysQBN6hlZsLqdbcCYiURhTKFgSLUyG/G4htbJEyooSEhK3z1YtoKc0IkVHQ8MrjA+xw/xBil 8m5LtSwcASLVfkVyYcqmFDcx9G81Ppf4goN5zy0HVsHL2SCTlPVwflY6d358TzRD3KdZxfRbN rjZwS9B+NZ78zUnTd7RnpHelC7CZ8nf5GyQYc+R5T/18DvZn/oqWoan069VdtmDWxD+n4+3/7 bnU6pVKt18mN5X9++3mW+ejASazsfyXc2tdQ0tg+p3oN61FCOqRJt3o+fSemV0k6xKzt0ZYhz 5E86sgLlqJ0a8jZsV19PHu4hTz5zcByg1Y8pDhet7STyc6WcE3swpFJGY2O7CwCHZDUuSJ7Nd CXLFiJl8eM4O1ZxyXqTz1T3wZ0ULjsIOUEkUsaXMBiHWRfI4SzFtU4DAYWNbMMCVahY2dbDQF 5I3rno72qWE97NWssk5sFgxnJ3OZCR3ObtPITAECuaBxw8Ml0QkyzwqoIhy7WlpA6ZWwMCx9w yoPgR6f6rQc2E0ar Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1635 Lines: 38 On Sunday 22 November 2015 13:29:29 Peter Maydell wrote: > On 21 November 2015 at 23:21, Arnd Bergmann wrote: > > Regarding PJ4, it's still unclear whether that has the same > > problem and it only reports idivt when it actually supports idiva, > > or whether the lack of idiva support on PJ4 is instead the reason > > why the ARM ARM was updated to have separate flags. > > SDIV/IDIV were originally introduced for R and M profile only > and there the Thumb encodings of SDIV/IDIV are mandatory > whereas the ARM ones are optional (and weren't initially > defined at all). So if you're looking for CPUs with only the > Thumb encodings I would try checking older R profile cores > like the Cortex-R4. The question is really about Marvell Dove, MMP and Armada 370, which are all based on PJ4 or PJ4B (CPU part : 0x581), so ARMv7-A and report idivt support but idiva. There are a couple of explanations here: a) Marvell really implemented only idivt but not idiva and reports it correctly, and the people from https://groups.google.com/a/dartlang.org/forum/#!topic/reviews/9wvsJvq0YYY just misinterpreted the flags b) the dartlag.org folks are correct, and it supports neither idivt nor idiva, and the /proc/cpuinfo flag is just wrong and requires a fixup c) like Krait, it actually implements both idiva and idivt but gets the reporting wrong. 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/