hwc: Handle the broken pipe issue between hwc and ppdaemon

If broken pipe is detected, close and then re-establish the connection
between hwc and ppdaemon.
Acked-by: Ping Li <pingli@codeaurora.org>

Bug: 9850103
Change-Id: I68ff21b93ab5b40608ca9ab4951adaa9d75fa17e
Signed-off-by: Iliyan Malchev <malchev@google.com>
hwc: Resend the command after broken pipe is fixed

Bug: 9850103

Change-Id: Ia2ee8019394ce1397fe7eaf73a44a00b0b78e88c
Acked-by: Ping Li <pingli@codeaurora.org>
Merge tag 'android-4.3_r2.1' into cm-10.2

Android 4.3 release 2.1

Conflicts:
	Android.mk
	libgralloc/alloc_controller.cpp
	libgralloc/gpu.h

Change-Id: Ia7b060bf83fb16c5693259a5c0e2e0073b042ff8
Fix building for mako

The makefile assumes the lack of qcom make macros implies the mako,
which is incorrect in our case. Explicitly exclude the mako from
QCOM_BSP for now, as well as any device with TARGET_HAS_OLD_QCOM_BSP
set

Change-Id: I63e2d08f8c49c52e7cef8b7c1fd3e90b1b0307bd
Merge branch 'cm-10.2' of git://github.com/CyanogenMod/android_hardware_qcom_display into HEAD

Conflicts:
	libgralloc/alloc_controller.cpp

Change-Id: Ifa7ed9190fa4471d0552573ed8fcf75d700fcfd1