Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2172187pxb; Mon, 18 Jan 2021 10:03:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHcgX1wdYXRL1pWGDzWBMWP4u6AutNsppU3sQc6GfVRvhoKgIZh5DHL6l1ncaLrR1UOedy X-Received: by 2002:a17:906:d159:: with SMTP id br25mr574641ejb.398.1610993025507; Mon, 18 Jan 2021 10:03:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610993025; cv=none; d=google.com; s=arc-20160816; b=hxz/Nkje9xtL4lsxI4BZTg068syit8BzdkCCP5QowM3mVS/asff3cROqGRN/UgFaGF k0I07eabeGwaOq30Pnc50TsZidiYCRec8WbuhiTBvC6xQ7YdRit6kdr/xfFGzHmv7ktJ H2e0rkM0aGO2cXlv/qGlHfMOwO/RjAAw14Far6tvxV7bQpqjV07HGWsBmzQN4GQSe82M 5rnjLDPUFCBdzi8Prqp9YGoT4HjHNhVPuC3wSLUELzhFSgSzZJMddMjty2k++dT3JHQp lU923ZBCY9kyGGhPNkkkWoow2QPqzqafTOHAl025APydabA03cZvaQTeGLMfwe/l4PqU mvWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=nEUE/OVAcwOvCuJjft/mYI1ig2ZAhWnd3ZgBkF7y+Yo=; b=BBJYBnCh4xqd51R/DBF4kX88BPD63/36dzp2g1Ez4bwWIgmiYmGSn3CMzZi//iy3O3 2Uy/zqCGgZy8bqKgefjrMkV63pxZ0o653z/c6Dmu1FQTEBQPiPlOXTPuNxJGZh7+hoS7 IZ1Lz/f/L4V9m9DdmxYu4dtr2XgRiafyirzVDXuQL++YXPzxZHe4+Z+pVNGBsXEijXSD BDenLxRZlVs2HtuafbKGXVYKz8A2BW8rH5fPbPijN7wkaRXHQRL86i7NVaNyoQ0uKmm0 3nc4czkPW90bIw1SvISJdPWfPvyUxwzSrihOzD9Uq97kil4ocFn0D/eLmhOPpIE6J3vT 2RSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lt6si7155244ejb.133.2021.01.18.10.03.21; Mon, 18 Jan 2021 10:03:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407444AbhARSA4 (ORCPT + 99 others); Mon, 18 Jan 2021 13:00:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:50904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407406AbhARSAk (ORCPT ); Mon, 18 Jan 2021 13:00:40 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5340822BEA; Mon, 18 Jan 2021 17:59:56 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1l1Yok-008ZWA-6w; Mon, 18 Jan 2021 17:59:54 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 18 Jan 2021 17:59:54 +0000 From: Marc Zyngier To: Geert Uytterhoeven Cc: Saravana Kannan , Greg Kroah-Hartman , "Rafael J. Wysocki" , Android Kernel Team , Linux Kernel Mailing List , Jisheng Zhang , Kevin Hilman , John Stultz , Nicolas Saenz Julienne , Yoshihiro Shimoda , Linux-Renesas Subject: Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default In-Reply-To: References: <20201218031703.3053753-1-saravanak@google.com> <20201218031703.3053753-6-saravanak@google.com> User-Agent: Roundcube Webmail/1.4.10 Message-ID: <86db7747ea6d48eebbf40a5855240d14@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: geert@linux-m68k.org, saravanak@google.com, gregkh@linuxfoundation.org, rafael@kernel.org, kernel-team@android.com, linux-kernel@vger.kernel.org, Jisheng.Zhang@synaptics.com, khilman@baylibre.com, john.stultz@linaro.org, nsaenzjulienne@suse.de, yoshihiro.shimoda.uh@renesas.com, linux-renesas-soc@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On 2021-01-18 17:39, Geert Uytterhoeven wrote: > Hi Saravana, > > On Fri, Dec 18, 2020 at 4:34 AM Saravana Kannan > wrote: >> Cyclic dependencies in some firmware was one of the last remaining >> reasons fw_devlink=on couldn't be set by default. Now that cyclic >> dependencies don't block probing, set fw_devlink=on by default. >> >> Setting fw_devlink=on by default brings a bunch of benefits >> (currently, >> only for systems with device tree firmware): >> * Significantly cuts down deferred probes. >> * Device probe is effectively attempted in graph order. >> * Makes it much easier to load drivers as modules without having to >> worry about functional dependencies between modules (depmod is still >> needed for symbol dependencies). >> >> If this patch prevents some devices from probing, it's very likely due >> to the system having one or more device drivers that "probe"/set up a >> device (DT node with compatible property) without creating a struct >> device for it. If we hit such cases, the device drivers need to be >> fixed so that they populate struct devices and probe them like normal >> device drivers so that the driver core is aware of the devices and >> their >> status. See [1] for an example of such a case. >> >> [1] - >> https://lore.kernel.org/lkml/CAGETcx9PiX==mLxB9PO8Myyk6u2vhPVwTMsA5NkD-ywH5xhusw@mail.gmail.com/ >> Signed-off-by: Saravana Kannan > > Shimoda-san reported that next-20210111 and later fail to boot > on Renesas R-Car Gen3 platforms. No output is seen, unless earlycon > is enabled. > > I have bisected this to commit e590474768f1cc04 ("driver core: Set > fw_devlink=on by default"). There is a tentative patch from Saravana here[1], which works around some issues on my RK3399 platform, and it'd be interesting to find out whether that helps on your system. Thanks, M. [1] https://lore.kernel.org/r/20210116011412.3211292-1-saravanak@google.com -- Jazz is not dead. It just smells funny...