Commit graph

587725 commits

Author SHA1 Message Date
Tomas Bzatek
a45e263992 drm/displayid: Iterate over all DisplayID blocks
This will iterate over all DisplayID blocks found in the buffer.
Previously only the first block was parsed.

https://bugs.freedesktop.org/show_bug.cgi?id=95207

Change-Id: Ida0480aa1652d3725a02950df83c3602fce8bb6e
Signed-off-by: Tomas Bzatek <tomas@bzatek.net>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Git-commit: 3a4a2ea39f86c581054794c0a727597745f1084b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-04-06 20:35:44 -07:00
Dave Airlie
9695df13df drm/edid: move displayid validation to it's own function.
We need to use this for validating modeline additions.

Change-Id: I55fe5a92c614cf949de906bea9a7c84d64450bb2
Signed-off-by: Dave Airlie <airlied@redhat.com>
Git-commit: c97291774c1b867b56c3d439ddaec9a965cf559e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-04-06 20:33:24 -07:00
Dave Airlie
accb2a52de drm/edid: move displayid tiled block parsing into separate function.
This just makes the code easier to follow.

Change-Id: I96b57a9d895fadc9e351ad56824e6c477496a918
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Git-commit: 5e546cd5b3bc76824069ffa98c52a5f48cf91aba
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-04-06 20:31:20 -07:00
Linux Build Service Account
6319cf033b Merge "ASoC: msm: update TDM slot mapping and FE DAI array" 2017-04-06 14:33:16 -07:00
Linux Build Service Account
bce56352aa Merge "seemp: fix code analysis issues" 2017-04-06 14:33:15 -07:00
Linux Build Service Account
89364febeb Merge "msm: pcie: update mask and linkdown check in PCIe read/write API" 2017-04-06 14:33:14 -07:00
Linux Build Service Account
61bae6eff7 Merge "msm: pcie: expand PCIe boot option" 2017-04-06 14:33:13 -07:00
Linux Build Service Account
f825071893 Merge "msm-core: Fix uninitialized sampling work" 2017-04-06 14:33:13 -07:00
Linux Build Service Account
8dbe64734d Merge "soc: qcom: glink_pkt: Add mutex in glink_pkt_read" 2017-04-06 14:33:11 -07:00
Linux Build Service Account
7b572c28b1 Merge "wil6210: prevent access to 11AD device if resume fails" 2017-04-06 14:33:11 -07:00
Linux Build Service Account
5a0cfd1234 Merge "Revert "sd: Fix rw_max for devices that report an optimal xfer size"" 2017-04-06 14:33:10 -07:00
Linux Build Service Account
ebc1fa334d Merge "spi: spi_qsd: Disable packing for unaliged non DMA mode transfers" 2017-04-06 14:33:09 -07:00
Linux Build Service Account
6c5cc8bddc Merge "cpu-hotplug: Always use real time scheduling when hotplugging a CPU" 2017-04-06 14:33:08 -07:00
Linux Build Service Account
94a297b730 Merge "binder: use group leader instead of open thread" 2017-04-06 14:33:07 -07:00
Linux Build Service Account
d7dac6fbf0 Merge "pps-gpio: Timestamp alignment with boottime" 2017-04-06 14:33:06 -07:00
Harry Yang
950030a3cf qcom: smblib: Show correct charging status
Currently, POWER_SUPPLY_STATUS shows status 'in charging' even with
JEITA hard HOT or COLD condition where charging actually stops.
Change status to 'not in charging'.

