From patchwork Wed Sep 25 10:57:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13811897 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 C526FC369C7 for ; Wed, 25 Sep 2024 11:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hncFvWLq+2HIxkK3IdImc39anusCXRWego+hIX24T7w=; b=XEle918axGH5eQNb3Olk+7xbcP zrdV1wntQUJ5dgiRcORuyUvJA814vZsHD0J4C6I17z8Rz3McghPLvqNAh1NNBWAV1bskisp+bOZXd 90EF8MSIUcmJaO1SMxiXkSqy5rtrCwGSo4yG8OsD4/xfMTdA5uu1GbnpTFXfbutQ65t3lw7SApKOl 3k3kkIpV4xLINVZ4Ke794vrervgsWOTA/3CxOdw+7M6Vyf8T+ARoIqBWbnbukTPYsElkVBBP8hKu4 6XURxWXP5ByThBuzn9JjIUyuASK2MGtxw8RjNkx0wd1us32b563OUmuKKIMQO+iMDMM54gZdidDpT kAWVobCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stPrb-00000004peF-1Nte; Wed, 25 Sep 2024 11:07:19 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stPm4-00000004oOp-2PD9 for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 11:01:37 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-717934728adso4657955b3a.2 for ; Wed, 25 Sep 2024 04:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727262095; x=1727866895; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hncFvWLq+2HIxkK3IdImc39anusCXRWego+hIX24T7w=; b=gm8aFMzsA+RQbj8jGGca9W+o3JW5fQRq4az51clrcr170Ieo7qmdYVNHGEnms/soZH JUndNxtzP3uJh5U+L+YjFTfCWtdgZ3VO3Mnsn3AwoSCtP1aI/MaY9Ku2Zhc/+5jkEPlv l0o+SBu6lY8u2XoXadBr+qkAInfVSKXq3GQSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727262095; x=1727866895; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hncFvWLq+2HIxkK3IdImc39anusCXRWego+hIX24T7w=; b=athUp0RTYieDk3Jgze8E0e0QUwBuYXgSUK/Ag2k//fPf6/c0R3BDyi5gbNRr/UiBBg bKx/ELg0ovvdNnYi3e9whoLU0gglcaWIbmGkDW3+f877HVrME0BZqNGYWTgnGqiZfJRK 7HrZteMDL/1Lh8uHmIMO/g8+pTh2HsD8Du8csPQh+4fX/urH9dczEmrn3uyWOYp7snSM NMKp0wvWeaOx6D79p6NQr3Gar2ACRH3rnX63a5HVe7KStlAAIvt8/w9x71p/Tj5C9yF3 PTkU7+NEDXGaGP3H3GAg08iKjSZ6PplR3Le4upTARcCP+q6xvqrk6t8JqfUqWVE7uZqC CTBg== X-Forwarded-Encrypted: i=1; AJvYcCVeanfpV8GAlB8Tv/w1HMydx0W9/kGQ4UlFxTc26Wjs9tmJEI/1D/f3HwJGOtOtwGOMFvPaHNKH88OE7iFW20gF@lists.infradead.org X-Gm-Message-State: AOJu0YysomPzMLY8N3cuisUtkpZ+SnBM8zqy3bCB/vl9TuipXAu6RHvE Mte8AvxKaNAeTK1u47IZqlxztTCLSzfFyNjPGWdQ8m0K8Bee4n9ZvrwwQwABqQ== X-Google-Smtp-Source: AGHT+IHU28Q8f9/KJ3N8Jxjmx5bV8UUivj8/F3xolVCMLHtBase+oJeqruIcrf8KyuRBh44bM56zZA== X-Received: by 2002:a05:6a20:9e49:b0:1cf:32d1:48f with SMTP id adf61e73a8af0-1d4d4b9bcd1mr2511337637.36.1727262095334; Wed, 25 Sep 2024 04:01:35 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:2b86:78b6:8ebc:e17a]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6b7c73085sm2570298a12.59.2024.09.25.04.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 04:01:34 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 4/6] arm64: dts: mediatek: mt8188: Add missing dma-ranges to soc node Date: Wed, 25 Sep 2024 18:57:48 +0800 Message-ID: <20240925110044.3678055-5-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240925110044.3678055-1-fshao@chromium.org> References: <20240925110044.3678055-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_040136_630776_FD69A6D8 X-CRM114-Status: GOOD ( 11.38 ) 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 Add the missing dma-ranges property to the soc node, similar to how it was done for MT8195 and MT8192. This allows the entire 16GB of iova range to be used and enables multimedia processing usages, like vcodec and MIPI camera. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 51bf08b2ff9b..ff5c8e0597f9 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -880,6 +880,7 @@ soc { #address-cells = <2>; #size-cells = <2>; compatible = "simple-bus"; + dma-ranges = <0x0 0x0 0x0 0x0 0x4 0x0>; ranges; gic: interrupt-controller@c000000 {