Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2158035lqe; Tue, 9 Apr 2024 11:05:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzwosvGSd55lLRfH0Z8cmhGio6FirHS6wv6hoTug7aTUMknM0RngXfyzfMbpOeDDsPFHjPti1d/waV9p+97MuWvqPvoX1pYWPwIIBQ4Q== X-Google-Smtp-Source: AGHT+IFF9bOrVXh9DVoODPKVAJOQIw5mYivtRDKeeJlQabpjItQ8vgN7PeT+PjYl7mUo/SQqXXan X-Received: by 2002:a05:6102:b05:b0:47a:1630:7d48 with SMTP id b5-20020a0561020b0500b0047a16307d48mr274589vst.16.1712685900988; Tue, 09 Apr 2024 11:05:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712685900; cv=pass; d=google.com; s=arc-20160816; b=oqZRJ3oEc1J8OpRMs1LI5NnARNTaa8lt53fKFNvLsBQV7fYkuJF+vLgp9cwSxSlujy azZ5BB0DsWeFzzQgWqNcipHGUHI9gbavACdYx+F0GYC82huvJfh+O4hH64mt61BbBqhr K5wHGE5IC0Jd/OBP6hEwBYtWGNx616N8tEY9a/HESlwcBvngD1jOFDmyDWPYdmEYcq6M eov4Zp5JJ77z52/e07Kinl930NysAxvgN4Xy9H+fJDsu+/gf+HXcw0sZxc0fhnmFc6D/ GwfEOFD4ISOdXfYNzAiw7wELcfGXX9DRsnpAKkIf2KaMEZtcktk93RrrTnzitoF3JDZv LjXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mt7HVPjAilY3mwr17H22AEx0sDoVw4kMEURX0lXTtic=; fh=EfUqPBPyLRAgwtsdMJzjzCy9X8HLzst56ujqAn1AGMs=; b=wYi1D0SDUwCMcfnw+8W6HQYjO2DwucSGFuYK2x6W1gNsLfg0Lxpb2dMTQKvpH/mx2q 89DmYoHBJYV0rL4KDpGJUd54G2dxTk7vCfqHkGdSFFe3dz6nJztQr3HQ0BdWX3ENi+J1 /aYa8F0AqaSdNeAd6kVpMuPkjTCUhsiHjKH/vwB7kKwWQBFD/3F1Sxkxq8kKMRy4ZOu2 OQta3fjnwqxptmLCdHWXsbBSsa/YmSp8fflKVtl63liQ4KJ1Fkipa0cjvmjTAjCVojHV 0dsRP657OOffm+Xip9xlTFKvQIa6et7kkZzPd7hzYCN0TzK7jJ/QWd2FBsjg5GAr9tSq bffA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lIK/QBsk"; 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-137434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c21-20020a0561023c9500b0047845e1b35bsi1658080vsv.694.2024.04.09.11.05.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:05:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lIK/QBsk"; 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-137434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137434-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AF9821C21C87 for ; Tue, 9 Apr 2024 18:05:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57E5C156654; Tue, 9 Apr 2024 18:04:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lIK/QBsk" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 CFDB185276 for ; Tue, 9 Apr 2024 18:04:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712685889; cv=none; b=d40H405OphyGbcvuYh71d+fLldnFBK6Yjn8Fv0wHuXgUsBNuaaTjSSoHoAg3rqstWZeZ1Er6CWVr41j3v9/8HTYh3VYXBf17NGCKLJm/ExsUFmij7cqqa2Ck2EtlMjJ8rLd35TJloFFEVK9DClFMjhNgePxwsyr2LOPNlMs4gZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712685889; c=relaxed/simple; bh=sEg91M0chOfJoTJVgoQ99WIic1YAWUXIb7Gv6htphyQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O4wb+ahJElHyshjQf9ApSi1NCQT29oDDOmjEECYZtNB4w57dAAwGB17J+ZfqwMpiDsLzKSXCbUSqB9dfazC5qxEqMcy/0unT1j/7gDJg/Ip0V0ecwsSlt62cBi0TVz2Od5uDjAcmEFmir/VODQms3o/iiffm7BM4Q9xn6X2uIC0= 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=lIK/QBsk; arc=none smtp.client-ip=209.85.167.46 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-f46.google.com with SMTP id 2adb3069b0e04-516d487659bso6030418e87.2 for ; Tue, 09 Apr 2024 11:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712685886; x=1713290686; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=mt7HVPjAilY3mwr17H22AEx0sDoVw4kMEURX0lXTtic=; b=lIK/QBskQ0U/mssZE5sPferBAoVJ3IRRGedK4xqm65E6gbNWfftcnJoemQaLzM+zLe ETULRTFFVkB6NLfjgm9HABqZWFnX2Nv5j3BslK16hQUyid7nC4NmHwHP46tpLdis/N9n t8HSKziYIMtafIivmWSrUSHypzgr+I0Fc9FtAYeaxPgYSRaiTBkMLqaCy64R9sDuCjja ak/xtmukTDFKGalOe++dHlRrkw1NYRwiNS2c9mDAkspVj1idUvc7jLGwg5+MlRttt+Mg a8VsQ/fkI56CAy2MrKLjqIqpFLiSHPJmrkHGL7f4AcbHU82Aq4tdPzcxhxKR3gt8E99u OZTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712685886; x=1713290686; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mt7HVPjAilY3mwr17H22AEx0sDoVw4kMEURX0lXTtic=; b=b7WwzLQQ4QXm17YXb4yfahEZjf3U3vQ4XfbP2jdWF1jOCS5ngYMJ+GipFJFDQiy2MB /D1CYhBw6RNJM/RXsp3SMcvkJitUqv1VCc0w6w/YO6nEcxDqi7AZ7Ko2SwmNdrE22LPF /Rpz4dVpk9X1hak/Bj7FLZyHnMK4veIuG145jDLAqCDWvINeoqD9v9+x7r3wEJIBTPBu oFfNOwmwy49SQoOBC2PM64fqkKJoWSyKxfLIFxkiGrYfU93jQSu58zlj6N7IjNz5W/Zk pBUFxZD7IxqmfdUmdiZqZ2er4MhPWAN/J8BQfPz/Jv3A8Rc3nWWHuB1O0PqzvSg7Nb4C hgSw== X-Forwarded-Encrypted: i=1; AJvYcCWSQlOhUw+t1bRmOEVOZC2+5SiKNNGJ7KW2wkTIBKawodlyV2MjjP+RdkXrNeHN5TNyHamFx5Gnck2SJNCJULk2SJ22wM91xUhdNTUf X-Gm-Message-State: AOJu0YzG3H0PBNCNnLXN9Ie+SUl6D5D0G5rVTfEwksHM6WjRrBgzju+U ZQAfyMAjzjdoktQd5CF1diu7ZcSKAU3om4bSPK1TIHJaRbVWVJqLmrkQUbiAhGs= X-Received: by 2002:a05:6512:455:b0:517:5f99:5a9f with SMTP id y21-20020a056512045500b005175f995a9fmr106766lfk.29.1712685885930; Tue, 09 Apr 2024 11:04:45 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzyjmhyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a00e:a300::227]) by smtp.gmail.com with ESMTPSA id w20-20020a05651234d400b00516cdd2183asm1619918lfr.15.2024.04.09.11.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:04:45 -0700 (PDT) Date: Tue, 9 Apr 2024 21:04:43 +0300 From: Dmitry Baryshkov To: Rob Clark 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 Subject: Re: [PATCH 3/6] drm/msm/adreno: Allow specifying default speedbin value Message-ID: References: <20240405-topic-smem_speedbin-v1-0-ce2b864251b1@linaro.org> <20240405-topic-smem_speedbin-v1-3-ce2b864251b1@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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. > > 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 -- With best wishes Dmitry