Return-path: Received: from senator.holtmann.net ([87.106.208.187]:46881 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752503AbYJFQmU (ORCPT ); Mon, 6 Oct 2008 12:42:20 -0400 Subject: Re: [PATCH v2] iwlwifi: fix DMA code and bugs From: Marcel Holtmann To: Johannes Berg Cc: John Linville , linux-wireless , Tomas Winkler In-Reply-To: <1223309405.15196.32.camel@johannes.berg> References: <1223308831.15196.28.camel@johannes.berg> (sfid-20081006_180110_939098_1A64839A) <1223309405.15196.32.camel@johannes.berg> Content-Type: text/plain Date: Mon, 06 Oct 2008 18:42:39 +0200 Message-Id: <1223311359.11272.212.camel@violet.holtmann.net> (sfid-20081006_184224_159716_4E0AAA94) Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi John, > 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 > --- > Tested on 5000 hw, please apply. > > v2: fixes small issue with getting rid of iwl_get_dma_hi_address. if this fixes the crashes with my 4965 card in my X61, then this is a candidate for 2.6.27-rc8. I will built a new kernel for my X61 as soon as possible. Regards Marcel