Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2128409lqe; Tue, 9 Apr 2024 10:13:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxmlXsSptkghy+FRuttBpgJ+btO2WIGATfwkgC65RawGdxMJNnjRl7XQsKfS/T9UAHtpHM3NKIPNaZe340G8jX7vUutTApya89uZFzZQ== X-Google-Smtp-Source: AGHT+IHuQ5bbxj6q1yPUiWcr2dzFFZlq7Wy5df4wnxRXGOWtT3MyziiWCVfTDZlknGSiy0xXHLst X-Received: by 2002:a05:620a:56c9:b0:78d:4ade:a3c9 with SMTP id wh9-20020a05620a56c900b0078d4adea3c9mr328419qkn.5.1712682787285; Tue, 09 Apr 2024 10:13:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712682787; cv=pass; d=google.com; s=arc-20160816; b=UP48DOZGxWq2XGI1NCmgEl3B5d7eymhPSIa4qcUhuer+f7LegLdf9Jq7XAQgVPW4jN YzRzGV9PNER8gjrtr9Fewt6XnLdlByWuLtw6j/pMQwLJpUAzDeCRK8rZrX2yfwPFFCTT qKIoTdCcnDB8YZTN3yE7xRQGrKnaaw6PNrfqSn/K8Ph23+zkPgNLx7tGL6Bt/fr8rgxP HXoJ7QtFpp2+029MNa1+2xBIyt+Egrmh3FCObTRjVs56vL8nUWBk5eldjxmsFyePr3Xj 6hNBfvu6QR8drUKhra/9wZf5nhXrBLh0IZPiCv5QB0a3CsTa0E5STT4VKvT3TZdVLUCh R3MQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=avtQoYEPbu2+Jr0W5m1ghEuAGynrnjvGqeyVENfv9tU=; fh=JMlNI02C29UDIHYaFADvF1jTYl/eyCtjPpZeSN/jFHs=; b=C9xcupHVJ0r/MRjxnGleBYjyGZ+nkV/V5w9C8LypemeR8nx3jbaSNjEsOe7FyssV1L s87wYftLnSYSlCP4ZGqVgZlhXk8j2AiBPovwahq0mXvnkI13k4e2a1U9vXeujirbL1Uw wcT1kZVRH+6nyZH+Wxaf8z/U2Ed2oi+7rPwfIY7ggeU+i18ao17uI87dEbgk9DAlIRDe //DHcI0VEVFZg5IDo5/3QKMECxxIV7IhpAk4aFPG+y7WCBEyKtppdszVtur0QkBGxBu/ Lub5X7FvOZU76nY7M0Hn1wQr5F+pxHqutxb+z/rHVkGYLg0qDJQ48X8jvcuOeHHROKwI 05Kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RgpnfeFN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-137379-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137379-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q11-20020a05620a024b00b0078d5fd6acf3si6750272qkn.403.2024.04.09.10.13.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 10:13:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137379-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RgpnfeFN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-137379-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137379-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E44C71C20B06 for ; Tue, 9 Apr 2024 17:13:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD03915574D; Tue, 9 Apr 2024 17:12:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RgpnfeFN" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30E6312E1D5; Tue, 9 Apr 2024 17:12:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712682735; cv=none; b=VYBjRbEqMPSIU8AzBaGXC6CBNXQrBm0QZMxkyaJknn3JfClAZD93wcmtKT/uF6f0QHw6eQFlgxL/LKE2ScefDP4XLUPrQWCoqPZjhl17lv22I3QswAJtFZKTlmkRatl9lUgEfNWBr38GsHKeTdA8DMG+kii0lb17NUbowIeM2DI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712682735; c=relaxed/simple; bh=avtQoYEPbu2+Jr0W5m1ghEuAGynrnjvGqeyVENfv9tU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fA5DTzNjVWzDlA+CySAg8GT2+JWRYfFXJXALXrkoBHHcD8inBsDSU005AGQHqL0Nwvxil90MwNgH2t3LjtZFniPQcrbEFysNSav/WZxsHuIUd8IBYK9I1ovLB9h4IQ2pFYjBwqBMdHuuzplfNBIqHnTsmgxUr3c2QJ5HHkqZwcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RgpnfeFN; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-56845954ffeso7900714a12.2; Tue, 09 Apr 2024 10:12:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712682732; x=1713287532; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=avtQoYEPbu2+Jr0W5m1ghEuAGynrnjvGqeyVENfv9tU=; b=RgpnfeFN5RTt9XLtfwViH4g2S0SpXVv5rBHVXvdfPEP44G0gSYJrkp2+2pDyn3CjBK GSy7G6JE1PzB4haSCZ9VqMIKOh1kRNASZrZ5rp7jDWIEEqaDwqwYDgnA//5XS12/iCYE LwB9cDmz0V3CBq7w3sHHcaLtF2m8nFQtbc5+IgJkEGP8rGX5e8+Bcwg+0DrS8ZkWdVEX AgrJR3B27DHM+VWIugiV1URbz+O9Ug8SS2CNwJXYd8wtwwhIFr1GS85tCPuTerMQ4V12 gdx/sX3yadrDm4nsjsP7Tk8xNVmb6h4G7MVftJbEGbci27cOX+eZlAZaEW9y6DWbzDlL NayA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712682732; x=1713287532; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=avtQoYEPbu2+Jr0W5m1ghEuAGynrnjvGqeyVENfv9tU=; b=k/YQ3z4n9xQd+huRLLWpp9G7k7zaHxIvH4vklN1UZNMrwcVP2bZ8fufJmP9AeNXIqD R7q474k+ybnLqtBAs4ckFGxDGshJxOIXGCdWRt+ZNpvQtMB/36dJNcukkw00dJfNUBRR pAgBOJdUusQO+beHVm61uetnjs7o2NauVleUyqG9xTclayMxo2p7F0SjztDP5YYbaXP7 2s66TN5Q9B84/zQa2Y9ERoulIz7Azk695DwaZA4oATW65F0AnN8KCyY497DfuPxQf7A9 gIvqpVxpHkgN/+uNJxQiB30E0DaEV3gWIc3OJu2eyOcCK6gEmQsT6qc1TSHjryLETvQw YNEw== X-Forwarded-Encrypted: i=1; AJvYcCU8l1o7VpMMEyLxFnDr/zdUZN3pvYzF4HimJwwdgmsUpllBS7KGLt/xmUgok76kFLE0agXaoLnSsSqn50kjIWx6S46/R65sdPV5hlFniS/q7DwMFXV1B5KX3aEXkEeb4kBbXPNz8FxgQKlpKl71aI3/pXmg1UBFH+SO6gz/w4PfyRgxJboIh4o= X-Gm-Message-State: AOJu0YybLNUc++3WQ6kjbMugMrtOssRSU/e+SQHdNqEqldc420PVsLQ3 sTW/mmnqs6S8TW8JMUpnEsWg62c1s0Nj4OBkPq3eqzcozE84vuSQtOrOAsSRRzfdiVUJ7aBoxk+ 872PVo/jL6Jsh5wRrfNKPphoWOag= X-Received: by 2002:a50:c305:0:b0:568:b622:f225 with SMTP id a5-20020a50c305000000b00568b622f225mr85452edb.30.1712682732145; Tue, 09 Apr 2024 10:12:12 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240405-topic-smem_speedbin-v1-0-ce2b864251b1@linaro.org> <20240405-topic-smem_speedbin-v1-3-ce2b864251b1@linaro.org> In-Reply-To: From: Rob Clark Date: Tue, 9 Apr 2024 10:12:00 -0700 Message-ID: Subject: Re: [PATCH 3/6] drm/msm/adreno: Allow specifying default speedbin value To: Dmitry Baryshkov Cc: Konrad Dybcio , Bjorn Andersson , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, Neil Armstrong Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 9, 2024 at 8:23=E2=80=AFAM Dmitry Baryshkov wrote: > > On Tue, Apr 09, 2024 at 05:12:46PM +0200, Konrad Dybcio wrote: > > > > > > On 4/6/24 04:56, Dmitry Baryshkov wrote: > > > On Fri, Apr 05, 2024 at 10:41:31AM +0200, Konrad Dybcio wrote: > > > > From: Neil Armstrong > > > > > > > > Usually, speedbin 0 is the "super SKU", a.k.a the one which can clo= ck > > > > the highest. Falling back to it when things go wrong is largely > > > > suboptimal, as more often than not, the top frequencies are not > > > > supposed to work on other bins. > > > > > > Isn't it better to just return an error here instead of trying to gue= ss > > > which speedbin to use? > > > > Not sure. I'd rather better compatibility for e.g. booting up a new > > laptop with just dt. > > New speedbin can have lower max speed, so by attempting to run it at > higher freq you might be breaking it. Usually there are some OPPs in common to all speedbins, so picking a freq from that set would seem like the safe thing to do BR, -R > > > > > > > > > If that's not the case, I think the commit should be expanded with > > > actually setting default_speedbin for the existing GPUs. > > > > I think that should be addressed, although separately. > > I'd prefer to have it as a part of this patch, but I'd not NAK it just > for this reason. > > -- > With best wishes > Dmitry