Change-Id: Id86296aed878499e24f9c3eb6e032239e2f02e40
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-04-06 12:43:13 -07:00
David Ahern
99151e7afe net: ipv6: ignore null_entry on route dumps
lkp-robot reported a BUG:
[   10.151226] BUG: unable to handle kernel NULL pointer dereference at 00000198
[   10.152525] IP: rt6_fill_node+0x164/0x4b8
[   10.153307] *pdpt = 0000000012ee5001 *pde = 0000000000000000
[   10.153309]
[   10.154492] Oops: 0000 [#1]
[   10.154987] CPU: 0 PID: 909 Comm: netifd Not tainted 4.10.0-rc4-00722-g41e8c70ee162-dirty #10
[   10.156482] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[   10.158254] task: d0deb000 task.stack: d0e0c000
[   10.159059] EIP: rt6_fill_node+0x164/0x4b8
[   10.159780] EFLAGS: 00010296 CPU: 0
[   10.160404] EAX: 00000000 EBX: d10c2358 ECX: c1f7c6cc EDX: c1f6ff44
[   10.161469] ESI: 00000000 EDI: c2059900 EBP: d0e0dc4c ESP: d0e0dbe4
[   10.162534]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[   10.163482] CR0: 80050033 CR2: 00000198 CR3: 10d94660 CR4: 000006b0
[   10.164535] Call Trace:
[   10.164993]  ? paravirt_sched_clock+0x9/0xd
[   10.165727]  ? sched_clock+0x9/0xc
[   10.166329]  ? sched_clock_cpu+0x19/0xe9
[   10.166991]  ? lock_release+0x13e/0x36c
[   10.167652]  rt6_dump_route+0x4c/0x56
[   10.168276]  fib6_dump_node+0x1d/0x3d
[   10.168913]  fib6_walk_continue+0xab/0x167
[   10.169611]  fib6_walk+0x2a/0x40
[   10.170182]  inet6_dump_fib+0xfb/0x1e0
[   10.170855]  netlink_dump+0xcd/0x21f

This happens when the loopback device is set down and a ipv6 fib route
dump is requested.

ip6_null_entry is the root of all ipv6 fib tables making it integrated
into the table and hence passed to the ipv6 route dump code. The
null_entry route uses the loopback device for dst.dev but may not have
rt6i_idev set because of the order in which initializations are done --
ip6_route_net_init is run before addrconf_init has initialized the
loopback device. Fixing the initialization order is a much bigger problem
with no obvious solution thus far.

The BUG is triggered when the loopback is set down and the netif_running
check added by a1a22c1206 fails. The fill_node descends to checking
rt->rt6i_idev for ignore_routes_with_linkdown and since rt6i_idev is
NULL it faults.

The null_entry route should not be processed in a dump request. Catch
and ignore. This check is done in rt6_dump_route as it is the highest
place in the callchain with knowledge of both the route and the network
namespace.

CRs-Fixed: 1065581
Change-Id: Iaf7265f3a83ecba1a3c4f90ec3288b296d918c5a
Fixes: a1a22c1206("net: ipv6: Keep nexthop of multipath route on admin down")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 1f17e2f2c8a8be3430813119fa7b633398f6185b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2017-04-06 13:03:02 -06:00
Shashank Mittal
20fbb62014 AndroidKernel: add support to configure DLKM install path
Add support to configure DLKM install path.

TARGET_OUT is hard coded to system directory.
Use PRODUCT_OUT instead of TARGET_OUT to use user configured path
instead.

Change-Id: Iacbfa0fce69d3cb4b6f47a6c857983034633dc19
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2017-04-06 11:24:57 -07:00
Shashank Mittal
d076b99bfe arm64: add config option to enable DT overlay
Add config option to enable DT overlay. This option sets DTC_FLAGS to
enable DT compilation with overlay support.

Change-Id: I74b1ed9828ec94093fab40a70c0cd0c155796c94
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2017-04-06 11:24:50 -07:00
Shashank Mittal
47c6fb9e63 scripts: Makefile: add support to use external DTC
Add support to use external DTC to compile device tree blobs.

Change-Id: I268d2332d5328c3b0050b35c96f91e8ef9e1f6f8
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2017-04-06 11:22:41 -07:00
Shashank Mittal
18a3ceeb5e scripts: Makefile: add support to compile DT overlay blobs
Add support to compile device tree overlay blob.
'dtbo-y' target can be used to specify DT overlay blob.
'<target>-obj'  must be specified to list base and overlay blobs.

Change-Id: Ib5036c70ba46374619cc43f9f7b697e1a444aebf
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2017-04-06 11:22:41 -07:00
Shashank Mittal
7515bfb3f1 AndroidKernel: add support to pass build flags
Add support to pass build flags while compiling Linux kernel.

This change is required to add support in Linux kernel to use external
host executable. (example: dtc)

Usage example:
TARGET_KERNEL_MAKE_ENV := DTC_EXT=dtc$(HOST_EXECUTABLE_SUFFIX)

Change-Id: I008ca00cf9695133ff167ffdee8d8dfb89beb598
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2017-04-06 11:22:03 -07:00
Honghao Liu
f2c39e2b91 ASoC: msm: qdsp6v2: support TDM to AUX_PCM loopback for BT HFP uplink
Add route from QUAT_TDM_TX_0 to AUX_PCM_RX Port Mixer and route from
INTHFP_DL_HL to AUX_PCM_RX.

CRs-fixed: 2024590
Change-Id: I395808fe9937128f0391668132a4dffdb6c60f42
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-06 11:09:32 -07:00
Honghao Liu
3f148d954b ASoC: msm: update TDM slot mapping and FE DAI array
Update TDM slot mapping and add hostless FE DAI for customized
sound card on automotive platform.

CRs-fixed: 2024584
Change-Id: I08c2765972405e6dfbbcd6d2590109e119b92423
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-06 11:08:59 -07:00
Yida Wang
d45e41bf0c seemp: fix code analysis issues
Fix code analysis issues related to seemp, such as, variables might
be used uninitialized, and array may use index values larger than its
size.

Change-Id: Ic537ece4d00ac3d72d679359b60999df473f8710
Signed-off-by: Yida Wang <yidaw@codeaurora.org>
2017-04-06 11:28:55 -04:00
Linux Build Service Account
41941e18ba Merge "sched/debug: Make the "Preemption disabled at ..." message more useful" 2017-04-06 05:39:40 -07:00
Linux Build Service Account
4594178f22 Merge "leds: qpnp-flash-v2: Fix pinctrl configuration" 2017-04-06 05:39:39 -07:00
Linux Build Service Account
48dc2c760d Merge "msm: vidc: Re-calculate buffer requirement" 2017-04-06 05:39:38 -07:00
Linux Build Service Account
67e7d195f1 Merge "msm: vidc: Prioritize debugfs timeout control over dtsi entry" 2017-04-06 05:39:37 -07:00
Linux Build Service Account
19b4666123 Merge "ARM: dts: msm: add support for sharp wuxga split link panel" 2017-04-06 05:39:36 -07:00
Linux Build Service Account
b1ddc9f5e3 Merge "msmcortex: Enable PPP related defconfigs" 2017-04-06 05:39:35 -07:00
Ashish Garg
a6a87c4d44 ARM: dts: msm: add panel parameters for sharp wuxga panel for sdm630
Support sharp split link wuxga panel in video mode by adding
panel power supplies and phy timings for sdm630.

Change-Id: I4ab2255abc82b1c8fc3f97f6b9f29f7670c77555
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-04-06 17:14:50 +05:30
Mukesh Kumar Savaliya
cbea40b0e1 spi: spi_qsd: Disable packing for unaliged non DMA mode transfers
SPI core has a characterstic that it always sends data in FIFO word size
when we compress the data and fill the FIFO. This helps to improve the
overall througput but sometimes for the data transfers which is not
aligned to FIFO Word [i.e 4] it pads extra bytes and sends out which can
mislead spi slave device.

Do not enable packing if it's a FIFO mode transfer and data size is not
aligned to FIFO word size.

Change-Id: I28f4e3e38db4b882f229c00aa54aabdc72d2c139
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2017-04-06 04:43:05 -07:00
Maulik Shah
ea093498dd msm-core: Fix uninitialized sampling work
Sampling work can be accessed by do_sampling kthread
before init. Fix this by initializing sampling work before
using.

Change-Id: I790ce50fcddbcd08861e31fea9bde839d6fbb7cc
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-04-06 16:51:48 +05:30
Naresh Munagala
08f9cd2ae7 pps-gpio: Timestamp alignment with boottime
GPS driver which makes use of PPS timestamp expects time
with respect to boot time. Existing pps_get_ts function
doesn't return time from the boot so replaced this function
with get_monotonic_boottime function which returns elapsed time
from the boot.

Change-Id: I8f656a1c4ef43f6314d4ab295a177125bcc8195e
CRs-Fixed: 1012438
Signed-off-by: Naresh Munagala <nareshm@codeaurora.org>
2017-04-06 01:48:33 -07:00
Govind Singh
fb1bdfec50 ath10k: synchronize restart work with FW ready indication
ath10k restart work needs to be scheduled after FW is ready
during SSR/PDR.

Synchronize restart work with FW ready indication.

Change-Id: I1cd93f4d1913e34c0714e717735c026a5c4faf1d
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-04-06 01:03:19 -07:00
Abhinav Kumar
1dabd97b88 drm/msm: fix the display type string in SDE HDMI driver
There is a mismatch in the display type string between
userspace and HDMI driver causing the userspace to
not correctly detect the display configuration.

Fix the string to align the userspace and driver.

Change-Id: Ibb59fde833cb0be743b337fcb857c81bcbb37266
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-04-05 23:42:52 -07:00
Mukesh Kumar Savaliya
d0aa676fad spi: spi_qsd: Merge back throughput improvements done for small transfers
These changes will merge back the enhancemnts done to improve the medium
side transfers. This was reverted temporarily till the fix identified.

Change-Id: Ib7ac92ecefe7ca3ff9f03716c51dc31b8322ee33
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2017-04-06 11:35:07 +05:30
Sayali Lokhande
7e83faf328 Revert "sd: Fix rw_max for devices that report an optimal xfer size"
This reverts 'commit 9814eb7549 ("sd: Fix rw_max for devices
that report an optimal xfer size")'.
Max sectors limit for request queue(q->limits.max_sectors) is reduced
from 1024 to 16 sectors by above commit and causing performance impact
(reduced by upto 50%). Hence revert the change to fix the performance
issue observed on 8998.

Change-Id: I9abd2be6c90922ea9de818912f405e0d292a62b8
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-04-06 10:12:38 +05:30
Linux Build Service Account
c19af183fc Merge "clk: mdss: adjust PLL disable sequence to avoid glitch" 2017-04-05 20:21:33 -07:00
Linux Build Service Account
6728c13839 Merge "scsi: ufs: fix error handing during hibern8 enter" 2017-04-05 20:21:32 -07:00
Linux Build Service Account
66f971f385 Merge "msm: ipa: continue probe on ipc log failure" 2017-04-05 20:21:32 -07:00
Linux Build Service Account
f79238754a Merge "msm: mhi_rmnet: add support for shutdown and system error notification" 2017-04-05 20:21:30 -07:00
Linux Build Service Account
50ae8d5cff Merge "leds: qpnp-flash-v2: Fix some issues" 2017-04-05 20:21:29 -07:00
Linux Build Service Account
38cb972517 Merge "usb: gadget: gsi: Fix incorrect repsonse available notifications" 2017-04-05 20:21:29 -07:00
Linux Build Service Account
0afdb965c7 Merge "icnss: Make driver register asynchronous to probe" 2017-04-05 20:21:28 -07:00
Linux Build Service Account
2e1b1eb1e5 Merge "ASoC: wcd934x: add null check for soundwire control data" 2017-04-05 20:21:27 -07:00
Linux Build Service Account
ad7c7b10d1 Merge "smb138x: support usbin-usbin with external rsense" 2017-04-05 20:21:26 -07:00
Ashish Garg
9f52ca1ecb msm: mdss: add split link panel support in mdss
In split link panels, the four data lanes are split into
sublinks and the clock lane is shared among the sublink.
Add support for split link panels in mdss.

Change-Id: I40965c274a3591b0a00ca546052e7cb46967844d
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-04-06 08:49:14 +05:30
Martijn Coenen
9036bcc59e binder: use group leader instead of open thread
The binder allocator assumes that the thread that
called binder_open will never die for the lifetime of
that proc. That thread is normally the group_leader,
however it may not be. Use the group_leader instead
of current.

Bug: 35707103
Test: Created test case to open with temporary thread

Change-Id: Id693f74b3591f3524a8c6e9508e70f3e5a80c588
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Martijn Coenen <maco@android.com>
Git-commit: 359795138d
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-04-05 16:51:17 -07:00