OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "mm: vmscan: do not pass reclaimed slab to vmpressure"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:27 +0000 (05:33 -0800)]
Merge "mm: vmscan: do not pass reclaimed slab to vmpressure"

7 years agoMerge "mm: vmpressure: fix sending wrong events on underflow"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:26 +0000 (05:33 -0800)]
Merge "mm: vmpressure: fix sending wrong events on underflow"

7 years agoMerge "USB: qusb: Add support to change TUNEX registers dynamically"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:25 +0000 (05:33 -0800)]
Merge "USB: qusb: Add support to change TUNEX registers dynamically"

7 years agoMerge "phy: qcom-ufs: parse ref-clk details prior to resource request"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:24 +0000 (05:33 -0800)]
Merge "phy: qcom-ufs: parse ref-clk details prior to resource request"

7 years agoMerge "ARM: dts: msm: update enable signal polarity of SMB1351 for SDM660"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:23 +0000 (05:33 -0800)]
Merge "ARM: dts: msm: update enable signal polarity of SMB1351 for SDM660"

7 years agoMerge "msm: ipa: changes to suspend/disable for WDI 2"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:23 +0000 (05:33 -0800)]
Merge "msm: ipa: changes to suspend/disable for WDI 2"

7 years agoMerge "net: validate the range we feed to iov_iter_init() in sys_sendto/sys_recvfrom"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:19 +0000 (05:33 -0800)]
Merge "net: validate the range we feed to iov_iter_init() in sys_sendto/sys_recvfrom"

7 years agoMerge "usb: pd: Skip decreasing current when requesting the same PPS"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:18 +0000 (05:33 -0800)]
Merge "usb: pd: Skip decreasing current when requesting the same PPS"

7 years agoMerge "ARM: dts: msm: Update Temperature sensor support for sdm660"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:17 +0000 (05:33 -0800)]
Merge "ARM: dts: msm: Update Temperature sensor support for sdm660"

7 years agoMerge "USB: gadget: Replace %pK with %p"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:17 +0000 (05:33 -0800)]
Merge "USB: gadget: Replace %pK with %p"

7 years agoMerge "msm: kgsl: Fix false timeout gpu faults"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:16 +0000 (05:33 -0800)]
Merge "msm: kgsl: Fix false timeout gpu faults"

7 years agoMerge "input: touchscreen: remove msg21xx mstar touch driver"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:15 +0000 (05:33 -0800)]
Merge "input: touchscreen: remove msg21xx mstar touch driver"

7 years agoMerge "mmc: core: Fix deadlock in suspend & rescan path"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:14 +0000 (05:33 -0800)]
Merge "mmc: core: Fix deadlock in suspend & rescan path"

7 years agoMerge "mmc: sdhci-msm: Dont wait infinitely for pwr_irq interrupt"
Linux Build Service Account [Tue, 21 Feb 2017 13:33:14 +0000 (05:33 -0800)]
Merge "mmc: sdhci-msm: Dont wait infinitely for pwr_irq interrupt"

7 years agoMerge "ARM: dts: msm: Enable APC0/1 CPR closed-loop operation for sdm660"
Linux Build Service Account [Tue, 21 Feb 2017 03:44:30 +0000 (19:44 -0800)]
Merge "ARM: dts: msm: Enable APC0/1 CPR closed-loop operation for sdm660"

7 years agoMerge "drm/msm: gpu: Return error on hw_init failure"
Linux Build Service Account [Tue, 21 Feb 2017 03:44:28 +0000 (19:44 -0800)]
Merge "drm/msm: gpu: Return error on hw_init failure"

7 years agoMerge "drm/msm: Detach the MMU during msm_gpu_cleanup()"
Linux Build Service Account [Tue, 21 Feb 2017 03:44:28 +0000 (19:44 -0800)]
Merge "drm/msm: Detach the MMU during msm_gpu_cleanup()"

7 years agoMerge "msm: mdss: fix secure session power vote"
Linux Build Service Account [Tue, 21 Feb 2017 03:44:27 +0000 (19:44 -0800)]
Merge "msm: mdss: fix secure session power vote"

7 years agoMerge "clk: qcom: Add support to list registers for slew PLL"
Linux Build Service Account [Tue, 21 Feb 2017 03:44:26 +0000 (19:44 -0800)]
Merge "clk: qcom: Add support to list registers for slew PLL"

7 years agoMerge "certs: dm-verity: add keyring certification for verity"
Linux Build Service Account [Tue, 21 Feb 2017 03:44:25 +0000 (19:44 -0800)]
Merge "certs: dm-verity: add keyring certification for verity"

7 years agoMerge "ppp: defer netns reference release for ppp channel"
Linux Build Service Account [Mon, 20 Feb 2017 18:08:28 +0000 (10:08 -0800)]
Merge "ppp: defer netns reference release for ppp channel"

7 years agoMerge "power: qcom-charger: delay ICL change reporting to parallel psy"
Linux Build Service Account [Mon, 20 Feb 2017 18:08:26 +0000 (10:08 -0800)]
Merge "power: qcom-charger: delay ICL change reporting to parallel psy"

