Skip to content

Commit

Permalink
Merge pull request torvalds#280 from catalinii/latest
Browse files Browse the repository at this point in the history
Improve help message for failure to allocate DMA memory
  • Loading branch information
catalinii authored Apr 3, 2022
2 parents 85a2528 + 99efd97 commit 4420983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/pci/tbsci/tbsci.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,13 +933,13 @@ static int tbs_adapters_init(struct tbs_pcie_dev *dev)
tbsca->w_dmavirt = pci_alloc_consistent(dev->pdev, DMASIZE, &tbsca->w_dmaphy);
if (!tbsca->w_dmavirt)
{
printk(" allocate write memory failed\n");
printk("allocate write DMA memory failed, set coherent_pool=4M or higher\n");
goto fail;
}
tbsca->r_dmavirt = pci_alloc_consistent(dev->pdev, DMASIZE, &tbsca->r_dmaphy);
if (!tbsca->r_dmavirt)
{
printk(" allocate read memory failed\n");
printk("allocate read DMA memory failed, set coherent_pool=4M or higher\n");
goto fail;
}
tbsca->channel_index=i;
Expand Down

0 comments on commit 4420983

Please sign in to comment.