Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1329200ybg; Wed, 29 Jul 2020 11:14:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxznKDsScjOgGnq+TpMpMkCQaONMfmcDhPJbCtNQpMG+xA49R0BlkNFZ0Z0XeiQ4+jWIMnJ X-Received: by 2002:a17:906:2451:: with SMTP id a17mr28341504ejb.274.1596046482091; Wed, 29 Jul 2020 11:14:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596046482; cv=none; d=google.com; s=arc-20160816; b=tRtt87XoOi4KNFpLYG/RxitwDLF/LnozGwQBbgWeK0EiyLAFFjYygE5vNQLgP55iSt 05vR+jiY634x8eDhSsh4UQXma+7kwiETUx30Y9W3u/S3rTp4AiCqbGiCoFX01yJPZ3WE RHMmbHya7OJtvyZIapl8i6mP1zT4YvctT1Pi7vzz6a+84UV6XdTUqiM5A1vBx2CDWEFc /3Caff+1CyVJF58UP2kAervywKwkC+s0eEFWWI0eHzDRC3fu1fiRHE+wK4pixg7SlypV neNEwAcj2YiRgMleB2G0hRNIdK1S05evxCQLfXuuJeJEly481GAA99GPQJZA7rPpkUvw zJSA== 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=uCoModElWAnbMRvPO3YU9XQVQgftZ0hKK53c1cAKSbs=; b=yCbXNEiADMRj37Poq6Fe9Hxn1gQDjAUTgvenoXpy0UH+0oVSqKQsTFtwMCCfYgFNlj 4ELObeuB3ZzPf4Z903cbhF9VhMFf9xCy9gcjpid8u7jCpabuXjObAbCPFMYKN3aV+c9Y u5BjN7Vnhd/Vky2wtgKYvmRWqnLrZSHUKyupOqXC3KGtC4kKGIGghdY0vTNx4Stw/ziY ioV/LSIDPNBG1fJuDxf0R/HEko0Hc3P9yEfFP8mPqKYkLY/sO9dmqwSO4Jms1IyLWPmb +YDeRm7ufJ/YRY0bND0ljm2k4mN44sUfcdulvvMz8SetJXscU3A1C3VFuQUgdMqGmJ5R 9X7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="QIBt/1oo"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k24si1680056eds.441.2020.07.29.11.14.20; Wed, 29 Jul 2020 11:14: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=@chromium.org header.s=google header.b="QIBt/1oo"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727897AbgG2SLA (ORCPT + 99 others); Wed, 29 Jul 2020 14:11:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727091AbgG2SK7 (ORCPT ); Wed, 29 Jul 2020 14:10:59 -0400 Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C685C0619D2 for ; Wed, 29 Jul 2020 11:10:59 -0700 (PDT) Received: by mail-vs1-xe42.google.com with SMTP id q13so5655204vsn.9 for ; Wed, 29 Jul 2020 11:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uCoModElWAnbMRvPO3YU9XQVQgftZ0hKK53c1cAKSbs=; b=QIBt/1ooWx13u1wuOLTIXdWssccajDzsKyxD32hHiHwZrVsqw/Iw9vLsv8+Z8E4gEy iEiguY8ka10wGb70eyABHcDiVLisSk0H3fV6NvNFulhN68llC5a9dvZPNtFPxwp3L5Ad AC9vJlcYBsOaBTsD4WtfRj2yMEjviNinT33WI= 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=uCoModElWAnbMRvPO3YU9XQVQgftZ0hKK53c1cAKSbs=; b=Yhv8Vle7H+mufCNuxmkfsJPbeqdxttSaOimJAHSlhHau5FsUcNXPmewGCF5OEQyhRi aTfqfSiOV2i9owPnBH7+Pm+c0A4UbDKbQlOtfK71QpjIsdKFNyDlfKUfKUW1zr10Rtks nzhN5EYHQB1H0FMCnccycCj7f1xko4ibUdGzUFbrE5PnEk0CRM679cdxAbr9LbX+rbi5 z3I19UUO23dm1mIZUhMu6wL+wHkWr98F9dMguQeRY0KDvEOcFy3DZ/0+FtxJ2v+XQkUn qbGRy8GfwK9rQfvzAtQ/3AFr/2pH3WQljut89kGf4L3Jwf9AdFTiB+CmTdjgxU2YCmWb aPmg== X-Gm-Message-State: AOAM5317t+7L+8m/CjbfFvQnDaASM3Wk7frkXM0LWlZ6TN77y7MoNssv Jfp6s7S4/N+OKFektGHeKZvPJJfusbc= X-Received: by 2002:a67:69c1:: with SMTP id e184mr26370537vsc.119.1596046257943; Wed, 29 Jul 2020 11:10:57 -0700 (PDT) Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com. [209.85.221.174]) by smtp.gmail.com with ESMTPSA id s126sm368322vka.32.2020.07.29.11.10.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jul 2020 11:10:56 -0700 (PDT) Received: by mail-vk1-f174.google.com with SMTP id s81so586174vkb.3 for ; Wed, 29 Jul 2020 11:10:56 -0700 (PDT) X-Received: by 2002:a1f:9f17:: with SMTP id i23mr23539610vke.65.1596046256240; Wed, 29 Jul 2020 11:10:56 -0700 (PDT) MIME-Version: 1.0 References: <1595503612-2901-1-git-send-email-rnayak@codeaurora.org> <1595503612-2901-5-git-send-email-rnayak@codeaurora.org> <654e0fcb-ae4d-c151-fa8a-4d029fc823fb@codeaurora.org> <20200724162825.GH9185@codeaurora.org> <159589714088.1360974.13205114501389777927@swboyd.mtv.corp.google.com> <20200728165212.GA32586@codeaurora.org> <159596590401.1360974.283437162250734878@swboyd.mtv.corp.google.com> <20200728201133.GB32586@codeaurora.org> In-Reply-To: <20200728201133.GB32586@codeaurora.org> From: Doug Anderson Date: Wed, 29 Jul 2020 11:10:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus To: Lina Iyer Cc: Stephen Boyd , Rajendra Nayak , Stanimir Varbanov , Rob Herring , Andy Gross , Bjorn Andersson , linux-arm-msm , Linux Media Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Matthias Kaehlcke , Maulik Shah 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 Hi, On Tue, Jul 28, 2020 at 1:11 PM Lina Iyer wrote: > > On Tue, Jul 28 2020 at 13:51 -0600, Stephen Boyd wrote: > >Quoting Lina Iyer (2020-07-28 09:52:12) > >> On Mon, Jul 27 2020 at 18:45 -0600, Stephen Boyd wrote: > >> >Quoting Lina Iyer (2020-07-24 09:28:25) > >> >> On Fri, Jul 24 2020 at 03:03 -0600, Rajendra Nayak wrote: > >> >> >Hi Maulik/Lina, > >> >> > > >> >> >On 7/23/2020 11:36 PM, Stanimir Varbanov wrote: > >> >> >>Hi Rajendra, > >> >> >> > >> >> >>After applying 2,3 and 4/5 patches on linaro-integration v5.8-rc2 I see > >> >> >>below messages on db845: > >> >> >> > >> >> >>qcom-venus aa00000.video-codec: dev_pm_opp_set_rate: failed to find > >> >> >>current OPP for freq 533000097 (-34) > >> >> >> > >> >> >>^^^ This one is new. > >> >> >> > >> >> >>qcom_rpmh TCS Busy, retrying RPMH message send: addr=0x30000 > >> >> >> > >> >> >>^^^ and this message is annoying, can we make it pr_debug in rpmh? > >> >> > > >> >> How annoyingly often do you see this message? > >> >> Usually, this is an indication of bad system state either on remote > >> >> processors in the SoC or in Linux itself. On a smooth sailing build you > >> >> should not see this 'warning'. > >> >> > >> >> >Would you be fine with moving this message to a pr_debug? Its currently > >> >> >a pr_info_ratelimited() > >> >> I would rather not, moving this out of sight will mask a lot serious > >> >> issues that otherwise bring attention to the developers. > >> >> > >> > > >> >I removed this warning message in my patch posted to the list[1]. If > >> >it's a serious problem then I suppose a timeout is more appropriate, on > >> >the order of several seconds or so and then a pr_warn() and bail out of > >> >the async call with an error. > >> > > >> The warning used to capture issues that happen within a second and it > >> helps capture system related issues. Timing out after many seconds > >> overlooks the system issues that generally tend to resolve itself, but > >> nevertheless need to be investigated. > >> > > > >Is it correct to read "system related issues" as performance problems > >where the thread is spinning forever trying to send a message and it > >can't? So the problem is mostly that it's an unbounded amount of time > >before the message is sent to rpmh and this printk helps identify those > >situations where that is happening? > > > Yes, but mostly a short period of time like when other processors are in > the middle of a restart or resource states changes have taken unusual > amounts of time. The system will generally recover from this without > crashing in this case. User action is investigation of the situation > leading to these messages. While I do agree that seeing the "TCS Busy, retrying RPMH message send" message printed a lot was usually a sign that something was wrong in the system (possibly someone was spamming RPMh when they shouldn't be), it still feels like we need to remove it. Specifically, the prints would also sometimes come up in normal usage and always sounded a bit scary. These types of prints always confuse people and lead to log pollution where it's super hard to figure out which of the various things in a log are "expected" and which ones are relevant to whatever issue you're debugging. Presumably we could either change that from a "info" level to "dbg" level. ...or we could find some other thing to check for that's a better signal of problems. > >Otherwise as you say above it's a bad system state where the rpmh > >processor has gotten into a bad state like a crash? Can we recover from > >that? Or is the only recovery a reboot of the system? Does the rpmh > >processor reboot the system if it crashes? > We cannot recover from such a state. The remote processor will reboot if > it detects a failure at it's end. If the system entered a bad state, it > is possible that RPMH requests start timing out in Linux and remote > processor may not detect it. Hence, the timeout in rpmh_write() API. The > advised course of action is a restart as there is no way to recover from > this state. > > --Lina > >