You must contact HP and ask them what processors are supported on their BIOS.
For a processor upgrade, the new processor must be socket, BIOS, and chipset compatible.
And, you may not be able to upgrade if your processor is soldered to the motherboard, which means it is using a BGA socket. Your processor may well be soldered to the motherboard:
So, contact HP and as them.
Lastly, your graphics situation will not change, and you will not be supported under Windows 10 (if that is your goal).
This message was posted on behalf of Intel Corporation
I agreed, your best contact support it is HP as they are more familiar with your system and how the components interact with each other.