OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoais: adjust frame id values to match user space of all platforms
Andy Sun [Mon, 29 Jan 2018 10:34:58 +0000 (18:34 +0800)]
ais: adjust frame id values to match user space of all platforms

1. resume frame done id solution: 2, 4, 6 ...
2. set field SOF id value to starts from 1: 1, 2, 3 ...

Change-Id: Ic7aea3cf99cd6d9b6ca62edb4dd17bce065717bd
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agoais: move axi_irq process before sof_irq
Andy Sun [Thu, 25 Jan 2018 07:32:00 +0000 (15:32 +0800)]
ais: move axi_irq process before sof_irq

Under high cpu loading condition, next field sof will come with previous
frame done together, need to process for previous one firstly.

Change-Id: I9438e5adc034a20a39b0bc072e97df05f8863e9d
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agoais: support field info report to user space
Andy Sun [Thu, 11 Jan 2018 09:20:37 +0000 (17:20 +0800)]
ais: support field info report to user space

1. send real SOF event to user space per SOF irq;
   original SOF event per:
     CAMIF port: epoch irq
     RDI port: reg_update irq
2. provide interface for user space to query field type;
3. provide frame id from stream_info not src_info for user;

Change-Id: Ied446b81a84d95c7273d1aa3918a474ac739971f
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agoMerge "usb: f_gsi: Use required RNDIS IAD descriptors with full speed descriptors"
Linux Build Service Account [Tue, 2 Jan 2018 20:25:52 +0000 (12:25 -0800)]
Merge "usb: f_gsi: Use required RNDIS IAD descriptors with full speed descriptors"

6 years agousb: f_gsi: Use required RNDIS IAD descriptors with full speed descriptors
Mayank Rana [Fri, 10 Nov 2017 22:20:32 +0000 (14:20 -0800)]
usb: f_gsi: Use required RNDIS IAD descriptors with full speed descriptors

gsi_eth_fs_function is array of pointers to set of RNDIS interface
related descriptors. gsi_eth_fs_function's first descriptor is
pointing itself instead of required RNDIS IAD descriptor. This
results into out-of-bound read access while copying these set of
descriptors with usb_copy_descriptors() API. Fix this issue by
using required RNDIS IAD descriptor here.

Change-Id: Ic604221febc43eb8a22d8de99fb8cead74e13b41
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
6 years agoMerge "msm: ipa: Remove unwanted gsi debug register reads"
Linux Build Service Account [Tue, 2 Jan 2018 10:07:55 +0000 (02:07 -0800)]
Merge "msm: ipa: Remove unwanted gsi debug register reads"

6 years agoMerge "msm: adsprpc: Use unsigned integer for length values"
Linux Build Service Account [Tue, 2 Jan 2018 10:07:54 +0000 (02:07 -0800)]
Merge "msm: adsprpc: Use unsigned integer for length values"

6 years agoMerge "ARM: dts: msm: Disable iommu test device on msm8996 vplatform"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:21 +0000 (20:50 -0800)]
Merge "ARM: dts: msm: Disable iommu test device on msm8996 vplatform"

6 years agoMerge "msm: ipa: Fix the handling of default IPA header"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:20 +0000 (20:50 -0800)]
Merge "msm: ipa: Fix the handling of default IPA header"

6 years agoMerge "arm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:17 +0000 (20:50 -0800)]
Merge "arm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb"

6 years agoMerge "arm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:17 +0000 (20:50 -0800)]
Merge "arm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm"

6 years agoMerge "Merge android-4.4.97 (46d256d) into msm-4.4"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:15 +0000 (20:50 -0800)]
Merge "Merge android-4.4.97 (46d256d) into msm-4.4"

6 years agoMerge "TvTuner: Add support for TV tuner driver"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:13 +0000 (20:50 -0800)]
Merge "TvTuner: Add support for TV tuner driver"

6 years agoMerge "ARM: dts: msm: Increase CAN reset time on msm8996 CV2X boards"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:12 +0000 (20:50 -0800)]
Merge "ARM: dts: msm: Increase CAN reset time on msm8996 CV2X boards"

6 years agoMerge "ARM: dts: msm: Add option to ethernet node on msm8996 CV2X"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:11 +0000 (20:50 -0800)]
Merge "ARM: dts: msm: Add option to ethernet node on msm8996 CV2X"

6 years agoMerge "gpio: usbdetect: Avoid threaded IRQ handling if no change in ID"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:10 +0000 (20:50 -0800)]
Merge "gpio: usbdetect: Avoid threaded IRQ handling if no change in ID"

6 years agoMerge "msm: jpegdma: Fix for ASAN issues in jpegdma module"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:08 +0000 (20:50 -0800)]
Merge "msm: jpegdma: Fix for ASAN issues in jpegdma module"

6 years agoARM: dts: msm: Disable iommu test device on msm8996 vplatform
Zhiqiang Tu [Mon, 25 Dec 2017 08:02:41 +0000 (16:02 +0800)]
ARM: dts: msm: Disable iommu test device on msm8996 vplatform

