Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1377169pxb; Thu, 28 Jan 2021 15:11:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWa140D/ZyRWfEMmlii1zLsdMq/yQ7fnzTSNZZBoD0gjc4U4ziN1+LbCKJGxIQLKDufMIo X-Received: by 2002:a17:906:b759:: with SMTP id fx25mr1742413ejb.161.1611875462683; Thu, 28 Jan 2021 15:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611875462; cv=none; d=google.com; s=arc-20160816; b=u+CvYM1goCQHW5FQ0bDFRUsfitvVZp/R/AkFrFAgA137ItXaZk/VuWxjTX+h28oPfo W1iluoPReejuO2xz9ufc7IBC3UetO/zvzpW+vU7HxhbauBLATPcSiQm1XwvdRHa+2QnD Av58rwOdz85Sqi/pt8pZJtNf+lgAOvce/rAyQ7ZnlM5Wyl+I2Fc9Yml94FuQMsDCr5Uy gljOzSMoXzFhNZ6fds4pj+6IupK45dnztmN3RyyTTKrFXcFAGUJ3pXK4rWWeCXCuH6uV Zbdzds/VuXmTVNol+fXKmSz02wM1M6FpP5B/TYLLNRd33Hu3MUkqYm5HMG9mxTSi5iyM /QCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=O8kFXrZt93Vjk8mo2c8C6NAXhyoA4VuHGdA2XbbyiBY=; b=IjoC/EEQMP3vqVkqd74LCQDnWmS+0d4wG2iKMlJezXyow/HxsJUE2wxUjZg1x2EX5N eC/2vXXCuOvZSUHyvlPI+PcMpDZxSSkmfAq+LH32ov6gNNyEafg7F7QKBKQq72u/4omZ 0I+5bXiZvend4N+1hc16sBuqubVdvqjGBlbkUEkLQ1jAyEyo/JRJGcXA7zGaFyfe9Ndw Wsmv7WbUoWlDkWDrHYwRaVHEgHX/Nwqfgde/0TakktqNmc2YBKPJqyIIqJMSxfTDmb0J AuSHeM5LBuBE7kR6ghDCX4nj8GuvPErd8w8D6mo6TRtTaynCWZTUGXMqWj3/m8v/m9yS W/Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=MhhOzyzA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si3969922ejb.197.2021.01.28.15.10.38; Thu, 28 Jan 2021 15:11:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=MhhOzyzA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231509AbhA1XJg (ORCPT + 99 others); Thu, 28 Jan 2021 18:09:36 -0500 Received: from a1.mail.mailgun.net ([198.61.254.60]:19751 "EHLO a1.mail.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231533AbhA1XJd (ORCPT ); Thu, 28 Jan 2021 18:09:33 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1611875349; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=O8kFXrZt93Vjk8mo2c8C6NAXhyoA4VuHGdA2XbbyiBY=; b=MhhOzyzAuVadQmnjh7wV8Uc+FFbIkz0lh+tsNJwggUt32CeJDYwehbPnrMwJilBHW43vKuZF kHHJ3aQXFVWOr6qEYL8PIk/k2e/qo4mHfxci7Ku5Aug3iXxIg/27Zu7Sx5LpCeNqsqmPHy1I 9RaB5aELFz8GiZIHHKINjX0YQiQ= X-Mailgun-Sending-Ip: 198.61.254.60 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 601343f8bcde412162da6a39 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 28 Jan 2021 23:08:40 GMT Sender: wcheng=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 97D82C43461; Thu, 28 Jan 2021 23:08:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [10.110.127.29] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wcheng) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2A11AC433C6; Thu, 28 Jan 2021 23:08:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2A11AC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=wcheng@codeaurora.org Subject: Re: [PATCH v6 3/4] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements To: Bjorn Andersson Cc: balbi@kernel.org, gregkh@linuxfoundation.org, robh+dt@kernel.org, agross@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, peter.chen@nxp.com, jackp@codeaurora.org References: <1611288100-31118-1-git-send-email-wcheng@codeaurora.org> <1611288100-31118-4-git-send-email-wcheng@codeaurora.org> <724cb274-36ce-fb48-a156-4eaf9e686fdf@codeaurora.org> <20210126015543.GB1241218@yoga> <99dd9419-a8fd-9eb2-9582-d24f865ecf70@codeaurora.org> From: Wesley Cheng Message-ID: Date: Thu, 28 Jan 2021 15:08:37 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/25/2021 9:15 PM, Bjorn Andersson wrote: > On Mon 25 Jan 22:32 CST 2021, Wesley Cheng wrote: >> On 1/25/2021 5:55 PM, Bjorn Andersson wrote: >>> On Mon 25 Jan 19:14 CST 2021, Wesley Cheng wrote: >>> >>>> >>>> >>>> On 1/22/2021 9:12 AM, Bjorn Andersson wrote: >>>>> On Thu 21 Jan 22:01 CST 2021, Wesley Cheng wrote: >>>>> >>>> >>>> Hi Bjorn, >>>>> >>>>> Under what circumstances should we specify this? And in particular are >>>>> there scenarios (in the Qualcomm platforms) where this must not be set? >>>>> The TXFIFO dynamic allocation is actually a feature within the DWC3 >>>> controller, and isn't specifically for QCOM based platforms. It won't >>>> do any harm functionally if this flag is not set, as this is meant for >>>> enhancing performance/bandwidth. >>>> >>>>> In particular, the composition can be changed in runtime, so should we >>>>> set this for all Qualcomm platforms? >>>>> >>>> Ideally yes, if we want to increase bandwith for situations where SS >>>> endpoint bursting is set to a higher value. >>>> >>>>> And if that's the case, can we not just set it from the qcom driver? >>>>> >>>> Since this is a common DWC3 core feature, I think it would make more >>>> sense to have it in DWC3 core instead of a vendor's DWC3 glue driver. >>>> >>> >>> I don't have any objections to implementing it in the core driver, but >>> my question is can we just skip the DT binding and just enable it from >>> the vendor driver? >>> >>> Regards, >>> Bjorn >>> >> >> Hi Bjorn, >> >> I see. I think there are some designs which don't have a DWC3 glue >> driver, so assuming there may be other platforms using this, there may >> not always be a vendor driver to set this. >> > > You mean that there are implementations of dwc3 without an associated > glue driver that haven't yet realized that they need this feature? > > I would suggest then that we implement the core code necessary, we > enable it from the Qualcomm glue layer and when someone realize that > they need this without a glue driver it's going to be trivial to add the > DT binding. >> > The alternative is that we're lugging around a requirement to specify > this property in all past, present and future Qualcomm dts files - and > then we'll need to hard code it for ACPI anyways. > Hi Bjorn, Can we utilize the of_add_property() call to add the "tx-fifo-resize" property from the dwc3_qcom_register_core() API? That way at least the above concern would be addressed. I'm not too familiar with the ACPI design, but I do see that the dwc3-qcom does have an array carrying some DWC3 core properties. Looks like we can add the tx-fifo-resize property here too. static const struct property_entry dwc3_qcom_acpi_properties[] = { PROPERTY_ENTRY_STRING("dr_mode", "host"), {} }; Thanks Wesley Cheng > Regards, > Bjorn > -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project