Slice the garlic and ginger roughly, quarter the onion, and put them all into the bowl of a food processor with the cardamom, cumin and coriander seeds, and whiz until finely chopped. Alternatively, use a bowl and a stick blender, or just chop everything very finely by hand.