Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794367804; b=aO0kjpjAy9hHaXMzp878hLaNHpUxFbqcYBIapFG/EDG1VNMKagKrmJJkjA2RqtDj/CP1 4f9/XN2F7gmw7OZ9Ej5YpHkPsvU2oXuMpnGB8Rcj0TsPqUZSIp68exPakZZpiGltOTMJS AcOMU9IcpRwXy1VCk/u7XkPkpQMrVWDe53hE4h6k9WmVclS4y/D+4Tfk4CXy4LXtG+ve2 P2xuAz6l8BLaH0Ip5GeUuoVXp54MuYqWOC4YKfX16dey+gyE+LFBh8eidv0Djx9KjxcdU 1vSTiXtIs6RT79ED8GlFShw+LQSIfkB9+nlHTCOEwKjlC44ECsZTXF8wb/lkyOI5FzA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794367804; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Date:From: To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Authority-Analysis:X-Proofpoint-Spam-Info: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=YdUMTqtAOkvENFK918Fy2pUtYQjevISfmJKm9P9R3QQ=; b=t0hadclsfh/OuACtADpIPdJ6BxygmiwkJyEXBRZrysTqsxytTwbEjtis1av2yfa3qah4 YOmVUihYTF67ZQeVtlG+Hz8ZeoiZaF635n34KlSRPQQARYXlX8cfBsm7t7XnjkU6hVv78 MXAOk9jLIGGcmTLDfrRZp7M0HNMRR4/eRgrTm9DVbgRsccMH6Vv6wEpt0xGIUJKXvj2PC lxAV14tEyhQLx9IsI7/0TxuqDE0SZqv/RSZa6ND+RrAORgOgMt8RHldInL41Cccack04f phinEOpSz5XlEKS+rA72pO8NBw928co7vbEt1mz1TERZTkp25mMuft8gRkZHC3WUr2A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=S0dENm35; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CO+Sinvf; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87885606A326 for ; Wed, 11 Nov 2026 03:30:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 87885606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=S0dENm35; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CO+Sinvf Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AB1sv7v1905176 for ; Wed, 11 Nov 2026 03:30:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= YdUMTqtAOkvENFK918Fy2pUtYQjevISfmJKm9P9R3QQ=; b=S0dENm35vTOYdDml DA8NOGLL7NNluA57GO/shSH2ZjZuuhdstH/Wfzlc2TTT71LSEc6okcAB/W62hdJ6 EP7mdyD1cGW5V/r+qSbiVhCCfYQVeQObVQu4SGhI+OyOVUlBTexHaErVGTsY/Z4L hxN+sTVp8RZ6CpqnlOSDjhwrXP59xFUORRlxxC07McgIRfnnRQCVgh50bhMYzL3d zTijKjet9rysQ8NJhzOauTxJp+7TXJHIsG8tOMPSXA8EmnY+F23XwRNLM5Wmtss3 Ow+zuZygRIQoM218cnBIkU+3ekLPbyX8Wr6kuxWETVap+l0BvN9kEVvEfFHtT1+M gab8ug== Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hvdnp0kmf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 11 Nov 2026 03:30:03 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-341eff9e381so5812398eec.1 for ; Tue, 10 Nov 2026 19:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1794367803; x=1794972603; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=YdUMTqtAOkvENFK918Fy2pUtYQjevISfmJKm9P9R3QQ=; b=CO+SinvfJALCATS8spBnR87zErErm9mljgdyLprsaHnkIEZePMcZ9JvzopcnRsqCAs Zh/ASIitx6rR2+4tZnb+4PejGwbXH4EhG2OFjcUj3/+PJT/N+eyE/a9ITBUb5gTdDdOm sgr2od1tvq9h3DKyU0utz1Shiy2dz5plfr82Ptl4IjJ/s4qbHR4zvIz2gVya5tJ3Qvy4 8vC69nmGVlr7Hn/ov+UVA65NVmCCc5G4oUDUmoWscROmBJBFiOp3m7UV9c2jgNOdgTbV m1AA6tjx5jz3O7eg50QeHS9ytjETR7Uuq9lGcuQ7jTnec+6g7vTalVJiUkVqrUZTS45Y Rttw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794367803; x=1794972603; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=YdUMTqtAOkvENFK918Fy2pUtYQjevISfmJKm9P9R3QQ=; b=IlC7gbwkjuTwTsiWedLYSHBfyvujFBgxIazg3rZ1y0KsZzG+UNcVRSltLxEHPvUttE dQzkChaUeZ4xW+l5oEjr/VcwD2FJY+Ipnmrx+1Vr8CTIVALU9FLZ67X32E+PgUdLyztz 8XdceZDARBC8M0aeWwnlRS6Yo+6umXJjHH6IM34zUaxmWi/gYRUMgyTEWcPyjgdcet/g 16zPatsLUQ3Ojl40hAWJHg0TJgt9cWY8C6AIANf8OvV5YPdYEs3sQ6gafy1lx+cP6QcX 8z+TvsHjiX+T38YUxqxgocC8V6BcdKXpdPIDETfHAzCBwIFx0RId9dN/Q7c+0mUec8ut vyTQ== X-Forwarded-Encrypted: i=1; AL+hErGOcg18ocNroHh1FgURQ2zif4Bwmuot21dMGkjJJR4P8A9HcrHHRbHC/jnUpQAZXJDXUDITsK1EKI4xqOjx@vger.kernel.org X-Gm-Message-State: APuU4Z/T4W5TlryJMzqfhDvmAVI803BuV2R3Z2tq7DK2gxIA/wg+MYxk 7NXjKBV5O+SPyG4JFFashAu1wBlHArXB4jn76QtJZuAg06/UuSg1BL9ufKHfoD76bkrmlb8th5R i/S3xT7OkNG8cyEclEyCCfiwGjXp2wi3NKoIIyKm5Pp3LNJapxci+ZZd77oe/hQkbZEUi X-Gm-Gg: AYBFou1yXWknnTRlROuLu+rW6ophFrd9y7o4xxldCbyuA05SNlSvSd27JuewKoke7cy Ym67nPvgqliv0NN+F1JcoGnHkxvsOZDMtRxzHkhj1Nloh3c5nARpuii0caT+hgcP22A1EI287yJ x98GziLc2yWJYA1qt/ON90LqiFKu5gNGaSPtZsU17H+7UdJCOZpVViW/K8V3eGQ54EQwvW8ju9q LCQSh27SKEGrVVgX+AzUxUriZc8XlRdCXgfQqXRLPYiOfUzgW1pxyMPgo8UqdT6wvZab5/u62G2 M/g8xhmV+fS+i0ei90dR8Erh9XgnK0/I36Lu6e4aniMAaBwW1LaXVHG6E/ZFMd/DL/y7ZMajYgT RxUUsq96pdvvgrwmwIJMTsMmd2qwW/vAxVCc2vd/yleVZRwzi+4pfuJL3uTaXLEZncGTMp9awdD MfLSVsJmyoWwWck+22UTUE9Q== X-Received: by 2002:a05:693c:8942:10b0:36b:f09f:924a with SMTP id 5a478bee46e88-3768617abeamr1782645eec.14.1794367802885; Tue, 10 Nov 2026 19:30:02 -0800 (PST) X-Received: by 2002:a05:693c:8942:10b0:36b:f09f:924a with SMTP id 5a478bee46e88-3768617abeamr1782624eec.14.1794367802272; Tue, 10 Nov 2026 19:30:02 -0800 (PST) Received: from hu-petche-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-375212e9e03sm23040256eec.23.2026.11.10.19.30.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2026 19:30:01 -0800 (PST) Date: Tue, 10 Nov 2026 19:29:59 -0800 From: Peter Chen To: Akash Kumar Cc: Greg Kroah-Hartman , Bjorn Andersson , Konrad Dybcio , Rob Herring , Dmitry Baryshkov , Krzysztof Kozlowski , Conor Dooley , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2] usb: dwc3: Update nominal max votes for qcom usb Message-ID: References: <20261105100626.2003771-1-akash.kumar@oss.qualcomm.com> X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTExMDAxMyBTYWx0ZWRfXyfmwHcZds+87 JY/qo9KFLGfEkWMHlYcAFZjFvkLttzp+Fe9dQ0blKR6Y4Wd5RvOLaQCfdFYToLHEx/MHwE9Boud wa2yfbAsMWlYtXUjycL/5iD4vuUKJQyLxaFlMzTfeZBK3kAh2m5LeWIFcIjkqKOHm8+dWhD/xfd PwQg6ALxCZSFpG/qMOpWQZ9bg/Bm5T+pKYE0Xt21L+4IDidL56s2uKHy44ZPFOq1A+dt6+1J1D+ HuUzbsU0RS2idQW8OKlJFNlddv3WGbtK/7fifwCpyRBESw5n/QwKkwSAXVcQB6WNyF5iKlcA697 TG/t/YnKmPvfW3Dx4yjgiD+yfmDL7NLhFt9PevQ6vP3mMimNMo+5YdmLt7rZ3KHVzbD5aDpMQji rrGmEBuFYBNN6KNgbEsMCe9GuGM6tqaEyDY6Rev0v6pLbnuAIq0sM+jrvHykbWqAdIZCmhRgOfY Ims2g+UHs5D2k48POag== X-Proofpoint-GUID: KXEI0tw8shpc3zTdqSOSJMvJn8v0UcaO X-Proofpoint-ORIG-GUID: KXEI0tw8shpc3zTdqSOSJMvJn8v0UcaO X-Authority-Analysis: v=2.4 cv=NK1AaE6g c=1 sm=1 tr=0 ts=6af3e13b cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=kQgC6_mu_KQiaI9rv0QA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTExMDAxMyBTYWx0ZWRfX5qraB+39KBBN 09IeV72igx2byHAkSXmF9Vb56IhQA/Q3fWr3jX+f8v9YMTgZVwv7W8sxvcvP+9VxQuP84scPegt Ud0Okxuq+LTDcu/hpQLcLzUBMtBsHtY= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-11_01,2026-11-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 priorityscore=1501 impostorscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611110013 On 26-11-10 18:11:31, Akash Kumar wrote: > > On 09-11-2026 14:30, Peter Chen wrote: > > On 26-11-05 15:32:16, Akash Kumar wrote: > > > Increase the nominal max USB memory bandwidth vote to let DDR scale > > > higher within its nominal corner, fixing glitches seen during > > > simultaneous USB audio use cases. > > > > > > USB_MEMORY_PEAK_SS_BW is raised from 2500 MB/s to 4500 MB/s (+2000 > > > MB/s, ~1.8x). This ICC vote does not by itself determine DDR > > > frequency; the vote-to-frequency mapping is platform-specific and > > > comes from each target's interconnect/OPP table. On the tested > > > targets, the old vote kept DDR pinned at 1 GHz within the nominal > > > corner, even though DDR can run at 1.5 GHz (+50%) within the same > > > corner. At 1 GHz, glitches were observed during multiple concurrent > > > USB audio use cases. > > How we decide which value is suitable, eg, you set 4500 here? > > If DDR can run higher, and we have more stress test case like UAS > > transfer + UVC transfer, do we need this value to be higher? > > > > Is it okay we just set the highest value for USB, there is a platform > > OPP table, and we let ICC choose the highest value for USB at specific > > platform? > > > > Peter > > > Hi Peter, > > 4500 MB/s was arrived at empirically, not computed: we swept the peak SS > vote on each tested target and read back the committed DDR frequency. > 2500 MB/s capped every target at 1 GHz; 4500 MB/s is the smallest common > vote that reliably crosses into the 1.5 GHz nominal step on all of > them without pushing any target into the next corner above nominal. > 1.5 GHz is also the DDR frequency our power team's KPI bandwidth table > accepts as nominal, so this vote keeps us inside the power budget they've > signed off on, not just inside a technically-valid corner. > > We've additionally run isochronous endpoint use cases with this change — > mobile platform passes the full MJPEG test suite at this vote with no regressions. > We've also verified UAC+UVC concurrently: for that combination, > DDR is bumped at runtime on demand by the userspace application > rather than relying on this static floor vote alone. > > That's also why we didn't just vote the platform max and let ICC pick: > not every USB use case needs or should force DDR to its ceiling. > If we voted max unconditionally for all USB activity, DDR would sit > pinned at the highest corner any time a SS device is attached, which shows up > directly as a regression on the power dashboard across every platform using > this shared driver. The static vote here is sized for the common case; > use cases that genuinely need more (like UAC+UVC) bump DDR explicitly at > runtime instead of paying that cost unconditionally. > > In Future, we have a plan to make it configurable from device tree which can > be done based on target. > Akash, thanks for detail explanation. I had not considered power consumption affect. So, we set a default value for balance performance and power at most platforms, in future, we could configure it through device tree or use space according to scenario. -- Thanks, Peter Chen