public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas <andihartmann@01019freenet.de>
To: Ivo Van Doorn <ivdoorn@gmail.com>,
	Kernel-Mailingliste <linux-kernel@vger.kernel.org>,
	users@rt2x00.serialmonkey.com,
	Helmut Schaa <helmut.schaa@googlemail.com>
Subject: Re: [rt2x00-users] rt61pci - bad performance
Date: Mon, 16 Aug 2010 18:33:28 +0200	[thread overview]
Message-ID: <4C696858.5030908@01019freenet.de> (raw)
In-Reply-To: <AANLkTin-_QX+ioguFYX49VyJKie5qAZdm2aEpiCaoQ3O@mail.gmail.com>

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

  parent reply	other threads:[~2010-08-16 16:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ffaPE-58l-5@gated-at.bofh.it>
     [not found] ` <fgPe2-2X7-19@gated-at.bofh.it>
2010-08-14  8:33   ` rt61pci - bad performance Andreas
     [not found]   ` <fgXXY-KJ-1@gated-at.bofh.it>
2010-08-14  8:55     ` Andreas
     [not found]       ` <201008160901.57487.helmut.schaa@googlemail.com>
     [not found]         ` <AANLkTin-_QX+ioguFYX49VyJKie5qAZdm2aEpiCaoQ3O@mail.gmail.com>
2010-08-16 16:33           ` Andreas [this message]
2010-08-16 16:48             ` [rt2x00-users] " Helmut Schaa
2010-08-16 17:04         ` Andreas Hartmann
     [not found]         ` <4C72C382.4020708@01019freenet.de>
     [not found]           ` <201008240937.37431.helmut.schaa@googlemail.com>
2010-08-26 17:36             ` Andreas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C696858.5030908@01019freenet.de \
    --to=andihartmann@01019freenet.de \
    --cc=helmut.schaa@googlemail.com \
    --cc=ivdoorn@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=users@rt2x00.serialmonkey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox