Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp540961lqr; Wed, 5 Jun 2024 13:22:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUX7qZ8cyaemrI8s5AcS6d/riHcif9hyfKLdgE2OTWvfLUFpaz1fJryqw+7e9TMzUn3vbO1pseLESgEUQf3wkc2t/LeJ1AxlROJsQ9AqQ== X-Google-Smtp-Source: AGHT+IH7qq/x8hNddrcsulxpRE1TEu4PavnOyLt7kaD7m2wNc1OL87s/TRHIHmmoRrjRDC6rrddA X-Received: by 2002:a05:6e02:1847:b0:374:9c31:1206 with SMTP id e9e14a558f8ab-374b1f0cb58mr40666045ab.17.1717618922703; Wed, 05 Jun 2024 13:22:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717618922; cv=pass; d=google.com; s=arc-20160816; b=HXp7RySyVJykxP/58uZVFRHD553oibaleCkn0YewFfHmsLR5x7GUmbcLJjuyZoE7Bx IvLdEr4HNXbRgrMtFGUIe6g4VZnd67T0tAMPKgFmUMlKPto17WhxJ4Sa9UEmqiuprW8Q i7ncw/dgIqhMNW69Ej5IvQve3KejjBFjs26XUmg/GN2fYtdRmElowFbDhR6rLPSqFX+m E3CA6kW44+3zzkns1HvZYwxBsig3njD4Sc7R+r6er6byjDhWFGbcTWtdU9lxu9XFDV11 +P/gtB+/cNyf8EqX3DDgjKQMuX+pefyUcOlVbZDK0HXiNXQ4AUgjXXYcS1/EXn79KufZ l5hQ== 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=vAbdSxwRmKncrPynMCBXXpukCSmqzvxbpgxPB115kMQ=; fh=J9fXUZWX7O/s2jlR0sNy/vXKEivgy/XQdMlSDCSeWeA=; b=FPD6yCWW2e0k3O6JtSfCbm4oHynt8YBx9lSLOvKgof1ZrvW/CI7rsenqbS4C19cGdE PXgxsMvFtrwal0eR4ICMwx6HB7lgtfQta+FexDaUC4btGGf5sm64/xPCvovwAIrnySvk GQKrgvSf9A9WSeVbwUBJJQox3Sw7aIKzbOuWAi6ecOqvaaCN+MqnIzheY2BfzN+kYOou IBXPg3J6r/Avs6Gfg3Rr60KjmUXygoGCCvRQyPo9GiRa9WVnJ7OeZJkYLfO8aLaueVPO tXPqlDoX/sQi+scQ76ZcPm/gna5p0tw3sjvED5EGx7xcmXFxEwkWQ7gaciZpXoZ8Tl3C dy1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fek29ZGz; 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-203155-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203155-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c9d6dcb779si4690140a12.623.2024.06.05.13.22.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:22:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203155-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fek29ZGz; 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-203155-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203155-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BE7BAB22845 for ; Wed, 5 Jun 2024 20:11:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBD7815E5BD; Wed, 5 Jun 2024 20:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fek29ZGz" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 63B0015D5DB for ; Wed, 5 Jun 2024 20:10:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717618234; cv=none; b=cFnjsxH5VYE8tNkr5pzk6sdkpc2IJC00/3VZgqQSk/SjWlLyAzSVaq8lL8Wx4hw8WeOUi6NMdT2QfP/3wjZvZ0nvXq2lLDP2FnQ85xmGmQqNk4oalFu6abxNK8XB2lEzh2BR0HRf7Gy6zglgtn9SbGEyfsckPOit+KdScICjYxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717618234; c=relaxed/simple; bh=yp94P6EXcUfh6tf1gijxaCCHni62kacsqABiqdfOJMw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BsqcYrAWLHIfm2mOuQpHXHHM+/0W71tevOo7xQQkjkMNA3g8njLmRjv5W8dxCw7kK1qxEM/GdCWfQNX/0e7KyRXKPSwOZA2ctk4Jp7UMwN/iXwfhheAWM0dUIwjS/5xwtzYDW3ka/2i4eeS9aMwxNN3LxSA2GWqu6+F1kplo6EU= 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=fek29ZGz; arc=none smtp.client-ip=209.85.167.49 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-f49.google.com with SMTP id 2adb3069b0e04-52b90038cf7so475026e87.0 for ; Wed, 05 Jun 2024 13:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717618230; x=1718223030; 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=vAbdSxwRmKncrPynMCBXXpukCSmqzvxbpgxPB115kMQ=; b=fek29ZGzRxqhin3CvqlxME5VcgNP4YY4PvjYszlQLmH8wgf46EzdbSEh0HVt8nuqLt p7VXG2G/hNslirl0x00NtDQgCuyzrF2g21cj831aDjVTy3MrKDZemLORjrIzwegatRYK 8VyIv4sHhPc0u0w2VkTw9hmBuiv7hXnknyK9ufUXQwrLyT6UigTyG6T8TxDEiNIZ1Nyp Udu4isNCvZJsCoTZRoLOrkhyvxpPE+ViRsgnpisRLRPgSRZsdJ1wmDQWbhAn0O2UdqoK xWHxBEjAEdYcLZBJP6Pzfbop+0ZajdLi/kawTJ5vQjeQZ5Ppu0SvUoLbeRRctq8ILOsM aDPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717618230; x=1718223030; 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=vAbdSxwRmKncrPynMCBXXpukCSmqzvxbpgxPB115kMQ=; b=RZ/Gj8nnV9NMCZ5uhGfNKas3AnTWMf0P1papp5KIBzkJZ0k2mLERt+2oKQHb0I+qcz a8uc6p0Ac+CP5T0RtceOn7MHHdA5t/h7x8Kar3JVHLeyvy2TZ8avfoySgydif6ytZpxd MMNT5n+GDOuPxxDz7qwRX3bnDEVQKfXkn4UMn9JqCrIehaYdSdkc7q5GFNwolNvd73Q5 FAwaNnIPohKST57l1zfMJBvhBzSgAG9dlM6/MAEShTnAgTJVyyPgz7MXzBOYFBZwCTMc GK+zM6+hPBRXtB7UfCx2LKzBy9JTFkYkesWWbYLI/4EOMbZPqmPh2qIhdAc2BPLoD/MR p+sg== X-Forwarded-Encrypted: i=1; AJvYcCWCv36OeTV5rOP90e9LBQeEvPYsfGrGAnKw2SmmHXvvB52u3byTA+3MTdBeuFT6hO7Ff/3r/ayqkuBpdEITAcjV94GBi6GTshh3uiXa X-Gm-Message-State: AOJu0YzFI1QGGm6GLqN51q7XO4WUk0T38D+mLnDQ0Tf2xLUKWJThJHLS ehNCFAT3PhexeXkq/cehKEtuxzHRWKkJdNQB/Rfvm33pf5BEI/EofjxwF/YxI0A= X-Received: by 2002:ac2:5322:0:b0:522:80d:5dc5 with SMTP id 2adb3069b0e04-52bab4bd036mr2102755e87.27.1717618230691; Wed, 05 Jun 2024 13:10:30 -0700 (PDT) Received: from [127.0.1.1] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31be4e36sm9717473a12.53.2024.06.05.13.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:10:30 -0700 (PDT) From: Konrad Dybcio Date: Wed, 05 Jun 2024 22:10:18 +0200 Subject: [PATCH v2 5/7] drm/msm/adreno: Define A530 speed bins explicitly 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: <20240605-topic-smem_speedbin-v2-5-8989d7e3d176@linaro.org> References: <20240605-topic-smem_speedbin-v2-0-8989d7e3d176@linaro.org> In-Reply-To: <20240605-topic-smem_speedbin-v2-0-8989d7e3d176@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.14-dev In preparation for commonizing the speedbin handling code. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/adreno_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c index e00eef8099ae..66f7868ff476 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_device.c +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c @@ -258,6 +258,12 @@ static const struct adreno_info gpulist[] = { 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, -- 2.43.0