Do you use a comma before the word whose?

It depends.

a) If the phrase following the whose cannot stand without it, then do not use comma.

Ex, Joe Santos, who is my uncle, knows everyone in town.

b) If the phrase following the whose can stand alone without it, then use comma.

Ex, Students who do failing work will not pass.