Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752069AbbGMWCu (ORCPT ); Mon, 13 Jul 2015 18:02:50 -0400 Received: from mail-wg0-f54.google.com ([74.125.82.54]:34259 "EHLO mail-wg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751140AbbGMWCs (ORCPT ); Mon, 13 Jul 2015 18:02:48 -0400 From: Pali =?utf-8?q?Roh=C3=A1r?= To: Michael Welling Subject: Re: linux 4.2-rc1 broken Nokia N900 Date: Tue, 14 Jul 2015 00:02:44 +0200 User-Agent: KMail/1.13.7 (Linux/3.13.0-57-generic; KDE/4.14.2; x86_64; ; ) Cc: Sebastian Reichel , Tony Lindgren , Pavel Machek , Ivaylo Dimitrov , Aaro Koskinen , Nishanth Menon , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org References: <201507111405.06048@pali> <201507132234.22082@pali> <20150713215232.GA22584@deathray> In-Reply-To: <20150713215232.GA22584@deathray> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1624745.tCN3lDbGUQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201507140002.44119@pali> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5156 Lines: 122 --nextPart1624745.tCN3lDbGUQ Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Monday 13 July 2015 23:52:32 Michael Welling wrote: > On Mon, Jul 13, 2015 at 10:34:21PM +0200, Pali Roh=C3=A1r wrote: > > On Monday 13 July 2015 22:28:35 Michael Welling wrote: > > > On Mon, Jul 13, 2015 at 07:09:06PM +0200, Pali Roh=C3=A1r wrote: > > > > Hello, here is my objdump of 4.2-rc2 version: > > > >=20 > > > > 00000064 : > > > > 64: e3003182 movw r3, #386 ; 0x182 > > > > 68: e19030b3 ldrh r3, [r0, r3] > > > > 6c: e3130004 tst r3, #4 > > > > 70: 0a000001 beq 7c > > > > 74: e2711001 rsbs > > > > r1, r1, #1 > > > > 78: 33a01000 movcc r1, #0 > > > > 7c: e5902188 ldr r2, [r0, #392] ; 0x188 > > > > 80: e3520000 cmp r2, #0 > > > > 84: 012fff1e bxeq lr > > > > 88: e5923018 ldr r3, [r2, #24] > > > > 8c: e3510000 cmp r1, #0 > > > > 90: 13c33601 bicne r3, r3, #1048576 =20 > > > > ; 0x100000 94: 03833601 orreq r3, r3, > > > > #1048576 > > > > =20 > > > > ; 0x100000 98: e5823018 str r3, > > > > [r2, > > > > =20 > > > > #24] > > > > 9c: e5902188 ldr r2, [r0, #392] ; 0x188 > > > > a0: e5922000 ldr r2, [r2] > > > > a4: e582302c str r3, [r2, #44] ; 0x2c > > > > a8: e592302c ldr r3, [r2, #44] ; 0x2c > > > > ac: e12fff1e bx lr > > >=20 > > > I have not been able to duplicate the failure on the hardware > > > that I have. I dug out my old Beagleboard and added an SPI > > > registration to the dts. This was the closest hardware that I > > > had to the N900's processor. > > >=20 > > > What is the version of the gcc compiler you are using and where > > > did you get it from? > >=20 > > I'm using gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) from > > package gcc-4.6-arm-linux-gnueabi which is available on Ubuntu > > 12.04 LTS (version 4.6.3-1ubuntu5cross1.62). >=20 > I downloaded and compiled with this compiler and it still does not > effect the functionality of the targets that I have. >=20 > What flags (if any) are you passing to the compiler? >=20 I think nothing special. I just call: export ARCH=3Darm export CROSS_COMPILE=3Darm-linux-gnueabi- make rx51_defconfig rm -f arch/arm/boot/zImage make -j12 zImage modules omap3-n900.dtb CONFIG_DEBUG_SECTION_MISMATCH=3Dy cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb > arch/arm/boot/z= Image.new mv arch/arm/boot/zImage.new arch/arm/boot/zImage > Here is my objdump with gcc version 4.6.3 (Ubuntu/Linaro > 4.6.3-1ubuntu5): 00000074 : > 74: e59f304c ldr r3, [pc, #76] ; c8 > 78: e19030b3 ldrh r3, [r0, > r3] > 7c: e3130004 tst r3, #4 > 80: 0a000001 beq 8c > 84: e2711001 rsbs r1, r1, #1 > 88: 33a01000 movcc r1, #0 > 8c: e5903258 ldr r3, [r0, #600] ; 0x258 > 90: e3530000 cmp r3, #0 > 94: 012fff1e bxeq lr > 98: e5932018 ldr r2, [r3, #24] > 9c: e3510000 cmp r1, #0 > a0: 13c22601 bicne r2, r2, #1048576 ; > 0x100000 a4: 03822601 orreq r2, r2, #1048576 ; > 0x100000 a8: e5832018 str r2, [r3, #24] > ac: e5903258 ldr r3, [r0, #600] ; 0x258 > b0: e5933000 ldr r3, [r3] > b4: e583202c str r2, [r3, #44] ; 0x2c > b8: e5903258 ldr r3, [r0, #600] ; 0x258 > bc: e5933000 ldr r3, [r3] > c0: e593202c ldr r2, [r3, #44] ; 0x2c > c4: e12fff1e bx lr > c8: 00000252 .word 0x00000252 >=20 > > > For instance, I am using a 4.9.1 compiler that I built using > > > Yocto. > > >=20 > > > Also are you using devicetree or the old board file board-rx51.c? > >=20 > > I'm using devicetree. =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart1624745.tCN3lDbGUQ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlWkNYQACgkQi/DJPQPkQ1KIOwCfVT5vDrg8Wz8Ydm71mmwRDg3R qMIAnAj+dxLMnDJjUkMZ0iuy4iY2YkgR =pps2 -----END PGP SIGNATURE----- --nextPart1624745.tCN3lDbGUQ-- -- 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/