linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Farhan Khan <khanzf@gmail.com>
To: linux-wireless@vger.kernel.org
Subject: rtlwifi/rtl8188ee: _rtl_pci_rx_interrupt equivalent dropping frames
Date: Sat, 18 Aug 2018 22:22:24 -0400	[thread overview]
Message-ID: <37b22f82-8246-1f2e-019c-f78382995ca9@gmail.com> (raw)

Hi all,

I am working on porting the rtlwifi/rtl8188ee to expand FreeBSD's 
equivalent rtwn driver. In the equivalent code, the function 
_rtl_pci_rx_interrupt from drivers/net/wireless/realtek/rtlwifi/pci.c 
runs into the if-condition:

if (own) /* wait data to be filled by hardware */
	return;

The equivalent of this on FreeBSD is returning true, thus resulting in 
excessively dropped frames. Based on the surrounding code on the Linux 
side, this suggests that data has not been filled by Realtek device, 
despite the device triggering an interrupt.

What would cause the device to issue an interrupt, but continuously 
return true on this if-statement? Is this indicative of anything?
Are there any register values during initialization that may suggest 
this happening?

Its quite difficult to work on this without documentation, so your help 
is *greatly* appreciated.

Thank you,

--
Farhan Khan
PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE

                 reply	other threads:[~2018-08-19  5:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=37b22f82-8246-1f2e-019c-f78382995ca9@gmail.com \
    --to=khanzf@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).