msm_fb: display: free borderfill pipe when ref_cnt reach 0

Borderfill pipe need to be kept as baselayer which is not
suppose to be freed at suspend. It only be freed when
ref_cnt reach 0 by "adb stop".

CRs-fixed: 429196
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
(cherry picked from commit 02df153b6c244a4cb8ca27627db720eb9b70810e)

Change-Id: Ic9080711131999b0fd2ab49fa74b15619856bcdb
Signed-off-by: Vivek Panwar <vpanwa@codeaurora.org>
msm: kgsl: Add GFP_NORETRY to the page_alloc flags and handle errors.

The most important thing for the memory allocator is to not crash
or otherwise behave badly during low memory situations. Adding
GFP_NORETRY keeps the OOM killer from being invoked making the 32MB
padding on the allocation redundant.  Remove the padding, add the flags
and go down the proper error path when alloc_pages() fails.

Change-Id: Ic0dedbadaf86e248b372b22cd3a41a5dabedb82e
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>

Conflicts:

	drivers/gpu/msm/kgsl_sharedmem.c

Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
Signed-off-by: Vivek Panwar <vpanwa@codeaurora.org>
Merge "msm_fb: display: free borderfill pipe when ref_cnt reach 0"
mmc: msm_sdcc: Hard reset controller on errors

For APQ8064 V2 (SDCC version = 0x06000018) doing a soft
reset on errors doesn't reset the state machine that
handles side-band signalling with SPS-BAM fully and can
lead to controller hang for the data transfers after
the reset.

Since there is no register interface to soft reset such
state machine inside the controller, we do hard reset of
the controller in case of errors. SDCC hard reset is
defined as assert and de-assert of asynchronous clock
reset line of the controller.

CRs-Fixed: 451632
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
(cherry picked from commit 96838fe5ae3afdd26de75fe32b545d5aa6f5c3c7)

Change-Id: I5a01bb3ed52dc7d4130a3ffe49d955415419ad67
Signed-off-by: Vivek Panwar <vpanwa@codeaurora.org>
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Merge "msm: kgsl: Add GFP_NORETRY to the page_alloc flags and handle errors."
Merge "mmc: msm_sdcc: Hard reset controller on errors"
Merge "msm_fb: display: free borderfill pipe when ref_cnt reach 0"
Merge "Merge "msm_fb: display: free borderfill pipe when ref_cnt reach 0""
Update copyright to The Linux Foundation

Change-Id: If8f7876fb93a40934ec79ca650674d4a1d92eebf
Signed-off-by: Duy Truong <dtruong@codeaurora.org>