Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4296252rdb; Thu, 14 Sep 2023 19:25:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMtXOJii9BbZTUP9gcRRdCW5plNvCxFFMJVO9lD6toSaKa19MfGHN7G+yoaLI+n+52NGBt X-Received: by 2002:a05:6a20:8f0c:b0:14c:383b:294a with SMTP id b12-20020a056a208f0c00b0014c383b294amr682149pzk.5.1694744717731; Thu, 14 Sep 2023 19:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694744717; cv=none; d=google.com; s=arc-20160816; b=aUbUu0AiyzNucAUIApgwJZmTWnDjSHMTo1i0/WZJfN+vBqpS1go+FlPIOKlwl3ncK1 6uo9FynbICx369LZJYdxEV6u56cHjrJKUukqxo0t1jAygOk/SCqlI6sP8uep0h7hC0cF HghatEt219HiR2IZfV1Q01e55NrdaymnxZexw3r7K6gw67DiOTye9Cdsb82Rg9BWaHIk ce89vjLcT0R8z0nncCVJb4/rS5+/Qao67pxc8t/z2GiHgx9tyJo2PBT2p6RBrtq4YQLe TxikTA3+sH3SRsflQsYNcEmjA4S5pUSkrHPLyPiQQxe3rZY6YnjveBQGg2tDmbr/SDQS b2Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=2Y1+S4YPUZHV6bEDYOM6jByjByZjivqS16bGhRJtub4=; fh=0Ap6ANWLIAQLKFp7fjUWiZvlc1Y1GPFBi9e3WOcoBT4=; b=Qk9Z5VvUqQTJCDhghHk+P79+c4ngtkyBtcjQd/IbsnND9za0JJZlGAQA9UdjFvgS1j aZllOjQckqvj/JkFll1rpCBCnFbHsNTZMv8H5zSAAggUoAz7swRtwts/qagAkWwQyzUa 1cA7GuhlDtnN4WRzespGfVtOIWMObItAJw6/+tShn1d9u3FcjwKB6102nTso+iDCv+JC y6l6eSmv6JMUQbncLeZPmzBAgNV5iXUZpKnxzTcNtLdF6zUDOLGO2UooUmGLnUVLJn3m QdBn6cSXxNuyc6Zu+K8WJpFWKY3FOYVuvQ+m8itLDXM099r+PU2vvzn4naFp06xtpy8Y 5huw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yib7Uw7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id nv7-20020a17090b1b4700b0026b31ed4895si5228353pjb.29.2023.09.14.19.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 19:25:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yib7Uw7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A69E881CEB12; Thu, 14 Sep 2023 08:47:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241204AbjINPr3 (ORCPT + 99 others); Thu, 14 Sep 2023 11:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241197AbjINPr1 (ORCPT ); Thu, 14 Sep 2023 11:47:27 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2695DE0 for ; Thu, 14 Sep 2023 08:47:23 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-402d0eda361so12470065e9.0 for ; Thu, 14 Sep 2023 08:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694706441; x=1695311241; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=2Y1+S4YPUZHV6bEDYOM6jByjByZjivqS16bGhRJtub4=; b=Yib7Uw7qTmLuP3MPrOqEXKVfWJZMSh5TlU5g//mn/wq2N7dI4BNGXHizZUtM+JuuPI ui5J5NByMIHbOWf0kj87XCmOU0lpIQMte8gf8B8+S1eMW0+r9yxWuIWH4XUvtbWQN30D Bqd7NP1pKNAol+pvcd/tVpN27T5bnTfOHcQDbyXPQdm1bM/qLlqLrE/vMEFBOiAh6B9c 82w48p7gnKE89anaDJ+GADDrMqwCttGZPKQ3S2b2fjAw2xrdoJ0LNwfrf+IKrmMwZUd8 gmVLhOju+eit3O/3l3Op/cJUeAwyw2FF/3zAx+HOULQFLTCXfzdhJsDXg2VJeoDjjdk6 DaXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694706441; x=1695311241; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2Y1+S4YPUZHV6bEDYOM6jByjByZjivqS16bGhRJtub4=; b=XG7CttFfrJdgk3opUfTCu0wTu+1kbLlsodEI78l3b5ON9pZDiSLmTEvTNpx85Q8rym ge9e8brBgoJmKpY3WBPOIlKGz9Kakb0661gN1PcYcUEeQAWfrlRkLR/avtmpxC+apx98 jBxmnVfDlUhBnWO2PnVNE5cbzyGZlDp/y1eGylgP9zf3TLqUsZ2/gf9fFJmjBCfPNfQs 9y0xMqwDf8vECdDpDla5PMsynL3/1bJFsrzJ4uqGqe7vY3ss+VIyjO4v7LouFxcsflt0 gKu07kUR98czVtUl/1lPaPg/cFiRK0P0F2LEzCT1YmBYbXiUXuBzw2Ua+K1gLH3iGL2q h9hg== X-Gm-Message-State: AOJu0Yx39sJPynC5vIlmhWA4x/4z6xpu/JndWIDpC9a2A5IxYtJrPuIa vWfKUKku/k9Zkj7cE+hTh9/cSD1w1UAQic0iZ2A= X-Received: by 2002:a5d:61c4:0:b0:313:e971:53af with SMTP id q4-20020a5d61c4000000b00313e97153afmr5290417wrv.32.1694706441479; Thu, 14 Sep 2023 08:47:21 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id x2-20020adfec02000000b003179d7ed4f3sm2055514wrn.12.2023.09.14.08.47.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Sep 2023 08:47:20 -0700 (PDT) Message-ID: <1ae7f23c-af9d-8ac6-49fd-46b607de971c@linaro.org> Date: Thu, 14 Sep 2023 17:47:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH] arm64: dts: ls208xa: use a pseudo-bus to constrain usb dma size Content-Language: en-US To: Laurentiu Tudor , shawnguo@kernel.org, leoyang.li@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230914145652.25728-1-laurentiu.tudor@nxp.com> From: Krzysztof Kozlowski In-Reply-To: <20230914145652.25728-1-laurentiu.tudor@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 08:47:36 -0700 (PDT) On 14/09/2023 16:56, Laurentiu Tudor wrote: > Wrap the usb controllers in an intermediate simple-bus and use it to > constrain the dma address size of these usb controllers to the 40b > that they generate toward the interconnect. This is required because > the SoC uses 48b address sizes and this mismatch would lead to smmu > context faults [1] because the usb generates 40b addresses while the > smmu page tables are populated with 48b wide addresses. > > [1] > xhci-hcd xhci-hcd.0.auto: xHCI Host Controller > xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 > xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x0000000002000010 > xhci-hcd xhci-hcd.0.auto: irq 108, io mem 0x03100000 > xhci-hcd xhci-hcd.0.auto: xHCI Host Controller > xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 > xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed > arm-smmu 5000000.iommu: Unhandled context fault: fsr=0x402, iova=0xffffffb000, fsynr=0x0, cbfrsynra=0xc01, cb=3 > > Signed-off-by: Laurentiu Tudor > --- > .../arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 46 +++++++++++-------- > 1 file changed, 27 insertions(+), 19 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > index d2f5345d0560..47cc7699ca16 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > @@ -1186,26 +1186,34 @@ > dma-coherent; > }; > > - usb0: usb@3100000 { > - status = "disabled"; > - compatible = "snps,dwc3"; > - reg = <0x0 0x3100000 0x0 0x10000>; > - interrupts = <0 80 0x4>; /* Level high type */ > - dr_mode = "host"; > - snps,quirk-frame-length-adjustment = <0x20>; > - snps,dis_rxdet_inp3_quirk; > - snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > - }; > + aux_bus: aux_bus { No underscores in node names. The node name should be anyway generic, so just "bus". Best regards, Krzysztof