[LU-17039] Cleanup solution for broken Mellanox ib_dma_map_sg() Created: 18/Aug/23  Updated: 01/Sep/23  Resolved: 01/Sep/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Improvement Priority: Minor
Reporter: Shaun Tancheff Assignee: Shaun Tancheff
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Currently the solution to open code the inline function: ib_dma_map_sg() can be simplified by #undef CONFIG_INFINIBAND_VIRT_DMA in the case where a broken ib_dma_map_sg() is discovered.

CONFIG_INFINIBAND_VIRT_DMA is a kernel configuration option that in some cases
conflicts with the configuration of the externally provided OFED stack.

The #undef CONFIG_INFINIBAND_VIRT_DMA should be restricted to broken implementations [MOFED/OPA] and only when building against the external stack.

An in-kernel broken ib_dma_map_sg suggests that the kernel is badly misconfigured and not a Lustre specific problem.



 Comments   
Comment by Gerrit Updater [ 18/Aug/23 ]

"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51979
Subject: LU-17039 build: cleanup ib_dma_map_sg
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 18f2f8d27135c68bf65d37c844e84d8b3f00705a

Comment by Gerrit Updater [ 31/Aug/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51979/
Subject: LU-17039 build: cleanup ib_dma_map_sg
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a897803cc75ff9770105512acf1a81e402db7736

Comment by Peter Jones [ 01/Sep/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:32:06 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.