alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Geoffrey McRae <geoff@spacevs.com>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: ASUS Phoebus (CMI8888) HDA Support
Date: Thu, 5 Dec 2013 09:20:59 +1100	[thread overview]
Message-ID: <20131205092059.52bd39f7@sarah.home.spacevs.com> (raw)
In-Reply-To: <529F1890.6070003@ladisch.de>

Interestingly I added some code to dump out the DMA addresses used and
checked it with and without IOMMU:

Without:
DMA: AREA = ffff8800dd44b000, ADDR = dd44b000

With:
DMA: AREA = ffff8803ecf15000, ADDR = 68000

Here are the registers while the device is working (with IOMMU):

      GCAP: 0x4300
      VMIN: 0x00
      VMAJ: 0x01
     INPAY: 0x0048
    OUTPAY: 0x0054
      GCTL: 0x00000101
    WAKEEN: 0x0000
   STATSTS: 0x0000
      GSTS: 0x0000
OUTSTRMPAY: 0x0030
 INSTRMPAY: 0x001d
    INTCTL: 0xc0000000
    INTSTS: 0x00000000
    WALCLK: 0xb4bdefba
 CORBLBASE: 0x00068000
 CORBUBASE: 0x00000000
    CORBWP: 0x00ad
    CORBRP: 0x00ad
   CORBCTL: 0x02
   CORBSTS: 0x00
  CORBSIZE: 0x42
 RIRBLBASE: 0x00068800
 RIRBUBASE: 0x00000000
    RIRBWP: 0x00ad
   RINTCNT: 0x0001
   RIRBCTL: 0x03
   RIRBSTS: 0x00
  RIRBSIZE: 0x42
      ICOI: 0x00000000
      ICII: 0x00000000
      ICIS: 0x0002
 DPIBLBASE: 0x00000000
 DPIULBASE: 0x00000000

CORBLBASE gets set to dd44b000, and RIRBLBASE gets set to dd44b800 when
it is without IOMMU as one would expect.

But... it is not 128bit aligned as per the HD Audio Spec.

Windows uses a DMA address of 0xdd4d0000, which is 128bit aligned. I
will do some more hacking and see if I can figure out how to give it an
aligned DMA buffer.

  parent reply	other threads:[~2013-12-04 22:21 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04 10:36 ASUS Phoebus (CMI8888) HDA Support Geoffrey McRae
2013-12-04 10:53 ` Clemens Ladisch
2013-12-04 10:57   ` Geoffrey McRae
2013-12-04 11:57     ` Clemens Ladisch
2013-12-04 12:08       ` Geoffrey McRae
2013-12-04 12:18       ` Geoffrey McRae
2013-12-04 22:20       ` Geoffrey McRae [this message]
2013-12-04 22:36         ` Geoffrey McRae
2013-12-04 12:42     ` Geoffrey McRae
  -- strict thread matches above, loose matches on Subject: below --
2014-08-03 21:05 Vincent Lejeune
2014-08-04 11:27 ` Takashi Iwai
2014-08-04 18:30   ` Vincent Lejeune
2014-08-04 18:35     ` Vincent Lejeune
2014-08-04 19:06     ` Takashi Iwai
     [not found]       ` <1407181440.71480.YahooMailNeo@web161503.mail.bf1.yahoo.com>
2014-08-05  7:13         ` Takashi Iwai
2014-08-05 22:26           ` Vincent Lejeune
2014-08-06  6:30             ` Takashi Iwai
2014-08-06 12:38               ` Takashi Iwai
2014-08-06 16:05                 ` Vincent Lejeune
2014-08-06 16:07                   ` Takashi Iwai
2014-08-06 17:07                     ` Vincent Lejeune
2014-08-07  8:01                       ` Takashi Iwai
2014-08-07 17:13                         ` Vincent Lejeune
2014-08-03 21:11 Vincent Lejeune

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=20131205092059.52bd39f7@sarah.home.spacevs.com \
    --to=geoff@spacevs.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    /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).