Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1178366ybp; Fri, 11 Oct 2019 10:05:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxOsJTOTOAtZDpYizBe9AwYYHfbrMYUIhqxC5W2gB4BlLbxe+TZxYz69pKobpTyixOYfPn X-Received: by 2002:a50:8dc5:: with SMTP id s5mr14528240edh.115.1570813543622; Fri, 11 Oct 2019 10:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570813543; cv=none; d=google.com; s=arc-20160816; b=yJgwXHvWh7r9MSWgtTpkAANOLUh+pXyLOdRcBB2u30xL7gWARrNh3kgc870icSncqP gbbySCBhUO5QHZR0uhYA6Hf0n4NEs/JH3UnIgY9BEwnjBHNV/H2fhlopnubZghzkbKy6 DA56bt96mI5whQvI2qJS5HeKCcqB/6Ps2BcGsLfghH55zWpN4JXeN/HEPvFOGPrfYXwD 4x4lAgb6V4jPZdZAN3NSc+5Rqkrh5ZZN3Kh84mwVms6b9NHXc5FPsUMzkS90rNTxBNCD 8hoiXP2FXfb3c5XH9lRzgDl9Ker/GUBz9FfYx8CIouCIv4z3v/qYjgY3JVJaTmGvnViF YcQg== 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:dkim-signature; bh=gH8CN6ifApnuUIuL6rRcDtc3+x1r+DnUSfP1BvRM+tU=; b=IMm/LZMPkV2AgsI9JUsLcSZLXKyI6YuJ9N5n7a7UBquxj2yCr8agf6pjuh5VyzL6DJ RbraUh3YXj0vYYZ244Kdcp0UgvvdwFmKRQ4ONdmm3po3pmvx57Rp+SdAZ250oYdeMlt5 /M9WIBMUb8hc5FyzRTpephH9adOcNoMG+fcoL3yI3T8UINVPstE/aTltdiiyxRtQJ6WX Ch9T5VpLF6MzFFCBj2/j0Ny8z/lyiLqi4695T0WiSGhFxz2tiIItddNahWMTVT8SW0FZ swNebs/2N6YivtZKW6pnX653CAp9XxIoypQfZsj6lA8A29CrFqfA53ySmGMbpFE8MDV8 QVCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vi3AsMoB; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x45si6324482edd.388.2019.10.11.10.05.18; Fri, 11 Oct 2019 10:05:43 -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=@linaro.org header.s=google header.b=vi3AsMoB; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728547AbfJKRFL (ORCPT + 99 others); Fri, 11 Oct 2019 13:05:11 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43688 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728474AbfJKRFK (ORCPT ); Fri, 11 Oct 2019 13:05:10 -0400 Received: by mail-pf1-f196.google.com with SMTP id a2so6433884pfo.10 for ; Fri, 11 Oct 2019 10:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gH8CN6ifApnuUIuL6rRcDtc3+x1r+DnUSfP1BvRM+tU=; b=vi3AsMoBjn6t2StCoswScx6ITgLZ5Dgh/dkl10r9QPfaugvfwAw+Ks8xKYxym1++tD hvzb7DfDTq4FZZsRTjHm5lK07UpQR6ElOaQUNQh1vMdFAB9EJtAXJ5oRLCJ/gAyvebLp Y3GV0qJzrWd+xi/FPiAMnEJA2HE+WRUffyThCEm0vZX8MhhZCNZUfP4eUuHhX4RiUxMk UU42FAkEi+pbCIS8fIWqciAEA4L0F6B52OPRrzwBXuxRFdbC9yYQi87WND1dKMvBIaRH AhAc1Y3Z+JgaiNtoMDqv2EWxSrCg492dY9oa0cnWWSGU9eXqCgVgLip0sBwe9cQlgmfY tKbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gH8CN6ifApnuUIuL6rRcDtc3+x1r+DnUSfP1BvRM+tU=; b=Y5gl/5/J5NIUYyCbZ6YHGXVjJ2VtolL8Y1Ae9c5DF3c0f+Z2MzSOcWSBW98LYBBkNN yFW2jjze1WxLk13MiZtgJTh6SpVY0z6Uqr0IUjEfPw2zTgY76/bpOV8ncUqEdaSbbmBq IrUcW3jfIHHyTaQcDc/ss6Ch5tjSjsaQYpKEh8PFALP8WSNRj/bTm2EwFXZ4/dSP5IKa gn6Kplcv/Tb3amcbQqDNXF5WK+MIxrcKIiwdBuAWNf1o8xqZ1Gu6jClfJhqE+QdBCd6P tN5lhSneeMSlxXbUixIpl3ISeDsKiqCUcllpRW7KiGA3IAMqckevvYT+BlQn9wJkMVJW ZkhA== X-Gm-Message-State: APjAAAVhed50HvoIYAMAxD2esp+nsvwHIyBwyvmQMhLIsBiMmNuCnTyg Yvp5Qy902XRG7sgDKyFJeq8Pug== X-Received: by 2002:a62:2581:: with SMTP id l123mr17786124pfl.197.1570813509739; Fri, 11 Oct 2019 10:05:09 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 199sm10116069pfv.152.2019.10.11.10.05.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 10:05:08 -0700 (PDT) Date: Fri, 11 Oct 2019 10:05:06 -0700 From: Bjorn Andersson To: Brian Masney 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: <20191011170506.GD571@minitux> References: <20191005114605.5279-1-masneyb@onstation.org> <20191005114605.5279-3-masneyb@onstation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191005114605.5279-3-masneyb@onstation.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. But I prefer that we merge it like you propose and then swing back to work out the details. > + 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