Squached commits to bring in line with caf/ics_chocolate
This is a combination of 16 commits.

msm: kgsl: Check whether the ops pointer is valid.
msm: kgsl: Pass correct datatype to kgsl_mmu_ptpool_destroy()
msm: kgsl: Follow reverse sequence of init procedure during exit
msm: kgsl: Modify kgsl_core_exit to release resources carefully.
msm: kgsl: use correct 2d ringbuffer offset in resume
msm: kgsl: Add draw workaround commands after every 50 context switches
msm: kgsl: Issue packet to set shader bases on A20x/220 GPU
msm: kgsl: Add TLB flush for each submit in case of 8x25/7x2xa
msm: kgsl: Do bounds checking on user supplied GPU addresses
msm: kgsl: Increase REG_RBBM_CNTL value to 0xFFFF for A200
msm: kgsl: Update pagetable on context destruction for A20x
msm: kgsl: Set sysfs max clock for devices with no power scale policy
msm: kgsl: Turn off the CP_DEBUG dynamic clock
msm: kgsl: Turn off the CP_DEBUG dynamic clock /2nd
msm: kgsl: Add CP_WAIT_FOR_IDLE packet before updating timestamp
msm: kgsl: Add cache flush for A20x