Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2D6FC433EF for ; Mon, 27 Dec 2021 10:11:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235870AbhL0KLb (ORCPT ); Mon, 27 Dec 2021 05:11:31 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:49857 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233255AbhL0KLb (ORCPT ); Mon, 27 Dec 2021 05:11:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1640599890; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mpi7vBYS3XnKL4Kj8OO6j7beShRGlrvlj+Yo2wkNZyE=; b=BWa00zW0JgO7m7zgFcgERw0VQQjYGTRnG0Peu2o2q2w24CXYtyJs1b2RgRfQrbFjHkYOgW eIb76HWUF4pPAO3MVlFALunyFmidizo+ecV3rEmTevGltMhlSufsYNitneVYMRS+0XW1QQ pKFj/G7Ltk0rV0i++vhXIc8+QiIBh6M= Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-466-InHziDtVOFyQufZ0qE5NaQ-1; Mon, 27 Dec 2021 05:11:29 -0500 X-MC-Unique: InHziDtVOFyQufZ0qE5NaQ-1 Received: by mail-io1-f69.google.com with SMTP id s8-20020a056602168800b005e96bba1363so6614157iow.21 for ; Mon, 27 Dec 2021 02:11:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=mpi7vBYS3XnKL4Kj8OO6j7beShRGlrvlj+Yo2wkNZyE=; b=IE88YHHmRR1RhgAiHN5fU7HvSnqozuSFRtLxB6Sl7PZlKgp1UHQMHPsd9iLQJXsf5R pXy1SgEWusdCuBYxbdIbyKyIZJVPMqU+9r5PJh6/Psb0j7b5/LrUTk7wWlvL/1YQUtrk LgDUUt+pvyFZPfr+MUKCni9P8/jq1eXE6oUGDglGmoTr/tcUX7jNsot6Vy7NdC6UQepm V7PG73+PoAjw5TkaP7TPfafomLyctIuxoPBE07dXogB68xESNouYjM1vxwiMfS0en1fk wktRl66uldj8ndsC6BlrU/pyMzM0NGhSKr7wS2yfLYbF6Ww4yuV7FLpgx0cD1yPTebqS twIA== X-Gm-Message-State: AOAM530dRrkgRQhVPaW357KagMPG/5uXfj82UZY16aTFJ/CnWRdITMep JQQavczM2SxxmNDIhwy8ICvzaskp6ue2dQ1oTaaXoxyXMsCh4pKpp0yOkiEjIhJKiqlHBjANP8I JiSzb0hOGJYg/NEI+jXkgBNQylKDgfDel5/swQJOge9s= X-Received: by 2002:a02:9f92:: with SMTP id a18mr7541312jam.4.1640599888654; Mon, 27 Dec 2021 02:11:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgwpN/yx9wfHEX0MHG5ZIGHNxnXz+ofFsurQNeXugutT8dbFTXjOzHu0Lbxupibwx+LAtidzn7h170SQp21dY= X-Received: by 2002:a02:9f92:: with SMTP id a18mr7541302jam.4.1640599888485; Mon, 27 Dec 2021 02:11:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?w43DsWlnbyBIdWd1ZXQ=?= Date: Mon, 27 Dec 2021 11:11:17 +0100 Message-ID: Subject: Re: [Bug] Driver mt7921e cause computer reboot. To: Mikhail Gavrilov Cc: Linux List Kernel Mailing , sean.wang@mediatek.com, Linux List Kernel Mailing , objelf@gmail.com, lorenzo@kernel.org, Soul.Huang@mediatek.com, nbd@nbd.name Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, On Thu, Nov 25, 2021 at 11:43 PM Mikhail Gavrilov wrote: > With recent kernel 5.16.0-0.rc2 commit 5d9f4cf36721 the behavior has > been changed for the better, but the WiFi adapter still works with > bugs. > > Now spontaneous endless reboots do not occur. But if I restart the > laptop instead of shutting down, then the next time I boot, the WiFi > adapter disappears. In order for the WiFi adapter to appear again, it > needs to turn off the laptop and then turn on. Can this be somehow > fixed? > lspci output after reboot and boot after shutdown is different: I've been experiencing similar problems, but they're solved at v5.15 version, at least for me. How are you installing the kernel? Custom build? Have you updated the firmware to latest versions, as well? > After reboot: > Subsystem: AzureWave Device 4680 > Flags: fast devsel, IRQ 84, IOMMU group 14 > Memory at fc30300000 (64-bit, prefetchable) [size=3D1M] > Memory at fc30400000 (64-bit, prefetchable) [size=3D16K] > Memory at fc30404000 (64-bit, prefetchable) [size=3D4K] > Capabilities: [80] Express Endpoint, MSI 00 > Capabilities: [e0] MSI: Enable- Count=3D1/32 Maskable+ 64bit+ > Capabilities: [f8] Power Management version 3 > Capabilities: [100] Vendor Specific Information: ID=3D1556 Rev=3D1 Len=3D= 008 > Capabilities: [108] Latency Tolerance Reporting > Capabilities: [110] L1 PM Substates > Capabilities: [200] Advanced Error Reporting > Kernel modules: mt7921e > > After shutdown: > 05:00.0 Network controller: MEDIATEK Corp. Device 7961 > Subsystem: AzureWave Device 4680 > Flags: bus master, fast devsel, latency 0, IRQ 85, IOMMU group 14 > Memory at fc30300000 (64-bit, prefetchable) [size=3D1M] > Memory at fc30400000 (64-bit, prefetchable) [size=3D16K] > Memory at fc30404000 (64-bit, prefetchable) [size=3D4K] > Capabilities: [80] Express Endpoint, MSI 00 > Capabilities: [e0] MSI: Enable+ Count=3D1/32 Maskable+ 64bit+ > Capabilities: [f8] Power Management version 3 > Capabilities: [100] Vendor Specific Information: ID=3D1556 Rev=3D1 Len=3D= 008 > Capabilities: [108] Latency Tolerance Reporting > Capabilities: [110] L1 PM Substates > Capabilities: [200] Advanced Error Reporting > Kernel driver in use: mt7921e > Kernel modules: mt7921e > > Screen of a visual comparison of lspci in meld: https://postimg.cc/642NKJ= 5Y For me, these differences seem to be the normal effect of the driver not recognizing the device. Regards --=20 =C3=8D=C3=B1igo Huguet