Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp58384imm; Tue, 22 May 2018 14:00:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo4knWlFA1tiZx+c92AqFBBUIlQSEyDC3tnOOprTIBx55iwZokJRj3CA/KjttVrfajR6ti7 X-Received: by 2002:a17:902:848e:: with SMTP id c14-v6mr46475plo.129.1527022809170; Tue, 22 May 2018 14:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527022809; cv=none; d=google.com; s=arc-20160816; b=YFqfPyg+/EoHp+0hujbQtLqbH5j+iZ4iqm+eNI97LoTdanBcLxul70gsY9NrNAfD4X DU0UuQIPIlZ2KWtcMhqHbo8vEw+5ZlrLMTmsHhBC6RatdPOlT1vp3bfIQfL3v0yvBaEN gZMCII4CH7+4wGDk0hsZcnybCgdTY3jmSIyJjvsOq1D654zDy6sT/XCGNT3PcY+YTKub 0QVNBPC2wEZSS4FXJfQpRiankNxDq9Ns6WIteFpG9SP3m5xocGXc4+lHVZ5xGMy4UjyA JkmUgYihOzbsAKLE3puyTht0tjEdkIWJ0E6FGr339MV2viotyApmQdEFAkq2YPJ/v9Yy WH2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=qiAMSpe3BBWuchu7SYN0FUGE+igG2ixF5RD6Q++qs4s=; b=CdBP2jEHb61lT4CqMfOvdAIqOHGEvxILAKqWNjfxfv8TeSS57dJ33FmAXeu1WHoGNy 5wqNeTaJe/f/XC77gGXfErDY638x9wLGwgTKt2CphW0FIaQm0X7LGKJya+NeszskfsGA uveH3hQ3TDEZ21HK4BPKNS4saC+P12w00xzq7NeLrUegcuHSKgAea/p2rkr0ErPaMkap pHTwNshc5duzUKyUiQ/fXQCBE5OsfRY6G1o93DOV+/CQg2gD0+EzmMTlNAtnHm1P/Cc2 LZY0oKCa0c946rZnhcwicuCSxb3BzwrEcYv5YvBWxZB0opeFzAurUf2eJ3MtFZCDuhtU SOnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6-v6si5898469pgb.35.2018.05.22.13.59.54; Tue, 22 May 2018 14:00:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753125AbeEVU6b (ORCPT + 99 others); Tue, 22 May 2018 16:58:31 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:48526 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752937AbeEVU63 (ORCPT ); Tue, 22 May 2018 16:58:29 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id F23FE80548; Tue, 22 May 2018 22:58:27 +0200 (CEST) Date: Tue, 22 May 2018 22:58:26 +0200 From: Pavel Machek To: Aaro Koskinen Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , sre@kernel.org, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com, clayton@craftyguy.net, martijn@brixit.nl, sakari.ailus@linux.intel.com, Filip =?utf-8?Q?Matijevi=C4=87?= , Thorsten Leemhuis Subject: Re: v4.17-rc1: regressions on N900, N950 Message-ID: <20180522205824.GA24927@amd> References: <20180422074213.GA12428@amd> <20180423202940.ig6iud5lrbgnu35a@darkstar.musicnaut.iki.fi> <20180521213952.GA11596@amd> <20180522080250.4fzyvqrgw5oigexn@pali> <20180522194139.GB2299@darkstar.musicnaut.iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <20180522194139.GB2299@darkstar.musicnaut.iki.fi> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-05-22 22:41:39, Aaro Koskinen wrote: > Hi, >=20 > On Tue, May 22, 2018 at 10:02:50AM +0200, Pali Roh=E1r wrote: > > Hi! I remember that in time of migration from platform board code to > > device tree structures there appeared some bug which caused that > > sometimes display were not initialized. And somebody figured out that > > display initialization is failing when some other SPI devices are > > initialized before or after display... This behavior was observed only > > on real N900 hardware, not in qemu. >=20 > Touchscreen needs to be initialized before display. This is documented > in the DTS, see arch/arm/boot/dts/omap3-n900.dts: >=20 > * For some reason, touchscreen is necessary for screen to work at > * all on real hw. It works well without it on emulator. > * > * Also... order in the device tree actually matters here. >=20 > > Real reason was never explained. In old platform board code there was > > hardcoded order of SPI devices in which initialization happened. And in > > device tree it is probably in (pseudo)-random order. Enabling/disabling > > various config option can affect some timings and order in which kernel > > starts probing and initializing devices... >=20 > The issue was also somewhat present with platform/board code, see e.g. > commit e65f131a14726e5f1b880a528271a52428e5b3a5. >=20 > My device worked with v4.17-rc1 (haven't found time to test newer kernels= ), > but if you say the probe order is random then we must find some proper way > to express the dependency. I started bisect, but.. that will probably not be useful. If your device works ok in v4.17-rc1, it probably works in newer -rcs, too. Thanks for the ordering hint, I'll try to figure out what is going on there. Pavel # bad: [60cc43fc888428bb2f18f08997432d426a243338] Linux 4.17-rc1 # good: [0adb32858b0bddf4ada5f364a84ed60b196dbcda] Linux 4.16 git bisect start 'v4.17-rc1' 'v4.16' # bad: [ac9053d2dcb9e8c3fa35ce458dfca8fddc141680] Merge tag 'usb-4.17-rc1' = of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb git bisect bad ac9053d2dcb9e8c3fa35ce458dfca8fddc141680 # bad: [bb2407a7219760926760f0448fddf00d625e5aec] Merge tag 'docs-4.17' of = git://git.lwn.net/linux git bisect bad bb2407a7219760926760f0448fddf00d625e5aec # bad: [1c7095d2836baafd84e596dd34ba1a1293a4faa9] Merge airlied/drm-next in= to drm-misc-next git bisect bad 1c7095d2836baafd84e596dd34ba1a1293a4faa9 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlsEhHAACgkQMOfwapXb+vKgAQCfRTCdEl9IB9Sl7HaxCaakO7cD 9sIAoJejrpAlCItIRa0bnoRqGJcFcvUC =fwvJ -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--