From patchwork Tue Jul 9 10:45:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13727656 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AACE2C3DA41 for ; Tue, 9 Jul 2024 10:45:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E6E1E10E4F6; Tue, 9 Jul 2024 10:45:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ljkNMmy+"; dkim-atps=neutral Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by gabe.freedesktop.org (Postfix) with ESMTPS id 29BCC10E4F6 for ; Tue, 9 Jul 2024 10:45:57 +0000 (UTC) Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a77c4309fc8so533864566b.3 for ; Tue, 09 Jul 2024 03:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720521955; x=1721126755; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=OCdrWwyibH7SidMAd8gXxhcbnOnPffTnyQEY5fVW104=; b=ljkNMmy+Fx9bRsxPdGhNbPD/FqrC3dllpldI3xVYt31ggUukvdOyGWrQgPKBGP5VfH tej9YV1k2bSd6qsS65U1HvYvTAxjSDvRRrzDsYGVNZHDYFqGo5C0majrmayKPxzKiQkP X0cOxZx8Gx1A+o8TO/KGaWpPQKkLqVMKcmo8UfW2uMwzMJc71MWm1JXdKMFw4cKKUKTL M7DG88eqU66nXZnCUkYwsmzii91CKffv1WRHf29yK8XUPKdj15E2OMEnRvJIFsYKI/bs RJDWOL+EZkrStxrLdgs3Y69eYhrbpirB30YVWKUaxaa8Hs5vtoqIZKQbJXKOaGCdTe+0 XS+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720521955; x=1721126755; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OCdrWwyibH7SidMAd8gXxhcbnOnPffTnyQEY5fVW104=; b=oO9sE++9vn1gns/gpYjXPl1W6cN9KFHROpf2e4NFjTuKQowq2pKBtFf8zbw2pch48x 5ht6kvyCXBiKF+7tMBXE/CcOkkWVYxGbx8v7ZgK9xxdbut8RjVCeGFPF1UpOLha31aMU PjaURvv4qjQoI2MKaPqVhDZ19tksf3F2hTaeW/N85QbUEN8CCx6jTAiixki4sOTgY9ln 17dCRN1NAkCDLsgVaSEs0fijgKrMoJZdgvtJvUIMMQ8vMVXXsYpYweToZt2HkmKp14Pb HsxDHUacOp1LYs04MuLsgWQ/LFxn2cdbOsigfasoy8zRThdRBGxSdbUrJSBNUlgVR+oZ Dzzw== X-Forwarded-Encrypted: i=1; AJvYcCWAsBvJKENXU4As9H9x/9vXqu6zA0eGkFpOToyOZ5zNv3jd4Hmp2qhRiJTS20wRulJ5+RQ2+KaldnazQo8NrFwn5BF9bZSJw+inqhS33M5k X-Gm-Message-State: AOJu0Yx4coa4OfoB8BLSjVVcpLSZpxcomJKUM1jurkOX10Nd2R0xkwe6 5EeuH4S5A5vcWJWougX62resEDLtLh9aJ52wNCiMEBDOANY6S/i0OnO1zLmIM9c= X-Google-Smtp-Source: AGHT+IEnddeAQttVIjPlE5QwA1Ejq9Sgylm5fg+WQ2PeIGDvlnpy6g/83mPoUVgnq4+Ux2PORfhdCA== X-Received: by 2002:a17:907:3f20:b0:a72:554d:82af with SMTP id a640c23a62f3a-a780df5e5fbmr146263266b.20.1720521938009; Tue, 09 Jul 2024 03:45:38 -0700 (PDT) Received: from [192.168.105.194] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a7ff038sm66295466b.115.2024.07.09.03.45.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 03:45:37 -0700 (PDT) From: Konrad Dybcio Date: Tue, 09 Jul 2024 12:45:31 +0200 Subject: [PATCH v5 3/5] drm/msm/adreno: Define A530 speed bins explicitly MIME-Version: 1.0 Message-Id: <20240709-topic-smem_speedbin-v5-3-e2146be0c96f@linaro.org> References: <20240709-topic-smem_speedbin-v5-0-e2146be0c96f@linaro.org> In-Reply-To: <20240709-topic-smem_speedbin-v5-0-e2146be0c96f@linaro.org> To: Rob Clark , Sean Paul , Abhinav Kumar , Dmitry Baryshkov , David Airlie , Daniel Vetter , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1720521930; l=874; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=4D54MBq6zoAcYkfe7iD2ltE1UzYmVaRiFpw+gSQkiFQ=; b=WfLMIj4SCvcJlhKnPfLp36Ctyq2d6AHSfVTYR87sgyW+uMP6er36Q2p56z8XMiCz66+azs3NP ysIMX7TBRifDWp6wRSAsHAMRBbWj13kMAR33/CyVT8WKhZ6XMnbO7V7 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" In preparation for commonizing the speedbin handling code. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a5xx_catalog.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/a5xx_catalog.c b/drivers/gpu/drm/msm/adreno/a5xx_catalog.c index 633f31539162..105b3d14bd75 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_catalog.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_catalog.c @@ -129,6 +129,12 @@ static const struct adreno_info a5xx_gpus[] = { ADRENO_QUIRK_FAULT_DETECT_MASK, .init = a5xx_gpu_init, .zapfw = "a530_zap.mdt", + .speedbins = ADRENO_SPEEDBINS( + { 0, 0 }, + { 1, 1 }, + { 2, 2 }, + { 3, 3 }, + ), }, { .chip_ids = ADRENO_CHIP_IDS(0x05040001), .family = ADRENO_5XX,