Question: what is non pv work?
Answer: Non-PV work can be, e.g. electrical work (think electrochemistry). From this, assuming that the process performed is reversible (in thermal equilibrium the whole way through), qrev=TdS , so: dG=qrevTdS +δwnon-PVwrev,PV−PdV +PdV +VdP−TdS −SdT.