Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2416855ybb; Mon, 30 Mar 2020 05:49:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs+Jq4I8HFtgi9zRIZkZgzhEn5Acwmm20o4UAXnbB3i8ZojN4VEel9yDwfNMCr+djVV0RU3 X-Received: by 2002:a05:6830:200c:: with SMTP id e12mr9155543otp.198.1585572549228; Mon, 30 Mar 2020 05:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585572549; cv=none; d=google.com; s=arc-20160816; b=lmvwI3+TnosdX4TSdSIxljRkkFXOXyHrB0XOxmsOhdrbY7+hsDAWvbB1T+SpSJa3PR 5rggUax3UDUT7VQKnWl6MpacLO8opfSvUH2vOJ6RHaEsJPYHDBLUBN8+RnGZyi5fMazd mzIm9gCKp+oQG8Rx2uqpgJ0i2zxFrV3kXmf27v9nX2f5RWlK0w0iDSk8/faiYuQZOKKv 1eA2M3Cu+RY3vsK54eUIKV/roWIFP3V06ghsS1uXaUKHci50PhbJYR7HgpCncOucZBa4 7NLpWqV3GUSns7QXlAE4d0y0bkRLlMKT82xCOWuka5V/9ttuHUkR867ibOcsB0ii9zfd sXww== 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=JUZgcDDKjKqrZC7Ly3kspUasG/kV1765FSIcceYylYE=; b=OSZOmo27/yUsvp/EweZglT/B1VGXANO9714Fa2yUSg27yOTKt+SOQNmyTmGO8KWUZW hynB8nMToprtLPRZodDVlqYodnp3dvTXapp2+9lihLwZSxmU2/tCKmM/OGMoliBCvqUt dh7izNugFSfRnawPaCr+rvkkoQgvYEbTJpLB4VYbT2LShT/Xjw/8SkfpzDeoWDAoA6iT 5Z1OJdozzIg3kdn3pufNMvk0lB8k55vROmr3Mpk866n427vlg7bJVaGYSZFaavF4m4wP cnHv3ySvToNci/+9G4IAKTs6Bd/b+9HnFCo52plBMnvwYM++10VyQuLD8oFDdXx4sr8F taLQ== 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 h66si3872402oif.53.2020.03.30.05.48.56; Mon, 30 Mar 2020 05:49:09 -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 S1730065AbgC3Mph (ORCPT + 99 others); Mon, 30 Mar 2020 08:45:37 -0400 Received: from foss.arm.com ([217.140.110.172]:52734 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729705AbgC3Mpg (ORCPT ); Mon, 30 Mar 2020 08:45:36 -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 DD46330E; Mon, 30 Mar 2020 05:45:35 -0700 (PDT) Received: from [10.57.60.204] (unknown [10.57.60.204]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D01383F71E; Mon, 30 Mar 2020 05:45:33 -0700 (PDT) Subject: Re: [PATCH v2 3/3] driver core: Replace open-coded list_last_entry() To: Sudeep Holla , Andy Shevchenko Cc: 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 , Anders Roxell 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> From: Robin Murphy Message-ID: <0a374eaa-92b3-0201-f357-4181542c98b6@arm.com> Date: Mon, 30 Mar 2020 13:45:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200330095707.GA10432@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 (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) >> 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" ;) Robin.