Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6460605imu; Mon, 21 Jan 2019 09:15:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN71y+YpUc+tvXXp16eZtI1qvV6AbBo+DA+5Y9QszCl2HXU1VYHXJI5NGxpHpd5uqkfaDZrz X-Received: by 2002:a63:981:: with SMTP id 123mr29021537pgj.444.1548090928391; Mon, 21 Jan 2019 09:15:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548090928; cv=none; d=google.com; s=arc-20160816; b=hvlGDvIwg3MGTAug1JfRXlzIibmnjAniUB1lxWy9dTFNheOKPOYME5Mw8h4q+rg3OZ CWuZtncFOwOlKT/74g9WJ9U56ps7foOCRfWGlzFIctoRSmlTJnbRW7fLrVqwfXdIKq4c 5wYTf2Bbmp32heejXvDkd6AEZhg4oEzvUJwjGuz5C00BY7Fq2S7llLnsWjgNhlJDWW8r wuCkPXLK+d8RcVZNjonb7Wz2MJNalcQni7JWKUwX51TDdK2bEvKPBjQq8DkdSG6fEMp2 B+HUvNUccYSeaUzPjgSBKwAegeWFLggmTskoojQbVsThY8M1pMGWnJOtlO1u/Rxvh169 DCjA== 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:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature; bh=YOsOowzINI371zCyHfth4PAfwLOH7XtK+SqK8pSvud8=; b=1LbfUIW8SkYDjq676PJwpHdHWHn4LoJHHV9ts62VMGU2w6aMCmkVRWn4v8acD770x+ kFFHPoFpxKG5V6TG/PPVZNm9L4S+0BYgEcLpBHGDrAC1CFaoIK5nF7KNQXacZ5V/KPE/ 7y+Yi2tzQqLybqFTOuqK95H7WpKkjN30WPi7yhq9cCN90fqpNBPbedCAhkw0ALPZw27C BJvpaNp+6rogaDSOL0M4sAXZxNnjTJbrErG2QPF3QgudJJyf3oCFWcqKfN94CU0dFX11 5kBlQBJwDaJGwv0Kav6h16cevYS1bOypvR/PaWI5Rf47xUz0VnVWu3QpSevqy3jZKqTi UAlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CWsnzBdC; 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 s11si13670244pgi.324.2019.01.21.09.15.12; Mon, 21 Jan 2019 09:15:28 -0800 (PST) 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=CWsnzBdC; 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 S1726566AbfAURNU (ORCPT + 99 others); Mon, 21 Jan 2019 12:13:20 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38661 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbfAURNT (ORCPT ); Mon, 21 Jan 2019 12:13:19 -0500 Received: by mail-wm1-f67.google.com with SMTP id m22so11624002wml.3 for ; Mon, 21 Jan 2019 09:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YOsOowzINI371zCyHfth4PAfwLOH7XtK+SqK8pSvud8=; b=CWsnzBdCwsoZEsywXsspfMPDi4k6AdkMt1xb3Dmbk0fcHXsc2XySzfgpoEyH/9364a 2RPR6mx1cT+kbCS20NUQQuw5/2CFJff42NvU+i/gW9ql7UvdyJmejkrbRRrMEM75wf6Z O4x4wsuJx0Yqo6sokuMs31emuQdXUEuE+yxdE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YOsOowzINI371zCyHfth4PAfwLOH7XtK+SqK8pSvud8=; b=b0RiOggpf+977oOV1VL0mO46iSPOlofz17hUrYgmUZN5O1e/w/u7JH6WLqMG0Q7zaH dTeP4/DHUZFyXh6XXNenc106+0DJRY2sUKN8VchSt16wE7WPJnkddjjLokm5fgHYXTxa Q6zQEeUzbYHhmJRU1I7j1JrNK1uu2MemYw6g2QjkK44mKUTEOAoD4O2jmy8noVN7s5a7 gR2ppLiaJ6/BKFsOEPDLr3fWNNyN+Sk6b1iQjJdrQMxUL/D0EI19dYC6w8yJJwfY7Bet G8zF4VoSbP23HJFaSmAJ11w69qyvAIMkOE7O3EEyBwzprpA/n/FUZhdiK4IsHbhFmQBi XTLw== X-Gm-Message-State: AJcUukdPW1xdGrb84/5WYNS+M/y/nSe0FEGvzhs8vMrMhU2fwqI7KcaB I6dP0ORkwOI4T2PDbHQ2g31RvA== X-Received: by 2002:a1c:1383:: with SMTP id 125mr248998wmt.71.1548090797328; Mon, 21 Jan 2019 09:13:17 -0800 (PST) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id h62sm39941937wmf.11.2019.01.21.09.13.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 09:13:16 -0800 (PST) Subject: Re: [PATCH v3 1/3] drm/msm/a6xx: Add support for an interconnect path To: Rob Clark , Doug Anderson Cc: Jordan Crouse , freedreno , linux-arm-msm , Bjorn Andersson , Arnd Bergmann , Stephen Boyd , Kees Cook , Sharat Masetty , dri-devel , LKML , Andy Gross , David Airlie , Johan Hovold , Colin Ian King , Evan Green , Sean Paul References: <20181220173026.3857-1-jcrouse@codeaurora.org> <20181220173026.3857-2-jcrouse@codeaurora.org> From: Georgi Djakov Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= mQINBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk6HJ5+HSxD4KVuluj0jnXW4CKzFkKaTxOp7jE6ZD/9Sh74DM8v etN8uwDjtYsM07I3Szlh/I+iThxe/4zVtUQsvgXjwuoOOBWWc4m4KKg+W4zm8bSCqrd1DUgL f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNxscnGMh2VlY2rezmqJdcK4G4Lprkc0jOHotV/6oJ mj9h95Ouvbq5TDHx+ERn8uytPygDBR67kNHs18LkvrEex/Z1cQARAQABtChHZW9yZ2kgRGph a292IDxnZW9yZ2kuZGpha292QGxpbmFyby5vcmc+iQI+BBMBAgAoBQJY07kXAhsDBQkHhM4A BgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRCyi/eZcnW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Tw== Message-ID: <0a260759-be37-bf8f-6e1b-b24406c8eeca@linaro.org> Date: Mon, 21 Jan 2019 19:13:13 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 1/18/19 21:16, Rob Clark wrote: > On Fri, Jan 18, 2019 at 1:06 PM Doug Anderson wrote: >> >> Hi, >> >> On Thu, Dec 20, 2018 at 9:30 AM Jordan Crouse wrote: >>> >>> Try to get the interconnect path for the GPU and vote for the maximum >>> bandwidth to support all frequencies. This is needed for performance. >>> Later we will want to scale the bandwidth based on the frequency to >>> also optimize for power but that will require some device tree >>> infrastructure that does not yet exist. >>> >>> v5: Remove hardcoded interconnect name and just use the default >> >> nit: ${SUBJECT} says v3, but this is v5. >> >> I'll put in my usual plug for considering "patman" to help post >> patches. Even though it lives in the u-boot git repo it's still a gem >> for kernel work. >> >> >> >>> @@ -85,6 +89,12 @@ static void __a6xx_gmu_set_freq(struct a6xx_gmu *gmu, int index) >>> dev_err(gmu->dev, "GMU set GPU frequency error: %d\n", ret); >>> >>> gmu->freq = gmu->gpu_freqs[index]; >>> + >>> + /* >>> + * Eventually we will want to scale the path vote with the frequency but >>> + * for now leave it at max so that the performance is nominal. >>> + */ >>> + icc_set(gpu->icc_path, 0, MBps_to_icc(7216)); >> >> You'll need to change icc_set() here to icc_set_bw() to match v13, AKA: >> >> - https://patchwork.kernel.org/patch/10766335/ >> - https://lkml.kernel.org/r/20190116161103.6937-2-georgi.djakov@linaro.org >> >> >>> @@ -695,6 +707,9 @@ int a6xx_gmu_resume(struct a6xx_gpu *a6xx_gpu) >>> if (ret) >>> goto out; >>> >>> + /* Set the bus quota to a reasonable value for boot */ >>> + icc_set(gpu->icc_path, 0, MBps_to_icc(3072)); >> >> This will also need to change to icc_set_bw() >> >> >>> @@ -781,6 +798,9 @@ int a6xx_gmu_stop(struct a6xx_gpu *a6xx_gpu) >>> /* Tell RPMh to power off the GPU */ >>> a6xx_rpmh_stop(gmu); >>> >>> + /* Remove the bus vote */ >>> + icc_set(gpu->icc_path, 0, 0); >> >> This will also need to change to icc_set_bw() >> >> >> I have the same questions for this series that I had in response to >> the email ("[v5 2/3] drm/msm/dpu: Integrate interconnect API in MDSS") >> >> >> >> Copy / pasting here (with minor name changes) so folks don't have to >> follow links / search email. >> >> == >> >> I'm curious what the plan is for landing this series. Rob / Gerogi: >> do you have any preference? Options I'd imagine: >> >> A) Wait until interconnect lands (in 5.1?) and land this through >> msm-next in the version after (5.2?) >> >> B) Georgi provides an immutable branch for interconnect when his lands >> (assuming he's landing via pull request) and that gets pulled into the >> the relevant drm tree. >> >> C) Rob Acks this series and indicates that it should go in through >> Gerogi's tree (probably only works if Georgi plans to send a pull >> request). If we're going this route then (IIUC) we'd want to land >> this in Gerogi's tree sooner rather than later so it can get some bake >> time? NOTE: as per my prior reply, I believe Rob has already Acked >> this patch. >> > > I'm ok to ack and have it land via Georgi's tree, if Georgi wants to > do that. Or otherwise, I could maybe coordinate w/ airlied to send a > 2nd late msm-next pr including the gpu and display interconnect > patches. I'm fine either way. But it would be nice if both patches (this one and the dt-bindings go together. The v6 of this patch applies cleanly to my tree, but the next one (2/3) with the dt-bindings doesn't. Thanks, Georgi