Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3492010imu; Fri, 18 Jan 2019 11:19:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN4JHNWfG9xaMHWKdE5g8L2hqW4XPuANbylyRHrxkOL2J3pxAf7HFZ2uhQJYJcQF+m0KvVRd X-Received: by 2002:a65:520a:: with SMTP id o10mr19488390pgp.276.1547839141113; Fri, 18 Jan 2019 11:19:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547839141; cv=none; d=google.com; s=arc-20160816; b=kSUwPFh1bnW+6D/BJaGLA2g+voGS8x9jDATM5T7aV621wxQ2lG2KMg9QL9XKg7ZNFf U/UpBDJ3O3yrjq0Am2AmndY79qvcgcY3XRnlAgpj6L7C8mxfuY0y+MqGe5SGUZtLRGyR IAu5sfud5aM0ATMIOMhRmVRLvO3ctNxdlLkNfMvpzPqjqVGqfGGVRZz/DUq7w9URPwkw rF+czcrdKiY4v7WnJj50wquQn4SmDMGTXcoh4x2V4JtNxGPQvJFwvxh9FX+/43mV3QOt YfzGVbw0Ca9UUl0ja6DXBQLWErJl3PdZdhf6mPIVYmPqiqH48e87Blz9YD2koH+e4ap4 glpA== 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=MDXl7WSUi074jkd7X6KXoC9QfpZB6qA/GGHETltYmD0=; b=fjjxZ0QOd/Mo0LCCWxzcxRJ99kdaBW9WQIYmFkcw9+MWlUwojOLpaHfgdw24FO0ED0 ZjuCVhmlFS+66CnnuRz/sSvhO5C1M/GszLLNTYMR3cDyqgrjf6eme6mxTBnoW8aiJPd8 PoOfscKlNQ7w3bl+ASLa/FvOGqZvEQFbVRnXF7nIFDLKoNEj/ecb9jnY1/y8xMweghbu mKweIxUZxtsutbnJo+GQyB4p3vRTjKzVAOs7i8TtOz8h0eGsMmvEPudkE+0KjByIa7Wv wh+7GoFA3zE2LUjIzYDpXTIjw9NrSYTKiA/FSo59Hhv5eSETs7hNXTbGm13LNE0CC/Gu 4C3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SjJ5dCoq; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i33si5310641pld.329.2019.01.18.11.18.45; Fri, 18 Jan 2019 11:19: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=@gmail.com header.s=20161025 header.b=SjJ5dCoq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729340AbfARTQr (ORCPT + 99 others); Fri, 18 Jan 2019 14:16:47 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:38508 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729199AbfARTQq (ORCPT ); Fri, 18 Jan 2019 14:16:46 -0500 Received: by mail-it1-f195.google.com with SMTP id h65so7239571ith.3; Fri, 18 Jan 2019 11:16:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MDXl7WSUi074jkd7X6KXoC9QfpZB6qA/GGHETltYmD0=; b=SjJ5dCoqac7VkCfxy04aVxLJLojiT4OuWSvB3RqmSa77ELKfTkdHNP/6JAqeZN/WeD mHz3jinBxfbdx+zMMyQ1jZ+m5BJ9EegmSpi2aQEfpV97RWM5W40cZFqZwUpnduizZyPR 4dIxmJHqDQMMdGBnUS6p0seHmc4JeM66Q+pf6M/Xc1RaAQhWc1cgtquJgrLO7gn1BVsF g3oFxOBrz6LedKIvPPMsnyGOLpVbbA4XoACqiQbLPd/UT9agBbP8kdN8VO/dG2yMKO17 UvMXTXdODGilwVaOQyK92hp0XMQ1EkCER/94HykClQm/vCnivz4B/pBfOHdgr5XGrrcO pF7Q== 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=MDXl7WSUi074jkd7X6KXoC9QfpZB6qA/GGHETltYmD0=; b=XrvVo77JvzH/o2GnO013d5dcL8+NsR74LvEjep3SaD13r1CdODiBE22P/VEZr8fzsV D46RZDljvz1sOCKB6MnVtZGZYNBe3HzG3YvisQZX/OoblCsjN31YCFJdxj0GtexZMzwz xL9fY2+RxqC1HoBxakf1BXStDQK+IPIvoTXLw4JUA3gM0bgKF0ubnLmxUbFYHOJU5hp5 X59UI8hJhDHeh5e750xtirRFqEmNMsIlOcGl09DrwiqtSRO+U+BtW4ju5bd0xq6l/FhZ hqYooKYUuv/1w7sbTBkLAW9Kriv3HyquWbApiJuqqFK6Nml7WKyHiMjEml/DXfHgyqt7 Db0A== X-Gm-Message-State: AJcUukd2nXjQqm7sbMZEtxoJKfjrH0aMO4HLCAjCGLIBEfEH11cpcseR 5SDPLoVgl7FuOPipJjKLegbGl2aElfXZjpHbiSA= X-Received: by 2002:a24:3dd5:: with SMTP id n204mr12804949itn.104.1547839005126; Fri, 18 Jan 2019 11:16:45 -0800 (PST) MIME-Version: 1.0 References: <20181220173026.3857-1-jcrouse@codeaurora.org> <20181220173026.3857-2-jcrouse@codeaurora.org> In-Reply-To: From: Rob Clark Date: Fri, 18 Jan 2019 14:16:32 -0500 Message-ID: Subject: Re: [PATCH v3 1/3] drm/msm/a6xx: Add support for an interconnect path To: Doug Anderson Cc: Jordan Crouse , Georgi Djakov , 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 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. BR, -R > > Does anyone have a preference? It's be nice if whoever is planning to > land this could indicate whether they'd prefer Jordan send a new > version to handle the API change or if the relevant maintainer can > just do the fixup when the patch lands. > > > Thanks! > > > -Doug