Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp103507rbb; Fri, 23 Feb 2024 13:22:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW5S1Ruvl3zo7sFaS7PARWx8VSTZu0QeXaYQ9W9QdV4XbgyBXwDLzg42i0xC8RJ9dbU67YxHSJv27zmGpTCsmDlH/rod6sPAuCVW36JNA== X-Google-Smtp-Source: AGHT+IFL1MwCh7D4kzIQ1sAumqCGXfX/PULRt9Psncw9YiW/sNlGJgB4GtxP2FpRkdRqsj22bPPU X-Received: by 2002:a05:6402:26d4:b0:565:95ea:eb41 with SMTP id x20-20020a05640226d400b0056595eaeb41mr717876edd.2.1708723320296; Fri, 23 Feb 2024 13:22:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708723320; cv=pass; d=google.com; s=arc-20160816; b=zwUnNfpbRG46/bS1qp+0sKrfL6yF7n18Q/QgbRLURR1+XW6CC4ZdcV0Y44ck0aMvLw h//T/3LbE+YPbrmMLV2BLhBfAZVeMY0h1A/upIi2gGhkDgQE/CRBm7sOmtz3aMDWLUfp CeJdbhv94YO9me2TUVahzhOppFy19dcpjCbxou4CDk/Ym/U9ol5vePpi4YspqVSBHZUk lSZ4BK7esecTj4GIp1aHasgVjF5X5gpuKe5qvuCGEkdnkausD5voEyW/xWq8VqXGtlTW jhQ4716yqoPpnijJLmltdSWTiadAmop6v4nb2XlFIrTdAZEahu1IU7yCkTlKIpdSGWVx LXtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=3qOtgMPjyNgM5pphCQWRy5M3sSPymURGErwjzDyDOL0=; fh=yrHKwDUElJX14QnIsOkm2aS2jpwRjAPFZLkvyePK6nw=; b=xEtVAppE6LRm0PkMsSZUcHSQ21QrF6Vcczgpy+a9VROnoj2ejYAx+7fECmU5GZEV/n d7mcGv8ez6GGQYMVruwH36kDQuaXnJc8Dinuna75+cd7hKvzpFURo038Z3dOOjO9w1MH vWZpxYsTaDpv3LTu9Bj3W84gv2CQYGZsTjb9Cnf4oGuC6q40sYEuekDDHpp9sU67/Ldf AR5t+dLmoj7jS7Qvbqs664ocjUsCFGPu1RtkYUGMbhhIk1ERkVI55u1Z0uwwBs93rO33 qivltNUGwoh895M2EBRkfOgYaFOhmTW+8sYkaUuloe+K0leU0yLlu1E7uiXmT+K6zY1p 97tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uqvycqP1; 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-79196-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79196-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. [147.75.80.249]) by mx.google.com with ESMTPS id ck5-20020a0564021c0500b00563fc5030c0si6323595edb.343.2024.02.23.13.22.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 13:22:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79196-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uqvycqP1; 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-79196-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79196-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 D9F261F24775 for ; Fri, 23 Feb 2024 21:21:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42A001493A2; Fri, 23 Feb 2024 21:21:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uqvycqP1" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 EB96A149381 for ; Fri, 23 Feb 2024 21:21:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708723310; cv=none; b=G/k4nkrSNAV1mkDLHCYLrcrbcu9FBsI2gEaxIVkdD+0zWokcy6YseuR+j0wsoue0B/6f20eTo7f8Tgvm8nT7pGVhA+Yfw1N+WerKysLp40vrb8/PSEJwDoaMej+mc6nGMQOO76PgETneQ+px470Vu1q4gOXR10KzO7HngK2bHhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708723310; c=relaxed/simple; bh=7tHpBwYBjs0QIZxWGt5a/fib2c1/MZ4A6oZE+Z30PYs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=XNzHiecvFiPYR4trcpzvDbaFTtOZfkGr/OPjK6DfMq83iJbU+UE7orpNl9t2xsLfyb77/cfyJx+WQmjIOCuKbwlSyIn8SRgb27bm4nyP99OKm0VWXNlJ5ZkmSNbp4picKXiD55lnfkXeSwHmh7MXTKaH7/8+G1Om0rWsqJAScKI= 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=uqvycqP1; arc=none smtp.client-ip=209.85.218.41 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-ej1-f41.google.com with SMTP id a640c23a62f3a-a3e75e30d36so241891566b.1 for ; Fri, 23 Feb 2024 13:21:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708723306; x=1709328106; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=3qOtgMPjyNgM5pphCQWRy5M3sSPymURGErwjzDyDOL0=; b=uqvycqP1ccBDrej7W7Hkry6K0NyEcDtDVmmuS+xhiEEZqKEyX4MX8MT3XfKFuSlZyO ep4n6d2xvWoJ/qM91mHyQjG0VRl2AKoakmY43R7u1UKGwy91stNDmTiA0aqHWh5QONHP gRnTCWoqk6DYGnHpE1mMLuNtEULzHednkMgaGxbhciCqSBzAKkJqTqIKLJbaSpL1JpIr SIsyXSlusaOBKv+upZUtCG3zK3Z2rgmem5lxiuz5m0b8my/v9EjhETV9a0bYG9Vq8CHX wGJwSX+ZqmESIto6owxgh+LfMyc0zI+ZvPpCx8XKaGGKkVaJSnk7FzA6T6XNU8xp+XRZ 30dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708723306; x=1709328106; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3qOtgMPjyNgM5pphCQWRy5M3sSPymURGErwjzDyDOL0=; b=tdZC1JfcBUtVSoqFlcEzzcrAk1IwQLjGzQNlniKBHnC1IwDrv90IW4zLWpwTGRZey0 9nDLjoTb/FzVGVvYNMERMqNfZ/21JHLXHcQ4+B5eCCiXUuPInnb/1H0O2axwbAbAeJ6c rM3DR2WusYm02OyfjMUYgdaAsXopmIyv7Irg6mMXdntQY6p+FK3EX1qBAsNjp8+OqZZQ ILfpxguYScAwuvGInymNLrwUMdXASuLtIx0kYAcovpt2TQllIFOG5VNhhxSaRxWcD26p eDdQcKMEEdJjSylQEppXJKcwf04aHBwmfabL41LlQKf5Kk7OT5iEUDDtn64Xis/GjvZV kwFQ== X-Forwarded-Encrypted: i=1; AJvYcCVBtis46g5fJYsWftVbjLqqJBx5HsIxXMnfL+lgsjpDWKUGlhiOt/GKEvw/2NqOpHMLFo1Be6Fk5K6Y/Ajzp3jRaNvnDDlfg/i16Jvd X-Gm-Message-State: AOJu0Yyv1P/Bd2vxA1CyjGwJ05PRaPIxjK10WLt5ngLQ6vGF+fMpGq8N x+Ic+SkDHbBxbfjFjSPGA2Jq9Bb/mxA3ZZukSti/Bk2EEX2Z5/Vu3iC7X0leWkI= X-Received: by 2002:a17:906:fb06:b0:a3e:8bd8:b711 with SMTP id lz6-20020a170906fb0600b00a3e8bd8b711mr685947ejb.37.1708723306292; Fri, 23 Feb 2024 13:21:46 -0800 (PST) Received: from [10.167.154.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id mj8-20020a170906af8800b00a3ee9305b02sm4091226ejb.20.2024.02.23.13.21.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 13:21:45 -0800 (PST) From: Konrad Dybcio Subject: [PATCH v2 0/7] A702 support Date: Fri, 23 Feb 2024 22:21:36 +0100 Message-Id: <20240219-topic-rb1_gpu-v2-0-2d3d6a0db040@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-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGAM2WUC/3WNQQqDMBBFryKzbkoSraaueo8iJcZRBySRiUqLe Pem7rt8D/5/O0Rkwgh1tgPjRpGCT6AvGbjR+gEFdYlBS11Ire5iCTM5wa16DfMqcnTGlSaXuSk gbVobUbRsvRvTyq/TlOTM2NP7jDybxCPFJfDnbG7qZ//db0pI0elS9tbcikpWj4m85XANPEBzH McX0NVltcAAAAA= To: Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter Cc: Marijn Suijten , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708723303; l=2367; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=7tHpBwYBjs0QIZxWGt5a/fib2c1/MZ4A6oZE+Z30PYs=; b=epuG5oAKrr533fJKmkaFnj1FjTAPxNoYkEMcHz+KHP4gzlrOn5lsXpP9f1YjnwX0/IsJ6cXt4 ZTN2yx5xm87CgDWY+vMjlaY6zIT3LRax1dgd2sxLnp0EOV4B4xdjC4F X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Bit of a megaseries, bunched together for your testing convenience.. Needs mesa!27665 [1] on the userland part, kmscube happily spins. I'm feeling quite lukewarm about the memory barriers in patch 3.. Patch 1 for Will/smmu, 5-6 for drm/msm, rest for qcom [1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27665 Signed-off-by: Konrad Dybcio --- Changes in v2: - Drop applied smmu-bindings patch - Fix the gpucc bindings patch to be even better - Reorder HUAYRA_2290 definitions near HUAYRA (..Add HUAYRA_2290 support..) - Replace weird memory barriers copypasted from msm-5.4 with readback to ensure timely write completion (..Add HUAYRA_2290 support..) - Keep my super amazing commit message referencing the 3D accelerator official naming (dts) - Pick up tags - Link to v1: https://lore.kernel.org/r/20240219-topic-rb1_gpu-v1-0-d260fa854707@linaro.org --- Konrad Dybcio (7): dt-bindings: clock: Add Qcom QCM2290 GPUCC clk: qcom: clk-alpha-pll: Add HUAYRA_2290 support clk: qcom: Add QCM2290 GPU clock controller driver drm/msm/adreno: Add missing defines for A702 drm/msm/adreno: Add A702 support arm64: dts: qcom: qcm2290: Add GPU nodes arm64: dts: qcom: qrb2210-rb1: Enable the GPU .../bindings/clock/qcom,qcm2290-gpucc.yaml | 77 ++++ arch/arm64/boot/dts/qcom/qcm2290.dtsi | 154 ++++++++ arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 8 + drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-alpha-pll.c | 47 +++ drivers/clk/qcom/clk-alpha-pll.h | 3 + drivers/clk/qcom/gpucc-qcm2290.c | 423 +++++++++++++++++++++ drivers/gpu/drm/msm/adreno/a6xx.xml.h | 18 + drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 92 ++++- drivers/gpu/drm/msm/adreno/adreno_device.c | 18 + drivers/gpu/drm/msm/adreno/adreno_gpu.h | 16 +- include/dt-bindings/clock/qcom,qcm2290-gpucc.h | 32 ++ 13 files changed, 889 insertions(+), 9 deletions(-) --- base-commit: 26d7d52b6253574d5b6fec16a93e1110d1489cef change-id: 20240219-topic-rb1_gpu-3ec8c6830384 Best regards, -- Konrad Dybcio