Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2477268ybb; Mon, 30 Mar 2020 06:59:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt4E3uYC1jwEyV2BbGgdXtgHm4vaLgCKPd0xHS1FHzGxMoJa+WNOEyC8S8280nTapxeOwp+ X-Received: by 2002:aca:c4d3:: with SMTP id u202mr7989849oif.20.1585576767080; Mon, 30 Mar 2020 06:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585576767; cv=none; d=google.com; s=arc-20160816; b=kZk59hHeXa9cxJMxhYHivt02X0b6I3zi/CzRwlWz9NLQ9ZjqxK++RulJOJQ02auUX5 b2V3qhjsiJ5R/tR7aqXPLoDRGmdAliXzDrfPsTyimrzbA7YbRQhQ58rteBISGkUr+lr9 wp2BQ0e0F2oL9fax9uVNUNC+gXjCTsgIWn53YonsALFNov3Hda1yn2QU7ojZhQZ1TdUh DYZ5A4mKbJSx76TFhyQigLym+uYgQEH/+62GRfWDkzXaOe5yXnCUJY8qFfnFBnR/ZQtS W4Rsyya6XpdhlRLHG5KkiRzL+3LVbYD7Psb2p4sEVGrlaNd5t/IsepiYHlM5X+R2dC8m sHtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+pQBPpsgIiQ1hLIv4/QfWtZbDzQ7NShPL1se67+0JzQ=; b=UZkDfan3oYi9AWO78Y7ZqVp65Q8KLDF4YUxgkKa/J0L58K/P2/qbwZ5t71uxW3iqOB EshugA/cBZn+3Ork9IU7fEHbd8l/DHCqaYGfDyc8BifqhtnjzNd8JoAAD502HJm2V3Oa J7MSiyUmhcoUMeDUmJL8V1bCumMmQdn1wfrZzlZ10wF706Zl790P854b+0lcC3Q+lqXs eVVPOdPpLluC1pT+rc6m36yjE5WN49++qmG0iwnKUFl/mfzJgl+ePdtnDpxAu+9X4dwc PxCV6YuToEe/c+u+OPsyXTrgxZQGIo1dV+Kw6JHkdwx6Q3xcXYYTWQUGht0YpQ6uZ079 mKHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si6224057otp.119.2020.03.30.06.59.14; Mon, 30 Mar 2020 06:59:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728555AbgC3NZM (ORCPT + 99 others); Mon, 30 Mar 2020 09:25:12 -0400 Received: from foss.arm.com ([217.140.110.172]:53604 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727728AbgC3NZM (ORCPT ); Mon, 30 Mar 2020 09:25:12 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9FBF8101E; Mon, 30 Mar 2020 06:25:11 -0700 (PDT) Received: from bogus (unknown [10.37.12.97]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E88A93F71E; Mon, 30 Mar 2020 06:25:08 -0700 (PDT) Date: Mon, 30 Mar 2020 14:25:06 +0100 From: Sudeep Holla To: Robin Murphy Cc: Andy Shevchenko , Naresh Kamboju , "Rafael J. Wysocki" , Greg Kroah-Hartman , Linux Kernel Mailing List , Linux PM , Basil Eljuse , lkft-triage@lists.linaro.org, Linux-Next Mailing List , fntoth@gmail.com, Arnd Bergmann , Sudeep Holla , Anders Roxell Subject: Re: [PATCH v2 3/3] driver core: Replace open-coded list_last_entry() Message-ID: <20200330132506.GD20031@bogus> References: <20200324122023.9649-1-andriy.shevchenko@linux.intel.com> <20200324122023.9649-3-andriy.shevchenko@linux.intel.com> <028b636f-6e0f-c36a-aa4e-6a16d936fc6a@arm.com> <20200330095707.GA10432@bogus> <0a374eaa-92b3-0201-f357-4181542c98b6@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a374eaa-92b3-0201-f357-4181542c98b6@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2020 at 01:45:32PM +0100, Robin Murphy wrote: > On 2020-03-30 11:13 am, Sudeep Holla wrote: > > On Fri, Mar 27, 2020 at 07:40:25PM +0000, Robin Murphy wrote: > > > On 2020-03-27 5:56 pm, Naresh Kamboju wrote: > > > > The kernel warning noticed on arm64 juno-r2 device running linux > > > > next-20200326 and next-20200327 > > > > > > I suspect this is the correct expected behaviour manifesting. If you're > > > using the upstream juno-r2.dts, the power domain being waited for here is > > > provided by SCPI, however unless you're using an SCP firmware from at least > > > 3 years ago you won't actually have SCPI since they switched it to the newer > > > SCMI protocol, which is not yet supported upstream for Juno. See what > > > happened earlier in the log: > > > > > > [ 2.741206] scpi_protocol scpi: incorrect or no SCP firmware found > > > [ 2.747586] scpi_protocol: probe of scpi failed with error -110 > > > > > > Thus this is the "waiting for a dependency which will never appear" case, > > > for which I assume the warning is intentional, > > > > Is that the case ? > > > > Previously we used to get the warning: > > "amba xx: ignoring dependency for device, assuming no driver" > > > > Now we have the kernel warning in addition to the above. > > AFAICS the difference is down to whether deferred_probe_timeout has expired > or not - I'm not familiar enough with this code to know *exactly* what the > difference is supposed to represent, nor which change has actually pushed > the Juno case from one state to the other Me either > (other than it almost certainly > can't be $SUBJECT - if this series is to blame at all I'd assume it would be > down to patch #1/3, but there's a bunch of other rework previously queued in > -next that is probably also interacting) > I agree, I was assuming one of the patch in series but again I may be wrong. > > > since the system is essentially broken (i.e. the hardware/firmware doesn't > > > actually match what the DT describes). > > > > > > > Not sure if we can term it as "essentially broken". Definitely not 100% > > functional but not broken if the situation like on Juno where SCP firmware > > is fundamental for all OSPM but not essential for boot and other minimum > > set of functionality. > > It's "broken" in the sense that the underlying system is *not* the system > described in the DT. Yes, all the parts that still happen to line up will > mostly still function OK, but those that don't will fundamentally not work > as the kernel has been told to expect. I'm not sure what you prefer to call > "not working as the kernel expects", but I call it "broken" ;) > I agree with you in context of Juno and it's firmware story. But I also have another development use-case. Unless the DT becomes the integral part of firmware from start, we can end up having DT with full DT components(e.g. all SCMI users) while the firmware can add the features incremental way. I agree this is not common for most of the kernel developer but practical for few. -- Regards, Sudeep