False spark knock detection is minimized for a displacement on demand engine having activated and deactivated modes. The engine is operated in the activated mode. Knock detection is performed on all cylinders of the engine during the activated mode. The engine is operated in the deactivated mode. Knock detection is performed on activated cylinders during the deactivated mode. Knock detection is disabled for deactivated cylinders during the deactivated mode.