Commit graph

595561 commits

Author SHA1 Message Date
Subbaraman Narayanamurthy
b5ef1a8168 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>
2017-12-20 15:42:23 -08:00
Linux Build Service Account
0c6a32296a Merge "defconfig: msm8998: Enable kernel AIO support" 2017-12-20 12:37:48 -08:00
Linux Build Service Account
a5d34c6937 Merge "msm: ipa: add new IP filtering bitmaps" 2017-12-20 12:37:46 -08:00
Linux Build Service Account
a3cf98624f Merge "msm: ipa: Change error value for set quota" 2017-12-20 12:37:45 -08:00
Linux Build Service Account
86451b3a26 Merge "ARM: dts: msm: Remove blsp1_uart2 on msm8996 telematics vplatform" 2017-12-20 12:37:44 -08:00
Yuanyuan Liu
daee03cd52 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>
2017-12-20 10:53:14 -08:00
Rahul Sharma
ecb925ac1e 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>
2017-12-20 02:41:51 -08:00
Vijayavardhan Vennapusa
53bfc90f6e 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>
2017-12-20 13:06:30 +05:30
Linux Build Service Account
e1fe906b59 Merge "msm: Array bounds check for buffer index" 2017-12-19 22:27:53 -08:00
Linux Build Service Account
cbd271f847 Merge "ARM: dts: msm: update route map for sdm660 internal codec" 2017-12-19 22:27:52 -08:00
Linux Build Service Account
9bc61112ee Merge "ALSA: pcm: use lock to protect substream runtime resource" 2017-12-19 22:27:50 -08:00
Linux Build Service Account
06acadc1d7 Merge "ALSA: pcm: remove unused variable from snd_pcm_info()" 2017-12-19 22:27:48 -08:00
Linux Build Service Account
2b22d5e4e3 Merge "ASoC: apr: Add validity check to APR port" 2017-12-19 22:27:47 -08:00
Linux Build Service Account
28c04d8c14 Merge "ASoC: msm: qdsp6v2: Set freed pointers to NULL" 2017-12-19 22:27:46 -08:00
Linux Build Service Account
6e3c381a04 Merge "ARM: dts: msm: add support for TDM interfaces on msm8996 MTP" 2017-12-19 22:27:43 -08:00
Linux Build Service Account
67e9dcf13c Merge "ASoC: sdm660_cdc: Fix pop noise when device switch" 2017-12-19 22:27:42 -08:00
Linux Build Service Account
9644b44c7d Merge "soc: qcom: glink_smem_native_xport: Send blocked signal command" 2017-12-19 22:27:40 -08:00
Linux Build Service Account
0666226cff Merge "ARM: dts: msm: Remove spi_9 and i2c_8 in msm8996 ivi vplatform" 2017-12-19 22:27:39 -08:00
Liangliang Lu
4d74c15e42 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>
2017-12-19 22:01:48 -08:00
Linux Build Service Account
aab5d115b6 Merge "power: qpnp-fg-gen3: Update ESR filter coefficients for low temperature" 2017-12-19 13:24:09 -08:00
Shihuan Liu
4c902280da 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>
2017-12-19 11:34:42 -08:00
Mohammed Javid
50e6a826d7 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>
2017-12-19 03:41:28 -08:00
Linux Build Service Account
f05aab07b7 Merge "ARM: dts: msm: add vwatchdog and memdump for gvm on msm8996" 2017-12-19 02:33:31 -08:00
Linux Build Service Account
12c0bc48ce Merge "qseecom: resend continue blocked listener request" 2017-12-19 02:33:30 -08:00
Zhiqiang Tu
e912005f86 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>
2017-12-19 14:27:02 +08:00
Zhiqiang Tu
60c92e2064 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>
2017-12-19 14:17:32 +08:00
Linux Build Service Account
1c86ad4bd6 Merge "ARM: dts: msm: Add new device properties for msm8996 agave" 2017-12-18 15:25:05 -08:00
Linux Build Service Account
b878c26f4f Merge "defconfig: msm: add vwatchdog and memdump for gvm" 2017-12-18 15:25:03 -08:00
Linux Build Service Account
b2fc2d0863 Merge "drm/mm: Fix NULL pointer dereference in allocator" 2017-12-18 15:25:02 -08:00
Linux Build Service Account
17d650383a Merge "drm/msm: Set proper GEM address space range for drm mm allocator" 2017-12-18 15:25:01 -08:00
Zhen Kong
0a2d725d48 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>
2017-12-18 13:59:20 -08:00
Yong Ding
8ad90a3cf7 soc: qcom: hab: add some code clean up
Add some code clean up for hab driver, including removing
implicit type conversion, and etc.

