Please read https://github.com/BitSyncom/cgminer/blob/avalon/driver-avalon.c#L878, 0x7fffffff is not right. there are 240 chips in avalon, once the chip found nonce. it will return back. so it's not 0x7fffffff.