Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1893365rdb; Mon, 9 Oct 2023 06:25:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHd9eS/H+B3J0ONFmQFC1CaIdf6N0gyEdGJNrVSaGx4AaZOsO20AKTBDBX8HCus1UbJb8ge X-Received: by 2002:a17:902:8649:b0:1b8:ae24:c207 with SMTP id y9-20020a170902864900b001b8ae24c207mr10597011plt.68.1696857945170; Mon, 09 Oct 2023 06:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696857945; cv=none; d=google.com; s=arc-20160816; b=bMrSoAcLfVxJQC7BiaJ4/PKP/DeEhJl6CGSG7572mAbjJYBX3qXPfLNwYRa+5ol253 EUjvw9PjZXEaPD6M4lx0iL7+J1gvdQkMSCPZWZATnEV7b5OrlptY9BIGf62PQaRSJCkv Su875yJeHgXr6LmpVIHKNfpVGsBJk3YBkBy68wln8ijnk+54mij7RuMAFaj1NpmTvnL5 lvlLNmaxuWUXWheAPOsONT88Ecqibs9oQRqQnKeKVeH3AK6S2OgHIw7x3yfG8p0dRcRx Hh5AzJydvUzQS+VnuRU30W/O6uuCBPhm+81v7K3nyToSnbmKbAhW9UUDvPPL9UgAl4Dz 21aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V/ULTRfy67MZSUH3XSBF0n6uGa9nPvx3x0QnunaHNUs=; fh=sdHQQFodgnc1sJy+E71+dvz4y7+vJE7gqD8knrGqV8w=; b=CvmheVkHRuty7OP2p+M+5YlSEUpbFKQrOrr1Dux6fP6lme1b3F68CkI0VYFLY4o5C7 tS1jDmjxzqyjQ09gQMKZWDqlo6aXQQq/urk6cOAS5KL45wDemvenbyIcZydzoISfNXxD RhJbaB8sbYCBAw90bjLUcS1Pdhw2xG84DD4JicR/ilZU24yI8sVJLockPNhxXCB5YmuO aFtHmvenQdnwjJf+tfMCAugkcno6bzLPAP9mE+djXK86vRJd19hAddI9/Ex1fn7r9uC/ IWUAWu2LMSihOnKcClyz8a6ldcZJl97In2IAKmBWMaFe9gQrE7N2I7H0wgG6jgJKEA60 wdag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b+eN7QGE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id kf8-20020a17090305c800b001c62acfa473si9176474plb.62.2023.10.09.06.25.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 06:25:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b+eN7QGE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2948E8074684; Mon, 9 Oct 2023 06:25:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376537AbjJINZI (ORCPT + 99 others); Mon, 9 Oct 2023 09:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376522AbjJINZH (ORCPT ); Mon, 9 Oct 2023 09:25:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B7F0A3 for ; Mon, 9 Oct 2023 06:25:06 -0700 (PDT) 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230925151015.4449-1-laurentiu.tudor@nxp.com> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Mon, 09 Oct 2023 06:25:23 -0700 (PDT) X-Spam-Level: ** 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!