Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp43210imu; Tue, 22 Jan 2019 13:28:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN697peDd2E7+x0RluCaDXlNdddA7PyLGogvLfBjD5HY+Qk3enDUoEvnYSfXTx5fofkLoyw8 X-Received: by 2002:a63:5207:: with SMTP id g7mr33921666pgb.253.1548192481961; Tue, 22 Jan 2019 13:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548192481; cv=none; d=google.com; s=arc-20160816; b=BDulTcKKbkWjg8+eQjuRgwjHMRNITrkHjHi+yQuIz1akqsA3e+dJZB/jlwPLTOFBnr dZtGA0+tpyEvIDRzyox4JRk8Zi4bpZcSF7mVLO+IfQCRhfWSj1jrEav+jhLdawh3i09I JVN2H61YrIyceoIhpgL3rTBg+CCKayb01KalC5AeCU/jqCOy5J3gSGCC3ZUQLvFMK7fw RbharA6MDRylV6gVNPA71fKqvZkxX04rnJQUkFGvNu40/h1UdDdNmXLi0JQoIIi/TOev PuIUT9UsWWs8u+a3T0Ma++9I6PV8L3SKOyflZwb+gxByzhhxEZyHj6RR58r2Ml2pLWye H2EQ== 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=6w26hlfgDNTXLsZw2YsSMtNTh3vRrWi44Y9MhG0Qq8E=; b=jdV7toHe0g0RUQTLofzT+vW+cEV2fdEQKYwlWVmsbBks05nPQJVyrCJDtIJEu6aStd ifpJX6KTJ0ajpD5TNMC/eKwAqp9TfLLHatGP697nCztHkgUTTpbXa3k4ryJ+mSZtHF2U Zqmg5YJrnHGuoYIVxFhAREmkbTyGcf9G6r8GhIUeu8csDXMuc8YrAVdZOAG9aV3Wt9Nv eRMD3JPtFHfRkPIPEmKgrfInSD3WhFi+PZgUR2yNnt9LFY205z51aTq1VbUSbLJ6Qbh2 9SJ86gRCDiI4qnMScbbp5lD1UTvMSsNjXiLlIgt24oTkU3puUWZ+xlywo34NFd4JExBh JqYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OC7zf1jt; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si16474892plt.213.2019.01.22.13.27.40; Tue, 22 Jan 2019 13:28:01 -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=@chromium.org header.s=google header.b=OC7zf1jt; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726604AbfAVV0G (ORCPT + 99 others); Tue, 22 Jan 2019 16:26:06 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:46109 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbfAVV0F (ORCPT ); Tue, 22 Jan 2019 16:26:05 -0500 Received: by mail-vs1-f65.google.com with SMTP id n10so15641938vso.13 for ; Tue, 22 Jan 2019 13:26:04 -0800 (PST) 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=6w26hlfgDNTXLsZw2YsSMtNTh3vRrWi44Y9MhG0Qq8E=; b=OC7zf1jtjIVfypEI9AvpeWGEVfy8on+CLx+ZXe6SI8weZuMJ/AljD6BVMNiev9kHcR xgZj1DxIWIyWYvA0gUS+3AqUOhCpm1oIgAmJrYKvBmq+S5yTWsyucR881uKlPP8+x1KU QQS8WTizSkupdOG7OhLuEwQDrKNLzhbLeZLNA= 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=6w26hlfgDNTXLsZw2YsSMtNTh3vRrWi44Y9MhG0Qq8E=; b=iNx1rW2ZwSGTY3BC6vcC4LJSneAm2JRC2hp7d/TgOeXWp1FqU1jjktZtdhBXotPzCh Uh2MF1/9k13zqr2hDxYu2WJBxfIdDwx5J47ReJMYIQOGHmT44GhvIMBhq57vLv1VFpie mm+ERZ2NlYYJYPenZvigpn/g4T2gh4X57j7DKQHC+Llnb4RSZ2afEmSra5wytybvs7d4 4K7fuBBPVy40ycT7ZmFZQSSMnCe+x86ub0gE7ShffAWbcA81OBjRu/xEDx159vMQvtMo zb6jCbZkerbk5uzBApcyOTZWkIpi9D8CCuGIJkObqiv6/C3L5Zd0vtEpKTSmZCTbH2ks t17w== X-Gm-Message-State: AJcUukeRiAgHlNS/8nSwAZ2CxM3BI6X3reOieBti7L82m+tR1R2P7fCk dskQU2RjJQr07nQwzwk2XRXbFQrDpqw= X-Received: by 2002:a67:a8da:: with SMTP id h87mr15673882vsi.143.1548192364063; Tue, 22 Jan 2019 13:26:04 -0800 (PST) Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com. [209.85.222.54]) by smtp.gmail.com with ESMTPSA id a137sm19930310vsd.24.2019.01.22.13.26.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 13:26:03 -0800 (PST) Received: by mail-ua1-f54.google.com with SMTP id z24so8596490ual.8 for ; Tue, 22 Jan 2019 13:26:03 -0800 (PST) X-Received: by 2002:ab0:60a3:: with SMTP id f3mr14285167uam.9.1548191885777; Tue, 22 Jan 2019 13:18:05 -0800 (PST) MIME-Version: 1.0 References: <20181220173026.3857-1-jcrouse@codeaurora.org> <20181220173026.3857-2-jcrouse@codeaurora.org> <0a260759-be37-bf8f-6e1b-b24406c8eeca@linaro.org> In-Reply-To: <0a260759-be37-bf8f-6e1b-b24406c8eeca@linaro.org> From: Doug Anderson Date: Tue, 22 Jan 2019 13:17:53 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/3] drm/msm/a6xx: Add support for an interconnect path To: Georgi Djakov , Rob Clark 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 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 Mon, Jan 21, 2019 at 9:13 AM Georgi Djakov wrote: > > 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. Ah, right. You need to be based upon commit 85437cddf4e5 ("dt-bindings: drm/msm/a6xx: Document GMU and update GPU bindings") from Rob Clark's msm-next AKA ...so I guess the easiest is to have the bindings could go through Rob Clark's tree and the code through you tree if that's what people want to do? -Doug