PHOENIX -- Yasmani Grandal homered and drove in four runs, and pinch hitter Will Venable hit a two-run homer as the San Diego Padres avoided a three-game series sweep with a 7-4 victory over the Arizona Diamondbacks at Chase Field on Sunday.

Grandal hit a sacrifice fly in the first inning and added a three-run homer in the fifth to help right-hander Ian Kennedy (10-11) to his first victory at Chase Field since being traded from Arizona on July 31, 2013.

Grandal's 11th homer of the season gave the Padres a 5-0 lead off Arizona right-hander Chase Anderson (7-6).

Venable homered with one out in the eighth inning.

Pinch hitter Cliff Pennington homered and catcher Miguel Montero added a two-run single for Arizona (55-76), which had a two-game winning streak broken.

Second baseman Aaron Hill and right fielder David Peralta had two hits for the Diamondbacks.

Shortstop Alexi Amarista had two hits and left fielder Seth Smith had an RBI groundout in the first inning for the Padres (60-69), who had lost five of six.

Right-hander Joaquin Benoit pitched a 1-2-3 ninth inning for his eighth save.

Kennedy is 26-13 with a 3.71 ERA in 68 starts at Chase Field. He was 21-4 for the D-backs in 2011, when he finished fourth in the National League Cy Young Award voting.

San Diego second baseman Yangervis Solarte and right fielder Rymer Liriano singled to open the game and moved up on a passed ball by Montero before Smith's groundout and Grandal's sacrifice fly made in 2-0.

Kennedy and Smith walked before Grandal's two-out homer in the fifth. The first baseman went 4-for-22 in the first nine games of the Padres' 10-game road trip that ended Sunday.

Hill and Peralta singled and first baseman Mark Trumbo walked before Montero's two-out, two-run single in the fifth inning.

Arizona center fielder Ender Inciarte doubled in a run in the sixth inning to make it 5-3.

NOTES: San Diego 2B Jedd Gyorko (hamstring) did not play Sunday. He appeared only as a pinch hitter Saturday. ... Arizona 2B Aaron Hill will be used at third base the final five weeks of the season and SS Chris Owings also will play some second base, manager Kirk Gibson said. Hill played 35 games at third in 2005, his rookie season with the Toronto Blue Jays, but has not played there since. ... By winning the first two games of the San Diego series, Arizona has won all four series against the Padres this season. The teams meet again in San Diego from Sept. 1-4 and in Arizona from Sept. 12-14.