Although Davis did not add to his major league-leading home run total of 46, he raised his batting average to .304. His 118 RBIs are 33 more than his previous career high.
Ten of Feldman's first 12 pitches were out of the strike zone. He walked two in the first inning and yielded an RBI single to Alberto Callaspo.
Baltimore responded in the bottom half. Successive singles by Machado, Davis and Adam Jones produced a run, and Matt Wieters followed with a sacrifice fly.
The Orioles made it 5-1 in the second. Roberts hit an RBI single, Machado delivered a run-scoring flyout and Davis foiled a shift to the right side by lining an RBI single through the infield and into left field.
A walk, a double by McLouth and another sacrifice fly by Machado made it 6-1 in the fourth and ended Gray's afternoon. His ERA jumped from 1.44 to 3.18.
"I don't think anybody goes through their career without getting hit some," manager Bob Melvin said. "He'll probably be better for it next time."
Hardy hit a solo shot in the sixth and Donaldson connected with a man on in the eighth.
Markakis and McLouth homered in the bottom of the eighth. Markakis' third-inning double ended a run of 126 at-bats without an extra-base hit.
NOTES: Oakland RF Josh Reddick left with an injured right wrist. "See where we're at tomorrow, re-evaluate and go from there," he said. ... The Athletics head to Detroit, where they start a four-game series Monday night against the AL Central leaders. Baltimore gets Monday off before opening an important three-game set against AL East-leading Boston at Fenway Park. ... Melvin left Oakland OF Yoenis Cespedes out of Sunday's starting lineup to give the struggling slugger an "off day mentally just as much as physically." Cespedes was 0 for 9 in the first two games of the series. . Orioles RHP Jason Hammel (flexor strain) threw around 60 pitches on the side Sunday and will begin his rehabilitation assignment Thursday with Triple-A Bowie. ... Baltimore finished 21-12 against AL West, including 5-2 against Oakland.
Cut pounds of stomach fat every week by using this 1 weird old tip.