Disable iommu test device since guest os has no permission
to operate cpp_fd_smmu.

Change-Id: I9641d7ceb91f5c1bf4ee2307540730689dce7b98
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
6 years agomsm: ipa: Fix the handling of default IPA header
Ghanim Fodi [Tue, 19 Dec 2017 17:15:19 +0000 (19:15 +0200)]
msm: ipa: Fix the handling of default IPA header

Default IPA header is added or deleted from the driver
directly and not by user space application. This change
prevents adding/deleting it from user application which
may cause inconsistencies in the driver. Also the change
fixes the header reset function to skip on the correct
default header.

Change-Id: Ic813433655411f1447db8b0c15efdf64038d8c26
CRs-fixed: 2151146
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
6 years agoarm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb
Will Deacon [Wed, 6 Dec 2017 10:51:12 +0000 (10:51 +0000)]
arm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb

enter_lazy_tlb is called when a kernel thread rides on the back of
another mm, due to a context switch or an explicit call to unuse_mm
where a call to switch_mm is elided.

In these cases, it's important to keep the saved ttbr value up to date
with the active mm, otherwise we can end up with a stale value which
points to a potentially freed page table.

This patch implements enter_lazy_tlb for arm64, so that the saved ttbr0
is kept up-to-date with the active mm for kernel threads.

Change-Id: I6e5c50542ff2645c46e8801685f7a43e6773c3d2
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Vinayak Menon <vinmenon@codeaurora.org>
Cc: <stable@vger.kernel.org>
Fixes: 39bc88e5e38e9b21 ("arm64: Disable TTBR0_EL1 during normal kernel execution")
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: d96cc49bff5a7735576cc6f6f111f875d101cec8
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
6 years agoarm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm
Will Deacon [Wed, 6 Dec 2017 10:42:10 +0000 (10:42 +0000)]
arm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm

update_saved_ttbr0 mandates that mm->pgd is not swapper, since swapper
contains kernel mappings and should never be installed into ttbr0. However,
this means that callers must avoid passing the init_mm to update_saved_ttbr0
which in turn can cause the saved ttbr0 value to be out-of-date in the context
of the idle thread. For example, EFI runtime services may leave the saved ttbr0
pointing at the EFI page table, and kernel threads may end up with stale
references to freed page tables.

This patch changes update_saved_ttbr0 so that the init_mm points the saved
ttbr0 value to the empty zero page, which always exists and never contains
valid translations. EFI and switch can then call into update_saved_ttbr0
unconditionally.

Change-Id: I664095969fbd4d0b546f30aa4c312769e708d6de
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Vinayak Menon <vinmenon@codeaurora.org>
Cc: <stable@vger.kernel.org>
Fixes: 39bc88e5e38e9b21 ("arm64: Disable TTBR0_EL1 during normal kernel execution")
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: 0adbdfde8cfc9415aeed2a4955d2d17b3bd9bf13
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
6 years agogpio: usbdetect: Avoid threaded IRQ handling if no change in ID
Ajay Agarwal [Mon, 11 Dec 2017 08:39:17 +0000 (14:09 +0530)]
gpio: usbdetect: Avoid threaded IRQ handling if no change in ID

It is observed that the hard ID IRQ is enabled when the
threaded IRQ handler for the same is still running. In that
case, there are two issues. The ID LOW IRQ can come
consecutively which will increase the disable count of
vbus_irq. Then ID HIGH IRQ will not enable the vbus_irq and
peripheral mode detection will not work anymore. The second
issue is that ID HIGH IRQ is fired just before ID LOW IRQ.
This will mark usb->id_state from HIGH to LOW even while
threaded IRQ is running which will lead to host not getting
stopped and peripheral mode not working.

Fix both issues by maintaning a local copy of ID IRQ in
threaded IRQ handler and comparing it with previous ID state.
If same, then bail out.

Change-Id: If5da1f91ece9d1751d7002e64bab0e145623a92e
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agomsm: ipa: Remove unwanted gsi debug register reads
Michael Adisumarta [Tue, 19 Dec 2017 02:12:35 +0000 (18:12 -0800)]
msm: ipa: Remove unwanted gsi debug register reads

This changes removes the unwanted gsi dedug register reads, to which
IPA driver dont have access to.

Change-Id: I6efb1045275a9bdb238e6184ec676013ab1678bc
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
6 years agoTvTuner: Add support for TV tuner driver
Rahul Sharma [Wed, 22 Nov 2017 13:03:04 +0000 (18:33 +0530)]
TvTuner: Add support for TV tuner driver

Add new dummy tv tuner driver and its documentation.
Update Makefile, Kconfig and add new tuner id type to msm_ba.h

Change-Id: I14f822ad9fdf85ea7509067d536c49fd24cf1609
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoADV7481: Query lane_count and settle_count from device tree
Rahul Sharma [Tue, 14 Nov 2017 10:29:46 +0000 (15:59 +0530)]
ADV7481: Query lane_count and settle_count from device tree

