* [PATCH net-next] net/mlx5_core: Set log_uar_page_sz for non 4K page size architecture
@ 2015-08-05 16:05 clsoto
2015-08-06 11:01 ` Amir Vadai
0 siblings, 1 reply; 3+ messages in thread
From: clsoto @ 2015-08-05 16:05 UTC (permalink / raw)
To: davem; +Cc: netdev, brking, eli, amirv, Carol L Soto
From: Carol L Soto <clsoto@linux.vnet.ibm.com>
failed to configure the page size for architectures with page size
different than 4K.
Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
---
drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c
index 603a8b0..03aabdd 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c
@@ -391,6 +391,8 @@ static int handle_hca_cap(struct mlx5_core_dev *dev)
/* disable cmdif checksum */
MLX5_SET(cmd_hca_cap, set_hca_cap, cmdif_checksum, 0);
+ MLX5_SET(cmd_hca_cap, set_hca_cap, log_uar_page_sz, PAGE_SHIFT - 12);
+
err = set_caps(dev, set_ctx, set_sz);
query_ex:
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net/mlx5_core: Set log_uar_page_sz for non 4K page size architecture
2015-08-05 16:05 [PATCH net-next] net/mlx5_core: Set log_uar_page_sz for non 4K page size architecture clsoto
@ 2015-08-06 11:01 ` Amir Vadai
2015-08-07 22:56 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Amir Vadai @ 2015-08-06 11:01 UTC (permalink / raw)
To: clsoto@linux.vnet.ibm.com, davem@davemloft.net
Cc: netdev@vger.kernel.org, brking@linux.vnet.ibm.com, Eli Cohen,
Majd Dibbiny
On 8/5/2015 7:05 PM, clsoto@linux.vnet.ibm.com wrote:
> From: Carol L Soto <clsoto@linux.vnet.ibm.com>
>
> failed to configure the page size for architectures with page size
> different than 4K.
>
> Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
> ---
Please pull this patch into kernel 4.2
Fixes: 938fe83 ("net/mlx5_core: New device capabilities handling")
Acked-by: Amir Vadai <amirv@mellanox.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net/mlx5_core: Set log_uar_page_sz for non 4K page size architecture
2015-08-06 11:01 ` Amir Vadai
@ 2015-08-07 22:56 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2015-08-07 22:56 UTC (permalink / raw)
To: amirv; +Cc: clsoto, netdev, brking, eli, majd
From: Amir Vadai <amirv@mellanox.com>
Date: Thu, 6 Aug 2015 14:01:11 +0300
> On 8/5/2015 7:05 PM, clsoto@linux.vnet.ibm.com wrote:
>> From: Carol L Soto <clsoto@linux.vnet.ibm.com>
>>
>> failed to configure the page size for architectures with page size
>> different than 4K.
>>
>> Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
>> ---
>
> Please pull this patch into kernel 4.2
>
> Fixes: 938fe83 ("net/mlx5_core: New device capabilities handling")
> Acked-by: Amir Vadai <amirv@mellanox.com>
Applied to 'net', thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-07 22:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-05 16:05 [PATCH net-next] net/mlx5_core: Set log_uar_page_sz for non 4K page size architecture clsoto
2015-08-06 11:01 ` Amir Vadai
2015-08-07 22:56 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).