[#4639] Unable to request sport rx dma channel on /dev/sport1

Document created by Aaronwu Employee on Aug 29, 2013
Version 1Show Document
  • View in full screen mode

[#4639] Unable to request sport rx dma channel on /dev/sport1

Submitted By: Jean-Christian de Rivaz

Open Date

2008-11-12 08:38:07     Close Date

2009-01-13 06:20:52

Priority:

Medium High     Assignee:

Cliff Cai

Status:

Closed     Fixed In Release:

N/A

Found In Release:

snaps     Release:

SVN 5501

Category:

Drivers     Board:

EZKIT Lite

Processor:

BF561     Silicon Revision:

0.5

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

App binary format:

N/A     

Summary: Unable to request sport rx dma channel on /dev/sport1

Details:

 

SVN HEAD kernel 2.6.28 bfin_sport.c cannot use DMA. The /dev/sportx can be opened, but the ioctl that set the DMA fail, as show this strace lines:

 

open("/dev/sport1", O_RDWR)             = 3

ioctl(3, SNDCTL_DSP_SYNC or SPORT_IOC_CONFIG, 0x391f944) = -1 EFAULT (Bad address)

 

The console show this message at this time:

 

Unable to request sport rx dma channel

 

And when the device is closed the console show this:

 

Trying to free already-free IRQ 33

Trying to free already-free IRQ 323

 

The last kernel that I have tested working the right way is dated of Wed Oct 29 02:50:47 2008 +0000 with commit 8cc4ca6af3cac101fe29b02002279b7570b3bcc1 (SVN 5501).

 

Follow-ups

 

--- Mike Frysinger                                           2009-01-08 10:07:03

can you try latest trunk ?  i think i know what the issue was, but it's been

resolved in the core dma code since ...

 

--- Jean-Christian de Rivaz                                  2009-01-13 05:45:20

I have done a new test with the last version below and it work fine.

Thanks for the fix. You can close this report.

 

Linux blackfin 2.6.28-ADI-2009R1-pre-gaec784e #1 Tue Jan 13 11:41:08 CET 2009

blackfin unknown

 

commit aec784ea51b3a0f44654a4a8ec034d171fc73ec6

Author: grace <grace@526b6c2d-f592-4532-a319-5dd88ccb003d>

Date:   Tue Jan 13 09:02:58 2009 +0000

 

    [#2443] Add in cflag to support mlong-calls

    for kgdb_test.

   

   

    git-svn-id: svn://localhost/svn/linux-kernel/trunk@6004

526b6c2d-f592-4532-a319-5dd88ccb003d

 

--- Mike Frysinger                                           2009-01-13 06:20:52

great ... thanks for testing

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes