Upton's 2-run homer lifts D-backs to 9-7 win