Markets ended Tuesday on a subdued note, with benchmark indices eking out marginal gains amidst a volatile trading session. However, blue chip stocks managed to nudge the market sentiment in a slightly upward direction, thanks to some heavyweight players like HDFC Bank, TCS, Reliance and Maruti Suzuki.