Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755103Ab0HPQgq (ORCPT ); Mon, 16 Aug 2010 12:36:46 -0400 Received: from mx0.vr-web.de ([195.200.35.198]:35022 "EHLO mx0.vr-web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754989Ab0HPQgl (ORCPT ); Mon, 16 Aug 2010 12:36:41 -0400 X-Greylist: delayed 302 seconds by postgrey-1.27 at vger.kernel.org; Mon, 16 Aug 2010 12:36:41 EDT Message-ID: <4C696858.5030908@01019freenet.de> Date: Mon, 16 Aug 2010 18:33:28 +0200 From: Andreas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.3a6pre) Gecko/20100803 SeaMonkey/2.1a2 MIME-Version: 1.0 To: Ivo Van Doorn , Kernel-Mailingliste , users@rt2x00.serialmonkey.com, Helmut Schaa Subject: Re: [rt2x00-users] rt61pci - bad performance References: <4C6659F5.9080706@01019freenet.de> <201008160901.57487.helmut.schaa@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BitDefender-Scanner: Clean, Agent: BitDefender Courier 3.0.2 on vrwf103, sigver: 7.28621 X-BitDefender-CF-Stamp: none Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2436 Lines: 65 Ivo Van Doorn wrote: >>>> hw crypto should be enabled by default in rt61pci, however, I don't know >>>> if it is actually working ;) >>> >>> How can I see if it's working? >> >> You can add a printk to rt61pci_fill_rxdone, something like: >> >> diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c >> index e539c6c..aa1aafd 100644 >> --- a/drivers/net/wireless/rt2x00/rt61pci.c >> +++ b/drivers/net/wireless/rt2x00/rt61pci.c >> @@ -2023,6 +2023,7 @@ static void rt61pci_fill_rxdone(struct queue_entry *entry, >> rxdesc->flags |= RX_FLAG_DECRYPTED; >> else if (rxdesc->cipher_status == RX_CRYPTO_FAIL_MIC) >> rxdesc->flags |= RX_FLAG_MMIC_ERROR; >> + printk(KERN_INFO "rt61pci_fill_rxdone: %x\n", rxdesc->cipher_status); >> } >> >> /* > > Actually check debugfs: > > /sys/kernel/debug/ieee80211/phy0/rt61pci/queue/crypto > > for the statistics for cryptography. > > Ivo Well, this path doesn't exist - even the crypto-file can't be found. lsmod | grep rt61 rt61pci 19584 0 rt2x00pci 5646 1 rt61pci rt2x00lib 31738 2 rt61pci,rt2x00pci eeprom_93cx6 1429 1 rt61pci crc_itu_t 1435 2 rt61pci,firewire_core notebook1:/sys/kernel/debug/ieee80211/phy0 # find -name crypto notebook1:/sys/kernel/debug/ieee80211/phy0 # notebook1:/sys/kernel/debug/ieee80211/phy0 # mount | grep debugfs debugfs on /sys/kernel/debug type debugfs (rw) The debug message gave tons of: Aug 16 18:11:47 .... kernel: [ 3435.535149] rt61pci_fill_rxdone: 0 Aug 16 18:11:47 .... kernel: [ 3435.536335] rt61pci_fill_rxdone: 0 Aug 16 18:11:47 .... kernel: [ 3435.537049] rt61pci_fill_rxdone: 0 Aug 16 18:11:47 .... kernel: [ 3435.537697] rt61pci_fill_rxdone: 0 Aug 16 18:11:47 .... kernel: [ 3435.538595] rt61pci_fill_rxdone: 0 Aug 16 18:11:47 .... kernel: [ 3435.543566] rt61pci_fill_rxdone: 0 Aug 16 18:11:47 .... kernel: [ 3435.545187] rt61pci_fill_rxdone: 0 Aug 16 18:11:47 .... kernel: [ 3435.546837] rt61pci_fill_rxdone: 0 Aug 16 18:11:47 .... kernel: [ 3435.547031] rt61pci_fill_rxdone: 0 Kind regards, Andreas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/