Commit Graph

4336 Commits

Author SHA1 Message Date
zaclimon 98e5990a03 msm8960: IQService: Allow more processes to access IPC
As Android 7.0 has separated mediaserver into different processes,
one of them, mediacodec, cannot access to the IPC anymore.

Fix this by allowing more processes to be able to access it.

Based on msm8994:
https://android.googlesource.com/platform/hardware/qcom/display/+/android-7.0.0_r1/msm8994/libqservice/IQService.cpp#88

Change-Id: I6ef3f3eaa9015b399bf753837ffd53056c836f90
2019-04-19 16:08:13 +02:00
Dhivya Subramanian b76604250c copybit: Fix type conversion error for GCC 4.7
GCC 4.7 has stricter type conversion rules in copybit.cpp

Change-Id: I7f8572e2d9416ccb2ba17e707c7f75a2e69d69cf
2019-04-19 16:08:04 +02:00
Saurabh Shah 6dfb4c8795 msm8960: hwc: Do not use fb handle in hwc_prepare
Do not use fb handle in prepare. Use displayFrame for dimensions,
align them and hardcode format.

b/8316155 - Implement HWComposer 1.3 w/ virtual display support
Change-Id: I5c494a74a807d3a52a1c88257494b58c583700f5
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
2019-04-19 16:07:55 +02:00
Artem Borisov bf30ca71bb msm8960/8974/8084: Include string.h where it is necessary
Change-Id: If14f25659b3f898b19fde6c9d920998e80d19660
2019-01-19 21:20:53 +01:00
Naseer Ahmen ec86d06700 msm8960: copybit: Fix type conversion error for GCC 4.7
GCC 4.7 has stricter type conversion rules

Change-Id: I699cfe1ceafb5728fb8e6f34f7b1996d3c812e7e
2019-01-19 19:56:17 +01:00
Emmett Tsai 958f1d1c1c msm8960: hwc: remove retire fence
in frameworks/native deprecated the use
of retire fence, therefore retire fence
support has to be removed

depends:
hardware/qcom/msm8960: Ibe3200eb9e2d70fefbaa907089dbf4b4ce5809fe
android_kernel_google_msm: I19877296ac762e4d5c3162843ccaf5cc9a88ff1c

Change-Id: Iddb114b7752de38438fe6143a6f1798ecf844779
2019-01-05 11:22:16 +01:00
followmsi be2a5329d0 Android 9.0.0 release 21
-----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXAVt3QAKCRDorT+BmrEO
 eARuAJ9FXLWxLsE2bmt3Z+w2KPG4ZYVRTACdFc9CX1ko0ghgohfqD/v48l6gWmk=
 =7cWx
 -----END PGP SIGNATURE-----

Merge tag 'android-9.0.0_r21' into flo-aosp-p

Android 9.0.0 release 21
2019-01-03 14:58:29 +01:00
Emmett Tsai 12759fc641 msm8960: hwc: fix null point
Change-Id: I230a068381ae978a315222c91a3f647de2391ec9
2019-01-03 14:55:23 +01:00
Tom Marshall 8def73c018 hwc: Validate display ID in hwc interfaces
Validate the display ID before processing any calls from the
client.  This is needed to handle only the displays which are
supported by HWC

Adapted from commit of the same title in CAF msm8974 tree.

Original author: Arun Kumar K.R <akumarkr@codeaurora.org>

Change-Id: Iebeeabf791b5c53e811e1f4bb3d777ab0e4d0f47
2018-09-21 14:50:15 +02:00
followmsi 1f764fdd5b memtrack: Make memtrack HAL compatible for HIDL passthrough mode.
Change-Id: I965972b936f2098c2e692afa4db8743355140a2c
2018-09-21 14:20:02 +02:00
Martin Brabham 0d7b20f64c Include string.h
libgralloc: strerror needs string.h
libqdutils: strerror needs string.h
libcopybit: memcpy needs string.h