Get lane count and settle count from device tree.
Add VIDIOC_G_CSI_PARAMS ioctl to pass lane count
and settle count values to userspace.

Change-Id: Ic0e0b7b402908c9970fd1771cf9bf19627f5a5d8
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agomsm: adsprpc: Use unsigned integer for length values
Tharun Kumar Merugu [Fri, 22 Dec 2017 12:26:46 +0000 (17:56 +0530)]
msm: adsprpc: Use unsigned integer for length values

As the length datatype is signed, supplying a negative number
can have undesired consequences. Always use unsigned integer
types for length values.

Change-Id: Ifde2f0d35129014b976507f7723a319c53fabddf
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agoMerge "ASoC: msm: qdsp6v2: Add common items needed for Instance ID"
Linux Build Service Account [Fri, 22 Dec 2017 05:18:19 +0000 (21:18 -0800)]
Merge "ASoC: msm: qdsp6v2: Add common items needed for Instance ID"

6 years agoARM: dts: msm: Increase CAN reset time on msm8996 CV2X boards
Gustavo Solaira [Wed, 20 Dec 2017 05:14:26 +0000 (21:14 -0800)]
ARM: dts: msm: Increase CAN reset time on msm8996 CV2X boards

Increase the CAN controller reset time to 200ms on msm8996
CV2X boards. This is the time we expect the CAN micro-controller
will take to complete its boot up process.

Change-Id: Ib70a8ac6eb296558a42eb7d34b73a384c7b7e8c8
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agoMerge "soc: qcom: pil: Align size of MBA and DP image to 4k"
Linux Build Service Account [Thu, 21 Dec 2017 16:50:05 +0000 (08:50 -0800)]
Merge "soc: qcom: pil: Align size of MBA and DP image to 4k"

6 years agoMerge "power: qpnp-fg-gen3: Improve ESR accuracy at cold temperature with Qnovo"
Linux Build Service Account [Thu, 21 Dec 2017 16:50:04 +0000 (08:50 -0800)]
Merge "power: qpnp-fg-gen3: Improve ESR accuracy at cold temperature with Qnovo"

6 years agosoc: qcom: pil: Align size of MBA and DP image to 4k
Kyle Yan [Thu, 11 May 2017 18:15:31 +0000 (11:15 -0700)]
soc: qcom: pil: Align size of MBA and DP image to 4k

Image address and size must be aligned to 4k as the SMMU works on a
4k granularity.

Change-Id: I4780aa67f09796ec0a8dd5b62da0e9a99c50e596
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
6 years agoMerge "leds: qpnp-flash-v2: Return error code separately during current prediction"
Linux Build Service Account [Thu, 21 Dec 2017 06:30:16 +0000 (22:30 -0800)]
Merge "leds: qpnp-flash-v2: Return error code separately during current prediction"

6 years agoMerge "icnss: Do not send uevent when driver is unloading"
Linux Build Service Account [Thu, 21 Dec 2017 06:30:15 +0000 (22:30 -0800)]
Merge "icnss: Do not send uevent when driver is unloading"

6 years agoMerge "ARM: dts: msm: Enable LDO26 for CDP targets"
Linux Build Service Account [Thu, 21 Dec 2017 06:30:14 +0000 (22:30 -0800)]
Merge "ARM: dts: msm: Enable LDO26 for CDP targets"

6 years agoMerge "usb: gadget: ffs: change gfp_flags to GFP_ATOMIC"
Linux Build Service Account [Thu, 21 Dec 2017 06:30:13 +0000 (22:30 -0800)]
Merge "usb: gadget: ffs: change gfp_flags to GFP_ATOMIC"

6 years agoASoC: msm: qdsp6v2: Add common items needed for Instance ID
Aditya Bavanari [Mon, 25 Sep 2017 19:51:30 +0000 (12:51 -0700)]
ASoC: msm: qdsp6v2: Add common items needed for Instance ID

Add common headers and functions needed to support instance ID.

CRs-Fixed: 2151551
Change-Id: I8a167be29cdb5c365ac957530789007e90a91a97
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agopower: qpnp-fg-gen3: Improve ESR accuracy at cold temperature with Qnovo
Subbaraman Narayanamurthy [Fri, 1 Dec 2017 18:54:40 +0000 (10:54 -0800)]
power: qpnp-fg-gen3: Improve ESR accuracy at cold temperature with Qnovo

When the battery is in cold temperature for a certain amount of
time and device is charged with Qnovo enabled charging, ESR pulse
will fire less frequently. This along with ESR pulses not getting
qualified can cause the ESR to be less accurate. To improve ESR
accuracy, add change to apply relaxed filter coefficients once
the battery temperature starts ramping up after hitting a lower
threshold of say 6 C after charging begins.