7 years agoMerge "ARM: dts: msm: Enable camera for sdm630"
Linux Build Service Account [Mon, 20 Feb 2017 18:08:25 +0000 (10:08 -0800)]
Merge "ARM: dts: msm: Enable camera for sdm630"

7 years agoMerge "ARM: dts: msm: Add max secure video sessions for sdm660"
Linux Build Service Account [Mon, 20 Feb 2017 18:08:25 +0000 (10:08 -0800)]
Merge "ARM: dts: msm: Add max secure video sessions for sdm660"

7 years agoMerge "ARM: dts: msm: add support for NO jacktype for SDM630"
Linux Build Service Account [Mon, 20 Feb 2017 18:08:24 +0000 (10:08 -0800)]
Merge "ARM: dts: msm: add support for NO jacktype for SDM630"

7 years agoUSB: qusb: Add support to change TUNEX registers dynamically
Vijayavardhan Vennapusa [Thu, 16 Feb 2017 10:55:35 +0000 (16:25 +0530)]
USB: qusb: Add support to change TUNEX registers dynamically

Add required support to change QUSB2PHY_PORT_TUNE1/2/3/4/5 registers
dynamically for testing USB electrical complaince.

Change-Id: Id84d460c8f8dc8cdedabe3887859d6b90acf7c3f
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agomm: vmscan: do not pass reclaimed slab to vmpressure
Vinayak Menon [Sun, 19 Feb 2017 09:00:31 +0000 (20:00 +1100)]
mm: vmscan: do not pass reclaimed slab to vmpressure

During global reclaim, the nr_reclaimed passed to vmpressure includes the
pages reclaimed from slab.  But the corresponding scanned slab pages is
not passed.  There is an impact to the vmpressure values because of this.
While moving from kernel version 3.18 to 4.4, a difference is seen in the
vmpressure values for the same workload resulting in a different behaviour
of the vmpressure consumer.  One such case is of a vmpressure based
lowmemorykiller.  It is observed that the vmpressure events are received
late and less in number resulting in tasks not being killed at the right
time.  The following numbers show the impact on reclaim activity due to
the change in behaviour of lowmemorykiller on a 4GB device.  The test
launches a number of apps in sequence and repeats it multiple times.

                      v4.4           v3.18
pgpgin                163016456      145617236
pgpgout               4366220        4188004
workingset_refault    29857868       26781854
workingset_activate   6293946        5634625
pswpin                1327601        1133912
pswpout               3593842        3229602
pgalloc_dma           99520618       94402970
pgalloc_normal        104046854      98124798
pgfree                203772640      192600737
pgmajfault            2126962        1851836
pgsteal_kswapd_dma    19732899       18039462
pgsteal_kswapd_normal 19945336       17977706
pgsteal_direct_dma    206757         131376
pgsteal_direct_normal 236783         138247
pageoutrun            116622         108370
allocstall            7220           4684
compact_stall         931            856

