Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1635147pxa; Thu, 20 Aug 2020 16:54:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMg+8m6MWG/5iwMBM3+6KTslF1QihqHrq9IAG5Hb9iVqUmsJze4U2YkV6pd2mUjoY31DLu X-Received: by 2002:a17:906:ce39:: with SMTP id sd25mr410033ejb.80.1597967682110; Thu, 20 Aug 2020 16:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597967682; cv=none; d=google.com; s=arc-20160816; b=wCNL8KUndret6uI2rgMqcEMyrlEJO+pUyVIgtAZSvgSS+uSC1dg7jnPY3gocVkJyJz zZ8Ivy9DKZYxVMN7ILFalMzSKdqMH8I1FgIp7gSFswWvdFYM2tSOMvcMopXrQoq8NNGP 0T8rZxKF7hnVYSNi0n3c/bbJDr0RgRCaa3PLZMWxcd7D4F5COE4xCwj3vdGezEBCW7Yg aOULhWMHhClkfCeaTxXeZ7mR1JNShFkv1exxHPeK2FWA0yepfA63ixUh4WriKUfp+2J/ 5oGH8wIh9y7LMixeuFZYoRAwVm3PDwoCLT2QWlUZl28ErNG1ghoh/d540HYKeXBtFsmG 3YZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wXIlJgCi0Hc+qjW3EmvatA+4YXMKzONFgX9ZK9vfGVU=; b=IWl7GlWthkw439tyhzZiueogrGE2uf24GEGRRxVpkZHZscE85864fgEDHxfSvHhYDy 1ZfZBCj81CX0/YdKG4N/U66CXX09TokweBCA+jU9Bq7Z4HsSoeHS4haaxKwun1jxtJcW NE6NukWUWXsCSswyJWYA4cAmauP26xzHvPW8U1C0S/XmGVRp/WjPqv4KtjTaOTHU1SJl olMRu2/3N7QDpgTBi5b5feoo1ruXdkUmWXBEfEkmgRCjr5nr175SKvslYjnf2pADqKhX ne4MB86N3COh6EaxhXP0+BQfUyMDv2V9LRx/lwsb7+UGFQ0lt88vrqdqs0DXSss6IayR 7Xow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Byh29kc4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r1si16662eja.170.2020.08.20.16.54.04; Thu, 20 Aug 2020 16:54:42 -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=@google.com header.s=20161025 header.b=Byh29kc4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728030AbgHTTjq (ORCPT + 99 others); Thu, 20 Aug 2020 15:39:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbgHTTjo (ORCPT ); Thu, 20 Aug 2020 15:39:44 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 203D7C061385 for ; Thu, 20 Aug 2020 12:39:44 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id o13so1638539pgf.0 for ; Thu, 20 Aug 2020 12:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wXIlJgCi0Hc+qjW3EmvatA+4YXMKzONFgX9ZK9vfGVU=; b=Byh29kc4cV3ARFPI/Wlk0/U6LwFlY3do928FTIcxGaxbCcgFUm40Fzo6EZmoH3jf45 +KHAV91KvPEzkBIC7pCOmnlKjPlO9OUxadtclYKUsLIjezrJ5oPyqd+OsJBpn6tvS2gD VCLQnLIrRJqQajFge2GUlSju3XU+/A55+NmWf00MIxOvw0bxwSdj3zAI5bL5tGNznh6z VHQsBRta/AHkcLLRJV/d9fgZ7ctTUA7xvEWhJGEkw/i6rv0IFX6M62y1ovizLidR9Ypg IGYdP77Gjil0K1X56UqtZ8ROL3LlqTumNtyDnnHVrIJ5Clw03mIbYH0jxLXG63DW8k/5 alKg== 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; bh=wXIlJgCi0Hc+qjW3EmvatA+4YXMKzONFgX9ZK9vfGVU=; b=SPHwjckkkJ4LrGmFL5RS8Yiiu4M5LKzYdg4T4dmTzA8LXgj+1uIZYu7xhXk/m410cs 2l649CMfzfzvfKtjDkK9Zd/HKSsO0I1jeB6SCQgiNVwglI1g7WAd4Uqf5BVS33FHnloi HuCHJa/WZjO9xGxlayeFN5FhJONt+Lrb3emQjEeqR8omQNafHEpMe+McCtUxJv+MQ0GV KQx1EaN2wgMXOF4zKoQF6K5knYyM/abyBZNiY9DLN7ze8dgb8ejsemx07xCPi7NnQsMH X9sjDbo/aPrGU9m7YEj0UzpBSTvhSYaTXrGvHqRZFmpXoCx9AHYJVj6ANgkkk1ztPRn4 sQmg== X-Gm-Message-State: AOAM5327EoknjEJu8XOmCmmTWo/v4OZtjT7aFPqOshbuQnECWBo3NF5K 80y/Fa1cFh+Rdb/vLN+J0JVE7NbERcszzaTioOeBaOce+qI= X-Received: by 2002:a63:fa09:: with SMTP id y9mr271539pgh.0.1597952383386; Thu, 20 Aug 2020 12:39:43 -0700 (PDT) MIME-Version: 1.0 References: <20200819161907.1155110-1-enric.balletbo@collabora.com> <14b8f4b9667d29ee25e25eb19c69e3f7@kernel.org> In-Reply-To: <14b8f4b9667d29ee25e25eb19c69e3f7@kernel.org> From: Saravana Kannan Date: Thu, 20 Aug 2020 12:39:07 -0700 Message-ID: Subject: Re: [PATCH] Revert "irqchip/mtk-sysirq: Convert to a platform driver" To: Marc Zyngier Cc: Enric Balletbo i Serra , 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 20, 2020 at 7:53 AM 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. Agreed. > 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. Yeah, I know it has a few corner cases I need to deal with. > 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). I like [1] and the code looks good. Hopefully, we can stick with that. -Saravana