Commit graph

814366 commits

Author SHA1 Message Date
Zhenhua Huang
8d228fbbce mm: fix the page_owner initializing issue for arm32
arm32 original logic:
1. allocated memory for page_ext(using memblock).
2. invoke the init callback of page_ext_ops like
page_owner(using buddy).
3. initialize buddy.

after this change:
1. allocated memory for page_ext(using memblock).
2. initialize buddy.
3. invoke the init callback of page_ext_ops like
page_owner(using buddy).

with the change, failure/dummy_handle can get its correct value.

Change-Id: I6598481299da115ff4be50bf0e5a61a012d5ac83
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2020-09-02 16:37:28 +08:00
qctecmdr
4bd3d726a3 Merge "net: usb: Initialize retval with zero as it might be used uninitialized" 2020-08-05 00:53:53 -07:00
qctecmdr
e5d3519287 Merge "mhi: core: Notify controller for bootup timeouts" 2020-08-05 00:53:53 -07:00
qctecmdr
000b2a1d44 Merge "config: enable VETH support for bengal" 2020-08-05 00:53:53 -07:00
qctecmdr
7816143617 Merge "sched/fair: Add policy for restricting prefer_spread to newly idle balance" 2020-08-05 00:53:53 -07:00
qctecmdr
e063ae698c Merge "icnss: Do not clear SHUTDOWN_DONE flag until reinit is done" 2020-08-05 00:53:52 -07:00
Satya Durga Srinivasu Prabhala
f177186646 sched/fair: Add policy for restricting prefer_spread to newly idle balance
Add policy for restricting prefer_spread to newly idle load balance
by expanding the tunable range.

To allow lower capacity CPUs to do aggressive newly idle load balance:
echo 3 > /proc/sys/kernel/sched_prefer_spread

To allow bother lower capacity and higher capacity CPUs to do
aggressive newly idle load balance:
echo 4 > /proc/sys/kernel/sched_prefer_spread

Change-Id: Ia62ddb29bdf592a956a9688f277178ef71dee1b3
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Co-developed-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[pkondeti@codeaurora.org: The tunable range is expanded]
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-08-05 09:27:20 +05:30
Naman Padhiar
7d672e584a icnss: Do not clear SHUTDOWN_DONE flag until reinit is done
In case of SSR/PDR, when FW comes up, platform driver receives
FW_READY indication. As part of FW_READY, platform driver calls
shutdown and reinit ops of host driver.
Clear SHUTDOWN_DONE flag at right place so that if reinit is not
called SSR/PDR because of FW again went down between calling driver
shutdown and reinit then next time directly call reinit and avoid
calling shutdown.

Change-Id: I2a8bd77ab47d5008b705010f09084cbfebc4d06e
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-08-05 00:52:27 +05:30
Sharath Chandra Vurukala
2c065a344d config: enable VETH support for bengal
enable support for VETH for bengal

Change-Id: I6f83e4add9a3cfdceb49a6e41cc33ee7a546c460
Signed-off-by: Sharath Chandra Vurukala <sharathv@codeaurora.org>
2020-08-05 00:14:36 +05:30
qctecmdr
82e942f312 Merge "rpmsg: glink: do not serve intent request if no callback present" 2020-08-04 06:47:56 -07:00
qctecmdr
2a94e864d2 Merge "msm: ipa3: Configure correct aggeragtion byte limit" 2020-08-04 06:47:56 -07:00
qctecmdr
d23ced2046 Merge "cnss2: Skip unexpected QMI server arrive" 2020-08-04 06:47:55 -07:00
qctecmdr
c72ea187b5 Merge "ARM: msm: Add board config support for 32 bit bengal iot" 2020-08-04 06:47:55 -07:00
qctecmdr
6e38f32a6b Merge "fs: crypto: Fix memory leak while allocating blk crypto key" 2020-08-04 06:47:55 -07:00
qctecmdr
b8636f5826 Merge "power: qpnp-smblite: Update USB-type based on charger type" 2020-08-04 00:42:43 -07:00
qctecmdr
6c2dbc41da Merge "usb: dwc3: gadget: Rate limit error message within ep_dequeue() API" 2020-08-04 00:42:42 -07:00
qctecmdr
6b3fd221aa Merge "sched/walt: Improve the scheduler" 2020-08-04 00:42:41 -07:00
qctecmdr
867d35c7b3 Merge "clk: qcom: Fix possible NULL pointer dereferences" 2020-08-04 00:42:41 -07:00
qctecmdr
254c2749b2 Merge "drivers: thermal: call TSENS re-init only when register is ready to update" 2020-08-04 00:42:40 -07:00
qctecmdr
81d62da0ab Merge "msm: kgsl: Use correct Highest Bank Bit (HBB) value for LPDDR3 on A702" 2020-08-03 06:26:35 -07:00
qctecmdr
037d1f7483 Merge "msm: kgsl: Fix possible use-after-free while adding context to active list" 2020-08-03 06:26:35 -07:00
qctecmdr
5244792fd6 Merge "scsi: ufshcd-crypto-qti.c: do not resume for key reprogram" 2020-08-03 06:26:34 -07:00
qctecmdr
31027b9781 Merge "slimbus: slim-msm-ngd: Add 64 bit iommu mask support" 2020-08-03 06:26:34 -07:00
qctecmdr
96103a3af9 Merge "RTC6226: disable the RDS during scan operation" 2020-08-03 06:26:34 -07:00
Manaf Meethalavalappu Pallikunhi
5df36ce315 drivers: thermal: call TSENS re-init only when register is ready to update
If TSENS controller reset pin is held asserted for long duration
and the same time if TSENS software detects TSENS reset and tries
to re-initialize TSENS controller, TSENS initialization may not
reflect in TSENS register due to reset pin is held asserted.