Bug: 72343089
Change-Id: I36226fd656d26c4d0486d1c99f2317376c0d08dd
2018-09-14 09:46:50 +02:00
Haynes Mathew George dcb016231e display: Fix deprecated log warning
Change-Id: Ib3cb65ea19fa21dca6626080f5117073f0a86766
2018-09-13 23:23:30 +02:00
android-build-team Robot 4d7a79a87b Merge cherrypicks of [4647037, 4647038, 4647883, 4647039, 4647933, 4648530, 4648550, 4648551, 4648552, 4648553, 4646931, 4646932, 4646933, 4646934, 4648391, 4647976, 4647977, 4647978, 4647526, 4646972, 4646935, 4646936, 4646937, 4646938, 4646939, 4646940, 4646941, 4648392, 4647509, 4648630, 4648631, 4647934] into pi-release-2
Change-Id: Ic47cdf21f68b6ca360bd640cd662349dda072a77
2018-07-27 18:47:51 +00:00
Courtney Goeltzenleuchter d1c08b13d3 Fix Buffer Overflow in Vendor Service display.qservice
Bug: 63145942
Test: adb shell vndservice call display.qservice 36 s16 sdlkfjsadlfkjasdf
Change-Id: I3fdf5ccd2bf4ed0fa980883fefdb57eb5fbfeee7
(cherry picked from commit 4050091844)
2018-07-27 18:43:41 +00:00
Courtney Goeltzenleuchter b239863f37 [automerger] Fix Buffer Overflow in Vendor Service display.qservice am: e10b84c30c am: ad1d6cec09 am: 2ba224564b am: 98a3c765db am: 37851e41a7
am: d8551433ff

Change-Id: I19e1d7539e4cbd4f47b06f37709c58b58d375f19
2018-07-16 14:44:51 -07:00
Courtney Goeltzenleuchter d8551433ff [automerger] Fix Buffer Overflow in Vendor Service display.qservice am: e10b84c30c am: ad1d6cec09 am: 2ba224564b am: 98a3c765db
am: 37851e41a7

Change-Id: I31b56cb4bb5f3fd5d658796170023726adf13ece
2018-07-16 14:42:00 -07:00
Courtney Goeltzenleuchter 37851e41a7 [automerger] Fix Buffer Overflow in Vendor Service display.qservice am: e10b84c30c am: ad1d6cec09 am: 2ba224564b
am: 98a3c765db

Change-Id: I54d792c228c82bd7eed24279d112c121c74ed175
2018-07-16 14:34:00 -07:00
TreeHugger Robot 9e45a258ff Merge "Fix Buffer Overflow in Vendor Service display.qservice" into pi-dev 2018-07-16 21:17:25 +00:00
android-build-team Robot 4fb1ecd923 Snap for 4807121 from 0296371991 to pi-release
Change-Id: I76f343253581eadb11aeea9a37228358e98be8bf
2018-05-27 07:26:23 +00:00
Gousemoodhin Nadaf 0296371991 hwc2: Night light causes major stuttering.
- Initialize transform matrix with an identity matrix.
- Use matrix when mode map is empty.
- Do not reapply mode if it is the same as before.
- Do not reapply hint if it is the same as before.

Bug: 68721781
Change-Id: Iac6d76ceded65b8527abf0b0f26ffc76479e5db9
2018-05-24 16:04:21 -07:00
Android Build Merger (Role) 98a3c765db [automerger] Fix Buffer Overflow in Vendor Service display.qservice am: e10b84c30c am: ad1d6cec09 am: 2ba224564b
Change-Id: Ia055391108f197fec5f913bb2feec1c01a07d7f6
2018-05-24 20:56:48 +00:00
Android Build Merger (Role) 2ba224564b [automerger] Fix Buffer Overflow in Vendor Service display.qservice am: e10b84c30c am: ad1d6cec09
Change-Id: Ibdc5d2a8e0c0b002ae4c4307be30dd5ff2a28fdf
2018-05-24 20:56:47 +00:00
Android Build Merger (Role) ad1d6cec09 [automerger] Fix Buffer Overflow in Vendor Service display.qservice am: e10b84c30c
Change-Id: Ib4786878ffca4021168d391d4a5423f25950b265
2018-05-24 20:56:46 +00:00
Courtney Goeltzenleuchter e10b84c30c Fix Buffer Overflow in Vendor Service display.qservice
Fix for msm8996.

