Tech Mahindra, Mahindra & Mahindra, Kotak Mahindra Bank, Infosys, HCL Technologies and State Bank of India were among the major gainers