CRs-Fixed: 2151708
Change-Id: Iff6c2ffbab1f327dfefcf1550213c37df4a8ad42
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
6 years agoMerge "defconfig: msm8998: Enable kernel AIO support"
Linux Build Service Account [Wed, 20 Dec 2017 20:37:48 +0000 (12:37 -0800)]
Merge "defconfig: msm8998: Enable kernel AIO support"

6 years agoMerge "msm: ipa: add new IP filtering bitmaps"
Linux Build Service Account [Wed, 20 Dec 2017 20:37:47 +0000 (12:37 -0800)]
Merge "msm: ipa: add new IP filtering bitmaps"

6 years agoMerge "msm: ipa: Change error value for set quota"
Linux Build Service Account [Wed, 20 Dec 2017 20:37:46 +0000 (12:37 -0800)]
Merge "msm: ipa: Change error value for set quota"

6 years agoMerge "ARM: dts: msm: Remove blsp1_uart2 on msm8996 telematics vplatform"
Linux Build Service Account [Wed, 20 Dec 2017 20:37:45 +0000 (12:37 -0800)]
Merge "ARM: dts: msm: Remove blsp1_uart2 on msm8996 telematics vplatform"

6 years agoicnss: Do not send uevent when driver is unloading
Yuanyuan Liu [Sat, 16 Dec 2017 00:20:37 +0000 (16:20 -0800)]
icnss: Do not send uevent when driver is unloading

If modem crashed during wlan driver unloading, icnss driver
will call driver uevent callback to send FW down uevent when
it receives BEFORE_SHUTDOWN notification. If wlan driver is
de-initialized just before the callback is called, kernel will
panic as driver's context is freed. This can be avoid by not
sending uevent when wlan host driver is unloading. Instead,
icnss driver will provide an API to host driver to check if
WLAN FW is down or not.

CRs-Fixed: 2161425
Change-Id: I569fd85366522606ececeda74df85c51b9b2fc28
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
6 years agoARM: dts: msm: Enable LDO26 for CDP targets
Rahul Sharma [Tue, 19 Dec 2017 06:42:40 +0000 (12:12 +0530)]
ARM: dts: msm: Enable LDO26 for CDP targets

Camera bridge chip is not getting detected on CDP for automotive platform.
Defined and added regulator LDO26 which needs to be turned on for the chip
to be detected.

Change-Id: I0400bf1430d588852d4143e7b28f33927614ee90
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agodefconfig: msm8998: Enable kernel AIO support
Vijayavardhan Vennapusa [Fri, 15 Dec 2017 07:11:15 +0000 (12:41 +0530)]
defconfig: msm8998: Enable kernel AIO support

New Android versions are using kernel AIO functionality for adb &
MTP interfaces for better performance. Hence enable CONFIG_AIO to
support same.

Change-Id: I8bfd6c631642f60390ee656e10d666766749f7b3
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agoMerge "msm: Array bounds check for buffer index"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:53 +0000 (22:27 -0800)]
Merge "msm: Array bounds check for buffer index"

6 years agoMerge "ARM: dts: msm: update route map for sdm660 internal codec"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:52 +0000 (22:27 -0800)]
Merge "ARM: dts: msm: update route map for sdm660 internal codec"

6 years agoMerge "ALSA: pcm: use lock to protect substream runtime resource"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:50 +0000 (22:27 -0800)]
Merge "ALSA: pcm: use lock to protect substream runtime resource"

6 years agoMerge "ALSA: pcm: remove unused variable from snd_pcm_info()"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:48 +0000 (22:27 -0800)]
Merge "ALSA: pcm: remove unused variable from snd_pcm_info()"

6 years agoMerge "ASoC: apr: Add validity check to APR port"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:47 +0000 (22:27 -0800)]
Merge "ASoC: apr: Add validity check to APR port"

6 years agoMerge "ASoC: msm: qdsp6v2: Set freed pointers to NULL"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:46 +0000 (22:27 -0800)]
Merge "ASoC: msm: qdsp6v2: Set freed pointers to NULL"

6 years agoMerge "ARM: dts: msm: add support for TDM interfaces on msm8996 MTP"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:43 +0000 (22:27 -0800)]
Merge "ARM: dts: msm: add support for TDM interfaces on msm8996 MTP"

6 years agoMerge "ASoC: sdm660_cdc: Fix pop noise when device switch"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:42 +0000 (22:27 -0800)]
Merge "ASoC: sdm660_cdc:  Fix pop noise when device switch"

6 years agoMerge "soc: qcom: glink_smem_native_xport: Send blocked signal command"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:41 +0000 (22:27 -0800)]
Merge "soc: qcom: glink_smem_native_xport: Send blocked signal command"

6 years agoMerge "ARM: dts: msm: Remove spi_9 and i2c_8 in msm8996 ivi vplatform"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:40 +0000 (22:27 -0800)]
Merge "ARM: dts: msm: Remove spi_9 and i2c_8 in msm8996 ivi vplatform"

