public inbox for b43-dev@lists.infradead.org
 help / color / mirror / Atom feed
From: ISE Development <isedev@gmail.com>
To: b43-dev@lists.infradead.org
Subject: [RFT][PATCH] b43: DMA: debug rings alignment
Date: Thu, 14 Mar 2013 21:58:18 +0100	[thread overview]
Message-ID: <8990870.3kQAHQdGWn@wks001.ise.net> (raw)
In-Reply-To: <1363293681-23385-1-git-send-email-zajec5@gmail.com>

On Thursday 14 Mar 2013 21:41:21 Rafa? Mi?ecki wrote:
> index 38bc5a7..30da6ce 100644
> --- a/drivers/net/wireless/b43/dma.c
> +++ b/drivers/net/wireless/b43/dma.c
> @@ -915,6 +915,21 @@ struct b43_dmaring *b43_setup_dmaring(struct b43_wldev
> *dev, ring->last_injected_overflow = jiffies;
>  #endif
>  
> +       if (type == B43_DMA_64BIT) {
> +               u32 tmp;
> +               if (for_tx) {
> +                       b43_write32(dev, ring->mmio_base +
> B43_DMA64_TXRINGLO, 0xff0); +                       tmp = b43_read32(dev,
> ring->mmio_base + B43_DMA64_TXRINGLO);
> +                       pr_info("[DBG] Testing TX on ring 0x%X: 0x%X\n",
> ring->mmio_base, tmp); +               } else {
> +                       b43_write32(dev, ring->mmio_base +
> B43_DMA64_RXRINGLO, 0xff0); +                       tmp = b43_read32(dev,
> ring->mmio_base + B43_DMA64_RXRINGLO);
> +                       pr_info("[DBG] Testing RX on ring 0x%X: 0x%X\n",
> ring->mmio_base, tmp); +               }
> +       } else {
> +               pr_err("[DBG] Whoops, it's not 64b DMA engine!\n");
> +       }
> +
>         if (for_tx) {
>                 /* Assumption: B43_TXRING_SLOTS can be divided by
> TX_SLOTS_PER_FRAME */ BUILD_BUG_ON(B43_TXRING_SLOTS % TX_SLOTS_PER_FRAME !=
> 0);

Will start testing now...

-- 
-- isedev

  reply	other threads:[~2013-03-14 20:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 20:41 [RFT][PATCH] b43: DMA: debug rings alignment Rafał Miłecki
2013-03-14 20:58 ` ISE Development [this message]
2013-03-14 22:32   ` ISE Development
2013-03-14 23:46     ` ISE Development
2013-03-15  6:33     ` Rafał Miłecki

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=8990870.3kQAHQdGWn@wks001.ise.net \
    --to=isedev@gmail.com \
    --cc=b43-dev@lists.infradead.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