6 Oct 18:00
[PATCH] iwlwifi: fix DMA code and bugs
From: Johannes Berg <johannes@...>
Subject: [PATCH] iwlwifi: fix DMA code and bugs
Newsgroups: gmane.linux.kernel.wireless.general
Date: 2008-10-06 16:00:31 GMT
Subject: [PATCH] iwlwifi: fix DMA code and bugs
Newsgroups: gmane.linux.kernel.wireless.general
Date: 2008-10-06 16:00:31 GMT
This patch cleans up the DMA code to be understandable and not completely wrong. In particular: * there is no need to have a weird iwl_tfd_frame_data struct that is used 10 times, just use an address struct 20 times * therefore, all the is_odd junk goes away * fix a bug in iwl_hcmd_queue_reclaim where it would reclaim all the fragments of a descriptor rather than all descriptors (this may be the cause of the dma unmapping problem I reported) * some more cleanups Signed-off-by: Johannes Berg <johannes@...> --- Tested on 5000 hw, please apply. drivers/net/wireless/iwlwifi/iwl-4965-hw.h | 98 ++++++++++++++--------------- drivers/net/wireless/iwlwifi/iwl-5000.c | 2 drivers/net/wireless/iwlwifi/iwl-helpers.h | 5 - drivers/net/wireless/iwlwifi/iwl-tx.c | 84 +++++------------------- 4 files changed, 70 insertions(+), 119 deletions(-) --- wireless-testing.orig/drivers/net/wireless/iwlwifi/iwl-4965-hw.h 2008-10-06 16:41:59.074744190 +0200 +++ wireless-testing/drivers/net/wireless/iwlwifi/iwl-4965-hw.h 2008-10-06 17:20:39.754106476 +0200 @@ -822,54 +822,11 @@ enum { #define IWL49_NUM_QUEUES 16 #define IWL49_NUM_AMPDU_QUEUES 8 -/** - * struct iwl_tfd_frame_data(Continue reading)
RSS Feed