6 years agousb: gadget: ffs: change gfp_flags to GFP_ATOMIC
Liangliang Lu [Wed, 20 Dec 2017 03:13:00 +0000 (11:13 +0800)]
usb: gadget: ffs: change gfp_flags to GFP_ATOMIC

usb_ep_alloc_request() may sleep with current flag
GFP_KERNEL, but it is in atomic context, change
flag to GFP_ATOMIC to fix this issue.

Change-Id: Ic43a25f0a504d7fed104e636a9a614a4398820ab
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
6 years agoMerge "power: qpnp-fg-gen3: Update ESR filter coefficients for low temperature"
Linux Build Service Account [Tue, 19 Dec 2017 21:24:09 +0000 (13:24 -0800)]
Merge "power: qpnp-fg-gen3: Update ESR filter coefficients for low temperature"

6 years agomsm: ipa: add new IP filtering bitmaps
Shihuan Liu [Fri, 4 Aug 2017 18:00:00 +0000 (11:00 -0700)]
msm: ipa: add new IP filtering bitmaps

Add new IP filtering bitmaps to match TCP SYN packets.

Change-Id: I73ab2944c3d351fdb57f147d3efedd1b5829835e
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
6 years agomsm: ipa: Change error value for set quota
Mohammed Javid [Thu, 14 Dec 2017 07:19:05 +0000 (12:49 +0530)]
msm: ipa: Change error value for set quota

Currently IPA send common error -EFAULT to user space
in case of IOCTL fails. Change error value for set quota
based on error received from modem.

Change-Id: Ib6ba487a186245ddf752cd08de12293af1ea1bb9
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoMerge "ARM: dts: msm: add vwatchdog and memdump for gvm on msm8996"
Linux Build Service Account [Tue, 19 Dec 2017 10:33:31 +0000 (02:33 -0800)]
Merge "ARM: dts: msm: add vwatchdog and memdump for gvm on msm8996"

6 years agoMerge "qseecom: resend continue blocked listener request"
Linux Build Service Account [Tue, 19 Dec 2017 10:33:30 +0000 (02:33 -0800)]
Merge "qseecom: resend continue blocked listener request"

6 years agoARM: dts: msm: Remove spi_9 and i2c_8 in msm8996 ivi vplatform
Zhiqiang Tu [Tue, 19 Dec 2017 06:27:02 +0000 (14:27 +0800)]
ARM: dts: msm: Remove spi_9 and i2c_8 in msm8996 ivi vplatform

Remove spi_9 and i2c_8 since they are not needed.

Change-Id: I1fe4d722e79ebdc5e779f974ca51cc8a8424d564
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
6 years agoARM: dts: msm: Remove blsp1_uart2 on msm8996 telematics vplatform
Zhiqiang Tu [Tue, 19 Dec 2017 06:17:32 +0000 (14:17 +0800)]
ARM: dts: msm: Remove blsp1_uart2 on msm8996 telematics vplatform

Remove blsp1_uart2 since it is not needed.

Change-Id: If412f12cb1fd455cc7d4e7698d0c202ad80f35ae
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Add new device properties for msm8996 agave"
Linux Build Service Account [Mon, 18 Dec 2017 23:25:05 +0000 (15:25 -0800)]
Merge "ARM: dts: msm: Add new device properties for msm8996 agave"

6 years agoMerge "defconfig: msm: add vwatchdog and memdump for gvm"
Linux Build Service Account [Mon, 18 Dec 2017 23:25:04 +0000 (15:25 -0800)]
Merge "defconfig: msm: add vwatchdog and memdump for gvm"

6 years agoMerge "drm/mm: Fix NULL pointer dereference in allocator"
Linux Build Service Account [Mon, 18 Dec 2017 23:25:02 +0000 (15:25 -0800)]
Merge "drm/mm: Fix NULL pointer dereference in allocator"

6 years agoMerge "drm/msm: Set proper GEM address space range for drm mm allocator"
Linux Build Service Account [Mon, 18 Dec 2017 23:25:02 +0000 (15:25 -0800)]
Merge "drm/msm: Set proper GEM address space range for drm mm allocator"

6 years agoqseecom: resend continue blocked listener request
Zhen Kong [Sat, 2 Dec 2017 02:26:25 +0000 (18:26 -0800)]
qseecom: resend continue blocked listener request

When new cmd with session_id is not supported by TZ, resend
continue blocked listener request with legacy cmd using app_id.
Also set dummy app_id in qseecom_process_listener_from_smcinvoke
to support legacy cmd.

Change-Id: Icafc77cece23daff0f2ceb89c10e82a822eb582a
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years agoMerge "ARM: dts: msm: memory rework for gvm on msm8996"
Linux Build Service Account [Mon, 18 Dec 2017 09:19:12 +0000 (01:19 -0800)]
Merge "ARM: dts: msm: memory rework for gvm on msm8996"

6 years agoMerge android-4.4.97 (46d256d) into msm-4.4
Srinivasarao P [Mon, 18 Dec 2017 08:44:52 +0000 (14:14 +0530)]
Merge android-4.4.97 (46d256d) into msm-4.4

