Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp337024rdb; Thu, 15 Feb 2024 01:21:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWjxse6mUaGqxrOLjUHLxRamh8LM+3c08YQ11EX7ivp1xm0/G120mO83f2ci0YjNuSjRZePbg7QJFknmRE0EKd3HsBov4FjJEyG2X9rBQ== X-Google-Smtp-Source: AGHT+IHCocbK8dn9P4GWkwwsqeUtRj8dd2mOdf/g7nn3dqim4lvl+ljCezkcVr8gjoAXvfuPzND0 X-Received: by 2002:ac8:57c5:0:b0:42d:aa92:ce2 with SMTP id w5-20020ac857c5000000b0042daa920ce2mr1472510qta.27.1707988919649; Thu, 15 Feb 2024 01:21:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707988919; cv=pass; d=google.com; s=arc-20160816; b=ZTo2fCXtVhDoOcD96xkEAc2A+jBu/VrcYhe/J5vKwhyCbxAkgYitWIqDVJu8kx7o6T eWF6GoUCii/qyLM8IWCGEaGXwM8IPz/2lgT0j/6LHLyv3DJyoK1avUD5tGrS98eh0/g6 y1IqNLdHHeyWczBLUvdS0Sv9jNq2/mlzCWZ/NAvcqOTa6cKAz0165os/JOlQRLixC2Cx OylckgtDQHO4MQBM9pRUfdBOHOABiocgJbCBYzM1QX9rHSbdTZ9NiOgnsGeUOt2cKZi7 qRWWA5LkEFEifF9h90QP9Tlp6DzWuQOxbBCUm/41o0Y4HKFAKQMOmz/49/cEHBNd8kTN W2Eg== 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=sCJIqfXANTyxQ1cWg0J7Xq3pgA1x4Oyiz3VOApAbg7U=; fh=admSSOVrq89ObO34bBa3a8J5n52nqbwlXDgjPAFLNCY=; b=nWDNe6lRqnJTKxZ4m7vJQ7ta/HeMs0BIG387KxkO0/JTJdK9hjJOzKSDi8brhMRNm/ VfeCJYvxybu2LLifK44jjRitr8T3zpB/v4j4RtufYZB0MrVnNxipkyZuQgiMaCqPXgii K/sSWJZDc94ctdQbA/wWLTVN9V9b+rmUoJH6pFrRb/dTI7wo99IWmj2T+/6nvPwAHjJH SaWgcynMl1EAi4l9Yx26sv6bXhWS4rKNSGSchfP3bKOehVWZ2QeiUU5UlrCk+wdndwjC CGzGpBszVE1fiSGtNUxbDuagTEjknJQiuPLyisSaOZcUM/58OH/fRchN1t3vxGYrTVBQ zLbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wzvYGNYB; 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-66512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66512-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c21-20020ac87d95000000b0042c760c746esi1018821qtd.168.2024.02.15.01.21.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 01:21:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wzvYGNYB; 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-66512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66512-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 D3BB41C226A7 for ; Thu, 15 Feb 2024 09:20:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C75F17592; Thu, 15 Feb 2024 09:20:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wzvYGNYB" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 7DE5217585 for ; Thu, 15 Feb 2024 09:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707988835; cv=none; b=XWdb9Y2BWp5EidVhjySyRaQCGPCRP0VPhPLGklukCI9UfyBl/1AOFpsr7NNbwl08wOaQNH9vbJ9YvhFrl7RTmSBGSTwD60aGePBo8V05kQ1x3RmwJUJkLIqQ6+1YTjwy6EmPlKCepLSizp4mxHQLQZNJi/XR+1Sg8/adI2wU26o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707988835; c=relaxed/simple; bh=oKbyhmQGCK031NDJvd+F9DRL6rEnKmMTN5jcd28ewGo=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=QC8FuIZW1cPwOZKMLVpdw+YDfBvk3at9aBPrWu38IFw4G/VKu5VGVRirwrfxASMTVaOcSdi32Zw20ScahMR8ERjugmEeDkHibkebzyibFxYQf+bL5U+VrHUfjxNLcwDbV4AMuE/hMs3H3Dkc1c+O0Xlyv35mTtKq1j4843WiohU= 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=wzvYGNYB; arc=none smtp.client-ip=209.85.221.42 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-wr1-f42.google.com with SMTP id ffacd0b85a97d-3394b892691so411933f8f.1 for ; Thu, 15 Feb 2024 01:20:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707988830; x=1708593630; 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=sCJIqfXANTyxQ1cWg0J7Xq3pgA1x4Oyiz3VOApAbg7U=; b=wzvYGNYBJ/PrmGKCCf8o1sR77+3qYNoAt/QW4CscBuJz4eZArWgm2mAjNaP0cLY23H MXa2plzTASmdEMWG8Vk9rOms/Xk7edz7uHJ5Ap76eNW/cgsCfTfbSKLlyyI+KXa74UmF CI7iqOtuk3B6lHFCLFlZksk9nxbujOKC4p1K5+vMFMuGWkIRlyGWYllqWY+jQsUmvsFz 6h3TO6jdabTNblIXLVbUOYvLWfmn8q6wwK3q5dcslevW+2qQSNNA7sUvEBKMhYkyumkH ahNwVfs7Rc52r0XGQ+7F9u1QUea6cEEFL/mVB7eaIEcJKsqTZfezKmpvJAcBJWHtm8Zi 1uHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707988830; x=1708593630; 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=sCJIqfXANTyxQ1cWg0J7Xq3pgA1x4Oyiz3VOApAbg7U=; b=jE2WQ1kvl49GiX9f8HanPE5eGhVDxZf77Nc9B2ql+p28CdH9xDawVhQRvSKXytmbGz dCC8NMTniNntB25EcAIfo49vKsEl3m2igDlYuqcpRUoK+ivdrCXmhPH/uudyJTtWnmm1 buqVRT5RL+BHviGTJvprB+X3qncQe1b9C3bVy76+E7X9leRgScSdOx9zStImeXAchNr9 Toc/WiuUQBa9Cdf4kY4lVCZTPNN3pOtovMrT5vOAqLm6oSWrzBetMqsghiLfaW2uqDNj ljthsl7wun4r3CR1TbHMyOB9KI3JiR5XzPZLV4DcvUXdmOz7ZF3dl3qlaOQwGEDqS9vw zLmQ== X-Forwarded-Encrypted: i=1; AJvYcCVcuC6EeMz7DLZlFwFFLh25Bvf4gA80l0whagSMmxugxpc4agyAXExSsdhFvySmLZzCK8g8VWRJTt5Di5YQZVCtI7fJQw1yRRcZ0Nl0 X-Gm-Message-State: AOJu0Yw6PzRSxH7QHNDSmqsIWaAjKr8oK3AELyZZ/s5xAusglqNDFcl0 +JEzrQm+CF/p9ikddb29uZT/hshbk4qpaq9+Y+QkTNlqVrq3ge0XvVw0VuWsQfc= X-Received: by 2002:a05:6000:107:b0:33b:68d2:c5c9 with SMTP id o7-20020a056000010700b0033b68d2c5c9mr1080779wrx.8.1707988830565; Thu, 15 Feb 2024 01:20:30 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id l8-20020adfa388000000b0033b66c2d61esm1156435wrb.48.2024.02.15.01.20.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 01:20:30 -0800 (PST) From: Neil Armstrong Subject: [PATCH v2 0/6] drm/msm: Add support for the A750 GPU found on the SM8650 platform Date: Thu, 15 Feb 2024 10:20:22 +0100 Message-Id: <20240215-topic-sm8650-gpu-v2-0-6be0b4bf2e09@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=H4sIAFbXzWUC/2WNyw6CMBBFf4XM2jHTSbHVFf9hWPCoMInSpkWiI fy7lbhzeU5yz10huSguwaVYIbpFkvgpAx8K6MZmGhxKnxmYWBOTxdkH6TA97KkkHMITtT33peO OW2Ugz0J0N3ntyWudeZQ0+/jeHxb1tb+Y4v/YopDQkG00tUabtqzuMjXRH30coN627QOHQsx7s QAAAA== To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Will Deacon , Robin Murphy , Joerg Roedel , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Neil Armstrong X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2303; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=oKbyhmQGCK031NDJvd+F9DRL6rEnKmMTN5jcd28ewGo=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlzdda1ja3qYhAQD7TxJTXjXvRhkZhcdgfDhtOGB6t eX40jEuJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZc3XWgAKCRB33NvayMhJ0dKTD/ 9nfYKPsMq1aO/WX60Xfgt6f16R8W7MWflfkynuv7YMpLAyGWDhQOfa7do6lQyxZF2YnwHshnk5YDqK dpGFlzMbP3+/zsMVADh2Vy0Rj1FtwUhggfW/IQ2I3UT3IA2MdXedNxVUq4rJBiXdjEsrkoWgAHofSh /rNgcsKpu+aEuP9qRCSCMhdYBjVWBU0/ubDi1qnarYadzUqSoAdGgE2hdV1NVrLtmevG4A6PKAjgP4 mIaQLOrLSuLsvcpOo3cBLYUwSPpHZWQlX4aH0ZPmteXd1Z6iRWE/ynBE2mylsOp2jaKITp1NQnfiJw 7VKLUt56d3yGbqAzm8yylY+5199zJcQ3iKZLq0wpU5cgBEcKC0iZpJ6r4w4N2PQV70Qmi0MrPPo8Df RK82H8IgsRwkTtUerZsLpJ4ktXizoJCtNZ6Yrk9X2zg01oFvhPDyynhh7NfksxuhrO1bPiC7YT3Ccv desZDq2p5PWEl9g77A5OXuN/M0/ZgTtrFztrqZb2kzk5RRTmA+6Ig0WhF/2rn9qOs6BzwndTc2y5fA RBvb8z5e1EuCKwQMzpcjdab9pZIg6FSVE0Et1MLBAI3M5p7N8zFA+ftQis9Q3KWYcgLfk9NmNY49xO rtPWO4swkMjDEwDuFZAEiJx2VnGuFsaVvSUNZptT+CULYH0fWDDIWW1kfrWA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Unlike the the very close A740 GPU on the SM8550 SoC, the A750 GPU doesn't have an HWCFG block but a separate register set. The missing registers are added in the a6xx.xml.h file that would require a subsequent sync and the non-existent hwcfg is handled in a6xx_set_hwcg(). The A750 GPU info are added under the adreno_is_a750() macro and the ADRENO_7XX_GEN3 family id. This adds: - the GMU and SMMU bindings - DRM driver changes - DT nodes Dependencies: None Tested using Mesa's !26934 Merge Request [0] on the SM8650-QRD and with kmscube & vkcube to test basic rendering. [0] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26934 Signed-off-by: Neil Armstrong --- Changes in v2: - Added separate a6xx.xml.h sync from https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27576 - Collected review tags - Inlined skip_programming - Use A7XX_RBBM_CGC_P2S_STATUS_TXDONE instead of BIT(0) - Drop now useless placeholder comment - Removed interconnect properties - Rebased on current linux-next - Link to v1: https://lore.kernel.org/r/20240212-topic-sm8650-gpu-v1-0-708a40b747b5@linaro.org --- Neil Armstrong (6): dt-bindings: display/msm/gmu: Document Adreno 750 GMU dt-bindings: arm-smmu: Document SM8650 GPU SMMU drm/msm/a6xx: Add missing regs for A750 drm/msm: add support for A750 GPU arm64: dts: qcom: sm8650: add GPU nodes arm64: dts: qcom: sm8650-qrd: enable GPU .../devicetree/bindings/display/msm/gmu.yaml | 1 + .../devicetree/bindings/iommu/arm,smmu.yaml | 7 +- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 8 + arch/arm64/boot/dts/qcom/sm8650.dtsi | 166 +++++++++++++++++++++ drivers/gpu/drm/msm/adreno/a6xx.xml.h | 9 ++ drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 + drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 28 +++- drivers/gpu/drm/msm/adreno/adreno_device.c | 14 ++ drivers/gpu/drm/msm/adreno/adreno_gpu.h | 10 +- 9 files changed, 238 insertions(+), 7 deletions(-) --- base-commit: 5a30f6bdb84228f160b331eed2ccfde00bfb3ab4 change-id: 20240208-topic-sm8650-gpu-489d5e2c2b17 Best regards, -- Neil Armstrong