Invoke TSENS re-init routine only if software is able to write
TSENS register successfully. It makes sure that TSENS re-init
routine is able to re-initialize TSENS controller.

Add a check whether TSENS is re-enabled or not on post TSENS re-init.
If it is not re-enabled, re-try TSENS re-init routine.

Change-Id: Ia0d9b794b47854d269438ccfd9967cf7112aa5e5
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
2020-08-03 18:54:49 +05:30
Neeraj Soni
0c7cfe4998 fs: crypto: Fix memory leak while allocating blk crypto key
In case of legaacy data encryption mode, block crypto key allocated
for file encryption was not freed when inode is evicted or destroyed
as crypto data do not own the key. So free the blk crpto key
explicitly in case legacy data encryption mode is used.

Change-Id: Ia860edc7c67516bf8fa47b6e3241ce068a09492b
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
2020-08-03 12:26:51 +05:30
Vijay Navnath Kamble
8efb369773 ARM: msm: Add board config support for 32 bit bengal iot
This change add board config support to enable build
32 bit kernel for bengal iot.

Change-Id: I4a9c5ef9046309456e4f0df04bccabec18d57906
Signed-off-by: Vijay Navnath Kamble <vkamble@codeaurora.org>
2020-08-03 12:14:44 +05:30
Pavankumar Kondeti
291a2ce67c sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I4da8fd848f9cd43d510ac2ae63605f051e723775
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-08-03 11:04:05 +05:30
Tengfei Fan
67e9f6f876 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: If03bf5f104740adf09d854837ae9b141dc97cbc6
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
[pkondeti@codeaurora: Added tunable based on priority]
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-08-03 11:04:05 +05:30
Jagadeesh Kona
070f2bf811 clk: qcom: Fix possible NULL pointer dereferences
Add checks to properly handle and fix possible NULL pointer
dereferences and avoid usage of uninitialized variables.

Change-Id: I8c8fe1aa648e3f9fd6d7adf0ba55dc78d86ae25f
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-08-03 09:42:13 +05:30
Ashok Vuyyuru
b933b4e405 msm: ipa3: Configure correct aggeragtion byte limit
IPA HW will treat aggeragtion byte limit value 1 consider as 1K.
Adding changes to configuring the aggeragtion byte value w.r.t
IPA HW requirement.

Change-Id: Ibe9353a39971296f7e4b04f30039457c07c63033
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-07-31 03:39:31 -07:00
himta ram
85f08273a4 RTC6226: disable the RDS during scan operation
RDS enable is set during scanning and it causing the
incorrect register update for rtc6226 chip and this
leads to no audio issue.
Set the RDS enable bit to 0 before scanning and
set to 1 after scanning finishes.

CRs-Fixed: 2744378
Change-Id: I2c2fae1e01fb1fadccbc9133f472fca996bc2496
Signed-off-by: himta ram <hram@codeaurora.org>
2020-07-30 19:25:48 -07:00
himta ram
13cde48518 RTC6226: extend the seek timeout to 15 sec
Seek time out is set to 7 sec and when lower Channel Spacing
is configured. RTC6226 chip is taking more then 7 sec to scan
the whole band range.
Set the seek timeout to 15 sec so that scan can be performed
within the seek timeout value.
Set the Tune time out value to 3 sec.

CRs-Fixed: 2744390
Change-Id: Id79f21aaac049b78ec22b8f90c533deac4bc448b
Signed-off-by: himta ram <hram@codeaurora.org>
2020-07-30 19:17:58 -07:00
Yue Ma
71ff1dc06b cnss2: Skip unexpected QMI server arrive
Skip unexpected QMI server arrive and avoid assert.

Change-Id: I8e595636d000683a9fd1c2f77b558775ae7b3038
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-07-30 12:02:39 -07:00
Bhaumik Bhatt
3422417948 mhi: core: Notify controller for bootup timeouts
During a synchronous power-up, at times the device may not
transition to a desired bootup state and host has to wait for a
longer time to dump registers and figure out any problems that
may have occurred on the device. Allow for the controller to
receive a callback for timeouts seen while waiting for a READY
state or an SBL or AMSS execution environment entry so it can
evaluate any debug approach it wants.

