Files
linux/drivers/net
Vladimir Sokolovsky 2d92865158 mlx4_core: Use MOD_STAT_CFG command to get minimal page size
There was a bug in some versions of the mlx4 driver in
mlx4_alloc_fmr(), which hardcoded the minimum acceptable page_shift to
be 12.  However, new ConnectX firmware can support a minimum
page_shift of 9 (log_pg_sz of 9 returned by QUERY_DEV_LIM) -- so with
old drivers, ib_fmr_alloc() would fail for ULPs using the device
minimum when creating FMRs.

To preserve firmware compatibility with released mlx4 drivers, the
firmware will continue to return 12 as before for log_page_sz in
QUERY_DEV_CAP for these drivers.  However, to enable new drivers to
take advantage of the available smaller page size, the mlx4 driver now
first sets the log_pg_sz to the device minimum by setting a
log_page_sz value to 0 via the MOD_STAT_CFG command and then reading
the real minimum via QUERY_DEV_CAP.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-07-14 23:48:53 -07:00
..
2008-01-28 15:10:29 -08:00
2008-07-14 23:48:53 -07:00
2008-06-27 17:22:08 -07:00
2008-03-26 00:18:44 -04:00
2008-07-10 14:47:50 +01:00
2008-07-10 14:47:51 +01:00
2008-03-17 08:11:03 -04:00
2008-01-28 15:04:05 -08:00
2008-06-10 18:20:17 -04:00
2007-10-10 16:51:57 -07:00
2008-03-26 00:18:43 -04:00
2007-07-10 12:41:08 -04:00
2008-01-28 15:07:12 -08:00
2007-10-10 16:55:27 -07:00
2008-01-28 15:03:59 -08:00
2008-03-26 00:18:43 -04:00
2008-05-22 06:20:14 -04:00
2007-10-10 16:51:43 -07:00
2008-04-29 01:56:14 -04:00
2008-01-31 19:27:17 -08:00
2008-02-28 11:51:50 -08:00
2008-06-12 14:30:28 -07:00
2008-02-28 11:51:50 -08:00
2008-06-12 14:30:28 -07:00
2008-06-12 14:30:28 -07:00
2008-01-04 00:47:04 -08:00
2008-05-22 06:20:02 -04:00
2008-03-26 00:18:43 -04:00
2007-02-09 16:23:17 +00:00
2008-01-18 14:44:33 -05:00
2008-02-01 20:54:03 +11:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:13 -07:00
2008-01-28 15:07:59 -08:00
2008-04-29 01:56:01 -04:00
2008-06-17 23:07:29 -04:00
2007-10-19 11:53:42 -07:00
2008-05-01 08:08:36 -07:00
2008-04-29 08:06:27 -07:00
2008-01-28 15:07:12 -08:00
2008-02-03 04:26:12 -08:00
2007-10-10 16:50:46 -07:00
2008-03-17 08:11:41 -04:00
2008-06-27 01:28:31 -04:00
2008-01-28 15:05:53 -08:00
2008-04-25 02:08:51 -04:00
2008-01-28 15:04:05 -08:00
2007-10-10 16:51:13 -07:00
2008-07-02 11:05:00 +02:00
2008-01-28 15:07:12 -08:00
2007-10-19 11:53:42 -07:00
2007-04-28 11:01:05 -04:00
2008-02-03 04:28:10 -08:00
2008-03-17 07:56:33 -04:00
2008-03-26 00:18:04 -04:00
2008-03-26 00:18:00 -04:00
2007-10-23 21:28:40 -04:00
2008-01-28 15:07:56 -08:00
2008-03-05 16:34:41 -06:00
2008-05-22 06:03:29 -04:00
2008-01-28 15:11:27 -08:00
2008-06-20 21:58:02 -07:00
2008-01-28 15:08:00 -08:00
2008-01-28 15:03:59 -08:00
2007-10-15 14:29:48 -04:00
2008-04-16 20:41:44 -04:00
2008-05-22 06:18:55 -04:00
2008-05-30 22:07:17 -04:00
2008-04-27 18:19:08 +02:00
2008-01-28 15:03:59 -08:00
2007-10-16 21:10:29 -04:00
2008-06-17 23:07:03 -04:00
2008-05-13 01:31:44 -04:00
2008-01-28 15:11:27 -08:00
2008-04-30 08:29:47 -07:00
2008-01-28 15:03:59 -08:00
2007-05-04 17:59:08 -07:00
2007-07-16 15:02:47 +02:00
2008-04-16 20:06:50 -04:00
2007-10-10 16:51:13 -07:00
2008-02-03 04:26:15 -08:00
2008-01-28 15:03:46 -08:00
2008-03-23 03:35:12 -07:00
2008-01-28 15:07:10 -08:00
2008-01-28 15:07:09 -08:00
2008-02-03 04:26:14 -08:00
2007-10-10 16:51:34 -07:00
2007-10-10 16:51:34 -07:00
2008-06-09 15:41:33 -07:00
2006-11-22 14:57:56 +00:00
2008-07-14 15:29:34 -06:00
2008-04-25 02:45:23 -04:00