* refs/heads/tmp-46d256d
  Linux 4.4.97
  staging: r8712u: Fix Sparse warning in rtl871x_xmit.c
  xen: don't print error message in case of missing Xenstore entry
  bt8xx: fix memory leak
  s390/dasd: check for device error pointer within state change interrupts
  mei: return error on notification request to a disconnected client
  exynos4-is: fimc-is: Unmap region obtained by of_iomap()
  staging: lustre: ptlrpc: skip lock if export failed
  staging: lustre: hsm: stack overrun in hai_dump_data_field
  staging: lustre: llite: don't invoke direct_IO for the EOF case
  platform/x86: intel_mid_thermal: Fix module autoload
  scsi: aacraid: Process Error for response I/O
  xen/manage: correct return value check on xenbus_scanf()
  cx231xx: Fix I2C on Internal Master 3 Bus
  perf tools: Only increase index if perf_evsel__new_idx() succeeds
  drm/amdgpu: when dpm disabled, also need to stop/start vce.
  i2c: riic: correctly finish transfers
  ext4: do not use stripe_width if it is not set
  ext4: fix stripe-unaligned allocations
  staging: rtl8712u: Fix endian settings for structs describing network packets
  mfd: axp20x: Fix axp288 PEK_DBR and PEK_DBF irqs being swapped
  mfd: ab8500-sysctrl: Handle probe deferral
  ARM: pxa: Don't rely on public mmc header to include leds.h
  mmc: s3cmci: include linux/interrupt.h for tasklet_struct
  PM / wakeirq: report a wakeup_event on dedicated wekup irq
  Fix tracing sample code warning.
  tracing/samples: Fix creation and deletion of simple_thread_fn creation
  drm/msm: fix an integer overflow test
  drm/msm: Fix potential buffer overflow issue
  perf tools: Fix build failure on perl script context
  ocfs2: fstrim: Fix start offset of first cluster group during fstrim
  ARM: 8715/1: add a private asm/unaligned.h
  ARM: dts: mvebu: pl310-cache disable double-linefill
  arm64: ensure __dump_instr() checks addr_limit
  ASoC: adau17x1: Workaround for noise bug in ADC
  KEYS: fix out-of-bounds read during ASN.1 parsing
  KEYS: return full count in keyring_read() if buffer is too small
  cifs: check MaxPathNameComponentLength != 0 before using it
  ALSA: seq: Fix nested rwsem annotation for lockdep splat
  ALSA: timer: Add missing mutex lock for compat ioctls
  BACKPORT: xfrm: Clear sk_dst_cache when applying per-socket policy.
  Revert "ANDROID: sched/rt: schedtune: Add boost retention to RT"
  cpufreq: Drop schedfreq governor
  ANDROID: sched/rt: schedtune: Add boost retention to RT
  ANDROID: sched/rt: add schedtune accounting
  ANDROID: Revert "arm64: move ELF_ET_DYN_BASE to 4GB / 4MB"
  ANDROID: Revert "arm: move ELF_ET_DYN_BASE to 4MB"
  sched: EAS: Fix the calculation of group util in group_idle_state()
  sched: EAS: update trg_cpu to backup_cpu if no energy saving for target_cpu
  sched: EAS: Fix the condition to distinguish energy before/after

Conflicts:
drivers/cpufreq/Kconfig
drivers/gpu/drm/msm/msm_gem_submit.c
kernel/sched/core.c
kernel/sched/fair.c
kernel/sched/rt.c
kernel/sched/sched.h

Change-Id: I0d8c5287cb67fd47c8944a002c0ca71adcdef537
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
6 years agoASoC: apr: Add validity check to APR port
Aditya Bavanari [Wed, 22 Nov 2017 07:21:05 +0000 (12:51 +0530)]
ASoC: apr: Add validity check to APR port

Add boundary checks for APR port received from ADSP.

CRs-Fixed: 2143207
Change-Id: I9a7fa39ee223e1859323caa6eb74c1c8a26a041d
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoARM: dts: msm: Add new device properties for msm8996 agave
Rahul Sharma [Tue, 14 Nov 2017 10:50:13 +0000 (16:20 +0530)]
ARM: dts: msm: Add new device properties for msm8996 agave

Add lane_count, settle_count and resolution array
device properties to adv7481 device on msm8996 agave.

Change-Id: I512d3f7339905cb67613ca706c978f23dde599ae
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoARM: dts: msm: add vwatchdog and memdump for gvm on msm8996
Yimin Peng [Thu, 30 Nov 2017 11:58:13 +0000 (19:58 +0800)]
ARM: dts: msm: add vwatchdog and memdump for gvm on msm8996

Add devices for virtual watchdong and memory dump function.

Change-Id: Ic3d26e8438cd2fcd4fcf0a6091ecd40ffa956c22
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agodefconfig: msm: add vwatchdog and memdump for gvm
Yimin Peng [Thu, 30 Nov 2017 11:51:10 +0000 (19:51 +0800)]
defconfig: msm: add vwatchdog and memdump for gvm

