Most of your query related to Dell Server so ideally you should check with Dell support.
This is HPE tech forum so I can think of below guide which will give some idea,
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c01861120
Coming to MSA2040 Compatibility check for Redhat Linux 7 and with HBA QLE2562 I found below link which will help you to get information for driver/firmware/BIOS version required,
https://h20272.www2.hpe.com/spock/Content/ConfigurationSetDetailView.aspx?Id=91049&FromCache=1
Hope the above information helps