Message ID | 20240216-topic-sm8650-gpu-v3-0-eb1f4b86d8d3@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-68480-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp434690dyb; Fri, 16 Feb 2024 03:04:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqE1aJgaGgRO0xbObw3bDfCWhTdADfzqiwDTVjvSz6odpJ5/fVfXhfNhDjLU1ZxsHofLYn6umygEJ30UUueILNRRZYFA== X-Google-Smtp-Source: AGHT+IEKL/+9OLHqZ+J5RLOhSNUw5OMsJfWSqzo9CQrdVkvI5tDYiktWIVaL1NrurfSS5Gfy42ps X-Received: by 2002:a17:906:491:b0:a3d:4819:b9a9 with SMTP id f17-20020a170906049100b00a3d4819b9a9mr3268026eja.52.1708081467230; Fri, 16 Feb 2024 03:04:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708081467; cv=pass; d=google.com; s=arc-20160816; b=T84FTaeiEj3cfsSAXpTLRwT9UEkEJBAZ6JPBfESpfSYvBPVf7Yhg9u4Q+uqBydBARo dkEs7pV0q0LP19nRo0EKOi6UfIkk8wIfihzvUnugfTeNIgL/vzS6RlrVtLPc6ZfjkPZc goGLS4hhgZH7xu4LgXdlnRXVkXGZOcSnmjEtho3FxSh54u32Lj4+nO2yFsAPp9k915DN 3elaU/nLwULWNmyYUoZwEs5W47xekpR1GKmcZROjLAHM3rWwu0xaIIe9HYgLXcCQLuB1 B15mKKFZ65nmqUB8HhigIJ5CQm0zmz2J8FvKdKEMJgNAbGwGv5klEeICOAtGp0E4ia6m fYTQ== 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=PB1x09n9EY53cKGEtrLSo/nG2NPG4AocGBYm52rVvBM=; fh=t8WVQ2rg8C8P/uNYh4E4YlXClWd3KtwNTE7f+MV95xw=; b=eFHEPE0iygCZzkf2fRxNSg2TXNmc9FAbx/lyA5I9sxc5DNSvXzLPP7PFyaxSyQkjdp k7qKVAKW9PVq0OWQdYJkBEf2HWzrbGT9kYqInj4kOghbADZv9Enf2xdMDY2zRLeh4MVy EN5xhyuTL00HIEPOGg/f+72V3m9k1IUa9tbpZIzCyxUXZtHd0aIQeOCvg1JFYu/uMH/T qMQzGa2a+ZgYCSf4kt5RiWUZB3iUxE5ruSGWEDijPzC0TuInbNR4vf7PP/Xqn7kQ7Qsp wReHZrQVBhwvs09ARlyjVkAh6r9elKAWsGg0oQC8Uy6c71WOs4z6UINYWFo4PCFYrzKj nQQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YNqLPcKd; 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-68480-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68480-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id do14-20020a170906c10e00b00a3d49ba51e0si1609689ejc.1036.2024.02.16.03.04.27 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 03:04:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68480-ouuuleilei=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=YNqLPcKd; 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-68480-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68480-ouuuleilei=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 A13281F237B9 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 11:04:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D7EE58ACB; Fri, 16 Feb 2024 11:04:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YNqLPcKd" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 333D957887 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 11:03:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708081437; cv=none; b=OflTtJYzDcOw01z0Y7ouawRWKFkIaaIoryQxilQ2XmK6xT9781xn9BmEEJ7ZornscZ0sQ31jXv/PhDjWmqybLVfTGit23ss+zffTbrkX1QqUBH6tYh9eNtglzEQa3tkUN9DoL5eXPp9lTfg2fOjICr0jSiWYrKLYl1rBbMWnBtY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708081437; c=relaxed/simple; bh=88200XhLDsXacy4SUSb4HPXY0yhpQByIXc7VIaR90QQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=hjZLO2TvhRnvJsR+R4VkMwNSg+CT//Wnyf9EL2MPa8biiEybx3YRpCyz1xHZyaIMg5TXT0FZRWYVPsLKVxEEUyJbdCwL/0J1rYv+c/FGsN9UbnSAH+UGVtb7vuCa7pnWYVLkN3BejUfdQYKVVqaXROfV9E33cKMP8NSS/pxD2EQ= 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=YNqLPcKd; arc=none smtp.client-ip=209.85.128.44 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-wm1-f44.google.com with SMTP id 5b1f17b1804b1-41242adfdd7so3225265e9.1 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 03:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708081433; x=1708686233; 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=PB1x09n9EY53cKGEtrLSo/nG2NPG4AocGBYm52rVvBM=; b=YNqLPcKd+BhcPd4DeQ3EDQytvQo2emcnVXBhl90QKD8pBotJCdzlZnfQrVmmPxg7AW dEGrWqurHiwxdmKWxysVeZKA/qUeWDE98sehVaOQj6leAI+0NxWz7giJaw5de6C7huJk KkmhtDmgTBDW3Yz8DGhbfQ+gJD30+M4k9ubmLE5pkEl8ypFgglNBuR2T+BQoo4jBjmTd +alRyTfFUXTja5vllQmPapFHtEUzpaPGXDPK0h5iU2ChdjO23zpicEDmlu2ddsZh9Koj kEcGzQy5iiYJQaU8Lptlj8C1aRPHvxDK5Ot8gthEA4RWanMBnh87VbOMU9BMY2RlsOLJ C40A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708081433; x=1708686233; 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=PB1x09n9EY53cKGEtrLSo/nG2NPG4AocGBYm52rVvBM=; b=XIkrSPNsjnTaKXY6K7CNd7ENBwY2mbdrE9Pr0yDCBLD6pCjMIuhlVfRtQf0zD5O7JQ PBGumr2WCAnQG32mUdzks0k6NFYYjvdH9YABtzANiJ3kWwmO+f73c6wl+4o3U3hGoz1X yuq3AQ3P6w3bo4mEfP8XntwtKWFzMqyVbzIHQJLOhb0Ixo4bhubjtisuHejV6gcv0u5o oxYdXbm8W22QVnPV3L9rm5KKVLDAOFKcYJoCjQobmKP/rmU+Zo1KWdqsGZGMWiEuWvyp 3naH/+NEKr6ziAfNRNeHZEa86amthF0t2hls6U2BU3cRFWqOWhQWGMDGBZfaYT4lVtdW /JVg== X-Forwarded-Encrypted: i=1; AJvYcCU6Kl+A8uTZR0QNX460sGpKmkGeZEmvk7e5kDjsU1mSzph0VD8FHHdTz5jXkouvDq665ba83ehSeRjJz09KRBiGQiW9IAm0q3PFTqlb X-Gm-Message-State: AOJu0YzYPu85YmE30NnGQ9vEvIlE2PU1hZJF7COsxEYFSFus6v0iSOUh S6WWRqjfGdyb1M2SUSVu0bwz0h0Z41oZpO1lPglTjwG/6/CRcsdYNTjEF0Y1Edg= X-Received: by 2002:a05:600c:198a:b0:412:1e23:e378 with SMTP id t10-20020a05600c198a00b004121e23e378mr2816457wmq.27.1708081433310; Fri, 16 Feb 2024 03:03:53 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id r2-20020a05600c35c200b004123b049f86sm1993174wmq.37.2024.02.16.03.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 03:03:52 -0800 (PST) From: Neil Armstrong <neil.armstrong@linaro.org> Subject: [PATCH v3 0/7] drm/msm: Add support for the A750 GPU found on the SM8650 platform Date: Fri, 16 Feb 2024 12:03:47 +0100 Message-Id: <20240216-topic-sm8650-gpu-v3-0-eb1f4b86d8d3@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABNBz2UC/23NQQ6CMBCF4auQrq0ZxpYWV97DuKBQYBKlpMVGQ 7i7hbjQ6PJ/yXwzs2A92cCO2cy8jRTIDSkOu4zVfTV0llOTmiGgAATNJzdSzcNNFxJ4N9650GU jLdZocsXS2ehtS4+NPF9S9xQm55/bh5iv6xvL8ReLOQeuQFcCjBLKyNOVhsq7vfMdW7WIn4L8I 2ASCmPBCNOihfJLWJblBdgefTrzAAAA To: Rob Clark <robdclark@gmail.com>, Abhinav Kumar <quic_abhinavk@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Sean Paul <sean@poorly.run>, Marijn Suijten <marijn.suijten@somainline.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Joerg Roedel <joro@8bytes.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org> 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, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Neil Armstrong <neil.armstrong@linaro.org>, Conor Dooley <conor.dooley@microchip.com> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2554; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=88200XhLDsXacy4SUSb4HPXY0yhpQByIXc7VIaR90QQ=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlz0EUmjR87lIPCfi/Gb7UFQg438WdU0lWU7qVfQOr uENaJoeJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZc9BFAAKCRB33NvayMhJ0cW1EA DH6fQ5F4pT1r6Ym1YBG1uanj27R0Rd0ajpmw/qZ0rm6nT9k84uMuaGZYNoRR1A+8Rt8XZo1p2gxkC5 erG+1yjhFuLMVzmMnlGShi1mcpuz/gmQIyfvP9jasd/RLi3Q+pQIZyFpRysyOSo3xDn/IZ55CsRVrW acRQ8/U4EWpo9YFlhELxf12PSvNX5g6NoJub9hyGwIs47/Igm1xP6CG4yVfRcJJk5VltNo1x5WevFf ytATAhGfb4T2tpAljgPf+kL1yPpEHLSzf6NEyT3v1aGiJQ2At3a/8KMBxuA3XYqSVFFCNfLTav+5JX gPq5fnDEkmRudgosN1w1EdyKz6wRIAB06g65mFmFzvi4+WQ374QEdxe0DA+8ErBO82fJ1u8bzk+f4Y ikSU7Vi7mlFBfcMpVgTJjlceBAXEkpCu9YOS6cBFS4VlsJbQ219oTSw47igyGWo66B6VJNBZa+cXCw G8cwmm192O5Ik8Ac0Nxk9ErtDcM9hRFoMeWhIe7hmwiQnT3Vx0hitq3nX7Li4zQdC2dFCdUqUBVc8T pbnFHaRwcTROZ3y2F3nnuhJFQSkV+C95SF/xYEludWs0JhGSGwT8T1nG1VDFIRr8lfxlb7YkRg0q73 onvN/ISIwGAoSgeWwuRs4Zlsle3ZBwnVrhBm8O8LhR1J0Z5I7kByt0c0gnQQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791053232260702968 X-GMAIL-MSGID: 1791053232260702968 |
Series |
drm/msm: Add support for the A750 GPU found on the SM8650 platform
|
|
Message
Neil Armstrong
Feb. 16, 2024, 11:03 a.m. UTC
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@linaro.org>
---
Changes in v3:
- Fixed smmu bindings if condition for GMU smmu
- Collected reviews
- Link to v2: https://lore.kernel.org/r/20240215-topic-sm8650-gpu-v2-0-6be0b4bf2e09@linaro.org
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 (7):
dt-bindings: display/msm/gmu: Document Adreno 750 GMU
dt-bindings: arm-smmu: fix SM8[45]50 GPU SMMU if condition
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 | 17 ++-
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, 247 insertions(+), 8 deletions(-)
---
base-commit: 2c3b09aac00d7835023bbc4473ee06696be64fa8
change-id: 20240208-topic-sm8650-gpu-489d5e2c2b17
Best regards,
Comments
On Fri, 16 Feb 2024 12:03:47 +0100, Neil Armstrong wrote: > 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(). > > [...] Applied SMMU binding changes to will (for-joerg/arm-smmu/bindings), thanks! [2/7] dt-bindings: arm-smmu: Fix SM8[45]50 GPU SMMU 'if' condition https://git.kernel.org/will/c/2777781ca9b6 [3/7] dt-bindings: arm-smmu: Document SM8650 GPU SMMU https://git.kernel.org/will/c/8a05f74d567a Cheers,