linux_dsm_epyc7002/drivers/infiniband/hw/mthca
Roland Dreier 44ea66879d [PATCH] IB/mthca: fix MTT allocation in mem-free mode
Fix bug in MTT allocation in mem-free mode.

I misunderstood the MTT size value returned by the firmware -- it is really
the size of a single MTT entry, since mem-free mode does not segment the MTT
as the original firmware did.  This meant that our MTT addresses ended up
being off by a factor of 8.  This meant that our MTT allocations might
overlap, and so we could overwrite and corrupt earlier memory regions when
writing new MTT entries.

We fix this by always using our 64-byte MTT segment size.  This allows some
simplification of the code as well, since there's no reason to put the MTT
segment size in a variable -- we can always use our enum value directly.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-04-16 15:26:24 -07:00
..
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_allocator.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_av.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_cmd.c [PATCH] IB/mthca: fix MTT allocation in mem-free mode 2005-04-16 15:26:24 -07:00
mthca_cmd.h [PATCH] IB/mthca: fix MTT allocation in mem-free mode 2005-04-16 15:26:24 -07:00
mthca_config_reg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_cq.c [PATCH] IB/mthca: only free doorbell records in mem-free mode 2005-04-16 15:26:21 -07:00
mthca_dev.h [PATCH] IB/mthca: fix MTT allocation in mem-free mode 2005-04-16 15:26:24 -07:00
mthca_doorbell.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_eq.c [PATCH] IB/mthca: fix format of CQ number for CQ events 2005-04-16 15:26:22 -07:00
mthca_mad.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_main.c [PATCH] IB/mthca: fix MTT allocation in mem-free mode 2005-04-16 15:26:24 -07:00
mthca_mcg.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_memfree.c [PATCH] IB/mthca: release mutex on doorbell alloc error path 2005-04-16 15:26:20 -07:00
mthca_memfree.h [PATCH] IB/mthca: map MPT/MTT context in mem-free mode 2005-04-16 15:26:13 -07:00
mthca_mr.c [PATCH] IB/mthca: fix MTT allocation in mem-free mode 2005-04-16 15:26:24 -07:00
mthca_pd.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_profile.c [PATCH] IB/mthca: fix MTT allocation in mem-free mode 2005-04-16 15:26:24 -07:00
mthca_profile.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_provider.c [PATCH] IB/mthca: clean up mthca_dereg_mr() 2005-04-16 15:26:17 -07:00
mthca_provider.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_qp.c [PATCH] IB/mthca: implement RDMA/atomic operations for mem-free mode 2005-04-16 15:26:23 -07:00
mthca_reset.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mthca_uar.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00