Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1893171pxa; Thu, 6 Aug 2020 19:52:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJYrdEK7nwyvOS50JI8buWwTRmCfPxYAQxaZ1eV6BbmO2GRQukw5FacE95U08cJqS966PW X-Received: by 2002:a17:906:d217:: with SMTP id w23mr7641812ejz.292.1596768747980; Thu, 06 Aug 2020 19:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596768747; cv=none; d=google.com; s=arc-20160816; b=FmsmjwYmRWMN5kudvl/GNZBD8TdMp7kObsvBev2to8FXL3aQb+coViHsWWn8oIgziI pal2i0CZACPIWR5zXE5WIu5HaXbmO4pIsbAkGahSp8pFSAaPWCOBAqxJ5sxCTd7QxrDh SzULTf49iVq+MVRnIF1PHKaFGjIpocDGIPGcT4UHDJmGoZJVowPDh5clgWEm5MXCybQ0 uHKM9vmSsSrjEXZDYOtCwCxYkWjfYPVqv2qbJv7BF6lX/4HUI+oztf+lxc2vgS3gdCSA HjWV/PrG/dDcoSp1dxKOdOughFkp6OViJvE2Z5zZ8uxHLJrlDlDijDwkQSaGpg1fmSKM KOyg== 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=bgStZXmBcIhXcAGtUDT4PdZzWJDdtOc6W3ug+5/Il+s=; b=UyMj5ZgoTEL+Z30F7U245WVMANhvJjheCvBoYxH53RVNbtHMjpaRbBIIaNa41WkZad 7aMae1ihj8WPncXskqJccR8g5Z0EbfF9S42aqBUUE/DX3LAIN/MaRbu923VE//Z0VrI/ 2mYj2JVGjWZi704JrEW+OxV5UScv34eDot53JonmvmtoLZKhyYUDb7iH4c7J+yqfYS1B g7IeN9qQ823sfN/8T9ZHrlvC09jR/cN4krk5KT57aGtmN+HNB7KJLJ896j1Blmz7xJiN g7jDxtRHgTRchXGPx8QxcP9sh1yRJzesKr7gd8G4PBes1AcfM1WG4B/7KPxA5LgKoBNu 4YyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YfOtg6mk; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si4392520edp.94.2020.08.06.19.52.04; Thu, 06 Aug 2020 19:52:27 -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=@linaro.org header.s=google header.b=YfOtg6mk; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726635AbgHGCtM (ORCPT + 99 others); Thu, 6 Aug 2020 22:49:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726058AbgHGCtK (ORCPT ); Thu, 6 Aug 2020 22:49:10 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA9BAC061574 for ; Thu, 6 Aug 2020 19:49:10 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id u63so652551oie.5 for ; Thu, 06 Aug 2020 19:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bgStZXmBcIhXcAGtUDT4PdZzWJDdtOc6W3ug+5/Il+s=; b=YfOtg6mk5yitut4lFjH8xJq//kVJ08wI2px79vMHBxQBD6HZ59iTrHtRlxltHpzKPX unAKGJn8ks6DLXP3QgrdEpM0CAf8J/xFHlQxibaHo4YcOIxT7ND1Ocf21+x7zOxzm/bz TZbc2h/vDrXhBvdYdu5h60m/P4NI6T1NmffQVej3OCgCLCwLX1dkm8CqJsf1qwl8Ywtt ppo5CEZ13KalajtwgysJ3m4EwyvpX6LLeSkyYk4uklsV6o5BQzOy09HAktWbw6zWnj3A JPAgqYB82SDRCNbMtjqsICSlyROvyahcKxfx/0MEvuaHdLGZzXkyQU0Rhvg7nDRgxC7f xWXg== 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=bgStZXmBcIhXcAGtUDT4PdZzWJDdtOc6W3ug+5/Il+s=; b=hUW7BgSWNpbyzzBAEq3RIExhL4p0h5/SuM0wjKxgtQrfRxnF5EOAHrZQpsAl4xUuwh Hdi+yynl4lVzJe0tI9PChRonJGylY8Jemg9Wpl+NsrgKLkZeAgqC+ObXHopeqNXNAfFl h3Ze1aTIk9NVsDzhxakFloWQ6cZ++5F/zAlJzoMe3Ggnr99kaIs5o3J73BKyEqSxBGNP h8zYC7L5De5BK5GdanL2mCn9g/f0SfX78pLVuNBdm1ZgNy2iV35DAymJmFKShUTTkq/7 m9JAf4HeRCOM9d/uLvQ/FyO6sYppA/vJTDvRJon6VEQVTdWEoeFj9c6fEAJlmI7OVF0M rulA== X-Gm-Message-State: AOAM530zjTPmY6s+tcRy3YUV1TRd3jM1Hrbj1D9Eb81ktS1Ysnueoady WUFenWLOT10jh9SvVpGFDtvAj1Hm5efkq5gPnLbs9g== X-Received: by 2002:aca:1117:: with SMTP id 23mr9737257oir.97.1596768550163; Thu, 06 Aug 2020 19:49:10 -0700 (PDT) MIME-Version: 1.0 References: <20200718000637.3632841-1-saravanak@google.com> <20200718000637.3632841-3-saravanak@google.com> <78ad0914-6173-f753-9eba-b7cbfbb51fd6@kali.org> <20200807004001.GF20825@builder.lan> <20200807013903.GG20825@builder.lan> In-Reply-To: <20200807013903.GG20825@builder.lan> From: John Stultz Date: Thu, 6 Aug 2020 19:48:58 -0700 Message-ID: Subject: Re: [PATCH v3 2/4] irqchip/qcom-pdc: Switch to using IRQCHIP_PLATFORM_DRIVER helper macros To: Bjorn Andersson Cc: Steev Klimaszewski , Saravana Kannan , Thomas Gleixner , Jason Cooper , Marc Zyngier , Matthias Brugger , Andy Gross , Android Kernel Team , lkml , linux-arm-kernel , "moderated list:ARM/Mediatek SoC support" , linux-arm-msm , Hanks Chen , CC Hwang , Loda Chou , Thierry Reding 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 6, 2020 at 6:42 PM Bjorn Andersson wrote: > On Thu 06 Aug 18:22 PDT 2020, John Stultz wrote: > > On Thu, Aug 6, 2020 at 5:43 PM Bjorn Andersson > > wrote: > > > On Wed 05 Aug 14:57 PDT 2020, John Stultz wrote: > > > > On Wed, Aug 5, 2020 at 2:47 PM Steev Klimaszewski wrote: > > > > > On 8/5/20 4:16 PM, Steev Klimaszewski wrote: > > > > > > On 8/5/20 3:19 PM, Saravana Kannan wrote: > > > > > >> On Wed, Aug 5, 2020 at 12:44 AM John Stultz wrote: > > > > > >>> > > > > > >>> So this is where I bashfully admit I didn't get a chance to try this > > > > > >>> patch series out, as I had success with a much older version of > > > > > >>> Saravana's macro magic. > > > > > >>> > > > > > >>> But unfortunately, now that this has landed in mainline, I'm seeing > > > > > >>> boot regressions on db845c. :( This is in the non-modular case, > > > > > >>> building the driver in. > > > > > >> Does that mean the modular version is working? Or you haven't tried > > > > > >> that yet? I'll wait for your reply before I try to fix it. I don't > > > > > >> have the hardware, but it should be easy to guess this issue looking > > > > > >> at the code delta. > > > > > > For what it's worth, I saw this too on the Lenovo C630 (started on -next > > > > > > around 20200727, but I didn't track it down as, well, there's less way > > > > > > to get debug output on the C630. > > > > > > > > > > > > In my testing, module or built-in doesn't matter, but reverting does > > > > > > allow me to boot again. > > > > > > > > > > > Actually - I spoke too soon - QCOM_PDC built-in with the commit reverted > > > > > boots, however, module (on the c630 at least) doesn't boot whether it's > > > > > a module or built-in. > > > > > > > > You may need to set deferred_probe_timeout=30 to give things a bit > > > > more grace time to load. > > > > > > With the risk of me reading more into this than what you're saying, > > > please don't upstream anything that depend this parameter to be > > > increased. > > > > > > Compiling any of these drivers as module should not require the user to > > > pass additional kernel command line parameters in order to get their > > > device to boot. > > > > So, ideally I agree, and Saravana's fw_devlink work should allow us to > > avoid it. But the reality is that it is already required (at least in > > configurations heavily using modules) to give more time for modules > > loaded to resolve missing dependencies after init begins (due to > > changes in the driver core to fail loading after init so that optional > > dt links aren't eternally looked for). This was seen when trying to > > enable the qualcom clk drivers to modules. > > > > So to clarify what you're saying, any system that boots successfully > with the default options is a sign of pure luck - regardless of being > builtin or modules. > > > And there you have my exact argument against the deferred timeout magic > going on in the driver core. But as you know people insist that it's > more important to be able to boot some defunct system from NFS than a > properly configured one reliably. I'd agree, but the NFS case was in use before, and when the original deferred timeout/optional link handling stuff landed no one complained they were broken by it (at least at the point where it landed). Only later when we started enabling more lower-level core drivers as modules did the shortened dependency resolution time start to bite folks. My attempt to set the default to be 30 seconds helped there, but caused trouble and delays for the NFS case, and "don't break existing users" seemed to rule, so I set the default timeout back to 0. > > It doesn't seem necessary in this case, but I suggested it here as > > I've got it enabled by default in my AOSP builds so that the > > module-heavy configs for GKI boot properly (even if Saravana's > > fw_devlink work is disabled). > > > > With all due respect, that's your downstream kernel, the upstream kernel > should not rely on luck, out-of-tree patches or kernel parameters. I agree that would be preferred. But kernel parameters are often there for these sorts of cases where we can't always do the right thing. As for out-of-tree patches, broken things don't get fixed until out-of-tree patches are developed and upstreamed, and I know Saravana is doing exactly that, and I hope his fw_devlink work helps fix it so the module loading is not just a matter of luck. Also I think Thierry's comments in the other thread today are also good ideas for ways to better handle the optional dt link handling (rather than using a timeout). thanks -john