Change-Id: Ic2910f48063e22d1708972c1e0a5d23cbf179874
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2017-12-18 18:41:11 +08:00
Yong Ding
cd4b6d858f soc: qcom: hab: fix issues in multi-threads cases
In multi-threads stress tests, some synchronization issues
were found. Here are the fixes for them.

Change-Id: I43a1fef5771af08f3fe7c0be486cc2d36667e773
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2017-12-18 18:41:07 +08:00
Yong Ding
3addfa2d6e soc: qcom: hab: use separated irq for each pchan
Before this change, all physical channels share only one single irq
issued by only one single virtual shmem device from hypervisor.
To achieve better performance, each physical channel will be built
on top of one virtual shmem device with its own irq.

Change-Id: I5bf42896883865908c80df75f848174f4acf3717
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2017-12-18 18:41:01 +08:00
Yong Ding
8185adc10d soc: qcom: hab: add multi-GVMs support
This is the new feature to support multiple Guest Virtual
Machiness communications.
In the past, HAB driver supported the communication between
only one single GVM and the host machine. With this new
feature, more than one GVMs can communicate with the host
machine over HAB driver.

Change-Id: I22eb17b7cf367e25e2d829d9dbd2d3a3463be1e8
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2017-12-18 18:39:55 +08:00
Linux Build Service Account
c2e3a1a7e7 Merge "ARM: dts: msm: memory rework for gvm on msm8996" 2017-12-18 01:19:12 -08:00
Srinivasarao P
bb6e807311 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>
2017-12-18 14:23:14 +05:30
Aditya Bavanari
c643a15d73 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>
2017-12-18 12:22:43 +05:30
Rahul Sharma
bd61eed286 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>
2017-12-18 12:14:34 +05:30
Yimin Peng
7632bd7e03 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>
2017-12-18 11:11:35 +08:00
Yimin Peng
58f8575c78 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>
2017-12-18 11:09:55 +08:00
Linux Build Service Account
b598eeb6bc Merge "serial: msm_serial_hs: Allow system suspend when no client is active" 2017-12-17 08:28:54 -08:00
Linux Build Service Account
02a73d4553 Merge "qseecom: support listener request from smcinvoke without reentrancy" 2017-12-16 00:56:46 -08:00
Linux Build Service Account
dd2fb75a0c Merge "qseecom: fix an issue when requested listener svc id does not exist" 2017-12-16 00:56:44 -08:00
Gustavo Solaira
3195fe4c37 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>
2017-12-15 19:06:41 -08:00
Zhen Kong
f20c33ce06 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>
2017-12-15 15:26:57 -08:00
Linux Build Service Account
0181952bf7 Merge "adv7481: Remove conditional compilation for PM functions" 2017-12-15 14:14:38 -08:00
Linux Build Service Account
89db7216b2 Merge "drm/msm: Correctly retrieve gpu's active power level" 2017-12-15 14:14:37 -08:00
Linux Build Service Account
62d6ead3ee Merge "ARM: dts: msm: blsp and sdhci switch to virtual clock on msm8996 vplatform" 2017-12-15 14:14:36 -08:00
Linux Build Service Account
5074886944 Merge "clk: msm: virtual clock adds support for usb, lpass and modem" 2017-12-15 14:14:35 -08:00