This is a regression introduced by commit 6b4f7799c6a5 ("mm: vmscan:
invoke slab shrinkers from shrink_zone()").

So do not consider reclaimed slab pages for vmpressure calculation.  The
reclaimed pages from slab can be excluded because the freeing of a page by
slab shrinking depends on each slab's object population, making the cost
model (i.e.  scan:free) different from that of LRU.  Also, not every
shrinker accounts the pages it reclaims.  But ideally the pages reclaimed
from slab should be passed to vmpressure, otherwise higher vmpressure
levels can be triggered even when there is a reclaim progress.  But
accounting only the reclaimed slab pages without the scanned, and adding
something which does not fit into the cost model just adds noise to the
vmpressure values.

Fixes: 6b4f7799c6a5 ("mm: vmscan: invoke slab shrinkers from shrink_zone()")
Link: http://lkml.kernel.org/r/1486641577-11685-2-git-send-email-vinmenon@codeaurora.org
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Cc: Shiraz Hashim <shashim@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Git-commit: 97a9668a428e9651a4aa3ff5d4e7e60024be2d87
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Change-Id: If46b1cee6fd9723bebd87d76e0bb8451de05a9c1
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
7 years agomm: vmpressure: fix sending wrong events on underflow
Vinayak Menon [Sun, 19 Feb 2017 09:00:30 +0000 (20:00 +1100)]
mm: vmpressure: fix sending wrong events on underflow

At the end of a window period, if the reclaimed pages is greater than
scanned, an unsigned underflow can result in a huge pressure value and
thus a critical event.  Reclaimed pages is found to go higher than scanned
because of the addition of reclaimed slab pages to reclaimed in
shrink_node without a corresponding increment to scanned pages.  Minchan
Kim mentioned that this can also happen in the case of a THP page where
the scanned is 1 and reclaimed could be 512.

Link: http://lkml.kernel.org/r/1486641577-11685-1-git-send-email-vinmenon@codeaurora.org
Acked-by: Minchan Kim <minchan@kernel.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Rik van Riel <riel@redhat.com>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Cc: Shiraz Hashim <shashim@codeaurora.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Change-Id: Ic1221fa129c9b3512127537d62df7bd4a7606d24
Git-commit: 746d8d8f3ebb49a62ffcffb4b1f41cc27d020a2e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
7 years agomsm: ipa: changes to suspend/disable for WDI 2
Utkarsh Saxena [Wed, 8 Feb 2017 15:43:24 +0000 (21:13 +0530)]
msm: ipa: changes to suspend/disable for WDI 2

Adapt to latest changes to IPA micro-controller(IPA uC).

For pipe SUSPEND, IPA uC will fail in case
the pipe is not empty.

IPA driver needs to insure pipe is empty
and then issue a SUSPEND command.

For pipe DISABLE, pipe is already empty on SUSPEND,
IPA driver does not need to do ensure anything before
issuing a DISABLE command.

Change-Id: Ic0e65b671fc29583203986defada31e92065adfd
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
7 years agoARM: dts: msm: update enable signal polarity of SMB1351 for SDM660
Ashay Jaiswal [Mon, 20 Feb 2017 03:27:51 +0000 (08:57 +0530)]
ARM: dts: msm: update enable signal polarity of SMB1351 for SDM660

Update enable signal polarity of SMB1351 as active high to make
sure STAT pin of main charger controls SMB1351.

Change-Id: I7c3fa06d59667639899ad795537ed49cb1f59e2d
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agoppp: defer netns reference release for ppp channel
WANG Cong [Wed, 6 Jul 2016 05:12:36 +0000 (22:12 -0700)]
ppp: defer netns reference release for ppp channel

Matt reported that we have a NULL pointer dereference
in ppp_pernet() from ppp_connect_channel(),
i.e. pch->chan_net is NULL.

This is due to that a parallel ppp_unregister_channel()
could happen while we are in ppp_connect_channel(), during
which pch->chan_net set to NULL. Since we need a reference
to net per channel, it makes sense to sync the refcnt
with the life time of the channel, therefore we should
release this reference when we destroy it.

Fixes: 1f461dcdd296 ("ppp: take reference on channels netns")
Reported-by: Matt Bennett <Matt.Bennett@alliedtelesis.co.nz>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linux-ppp@vger.kernel.org
Cc: Guillaume Nault <g.nault@alphalink.fr>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-repo:https://source.codeaurora.org/quic/la/kernel/msm-4.4
Git-commit: 205e1e255c479f3fd77446415706463b282f94e4

Change-Id: Ic7ce3be365ebdc1505ed8ce68df981c855638a3c
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
7 years agodrm/msm: gpu: Return error on hw_init failure
Jordan Crouse [Mon, 13 Feb 2017 17:14:12 +0000 (10:14 -0700)]
drm/msm: gpu: Return error on hw_init failure

When the GPU hardware init function fails (like say, ME_INIT timed
out) return error instead of blindly continuing on. This gives us
a small chance of saving the system before it goes boom.

Change-Id: Ic0dedbad142efbc9bd93e8531b40c391ec15f557
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: Detach the MMU during msm_gpu_cleanup()
Jordan Crouse [Mon, 13 Feb 2017 17:14:12 +0000 (10:14 -0700)]
drm/msm: Detach the MMU during msm_gpu_cleanup()

Make sure to detach the MMU device before destroying the address
space.

Change-Id: Ic0dedbadff27fed017840a61ec5e0d55ce0c71e6
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: Support different SMMU backends for address spaces
Jordan Crouse [Mon, 13 Feb 2017 17:14:11 +0000 (10:14 -0700)]
drm/msm: Support different SMMU backends for address spaces

SDE and the GPU have different requirements for the SMMU backends - the
SDE generates its own iova addresses and needs special support for DMA
buffers and the GPU does its own IOMMU operations. Add a shim layer to
aspace to break out the address generation and call the appropriate
SMMU functions. There is probably consolidation that can be done, but for
now this is the best way to deal with the two use cases.

Change-Id: Ic0dedbadc6dc03504ef7dffded18ba09fb3ef291
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: support multiple address spaces
Rob Clark [Mon, 13 Feb 2017 17:14:11 +0000 (10:14 -0700)]
drm/msm: support multiple address spaces

We can have various combinations of 64b and 32b address space, ie. 64b
CPU but 32b display and gpu, or 64b CPU and GPU but 32b display.  So
best to decouple the device iova's from mmap offset.

Change-Id: Ic0dedbad2b36b535df3e8fb2ddddc20add592cea
Signed-off-by: Rob Clark <robdclark@gmail.com>
Git-commit: 22877bcbdacd50d076f9b2f829e6a3753aa9821f
Git-repo: https://github.com/freedreno/kernel-msm.git
[jcrouse@codeaurora.org: Fix merge conflicts, remove mdp5 due to large
infrastructure changes, compile fixes]
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agoMerge "msm: ipa: Do not assert if IPA FW loading fails"
Linux Build Service Account [Sun, 19 Feb 2017 17:46:36 +0000 (09:46 -0800)]
Merge "msm: ipa: Do not assert if IPA FW loading fails"

7 years agoMerge "ath10k: Add support for shadow register for WNC3990"
Linux Build Service Account [Sun, 19 Feb 2017 17:46:35 +0000 (09:46 -0800)]
Merge "ath10k: Add support for shadow register for WNC3990"

7 years agomsm: ipa: Do not assert if IPA FW loading fails
Ghanim Fodi [Sun, 12 Feb 2017 13:25:53 +0000 (15:25 +0200)]
msm: ipa: Do not assert if IPA FW loading fails

Currently, IPA driver asserts if IPA FW loading
fails. Some environments do not have IPA FW
integrated and we should not crash at these cases.

CRs-fixed: 2005599
Change-Id: I78b9f2cadb8c35ab455f4514c7efc9cee4cf4542
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
7 years agoMerge "power: qcom-charger: fix minor bugs in parallel path"
Linux Build Service Account [Sun, 19 Feb 2017 09:04:40 +0000 (01:04 -0800)]
Merge "power: qcom-charger: fix minor bugs in parallel path"

7 years agoMerge "power: qcom-charger: add a workaround flag for QC AUTH interrupt"
Linux Build Service Account [Sun, 19 Feb 2017 09:04:39 +0000 (01:04 -0800)]
Merge "power: qcom-charger: add a workaround flag for QC AUTH interrupt"

7 years agoMerge "ARM: dts: msm: fix the compatible string used for GFX LDO CPR for sdm630"
Linux Build Service Account [Sun, 19 Feb 2017 09:04:39 +0000 (01:04 -0800)]
Merge "ARM: dts: msm: fix the compatible string used for GFX LDO CPR for sdm630"

7 years agoMerge "ARM: dts: msm: increase the system pm levels in sdm660"
Linux Build Service Account [Sun, 19 Feb 2017 09:04:38 +0000 (01:04 -0800)]
Merge "ARM: dts: msm: increase the system pm levels in sdm660"

7 years agoMerge "ARM: dts: msm: Enable wil6210 device for 8998 qrd-vr"
Linux Build Service Account [Sun, 19 Feb 2017 09:04:37 +0000 (01:04 -0800)]
Merge "ARM: dts: msm: Enable wil6210 device for 8998 qrd-vr"

7 years agoMerge "ARM: dts: msm: Correct the number of bus frequency levels for SDM630"
Linux Build Service Account [Sun, 19 Feb 2017 09:04:37 +0000 (01:04 -0800)]
Merge "ARM: dts: msm: Correct the number of bus frequency levels for SDM630"

7 years agoMerge "defconfig: msm: Enable BALANCE_ANON_FILE_RECLAIM for sdm660"
Linux Build Service Account [Sun, 19 Feb 2017 09:04:36 +0000 (01:04 -0800)]
Merge "defconfig: msm: Enable BALANCE_ANON_FILE_RECLAIM for sdm660"

7 years agoMerge "ARM: dts: msm: Fix DCVS load for SDM660"
Linux Build Service Account [Sun, 19 Feb 2017 00:15:19 +0000 (16:15 -0800)]
Merge "ARM: dts: msm: Fix DCVS load for SDM660"

7 years agoMerge "drm/msm: add put_iova() helper"
Linux Build Service Account [Sun, 19 Feb 2017 00:15:14 +0000 (16:15 -0800)]
Merge "drm/msm: add put_iova() helper"

7 years agoMerge "drm/msm: set dma_mask properly"
Linux Build Service Account [Sun, 19 Feb 2017 00:15:13 +0000 (16:15 -0800)]
Merge "drm/msm: set dma_mask properly"

7 years agoMerge "wil6210: convert symbolic permissions to octal permissions"
Linux Build Service Account [Sun, 19 Feb 2017 00:15:10 +0000 (16:15 -0800)]
Merge "wil6210: convert symbolic permissions to octal permissions"

7 years agoMerge "wil6210: option to override A-BFT length in start AP/PCP"
Linux Build Service Account [Sun, 19 Feb 2017 00:15:10 +0000 (16:15 -0800)]
Merge "wil6210: option to override A-BFT length in start AP/PCP"

7 years agoMerge "wil6210: report association ID (AID) per station in debugfs"
Linux Build Service Account [Sun, 19 Feb 2017 00:15:09 +0000 (16:15 -0800)]
Merge "wil6210: report association ID (AID) per station in debugfs"

7 years agoMerge "wil6210: remove __func__ from debug printouts"
Linux Build Service Account [Sun, 19 Feb 2017 00:15:08 +0000 (16:15 -0800)]
Merge "wil6210: remove __func__ from debug printouts"

7 years agoMerge "ARM: dts: msm: Update cpufreq table for sdm630"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:28 +0000 (06:38 -0800)]
Merge "ARM: dts: msm: Update cpufreq table for sdm630"