add support to virtual watchdog and memory dump function.

Change-Id: If585e8e900487818d12cce9592c357f9a5ccfe7e
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoMerge "serial: msm_serial_hs: Allow system suspend when no client is active"
Linux Build Service Account [Sun, 17 Dec 2017 16:28:55 +0000 (08:28 -0800)]
Merge "serial: msm_serial_hs: Allow system suspend when no client is active"

6 years agoMerge "qseecom: support listener request from smcinvoke without reentrancy"
Linux Build Service Account [Sat, 16 Dec 2017 08:56:46 +0000 (00:56 -0800)]
Merge "qseecom: support listener request from smcinvoke without reentrancy"

6 years agoMerge "qseecom: fix an issue when requested listener svc id does not exist"
Linux Build Service Account [Sat, 16 Dec 2017 08:56:45 +0000 (00:56 -0800)]
Merge "qseecom: fix an issue when requested listener svc id does not exist"

6 years agoARM: dts: msm: Add option to ethernet node on msm8996 CV2X
Gustavo Solaira [Sat, 16 Dec 2017 03:06:41 +0000 (19:06 -0800)]
ARM: dts: msm: Add option to ethernet node on msm8996 CV2X

The ethernet chip has the PERST connected to its reset pin
on msm8996 CV2X boards so it has to be fully reset after
system resume, add this flag so the driver can perform the
correct operation.

Change-Id: I97ecddb4fd7830081c5af7dc9578466e995bb9dd
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agoqseecom: support listener request from smcinvoke without reentrancy
Zhen Kong [Thu, 19 Oct 2017 19:32:07 +0000 (12:32 -0700)]
qseecom: support listener request from smcinvoke without reentrancy

Add support to process listener request from smcinvoke when
reentrancy is disabled.

Change-Id: I2ce030cf6d5104ca2dec1402634a05d425e6d474
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years agoMerge "adv7481: Remove conditional compilation for PM functions"
Linux Build Service Account [Fri, 15 Dec 2017 22:14:38 +0000 (14:14 -0800)]
Merge "adv7481: Remove conditional compilation for PM functions"

6 years agoMerge "drm/msm: Correctly retrieve gpu's active power level"
Linux Build Service Account [Fri, 15 Dec 2017 22:14:37 +0000 (14:14 -0800)]
Merge "drm/msm: Correctly retrieve gpu's active power level"

6 years agoMerge "ARM: dts: msm: blsp and sdhci switch to virtual clock on msm8996 vplatform"
Linux Build Service Account [Fri, 15 Dec 2017 22:14:36 +0000 (14:14 -0800)]
Merge "ARM: dts: msm: blsp and sdhci switch to virtual clock on msm8996 vplatform"

6 years agoMerge "clk: msm: virtual clock adds support for usb, lpass and modem"
Linux Build Service Account [Fri, 15 Dec 2017 22:14:35 +0000 (14:14 -0800)]
Merge "clk: msm: virtual clock adds support for usb, lpass and modem"

6 years agoMerge "msm: ipa: Fix to validate routing table index for filter exception"
Linux Build Service Account [Fri, 15 Dec 2017 22:14:34 +0000 (14:14 -0800)]
Merge "msm: ipa: Fix to validate routing table index for filter exception"

6 years agoMerge "msm: mdss: Trigger idle fallback when no update due to touch"
Linux Build Service Account [Fri, 15 Dec 2017 22:14:33 +0000 (14:14 -0800)]
Merge "msm: mdss: Trigger idle fallback when no update due to touch"

6 years agoMerge "drivers: net: can: Add suspend/resume routine for CAN driver"
Linux Build Service Account [Fri, 15 Dec 2017 22:14:32 +0000 (14:14 -0800)]
Merge "drivers: net: can: Add suspend/resume routine for CAN driver"

6 years agoMerge "spi: spi_qsd: Poll for valid state after software Reset"
Linux Build Service Account [Fri, 15 Dec 2017 22:14:31 +0000 (14:14 -0800)]
Merge "spi: spi_qsd: Poll for valid state after software Reset"

6 years agoqseecom: fix an issue when requested listener svc id does not exist
Zhen Kong [Sat, 9 Dec 2017 20:51:36 +0000 (12:51 -0800)]
qseecom: fix an issue when requested listener svc id does not exist

When listener svc id does not exist, the listener svc entry pointer
is actualy invalid, and should be set to NULL to avoid invalid pointer
deference on cache operation when sending listener resp to TZ.

Change-Id: I6af0c7405c9dc5dfe481396979023968a8324dd0
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years agoadv7481: Remove conditional compilation for PM functions
Rahul Sharma [Wed, 6 Dec 2017 19:37:10 +0000 (01:07 +0530)]
adv7481: Remove conditional compilation for PM functions