Bug: 63145942
Test: adb shell vndservice call display.qservice 36 s16 sdlkfjsadlfkjasdf
Change-Id: I6021876bf774ed63fbe71cea56a13f9bf6cceda9
2018-05-24 14:55:28 -06:00
Courtney Goeltzenleuchter 4050091844 Fix Buffer Overflow in Vendor Service display.qservice
Bug: 63145942
Test: adb shell vndservice call display.qservice 36 s16 sdlkfjsadlfkjasdf
Change-Id: I3fdf5ccd2bf4ed0fa980883fefdb57eb5fbfeee7
2018-05-24 08:23:55 -06:00
android-build-team Robot d41b688be0 Snap for 4793185 from 37d3c4fab0 to pi-release
Change-Id: I102657619f9192f72d7a354abd51027dae5bc011
2018-05-20 07:22:36 +00:00
Ben Fennema 37d3c4fab0 Merge "display: msm8909w caf release LW.BR.4.0-00800-8x09w.0 for SD2100." into pi-dev 2018-05-18 23:32:14 +00:00
android-build-team Robot 3493052cbb Snap for 4778776 from 9711b52606 to pi-release
Change-Id: I092d455d94e683d8b1f58cf91c8b3e2534d5636f
2018-05-13 07:26:22 +00:00
TreeHugger Robot 9711b52606 Merge changes Id8595dcb,I50c4227d,Ic7b31bbd,I26ef3b1a,I4c9727ad into pi-dev
* changes:
  hwc2: Check for color modes support
  sdm: allow commits in doze_suspend as well.
  hwc: Fix request flag reset and Present() bailout
  sdm: hwc2: Add support for TWM entry and exit.
  hwc2: Determine virtual display presence based on target specific property
2018-05-11 00:07:42 +00:00
Sushil Chauhan c24c0ae99f hwc2: Check for color modes support
Check for color modes support by Display, before marking layer as HDR.

Bug: 79541227
CRs-Fixed: 2102517
Change-Id: Id8595dcb322900f98556c40fde94fa88e3ec4e39
2018-05-10 22:05:09 +00:00
Rajavenu Kyatham 99c71edb54 sdm: allow commits in doze_suspend as well.
- revert of I495cd9748f6dbdf7b1dd80cffa35759e529ff7cf

Bug: 79541227

Change-Id: I50c4227d4855673e093fcba38a6454edaf0e1bf7
CRs-Fixed: 2140924
2018-05-10 22:04:42 +00:00
Saurabh Shah 81fdbfedd9 hwc: Fix request flag reset and Present() bailout
The ClearRequestFlags() method iterates over layer_stack_ instead of
layer_set_. This causes a use-after-free since DestroyLayer() removes
layer from layer_set_ only. Besides that, the method need not be
virtual and has a redundant loop. This change removes the
ClearRequestFlags() method and clears flags in an existing loop.
Present() bails out if layer_set_ is empty or a shutdown is pending.
Since layers could have been destroyed before Present(), ideally
bailing out on re-validation has a higher priority over the rest.

Bug: 79541227
CRs-Fixed: 2165926
Change-Id: Ic7b31bbd07a22b8df47fccb2024b3415ab3a559b
2018-05-10 22:04:17 +00:00
Rajavenu Kyatham 85a0f2823c sdm: hwc2: Add support for TWM entry and exit.
- Implement SET_STAND_BY_MODE binder support. SKGHAL
  use this api to inform HWC about TWM entry/exit.
- Move to null display to drop all incoming calls
  from surfaceflinger on TWM entry.
- Move to normal display on TWM exit.
- Add scope_lock for SET_STAND_BY_MODE API.

Bug: 79541227
CRs-Fixed: 2200577
Change-Id: I26ef3b1af53856f68f76b116988cc2a28c06b6ac
2018-05-10 22:03:50 +00:00
Bharath Gopal 679188367b hwc2: Determine virtual display presence based on target specific property
GetMaxVirtualDisplayCount returns a hard-coded value. Return virtual
 display count based on a property that is target specific.
 Return a value of 1 by default when the property is not found in the
 target device.

Bug: 79541227

Change-Id: I4c9727ad1687fc7e53c89ce5e41973628022acec
2018-05-10 22:03:16 +00:00
Ben Fennema d39a514dd0 display: msm8909w caf release LW.BR.4.0-00800-8x09w.0 for SD2100.
MSM8909W display HAL code copied from CAF release LW.BR.4.0-00800-8x09w.0.

Bug: 79356346
Test: build
Change-Id: Ie801976595c8ed9164b0d91737f5daf40764d8a6
Signed-off-by: Ben Fennema <fennema@google.com>
2018-05-08 14:36:40 -07:00
android-build-team Robot d0762eafd9 Snap for 4751833 from 06b0836470 to pi-release
Change-Id: Ia541298a7cba7e9d241336d438d35b8614d638d3
2018-04-29 07:28:00 +00:00
Arun Kumar K.R 06b0836470 sdm: Protect unbalanced ROI in dump
Validate right roi before using them in when dumping
the frame information.

