Page MenuHomeFreeBSD

mpi3mr: Divert WriteSame IOs which has unmap and ndob bit set to firmware if its transfer length exceeds firmware limit.
ClosedPublic

Authored by chandrakanth.patil_broadcom.com on Mar 21 2024, 12:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 12:40 PM
Unknown Object (File)
Wed, Jun 5, 11:02 AM
Unknown Object (File)
May 17 2024, 5:29 PM
Unknown Object (File)
May 10 2024, 12:37 PM
Unknown Object (File)
May 6 2024, 11:02 AM
Unknown Object (File)
Apr 26 2024, 4:22 AM
Unknown Object (File)
Apr 21 2024, 12:47 AM
Unknown Object (File)
Apr 6 2024, 12:47 PM
Subscribers
None

Details

Summary

Firmware advertise the transfer lenght for writesame commands to driver during init.
So for any writesame IOs with ndob and unmap bit set and transfer lengh is greater
than the max write same length specified by the firmware, then direct those commands
to firmware instead of hardware othewise hardware will break.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/modules/mpi3mr/Makefile
9

I don't understand this change. Can you explain why it is needed? It seems unrelated.

sys/modules/mpi3mr/Makefile
9

I have used it for get_unaligned_be32() API which is defined in <asm/unaligned.h> header file available in the linuxkpi.
debug flag -g is used for debug symbols.

@imp : Do you have further comments on this patch ? Are we good to push it to the tree ?

No further comments.

This revision is now accepted and ready to land.May 27 2024, 8:58 PM