Ignore:
Timestamp:
Jan 1, 2021, 11:45:33 PM (5 years ago)
Author:
Paul Smedley
Message:

Remove some logging messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/lib32/pci.c

    r615 r621  
    205205        pcidev->dev.dma_mask = &pcidev->dma_mask;
    206206        pcidev->dev.coherent_dma_mask = 0xffffffffull;
    207 pr_warn("params set");
    208207
    209208        // Subsystem ID
     
    652651  dprintf(("pci_alloc_consistent %d mask %x", size, (hwdev) ? hwdev->dma_mask : 0));
    653652  if (hwdev == NULL || hwdev->dma_mask != 0xffffffff) {
    654   dprintf(("pci_alloc_consistent"));
    655 pr_warn("dma_mask = %x",hwdev->dma_mask);
    656653    //try not to exhaust low memory (< 16mb) so allocate from the high region first
    657654    //if that doesn't satisfy the dma mask requirement, then get it from the low
    658655    //region anyway
    659656    if(hwdev->dma_mask > 0x00ffffff) {
    660   dprintf(("pci_alloc_consistent2"));
    661657      order = __compat_get_order(size);
    662   dprintf(("pci_alloc_consistent3"));
    663658      ret = (void *)__get_free_pages(gfp|GFP_DMAHIGHMEM, order);
    664   dprintf(("pci_alloc_consistent4"));
    665659      *dma_handle = virt_to_bus(ret);
    666660      if(*dma_handle > hwdev->dma_mask) {
    667   dprintf(("pci_alloc_consistent5"));
    668661        free_pages((unsigned long)ret, __compat_get_order(size));
    669   dprintf(("pci_alloc_consistent6"));
    670662        //be sure and allocate below 16 mb
    671663        gfp |= GFP_DMA;
    672664        ret = NULL;
    673665      }
    674   dprintf(("pci_alloc_consistent6a"));
    675666    }
    676667    else { //must always allocate below 16 mb
    677   dprintf(("pci_alloc_consistent7"));
    678668      gfp |= GFP_DMA;
    679669    }
    680   dprintf(("pci_alloc_consistent7a"));
    681   }
    682   dprintf(("pci_alloc_consistent8"));
     670  }
    683671  if(ret == NULL) {
    684   dprintf(("pci_alloc_consistent9"));
    685672    ret = (void *)__get_free_pages(gfp, __compat_get_order(size));
    686673  }
    687   dprintf(("pci_alloc_consistent10"));
    688674  if (ret != NULL) {
    689   dprintf(("pci_alloc_consistent11"));
    690675    memset(ret, 0, size);
    691676    *dma_handle = virt_to_bus(ret);
     
    749734int dma_supported(struct device *dev, u64 mask)
    750735{
    751 pr_warn("dma_supported");
    752736  return 1;
    753737}
     
    755739int dma_set_coherent_mask(struct device *dev, u64 mask)
    756740{
    757 pr_warn("dma_set_coherent_mask");
    758741        /*
    759742         * Truncate the mask to the actually supported dma_addr_t width to
     
    771754int dma_set_mask(struct device *dev, u64 mask)
    772755{
    773 pr_warn("dma_set_mask");
    774756        /*
    775757         * Truncate the mask to the actually supported dma_addr_t width to
Note: See TracChangeset for help on using the changeset viewer.