Skip to contentSkip to conversation

pull request: iwlwifi 2016-03-30

PATCH New Grumbach, Emmanuel 2 participants 4 messages Mar 30, 2016 – Apr 2, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

SGkgS2FsbGUsDQoNClRoaXMgaXMgYSBwdWxsIHJlcXVlc3QgZm9yIDQuNiB0aGF0IGluY2x1ZGVz IDIgdHJpdmlhbCBmaXhlcy4NClBsZWFzZSBsZXQgbWUga25vdyBpZiB5b3UgaGF2ZSBpc3N1ZXMu DQpUaGFua3MhDQoNClRoZSBmb2xsb3dpbmcgY2hhbmdlcyBzaW5jZSBjb21taXQgMTIwMGI2ODA5 ZGZkOWQ3M2JjNGM3ZGI3NmQyODhjMzVmYTRiMmViZToNCg0KICBNZXJnZSBnaXQ6Ly9naXQua2Vy bmVsLm9yZy9wdWIvc2NtL2xpbnV4L2tlcm5lbC9naXQvZGF2ZW0vbmV0LW5leHQgKDIwMTYtMDMt MTkgMTA6MDU6MzQgLTA3MDApDQoNCmFyZSBhdmFpbGFibGUgaW4gdGhlIGdpdCByZXBvc2l0b3J5 IGF0Og0KDQogIGh0dHBzOi8vZ2l0Lmtlcm5lbC5vcmcvcHViL3NjbS9saW51eC9rZXJuZWwvZ2l0 L2l3bHdpZmkvaXdsd2lmaS1maXhlcy5naXQgdGFncy9pd2x3aWZpLWZvci1rYWxsZS0yMDE2LTAz LTMwDQoNCmZvciB5b3UgdG8gZmV0Y2ggY2hhbmdlcyB1cCB0byA3ZmRmOTY2MzI2MWNjNzdhNTE2 Mzk2ZmVjODJjZWU4YThlYTA3ZTc2Og0KDQogIGl3bHdpZmk6IG12bTogZml4IG1lbW9yeSBsZWFr IGluIHBhZ2luZyAoMjAxNi0wMy0yMCAyMzowMTo1NCArMDIwMCkNCg0KLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KKiBsb3dl ciB0aGUgZGVidWcgbGV2ZWwgb2YgYSBiZW5pZ24gcHJpbnQNCiogZml4IGEgbWVtb3J5IGxlYWsN Cg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLQ0KRW1tYW51ZWwgR3J1bWJhY2ggKDEpOg0KICAgICAgaXdsd2lmaTogcGNpZTog bG93ZXIgdGhlIGRlYnVnIGxldmVsIGZvciBSU0Egc2VtYXBob3JlIGFjY2Vzcw0KDQpNYXR0aSBH b3R0bGllYiAoMSk6DQogICAgICBpd2x3aWZpOiBtdm06IGZpeCBtZW1vcnkgbGVhayBpbiBwYWdp bmcNCg0KIGRyaXZlcnMvbmV0L3dpcmVsZXNzL2ludGVsL2l3bHdpZmkvbXZtL21hYzgwMjExLmMg fCAyICsrDQogZHJpdmVycy9uZXQvd2lyZWxlc3MvaW50ZWwvaXdsd2lmaS9tdm0vb3BzLmMgICAg ICB8IDIgLS0NCiBkcml2ZXJzL25ldC93aXJlbGVzcy9pbnRlbC9pd2x3aWZpL3BjaWUvdHJhbnMu YyAgIHwgNCArKy0tDQogMyBmaWxlcyBjaGFuZ2VkLCA0IGluc2VydGlvbnMoKyksIDQgZGVsZXRp b25zKC0p

#1 lore raw

PATCH 1/2 iwlwifi: pcie: lower the debug level for RSA semaphore access

IWL_INFO is not an error but still printed by default. "can't access the RSA semaphore it is write protected" seems worrisome but it is not really a problem.

---
 drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +2 -2
index eb39c7e..b2b7935 100644
@@ -732,8 +732,8 @@ static int iwl_pcie_rsa_race_bug_wa(struct iwl_trans *trans)
 	 */
 	val = iwl_read_prph(trans, PREG_AUX_BUS_WPROT_0);
 	if (val & (BIT(1) | BIT(17))) {
-		IWL_INFO(trans,
-			 "can't access the RSA semaphore it is write protected\n");
+		IWL_DEBUG_INFO(trans,
+			       "can't access the RSA semaphore it is write protected\n");
 		return 0;
 	}
 
Signature · 1 line
2.5.0
#2 lore raw

PATCH 2/2 iwlwifi: mvm: fix memory leak in paging

In reply to Grumbach, Emmanuel

From: Matti Gottlieb <[email protected]>

Currently paging download buffer is freed during the the unloading of the opmode which happens when the driver is unloaded.

This causes a memory leak since the paging download buffer is allocated every time we enable the interface, so the download buffer can be allocated many times, but only be freed once.

Free paging download buffer during disabling of the interface.

---
 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 ++
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c      | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +2 -0
index 76e649c..a50f4df 100644
@@ -1147,6 +1147,8 @@ void __iwl_mvm_mac_stop(struct iwl_mvm *mvm)
 	/* the fw is stopped, the aux sta is dead: clean up driver state */
 	iwl_mvm_del_aux_sta(mvm);
 
+	iwl_free_fw_paging(mvm);
+
 	/*
 	 * Clear IN_HW_RESTART flag when stopping the hw (as restart_complete()
 	 * won't be called in this case).
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +0 -2
index 5e8ab79..d278399 100644
@@ -761,8 +761,6 @@ static void iwl_op_mode_mvm_stop(struct iwl_op_mode *op_mode)
 	for (i = 0; i < NVM_MAX_NUM_SECTIONS; i++)
 		kfree(mvm->nvm_sections[i].data);
 
-	iwl_free_fw_paging(mvm);
-
 	iwl_mvm_tof_clean(mvm);
 
 	ieee80211_free_hw(mvm->hw);
Signature · 1 line
2.5.0
#3 lore raw
In reply to Grumbach, Emmanuel
Quoted 11 lines · Emmanuel

This is a pull request for 4.6 that includes 2 trivial fixes. Please let me know if you have issues.
Thanks!

The following changes since commit 1200b6809dfd9d73bc4c7db76d288c35fa4b2ebe:

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next (2016-03-19 10:05:34 -0700)

are available in the git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git tags/iwlwifi-for-kalle-2016-03-30

Pulled, thanks.

Signature · 1 line
Kalle Valo