A compound of formula I, or a pharmaceutically acceptable salt and/or solvate thereof: wherein X is selected from CR 4 R 5, O, S, S, SO 2 and NR 4; X 1, X 2 and X 3 are independently selected from CR 6 and N, or X 2 and X 3 are linked to form, together with the carbon atoms to which they are attached, a 3-8-membered heterocycloalkyl or heteroaromatic ring, both of which optionally contain one to two additional heteroatoms selected from O, S, S, SO 2 and NR 7; Cy 1 is selected from phenyl and C 5-6 heteroaryl, both of which are unsubstituted or substituted with one to three substituents selected from halo, C 1-6 alkyl and OC 1-6 alkyl; R 1 is selected from C NR 8 R 9, C OR 8, CN and R 2 and R 3 are independently selected from H, C 1-10 alkyl and C 1-6 alkylene-O-C 1-6 alkyl, or R 2 and R 3 are linked to form, together with the nitrogen atom to which they are attached, a 3-10-membered heterocycloalkyl or heteroaromatic ring, both of which optionally contain one to two additional heteroatoms selected from O, S, S, SO 2, NH and NR 10, and both of which are unsubstituted or substituted with one to four substituents selected from R 11; R 4 and R 5 are independently selected from H and C 1-6 alkyl; R 6 is selected from H, OH, OC 1-6 alkyl, C 1-6 alkyl and halo; R 7 is selected from H and C 1-6 alkyl; R 8 and R 9 are independently selected from H and C 1-6 alkyl; R 10 is selected from C 1-10 alkyl, ZC 3-10 cycloalkyl, ZC 3-10 heterocycloalkyl, ZC 6-10 aryl and ZC 5-10 heteroaryl, each of which is unsubstituted or substituted with one to three substituents selected from C 1-6 alkyl, OC 1-6 alkyl, OH and halo; R 11 is selected from C 1-10 alkyl, OC 1-6 alkyl, OH, C 1-6 alkylene-O-C 1-6 alkyl, C 1-10 alkylene-OH C 1-10 alkylene 2 and halo; Z is selected from a direct bond and C 1-6 alkylene; n and m are independently selected from 0, 1, 2 and 3; and all alkyl and alkylene groups are optionally fluoro-substituted. X is selected from CR 4 R 5, O, S, S, SO 2 and NR 4; X 1, X 2 and X 3 are independently selected from CR 6 and N, or X 2 and X 3 are linked to form, together with the carbon atoms to which they are attached, a 3-8-membered heterocycloalkyl or heteroaromatic ring, both of which optionally contain one to two additional heteroatoms selected from O, S, S, SO 2 and NR 7; Cy 1 is selected from phenyl and C 5-6 heteroaryl, both of which are unsubstituted or substituted with one to three substituents selected from halo, C 1-6 alkyl and OC 1-6 alkyl; R 1 is selected from C NR 8 R 9, C OR 8, CN and R 2 and R 3 are independently selected from H, C 1-10 alkyl and C 1-6 alkylene-O-C 1-6 alkyl, or R 2 and R 3 are linked to form, together with the nitrogen atom to which they are attached, a 3-10-membered heterocycloalkyl or heteroaromatic ring, both of which optionally contain one to two additional heteroatoms selected from O, S, S, SO 2, NH and NR 10, and both of which are unsubstituted or substituted with one to four substituents selected from R 11; R 4 and R 5 are independently selected from H and C 1-6 alkyl; R 6 is selected from H, OH, OC 1-6 alkyl, C 1-6 alkyl and halo; R 7 is selected from H and C 1-6 alkyl; R 8 and R 9 are independently selected from H and C 1-6 alkyl; R 10 is selected from C 1-10 alkyl, ZC 3-10 cycloalkyl, ZC 3-10 heterocycloalkyl, ZC 6-10 aryl and ZC 5-10 heteroaryl, each of which is unsubstituted or substituted with one to three substituents selected from C 1-6 alkyl, OC 1-6 alkyl, OH and halo; R 11 is selected from C 1-10 alkyl, OC 1-6 alkyl, OH, C 1-6 alkylene-O-C 1-6 alkyl, C 1-10 alkylene-OH C 1-10 alkylene 2 and halo; Z is selected from a direct bond and C 1-6 alkylene; n and m are independently selected from 0, 1, 2 and 3; and all alkyl and alkylene groups are optionally fluoro-substituted.