Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2160178lqe; Tue, 9 Apr 2024 11:08:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4b6UObwv93mONbJbex+KAmLzhydJO4oGIINwHaPPqBSf5rJSsaIZck+92mLZKrIa9vWAgc0qOcAIzY/jGgAo+5j7Zq6pXKZilR7fJBg== X-Google-Smtp-Source: AGHT+IGK/m7M84Rx6eW2VC76fRrvK1mCsH9mdNZFwIIMEFZDiXOcGNBPgIAYzfj5DNH0I+D6gT/u X-Received: by 2002:a50:871c:0:b0:56e:3088:49a with SMTP id i28-20020a50871c000000b0056e3088049amr251674edb.37.1712686104628; Tue, 09 Apr 2024 11:08:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712686104; cv=pass; d=google.com; s=arc-20160816; b=dZrtb2rzT9voZUBaDGjajmUYZtnNDhHMc5+RdfUZ4/AQb2hrIGd5B3PDOBkLdn1n6o MIPviKTVJHk+nX0WfoH9Bx25AUKvzeRd/8y56jGqVg1Cgo1mnNlRCICwNKooqJ3D6P57 4WbfH9vzr2bOD4GA0R5MT2pc8H5sgi8iDcQCr9mrUAAE8hE61gSo9JX/r8g1+g1hUw12 ug4pl0o+1BfdglbLbvbpXw+wtBUmMxmOtnjhleuemzYyGYZlN95rM4A21DHk/a/RClmZ +aFoL0VHgsPO6EoBvBuzbnh4H5S9CLiqhqX5rSIzqfKsqt+CtCPby+OoKtZv18jVVYQB qccA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VrZ8RYQWmS/u2XwLs8TYJcX0Juh8Ia0TqmDetkGlloc=; fh=JG4VoLwzDmMXVsBJYPdNOhBADc2vjdd1Vfh1QpcP61I=; b=o6hhXKcUBty2ewJ5ZXGHrPLk6NtwHerI2+rDfQ6J6giKDmRs7JVQ/tU0zBDfr8iwur BZbOif+KUSFuyCl6osW3xmkzu/bRBBKqUHkiX0rBT5ML5utb/h3KnNy3yehawddR0MMy 4rFO6DSQ0dsgSwcc4qgVCu4gtsyPKe1g8LAAS4G3GfEVK83cZsw6cs5OAIQCQjljdZ5G MUKfkgljuviqjbdHpBoPasjyU0Zd49ndHs0C+JIe9mg99rxI3cGIbsZuUq2J7cni88dt t85RDvZLfqWXD1NWflI3/lqH08dThUg7hpCB6vWrfqbwLGaW2yekGhQ3caMBvzwFFm8L sL+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MDvgS//y"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-137438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x1-20020a05640226c100b0056df9d6b14asi4951600edd.442.2024.04.09.11.08.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MDvgS//y"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-137438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id ED2771F239B5 for ; Tue, 9 Apr 2024 18:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A99B156994; Tue, 9 Apr 2024 18:08:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MDvgS//y" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 79B91156654 for ; Tue, 9 Apr 2024 18:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712686082; cv=none; b=QISkcpAgdnpPo8NkmKWruQGP8daNwHu/PXWKUQUeuk4MOXz8E3Y4YMyoK9cUXZL8Q7exsPBzMgFn3fo4TbVhbBxRYI7JrmKu8Ww8dSYZ62ci9Swy9+QBk2om6iG4oduqLJUq6IoRURwnkho+zWNYq6z0fjdy2rDV/ZcY2DBVV1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712686082; c=relaxed/simple; bh=r0cBb6TC8kaxGaoj/nyQjZyd29xL4RD/be2AArxVvoU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ED9LpzN460O5YOG5/GWtL+iRUGkcZsxfNp+Nyf3wP5vG+MU+3+ysMImgv3ZWEF+rqr8SbC+y/M8vDgObYBh5qiNxERykpd08i1juojivu7wqMAwXPCopWm2x7F6O+ICSvSN7+D2Xbl7Yv+LkR1wzxaWk7CLcfazKYmIvk7bUw0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MDvgS//y; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-516d04fc04bso9125051e87.2 for ; Tue, 09 Apr 2024 11:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712686079; x=1713290879; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VrZ8RYQWmS/u2XwLs8TYJcX0Juh8Ia0TqmDetkGlloc=; b=MDvgS//y9Z4Zuqi4JdBm/4iMxPujP2t3Ct+L/hCejNNvQyn96Z783Mp94+UpYCFCtv NzUfaYmxBW/qOmghZuNQCRF9n+WKTmfTXIcxPY62s2+Kj/JYHoZ5QGnYdEfHyaYePSpj +UYCLMgQ5Zjlr+RqtYmaSCI9TD5ihOo+jrBdPEyGGFUWkKfIeP6eAzv21ySG5MGsQsQK XAqiKvGeuN2XqULJB2Bm8MfopyboZtmTQeH1MjDJyX25ewzAdsOyULnD6d98O/QaVx4h eWTvbwkEKOytatHeVOybuH6nNEUcUgjX9EdF1GQ3YkupNgpSlDF/xUvmdrmYTbWRcHY9 BWkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712686079; x=1713290879; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VrZ8RYQWmS/u2XwLs8TYJcX0Juh8Ia0TqmDetkGlloc=; b=nqfBmagH21Pluro+M9mllshUNk+Uv83iiBnErkuLKSzLR8E97zy1bWdZ4HkKqRJNEA rl6Nj+k7qe/Ty7XXgs/AZEupakV/V1FR8gJloxvxH0fp/vvRlwJQdFGLFc+9/FTbEasV nIPsln3CqudWylD27KjzBaaGzxJSWgfzVIPtt/gVr9pBJkeVrgl2/loTPFF5XpegK0yb uBOMLLwmUZy/6w2vNDfktstGwNwwt0FcIoIiw6e08PrTNxQjKjEZtQgLAR4An3w6Oo5d 3FmBnSB2ckJzhKBOcN3FF2SJFkV3nNuK2FsjKVTJisDiUSiNziirLDPWB4k8055ZnjXo cJCg== X-Forwarded-Encrypted: i=1; AJvYcCX0sfIMdyWtRg8uegIrcoX9dfRKUWNMufYspGDOXnTWHUQ7fxaEqgDXGmiMJUS5aJCf5Es5EAdo9vbvKCw31uxW2QkHKLy8ZEdOLJob X-Gm-Message-State: AOJu0YztlvBHjznY4Zh9jSBC+EP2sE8HVRCwpMajEJMH4Pir4tFlpSgA vGiE1zMUnBJsJ2RT9tHk1ha4Mp6h4ZZ7KHO/1CFiHB1MX2p9V19f8Iq0A3lChSo= X-Received: by 2002:a05:6512:2313:b0:513:7e83:b3f2 with SMTP id o19-20020a056512231300b005137e83b3f2mr178345lfu.45.1712686078563; Tue, 09 Apr 2024 11:07:58 -0700 (PDT) Received: from [172.30.205.99] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id i10-20020a0565123e0a00b0051723af85casm629871lfv.238.2024.04.09.11.07.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 11:07:58 -0700 (PDT) Message-ID: Date: Tue, 9 Apr 2024 20:07:56 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/6] drm/msm/adreno: Allow specifying default speedbin value To: Dmitry Baryshkov , Rob Clark Cc: 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 References: <20240405-topic-smem_speedbin-v1-0-ce2b864251b1@linaro.org> <20240405-topic-smem_speedbin-v1-3-ce2b864251b1@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/9/24 20:04, Dmitry Baryshkov wrote: > On Tue, Apr 09, 2024 at 10:12:00AM -0700, Rob Clark wrote: >> On Tue, Apr 9, 2024 at 8:23 AM 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 clock >>>>>> 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 guess >>>>> 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 > > Well, the issue is about an uknown speed bin. So in theory we know > nothing about the set of speeds itsupports. My point is that we should > simplfy fail in such case. Or we could allow e.g. the lowest frequency (or 2) which if often shared across the board to work, giving a compromise between OOBE and sanity Konrad