Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

enabling DMA in FreeBSD

  • 25-05-2003 10:55pm
    #1
    Registered Users, Registered Users 2 Posts: 2,518 ✭✭✭


    I'm trying to enable DMA mode for two drives in FreeBSD (one cdrw and one dvd).

    The DVD drive is master on the 2nd ide channel and the cdrw is a slave; they're both currently in programmed io mode:
    acd0: DVD-ROM <TOSHIBA DVD-ROM SD-M1202> at ata1-master PIO4

    acd1: CD-RW <CR-4804TE> at ata1-slave PIO3

    Now i've tried setting DMA with sysctl hw.ata.atapi_dma=1 but it says the variable is read only, wont do it through single user mode or sysctl.conf either :/

    Any one managed to get this working?..the drives run in DMA mode in windows so I'm pretty sure they supoort it.

    (running FreeBSD 4.8)


Comments

  • Closed Accounts Posts: 99 ✭✭QBall


    AFAIK you can set hw.ata.atapi_dma from /boot/loader.conf

    Also, I'm not 100% sure but you may have to quote the 1 when you put it in loader.conf. (i.e. hw.ata.atapi_dma="1")

    /me goes off to look at the docs again...

    [edit]
    atacontrol(8) may be what you're looking for.
    [/edit]


  • Registered Users, Registered Users 2 Posts: 1,766 ✭✭✭hamster


    Not sure about FreeBsd but generally:

    hdparm -d1 device_of_your_drive_that_supplies_video_data

    similar line here: http://oreilly.linux.com/pub/a/linu.../29/hdparm.html


  • Closed Accounts Posts: 99 ✭✭QBall


    AFAIK FreeBSD has no hdparm. (It's not on my copy of FreeBSD 5.0 and www.freebsd.org doesn't have a man page for it.)

    You use the sysctls and/or atacontrol(8).

    Then again, I've never gone about enabling DMA on my machine, mainly cos I don't really need it, so I may be open to correction.


  • Registered Users, Registered Users 2 Posts: 2,518 ✭✭✭Hecate


    Yep atacontrol seemed to work fine.


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    Originally posted by QBall
    Then again, I've never gone about enabling DMA on my machine, mainly cos I don't really need it, so I may be open to correction.

    You don't 'need' DMA.... what's that... like saying 'no thanks' to SCSI hard disks, or free CPU upgrades?

    *ahem*.


  • Advertisement
  • Closed Accounts Posts: 99 ✭✭QBall


    Originally posted by Typedef
    You don't 'need' DMA.... what's that... like saying 'no thanks' to SCSI hard disks, or free CPU upgrades?

    *ahem*.

    *ahem* yourself.

    Things I do on my laptop:
    Check my mail.
    Browse the web.
    Program.

    Which one of those benefits noticeably from having DMA enabled? (Hint: None of them)

    I'll get round to enabling DMA at some stage but it's not exactly high on the priority list. (Getting ACPI to work under FreeBSD and stopping Win2K freezing are though.)


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    Shrug.

    If you want to get decent reads from your hard disk then DMA matters.

    Say you wanted to recompile your kernel, or send an email with a five megabyte attachment.

    In such instances DMA matters.


Advertisement