Pompey exited the Emirates FA Cup at Bristol City, despite causing their Championship hosts plenty of problems.
Callum Johnson netted his first goal for the club just before the break to cancel out Famara Diedhiou's opener.
And Kenny Jackett's side dominated in the second half, only for Chris Martin's fine late strike to secure a 2-1 victory for the Robins.