Bug: 73253473
Change-Id: Ifa75c83d33f3d76914b47c9c8168eb4061ac5f88
Acked-by: Gousemoodhin Nadaf <gnadaf@codeaurora.org>
2018-04-27 16:04:03 -07:00
android-build-team Robot 870979e538 Snap for 4736748 from 3a26d0f124 to pi-release
Change-Id: I4150806dc0a81dd174b6a41e93145a91d7903410
2018-04-22 07:24:59 +00:00
Jeff Tinker 3a26d0f124 Merge "hwc2: Handle Gamma2.8" into pi-dev 2018-04-20 21:05:30 +00:00
Jeff Tinker 9eaa38013d Merge "gralloc: Add missing BT601_6_625 handing" into pi-dev 2018-04-20 21:05:27 +00:00
Arun Kumar K.R cefe2e70a0 hwc2: Handle Gamma2.8
Layers with gamma 2.8 were being marked as not supported
and falling back to GPU, report them as supported and
handle them for HW composition

bug:77471420

Test: Reproduce bug scenario. With the CLs, verified both video and audio
work as expected using all the video modes.

Merge from https://partner-android-review.googlesource.com/#/c/1063539

Bug: 77471420
Change-Id: I5a94cbfc1ac9be22a6165803a79f6dca5711db34
Crs-fixed: 2220717
2018-04-19 19:02:22 +00:00
Arun Kumar K.R 253d50c32a gralloc: Add missing BT601_6_625 handing
Add missing BT601_6_625 handing

bug:77471420

Test: Reproduce bug scenario. With the CLs, verified both video and audio
work as expected using all the video modes.

Merge from: https://partner-android-review.googlesource.com/#/c/1063538

Change-Id: I10034f38c8ab2283f13556ddf37bea51e7356a79
CRs-fixed: 2129768
Acked-by: Saurabh Shah <saurshah@codeaurora.org>
2018-04-19 19:01:13 +00:00
android-build-team Robot d73e71b6a9 Snap for 4731145 from 1ff191fed3 to pi-release
Change-Id: I76aa92176df4cddca1e73ded6b2effdb5ef0dba6
2018-04-19 07:22:18 +00:00
Naseer Ahmed 1ff191fed3 hwc2: Skip validation fixes
* Disable skip validation for solid fill during calibration.
* Require validation when the client changes the composition type

Bug: 77925367
CRs-Fixed: 2122072
Change-Id: I9ded200e5c15701f653c73d67c18c41de8278d52
2018-04-18 12:45:46 -07:00
android-build-team Robot 99821bb321 Snap for 4722539 from 530894e77a to pi-release
Change-Id: I6530e178df6ea0288e984a2bceb7f37f83b912b5
2018-04-15 07:27:07 +00:00
Gousemoodhin Nadaf 530894e77a hwc2: Layer buffer fence fd leak
Close acquire_fence_fd to avoid
fence fd leak.

Bug: 77140352
Change-Id: I32eacdf658f59c21f45955d34dd3de5751badbe4
2018-04-12 09:52:36 -07:00
android-build-team Robot 7aa9edb7c0 Snap for 4693621 from 26105d8c60 to pi-release
Change-Id: I3adabfa6b808637b44a024ef90533284d284b4d5
2018-04-01 07:28:50 +00:00
Tim Kryger 26105d8c60 hwcomposer: Work around overzealous fortify checks
Storage for six pollfd structs is allocated on the stack in a 2d array.
Subsequently, the address of the first element is passed to poll along
with the same total number of fds.  At this point, the fortify dynamic
checker, considering only one of the dimensions of the array, throws an
error and warns that array is too small.  Since the array is actually
sized appropriately, use a reinterpret_cast to subvert the checker.

Bug: 77323983
Change-Id: Ib88c5a00bc84b3d05be95baf57df5f522a769da4
2018-03-30 16:12:40 -07:00
Erik Wolsheimer 286449a94b Make hwc_vsync thread realtime
Bug: 68395248
Change-Id: I4ac93464aa2ccf416577b4067ed658b525089983
2018-03-29 14:08:07 -07:00
Alain Vongsouvanh 61212d9299 sdm: send unique power state in doze and doze_suspend.
This is a manual merge of CAF commit e7da5462bc8d7e8c2a8c1595ae12949237183979.

BUG: 76115647
Change-Id: I8b04ba1c130556613e2bf6b32affce4965f95b46
(cherry picked from commit a01e3f5f6d0905c14537cacebad296babc34b6d2)
2018-03-29 14:08:51 +00:00