lkml.org 
[lkml]   [2006]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: USB 2.0 ehci failure with large amount of RAM (4GB) on x86_64
    Like I said in my previous message, I am not a kernel developer.  I am
    a programmer though, so I thought I'd give your suggestions a try.

    I added 1 line to drivers/usb/host/ehci-pci.c which sets the DMA mask,
    and now it seems to work with ehci loaded and with 4 GB of RAM.
    Unfortunately, I don't really understand what I did. Perhaps you have
    a better idea what this is doing and if it is correct.

    case PCI_VENDOR_ID_NVIDIA:
    /* NVidia reports that certain chips don't handle
    * QH, ITD, or SITD addresses above 2GB. (But TD,
    * data buffer, and periodic schedule are normal.)
    */

    dma_set_mask(hcd->self.controller, DMA_31BIT_MASK); /* I added this line */

    switch (pdev->device) {
    case 0x003c: /* MCP04 */
    case 0x005b: /* CK804 */
    case 0x00d8: /* CK8 */
    case 0x00e8: /* CK8S */
    if (pci_set_consistent_dma_mask(pdev,
    DMA_31BIT_MASK) < 0)
    ehci_warn(ehci, "can't enable NVidia "
    "workaround for >2GB RAM\n");
    break;
    }
    break;
    }
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-05-10 07:40    [W:0.020 / U:61.332 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site