Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3848871pxb; Wed, 13 Oct 2021 14:24:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+/s3g07ctr33RmRpDh/KFqwGojQxo7KJPu3EczwlgGOSXn0auot5bspoaN0x1shDIVdwF X-Received: by 2002:a50:fc8e:: with SMTP id f14mr2670819edq.87.1634160295225; Wed, 13 Oct 2021 14:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634160295; cv=none; d=google.com; s=arc-20160816; b=dZSSQt8tQ7oqA6r184mMCINpRpDmbZ1g7dT24u75YhuJNVYdUJxgjYINuCnHn6abcp 10xHjH8hPSmSuN5r9/0ZCvttAthHQQqcNift5ZFVgw22LpPEmyWsp12jFGQ2IfgZVN85 GZUSBW5Lu1yKQdmJzIWDmG0bmEkLXcWUEBItiJOsWIHToXtLn81zSHkMKo71Oun6/rFQ 2O4gpV6413vxi8HE/OyXwcfL9MX9enoGrUX0W+5agBWuTgGNTWCA7ldwG0stRVPYykCV oW11/4D7Yuo108YZ7UWYoARtgTf0uy8ZYNLYeY+UMUzByrFK+Y3al/RxfCoiBur8eeCT GWbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=TFiff9OEl3ALZwFw9Cef6hDK28Ait17qgdFLAcad6bY=; b=1BVwr+c9FhFKiPqgmcJ0tpHGLXwZtGzbJbPbOdos8e+aP8ULQ2I1YAwTl7bzIFSVs5 rNSzkz5rxkPF9oYtWB/QXlnO533UXBvIaAXBIf38Zsffx2KolWvHYrasq6FeYccKBWzj wo06MpuG4Wk03cBYRRd/lExhG83qsMtqErnX1eFx00b8p5YfOjaevTmU8I1oIOwEa1mr hfgcPQ3tF3i1nBoYUbtS6oaPNIL8LJHw3aYSItieEvbgsxz2UQZdAnzROV+X8X7VUU9Z nf1ORmXkelr7/nJdOmXU6AdicwKcCt8Y++OtkZgay7+m581p4pQUXc6FwF+W6wQQ71Oi 1aIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si830275edk.328.2021.10.13.14.24.34; Wed, 13 Oct 2021 14:24:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbhJMV0a (ORCPT + 63 others); Wed, 13 Oct 2021 17:26:30 -0400 Received: from mailgw02.mediatek.com ([216.200.240.185]:43504 "EHLO mailgw02.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbhJMV03 (ORCPT ); Wed, 13 Oct 2021 17:26:29 -0400 X-UUID: eeecd68d068b412db96c107000599f93-20211013 X-UUID: eeecd68d068b412db96c107000599f93-20211013 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 139760616; Wed, 13 Oct 2021 14:24:22 -0700 Received: from mtkcas10.mediatek.inc (172.21.101.39) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 13 Oct 2021 14:23:00 -0700 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 14 Oct 2021 05:22:59 +0800 From: To: CC: , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 11/16] mt76: sdio: extend sdio module to support CONNAC2 Date: Thu, 14 Oct 2021 05:22:58 +0800 Message-ID: <1634160178-17533-1-git-send-email-sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sean Wang >[...] >> >> In the current driver, we can see we only created one Rx queue >> (dev->q_rx with qid = 0) in mt76s_alloc_queues for processing all incoming packets including MCU events and wifi packets. >> >> And from the point of view of the device, mt7663s use the hardware >> queue 0 for all MCU events and wifi packets; mt7921s use the hardware >> queue 1 for all MCU events and wifi packets. >> >> So if we don't remap from hardware queue 1 to dev->q_rx[0] for mt7921s >> to handle incoming packets, we will get the kernel panic on accessing the invalid pointer on dev->q_rx[1]. >> >> Sean >> >> >Regards, >> >Lorenzo >> > >> >> > >ok, what about doing something like the patch below? >If it works for you, I will post a formal patch. go ahead. that looks fine to me. > >Regards, >Lorenzo >