7 years agoMerge "ARM: dts: msm: add ESD and ULPS support for SDM660 panels"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:27 +0000 (06:38 -0800)]
Merge "ARM: dts: msm: add ESD and ULPS support for SDM660 panels"

7 years agoMerge "msm: mdss: Rate limit hist bin error logs"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:27 +0000 (06:38 -0800)]
Merge "msm: mdss: Rate limit hist bin error logs"

7 years agoMerge "msm: mdss: Use DMA pipe in pan display path for SDM 3.x.x"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:26 +0000 (06:38 -0800)]
Merge "msm: mdss: Use DMA pipe in pan display path for SDM 3.x.x"

7 years agoMerge "msm: sde: Fix SW timestamp initialization when missing power event"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:25 +0000 (06:38 -0800)]
Merge "msm: sde: Fix SW timestamp initialization when missing power event"

7 years agoMerge "msm: mdss: fix autorefresh during kickoff"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:24 +0000 (06:38 -0800)]
Merge "msm: mdss: fix autorefresh during kickoff"

7 years agoMerge "msm: mdss: correct bpp for TP10 in bandwidth calculations"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:23 +0000 (06:38 -0800)]
Merge "msm: mdss: correct bpp for TP10 in bandwidth calculations"

7 years agoMerge "usb: gsi: Capture USB GSI endpoint operations"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:22 +0000 (06:38 -0800)]
Merge "usb: gsi: Capture USB GSI endpoint operations"

