All toilets whining when refilling!
Sounds like a pressure issue to me since multiple toilets and when you open the tap the noise stops. Unless plumbing work has just been done that could have debris plugging only the upstairs fill valves I would think your pressure has changed.