From mboxrd@z Thu Jan 1 00:00:00 1970 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 E01A8E95A99 for ; Mon, 9 Oct 2023 13:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QZfpo8XcjAX/tikkmYGihtVYUsuCMunId3Z9eZKEP9g=; b=rmC5VF19SZhFV1 HdUwcO6xsfTjOVur52sPN8a6njvZcqH9nYd4qNLyfv+NKcr4jUq0elJqPRdSccsvz2tEip+ArkQeK HumjVz0KTtQfW+1WZNwxBphCPaEtCj4zK+QjEuXn9XnHkC0zOZvnr1+KGkZMg84SATLQJhYxAVSZ7 oZXEyWuPFZhJmmjNHEtVsALRy3aQA68BbZFP48qIkoHCMHqeKkK1NxHBZhL3g5ypSqHFxUM8ZIbHJ gEcYsmHvR4B2YoxUuEPYymslnLVe8qIl2Qggbk9uo4N3sP0c+FY9n2vcGjEzGhFM4ix5x4zHSsiGl SzTQf5VSXNOu+4/ysafA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qpqG0-00AnlW-1K; Mon, 09 Oct 2023 13:25:12 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qpqFw-00Anl3-01 for linux-arm-kernel@lists.infradead.org; Mon, 09 Oct 2023 13:25:09 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 9D727B80E15; Mon, 9 Oct 2023 13:25:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF059C433CB; Mon, 9 Oct 2023 13:25:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696857906; bh=Z6eqqE3jHcCQCoAk0iVQ+k59tYwfIx9uCwy4N9r4o0g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b+eN7QGEqBqyeYp1jqsSW5+PiQNJQFkRelMQ/0ODCc+7mY77gT6u+Mz2+0anJDzgG d7J4l14NnH+HUgxRXt2UlPSMMsB/vPEfPmcf6okO1Z8titMoaZwmnfclvVtjVfd/js Lw4P29oED6p8HpJIzgG6/+VeLXC5XdEP+VJfjJeBeJI05bBTgPAhK5gYsq8CFCTD/C VdqtIrGdpaKKZZ4dyktzXfVB/ZrY74OO2qXWYYe5FxI7ex4eWDXlqFyJ2V972nXXLA vJ1VHq1foWWIDybuUS/adMOaGe3d6/KEnRC7ypdvFmjDOBROhlq5+HkhxnDrAsEA6e /FoMIRJ9RVlow== Date: Mon, 9 Oct 2023 21:24:55 +0800 From: Shawn Guo To: Laurentiu Tudor Cc: 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 Subject: Re: [PATCH v3] arm64: dts: ls208xa: use a pseudo-bus to constrain usb dma size Message-ID: <20231009132455.GE733979@dragon> References: <20230925151015.4449-1-laurentiu.tudor@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230925151015.4449-1-laurentiu.tudor@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231009_062508_195373_FE003E50 X-CRM114-Status: GOOD ( 10.39 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Sep 25, 2023 at 06:10:15PM +0300, 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 Applied, thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel