Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp573622pxx; Mon, 26 Oct 2020 15:40:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX7eNqnM2CUM9EEGCvN5/BWoZToUGcIqap3BBZUI5ejRDyFmeYFItV5x6NL9X/3O/gbgpE X-Received: by 2002:a17:906:8545:: with SMTP id h5mr17397133ejy.384.1603752011784; Mon, 26 Oct 2020 15:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603752011; cv=none; d=google.com; s=arc-20160816; b=qjjC9LAcAMmtRIG4Rc56nrV/b26Fn/nnpQ1MyBTn2q/QN9GK7THHCRoYfCtKFshJEq vlDSNeVLn2y5Hxdu/odFE/Wqt5BdeM3q57W07BpkYln15xO5/PLHRi22/3AOpXMSMJ8P 1gCm9peN+Mhw16h1iucMtIk2yCjDe/qwXWZT/Tci3/RR80w3m4ss3LUf7VGaIh0/QaRy WrQenXHPcByLxfOfiMDpLrowMjU+lNAwIJawVvqjfNOnyNKTTW7+GIHAzHrvbcsbUKJv dacK/ZMPtDeo0/4GtYBCDBgtOVrmcSz8aD41O2HHRnG3h0UXF5daiQWyZGAWnKt+H9sC lwzQ== 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 :dkim-signature; bh=J5QQtMhRWirkuyw8VFIrQr3MzHXOSdtK5HbEfgyzj8c=; b=WYHEEkYDoj6na/6+Hvc5RoM2DCvneX2wS+FY+HJphsT2XdcLyWcRpPHnRCWnzDcKBe NQHZ9DY2GjxTBayaygN+m/SkPAc4i+5cNPU8sxGMKeINtCmEvKrV5sbO4xHas1mXR/S5 omDqOmf9FevWy1r9AXunH4ssUD5VbZxtPZBkqMBj3SHJY0Q76Dsv6XDZmboNH+OaHn7d 0C8c7DhOQ81TxofV1sWh4RCdLLvj7SnZvZxhHdgUltOSpF00QidSTtfCngdUJYsDkrpc SXQhOQFqTptW+01nUlewN+4DlwS102Rg/WD6gLcU9X3FgfpmERSYz2fbbRuPnf2km8cI w8Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gdSIPYRy; 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 lc26si7809445ejb.516.2020.10.26.15.39.50; Mon, 26 Oct 2020 15:40:11 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=gdSIPYRy; 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 S1775405AbgJZRAm (ORCPT + 99 others); Mon, 26 Oct 2020 13:00:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:49416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2443346AbgJZRA1 (ORCPT ); Mon, 26 Oct 2020 13:00:27 -0400 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 7ADDF223B0; Mon, 26 Oct 2020 17:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603731626; bh=Wk5C6AUNf5Rr1fEwHl+3seiMfHFBEAh2bYObiBXLLX8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gdSIPYRyIpe/ZiMe9+II8R3w/Q5DiXCBun6pAQDRIAwQw8M+JPaVNaxoVmwuXDu6F ZGxBvlO2AiSwjUnczyLL8j/XuVhZWATASl4r1ZZQKUsQDStM9ly9RnTTPNe6B/8CuU LtmytiLl0WgVhtcG6POJPHmyUoecnSNtC2CKceyY= 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 1kX5r6-004OVS-Jc; Mon, 26 Oct 2020 17:00:24 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 26 Oct 2020 17:00:24 +0000 From: Marc Zyngier To: Kevin Hilman Cc: Neil Armstrong , jbrunet@baylibre.com, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] irq-meson-gpio: make it possible to build as a module In-Reply-To: <7ha6w9hsfm.fsf@baylibre.com> References: <20201020072532.949137-1-narmstrong@baylibre.com> <87v9eyo75s.wl-maz@kernel.org> <7ha6w9hsfm.fsf@baylibre.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: khilman@baylibre.com, narmstrong@baylibre.com, jbrunet@baylibre.com, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@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 On 2020-10-26 16:18, Kevin Hilman wrote: > Marc Zyngier writes: > >> On Tue, 20 Oct 2020 08:25:30 +0100, >> Neil Armstrong wrote: >>> >>> In order to reduce the kernel Image size on multi-platform >>> distributions, >>> make it possible to build the Amlogic GPIO IRQ controller as a module >>> by switching it to a platform driver. >>> >>> The second patch removes MESON_IRQ_GPIO selection from ARCH_MESON to >>> allow >>> building the driver as module. >>> >>> Neil Armstrong (2): >>> irqchip: irq-meson-gpio: make it possible to build as a module >>> arm64: meson: remove MESON_IRQ_GPIO selection >>> >>> arch/arm64/Kconfig.platforms | 1 - >>> drivers/irqchip/Kconfig | 5 +- >>> drivers/irqchip/irq-meson-gpio.c | 89 >>> ++++++++++++++++++++------------ >>> 3 files changed, 59 insertions(+), 36 deletions(-) >> >> I've tried this series on my vim3l with the this driver compiled as a >> module, and lost the Ethernet interface in the process, as the phy >> wasn't able to resolve its interrupt and things fail later on: >> >> [ 72.238291] meson8b-dwmac ff3f0000.ethernet eth1: no phy at addr -1 >> [ 72.238917] meson8b-dwmac ff3f0000.ethernet eth1: stmmac_open: >> Cannot attach to PHY (error: -19) >> >> This is a generic problem with making DT-based interrupt controllers >> modular when not *all* the drivers can deal with probing deferral. > > Yes, but this series still keeps the default as built-in. > > If you build as a module, and you add `fw_devlink=on` to the kernel > command-line, device-links will be created based on DT dependencies > which will ensure the right module load order. It doesn't work here. I get the exact same error (well, with eth0 instead of eth1). In my experience, fw_devlink isn't reliable yet. Config on request. > I've tested this series with `fw_devlink=on` on several Amlogic > platforms and it works just fine, but since it requires the extra > cmdline option, I think the default should remain built-in. > > So, I'd still like to see this series merged so that at least it's an > option to enable this as a module. I have taken similar patches in 5.9 for other SoC families (qcomm, mtk), and ended up reverting them in -rc2, because there is simply too much breakage. Even keeping it as built in changes the init order, which tons of drivers depend on. I proposed a middle-of-the-road approach (modules can break, built-in stays the same) which Rob pushed back on. So either we fix fw_devlink to work for everything and be on by default, or we keep the current setup. > Also, another reason to make it optional is that not all platforms need > this feature at all, but right now we select it for all Amlogic SoCs. I understand that, but I don't want another episode of widespread breakages, and this series definitely breaks things. Thanks, M. -- Jazz is not dead. It just smells funny...