7 years agoMerge "scsi: ufs: full reinit upon resume if link was off"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:22 +0000 (06:38 -0800)]
Merge "scsi: ufs: full reinit upon resume if link was off"

7 years agoMerge "regulator: cpr4-mmss-ldo: Correct the GFX LDO CPR sensor count for sdm630"
Linux Build Service Account [Sat, 18 Feb 2017 14:38:21 +0000 (06:38 -0800)]
Merge "regulator: cpr4-mmss-ldo: Correct the GFX LDO CPR sensor count for sdm630"

7 years agoARM: dts: msm: Update cpufreq table for sdm630
Tirupathi Reddy [Sat, 18 Feb 2017 09:49:20 +0000 (15:19 +0530)]
ARM: dts: msm: Update cpufreq table for sdm630

Update cpufreq table for sdm630 as per new cpu clock plan.

CRs-Fixed: 2008773
Change-Id: Ibaa5d3c2d1dbafd14b5e9bee382cd3980f89aa51
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
7 years agoARM: dts: msm: add support for NO jacktype for SDM630
Neeraj Upadhyay [Sat, 18 Feb 2017 08:06:55 +0000 (13:36 +0530)]
ARM: dts: msm: add support for NO jacktype for SDM630

Add device tree files for headset jacktype NO, for CDP
and RCM platforms of SDM630.

Change-Id: I297e6467ed47c51950ae527077c3d20cf738e0b6
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agopower: qcom-charger: delay ICL change reporting to parallel psy
Ashay Jaiswal [Sat, 18 Feb 2017 04:41:34 +0000 (10:11 +0530)]
power: qcom-charger: delay ICL change reporting to parallel psy

ICL change interrupt triggers whenever there is change in the
input ICL, in case of AICL restart(done as part of S/W base
pulsing) AICL starts from 500mA and ICL change gets triggered
for every 25mA ICL as part of AICL ramping.
ICL change handler generates a power_supply event on parallel
psys and thus causing parallel framework to re-split ICL for
every 25mA. Fix this by delaying power_supply event until AICL
settles.

Change-Id: I9270a99f536db4534e46764b2e053ff93b38cb54
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agopower: qcom-charger: Add support for software INOV
Ashay Jaiswal [Sat, 18 Feb 2017 04:29:23 +0000 (09:59 +0530)]
power: qcom-charger: Add support for software INOV

Hardware autonomous INOV does adapter's output voltage
manipulation only based on the input limited state of main
charger. This works well with MID-MID parallel configuration
but with USBIN-USBIN parallel configuration parallel charger's
input limited state also plays role for INOV manipulations.
Thus disable hardware based autonomous INOV and add support
for software based INOV for USBIN-USBIN configuration.

Note that if authentication is disabled, the hw assumes QC3.0 and
if the autonomous bit is enabled, it issues increment/decrement pulses.
This happens even when QC3.0 has not been actually authenticated.

Change-Id: I397acb558c9ba3b6fc7d7b974d64459f278697fd
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
7 years agopower: qcom-charger: add support for internal and external rsense
Ashay Jaiswal [Fri, 17 Feb 2017 10:30:05 +0000 (16:00 +0530)]
power: qcom-charger: add support for internal and external rsense

USBIN-USBIN parallel configuration can have either an internal current
sensing via main charger's BATFET or an external current sense resistor.
The FCC split between main and parallel charger differs based on current
sensing mode, add support to differentiate internal/external sensing and
the FCC split is done as follows:
- Internal Sensing: Main charger configure to full FCC
    Parallel charger configured to 50% FCC.
- External sensing: Main charger configure to 50% FCC
    Parallel charger configured to 50% FCC.

