Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp562504ybp; Fri, 4 Oct 2019 01:04:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjHHk/fQ3CFeuLSrPSitUlhLhsQ6DhBrVVHjm0iGjsfU+pywa397uZq9UXlzdp//n+zTJV X-Received: by 2002:a05:6402:1688:: with SMTP id a8mr13551379edv.225.1570176249652; Fri, 04 Oct 2019 01:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570176249; cv=none; d=google.com; s=arc-20160816; b=QRx0alRDWRYeOQBAnZVxgKqqyLtQ+63Z6HSUvj5UdMhpEvFD6hjPgWkV44NpBePw7J YEVhNTwq0GU78AZ6XUofMJIjqVE2A9gosVXRuSF+K2N6JTO3Wj5nEZpE3i+ttrvC3Y+S z32VqO6HmIGQ2kLbIMyMSyJEOoeWmF9YQaqQWIYgCmW4sNZwJs+1cszM4RXZMJ8IrSMv L7M+LARvlzGHr1BoLgbu9Hl+b233mI+5xQodgtViPtolfG09xcpuHV/QzEYNS+Mx6iL7 Pq0/RYjl/Us79t55lCxom3b/iV//MMbSuO1qyA/mZenB4u1wt5Y7BQ/Etn9yFQP7bQph Smdg== 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=roEhTXREkSRHHDtWlBoYOXDT2mRuIiBIXyDIcrT3vnQ=; b=FV3TF5NVhn8+Kh9H8hFt79XFg7Sa+hTbgZTQEGIV73RzU81UnKvyuuqXAae+w7qy+l gLCUA+f6ydvwMUMI4s7YGa1f6pA1FJi1b8/JxsRimjt6EJ7LoFb8XrXZ7dUCMdLHpi/k WWUGuTbCmxj+pnd1NCvKgkSBFGPrJQL7ue9P1jikuVcNVkecGcXQ5YaH1ot2dhnPY91o 2JQVrAzSZK9fuCuoKWPsS6sc6r1OvUnkZwfUdrjJX1yxSPgUXcuhfVoFUNo3dAprClDT mUG87AFqSu4TelUBgu5UQu/Gr9f/qh8swzIflwKUi3rVwGmyWQi7BzGFctXRdMsJC2j4 VZNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pCMUpk16; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si2567706ejz.227.2019.10.04.01.03.45; Fri, 04 Oct 2019 01:04: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pCMUpk16; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387423AbfJDDO1 (ORCPT + 99 others); Thu, 3 Oct 2019 23:14:27 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:42850 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727758AbfJDDO1 (ORCPT ); Thu, 3 Oct 2019 23:14:27 -0400 Received: by mail-io1-f67.google.com with SMTP id n197so10362339iod.9; Thu, 03 Oct 2019 20:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=roEhTXREkSRHHDtWlBoYOXDT2mRuIiBIXyDIcrT3vnQ=; b=pCMUpk16480gB77pJSrNiyNSOPkRZkZaqejqw6Yku64DtiHhchNQbsMIuEhmZ9ca2+ 4AYRQc2QSoBtSL76F7FuQak2kx6ThaelHw9AhoE2TJxykNyuP1KtEYJGbHHzA7Yu/v6k hzFBc4CNCazkXf9VO5BXTyHQeGnQrV+Cp4HwKQqj3bdcTXJ4D1/rCzKK0+8bo2wHDvPe K9PQE7yXdvQRyBB3M1VHZnJ7v0oQVk7uJupy1psoALMijoiRR3kNuA8hpBe/QPUJdORX JjS0xVE0Kk9v4WeIj+4fLwja8q8f7iRPF7rI0EnZ7dAdC92A02I99x85S/1UYuiJgFUZ 9G7Q== 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=roEhTXREkSRHHDtWlBoYOXDT2mRuIiBIXyDIcrT3vnQ=; b=R+/atEZwlMAH03u7xUPBvkngCvDKIJah1Mho89z/hR6wGqbp9gJ1BYniufsfVfNyPY K0GLON3kZr3bw5FaNahBuMviwveZtuKD/GyGPlvCi+8q40+CEr36ExO5fPSzfAQJlJ1X 6ZoZsGur0qjv4HR/9mArhMioOqsJCZh9rlTQ/v5unjBWMpA6uyMAynJJwvzGfZbYVgU8 M4UvfglnNz8Lw4Xsxov6tp/rh27IEPgtLvs+jJK3zbsSya6yrChBs7u4ss0N3nlpgEve cJ69qa0Ir/K1Vqt8cYKZYpV8GeqrYDnKoAKdYaHw35oHc/7yCWuO27Gol+jdGCdq9EIq pUpg== X-Gm-Message-State: APjAAAWJt5DLQGvEf/1xzBEqz4YnsgfgE9SifrZj5tBKS6qMLINg125e NQHX6H8JcqLlOsiicI7dEnIgS5xCmE/OabwJ03w= X-Received: by 2002:a05:6e02:6cb:: with SMTP id p11mr12692504ils.33.1570158866353; Thu, 03 Oct 2019 20:14:26 -0700 (PDT) MIME-Version: 1.0 References: <49cf5d94beb9af9ef4e78d4c52f3b0ad20b7c63f.1558430617.git.amit.kucheria@linaro.org> <20191002091950.GA9393@centauri> <20191002092734.GA15523@centauri> In-Reply-To: From: Jeffrey Hugo Date: Thu, 3 Oct 2019 21:14:14 -0600 Message-ID: Subject: Re: [PATCH v2 7/9] arm64: dts: qcom: msm8998: Add PSCI cpuidle low power states To: Amit Kucheria Cc: Niklas Cassel , lkml , MSM , Bjorn Andersson , Andy Gross , Marc Gonzalez , Sibi Sankar , Daniel Lezcano , David Brown , Li Yang , Shawn Guo , DTML 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, Oct 3, 2019 at 7:36 PM Amit Kucheria wrote: > > On Wed, Oct 2, 2019 at 11:48 PM Jeffrey Hugo wrote: > > > > On Wed, Oct 2, 2019 at 3:27 AM Niklas Cassel wrote: > > > > > > On Wed, Oct 02, 2019 at 11:19:50AM +0200, Niklas Cassel wrote: > > > > On Mon, Sep 30, 2019 at 04:20:15PM -0600, Jeffrey Hugo wrote: > > > > > Amit, the merged version of the below change causes a boot failure > > > > > (nasty hang, sometimes with RCU stalls) on the msm8998 laptops. Oddly > > > > > enough, it seems to be resolved if I remove the cpu-idle-states > > > > > property from one of the cpu nodes. > > > > > > > > > > I see no issues with the msm8998 MTP. > > > > > > > > Hello Jeffrey, Amit, > > > > > > > > If the PSCI idle states work properly on the msm8998 devboard (MTP), > > > > but causes crashes on msm8998 laptops, the only logical change is > > > > that the PSCI firmware is different between the two devices. > > > > > > Since the msm8998 laptops boot using ACPI, perhaps these laptops > > > doesn't support PSCI/have any PSCI firmware at all. > > > > They have PSCI. If there was no PSCI, I would expect the PSCI > > get_version request from Linux to fail, and all PSCI functionality to > > be disabled. > > > > However, your mention about ACPI sparked a thought. ACPI describes > > the idle states, along with the PSCI info, in the ACPI0007 devices. > > Those exist on the laptops, and the info mostly correlates with Amit's > > patch (ACPI seems to be a bit more conservative about the latencies, > > and describes one additional deeper state). However, upon a detailed > > analysis of the ACPI description, I did find something relevant - the > > retention state is not enabled. > > > > So, I hacked out the retention state from Amit's patch, and I did not > > observe a hang. I used sysfs, and appeared able to validate that the > > power collapse state was being used successfully. > > Interesting that the shallower sleep state was causing problems. > Usually, it is the deeper states that cause problems. So you plan to > override the idle states table in the board-specific DT? Yes. Already posted. > > Why does the platform even rely on DT? Shouldn't we use the ACPI tables instead? In theory, yes. However the ACPI seems to be incomplete (assumes things are just hardcoded in the driver maybe?) and has tons of non-standard things in it. DT seems to be the easy path to enablement. > > > I'm guessing that something is weird with the laptops, where the CPUs > > can go into retention, but not come out, thus causing issues. > > > > I'll post a patch to fix up the laptops. Thanks for all the help.