Message ID | 20230411125910.401075-1-brgl@bgdev.pl |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2569522vqo; Tue, 11 Apr 2023 06:19:56 -0700 (PDT) X-Google-Smtp-Source: AKy350ZpoLCP6OSl36MDUL6ScFInzjKbikrta/zj48Ocmd0mIgMljoBEhn1+2YjHv98rkSQo55lG X-Received: by 2002:a17:90b:3a91:b0:23f:d662:2c20 with SMTP id om17-20020a17090b3a9100b0023fd6622c20mr18355212pjb.26.1681219196018; Tue, 11 Apr 2023 06:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681219196; cv=none; d=google.com; s=arc-20160816; b=f3Y0Ws64UHQWH5ikcrht4jbPm+sVf55ecNk0A+NG8K8YkxYGWvYnOJGU5TXh4Txi9y BSsoYTeVKQKYcKcCJMg+PhGv2YVPXgreW5qZVTnfAyctrMahKh9537emsPeIvhkOPZPe Jzt+QDXAdbH+3721ev4cVmrxMx4lsb0WeC0BL0QZ2VgjbRIKnwKRDXRChNyeUrfhdP92 hUYR+bFH7+V4qJExGtvqCOBdPuuZLWkGXBCpMF33nfdCNArP7hJOyZgWyjuf24BoxNFI z3b0p5UbpU7Xz9rghqZ8qQHRWl+3h3lkkDC+PgOJIZYI9zWvT1OKiEPFtNhCjDq376JE wOeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gVuMmsSUuik77Ijx/8EU9TNPivGbNCZ9khKZD4i9/BM=; b=eTfA6inSxv+q0rVCOLl9vAiSWD+gZO2ZicKMGC1bWBm2pJjnbidO4Eu/8ejzMLze28 z+cOxRaKKWjsp1eyb2bmEtHf+J625ot9fmyKRTXfzPU7rkDCpaLBVXcROXpPdhB8ZOlT zxwV/VYgYZ/aLCvFGdbh58F838oYZa8weiq2BNkgZiIiz7W0kpCR2wOaEeJqSTCDNwbP cKxhH5WQdygCOtEKvcMS095MgARV4k/xgcXWNloKneIHyhgJlfbDAbhxBOM7c3wy8nQm H3TVy+W1ra97Q+47n4hYUEVVi1M/7N9N6wR0+XHNQnD3XLG54+nXI13G+G5axuCY9qNZ u5+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=ZNuwfNHT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ge18-20020a17090b0e1200b00246a238dd3esi5654600pjb.34.2023.04.11.06.19.42; Tue, 11 Apr 2023 06:19:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=ZNuwfNHT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230115AbjDKM7c (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Tue, 11 Apr 2023 08:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbjDKM73 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 11 Apr 2023 08:59:29 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F5AA49E1 for <linux-kernel@vger.kernel.org>; Tue, 11 Apr 2023 05:59:16 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id n9-20020a05600c4f8900b003f05f617f3cso10958122wmq.2 for <linux-kernel@vger.kernel.org>; Tue, 11 Apr 2023 05:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1681217954; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gVuMmsSUuik77Ijx/8EU9TNPivGbNCZ9khKZD4i9/BM=; b=ZNuwfNHT1p/L4mQ0ZKMicW8hWuIsz23tQW+92LtMGchp7cQfdHi55p/378Z65ZNORl 5wA/raAbIQ+z7XxlNbE65524TZQE9Z7dvQO/hs7lHAunBYZlFFMxcS2O2WUpETnnO9UH oW7yjNgm8VW/3XEBEEriKW4GSpvJzu+VxGvT+I3t9yMlDKn7wOAKBanGiWijKhshS8yw du040ueDH5DdkeR1iCqcuXOtzN2i5OE/oNryHRwqzcCdi4dUNYJbF+lYwe8gZ7o9vZ50 iL7ilCvX306s+8CeSaQxzTH4TfcmyD2iP70nIj51mqqbIIgk0FiCtKfiaVB/NeRc66HP RWrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681217954; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gVuMmsSUuik77Ijx/8EU9TNPivGbNCZ9khKZD4i9/BM=; b=dprGEYaDDd6WluXG4079QkByHSDUiE2hji8wMAn7HzMfiAQq7+XeVf2/QmVNTFPm/c 3MYw9oWnb7KqcJ/P6gpr0I2LliscyXLEE2azeEzCu5wF0kPieTJiJWs+rzWRG9obW0eQ tU9dOqOrkqNGU2L6OC9MNNkpLerHHkFP/ntORxoszkFmHyz2Lo7NaClxHpGcdH6R5aiF 47TOu3NMyncnSHT14bYC8SBCFnTbkjfO/kOe63wF3PX5eitlCPVTVpcPYKaqwqUlxW8d 3sjC0oko5/Rr0j2/6ntj60zsKzZh3yjMWLTsaeYu4K136YkUd49va/C4dZDKQGUzmYcw ms/w== X-Gm-Message-State: AAQBX9fDuBxlXCSCGpEbKTnhSe/aEDaDXAo/UlZXGn2vaQwfUVJ9Itqp UZPR/hryLhYv2aS2EASbl71WlQ== X-Received: by 2002:a7b:ca54:0:b0:3eb:39c3:8844 with SMTP id m20-20020a7bca54000000b003eb39c38844mr9829158wml.12.1681217954605; Tue, 11 Apr 2023 05:59:14 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:a099:fc1d:c99a:bfc3]) by smtp.gmail.com with ESMTPSA id e24-20020a05600c219800b003eae73f0fc1sm16944591wme.18.2023.04.11.05.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 05:59:14 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Bjorn Andersson <andersson@kernel.org>, Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Joerg Roedel <joro@8bytes.org>, Catalin Marinas <catalin.marinas@arm.com>, Arnd Bergmann <arnd@arndb.de> Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH v3 0/7] arm64: dts: qcom: sa8775p: add more IOMMUs Date: Tue, 11 Apr 2023 14:59:03 +0200 Message-Id: <20230411125910.401075-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762886100080617408?= X-GMAIL-MSGID: =?utf-8?q?1762886100080617408?= |
Series |
arm64: dts: qcom: sa8775p: add more IOMMUs
|
|
Message
Bartosz Golaszewski
April 11, 2023, 12:59 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Add the GPU and PCIe IOMMUs for sa8775p platforms as well as the required
GPU clock controller driver.
NOTE: I didn't pick up Krzysztof's tag for patch 4/7 as the patch changed
significantly.
v2 -> v3:
- select QCOM_GDSC in Kconfig for the GPUCC module
- the GPU SMMU is actually an adreno SMMU so describe it as such and
fix the DT
- fix the mapped memory size for the PCIe SMMU
v1 -> v2:
- remove unused include in the GPUCC driver
- remove unused clock from the GPUCC driver and make it compatible
with the generic QCom GPUCC bindings
- put the new defconfig option in the right place (as per savedefconfig)
and make the GPUCC driver a module rather than built-in
- describe the smmu clocks for sa8775p in dt-bindings
Bartosz Golaszewski (6):
dt-bindings: clock: qcom: describe the GPUCC clock for SA8775P
arm64: defconfig: enable the SA8775P GPUCC driver
arm64: dts: qcom: sa8775p: add the pcie smmu node
arm64: dts: qcom: sa8775p: add the GPU clock controller node
dt-bindings: iommu: arm,smmu: enable clocks for sa8775p Adreno SMMU
arm64: dts: qcom: sa8775p: add the GPU IOMMU node
Shazad Hussain (1):
clk: qcom: add the GPUCC driver for sa8775p
.../devicetree/bindings/clock/qcom,gpucc.yaml | 2 +
.../devicetree/bindings/iommu/arm,smmu.yaml | 6 +-
arch/arm64/boot/dts/qcom/sa8775p.dtsi | 125 ++++
arch/arm64/configs/defconfig | 1 +
drivers/clk/qcom/Kconfig | 9 +
drivers/clk/qcom/Makefile | 1 +
drivers/clk/qcom/gpucc-sa8775p.c | 625 ++++++++++++++++++
.../dt-bindings/clock/qcom,sa8775p-gpucc.h | 50 ++
8 files changed, 817 insertions(+), 2 deletions(-)
create mode 100644 drivers/clk/qcom/gpucc-sa8775p.c
create mode 100644 include/dt-bindings/clock/qcom,sa8775p-gpucc.h
Comments
On Tue, 11 Apr 2023 14:59:03 +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Add the GPU and PCIe IOMMUs for sa8775p platforms as well as the required > GPU clock controller driver. > > NOTE: I didn't pick up Krzysztof's tag for patch 4/7 as the patch changed > significantly. > > [...] Applied, thanks! [1/7] dt-bindings: clock: qcom: describe the GPUCC clock for SA8775P commit: daa9e76d17570cdd2dbec28244e60e2cb0eafb36 [2/7] clk: qcom: add the GPUCC driver for sa8775p commit: 0afa16afc36d0e462c7f815b0131d2e9013849ac Best regards,