You enable the gratuitous ARP feature on a per VLAN basis, not on a per port basis. The validation is done for all gratuitous ARP packets received on a VLAN in which this feature is enabled irrespective of the port in which the packet is received.
The sender IP is the same as the switch VLAN IP address and the sender MAC address is not the switch MAC address.
The sender IP is the same as the IP of a static entry in the ARP table and the sender MAC address is not the static entry's MAC address.
When the switch generates an ARP packet, the switch generates logs and traps.