From patchwork Mon Feb 19 13:35:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13562720 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A36E9C54764 for ; Mon, 19 Feb 2024 13:36:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=QViWE9XrWon1smyLpF3i2nogVDg3NZWqZWL9tcmP5nA=; b=tiPqMoCJUAufB0 lFFE4B1HlSI+UajO+9gLRmuzz4FYE8OQsUqz8JhHvyZiC+RWjp4OXC5A3Joh7nbZoh9eJtSMBc2NK kNd5ITWZ8OZ6yhpauhbxWkkgEjziYVkvr9Bu36Nt+wKM4TE4Wzw2ucz1Bc/i3wqXoR/EUNYzdxxRI hTEIHmguSZbKMcSyDF7yUE2NNal3DJylHRwP1dZkpvwz+at0vBU4JBNKGPfD+d/L+VOHmRzaF6UKo OJZ+v+WrgXYQMJivz3nsjQrh5M8rjQMwWsDZckNYNeYg5ITDZd/Aiqi/P77aULlHgdwlsz3W61XAV luw5+WAHSpEx7BJktFyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc3oe-0000000AehM-1yW2; Mon, 19 Feb 2024 13:36:16 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc3oU-0000000AeaR-2krX for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 13:36:08 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5649eb3ab68so759343a12.3 for ; Mon, 19 Feb 2024 05:36:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708349762; x=1708954562; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=gcUcBFt3N1ktfXc1gPHrIeslPQYkGz8L1uvDW7LPc+w=; b=HGmHPwcbIQRS3+8G0jijWdSkxrOAdMCEQY2tgGCX9hdZhUgPtGQKcj9gcLFOAb1hiM NhjdKvS0bDDN7ScrKoiSk3IMf0u8RdTU7TjU3IgE5dVgHXw2Y+WKCf/MlG0tg2QAsYg2 5830QN+BcboorTqSTIc0d1cakuhTdTvu+G4MCHa9Ykp4oA1JZewcCTX+Xl2fhUsmc6PM lgFCvEkSDh8+spLjB+jgGSq9mboOu7O+omJqKgLiQ/JgSVto1cdQ2vNTXURMkkO3J64I u/5QXKcttHhrAAB++5bIg5De5+o0uENGc+Z/l0OtDw+tEVbJNePocJh9H2IR7EKeiDNv uLww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708349762; x=1708954562; 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=gcUcBFt3N1ktfXc1gPHrIeslPQYkGz8L1uvDW7LPc+w=; b=qfQ+XY1otGxvm7UtYHlyMUmbuSuXwsRLGwBCum3CkeKAPpkxS4olSqZ8r07jDGgEYS RAPQCY4GKDDz+9aK4Xy/26Ehdw+QVSS+xL+iZnU1jZ62bAdrbpRxMzAEVN2wHsk1+xav 6qxgfIkPw27S5iHUSICaX1J3Z7twdppwhzjVmhCRsT6xzbDYMhW7DnuF/JfYu9nOyPCa Y3Dm/IFfBZev07K1qXPUuKVRO+gVOAHgZ9gpnrHZCdZ51p+XecUaTe5q9dzh9tIEsEdA olob4QnZ78w91Bh92JguxqPGUmyOR/TLzbXGV9JQGoWULCweRoA6MJYJjbDzusBhaYPq U7WQ== X-Forwarded-Encrypted: i=1; AJvYcCUbwE53/isK7wRAg5A5xGDirZKzIfAkmhAYoqa0Zc8NAqN4Bvl1DHjKfZvaLOcgP54sg4AHn6EubIKr25BxLo49pi54NiKpTeiS9gzxkCJyoJPdgiU= X-Gm-Message-State: AOJu0YzBMbZyQ1uSzzkjrvVGa6lSDDyBWCbMiYbbjsHr1xA07QnM1vcD jK+U+U4YFt+TQPi4bEfrbLM/IxlrFI5ztK825v+l30aFRSORD/luRoRGzXPg5lLDpDlSAQlrHKx T X-Google-Smtp-Source: AGHT+IGXVYgMnspzTGdD5I5yCYByz/Xz0DYxnqQrqWXrukEzL4VS6LpQJbj3an4OOgf2z4QtP93W8g== X-Received: by 2002:aa7:ca42:0:b0:564:8a4c:6389 with SMTP id j2-20020aa7ca42000000b005648a4c6389mr1158711edt.29.1708349762517; Mon, 19 Feb 2024 05:36:02 -0800 (PST) Received: from [10.167.154.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id q29-20020a50cc9d000000b00563a3ff30basm2900168edi.59.2024.02.19.05.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 05:36:02 -0800 (PST) From: Konrad Dybcio Subject: [PATCH 0/8] A702 support Date: Mon, 19 Feb 2024 14:35:45 +0100 Message-Id: <20240219-topic-rb1_gpu-v1-0-d260fa854707@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIADJZ02UC/x2N7QrCMAwAX2Xkt4F+DKm+ioi0MW6B0ZXUiTD27 gZ/3sFxO3RW4Q7XYQflj3RZq4E/DUBzrhOjPI0huDC64C/4XpsQavGPqW0YmRKdU3QxjWBNyZ2 xaK40W1W3ZTHZlF/y/U9u9+P4AeWy2Vh0AAAA 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=1708349759; l=1949; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=WXBvHj3CA0v2OnyyONM79OOqbce5c/wCncuFj1EY8Yk=; b=09HBvpU95Fn5jEyPMGkTjAUJ7bgcBbYWScXmo1xRIJoHiVGqrahpUaQv4TEKCcp57yd+6yD83 XmQfcZAl71LB20l4ZsL60dx0F34PqpOR8hRCzmP4MVy3+krdyvQCBY6 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240219_053606_736621_38FD0E85 X-CRM114-Status: GOOD ( 10.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- Konrad Dybcio (8): dt-bindings: arm-smmu: Add QCM2290 GPU SMMU 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 | 76 ++++ .../devicetree/bindings/iommu/arm,smmu.yaml | 3 +- 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 | 45 +++ 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 ++ 14 files changed, 888 insertions(+), 10 deletions(-) --- base-commit: 26d7d52b6253574d5b6fec16a93e1110d1489cef change-id: 20240219-topic-rb1_gpu-3ec8c6830384 Best regards,