I had that. Replacing the HP pump fixed it. As best I can figure, one of the pump valve modules was failing.
Mine would do it worst when cold. It settled when warm. It progressively got worse, until it would shake intermittently at idle like it had a misfire, even warm. Sometimes it would run fine, sometimes rough.
My HP pump started to leak. I replaced it (exchange overhauled unit) to fix the leak and all the roughness went away.
Rather than randomly replacing your pump (expensive part) based on a post from a random bloke on the internet, you might be wise to remove the HP pump and get it tested.
Sent from my moto g(
plus using Tapatalk