We extend a global version of Gehring lemma in Orlicz spaces, proved by T. Iwaniec, from the Euclidean case to the setting of spaces of homogeneous type.