Change-Id: Ia0c6234ce6f62af460edd3c4f56e34810899b3e3
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agopower: qcom-charger: fix minor bugs in parallel path
Ashay Jaiswal [Thu, 16 Feb 2017 11:14:08 +0000 (16:44 +0530)]
power: qcom-charger: fix minor bugs in parallel path

"icl_reduction_ua" is not updated to new slave ICL value after
ICL split, update the variable.

Change-Id: I944fddfda1aa2c359785d1a3155ac22ebe91fa65
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agopower: qcom-charger: add a workaround flag for QC AUTH interrupt
Ashay Jaiswal [Thu, 16 Feb 2017 08:44:58 +0000 (14:14 +0530)]
power: qcom-charger: add a workaround flag for QC AUTH interrupt

In PM660 "QC authentication done" IRQ is a pulse and thus it
does not require workaround to disable this IRQ after authentication
completes. Add a workaround flag to enable this only for PMI8998.

Change-Id: I766219df38fc4954f5208d6db323b680e8e5fafd
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agousb: gsi: Capture USB GSI endpoint operations
Mayank Rana [Thu, 8 Dec 2016 23:39:19 +0000 (15:39 -0800)]
usb: gsi: Capture USB GSI endpoint operations

In some cases it has been observed that after sending STARTXFER
command with USB GSI IN endpoint, USB controller is accessing zero
address resulting into bus error. This change captures USB GSI
operation sequence in debug buffer which may help to understand
race condition in terms of USB gadget events and USB GSI endpoint
operations.

Change-Id: Ia46877bb92ea0cc1d5f3712e5c70bb44232d5cfe
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
7 years agonet: validate the range we feed to iov_iter_init() in sys_sendto/sys_recvfrom
Al Viro [Fri, 20 Mar 2015 17:41:43 +0000 (17:41 +0000)]
net: validate the range we feed to iov_iter_init() in sys_sendto/sys_recvfrom

Change-Id: I4bbd1bd2b661bc21aa0fdcc436b09b3bd23803be
Cc: stable@vger.kernel.org # v3.19
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 4de930efc23b92ddf88ce91c405ee645fe6e27ea
Git-repo: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
[dcagle: Resolve trivial merge conflicts]
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agoMerge "ARM: dts: msm: move ref-clk from phy to ufs node in sdm660"
Linux Build Service Account [Fri, 17 Feb 2017 15:33:08 +0000 (07:33 -0800)]
Merge "ARM: dts: msm: move ref-clk from phy to ufs node in sdm660"

7 years agoMerge "ARM: dts: msm: Add qcom,gpu-limit property for sdm660"
Linux Build Service Account [Fri, 17 Feb 2017 15:33:07 +0000 (07:33 -0800)]
Merge "ARM: dts: msm: Add qcom,gpu-limit property for sdm660"

7 years agoMerge "mm:camera: Do not detach isp node during smmu detach."
Linux Build Service Account [Fri, 17 Feb 2017 15:33:06 +0000 (07:33 -0800)]
Merge "mm:camera: Do not detach isp node during smmu detach."

7 years agoMerge "msm: cpp: Call iommu detach in the error scenarios for secure case"
Linux Build Service Account [Fri, 17 Feb 2017 15:33:05 +0000 (07:33 -0800)]
Merge "msm: cpp: Call iommu detach in the error scenarios for secure case"

7 years agoMerge "block: protect iterate_bdevs() against concurrent close"
Linux Build Service Account [Fri, 17 Feb 2017 15:33:04 +0000 (07:33 -0800)]
Merge "block: protect iterate_bdevs() against concurrent close"

7 years agoMerge "drm/msm/sde:: fix optional property parsing for qseed and csc properties"
Linux Build Service Account [Fri, 17 Feb 2017 15:33:04 +0000 (07:33 -0800)]
Merge "drm/msm/sde:: fix optional property parsing for qseed and csc properties"

7 years agoMerge "tracing: Modify saved_tgids size for change in saved_cmdline_size"
Linux Build Service Account [Fri, 17 Feb 2017 15:33:03 +0000 (07:33 -0800)]
Merge "tracing: Modify saved_tgids size for change in saved_cmdline_size"

7 years agoMerge "soc: qcom: ramdump: Remove page alignment during ramdump collection"
Linux Build Service Account [Fri, 17 Feb 2017 15:33:02 +0000 (07:33 -0800)]
Merge "soc: qcom: ramdump: Remove page alignment during ramdump collection"

7 years agoMerge "ARM: dts: msm: update correct default OT settings for mdss"
Linux Build Service Account [Fri, 17 Feb 2017 15:33:01 +0000 (07:33 -0800)]
Merge "ARM: dts: msm: update correct default OT settings for mdss"

7 years agoMerge "ARM: dts: msm: Add pmic bring up changes for SDM630 QRD"
Linux Build Service Account [Fri, 17 Feb 2017 15:33:01 +0000 (07:33 -0800)]
Merge "ARM: dts: msm: Add pmic bring up changes for SDM630 QRD"

