Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried it on HPE Smart Array P204i-b SR Gen10 #41

Open
MeisterLone opened this issue Feb 17, 2024 · 1 comment
Open

Tried it on HPE Smart Array P204i-b SR Gen10 #41

MeisterLone opened this issue Feb 17, 2024 · 1 comment

Comments

@MeisterLone
Copy link

[root@localhost hpsahba]# ./hpsahba -i /dev/sg1
VENDOR_ID='HPE'
PRODUCT_ID='P204i-b SR Gen10'
BOARD_ID='0x0701103c'
SOFTWARE_NAME=''
HARDWARE_NAME=''
RUNNING_FIRM_REV='4.11'
ROM_FIRM_REV='4.11'
REC_ROM_INACTIVE_REV='4.11'
YET_MORE_CONTROLLER_FLAGS='0x3a51a214'
NVRAM_FLAGS='0x00'
HBA_MODE_SUPPORTED=1
HBA_MODE_ENABLED=0

Scared to try enable HBA mode on this, since this was only tried on old controllers... really surprised it was even able to get that info dump on Gen10 hardware

@MeisterLone
Copy link
Author

MeisterLone commented Feb 17, 2024

Curiosity got the best of me and I ran the script on my Gen10 controller...

root@ubuntu:~/hpsahba# ./hpsahba -i /dev/sg0
VENDOR_ID='HPE'
PRODUCT_ID='P204i-b SR Gen10'
BOARD_ID='0x0701103c'
SOFTWARE_NAME=''
HARDWARE_NAME=''
RUNNING_FIRM_REV='4.11'
ROM_FIRM_REV='4.11'
REC_ROM_INACTIVE_REV='4.11'
YET_MORE_CONTROLLER_FLAGS='0x3a51a214'
NVRAM_FLAGS='0x08'
HBA_MODE_SUPPORTED=1
HBA_MODE_ENABLED=1

With the kernel patches loaded and the host rebooted, I saw no drives so I thought the script had no impact.
However I did notice something interesting- when HBA mode is enabled, the ssacli is NOT able to see a physical drive connected to the controller, but I dont see the drive in the OS either.

When HBA mode is switched off again, ssacli can see the drive. So it feels like it may be having some kind of effect, but ultimately it does not work.

There is a flag on my 520 sector formatted drive in ssacli "Exposed to OS: No", so probably there is something else to be patched to just set the drive to be exposed in its 'failed' state, since this is a mixed mode controller.

Perhaps the author can share some details on how he reverse engineered/debugged the firmware- were you able to compare nvram between controllers that had HBA flag set and controllers that didnt? Or did you look at the firmware itself..? Some advice would be helpful, I am interested in RE this thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant