Message ID | 20230330131746.1475514-3-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBB5MYS2QQMGQE4M7DE5Y@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 19F0D4147B for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 30 Mar 2023 15:19:51 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id m12-20020a62f20c000000b0062612a76a08sf8811035pfh.2 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 30 Mar 2023 06:19:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680182389; cv=pass; d=google.com; s=arc-20160816; b=LWVeWd2bf/OT3x0T9DTbbHezLSV3Ju93D7bTBXDFiZskrnj4nZZq6Lspb0Q/v1x9X5 9jsYhnlFMFW8TJTm4r2ui1evQSv25eQ61uSvi7JjgBk12e0M/2439MnVoGBprpfg3txg Ztj3H7X2ONBNc/F6zJbM7BK41Z2KvhggixSnXY79BfllR/go0modaxI/0gwOrd4JirWq HQYkmvDBRQahq55pVdFBYiA/ZgrkCYiQSVoOecM09TywCMlNK3e89nO83Ne2zpO3Dmrc ez1n9V6AhBsKkrf2KiGJbRYvWQg9EaVerP3RoorV903bv+JPm1o/f10LDPe6cJztVnws Nc0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mXdoPna6UwAHCfVqKEhKPoXG62AOMhVNlZwB861M0F8=; b=suq7sZ8Qww0QHfsJipekqcbPadTYeS8fty/vyHHL+w1c5oz+tH4jZ2shMA4CYsoVcC 8uQBY9JEjt1OEraE0Ym3xgoQWdsoQx3j7O+HVfV2QGZ1hM+0085kJXlzZ4iCEChtiaRQ KQLwljdviGED6Dyog4huIZG9V6T2BGueciYGIoaQd+M/sBIVzK630eWsCo1ibvAqGdfB +/QyFvCsqekCWVfIy7kDV2g2Da12BzFS4vjVays+6CRbCNHHvvzwOQmNvlsFxwIODnxP aNBLh8woKZdFbv4EyuoQsw0ZHLuG0ouYLsYf8XbdcBidYgyYNuUAfeRLX2DJcLrOXSUV klyw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oRmW925X; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1680182389; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=mXdoPna6UwAHCfVqKEhKPoXG62AOMhVNlZwB861M0F8=; b=b2njHUHBkz1QIrSe3K0QvVQuioXSGsGMWVUYNQMxhfDAayUo/KvGZrJbtXjgpMmXNU vwrNu+rEQxZY/E4KooBCbpDHFHCWtwvbv4FeJZPrAh25yCVkuXrpcqb4KJJwT0q+96Cf pS3aiC03pgSeVzYyI6CgR2341Cka8qbJbyz5E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680182389; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender: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=mXdoPna6UwAHCfVqKEhKPoXG62AOMhVNlZwB861M0F8=; b=rgdx1YxlXQQNvBOksVsFmFrWoKnjc5sq0MKJmLJscLzoab3PKtb5ia5HdbKmPCBDlh PnX6Dz7ugjx/BtY5ZW5JCDDjppRBGcK0yIPC4ad67ITxhwt6gkywvIeSmEwdc4OOzuB7 t+sOLuMMvCG58Q/RYkVHEFt17fLgUs+6UoPC6FbZI4qnWev48Kz7fZ8sMx1dhOWFhImo osVcY7eDgnZLhycXNQSU+BtwZRw/DHZ/is4eyTZSWeqycgBg1+3I9XkCY7XSMS53hS3U /rIsH6LE3NZnjhH1D7sS2xOFONW/hUJ1vpjQ/CRe0rMuU7p+eLclmaEG1Hg6NbSPc+3I gnyg== X-Gm-Message-State: AAQBX9fD6nSjHo0czVvH9aCMYeTPABFmqgASz68oPAz3VfbanjjLEgSL ttdVYi8bwWuCczCHjNVonZniM30z X-Google-Smtp-Source: AKy350Y+EJ9P86X97cAlZuAQSBUZ2j/fBC7qBA9AL51/M/rL/J53OSUrucT1uYtBsU8u/WDGP78BYA== X-Received: by 2002:a17:902:aa0c:b0:1a1:ba37:d079 with SMTP id be12-20020a170902aa0c00b001a1ba37d079mr1941403plb.3.1680182389489; Thu, 30 Mar 2023 06:19:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ac95:b0:199:50f5:6729 with SMTP id h21-20020a170902ac9500b0019950f56729ls1373001plr.11.-pod-prod-gmail; Thu, 30 Mar 2023 06:19:48 -0700 (PDT) X-Received: by 2002:a17:903:228f:b0:1a0:67ef:dc61 with SMTP id b15-20020a170903228f00b001a067efdc61mr28144683plh.17.1680182388404; Thu, 30 Mar 2023 06:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680182388; cv=none; d=google.com; s=arc-20160816; b=KkRxuGJ6rbqB3wR6IjXGVH150b0TIpM7HILZQEPqRZ2gK2Tb83fvBzJsvyxPpENROg XdY4tq3c/n0hXP0ya0oLe7RJjoh1Afx52KjQ0MMAOKSkmC2o3HaG7cOUCZd/3Fq/5+oy DchwcikdNYjJMkf5Yo7J/TDd77TV/PAPOVUPE7AKTJRByqtKSGxUfO0e0MEuZ/OCL03I NCaDxZvf1XkrX7Bytq4Zkmkl/B8S9MO8To2nNO8SlLcT1hWvbsFx0fWsfO1HI5IkDAD3 3fr+ryXidtJVd5R0kUlXrDCuFueDXm5+olEZu//OApPbSiP1prjdRnDlCbdVX7PKzkNv lQ4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sRHEgyUwDyzDOzARH/KbUIOIYBwk/M3j51CvYnIlMgs=; b=g2JjeS/oValimtjghclsEx8euXN9Zfp+ijd4QPTtEc0YnHAHyWJc3VIh4ELEuhoGUT V6Y2lm9e5Zk6nPi233/UY0+py+tXl9btrIhhdviUip9lCj7DP3HV0MGl3xfp+LFkVTK6 r/ttvIm5V6zDRRvtkCkRU/EbIkN/tqdQoZKqbqOGM+BGRl6+dudJ54W8zojBYgid9ily AjlIk/AQ5bCJwBezlSEPSe/N91T/9Bu8tfk18nLoo/4JFZLuGw3VtbQhHqtKsfwMu7S8 hOvEbmnJvcdt3kWCi9Bo/a+DKQAR7QLEpvgwNvlSvkn9ibEH+1VcS1zGgjPJyfGU0KPl iD8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oRmW925X; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ij25-20020a170902ab5900b001a2725b4280sor2341245plb.41.2023.03.30.06.19.48 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 30 Mar 2023 06:19:48 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6a20:8b82:b0:d9:7fcf:1076 with SMTP id m2-20020a056a208b8200b000d97fcf1076mr22802629pzh.25.1680182388082; Thu, 30 Mar 2023 06:19:48 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a047:8bc3:c2fc:8dab:d912]) by smtp.gmail.com with ESMTPSA id e15-20020a62aa0f000000b006259e883ee9sm22473622pff.189.2023.03.30.06.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 06:19:47 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Heiko Stuebner <heiko@sntech.de>, Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: iommu@lists.linux.dev, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-amarula <linux-amarula@amarulasolutions.com>, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH 3/3] arm64: dts: rockchip: Disable device link for RK3328 VOP Date: Thu, 30 Mar 2023 18:47:46 +0530 Message-Id: <20230330131746.1475514-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230330131746.1475514-1-jagan@amarulasolutions.com> References: <20230330131746.1475514-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oRmW925X; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index 6d7a7bf72ac7..7ca83bc844c1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -718,6 +718,7 @@ vop_mmu: iommu@ff373f00 { clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>; clock-names = "aclk", "iface"; #iommu-cells = <0>; + rockchip,disable-device-link-resume; status = "disabled"; };
Rockchip iommu is trying to enable the VOP device at runtime resume however VOP device might enable the iommu during their pm runtime resume operation which indeed leads iommu to use the wrong domain and this leads to VOP iommu page fault. This issue is reproduced if we enable the display in U-Boot however U-Boot is not even touched any iommu register as the U-Boot display uses the simple frame buffer like other Rockchip platforms RK3399, and RK3328 do. rockchip-drm display-subsystem: bound ff370000.vop (ops vop_component_ops) dwhdmi-rockchip ff3c0000.hdmi: supply avdd-0v9 not found, using dummy regulator rk_iommu ff373f00.iommu: Enable stall request timed out, status: 0x00004b dwhdmi-rockchip ff3c0000.hdmi: supply avdd-1v8 not found, using dummy regulator rk_iommu ff373f00.iommu: Disable paging request timed out, status: 0x00004b dwhdmi-rockchip ff3c0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (inno_dw_hdmi_phy2) dwhdmi-rockchip ff3c0000.hdmi: registered DesignWare HDMI I2C bus driver rockchip-drm display-subsystem: bound ff3c0000.hdmi (ops dw_hdmi_rockchip_ops) [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 0 So, prevent this by enabling rockchip,disable-device-link-resume in VOP node so that VOP enablement for that iommu domain ignored during the rk_iommu_resume call as it assumes it handled iommu device attachment in the VOP itself. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 1 + 1 file changed, 1 insertion(+)