summaryrefslogtreecommitdiffstats
tag namesent/mlx5_init_fix-v2 (fdc1f4773370811fd1423cc51b647ba2b4cf9930)
tag date2023-09-29 14:15:57 +0200
tagged byNiklas Schnelle <schnelle@linux.ibm.com>
tagged objectcommit a2a3f07294...
downloadlinux-sent/mlx5_init_fix-v2.tar.gz
[net] net/mlx5: fix dma_alloc_coherent() call with wrong DMA coherent mask
Note: I ran into this while testing the linked series for converting s390x to use dma-iommu. The existing s390x specific DMA API implementation doesn't respect DMA masks and is thus not affected despite of course also only supporting DMA addresses above 4 GiB. To: Saeed Mahameed <saeedm@nvidia.com> To: Leon Romanovsky <leon@kernel.org> To: Jason Gunthorpe <jgg@ziepe.ca> To: Matthew Rosato <mjrosato@linux.ibm.com> To: Joerg Roedel <joro@8bytes.org> To: Robin Murphy <robin.murphy@arm.com> To: "David S. Miller" <davem@davemloft.net> To: Eric Dumazet <edumazet@google.com> To: Jakub Kicinski <kuba@kernel.org> To: Paolo Abeni <pabeni@redhat.com> To: Shay Drory <shayd@nvidia.com> To: Moshe Shemesh <moshe@nvidia.com> To: Heiko Carstens <hca@linux.ibm.com> To: Alexander Gordeev <agordeev@linux.ibm.com> Cc: linux-s390@vger.kernel.org, Cc: netdev@vger.kernel.org Cc: linux-rdma@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> --- Changes in v2: - Instead of moving the whole mlx5_pci_init() only move the set_dma_caps() call so as to keep pci_enable_device() after the FW command interface initialization (Leon) - Link to v1: https://lore.kernel.org/r/20230928-mlx5_init_fix-v1-1-79749d45ce60@linux.ibm.com --- Niklas Schnelle (1): net/mlx5: fix calling mlx5_cmd_init() before DMA mask is set drivers/net/ethernet/mellanox/mlx5/core/main.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) --- base-commit: 6465e260f48790807eef06b583b38ca9789b6072 change-id: 20230928-mlx5_init_fix-c465b5cda327 Best regards,