After bouts of drama, HP’s turnaround is taking hold