Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2371649rdb; Mon, 12 Feb 2024 02:37:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVoL9wtr8UqBM1z/qIKZ8isPLpXUGyKN0qYLVx80MxbKQGywGYWjOugI4RRFlIVIkcRbaZ9vec896t+axcDx9fWE483dUQlpvMle2SlCw== X-Google-Smtp-Source: AGHT+IGQdcsbgexWArm+PcT3inPQDwHrPUwbMnC/TQRwSZVDOfkJYp3JbzLkYKJ+FDK0Z2fLWEOa X-Received: by 2002:a17:906:e24d:b0:a3c:9470:219a with SMTP id gq13-20020a170906e24d00b00a3c9470219amr1875040ejb.4.1707734266029; Mon, 12 Feb 2024 02:37:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707734266; cv=pass; d=google.com; s=arc-20160816; b=r7p23g1gnLEwo0vCe2V9Sn33dkgwZmTs9+8kStAo0CWlujGWeyxwBm9/KeHjSdHhft G4TbABp2fxK3QAgaU8UdKckptW3vuIHWt/N0ROFLcRJw2lhjriYXDrKf5KrYP4b8ms0G ZZrhPCQruFch5HnQQpBx+mPDqU/WrZ8/TJ8hbR4bwZ3bd3yIoAT3c/I40TyX9+UlRmqv c+k18YA1PPL3Lm7MHU7LrLFLqCkZhcK8lfJJNfAAEhac3BEUtP1bSLYBoLYip1iuXnzp drT+dqneodiz7NVdaliTeLbfwtRJ4X5SOE/YOcCAUC2g+8ZRUoPBH99hXRJGlbDePB/r 8ItA== 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=AGeqgEbmqsbfk3RnMJf9oWlOyzbWan5F35nXvDZlbY8=; fh=coILPy/a/8YED3Xr9PODjlsCmtqamE4MNStX3mWu7Zc=; b=bjxr558WcpLOy1hwM5PRspqDYgpoJKTSyBpFwAFtI0uAjViqz8qgFyNcEdfIAtv3iu LEekuO8XDVsO+SCtHY2tdeboQUT70OXB6ohYphTBxppUx3fdlKZvjH0FNlJwlVhk6ZxB UUK3M39xfO+bioOg0j8Ra1OXq9YXXI/8gk6lxssRK1XGzbT4XShLkV3mOS+qtkINdJe2 WpUr5P/7oJFADtpcH0eqCMhCjNHgY0xGI7RSwrDxb7p/AJSggpuEwHndKP9fnyGvzqHb KUrYBFPULQMn0kft4yOxrl93KqDf826a/j1FKnHWTPc33iNwWBMqN5yN8VzjXX9djMhj Dmgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TKeJtP8y; 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-61328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61328-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUsIpLwShBVJsRNZuYtA1T1guENQyNSLxqEV9ZAaDV8TuGDzsLnDs6s+uCldECluh4ZbciZq4clnAaMw/4AABuT4zsbScAYPuy7yHCIyg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d18-20020a17090648d200b00a37b3ed0a95si67332ejt.189.2024.02.12.02.37.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 02:37:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TKeJtP8y; 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-61328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61328-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 937D31F2137D for ; Mon, 12 Feb 2024 10:37:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5205124B2F; Mon, 12 Feb 2024 10:37:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TKeJtP8y" 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 724A012B70 for ; Mon, 12 Feb 2024 10:37:36 +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=1707734258; cv=none; b=UVS5svTJn2iBkuxlGKjlYOSI5BbJe5ohc4bninFOpEtDaoL3o+jaR4eE0pNeqZsCsI7lrlY53EoAGZ/1gjexX4c9e92iSBJk8hUfiPv9JrSFUoUmHUKHzLxpwoGvSrBOoYXlWan7bsWszU+/L35QpyHSfXq/Ssnx2BqS6st9c6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734258; c=relaxed/simple; bh=A28mYhUDB9oRP8F12OtBxkw1cw1ciKnKbEzOFwRp3DY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=D28FswfaCFPp7CxWQov6jGve35J15kxAW5Soq/aHyW1bVihea3yd/3/3F7PnzfsPYM5BW9V/EoXsdJpMNtPcPCsDbd67DuVzyP3Sam98zqFamkU3YSeOhb2PFGVG1XjTzWdCiZCL/ZaNIPWKT+1wxwYCe/lJvqCVcDRvc36y6R0= 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=TKeJtP8y; 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-33adec41b55so1610875f8f.0 for ; Mon, 12 Feb 2024 02:37:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707734255; x=1708339055; 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=AGeqgEbmqsbfk3RnMJf9oWlOyzbWan5F35nXvDZlbY8=; b=TKeJtP8ylizMnyYOkB4brU5BsIi26QEx/UY8XCUPWZ/Iq5S+o9nlOITlp9zJK7IJhD Bt0HYTlFz/bBE6s8liftXgijlL+fJvQim2+6ZQx9Q7az9Le+9DyRtwsMdvwThVS25nkT JtOkk1FqfqCabJ5Y/8pmSivsZNhdJTypKvnVEAin1Tx7CFULd6XEC9NjiaHkzSGE9GlE hYEBj8W/UAzWTTCf2GIZmz7o1H0Ur++GnnIXb+mj7SsuMfWj7TLj/a6h+G9oMGFH9IQ6 ouhj4wU8AYUeiBdnbBvZAqh5IGBGyjh9LoCm4twNL8jR1IHwwffKXuKLmHJRY5Y/c8Nm Gj3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707734255; x=1708339055; 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=AGeqgEbmqsbfk3RnMJf9oWlOyzbWan5F35nXvDZlbY8=; b=ewTd+0WQpKFyhzjR9YgzSoHdpmF8coCQ4HZNjtwuQkWWY7HztQVMObAFWS6oj2GO8A unVEh/ZnKsKpOldwpcmo21oieaaWZg5lVRG6RBRXXkHC8wnqhknt4JvZCAD6ARhLRY+d k63wvwijJMB0BhJ15mGmHCyRBaRUYlHr1YYHHw6n8pGCWy9e2PpyB6bRUe5SLhZWSb0m HgC8AyFF1EiwVqZokV701PkfzNDqhGqn3q3mPQdnM20QXC/zuehQNQlVaHBY8iL4hkVa 15FbukocofQwPEqgqgkTSJxqUa3qAWeKhcLfgVRr7Lwd05BVLLXeOGSVZhUY22Fz+f4H nXIQ== X-Forwarded-Encrypted: i=1; AJvYcCWyuZGLggyS2sborqn2Vhmh9Ql0Ej4yBPTWMzSUy73LbzrmAa38kvdUugBWp6WvPQd5VYloB/zI656uwoR7+saiiv9iyCARECwY7c+3 X-Gm-Message-State: AOJu0YxetKdS6+5dkN04eKV5eGRN9r1tLfqPv+hiH1Iv4PPw6X0WukNx HKP0myyZx757gQUsk3JBg6V8xObPZ8rfBrEejxQsWbPpt71ZDv3TeaqV+nx4qIeVHRHJ6LAn9Gw 9TLM4AQ== X-Received: by 2002:adf:e502:0:b0:33b:7944:c3c5 with SMTP id j2-20020adfe502000000b0033b7944c3c5mr2611341wrm.10.1707734254573; Mon, 12 Feb 2024 02:37:34 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUmId5I/w5BR6DtxvrxeEAwWxlupzFvPdV+nzmpyvD3AQaB/XlIK/Mz7iKn8yyOttmwqQzO3jPBlUBMIdQG7VjIfDGAq9C9X/ZBU5SkqEqN0Fl/BkgPRiL9XGPm2NNyL1LkBtJNMeW0Nk4AUQZf2JbGi3Sl9QQQw9bXjpHHgaDOW2GR3CxFEgEXL5R6CN9c3yZjrO6wstHsNnlPq8+mIbAkkpmNVFgysoVtJlli59Pv55+xV1zA0bWWMYYxHWIH6h6/DL2aZ3YaHa4CEstSHaHzUaBG7q42Lt+HgBHfts8H//QhaR8+M0PGiyBRh35HKdQp2qASADW9mMWkiry9G8M4m7EToiY/pnyJFnSKLzbuOIcCjiHYnCGy5yBFXJUYO867qt0aiZOl53LFPvKzJPRqsHIFNj8yRAQ1zeuu1d+PYlcz0V6Y6ZX6ANGAO/M0F7x6UjZJJH6C45UIR8LVk0WHPrm89LPFefpGwYqE/4oiqOb1uP8dx/ONGKuMdy4MbH7k9k8iQdxocnAsii6fZyoXTOzeBIfJP2ZEP2hykYFEwzjmJ7qHEBSTHE5UWK7eMuOHKr8j/jb4rnEb+nqbSGKlXNVAxkJV/lgz4heBsjjyLRAjbl1zDyHOz52pbK55YIuQM/y/TltPJi6ugBm2VagyRzPhwIt1IKMRo03vFu9YFkM49LUBpwRqHTxuaVnERfj8PLIhZIXepI0iQza8KcXuRKS5JtUcbQSia9R1Tl7M/ralhpnyvFMZ6HVmSghlxygheWu8mhWSPL3mWndmJjvN3EOaxK6IwZdaeeh96vkOIlxarhYeATJ6YJcVxeZMvzCIDEdHiIloPxbCnXZaePLc4OmRl4+ksPm5hSk= Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id f14-20020a056000128e00b0033b50e0d493sm6404188wrx.59.2024.02.12.02.37.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 02:37:34 -0800 (PST) From: Neil Armstrong Subject: [PATCH 0/5] drm/msm: Add support for the A750 GPU found on the SM8650 platform Date: Mon, 12 Feb 2024 11:37:29 +0100 Message-Id: <20240212-topic-sm8650-gpu-v1-0-708a40b747b5@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=H4sIAOn0yWUC/x3MQQ5AMBBA0avIrE1SE6VcRSyowSzQtIikcXeN5 Vv8HyGwFw7QZhE83xLk2BOKPAO7DvvCKFMykKJSkTJ4Hk4shs1UWuHiLixNM2kmS2NRQ8qc51m ef9n17/sBgVxxc2IAAAA= 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=1816; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=A28mYhUDB9oRP8F12OtBxkw1cw1ciKnKbEzOFwRp3DY=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlyfTqaPw7Mg4iK72Rftn29yA4DDPKGhDoW9VhU50l MHnYUPSJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZcn06gAKCRB33NvayMhJ0XffD/ 0dlM3LxjzviVCefCZEiEYUMeCmN1LifE0PAQaBfxfcOYHcLseB2thwisyqSRjLVy5I8Ewg1lny/ZgH SfVb3jEnVkZU/2To5Dwoo3hZP/Rr3at4XjbMrJMK6wITMYsNtmu3/ujRmRVjfTpYJ59bHkM/lh81lD OyjD16xrrD9JZvwouJBBHI8Svwu4HWrdlqb/vZg0mpl7TiCKi1m7GcwAC7SPOn7qtqepCudqHEeR5H j2b+ClNmvQAbRO+JWI8W5d/AJY16Qgd+P+tFZd78X5tbSA6r8SGzpR71X2+i+VhFpqqSNAdWFJqCNl BGynhTC2980c4Lqmb9m0zA+xaA6Qns2Y+lzXER4zX/PLRPje+4FB2rTM+ahhrO5nXw3crtTA5wBFff j1fGxkZgwv2+pmgSr11ZRKad6t2i16xbpoyw/gVaUUNRb2fa4PLfJs5P1mF3TnmjpmOYUEeXMLqvfR a4q3LwkrlLgKQdTUpmY9xvdyYIh1x7F5WpAbtD91ZWG+yFLJTxVY0tiPTwFcE6x006JxmKXrLpVckI FTbTydU9xaVWLTgb0i+3o/BisgbkDEzyNADMEejXIWeQK44wsOT4jYjwRLFTePnysA5aUR70NKAm4b RKXMTXm3CYLh6sS41bHqs/BmjUhJJgwIuFMWWnao/0HXTDYU6doBeX4tMcMw== 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 --- Neil Armstrong (5): dt-bindings: display/msm/gmu: Document Adreno 750 GMU dt-bindings: arm-smmu: Document SM8650 GPU SMMU 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 | 169 +++++++++++++++++++++ drivers/gpu/drm/msm/adreno/a6xx.xml.h | 8 + drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 + drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 29 +++- drivers/gpu/drm/msm/adreno/adreno_device.c | 14 ++ drivers/gpu/drm/msm/adreno/adreno_gpu.h | 9 +- 9 files changed, 241 insertions(+), 6 deletions(-) --- base-commit: 84baf172e2fa30d6d6d0fb8ed076b47e836b74f1 change-id: 20240208-topic-sm8650-gpu-489d5e2c2b17 Best regards, -- Neil Armstrong