From nobody Sat Feb 04 21:29:49 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P8Qf62SBKz3nsnn; Sat, 4 Feb 2023 21:29:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P8Qf60Nkcz3lwq; Sat, 4 Feb 2023 21:29:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675546190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=17gycY1La/nG9Fn13U+r+vI++lqFC4MxU2y0NH5qd+A=; b=xqxnsXaEgaTbgZ9eSJnQPkjCe2umXT62kvntVZ8v2YEwAJeA5eTmUHqUJMUESHizQK3zsO Pak1OQKc0szIG5vg9xw7wptNvqFmH9MNDN34nIcHynZv8wCR2FkxMjkndFj/oRmPYK3kbM H8T8F0ZDp0pfio6J6LdcR6fvfcZLNfkf8XpC3oTNA5ejKmyPNljRv7utNdQ/PTvITJuztW 5raOQI1f4RKgRQgvlGxbpziFrArOg1kvSZHkkCuMi3y28ffelGNgEQXyp4UmhCutTrP+sp 5p7PFS4yjwgO6UcrKrvb5gSlEJAB57QtNiVSgHCRiLVNJ05ihv0aGEM8Mzb3Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675546190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=17gycY1La/nG9Fn13U+r+vI++lqFC4MxU2y0NH5qd+A=; b=H+Old5hCFV1bEzmJDIB3AOCQwzjG2l/b+/KCtoSTB6iLbTAOZJ7bhWUzRsPDMmT7sMNK6t tLZhtJNO91Iku5iREiZLoAnJDl0fpaLIDQX0i837gO6sAk77qqUyCMmpcRDTsbEZyjjZSK 4Q/0EERg4zd0HhpEwn64esDxyN5HmjvZLp9jNSBPXZEdZw3kHxpN9sZxmnfmEEI8oM9N3O 8WcwRiGSaM49DRtZMjTnwIZAJSeLwXEZgMgdWlt3fQgEJ0r4nLvxtAyr8k+EGlzXThrCDH 3KDYN4wm4r8x7p+kUW7eEnp3+9iBcwow1eM50CWUuZK79WUA9FxFE3cKAd83Vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675546190; a=rsa-sha256; cv=none; b=CXcb7GELrHYeBlGoAuPY5pZ9J6Y+Sl2xiK3EjX0a3TjABtkEQxK3T8untgartn//C0yNX0 NI4e/m/C7bjzNCBn7xtoKJwEN9yekmsYdzQTQytLW3YhRjyXxx/8PNaNDUMMQvGHQEA3y5 9GOfE2aWygavWy7fFNmJFn2F4gVPM9w4amPjODWxb/kJmzsuiHbog9oZO6UoaYcV+0FODu odraSotWYiNlgtYS4CAJwh0EmV3NQSYsBWtyEHU319bLuIIeGM6rb5vXPniYIBTJMafOi0 Aa9nafPolYNbWAI2cvBLDzvMcYarW9IEe5XqT7vb14d48/nPFV/bKsy5JMlpNA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P8Qf56XFMzVYn; Sat, 4 Feb 2023 21:29:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 314LTnBb047474; Sat, 4 Feb 2023 21:29:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 314LTnjW047473; Sat, 4 Feb 2023 21:29:49 GMT (envelope-from git) Date: Sat, 4 Feb 2023 21:29:49 GMT Message-Id: <202302042129.314LTnjW047473@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: e66352013a67 - main - usb: add support for Huawei E5573Cs322 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e66352013a67183dfeec14b2a22913305c26e838 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e66352013a67183dfeec14b2a22913305c26e838 commit e66352013a67183dfeec14b2a22913305c26e838 Author: Michael Paepcke AuthorDate: 2022-12-17 16:51:36 +0000 Commit: Warner Losh CommitDate: 2023-02-04 21:27:09 +0000 usb: add support for Huawei E5573Cs322 Switch the now added E5573Cs322_ECM (0x14db) as well per default to NCM. With this patch we default all devices to simple NCM mode to avoid the problem and get a consistent reliable behavior. No matter what firmware version and provider mix are involved. Rationale: Even the bigger SOC shows under complex load in ECM (double-nat) mode the same performance drop from 25Mbit to 2Mbit Line Speed, similar to E3372h. Reason: Thermal problems (reported via serial debug interface in ACM Mode) after 2-3 minutes load. Fix the root cause and bundle a working firmware is out of reach because Huawei sells the same hardware, different (crippled) firmware versions at different price points in different markets as strategy. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/633 --- sys/dev/usb/net/if_cdce.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/net/if_cdce.c b/sys/dev/usb/net/if_cdce.c index 50f909c630cd..3cad74a11022 100644 --- a/sys/dev/usb/net/if_cdce.c +++ b/sys/dev/usb/net/if_cdce.c @@ -266,7 +266,8 @@ static int cdce_driver_loaded(struct module *, int, void *); static const STRUCT_USB_HOST_ID cdce_switch_devs[] = { {USB_VPI(USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3272_INIT, MSC_EJECT_HUAWEI2)}, {USB_VPI(USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3372v153_INIT, MSC_EJECT_HUAWEI2)}, - {USB_VPI(USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3372_INIT, MSC_EJECT_HUAWEI3)}, + {USB_VPI(USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3372_INIT, MSC_EJECT_HUAWEI4)}, + {USB_VPI(USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E5573Cs322_ECM, MSC_EJECT_HUAWEI3)}, }; static const STRUCT_USB_HOST_ID cdce_host_devs[] = {