Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6404941pxv; Thu, 29 Jul 2021 13:51:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlk2wO24HrPT6dFmwy2vld2GcAc8n8LCvuS33GMoAegSRKknR6r22mpn9WvMSayd5fbVjk X-Received: by 2002:a17:906:4917:: with SMTP id b23mr6576984ejq.468.1627591888158; Thu, 29 Jul 2021 13:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627591888; cv=none; d=google.com; s=arc-20160816; b=00DkbLUy1ZbumCIlcxYqUgqPIjPT6BCj/V9M+lg1Mc9gE5NTD1mRBqVbbG91vQSU0J DwZ5lkwTBgcbGkoavK8IQ12dz0V7y3ILKIM79QoDNhGcwA8fwLvOCQ5TpL3rxmMN0Kpb IP13vTL+v7ocMPJxq5VPlUmIMYQju5jNznJ7aUMNf9837RVy/hyEbjDsDVNTvX/vGzsE Y7grxXo83wSWP32lc8FSf/BPIfrnQjSDB9gQzP9DPefvRyIi1hCLO4/vixO5m7UW562+ lWWxMFaFZaKKVG92KLFsNFkY/MR5E6DFpHzcYu/PrNfNr0WgIDmKgeWxQclims4VcKiR E2iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=w7rlS789IwgWOu8sIYtR7tqkgkaO1gIx+9/djlmIsjw=; b=dZMCMP86/guHBifGJhQ2p/95PCPNBzBppD6qxFgxzUM6n+6BS8+Iy/VFSUVkCyTLQP axC7M18ZjwkGrvFQ4z4MMfnyV1lEm8yzm3n7MzGDORKhxC1+YunpRFHV9L6TqITdtukl fuHmBmZxE+vLLLOboSBVBqBC1D9ltDGSb9RT4UWhIl331iNDSrqhgN+HHXq9vmezxkbT XEl0+C6sBrhBpQ9v5UJbJkTCIn8vPsIW3Sz0v3t5e+uZKnBIldN0obw3sN6US3yElhWi aEwZh8jahfXZmzHGZkdfcfuxnEszMdwfBto+1MAh5q3hdWl1UUAJIrI8Ulyq4EO6XF7j InKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hePKOPuI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id dn5si3532704edb.117.2021.07.29.13.51.01; Thu, 29 Jul 2021 13:51:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hePKOPuI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233128AbhG2UtQ (ORCPT + 99 others); Thu, 29 Jul 2021 16:49:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbhG2UtO (ORCPT ); Thu, 29 Jul 2021 16:49:14 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA527C061765; Thu, 29 Jul 2021 13:49:09 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id b128so4538093wmb.4; Thu, 29 Jul 2021 13:49:09 -0700 (PDT) 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=w7rlS789IwgWOu8sIYtR7tqkgkaO1gIx+9/djlmIsjw=; b=hePKOPuIIlnAtoZEz8val+chOEf8rJ7kzDrFbr157HgnPoDVRtY059x6N91MtMpQiN i3MqE5tvyQ5TAyTg9vM6mw/qSOYzsd64vgehdXnhKJbddyoOBIKDmlSBN2ac4AFGM0md vfISX61P1x2bWXSzCmxafEDFt66XYhpjkINkU9Z455HUDmfwuko9p63/HAUp/bwgiHtV IMQPamLEriq+766cvyptqUAYmoC3x0HifCe/YVWKcSv4v3SetAx8o83afYhdy61wJOsS 1FLHySZ7pOEur5JsLlXjylFwr/MNuqIHx2d0b4yoR8dExNw5gxakvCgPN0ldJK4BfIiF kTaw== 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=w7rlS789IwgWOu8sIYtR7tqkgkaO1gIx+9/djlmIsjw=; b=SMtrso0D5Ol+Izz7MwR8cYxvQM03vrMnULhfTZa04AxTJZSbsXgn/IsLEqKwMo9S+d qGBJ6CzH+3+nRK/8LHy1RMzhtPWrcEKOL3BC3WPzl6ai6ip6wHRVGdSrnPfdAudcgKqz EKHzmHRlX/ylJqc/5BN38nusj44nI4b9NSuPzwYLX/7sAtHsf3IpVB+r91YUOYHB9cfj HuWpZL+yO9kDZarHo5lyXUkGFn5Gbc7EuHDO9OlyrC8E5lwaNXO4wJkGcjyk2YUxgYA1 wJVtNI69QuLmI0TBw/nYIH8JrE0lgB+nKEaUAAAivd+vUs6xystC63tJ6JpQuaNBFg68 ZWCA== X-Gm-Message-State: AOAM530cZP4rvBeoeaXmBPCZZNNU8N4KecPsgS5UYjUMfVUmcN94NvQY S2VtjnXl9mrQKU++vl0nVdKo96eXIVqx9zzezds= X-Received: by 2002:a7b:cc8b:: with SMTP id p11mr296283wma.164.1627591748230; Thu, 29 Jul 2021 13:49:08 -0700 (PDT) MIME-Version: 1.0 References: <20210729183942.2839925-1-robdclark@gmail.com> <1a38a590-a64e-58ef-1bbf-0ae49c004d05@linaro.org> In-Reply-To: From: Rob Clark Date: Thu, 29 Jul 2021 13:53:17 -0700 Message-ID: Subject: Re: [PATCH] drm/msm: Disable frequency clamping on a630 To: Caleb Connolly Cc: dri-devel , freedreno , linux-arm-msm , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Jordan Crouse , Jonathan Marek , Sai Prakash Ranjan , Bjorn Andersson , Sharat Masetty , Akhil P Oommen , open list , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 1:28 PM Caleb Connolly wrote: > > > > On 29/07/2021 21:24, Rob Clark wrote: > > On Thu, Jul 29, 2021 at 1:06 PM Caleb Connolly > > wrote: > >> > >> Hi Rob, > >> > >> I've done some more testing! It looks like before that patch ("drm/msm: Devfreq tuning") the GPU would never get above > >> the second frequency in the OPP table (342MHz) (at least, not in glxgears). With the patch applied it would more > >> aggressively jump up to the max frequency which seems to be unstable at the default regulator voltages. > > > > *ohh*, yeah, ok, that would explain it > > > >> Hacking the pm8005 s1 regulator (which provides VDD_GFX) up to 0.988v (instead of the stock 0.516v) makes the GPU stable > >> at the higher frequencies. > >> > >> Applying this patch reverts the behaviour, and the GPU never goes above 342MHz in glxgears, losing ~30% performance in > >> glxgear. > >> > >> I think (?) that enabling CPR support would be the proper solution to this - that would ensure that the regulators run > >> at the voltage the hardware needs to be stable. > >> > >> Is hacking the voltage higher (although ideally not quite that high) an acceptable short term solution until we have > >> CPR? Or would it be safer to just not make use of the higher frequencies on a630 for now? > >> > > > > tbh, I'm not sure about the regulator stuff and CPR.. Bjorn is already > > on CC and I added sboyd, maybe one of them knows better. > > > > In the short term, removing the higher problematic OPPs from dts might > > be a better option than this patch (which I'm dropping), since there > > is nothing stopping other workloads from hitting higher OPPs. > Oh yeah that sounds like a more sensible workaround than mine . > > > > I'm slightly curious why I didn't have problems at higher OPPs on my > > c630 laptop (sdm850) > Perhaps you won the sillicon lottery - iirc sdm850 is binned for higher clocks as is out of the factory. > > Would it be best to drop the OPPs for all devices? Or just those affected? I guess it's possible another c630 might > crash where yours doesn't? I've not heard any reports of similar issues from the handful of other folks with c630's on #aarch64-laptops.. but I can't really say if that is luck or not. Maybe just remove it for affected devices? But I'll defer to Bjorn. BR, -R