Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp104510pxa; Fri, 21 Aug 2020 02:22:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwARJuUcXodhPk4hQTNpsCzcVjAYv5Am0j4zQn02+ewDkxhagHS/+7IPNQdZcxxPyqzMEoW X-Received: by 2002:aa7:d1cc:: with SMTP id g12mr1805107edp.385.1598001728455; Fri, 21 Aug 2020 02:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598001728; cv=none; d=google.com; s=arc-20160816; b=JaRAMILLMtwL6xdPMt2ZPmWN9ank8IArvYg4SrAe1JCveFXbWw0p4XyYHW9vc2S7WP A427rwhkaMZ1Gc8gkOfnOpeuFOA0N/LEuPqYYszD35HkGzq66gUu0MKjBo5lgJxDQbHZ rM7C1IigiKLbi45enrj6ZIwZFXzzCnqRsAE5NZqd5lX1kdfCgGNKjTC9wxgRKZP4vPD2 GygUfhRHfTN3e5eAMEUL4nKumziWbXkB7AQSRXNGhUzsDy+biSL/tYPk2N5ckrsxEj0Z pZVayjiIq+S+9mRCaDY4DXS10YPmyEGAdpf18LUykGo0Au9lFXOtQDQnTEQ0kZblHVZU lkfw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=2og7Nn4PazQyBgMUxf9V4qveSLFkeXidkkmOAlESaRE=; b=Tpsz40b+EFE9sLr2gxMKZzLVeheqeEiwwROz8Va1ev1Al6DRRGuofm9oqP4oCDPzbV KmLfN5mkNc5nyBmN22hhB4aU6OgxIUdWfx3dXSHzhwymthtZpCC5dvJTdzJ2tZBCZRGN Q6diDux6LzGr+WglUQawzCEezRjrB2VZLGug6vJs6BapfblzCqrxOJ1uFka99D5mcFKL X3mQ+po0F9zVok/V/xPxynQwq7/l8bn9lDWj3GIccvUf6xHxL+Fy4wN5lJYGtAlAl52l fefySPUp6zQmC/Ip71BWejFRgRfKaJJokV0ecKJ+zAjB+VZkKUY8ufe5CnjYjtqBzLyL PQLQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si760162ejj.277.2020.08.21.02.21.44; Fri, 21 Aug 2020 02:22:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728305AbgHUJUi (ORCPT + 99 others); Fri, 21 Aug 2020 05:20:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbgHUJUh (ORCPT ); Fri, 21 Aug 2020 05:20:37 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF2CC061385 for ; Fri, 21 Aug 2020 02:20:37 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id D96A029ADC8 Subject: Re: [PATCH] Revert "irqchip/mtk-sysirq: Convert to a platform driver" To: Marc Zyngier , Saravana Kannan Cc: Frank Wunderlich , LKML , Collabora Kernel ML , Frank Wunderlich , Matthias Brugger , Nicolas Boichat , Hsin-Yi Wang , Hanks Chen , Jason Cooper , Thomas Gleixner , linux-arm-kernel , "moderated list:ARM/Mediatek SoC support" References: <20200819161907.1155110-1-enric.balletbo@collabora.com> <14b8f4b9667d29ee25e25eb19c69e3f7@kernel.org> From: Enric Balletbo i Serra Message-ID: <95ae0ae3-7798-d6d5-fc37-391862a0b4ca@collabora.com> Date: Fri, 21 Aug 2020 11:20:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <14b8f4b9667d29ee25e25eb19c69e3f7@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On 20/8/20 16:53, Marc Zyngier wrote: > On 2020-08-20 09:07, Saravana Kannan wrote: >> On Thu, Aug 20, 2020 at 12:56 AM Marc Zyngier wrote: >>> >>> On 2020-08-19 19:51, Saravana Kannan wrote: >>> > On Wed, Aug 19, 2020 at 9:52 AM Frank Wunderlich >>> > wrote: >>> >> >>> >> hi, >>> >> >>> >> does the fix you've linked to my revert [1] not work in your case? >>> >> >>> >> [1] https://patchwork.kernel.org/patch/11718481/ >>> > >>> > Thanks for pointing it out Frank. Also, might want to avoid top >>> > posting in the future. >>> > >>> > Enric, Can you please try that other fix and see if that solves your >>> > issue? >>> >>> I think Enric was clear that the driver does probe correctly >>> (meaning that he has the fix in his tree). It is everything else >>> that breaks, because none of the drivers on the platform are >>> equipped to defer their own probing. >>> >>> I think we need to change this works right now, meaning that we can't >>> blindly change the behaviour of *built-in* drivers. I'll see if I can >>> come up with something quickly, but I'll otherwise take Enric patch. >> >> Sounds fair Marc. >> >> Btw, Enric, out of curiosity, can you try adding "fw_devlink=on" to >> your kernel command line to see if it helps? It basically ensures >> proper probe ordering without depending on the drivers. There are some >> corner cases where it still can't work properly (too much to explain >> for a late night email), but if the platforms don't have those corner >> cases it'll work perfectly. >> >> I'm fine with the revert if Marc isn't able to find a quick fix to the >> drivers, but this might also fix your problem right away. > > I'm afraid there is no quick fix if we want to preserve the current > behavior with built-in drivers, and not having "fw_devlink=on" by > default makes it irrelevant for most people. > > fw_devlink also prevents my test platforms from booting (my rk3399 > doesn't find its PCI devices with it), while the same kernel boots > just fine without it. It could well be that the corner case is > likely to be more prevalent than you seem to expect. > > I will probably end-up end-up queuing reverts for both mtk-sysirq, > mtk-cirq, and qcom-pdc (the first two can't be built as module with > mainline anyway, and I seem to remember that the latter caused some > controversy as well). > > As an experiment, I have pushed out a branch[1] that implements > a "hybrid" probe, retaining the previous early probe mechanism when > the driver is built-in, and letting things rip when built as a > module (if you do that, you hopefully know what you are doing). > I'd welcome some testing on affected platforms (I don't have > anything I can run mainline on that'd be affected). > Unfortunately, my Kukui (MT8183) board doesn't boot at all with those patches. I only did a quick test and I didn't dig further, please let me know if you want I debug more the issue. IMHO, right now, the revert seems to be the better solution for this cycle. Thanks, Enric > Thanks, > >         M. > > [1] > https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/log/?h=irq/hybrid-probe >