From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 988413368A7 for ; Tue, 16 Jun 2026 14:16:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781619398; cv=none; b=Pt2cQMeWR9dlTPThxw/ZPhN7/6rvOyjKnm/iZLJ5zkn+WV6/8ivjb/qZZCphlavLznW9PCR5PFV1dBL+YEFeLbHHFDAocajLYeEORRSDMB5WUcm1Gu8xFuikozWoxM1PcR8Q8NuiMkU9pBCqUgBxjctNHEoD/yOo7sM3xhBLSo0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781619398; c=relaxed/simple; bh=L2DG+L5Kpgnnah4oYouE9C15yNIM80TbNg8vzs+o4oY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gu/fVQBWvDb2M7HRd2DGJgjpNy0gIbjCaIVVQRIZ2tOROf7GVuPhsZsHUj9+sidZcTgB9y33x9L864bNDwMJ29NqWuGaGyUTBe8oxsz1/4KOotm+RdKLsWg9GxyuGn1bIhaUQAF1mUmFWL7T5FKm+nvZA3TfWM2ck/M8AJp0tNA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fASRkxPl; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fASRkxPl" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-bebc80100efso478596966b.1 for ; Tue, 16 Jun 2026 07:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781619396; x=1782224196; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QhHCJY7V6uO77H2mkenjYXx4UrXf6lFT0U3uVHQgInI=; b=fASRkxPlzgBFl8X1mO3UA/qwnlZpzpQW52wRAUxnQ8u2T4mk+pbGM9KnH0AdFneya1 WeREOK4ugysUBUnJqW6KCLo9fJcm/1Ltr+pUDYxfR5BoUI7ksS9vadmJfP6+OXNvrEI3 Ok+853m3jYWUmVihbcJz1xjx8qOa0BO7/PogowR/WgBPlIwOkYyV5quffNa/i9PFHB5B igpC95j2M47KYpN/Uvah2bSSLG7mSefn73UUzFr9MNx1rKTlmrArXHENzAYvcapIhcmZ tFuaVntKEstktVhXI0eGMvH6dy34kRbihDnAnFbnIVdCM7VVn6Uiae9di9OAawdRrvAu YHEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781619396; x=1782224196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=QhHCJY7V6uO77H2mkenjYXx4UrXf6lFT0U3uVHQgInI=; b=nIH9KNV53Glutd90AIvNTYGwUE68DUOvLWge8LUFSlwWh00tnxVbeXKDDO5K+jmXAn 9rp+Z1k17vWbq2dV6EGQ5l0D2aSRe4wnTV3lIfs0LFvYykULv3sytu+HjLS43h9UQLlm NoSqWX5wMyYvqHfQhNtpH6GSMX/tB+cjxMDRnqenYa/+njzVozUW1tUGhSFDewRJ8l54 vv11H1mUh87PeZHAm/GjePuiM+ul0bkoyJ630mPeBPT5zwmvUjuBjKJhNWTfdlz0o23b HEDjv1fih4Mqd97/PmtvQfADLW/+xuj5buAG6eRcoJGr+BHZk4FII4OdqUJ2IT3jvIby DAPQ== X-Forwarded-Encrypted: i=1; AFNElJ9PKpDgqJuacydM7O0SwhS/Kw116C0LAVYSwwc8RwG7PSwPB90CCCLIV8Ykz7u1skZQE69WSwDbTF1jRVM=@vger.kernel.org X-Gm-Message-State: AOJu0YyZjDsNbe5QDwjf+9uMonRP0GsPbyk08g6Ip8UvtzBqpUxegxcp eYPJi15lBW+JmQntHYySlGZ/rYHHvu30MBEuoujjtTf1QvoRv4BaEIKD X-Gm-Gg: Acq92OHnbtA5Skk8aEZGeZYgldzjteo0yLCDyUqmGx1AroxZ3RCtbCt2/QTOxTKpFCH U0nr8dOUCX5UrAclisCbhtTnD3qH8/qNvm3XMhVOam8Ixf+Uo36l+cFjELt5g1NQjRxmnlk573e dM0dM251+zeK/zlPix1y7EFrBf/+i1g4dkfYkGSuqBkjQeiLPb3+1Vbq5s1IYd1a6I8pomQFqV9 /5ecgwOOpVyjfHAwBv595QAkODK+xJkCA1bedCQa8bJD3LrtgSOzdANApY6X+d9Qymh3tmYQDBo PhFscFzy/sFRGbSzuLdumPYP6hNJwOP90gVhKdP2OzIgWTpWKuoqX+DoMkpxf4eVCtRvped0MMJ ilCaH/Fb8IsFLAJ6Qw7SBkVMdZOBjfMfujaTuhgyAZZcWVQr7w5sa90cPtcdmBMQdIdrmIjHdOw osoWCbZKRYFLH5nicua9ie/5Zni8YI4AJlRA== X-Received: by 2002:a17:907:3f87:b0:bee:ac9b:9abc with SMTP id a640c23a62f3a-c043cdd5664mr216934566b.22.1781619393777; Tue, 16 Jun 2026 07:16:33 -0700 (PDT) Received: from localhost ([80.208.66.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bfdb9113dc3sm662911066b.62.2026.06.16.07.16.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2026 07:16:33 -0700 (PDT) From: William Hansen-Baird To: pkshih@realtek.com Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, William Hansen-Baird Subject: [PATCH rtw-next v2 0/3] wifi: rtlwifi: fix ASPM AER flooding on RTL8723BE devices Date: Tue, 16 Jun 2026 16:16:17 +0200 Message-ID: <20260616141620.91081-1-william.hansen.baird@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260614135508.70307-1-william.hansen.baird@gmail.com> References: <20260614135508.70307-1-william.hansen.baird@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series fixes AER error message flooding and system slowdown caused by RTL8723BE with subsystem ID 17aa:b736. The flood is found to be caused by ASPM, and disabling it stops the AER spam. This flood of AER error messages for the RTL8723BE is not unique to subsystem ID 17aa:b736. Commit 77a6407c6ab2 ("wifi: rtlwifi: disable ASPM for RTL8723BE with subsystem ID 11ad:1723") targets the same issue for subsystem ID 11ad:1723. The fix applied in that commit, however, does not correctly disable ASPM. It merely disables driver control of ASPM. Patch 1 fixes the previous commit such that it properly disables ASPM for subsystem ID 11ad:1723. Patch 2 converts the if-statement check of subsystem IDs to a rtl_aspm_quirks pci_device_id table matched with pci_match_id() such that future devices can easily be added if they have the same error. Patch 3 adds the RTL8723BE with subsystem ID 17aa:b736 to the rtl_aspm_quirks table to disable ASPM for it. Testing on a Razer Blade 14 2017 showed this stops the AER error message flood and wifi works as it should. --- v2: - Implement __rtl_pci_disable_aspm() in patch 1 which disables ASPM without checking ppsc->support_aspm. This is called both by rtl_pci_disable_aspm(), guarded by the original check of ppsc->support_aspm, and the new quirk code. - Rename rtl8723be_aspm_quirks to rtl_aspm_quirks and fill out system vendor and device ID alongside subsystem vendor and device ID in the rtl_aspm_quirks table such that we can use pci_match_id() alone without the RTL8723BE check. William Hansen-Baird (3): wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding wifi: rtlwifi: convert pci if-statement to ID table wifi: rtlwifi: disable ASPM for RTL8723BE with subsystem ID 17aa:b736 drivers/net/wireless/realtek/rtlwifi/pci.c | 40 +++++++++++++++------- 1 file changed, 27 insertions(+), 13 deletions(-) -- 2.54.0