What firmware is the card running? If not on the latest version, you may try to flash the latest version (as of now its 6.06). If it still doesn't work, I'll have to agree with the others and say get a card that is known to work with FreeNAS.
Yes I have already flashed to 6.06. the HBA mode seems to work since I can see all details of the hardware directly in Freenas. The only problem is the SMART service and as i mentioned in my previous post in output 2 as below I can see the devices are SMART supported and enabled but in output 1 there is an error. The only difference in the command is the channel number which is changed from one to zero.
I feel this is a hardware driver compatibility but this has HBA.
Output 1 :
root@freenas:~ # smartctl -i /dev/ciss1 -d cciss,l
smartctl 6.5 2016-05-07 r4318 [FreeBSD 11.0-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
www.smartmontools.org
/dev/ciss1: Option -d cciss,N requires N to be a non-negative integer
=======> VALID ARGUMENTS ARE: ata, scsi, nvme[,NSID], sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbprolific, usbsunplus, 3ware,N, hpt,L/M/N, cciss,N, areca,N/E, atacam, auto, test <=======
Use smartctl -h to get a usage summary
===================================================================
Output 2 :
root@freenas:~ # smartctl -i /dev/ciss1 -d cciss,0
smartctl 6.5 2016-05-07 r4318 [FreeBSD 11.0-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: HP
Product: EG000300JWEBF
Revision: HPD3
Compliance: SPC-4
User Capacity: 300,000,000,000 bytes [300 GB]
Logical block size: 512 bytes
Rotation Rate: 10500 rpm
Form Factor: 2.5 inches
Logical Unit id: 0x5000c5009faa939f
Serial number: W0K0NLBA
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Tue Oct 31 07:50:04 2017 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
root@freenas:~ #