Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05fb9629 authored by Steve Wise's avatar Steve Wise Committed by Roland Dreier
Browse files

RDMA/cxgb4: Log HW lack-of-resource errors



This helps debug cases where HW resources are depleted.

Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 0e42c1f4
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -311,6 +311,9 @@ u32 c4iw_pblpool_alloc(struct c4iw_rdev *rdev, int size)
{
{
	unsigned long addr = gen_pool_alloc(rdev->pbl_pool, size);
	unsigned long addr = gen_pool_alloc(rdev->pbl_pool, size);
	PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size);
	PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size);
	if (!addr && printk_ratelimit())
		printk(KERN_WARNING MOD "%s: Out of PBL memory\n",
		       pci_name(rdev->lldi.pdev));
	return (u32)addr;
	return (u32)addr;
}
}


@@ -370,6 +373,9 @@ u32 c4iw_rqtpool_alloc(struct c4iw_rdev *rdev, int size)
{
{
	unsigned long addr = gen_pool_alloc(rdev->rqt_pool, size << 6);
	unsigned long addr = gen_pool_alloc(rdev->rqt_pool, size << 6);
	PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size << 6);
	PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size << 6);
	if (!addr && printk_ratelimit())
		printk(KERN_WARNING MOD "%s: Out of RQT memory\n",
		       pci_name(rdev->lldi.pdev));
	return (u32)addr;
	return (u32)addr;
}
}