Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp555336lqp; Fri, 5 Apr 2024 01:42:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkGWqUYSVNmma2jTYKIhx+zDKSeZRdb1locBX3i3gIuEmAs2g+Hesj3okgGcR1n4cyaMZZ+60RCjS56szczgTqsAuYuQw/5F5Xkkdf8A== X-Google-Smtp-Source: AGHT+IHhXfkNDtAuMHsywmPQ82bCjoAV2M6HyRivIZHNi0Slw0g0nChx4sExjMcm1o20i7E5qEyt X-Received: by 2002:a05:6a21:619:b0:1a6:fe4e:4447 with SMTP id ll25-20020a056a21061900b001a6fe4e4447mr755791pzb.17.1712306567749; Fri, 05 Apr 2024 01:42:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712306567; cv=pass; d=google.com; s=arc-20160816; b=Xw39FfZ/eCtaK/taXtQkpkugsMDwNxVrB6ZU4VzxjnVORDeOPvLwKXzoDT2JBxKXhq WAonYPX23QpNG92dVgqfuizYhsGoQXb93THUhHiLPUg7rBCTtxmoACj/m9WPIxKqt2MS oW0lm32TNg+Q98BcUsNs85R77pngZojDQbwXRxSWE3Jt3kkZPfPM/nZHMVy7X2o9cEB7 v2FtDdOpzCQH0fvJHk0a4FWvY4uWj9x1+iPARzyN8m5IQ1at15mZetT/MBOXVOUfwvFb SaXuGX2mBVcQaxo8gWOr89Bb4J0DPWQPcaS39ssLUCN+1+IdYPyrAHnIY+Gt8nicxub7 wMVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=spb6697ES9tKN5pBQWfHJLIqG/6QeQNQA/25IsUNPBw=; fh=aElZJ7iUfx0I5FU0TjtBHgVXW4NzmIuANTeyVG74e7w=; b=pe4l7isSz/e6LCkH6DE+dFLjW8SkbwK8W1KJOtOilZZF5pjYy77Z16IuGWHWkfRoMT Nnpfm5DnJCCWHZCKvs/lgmErGfYjJVD5VCDCTrN+aOJfyyKZ0Rm84VHxaTiN0YvujcfR AVY9dxDbmEvwDS2fvudC7bOAFJKdGHE5/HXxe3FPE7t0H1xeZs7GMbaysfIne35Q+DSM mw0jJyWudl84yYjPykAvRK8l7XOrx/zeKAe0pu+VKDrCDf8jastwVYovNB6Srejn+RXi e9ajpcyESAo8apz44VsiBPXNH9IgDXPfslGjhoXWq4WEvzZfNiulq9i1lzYw8tyRbtcA vA2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZMPqHwDs; 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-132667-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ds14-20020a17090b08ce00b002a2b9e53c7bsi3191654pjb.28.2024.04.05.01.42.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 01:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132667-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZMPqHwDs; 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-132667-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132667-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6E5F12819CA for ; Fri, 5 Apr 2024 08:42:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26EA8160791; Fri, 5 Apr 2024 08:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZMPqHwDs" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 7842A160792 for ; Fri, 5 Apr 2024 08:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712306504; cv=none; b=Ow/Vkq0OQD+tM7c1CKmriUUj5RCqEWNJT3tj94y+5Z5GF+iZVDFkm/4RTXRVgjqc+1jKDGaIul+oMk4ip82wSiHwpa1mBhvyKOvtmgy1rIfy0EUufdRnQiYCeEVfh0ZkJtm/KqhzCI3TZ8OceUNnYwM5kr0Mx9+SUM+nGt6mPSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712306504; c=relaxed/simple; bh=y9m5OXZo9fWQbl7jhCOhUIQGZ8nvXgwDyvDJJqVcd6w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aP79TtFIyd+/Q/ClX32Bsr1lf7RV4BRJDkMr/985CklRLisPSsZ59tJs1bIZAA5+bN7BBTd3tUSKnlvkiMVSm+MogAAaHv6omFF6qXLHzr+N9ThsLWQk5KrDBVo0qgX638UuOF7Ns/PI8aNEbJ/ZdD4Bc5n/mPASYv/O0MeQNbg= 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=ZMPqHwDs; arc=none smtp.client-ip=209.85.208.171 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-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d476d7972aso24796351fa.1 for ; Fri, 05 Apr 2024 01:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712306501; x=1712911301; darn=vger.kernel.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=spb6697ES9tKN5pBQWfHJLIqG/6QeQNQA/25IsUNPBw=; b=ZMPqHwDsHCgTLTSi+wgJJJbFR0I5+qJ9SW6a/xXgLn3btxkAnG+TGV62v0HBsMFaL8 z3uZx/2ReC1Ev+2SyZM8mwyeqQZekcM3W+tc3y6Rr/eX+dKFv3lvcIBfxvophTyNASB0 0DW//8xkxm3U+E0FsIycFKdPuCyKk1j5y++CoXOeIh0pESeHH6+6ch9JMQRUhsOxDnJd kMcT7No9mkUf9haYDnuS7eIDj//BvxXX28ulJ6+6s7cTANiFMt0feFhtZ8whYbq1YbFg Lyq6ZZwKWqyauZRaTxBnJ5rJPSRyT5Gjlr9jUISWKAh8qGz6LDVpJ+977Um7CikvXWb2 aiMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712306501; x=1712911301; 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=spb6697ES9tKN5pBQWfHJLIqG/6QeQNQA/25IsUNPBw=; b=OvoNBELe13TQcqXTE8bz6/SJBZThn9+YzHLBD+mKV6IvTE2ixiO5AX1zImPnLi08bu PJjeDRqglxm2IKmA85uViy15NvZ1UbKBQNkKZ8S4kFGUhmRebdI+Vne0Ia2TsBz1OFmm Eyw/LYtnGWfm5vwBQRqAyeq7dVoIa35FLJtL2XQIs81MQEW56CITntowGv3Ny4aD8lNo d4fvEJldiRqS1S3bMhFa5/vP8D/DacXijEjTwDSm2cfNiSIKqqYd4lrntporrvqNXxJb xXDVvhi+Ejn/3/VcVZj+9uSmn+nG/d9qvNE1Rley2gP6k6yvVNKqSwrJeHebqp+ZcRA8 bdZA== X-Forwarded-Encrypted: i=1; AJvYcCV0fMZTxkOtEMc/MG5OM/Xd0Z37x/VTb36dXF/9Un8Fx3KEEssscTVWMV7QCZyn7tUIP2qcVSsi2EXUYzxIqhNzX0VqPXNbRuGsiWzG X-Gm-Message-State: AOJu0Yx6uYuhYa+4GV+J/IL6Bcgp0eBlbofe3rpBIqS65P6vcAS+oMPy eu8+iBMloDe2qUB5O96ezdYJEbdpEcyfJB8sk9lmLAg6BMsKY6QA0rhR3vpxRNQ= X-Received: by 2002:a2e:b282:0:b0:2d6:d7ff:5d40 with SMTP id 2-20020a2eb282000000b002d6d7ff5d40mr854824ljx.38.1712306500761; Fri, 05 Apr 2024 01:41:40 -0700 (PDT) Received: from [127.0.1.1] (netpanel-87-246-222-101.pol.akademiki.lublin.pl. [87.246.222.101]) by smtp.gmail.com with ESMTPSA id y3-20020a05651c020300b002d429304a20sm116880ljn.8.2024.04.05.01.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 01:41:40 -0700 (PDT) From: Konrad Dybcio Date: Fri, 05 Apr 2024 10:41:33 +0200 Subject: [PATCH 5/6] drm/msm/adreno: Add speedbin data for SM8550 / A740 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-Transfer-Encoding: 7bit Message-Id: <20240405-topic-smem_speedbin-v1-5-ce2b864251b1@linaro.org> References: <20240405-topic-smem_speedbin-v1-0-ce2b864251b1@linaro.org> In-Reply-To: <20240405-topic-smem_speedbin-v1-0-ce2b864251b1@linaro.org> To: Bjorn Andersson , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: 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 , Konrad Dybcio X-Mailer: b4 0.13-dev-0438c Add speebin data for A740, as found on SM8550 and derivative SoCs. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/adreno_device.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c index 901ef767e491..c976a485aef2 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_device.c +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c @@ -570,6 +570,20 @@ static const struct adreno_info gpulist[] = { .zapfw = "a740_zap.mdt", .hwcg = a740_hwcg, .address_space_size = SZ_16G, + .speedbins = ADRENO_SPEEDBINS( + { ADRENO_SKU_ID(SOCINFO_PC_UNKNOWN, SOCINFO_FC_AC), 0 }, + { ADRENO_SKU_ID(SOCINFO_PC_UNKNOWN, SOCINFO_FC_AF), 0 }, + { ADRENO_SKU_ID(SOCINFO_PCn(1), SOCINFO_FC_UNKNOWN), 1 }, + { ADRENO_SKU_ID(SOCINFO_PCn(2), SOCINFO_FC_Yn(0x0)), 0 }, + { ADRENO_SKU_ID(SOCINFO_PCn(2), SOCINFO_FC_Yn(0x2)), 0 }, + { ADRENO_SKU_ID(SOCINFO_PCn(4), SOCINFO_FC_Yn(0x0)), 0 }, + { ADRENO_SKU_ID(SOCINFO_PCn(4), SOCINFO_FC_Yn(0x2)), 0 }, + { ADRENO_SKU_ID(SOCINFO_PCn(6), SOCINFO_FC_Yn(0x0)), 0 }, + { ADRENO_SKU_ID(SOCINFO_PCn(6), SOCINFO_FC_Yn(0x1)), 0 }, + { ADRENO_SKU_ID(SOCINFO_PCn(6), SOCINFO_FC_Yn(0xd)), 0 }, + { ADRENO_SKU_ID(SOCINFO_PCn(6), SOCINFO_FC_Yn(0xe)), 0 }, + ), + .default_speedbin = 1, }, { .chip_ids = ADRENO_CHIP_IDS(0x43051401), /* "C520v2" */ .family = ADRENO_7XX_GEN3, -- 2.40.1