Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1134934ybl; Tue, 3 Dec 2019 02:15:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwx2IlZ63y3AI2hranxoCTytl6SCOcDwDbQKcel/wVn1BaoyAZeryV+die7aIOxz8MFrCju X-Received: by 2002:a05:6830:13d3:: with SMTP id e19mr2600775otq.135.1575368159493; Tue, 03 Dec 2019 02:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575368159; cv=none; d=google.com; s=arc-20160816; b=rfKe56mSI64W/TiinQseEI5MwWDaYnOFM5Pud1oT1y6O0HvG3B2/80Hx3ip713EMQz y7Z5zSH/SflFLNU4LiCb1H7ARPfCwh61EcUPyrHymzzH4sA1phc+y9o6RzIRFlicp2j4 MBDC41xjDWtnDI3npI8RKArGW41i/oHONd+PaZn9a4TP0usNZY7p3FEkYfVi3sUasV20 4rIfST1tBkvRhH5xUrm2t2d20ylLLtFTCbiOXNHFA6N979632GaIfzTnP9kVoxOqXDJj S+q3wWOo2Ttqb8tY6Kv3gbwOmO+lE9Y5S9wV4sqngApI2CwqwtQiYCDGIFFoXUfLQeWj ic6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=fIwi5Fxn1taxm6qgKEVsc/z2Uf6jELdcHsOHNLVp2GM=; b=NXFzL5shw6vZjyfrDngobnOvT9qoPCW97GZOBQ8Ms4eEjdk7XNo/HCPEYpHqaNgJ9r IHOooboBZKc+HJVYNbh8x0gNcx3Ed/HbglcOS8OQVSj9Xaj2aVHm2+bq0S0aiUxMg1zU yXiHQjEVBzU1BqNypr9Y9DHW9u9Czumrl/BgpiQfPwI01Q7WBnEcm5+cuwZIUBaSI5Dv 1NmHWwmGU2FDK9e85HYi+1viBBTvq6zzsDDZCDoKvdGKLX2Xz67k1QxnavdPHR7c+T4g k/LMnw472VEVezFbmcaUBw64IU2ZPMML/7Yre56ILtp6WXdvyUM+S7ZolLJ3pC+1XYaY D1gQ== 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 n85si1072266oig.191.2019.12.03.02.15.46; Tue, 03 Dec 2019 02:15:59 -0800 (PST) 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 S1726079AbfLCKPH convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Dec 2019 05:15:07 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:41948 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfLCKPH (ORCPT ); Tue, 3 Dec 2019 05:15:07 -0500 Received: by mail-oi1-f194.google.com with SMTP id e9so2749064oif.8; Tue, 03 Dec 2019 02:15:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=K//UtWMNAk6TcfdrCIFGgkw50sxyYpid+eTdEpciHyg=; b=r0HDdljeejDAAFsZ69mMZ7oh3QwQ/IYmDW4AfIh9gqb4F+pDeph+cWphV1Z3a0Csaa ogFl1y47D77/HkCNgsnS+e1P7Uoa1oByn+4qbM6wI/obe75ILyVcmWktBdnlz3MwZB+k MspBcbpB+FhIHjbsJRxansqNJZds/v19eOQr4hPLL0l/oDD6jdpZHmDyXUiigBJc9rrC 9Xpr5WAZNpfYgFmSefUJj0SREIvmH9bFu//lyQzupaYZ6yTTikw/EOwdNvPnOll93xUF uo/a4Ehf5LE5a9YjpEHCE/hLvPHWDjl6ocXFeWZms3hYECUZL3Lxwpp5A/l98imLrQHV OYjA== X-Gm-Message-State: APjAAAWcczUDORdKIoo0/RwMGypTlGgYySgdfcc+SEJA/4wTElmWLxe1 q3hOqOwWqd7uj0LhPuMik0Gr48UAA9isQXDDXFI= X-Received: by 2002:aca:36c5:: with SMTP id d188mr3075823oia.54.1575368106196; Tue, 03 Dec 2019 02:15:06 -0800 (PST) MIME-Version: 1.0 References: <20191003092913.10731-1-brgl@bgdev.pl> <20191003092912.G3pupKBmyct1r9ScP5Skuw9D-_ALcMVSnfMfHAlwe0Y@z> <20191202041440.GA1628@roeck-us.net> <3f8ffe03-98b8-423a-7cba-53961a5600cb@roeck-us.net> <5e7aafc9-deb9-9305-afea-2c86e310683f@roeck-us.net> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 3 Dec 2019 11:14:54 +0100 Message-ID: Subject: Re: [PATCH v4 1/2] drivers: move the early platform device support to arch/sh To: Bartosz Golaszewski Cc: Guenter Roeck , Bartosz Golaszewski , Yoshinori Sato , Rich Felker , Greg Kroah-Hartman , "Rafael J . Wysocki" , Daniel Lezcano , Thomas Gleixner , Jiri Slaby , Linux-sh list , LKML , "open list:SERIAL DRIVERS" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bartosz, Günter, On Tue, Dec 3, 2019 at 10:50 AM Bartosz Golaszewski wrote: > wt., 3 gru 2019 o 06:24 Guenter Roeck napisał(a): > > On 12/2/19 9:18 AM, Bartosz Golaszewski wrote: > > > pon., 2 gru 2019 o 14:03 Guenter Roeck napisał(a): > > >> > > >> On 12/1/19 11:40 PM, Bartosz Golaszewski wrote: > > >>> pon., 2 gru 2019 o 05:14 Guenter Roeck napisał(a): > > >>>> > > >>>> On Thu, Oct 03, 2019 at 11:29:12AM +0200, Bartosz Golaszewski wrote: > > >>>>> From: Bartosz Golaszewski > > >>>>> > > >>>>> SuperH is the only user of the current implementation of early platform > > >>>>> device support. We want to introduce a more robust approach to early > > >>>>> probing. As the first step - move all the current early platform code > > >>>>> to arch/sh. > > >>>>> > > >>>>> In order not to export internal drivers/base functions to arch code for > > >>>>> this temporary solution - copy the two needed routines for driver > > >>>>> matching from drivers/base/platform.c to arch/sh/drivers/platform_early.c. > > >>>>> > > >>>>> Also: call early_platform_cleanup() from subsys_initcall() so that it's > > >>>>> called after all early devices are probed. > > >>>>> > > >>>>> Signed-off-by: Bartosz Golaszewski > > >>>> > > >>>> Wondering ... has anyone tested this patch on affected hardware ? > > >>>> All my qemu boot tests (both sh and sheb) fail because of it. > > >>>> Bisect log below. > > >>>> > > >>>> Guenter > > >>>> > > >>>> --- > > >>>> # bad: [72c0870e3a05d9cd5466d08c3d2a3069ed0a2f9f] Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input > > >>>> # good: [89d57dddd7d319ded00415790a0bb3c954b7e386] Merge tag 'media/v5.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media > > >>>> git bisect start 'HEAD' '89d57dddd7d3' > > >>>> # good: [0a6cad5df541108cfd3fbd79eef48eb824c89bdc] Merge branch 'vmwgfx-coherent' of git://people.freedesktop.org/~thomash/linux into drm-next > > >>>> git bisect good 0a6cad5df541108cfd3fbd79eef48eb824c89bdc > > >>>> # bad: [9a3d7fd275be4559277667228902824165153c80] Merge tag 'driver-core-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core > > >>>> git bisect bad 9a3d7fd275be4559277667228902824165153c80 > > >>>> # good: [59274c7164807d27b24e6c068dfe734f7bea4623] Merge tag 'usb-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb > > >>>> git bisect good 59274c7164807d27b24e6c068dfe734f7bea4623 > > >>>> # good: [e71903106721dc53923e90aa484d78bc86c039a9] staging: mt7621-dma: align to match open parenthesis > > >>>> git bisect good e71903106721dc53923e90aa484d78bc86c039a9 > > >>>> # good: [8f56e4ebe05c26c30e167519273843476e39e244] Merge tag 'char-misc-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc > > >>>> git bisect good 8f56e4ebe05c26c30e167519273843476e39e244 > > >>>> # good: [8bde9f3d2a217d1635a7c7bdf8ad4c25c9a34b50] Merge tag 'iio-for-5.5c' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next > > >>>> git bisect good 8bde9f3d2a217d1635a7c7bdf8ad4c25c9a34b50 > > >>>> # bad: [0628cda318df6baec439ca6e6e274007492f1ccd] mac80211: Use debugfs_create_xul() helper > > >>>> git bisect bad 0628cda318df6baec439ca6e6e274007492f1ccd > > >>>> # bad: [03324507e66c7664c754b1ef92c5c3be24c78aa2] driver core: Allow fwnode_operations.add_links to differentiate errors > > >>>> git bisect bad 03324507e66c7664c754b1ef92c5c3be24c78aa2 > > >>>> # bad: [313f5dbba41d905d59c820bb2d91ee6c661aff99] debugfs: remove return value of debugfs_create_u16() > > >>>> git bisect bad 313f5dbba41d905d59c820bb2d91ee6c661aff99 > > >>>> # good: [d4387cd117414ba80230f27a514be5ca4a09cfcc] of: property: Create device links for all child-supplier depencencies > > >>>> git bisect good d4387cd117414ba80230f27a514be5ca4a09cfcc > > >>>> # bad: [c31e73121f4c1ec45a3e523ac6ce3ce6dafdcec1] base: soc: Handle custom soc information sysfs entries > > >>>> git bisect bad c31e73121f4c1ec45a3e523ac6ce3ce6dafdcec1 > > >>>> # bad: [201e91091b1d47047f55580b5474e1239f4d17aa] sh: add the sh_ prefix to early platform symbols > > >>>> git bisect bad 201e91091b1d47047f55580b5474e1239f4d17aa > > >>>> # bad: [507fd01d5333338753a1cc26322dfc9f856c109f] drivers: move the early platform device support to arch/sh > > >>>> git bisect bad 507fd01d5333338753a1cc26322dfc9f856c109f > > >>>> # first bad commit: [507fd01d5333338753a1cc26322dfc9f856c109f] drivers: move the early platform device support to arch/sh > > >>> > > >>> Hi Guenter, > > >>> > > >>> can you post some bootlogs? Is it the same problem everywhere? > > >>> > > >> > > >> I don't have any useful logs. The boot fails too early for that. > > >> > > > > > > Yeah, it touched "early" devices after all... > > > > > >> Sorry, I don't understand "everywhere". It fails in mainline and -next, if that is what you mean. > > > > > > I referred to "All my qemu boot tests" when saying everywhere. > > > > > > I don't have any relevant HW - the idea for this patch is to stop > > > compiling for everyone a bunch of code that's only used by one largely > > > irrelevant architecture and free the namespace for a generic early > > > platform drivers implementation. > > > > > > How are you creating your SH qemu images? I'm seeing there's something > > > in buildroot for superh - maybe I'll be able to bearly_platform_cleanupuild something > > > useful. > > > > > > > Below is a possible fix. As I had suspected, the call to early_platform_cleanup() > > is in the wrong place. > > > > This makes sense. If it fixes the issue - do you want to send it to Greg? Which tree does this patch apply to? Oh, it's whitespace-damaged. After applying it manually on top of current Linus' tree, (remote) SH7722-based Migo-R boots again, so Tested-by: Geert Uytterhoeven There's still an issue with crashing userspace, but that happens on v5.4 too. Bisecting... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds