From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f195.google.com (mail-dy1-f195.google.com [74.125.82.195]) (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 173CA3469E0 for ; Fri, 24 Apr 2026 13:58:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777039119; cv=none; b=GxfgFdbxXWzrqyXGBN2k4tggEvI13+ZWENqRV4rg3o3tJZ0khgcUIN7t7d6lRvu/uSQPmbL1KF9OeCJOVnJg4VldvgreUQyewZzRhX405rRSNwO27fhM6z1O6TwBkZLrGs/yrnpaDuLFNnJJJMx68rmVsS1s/gUXA6/H9SDGx30= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777039119; c=relaxed/simple; bh=Ssr2le1yMNDssZLgJHFOiNfQv+GrasneJW4v/zdCPU4=; h=From:Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject: References:In-Reply-To; b=gf8at4aeiuoOBqcV/oV4gbbCEh4scmnb7VddjHVM9VOfk0R8Imt9Rh+uq1SFJz56nNvHuEynfa3/YrEi9w/cIDDTR/jtwFwwnnvcovjpV59RIej0pnM284IUP+xZmN6EUBU0K3oYH8kuXRP8+chjJAA5NTfUGJPvpPiF5ul0DA8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=InnloTqy; arc=none smtp.client-ip=74.125.82.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="InnloTqy" Received: by mail-dy1-f195.google.com with SMTP id 5a478bee46e88-2e221a71e19so7690599eec.0 for ; Fri, 24 Apr 2026 06:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777039114; x=1777643914; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=PQxAgNQNXDNCO7hb32JxDK6aD4YqIXLUMAcyq751mmc=; b=InnloTqyXbRXljtt11abcVI1SExW6jyJHwfQIpTPJU9rJv9UKfBRx4uCq9JDYiR2bV bfQXffp5mmJeY8Y19xSxKSYkPT1tDUbsAD/PsAtXUCX3ZVKbfl87+lpuuyHHNaUJtHlj VP3jcuB7dJ6WM9Ym2mWZgbps0bRCZBsYLJJo8geB90lO+FGKbbd1LwVl1ek7aoBjP57I +XJLor8MpZNIsGDGsb1FLbb9/PFihiDnBz30OvQ84E/GcW+NgeRLaAItcWKBQWISA5DF o+VAHQeD/Pmj8HBhfE/BCg/pVEHAvPsEO9oIdKUwB3Mbh/Tdm5DfZUT2xKv+k7rubVLk jViQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777039114; x=1777643914; h=in-reply-to:references:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PQxAgNQNXDNCO7hb32JxDK6aD4YqIXLUMAcyq751mmc=; b=B5l8AH/Gfr7U2mgqI/MoVnHTRnVd4YDIYktu7hrrk6cqKdxnJUbIhxsaEe5COLcOhk 2j5hmVrSeypeYtQd8lO+TQbBT9jbNat8k4u3ZoBmCg16VUg/WUoVhWBdujPn0/1oyG5p H70lqZLgMvcAhnPFXh7KsDKwFH33Xvdx58P8IAb7XNWwzG2b8dRVYxys3RTWzPgBVRyr XYTI+n3zi7gZYzZ5NIW7mIBg1hpfNwbqOr++5isvHSDbkyyATdbltZBkcxM7odoCIN5f VbmzuwErL9OM7D3n0S/EQ4kkn+8iDwQrGDngQ08bL3nTqAWKxEATUxKsDhG+eWTBRbWd Mw2w== X-Forwarded-Encrypted: i=1; AFNElJ9t8PNlct42spG/ujJ1dZuSEiiXANgcC3uY48iwr1Mkc2oaqywrYQITSzGSZwbyDTZU4wlyIbj+PMoY@vger.kernel.org X-Gm-Message-State: AOJu0YxoPHNnx7BsTpFqOcrcAXVS/FL4tTEnBDH9jQAIkJucvdZ+lHdF EDGoaIlh5gSRoidEwsQ5V1M8znXmDKYOUAZbrgTNAENMEjEqyTj5e/7f X-Gm-Gg: AeBDiev7uW4OAM8xvM+pHcZeohovgLzhHRpvZb5OVxr3K2oflh7Ih+u0LfH4Nh3PZrk RB2pMWraEVhtekCroddRiViKEpRqY7nvVVuEKnVIDBUud1E4W9obLdhHkMLBJtNv5MikGPxs/wO gZn55/Kkcu/WpFahix1WVJShqPmkV1OuOaWdAuEpJnxY9ETHQhXhVIpHlHbycMTuJnErwYrJ37s GnZloiCCYojpVlwTYbQuZQbIYprbGw+rxRjLjqJlOA2Ghc76CqG/UvakGg2ukkcpnwGYi+oRaM2 cL+AJvvZ906D5aDU20oVJctxcbuVX9YFMeFN600s6iEq515E+QrZKNe1QsLfLSs0f3kqufE+Jh7 M4YZCpFgRkrRf73FHHyBHJPKoVR3upjs1NxzuH98rsmnQMFgViab9Hp0WSaozcByCTL+ClU0xZ2 +59qCLfsihMQ4j3/ZM+sq2LehXRaR1bgU5pkN7SkITAhU= X-Received: by 2002:a05:693c:2b15:b0:2c1:3f85:747 with SMTP id 5a478bee46e88-2e47a1027d4mr19101535eec.21.1777039114063; Fri, 24 Apr 2026 06:58:34 -0700 (PDT) Received: from localhost ([2408:8256:2289:187:7e9d:5b36:3e7c:859d]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2e53dcb487bsm32940358eec.31.2026.04.24.06.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2026 06:58:33 -0700 (PDT) From: Troy Mitchell X-Google-Original-From: "Troy Mitchell" Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 24 Apr 2026 21:58:27 +0800 Message-Id: To: "Troy Mitchell" , "Vinod Koul" , "Frank Li" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Yixun Lan" , "Guodong Xu" , "Michael Turquette" , "Stephen Boyd" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Alexandre Ghiti" Cc: , , , , , , "Brian Masney" Subject: Re: [PATCH v3 0/5] dmaengine: Add Peripheral DMA support for SpacemiT K3 SoC X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260424-k3-pdma-v3-0-efdf2e414a08@linux.spacemit.com> In-Reply-To: <20260424-k3-pdma-v3-0-efdf2e414a08@linux.spacemit.com> Apologies, I just realized the version number is incorrect. This patchset should be v4. - Troy On Fri Apr 24, 2026 at 4:20 PM CST, Troy Mitchell wrote: > Hi all, > > This patch series introduces Peripheral DMA (PDMA) support for the > SpacemiT K3 SoC, leveraging the existing mmp_pdma driver. > > The K3 PDMA IP is largely based on the design found in the previous > SpacemiT K1 SoC, but introduces a few key architectural differences: > 1. It features a variable extended DRCMR base address for DMA request > numbers (>=3D 64) depending on the hardware implementation. > 2. Unlike the K1 SoC, where some DMA masters had memory addressing > limitations (requiring a dedicated dma-bus), the K3 DMA masters > have full memory addressing capabilities. > > The series is structured as follows: > - Patch 1: Introduce the necessary dt-bindings: K3 compatible string. > - Patch 2-3: Refactor the mmp_pdma driver to support variable extended > DRCMR bases, and add the specific implementation/ops for the K3 SoC. > - Patch 4: Fixes a critical clock issue where the DDR bus clock > (top_dclk) could be gated by CCF, which would cause DMA engines to > hang and lead to system instability. > - Patch 5: Finally, instantiates the PDMA controller node in the > SpacemiT K3 device tree. > > --- > Changes in v4: > - patch 4/5: > - add Brian's RB tag > - patch 1/5: > - update commit message > Link to v3: https://lore.kernel.org/all/20260331-k3-pdma-v3-0-a4e60dd8b4b= 3@linux.spacemit.com/ > > Changes in v3: > - Removed the dt-bindings patches related to the DMA number. > - patch 1/5: > - update commit message > - patch 2-5: nothing > - Link to v2: https://lore.kernel.org/r/20260326-k3-pdma-v2-0-ca94ca7bb59= 5@linux.spacemit.com > > Changes in v2: > - patch 1-6 are added in this version > - patch 7/7 > - update commit message > - using k3 compatible string > - Link to v1: https://lore.kernel.org/all/20260317-k3-pdma-v1-1-f39d3e9= 7b53a@linux.spacemit.com/ > > --- > Guodong Xu (3): > dt-bindings: dmaengine: Add SpacemiT K3 DMA compatible string > dmaengine: mmp_pdma: support variable extended DRCMR base > dmaengine: mmp_pdma: add Spacemit K3 support > > Troy Mitchell (2): > clk: spacemit: k3: mark top_dclk as CLK_IS_CRITICAL > riscv: dts: spacemit: Add PDMA controller node for K3 SoC > > .../devicetree/bindings/dma/spacemit,k1-pdma.yaml | 4 ++- > arch/riscv/boot/dts/spacemit/k3.dtsi | 11 +++++++ > drivers/clk/spacemit/ccu-k3.c | 2 +- > drivers/dma/mmp_pdma.c | 37 ++++++++++++++++= ++++-- > 4 files changed, 49 insertions(+), 5 deletions(-) > --- > base-commit: 02f90981a67f3b9ee7d6684e7503a4fed7aade0c > change-id: 20260317-k3-pdma-7c1734431436 > > Best regards, > -- =20 > Troy Mitchell