From nobody Sat Jul 25 02:43:54 2026 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 2C5F333120A for ; Mon, 20 Jul 2026 09:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784539302; cv=none; b=Vc0Az/hNVHPPN7STJnA2Ism0dGPygTQ+NcZZzYYj8N/XJfEehcDG9nz0iJ2952IjRRo88NyF3gIlZugvi8YBYs1wpW0afC+hovtZGrzU12CdekVnmGcAkvMtcSLB302UhNnPIYI5b9/nx2puyRU9S7wUhISR0W8LQ5WeW/eZuIM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784539302; c=relaxed/simple; bh=zaw4S1LTgksTd7JqLX2+9jYrm669Liu7tsZGJ1zxoiI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d9Ls9lzGhXWAzc1ES308tNFM+vDb9gIR16cjjrPzwi5+yMG6T+rSc0ha7ZLmwmzceqGuTuv+UMejyO31ivAUUWh00tcu7xch7/ZtVBmhdqGCrBxyhQnQIaAFME9qTZOGfymttDOHfClp75fP4FgXym4h78aXCp/UH9burlukEC8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=LVAfACH5; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="LVAfACH5" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2cacb8416a1so63560815ad.1 for ; Mon, 20 Jul 2026 02:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1784539299; x=1785144099; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=dEo1zfdAxyxkmckxTePHzZtAsHT/hlKIP/V7KkMgw7A=; b=LVAfACH5zWYu+rAdWtdnQXMvjtoVMj9ed4ytr5gUPJBblRJUVRK43RvX+1dX/Cql8B 3aBaHfdKcMEC6nZn3K+IJdvORq85X2q6oiqO5M139gpe394nX25vEhdrqDhhYIaH7v+W Ao4jnbaxdL10p5IXpJ/WAhHhmYiHIWFaPDcUk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784539299; x=1785144099; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=dEo1zfdAxyxkmckxTePHzZtAsHT/hlKIP/V7KkMgw7A=; b=hPK0+hklbrJZY6kXhl2kFNmA7Y3fUXprhHIvBys+yBIX/9BGfQYl4WXQOekODG4TfI 8bxJ3pP8tE9gPDFyZ8gjSa0Z/KvHKdGHlClZT91ZGxcju5C5Instd2JKaw1wnRuL1goW QIL9Wj8T0U5jO/uTGRND7rIKxoR8mmfiSyZpIFpQSY+3CI43fINmEjfB4yHbVLKy0u2s Hkevn0y9UsMo5P6lR4Zhgj2B89RvF3SgZnmwMHB5LaWG4fchc08ByRwCgCbE96/+eNMz jH6ljgbMA74DEdwwkN7hzegmb5Ug7ZPqxngVeO+mDekSCxq7wd6QslDFVfBbCX8HIXnj XNgQ== X-Forwarded-Encrypted: i=1; AHgh+Rqy2qZkqLfwfaRPLASOR7qW+51mBGo/A188BHN9nYPkj0WvDYfVlDnYxDpAW61abyQsRJgdxL+0MJ94btc=@vger.kernel.org X-Gm-Message-State: AOJu0Ywb3h61l0MAjhlQbKGgcBvxGUbcvC0T01gI8d0EgSUQ1X8urD2n q3ZjCmYB1SdQUpIJTQ4Iol+xrl9A1sUxrpKceV7+bFb8z/UWvKKcEhZ51/gMhyFFrg== X-Gm-Gg: AfdE7ck1A68PcbCsXjNGnWM8jl3PayQ0MznY/yhd1w3B3ABIRRjllBNGxcjR/nUGIJ4 voZYHMzygQxkTR6P3ZidzrTbeLc3QEPEY4Ruo3Zj2154LXJ462pakB5kGdxy/VIDNfnC+02p+H2 HEiUr2d3GWUmO7QO2DmE1e3WAyyCFc7nrQDmvpDyRCPEd+bKkott0uGMYwP+0n/ZA+mo6NH5NFr CGlCpBUP1tRxaLbEW5CAy9sul4sJCc5hLpmZG4iWltY81MNk+O82mVHuxjn0i/K5IRjDfd7LkWv wTUXZyjxdPwD+a17aHLiiqY0/eKhtTDjegO35/HuE3MNZv2turg2TzPgUOk0TExwAZNbFFgGfaS Q2SU1NTTzoyl9D8f13mwLJlb4R1B/gxXxiQ+bV6C/eiVBTCx3fFRrItHtQhzg8JTYXRZ/o/mmPY C3YILxh3zA0kBWJhDfz/pB0lWPlIsvEHiqa+OiZluEBn7uwp227MHm5YyYHGbHnRMDkoZe1A== X-Received: by 2002:a17:902:e80e:b0:2cc:8267:31b5 with SMTP id d9443c01a7336-2cf3489a830mr141008405ad.19.1784539299565; Mon, 20 Jul 2026 02:21:39 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2a00:79e0:201d:8:3916:f048:32c3:931f]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cf344be458sm53775345ad.25.2026.07.20.02.21.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 02:21:39 -0700 (PDT) From: Chen-Yu Tsai To: Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas Cc: Matthias Brugger , AngeloGioacchino Del Regno , Chen-Yu Tsai , linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley Subject: [PATCH RESEND] dt-bindings: PCI: mediatek-gen3: Allow memory-region for restricted DMA buffer Date: Mon, 20 Jul 2026 17:21:15 +0800 Message-ID: <20260720092116.1823562-1-wenst@chromium.org> X-Mailer: git-send-email 2.55.0.229.g6434b31f56-goog Precedence: bulk X-Mailing-List: linux-kernel@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" On some SoCs without an IOMMU behind the PCIe controller, the PCIe controller memory access could be limited to a small region by the firmware configuring a memory protection unit. This memory region must be assigned to the PCIe controller so that the OS knows to use that region. Otherwise PCIe devices would not work properly. Allow the memory-region property with one item pointing to a restricted DMA buffer. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Chen-Yu Tsai --- Can we get this merged for v7.2? A matching device tree change was already merged in v7.2-rc1. Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml = b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml index fbc0378392d4..b88717dec1fa 100644 --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml @@ -116,6 +116,10 @@ properties: power-domains: maxItems: 1 =20 + memory-region: + maxItems: 1 + description: phandle to restricted DMA buffer + mediatek,pbus-csr: $ref: /schemas/types.yaml#/definitions/phandle-array items: --=20 2.55.0.229.g6434b31f56-goog