Remove conditional compilation for power management functions,
so that suspend and resume are called always.

Change-Id: I6309df0d12db16c90a10127293bb2715cde15a29
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agomsm: ipa: Fix to validate routing table index for filter exception
Mohammed Javid [Thu, 5 Oct 2017 18:09:39 +0000 (23:39 +0530)]
msm: ipa: Fix to validate routing table index for filter exception

Fix to validate routing table index for filter action
IPA_PASS_TO_EXCEPTION case to avoid ipa assert
during commit filter rule.

Change-Id: I957f7ffc415ea1a042f6b3a948e94410d41b2262
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agomsm: mdss: Trigger idle fallback when no update due to touch
Krishna Manikandan [Fri, 15 Dec 2017 09:02:07 +0000 (14:32 +0530)]
msm: mdss: Trigger idle fallback when no update due to touch

Trigger an idle fallback with a reasonable timeout value when
there is no update despite of a touch event and idle_time is 0.
This will reset the refresh rate to minimum fps.

CRs-Fixed: 2003247
Change-Id: I4a2964038f23984bf1ea39c63bf679d80ad12cba
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
6 years agoserial: msm_serial_hs: Allow system suspend when no client is active
Mukesh Kumar Savaliya [Sat, 2 Dec 2017 10:52:27 +0000 (16:22 +0530)]
serial: msm_serial_hs: Allow system suspend when no client is active

In some cases, attempt to system resume imbalances the PM usage_count
which completely disables runtime PM callbacks of the device and suspend
doesn't happen.

Allow device to enter suspend through system PM when such condition met
and in addition do not suspend manually if runtime PM is disabled, let
auto suspend takes care of it.

Change-Id: I73df5804d47f551bfee97f43dbe772ee3774b399
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
6 years agoMerge "Merge android-4.4.96 (aed4c54) into msm-4.4"
Linux Build Service Account [Fri, 15 Dec 2017 07:58:54 +0000 (23:58 -0800)]
Merge "Merge android-4.4.96 (aed4c54) into msm-4.4"

6 years agoARM: dts: msm: memory rework for gvm on msm8996
Yimin Peng [Tue, 21 Nov 2017 08:27:28 +0000 (16:27 +0800)]
ARM: dts: msm: memory rework for gvm on msm8996

Split memory configuration for different projects.

Change-Id: I2928adb05dfe174a2d8413172ed10f4240f3f42d
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Override vendor node entires in fstab for MSM8996ProAU"
Linux Build Service Account [Thu, 14 Dec 2017 21:44:24 +0000 (13:44 -0800)]
Merge "ARM: dts: msm: Override vendor node entires in fstab for MSM8996ProAU"

6 years agodrivers: net: can: Add suspend/resume routine for CAN driver
Abinaya P [Tue, 7 Nov 2017 11:09:22 +0000 (16:39 +0530)]
drivers: net: can: Add suspend/resume routine for CAN driver

Make the CAN interrupt as a wakeup capable interrupt and also add
suspend/resume routine to handle the suspend/resume states of
the device

Change-Id: I0e972f3c4b005b52fb8d2e03f83995ecd3c47538
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
6 years agosoc: qcom: glink_smem_native_xport: Send blocked signal command
Dhoat Harpal [Thu, 14 Dec 2017 11:54:17 +0000 (17:24 +0530)]
soc: qcom: glink_smem_native_xport: Send blocked signal command

Glink smem xprt driver is not sending blocked signal command to
remote side, when fifo gets full during tx_data. This results in
Glink tx_thread taking longer time in sending data to remote side.

Glink smem xprt driver sends blocked signal command.

CRs-Fixed: 2154819
Change-Id: I105fce28449db2dd0931292cd6850d2409ae683d
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
6 years agospi: spi_qsd: Poll for valid state after software Reset
Dilip Kota [Mon, 4 Dec 2017 07:20:45 +0000 (12:50 +0530)]
spi: spi_qsd: Poll for valid state after software Reset

For SPI slave, software reset performs long pulse
reset. Software should wait for QUP to be in valid
state before doing operations on QUP.

Change-Id: Ifbed295df87a6c5c383cedb431b368b3dffca676
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
6 years agoMerge "drivers: power: reset: Do cold reset when doing oem reboot"
Linux Build Service Account [Thu, 14 Dec 2017 08:14:44 +0000 (00:14 -0800)]
Merge "drivers: power: reset: Do cold reset when doing oem reboot"

6 years agoMerge "ARM: dts: msm: enable drm msm-hyp driver for msm8996"
Linux Build Service Account [Thu, 14 Dec 2017 08:14:42 +0000 (00:14 -0800)]
Merge "ARM: dts: msm: enable drm msm-hyp driver for msm8996"

6 years agoMerge "scsi: ufs: Trigger runtime-idle in a separate work"
Linux Build Service Account [Thu, 14 Dec 2017 08:14:41 +0000 (00:14 -0800)]
Merge "scsi: ufs: Trigger runtime-idle in a separate work"