7 years agoMerge "soc: qcom: pil: Allow the MBA memory to be dynamic or a carveout"
Linux Build Service Account [Fri, 17 Feb 2017 15:32:59 +0000 (07:32 -0800)]
Merge "soc: qcom: pil: Allow the MBA memory to be dynamic or a carveout"

7 years agoath10k: Add support for shadow register for WNC3990
Rakesh Pillai [Fri, 3 Feb 2017 07:36:22 +0000 (13:06 +0530)]
ath10k: Add support for shadow register for WNC3990

WCN3990 needs shadow register write operation support
for copy engine for regular operation in powersave mode.
Add support for copy engine shadow register write in
datapath tx for WCN3990

CRs-Fixed: 2008518
Change-Id: Ie90ff74984021fa47070e08b2fc53ad5da46cf35
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
7 years agoARM: dts: msm: fix the compatible string used for GFX LDO CPR for sdm630
Tirupathi Reddy [Fri, 17 Feb 2017 07:52:58 +0000 (13:22 +0530)]
ARM: dts: msm: fix the compatible string used for GFX LDO CPR for sdm630

Modify the compatible string used for GFX LDO CPR for sdm630 to apply
sdm630 specific configuration.

CRs-Fixed: 2007621
Change-Id: I883a004c8731654f5752194d66c971a22ea723ef
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
7 years agoARM: dts: msm: Enable camera for sdm630
Shankar Ravi [Fri, 10 Feb 2017 11:59:25 +0000 (17:29 +0530)]
ARM: dts: msm: Enable camera for sdm630

1. Add FRONT, BACK, AUX camera nodes.
2. Add CSID, CSIPHY,ISPIF, VFE, JPEG, CPP, nodes.
3. Add GPIO configuration in pinctrl.
4. Add support for upstream clock config.
5. Add sensor VAF to LDO8 with min vote of 2.8.

Change-Id: I49f1ec1941a080d85812309c7a8cce7302c49e25
Signed-off-by: Shankar Ravi <rshankar@codeaurora.org>
7 years agoARM: dts: msm: Fix DCVS load for SDM660
Vikash Garodia [Fri, 17 Feb 2017 07:37:39 +0000 (13:07 +0530)]
ARM: dts: msm: Fix DCVS load for SDM660

DCVS table specifies the low and high load interms
of mbs per sec. Clock frequency is derived from
this load alongwith cycles required per mb. For
starlord, the DCVS low load was incorrect which
made the decoder session to run in SVS instead
of SVS+. The change now fix it to proper load.

Change-Id: I46dd772aa349b94a75472477e24cabe80c088165
CRs-Fixed: 2007776
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
7 years agoARM: dts: msm: Correct the number of bus frequency levels for SDM630
Rajesh Kemisetti [Fri, 17 Feb 2017 06:03:05 +0000 (11:33 +0530)]
ARM: dts: msm: Correct the number of bus frequency levels for SDM630

Update the proper number of bus frequency levels for SDM630 GPU.

Change-Id: Id00a47440dd766493a1de6da9cb0c218b1fa8eac
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
7 years agowil6210: convert symbolic permissions to octal permissions
Maya Erez [Wed, 8 Feb 2017 11:18:42 +0000 (13:18 +0200)]
wil6210: convert symbolic permissions to octal permissions

Symbolic permissions are no longer recommended.
This patch changes the symbolic permissions in wil6210 driver
to octal permissions.

Change-Id: I4d762724938a6c615698ea92bd668f0b4ee6963c
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 78484c44e4b305b23cbfcfb9257ed96c8753e86d
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agowil6210: option to override A-BFT length in start AP/PCP
Lior David [Wed, 8 Feb 2017 11:17:35 +0000 (13:17 +0200)]
wil6210: option to override A-BFT length in start AP/PCP

Add an option to specify and override the A-BFT length when
starting an AP/PCP. See IEEE P802.11-2016, 10.38.5.
The abft_len must be set before starting AP/PCP. It is only
needed for diagnostics and certification.

Change-Id: Idb7a72b1a3c87c0ca085ca55a9e2507d14eecbdb
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: c3bfea05a6fdecee03c7cf08f5bfee6aa0645cee
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agowil6210: report association ID (AID) per station in debugfs
Lior David [Wed, 8 Feb 2017 11:16:37 +0000 (13:16 +0200)]
wil6210: report association ID (AID) per station in debugfs

Add reporting of the association ID (AID) for each station
as part of the stations file in the debugfs.
Valid AID values are 1-254. 0 is reported if the AID
is unknown or not reported by firmware.

Change-Id: Ifa79ccfa91d60eb0aeada0c849f8694d27c3b333
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 9d865ee232eccf51950b16f223f4130f7dc06e0f
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agowil6210: align to latest auto generated wmi.h
Lior David [Wed, 8 Feb 2017 11:15:32 +0000 (13:15 +0200)]
wil6210: align to latest auto generated wmi.h

Align to latest version of the auto generated wmi file
describing the interface with FW.

