Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp400064rdb; Tue, 19 Dec 2023 23:39:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxlACC46aGQeHh5lHnslakH4pmW8ffVJuYWs8PGFtkyGfNCh5pgSYPygqqNd9ZtH7cb7F4 X-Received: by 2002:a05:6358:e4a9:b0:173:98c:c2dd with SMTP id by41-20020a056358e4a900b00173098cc2ddmr409929rwb.10.1703057941699; Tue, 19 Dec 2023 23:39:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703057941; cv=none; d=google.com; s=arc-20160816; b=fqJ467hDylZyfqqTiDcGLi5qevvz5tq8gLep+AI1I3bAfIpWG/4mYmPjUpUse0zx// dlgLX2jEjAoh/2vxyhU+6KLCQHDMcKTkSXuVm1AK+MHI/vLicbsSMFy0CQaJK52G+igN ePEipJuVYkBJyT5PkFuZYOosrYeijon3g/Fl+iVjWGG0aM2pAGMVsYkvrIFdKHvEKTks MbUQL0DO/lqAgWT9kKyHF7V17QRLFF4QP4eXKO7CTor82Gj3P7Nnq7Lm/sma1pNAUz3Z X9E3BIV40CC9THRkjD91bugPuVSPD8B/6CRhfdAzTQWJ6L01rWvwl6hSRHgA7X+98gCo OGAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=A978Jx+3VSg0AMdmNaimG6rYzex+t/4lm9ZuWKtTMP8=; fh=vHK55e0TbmcwFUVqYmsqs2kGx4uP8S3eekMI2S4+xMY=; b=VtHYGzOMefDhd+kj9HaNYUozj20g/GgqZ2UGZJCQKlS63PgJiUGsRWZB8Wp57f70Uu 3Ls1UsdKwNhk0GLZTO/oJ0ipvwh35xjMgT0Qg6xN3c46ml0REFgAQE39/pTFlxrFM8c9 XJyfkuLCCfnZZcXsHgb62Nsw1L5XEkiF6gbfFSz1GEXoYkxdYJkNxVFAeFEAbDrIsCf6 spcHre+2a3gHWJsvENg84aSFpxEryqOKdkeXfaGJ689rHQRQyzQI60zAOTJNqVIjXLmD X0r0lxcza8aCCBAQrzSkZzI8/w4hwYhWti1A7rxvo7CO5agbD+PgfMkFgkLw1tOBrs4E O/fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MHceU14J; spf=pass (google.com: domain of linux-kernel+bounces-6497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bx2-20020a056a02050200b005bdf59618e3si1159872pgb.497.2023.12.19.23.39.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 23:39:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MHceU14J; spf=pass (google.com: domain of linux-kernel+bounces-6497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F1B25B23CDD for ; Wed, 20 Dec 2023 07:38:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA8BE171B5; Wed, 20 Dec 2023 07:38:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MHceU14J" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 392601A5B3 for ; Wed, 20 Dec 2023 07:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3367a304091so386855f8f.3 for ; Tue, 19 Dec 2023 23:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703057889; x=1703662689; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=A978Jx+3VSg0AMdmNaimG6rYzex+t/4lm9ZuWKtTMP8=; b=MHceU14JKA9tmcuaysRp/pzJw/TwydNrLfDmF/riSpS2HOLm93G4mpLjIRX41BmcQ3 3vBvEXYtfLaL8saJ2DMDWHs+FiT79hiUYgY9VTsnb1FWStL7GS4SUEhxuhxNRgPiy1ks x9IsCp5KJT1D/GEVzHShw+jRvCGxgrDzCBcnvexaQijm7UNBEdGi/9troY6k1yjdE/Yo 81P9mMPuRQ9x/7MdSSKFDIG7x7UWLGv+VCfKEOhz952cVvl3fIB3Bwv97kg3NdS1+Tp4 hRUvIw5Ud6Q/2AMg8mBCnqWWlLGkVq/VJjtMa/aHizVo/zlrFluFrcjSaVO128BgBnzI 3N7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703057889; x=1703662689; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :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=A978Jx+3VSg0AMdmNaimG6rYzex+t/4lm9ZuWKtTMP8=; b=rTAHnofSzkXeGxMrYPxp4OJX3BnEcVpscvNK2LkFF87HfHZ5ufX2YqCJPcijeQZR6r 0xZHVY4gpEtlGDzYkmXxZ7ezsyZqUAVJYg7LD8qLLpmEjpUK3IbXgtCNWZoQsQTgP0TT mbwMfIIHfzrzcvoY7seA77CuNzDat18IejXxT9mNgP/bxFY+1HtpglzDOx2YoGeRyhN1 Drho+mTR4xhI7A4rkrYWrkEKHUelX/5nV6W1y7yU3pJ/Okd9jja+4x27Nj9o3M6Wztmh NaN/cYhZumoFzg6zYP9rIPO4+s2bPTxZiiHrFpY3jo+qhw7+DmvoAT2HbmKD0K25FnZx 0HRw== X-Gm-Message-State: AOJu0YwTol//E25XITgyjEnjuADF6VinCL9Duzox2hsWuJ18ADFFJlc2 0xwlx0Qh7kNr6NWcwoY/M5i+oQ== X-Received: by 2002:adf:f40a:0:b0:336:6116:2e15 with SMTP id g10-20020adff40a000000b0033661162e15mr2439640wro.160.1703057889425; Tue, 19 Dec 2023 23:38:09 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id t15-20020a0560001a4f00b003367d48520dsm397648wry.46.2023.12.19.23.38.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Dec 2023 23:38:08 -0800 (PST) Message-ID: Date: Wed, 20 Dec 2023 08:38:07 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/3] dt-bindings: usb: mtk-xhci: add a property for Gen1 isoc-in transfer issue Content-Language: en-US To: Chunfeng Yun , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , AngeloGioacchino Del Regno Cc: Conor Dooley , Matthias Brugger , Mathias Nyman , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Eddie Hung , Macpaul Lin References: <20231220025842.7082-1-chunfeng.yun@mediatek.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3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06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231220025842.7082-1-chunfeng.yun@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/12/2023 03:58, Chunfeng Yun wrote: > For Gen1 isoc-in endpoint on controller before about SSUSB IPM v1.6.0, it > still send out unexpected ACK after receiving a short packet in burst > transfer, this will cause an exception on connected device, specially for > a 4k camera. > Add a quirk property "rx-fifo-depth" to work around this hardware issue, > prefer to use 3k bytes; > The side-effect is that may cause performance drop about 10%, including > bulk transfer. > > Signed-off-by: Chunfeng Yun > --- > v3: add fifo depth unit, change the value range from 0-3 to 1-4 > v2: change 'mediatek,rxfifo-depth' to 'rx-fifo-depth' > --- > .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml > index e9644e333d78..9478b7031796 100644 > --- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml > +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml > @@ -124,6 +124,18 @@ properties: > defined in the xHCI spec on MTK's controller. > default: 5000 > > + rx-fifo-depth: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + It is a quirk used to work around Gen1 isoc-in endpoint transfer issue > + that still send out unexpected ACK after device finish the burst transfer > + with a short packet and cause an exception, specially on a 4K camera > + device, it happens on controller before about IPM v1.6.0; the side-effect > + is that may cause performance drop about 10%, include bulk transfer, > + prefer to use 3 here. The unit is 1K bytes. NAK. Read comments on previous submission. Best regards, Krzysztof