Programming an atmega328p via raspberry pi gpio and avrdude incompatible with logic level shifter?

It's possible that information about the specific type of level shifter you are using might be relevant. If you are using a module you could post a link to where you bought it from.