]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/infiniband/hw/mlx4/mr.c
mlx4_core: Write MTTs from CPU instead with of WRITE_MTT FW command
[linux-2.6-omap-h63xx.git] / drivers / infiniband / hw / mlx4 / mr.c
index 85ae906f1d12815d1f4d207db071f1c4432dc3f5..734ec2bd15cd58229abe5fb1e59f1503eada5a94 100644 (file)
@@ -96,11 +96,10 @@ int mlx4_ib_umem_write_mtt(struct mlx4_ib_dev *dev, struct mlx4_mtt *mtt,
                                pages[i++] = sg_dma_address(&chunk->page_list[j]) +
                                        umem->page_size * k;
                                /*
-                                * Be friendly to WRITE_MTT firmware
-                                * command, and pass it chunks of
-                                * appropriate size.
+                                * Be friendly to mlx4_write_mtt() and
+                                * pass it chunks of appropriate size.
                                 */
-                               if (i == PAGE_SIZE / sizeof (u64) - 2) {
+                               if (i == PAGE_SIZE / sizeof (u64)) {
                                        err = mlx4_write_mtt(dev->dev, mtt, n,
                                                             i, pages);
                                        if (err)