Change-Id: I54bacf35257380fd12b3d6e47bcc3e66d46f66dc
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: a52fb913aee97149f5986fd001a424e68c096d19
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agowil6210: fix for broadcast workaround in PBSS
Lior David [Wed, 8 Feb 2017 11:14:13 +0000 (13:14 +0200)]
wil6210: fix for broadcast workaround in PBSS

Currently we do not have full support for broadcast from
a station inside a PBSS network.
We have a workaround where instead of broadcast we do a
unicast to every known station in the PBSS.
This workaround was performed only for P2P clients.
This fix will perform the broadcast workaround also for a
regular station inside a PBSS.

Change-Id: I3153727b3c928b4ea4cfae59f1df1d36adb9d1bb
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: a895cb8b990c12945b70f70d9e0798d587d507c0
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agowil6210: support new WMI-only FW capability
Dedy Lansky [Wed, 8 Feb 2017 11:08:39 +0000 (13:08 +0200)]
wil6210: support new WMI-only FW capability

WMI_ONLY FW is used for testing in production. It cannot be used for
scan/connect, etc.
In case FW reports this capability, driver will not allow interface up.

Change-Id: Ifad411ba3fff136107ee73691008de3d013853b5
Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 0d2370e939acca97b5e1abc1aedd47c5c9a5f500
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agowil6210: remove __func__ from debug printouts
Lazar Alexei [Wed, 8 Feb 2017 10:29:48 +0000 (12:29 +0200)]
wil6210: remove __func__ from debug printouts

__func__ is automatically added to printouts by dynamic debug
mechanism and by wil_info/wil_err macros.
Remove __func__ from debug printouts to avoid duplication.

Change-Id: I3c8f8088bbff17954eb774b6dcd64b6dfd2de932
Signed-off-by: Lazar Alexei <qca_ailizaro@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: af3db60a30331d3a37b534570bc52dd64a7c0e5d
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agoclk: qcom: Add support to list registers for slew PLL
Amit Nischal [Wed, 15 Feb 2017 09:02:01 +0000 (14:32 +0530)]
clk: qcom: Add support to list registers for slew PLL

For slew PLL, register content is required to be displayed
for debug purpose. Add support for the same by adding
list_register clock ops to clk_alpha_pll_slew_ops.

Change-Id: I806edd4d62ff00a4b36d17942afd746b03616534
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
7 years agodefconfig: msm: Enable BALANCE_ANON_FILE_RECLAIM for sdm660
Shiraz Hashim [Wed, 15 Feb 2017 05:23:36 +0000 (10:53 +0530)]
defconfig: msm: Enable BALANCE_ANON_FILE_RECLAIM for sdm660

BALANCE_ANON_FILE_RECLAIM treats anonymous and file backed
pages equally while performing memory reclaim.

It is already enabled for sdm660 arm64 perf defconfig.
Enable it for rest of sdm660 related defconfigs.

Change-Id: I3914bbdbc162cce020d6265f8297ac728621c84d
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
7 years agoUSB: gadget: Replace %pK with %p
Hemant Kumar [Thu, 16 Feb 2017 00:10:57 +0000 (16:10 -0800)]
USB: gadget: Replace %pK with %p

commit 5f8f42688e30e ("usb: gadget: replace %p with %pK") modifies
the %pM/m (MAC address format specifier) as %pKM/m in
get_ether_addr_str() API. As a result this API returns zeroed out
mac address. This API is used to show mac address of usb network
interface using configfs attribute of function drivers. Hence
replace %pK with %p in this helper API to show correct mac address
information.

Change-Id: Id3a0d779f458d2ce697cd8fe88f348380cf44a8f
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agoARM: dts: msm: increase the system pm levels in sdm660
Asutosh Das [Fri, 17 Feb 2017 01:53:12 +0000 (07:23 +0530)]
ARM: dts: msm: increase the system pm levels in sdm660

Increasing the system pm-level would ensure that Vccq2 &
ref-clk supply are turned off during system suspend.

Change-Id: I22b42d971266c6cb67f1f15e2b48c3f111c22ac8
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
7 years agocerts: dm-verity: add keyring certification for verity
Jeevan Shriram [Fri, 17 Feb 2017 01:58:04 +0000 (17:58 -0800)]
certs: dm-verity: add keyring certification for verity

Enable SYSTEM_TRUSTED_KEYS and add certification for x509 signing for
system.

CRs-Fixed: 1116507
Change-Id: I01298d75da0ff9faee2d01118107d53e9a2aef8a
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
7 years agoARM: dts: msm: move ref-clk from phy to ufs node in sdm660
Asutosh Das [Thu, 9 Feb 2017 11:32:27 +0000 (17:02 +0530)]
ARM: dts: msm: move ref-clk from phy to ufs node in sdm660

This patch moves the ref-clk node from the phy node
to the ufs node.
This is done so as to turn-off the ref-clk supply when
the link is off.

Change-Id: I17139340f2208b67b9a2d99419ac6ce92c06dbe5
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>