Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2095679ybp; Sat, 12 Oct 2019 04:06:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEHlFGvFK0VwyNwvIQazby0vxzg0csP9FV5jSrCZZvXz/Cgfbsv+sDK2muqLCfreqov63u X-Received: by 2002:a05:6402:12ca:: with SMTP id k10mr18213247edx.91.1570878399140; Sat, 12 Oct 2019 04:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570878399; cv=none; d=google.com; s=arc-20160816; b=PsvMq2TnzPgt/SrFCKisQJ0lJMcq9cwOoSXdWbnVd2kJiWoBldZ820IlFMGnlQkjBb RPTLvfpEvI0J1x/cDn1GusZZrM1NlH1a1DkJ3Z22MZEbU1FUnWNeMcodXqztxEJsn8Up xII6xkS2I0Bj4MgJeJP1qzEnn18txWukPnaSUYqJdEkh83OeSdbzMdgoq8SXyaUs0SpW dOKEj98k4JqYKR03vNRe7YsnLWSzfw3fYkNzlfTO7svTPg6hbkuJh0XvEE2Z1oXZUNK6 tfMRfwVkv1dWHEZEa7AiXr4Gw1p+ynQ3vlD/Zlv0w9ni8GV/rvOlVYpi+ivk1Ztgn63D pdGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=H89X7nUpwSmpY5r8Rs1Lk3u4d6OCzCcBCSYAk4Y6wQs=; b=Zh+DKQM+buC/J8vMAx/KjSZwbLYLUkI0yR1v2dWg4n1SxY5VFkPnRqfEBq2+Ea4wNB RTat5wxZiCQxH1w2hfQuZMKf/MFhzLPJ7QXKlHlAHiJ76BGLsIx3ZkgNnCdiMH4bH7GZ mFRh9I6aQwHEQ3xIHzHe2axhvaqz98lmI0tSuc2YFNsDFQmxZSNUwmOMViSYMZW6dnIM V66vXgZucf5V5XQEllC8dGlFxJjA5xS81+zz8Gp3J4KAD2gaz9ovjadVcc3tu+DowV0u AbSbaHSvjr2P+aAndggbTLdsddff3KatnStFrdu2dpp3wGAv2SvStlJLc8iefdCWlHkz IW0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=inOMyMio; 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 2si7351773ejq.243.2019.10.12.04.06.14; Sat, 12 Oct 2019 04:06:39 -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 (test mode) header.i=@onstation.org header.s=default header.b=inOMyMio; 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 S1729205AbfJLLAq (ORCPT + 99 others); Sat, 12 Oct 2019 07:00:46 -0400 Received: from onstation.org ([52.200.56.107]:39942 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726555AbfJLLAq (ORCPT ); Sat, 12 Oct 2019 07:00:46 -0400 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id E714D3E88D; Sat, 12 Oct 2019 11:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1570878045; bh=RKEyGbpvgWtwHv8UHOurWHkaxTHUsbMgak77d33UolU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=inOMyMioapH/dHJS9M7XNIdUmPxozcHiRqJ0lNduxURkpo+/iLn9/d7wAyigCB8ZI gYR/uXByl8UsSNdGbbksuAa0YEUvu8+K68Sr5h9tX/9bkb26U6W8NKI4FsAPBAU0Qk 1ehSKMsZzLefA2hwou0q5RSjhw1g3vAVMtSR3YJM= Date: Sat, 12 Oct 2019 07:00:44 -0400 From: Brian Masney To: Bjorn Andersson Cc: georgi.djakov@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, jonathan@marek.ca Subject: Re: [PATCH v2 2/2] interconnect: qcom: add msm8974 driver Message-ID: <20191012110044.GA19009@onstation.org> References: <20191005114605.5279-1-masneyb@onstation.org> <20191005114605.5279-3-masneyb@onstation.org> <20191011170506.GD571@minitux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191011170506.GD571@minitux> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 11, 2019 at 10:05:06AM -0700, Bjorn Andersson wrote: > On Sat 05 Oct 04:46 PDT 2019, Brian Masney wrote: > > diff --git a/drivers/interconnect/qcom/msm8974.c b/drivers/interconnect/qcom/msm8974.c > [..] > > +static void msm8974_icc_rpm_smd_send(struct device *dev, int rsc_type, > > + char *name, int id, u64 val) > > +{ > > + int ret; > > + > > + if (id == -1) > > + return; > > + > > + /* > > + * Setting the bandwidth requests for some nodes fails and this same > > + * behavior occurs on the downstream MSM 3.4 kernel sources based on > > + * errors like this in that kernel: > > + * > > + * msm_rpm_get_error_from_ack(): RPM NACK Unsupported resource > > + * AXI: msm_bus_rpm_req(): RPM: Ack failed > > + * AXI: msm_bus_rpm_commit_arb(): RPM: Req fail: mas:32, bw:240000000 > > + * > > + * Since there's no publicly available documentation for this hardware, > > + * and the bandwidth for some nodes in the path can be set properly, > > + * let's not return an error. > > + */ > > So presumably all that matters for paths including these endpoints is > the clk_set_rate() on the bus itself. That's the case for the GPU at the very least. > But I prefer that we merge it like you propose and then swing back to > work out the details. Thanks, Brian > > > + ret = qcom_icc_rpm_smd_send(QCOM_SMD_RPM_ACTIVE_STATE, rsc_type, id, > > + val); > > + if (ret) > > + dev_dbg(dev, "Cannot set bandwidth for node %s (%d): %d\n", > > + name, id, ret); > > +} > > + > > Reviewed-by: Bjorn Andersson > > Regards, > Bjorn