Change-Id: I36f90e478806476bf9ef4335eccb5273df812268
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-07-30 10:07:22 -07:00
Anirudh Ghayal
7392034817 power: qpnp-smblite: Update USB-type based on charger type
Currently, USB power supply type is set to POWER_SUPPLY_TYPE_USB
in power supply descriptor. power_supply_show_property() shows
POWER_SUPPLY_PROP_TYPE based on psy->desc->type. Userspace
process like healthd would read POWER_SUPPLY_PROP_TYPE to print
the adapter type in logs (e.g. "chg=u" for SDP, "chg=a" for DCP).
Hence update usb_psy_desc type runtime to show the USB power
supply type accordingly.

Add CURRENT_MAX and VOLTAGE_MAX properties to enable userspace to
identify slow/fast charging.

Change-Id: Ic5b918434c63f71c412f782564e7a7aa818da6ff
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-07-30 17:06:39 +05:30
qctecmdr
e3e20132c3 Merge "net: qualcomm: rmnet: validate ipv6 extension header lengths" 2020-07-29 22:49:10 -07:00
qctecmdr
b9ed3e92ea Merge "scsi: ufs: Fix Null pointer dereference" 2020-07-29 22:49:09 -07:00
qctecmdr
12f775d87b Merge "ANDROID: fscrypt: handle direct I/O with IV_INO_LBLK_32" 2020-07-29 22:49:09 -07:00
qctecmdr
759dd5e50c Merge "sched/fair: Improve the scheduler" 2020-07-29 22:49:09 -07:00
qctecmdr
b2c38905f4 Merge "diag: Update event and log code ranges" 2020-07-29 22:49:09 -07:00
qctecmdr
4bde172f18 Merge "vidc_3x: Fix IDR control setting issue" 2020-07-29 22:49:08 -07:00
qctecmdr
d7525bdb87 Merge "Revert "cnss2: Assert if MHI resume fails"" 2020-07-29 22:49:08 -07:00
Subramanian Ananthanarayanan
bab10f0eca slimbus: slim-msm-ngd: Add 64 bit iommu mask support
Added 64 bit mask support in slimbus driver for iommu mapping.

Change-Id: I7d4a6be851346c372e0745f6e1bcdb9d71111886
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
2020-07-30 11:12:26 +05:30
Deepak Kumar Singh
b5b6007d15 rpmsg: glink: do not serve intent request if no callback present
Sometime remote may try to send packet before receive callback is
assigned. Which can result in dropping of packets on apps.

Acknowledge intent request but queue the intent only when receive
callback assignment is complete.

Change-Id: Ie366c24e204db7f1609e2345ee3324cb00f56f3e
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-07-30 09:56:25 +05:30
Mahesh Kumar Kalikot Veetil
d2adbc0c5d Revert "cnss2: Assert if MHI resume fails"
This reverts commit c265a8fa01.
Assert will be handled by a different API.

Change-Id: I2e6cb641669539ec505993ac7fe69e2a652f2f6f
CRs-Fixed: 2741967
Signed-off-by: Mahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org>
2020-07-29 12:21:14 -07:00
Vasantha Balla
94396172bb vidc_3x: Fix IDR control setting issue
Move V4L2_CID_MPEG_VIDC_VIDEO_IDR_PERIOD to
vidc_3x uapi media header file msm_vidc.h.

Change-Id: I70def7b864d5d01faf7f5953ede0031650bb224d
Signed-off-by: Vasantha Balla <vballa@codeaurora.org>
2020-07-29 10:21:03 -07:00
Puranam V G Tejaswi
17d18b4439 msm: kgsl: Use correct Highest Bank Bit (HBB) value for LPDDR3 on A702
LPDDR3 provides multiple config options based on DDR density. The HBB
values are different for various config options. As A702 supports LPDDR3,
query for the appropriate HBB value from device tree for LPDDR3 parts.

Change-Id: I60b469363636985963ada007f43196aa25608267
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
2020-07-29 20:30:58 +05:30
Phanindra Babu Pabba
8d5a3ee850 scsi: ufshcd-crypto-qti.c: do not resume for key reprogram
When reprogram_all_keys is called from keyslot manager, it is
done as part of the ufs resume context. This will cause a hang
when keyslot program tries to do a resume again. Avoid doing a
resume if keyslot program is called from resume context.

Change-Id: I336fd580885d8e26ec9bf3fafe13e30404ba3ac5
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
Signed-off-by: Phanindra Babu Pabba <pabba@codeaurora.org>
2020-07-29 14:57:32 +05:30
Nitin Rawat
5436193ce5 scsi: ufs: Fix Null pointer dereference
Fix the null pointer derefernce.

Change-Id: Ic047458575d2b5b303c7d9004db4c9d89d5959bd
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-07-29 13:21:07 +05:30