To give a piece of one’s mind is to scold somebody.
1. Mr. Surendranath gave his son a piece of his mind when he heard of his bullying manners.
2. The boss gave the accountant a piece of his mind on finding numerous errors in the balance sheets