Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp189887ybl; Mon, 2 Dec 2019 09:20:51 -0800 (PST) X-Google-Smtp-Source: APXvYqznSXkAVNfCoCVduoZTNHYzVvsJz+F1dD1KF9JOV5vIA8/QW98EV63vd29v8ut86Y+eNeJd X-Received: by 2002:a05:6402:2d8:: with SMTP id b24mr40244832edx.67.1575307251035; Mon, 02 Dec 2019 09:20:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575307251; cv=none; d=google.com; s=arc-20160816; b=nWg4sDdRNTHLZTR4brsL5KMiu0wbzrN597jPoE5s7G//jdbg63SRxyB/rd3irjphBi N95ramNA7cb74TY95PYpv9XHu4G+XgvAAXsVRzCAIEx4Z5EABdev2uP6WZD3VVH125lO wc4UMLm7FWI6m5t+ucm6qJyh+vE/t8vX0PeqakjqEqmjDWQQ9p21eQPTakpmbT7oOapE TqyprkLWHxj9k8qF96TWstfL8ya2MW/O+zqGgQoawf0DhyIBjJqLCJWTJZwQ4u/6WX1N sfOss4B/K0xsNy2Vf/q8c0HtbvA0SqS8chlZHfD+yFYAvkrirOg83Z/p4MSrbnoF+Cs4 afcw== 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 :dkim-signature; bh=6m5GyYZgGjlReYT0UlQJpt9O1RSpFkhX7hTS5Y3rL8A=; b=RQaiP3x+Ll5rV0fbQHd7trJmy1bBtOiWq69Jq1ikVPvFvJY3jJp3ZPfLx6NEgma/GV LkgtPuA4jvUyC385r6bJpJG5AoJrUkpfHI0gwEUfzIBWin/r+yRIR7qrgcAV4HrsA0sk RtHW+a20JzoC459inHLaGoS18OlxsHpRG4iXEefD02oS2rYdm3jbWPiBvDF2neVr18rX 3jUduL69U5GqlaC8c+OY3Nnpk2tikWy7EV4jAOjttpYlnHqRgpHfhcqVAlyZh+QZfOLe SidwzA7zZOrvcX7XpU9AW4fxefy3MSLCjfy0PDY5vbgaZ0s7M5d74mFznOK2tli6/xnF nBFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=GuLOx2Zp; 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 s19si32374ejj.372.2019.12.02.09.20.24; Mon, 02 Dec 2019 09:20:51 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=GuLOx2Zp; 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 S1727722AbfLBRSg (ORCPT + 99 others); Mon, 2 Dec 2019 12:18:36 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40761 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727695AbfLBRSf (ORCPT ); Mon, 2 Dec 2019 12:18:35 -0500 Received: by mail-ot1-f68.google.com with SMTP id i15so138662oto.7 for ; Mon, 02 Dec 2019 09:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6m5GyYZgGjlReYT0UlQJpt9O1RSpFkhX7hTS5Y3rL8A=; b=GuLOx2Zp3ZZ90Tm4v6pIsuMUqW5EKKBOtz2OFCipBoqw0100kj7xtHtEdX64q6lWAW pD1itDn0zL2PH8BDTkq/ZohZNfnj1PJGqh8zFGjN6LrykJ2h4LZgAmf8MZ1t5+TODv/v nFdRCYmdVHIe5MH+6D0JBBnuR/6ran/ta4wvvVj1qbn/vnpBfMCYB9N4HPu9CKJ0EgLc A4cNfwiaZXvyHsmEp4cWUz/fOhPRLwI9IyHFzC5RqEH13/bDz709PU7fOxDW1c3cmkL8 ECKs2OH7phaSwsIdhN9kdCWDl7v5tH/tmmlMf7eO/tLnobqg2mlQHqIIIJo2Bv/bIMPY MVrA== 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=6m5GyYZgGjlReYT0UlQJpt9O1RSpFkhX7hTS5Y3rL8A=; b=uV7ub364vEc+gZnJAeVJYvPeal+l7fxiafLh3otNb9GUuQXebINzlk9lfmBCdatSHH 6iyw1eDX+3KXsnHL0y3gADDXxK2NESnGydHuNYaIGFJfah3/LGsjFx2suuypprTa+ACz bTg/ford77vCJ1lTNo1CSQUFhtIjI1DSaP/XmgfuCLDCeWXrd6cPB6u6c3BK25A4o4Sm 0jODjYSNCe5jqxA9hjToGl21tU1Ud3qKqMxgnp1H7WXB2trP0c8L0R10V045ApBJDrrG mwaTLpvTnzsiAc0no6adtpd+UqylQGjTtTOKXt2etWhC6fNLyoeqHDXubcG5ov0WzXnq JOqQ== X-Gm-Message-State: APjAAAULAsSf9ilUk6kMRZ+/KPt2TG0vRg2U4gWaUgZSA1ClRLVoSLLc tAkgBWrBMlUDwHyfqFY6hwStXBuKoeEaGgAlhD2fiw== X-Received: by 2002:a9d:5d10:: with SMTP id b16mr95092oti.250.1575307113737; Mon, 02 Dec 2019 09:18:33 -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> In-Reply-To: <3f8ffe03-98b8-423a-7cba-53961a5600cb@roeck-us.net> From: Bartosz Golaszewski Date: Mon, 2 Dec 2019 18:18:22 +0100 Message-ID: Subject: Re: [PATCH v4 1/2] drivers: move the early platform device support to arch/sh To: Guenter Roeck Cc: Bartosz Golaszewski , Yoshinori Sato , Rich Felker , Greg Kroah-Hartman , "Rafael J . Wysocki" , Daniel Lezcano , Thomas Gleixner , Jiri Slaby , linux-sh@vger.kernel.org, LKML , linux-serial@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 2 gru 2019 o 14:03 Guenter Roeck napisa=C5=82(a)= : > > On 12/1/19 11:40 PM, Bartosz Golaszewski wrote: > > pon., 2 gru 2019 o 05:14 Guenter Roeck napisa=C5= =82(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 platfo= rm > >>> 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 f= or > >>> this temporary solution - copy the two needed routines for driver > >>> matching from drivers/base/platform.c to arch/sh/drivers/platform_ear= ly.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-li= nus' 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 'vmwgf= x-coherent' of git://people.freedesktop.org/~thomash/linux into drm-next > >> git bisect good 0a6cad5df541108cfd3fbd79eef48eb824c89bdc > >> # bad: [9a3d7fd275be4559277667228902824165153c80] Merge tag 'driver-co= re-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-mis= c-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-mis= c > >> 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 sta= ging-next > >> git bisect good 8bde9f3d2a217d1635a7c7bdf8ad4c25c9a34b50 > >> # bad: [0628cda318df6baec439ca6e6e274007492f1ccd] mac80211: Use debugf= s_create_xul() helper > >> git bisect bad 0628cda318df6baec439ca6e6e274007492f1ccd > >> # bad: [03324507e66c7664c754b1ef92c5c3be24c78aa2] driver core: Allow f= wnode_operations.add_links to differentiate errors > >> git bisect bad 03324507e66c7664c754b1ef92c5c3be24c78aa2 > >> # bad: [313f5dbba41d905d59c820bb2d91ee6c661aff99] debugfs: remove retu= rn value of debugfs_create_u16() > >> git bisect bad 313f5dbba41d905d59c820bb2d91ee6c661aff99 > >> # good: [d4387cd117414ba80230f27a514be5ca4a09cfcc] of: property: Creat= e device links for all child-supplier depencencies > >> git bisect good d4387cd117414ba80230f27a514be5ca4a09cfcc > >> # bad: [c31e73121f4c1ec45a3e523ac6ce3ce6dafdcec1] base: soc: Handle cu= stom soc information sysfs entries > >> git bisect bad c31e73121f4c1ec45a3e523ac6ce3ce6dafdcec1 > >> # bad: [201e91091b1d47047f55580b5474e1239f4d17aa] sh: add the sh_ pref= ix to early platform symbols > >> git bisect bad 201e91091b1d47047f55580b5474e1239f4d17aa > >> # bad: [507fd01d5333338753a1cc26322dfc9f856c109f] drivers: move the ea= rly 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, i= f 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 build something useful. Bartosz > And, yes, it has failed in -next for a while, looking back at the log his= tory. > > Guenter