Commit graph

890,797 commits

Author SHA1 Message Date
Subbaraman Narayanamurthy
cdc861b100 iio: qcom-spmi-adc5: Handle EOC properly
Currently, when an ADC7 channel is read, there is a wait time of
10 ms where an EOC (end of conversion) interrupt should happen
thereby completing the wait for ADC conversion. However, if this
wait times out, it is not handled and stale data can be read. Add
error logs to print when this wait times out as well as if EOC
bit is not set and return an error.

Also, this 10 ms wait time for EOC after requesting for a channel
conversion is not sufficient. As per the hardware recommendation
when multiple subsystems requests PMIC HW arbiter to read same
or different channels on different PMICs simultaneously, it could
take 15 ms for a good case i.e. where all the conversion requests
went through successfully. However, for a worst case where this
conversion request times out, it could take up to 500 ms before
an EOC interrupt is sent by PBS to SW. Hence, increase conversion
wait time to 501 ms so that no other channel reads can be made in
the worst case. Also print a warning when the wait time for EOC
is more than 15 ms.

Change-Id: I69eeade3e85f740af10cd7a3d668e67f67f6617d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-16 17:39:05 -07:00
qctecmdr
522ef8875f Merge "clk: qcom: smd-rpm: Add panic notifier in HOLI" 2020-09-14 00:22:43 -07:00
qctecmdr
49212527fb Merge "mm/Kconfig: Default Enable LIMIT_MOVABLE_ZONE_ALLOC" 2020-09-14 00:22:43 -07:00
qctecmdr
35433c760e Merge "msm: kgsl: Skip state change in idle check, if requested state is NONE" 2020-09-14 00:22:42 -07:00
qctecmdr
1f716a06c5 Merge "msm-perf: Added node for perf notification" 2020-09-14 00:22:42 -07:00
qctecmdr
4637ca5f0b Merge "msm: kgsl: Enable IFPC for A660 GPU variant" 2020-09-13 21:34:20 -07:00
qctecmdr
a6f1022c82 Merge "input: qcom-hv-haptics: read CAL_TLRA_CL_STS from SDAM after boot up" 2020-09-13 21:34:19 -07:00
qctecmdr
0f27a47479 Merge "power: step-chg-jeita: Add support to tune hysteresis for jeita-fcc-step" 2020-09-13 21:34:19 -07:00
qctecmdr
135494c096 Merge "power: battery: Fix typo for cp_slave channel name" 2020-09-13 21:34:18 -07:00
qctecmdr
abf363fab0 Merge "clk: qcom: gdsc-regulator: Update support to skip GDSC disable" 2020-09-13 21:34:18 -07:00
qctecmdr
f2de41e350 Merge "msm; kgsl: Correct secure pagetable pointer check" 2020-09-13 21:34:17 -07:00
qctecmdr
6688d82520 Merge "defconfig: lahaina-qgki: Enable CONFIG_PSTORE_PMSG" 2020-09-13 21:34:17 -07:00
richagar
5190e75017 msm-perf: Added node for perf notification
Added support for notifying hints from userspace

Change-Id: I3af1951614e4cd20826a595c6fca23b18c5a749b
Signed-off-by: richagar <richagar@codeaurora.org>
2020-09-13 21:23:41 -07:00
qctecmdr
98a140af35 Merge "sched/fair: Improve the scheduler" 2020-09-13 18:52:20 -07:00
Huang Yiwei
5213f0e7b7 defconfig: lahaina-qgki: Enable CONFIG_PSTORE_PMSG
Enable CONFIG_PSTORE_PMSG to collect user-space log.

Change-Id: I2c1a5482e7fe1bb28a953c777ecb7459b8958b9b
Signed-off-by: Huang Yiwei <hyiwei@codeaurora.org>
2020-09-14 09:36:36 +08:00
qctecmdr
3eb36f7420 Merge "soc: qcom: msm_perf: fix error checks" 2020-09-13 16:08:31 -07:00
qctecmdr
4fab22c7c1 Merge "binder: update low_latency selection for binder transactions" 2020-09-13 16:08:30 -07:00
qctecmdr
3462a9fc21 Merge "cnss2: Set CNSS PM ops to PM domain" 2020-09-13 16:08:29 -07:00
qctecmdr
1a9824ba7e Merge "msm: kgsl: Sending KGSL events to msm perf module" 2020-09-13 12:56:20 -07:00
Aman Mehta
37a0c3378e msm: kgsl: Sending KGSL events to msm perf module
Add msm performance module function calls to send
kgsl queue, submit and retired events. These events
will be accessed by userspace through msm performance
module to apply dynamic performance boosts.

Change-Id: I6d93831e5fe821032b8e32c52e88b72ab102f6a2
Signed-off-by: Aman Mehta <amanmeht@codeaurora.org>
2020-09-13 10:44:56 -07:00
qctecmdr
63eae4e5e5 Merge "staging: android: ion: Remove system heap aliasing" 2020-09-13 10:05:31 -07:00
qctecmdr
8b8ecf1c69 Merge "input: touchscreen: synaptics_dsx: add new touch driver" 2020-09-13 10:05:31 -07:00
qctecmdr
0cfcff8f38 Merge "dt-bindings: iio: add smb139x IIO channels" 2020-09-13 07:15:09 -07:00
qctecmdr
adece9b4f0 Merge "power: smb1398: Update min-ilim setting to 1A" 2020-09-13 07:15:07 -07:00
qctecmdr
effaca9a39 Merge "scsi: ufs: Add fixup_dev_quirks vops on qcom platform" 2020-09-13 01:13:33 -07:00
qctecmdr
7e0c8f5f14 Merge "soc: qcom: mem-buf: Fix memory leak in mem_buf_alloc()" 2020-09-13 01:13:33 -07:00
qctecmdr
b05a1ae428 Merge "haven: Add support for the MEM_ACCEPTED notification" 2020-09-13 01:13:33 -07:00
qctecmdr
8e7791b3c0 Merge "cnss2: Add cnss_smmu_unmap API" 2020-09-13 01:13:32 -07:00
qctecmdr
4335979f35 Merge "power: supply: qti_battery_charger: Fix FCC configuration" 2020-09-13 01:13:32 -07:00
qctecmdr
77d8e38f16 Merge "soc: qcom: pmic_glink: add an error log when pmic_glink_write fails" 2020-09-13 01:13:31 -07:00
qctecmdr
4ef01dfe34 Merge "hwmon: qti_amoled_ecm: add debug log for nvmem writes" 2020-09-13 01:13:31 -07:00
qctecmdr
815c8456aa Merge "power: smblite: Add snapshot of SMBLITE driver and its dependencies" 2020-09-13 01:13:30 -07:00
qctecmdr
37fbddf552 Merge "irqchip: gicv3: add hardware irq print in gic_show_resume_irq()" 2020-09-13 01:13:30 -07:00
Ashish Chavan
1a3b9a3582 power: step-chg-jeita: Add support to tune hysteresis for jeita-fcc-step
Allow configuring the rising and falling hysteresis to allow better fine
tuning of the charge current across battery temperature thresholds.

Change-Id: I88419d0694f0e70a6f1115e144685381e29cfd96
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-09-11 20:13:13 -07:00
qctecmdr
e900a3179e Merge "media: v4l2-core: remove the unused code" 2020-09-11 17:31:06 -07:00
qctecmdr
0f41fad1db Merge "dcc_v2: fix 1 write 1 read register configuration fail issue" 2020-09-11 17:31:05 -07:00
qctecmdr
43e5660aef Merge "soc: qcom: Replace SPCOM channel owner pid with tgid" 2020-09-11 17:31:05 -07:00
qctecmdr
dae63ac667 Merge "msm: cvp: update hbb bit based on ddr type for shima and lahaina" 2020-09-11 17:31:04 -07:00
qctecmdr
dd762656ce Merge "mem-offline: add a knob to allow to skip sending RPM/AOP msg" 2020-09-11 17:31:04 -07:00
qctecmdr
a7070a834f Merge "power: supply: qcom: Fix SMB5 and QG IIO device names" 2020-09-11 17:31:04 -07:00
qctecmdr
53cb12a6d2 Merge "memshare: Use carveouts for memory sharing usecases" 2020-09-11 17:31:03 -07:00
qctecmdr
0ddb8e5654 Merge "power: battery: Add support to enable PPS to work in CV mode" 2020-09-11 17:31:03 -07:00
qctecmdr
d480a9b0f9 Merge "msm: kgsl: Show max gpu temperature" 2020-09-11 17:31:02 -07:00
qctecmdr
b8d4dbb8c8 Merge "defconfig: Enable smcinvoke on haven" 2020-09-11 17:31:02 -07:00
qctecmdr
d2418b6330 Merge "usb: dwc3: dwc3-msm: Export msm_data_fifo_config() for QDSS" 2020-09-11 17:31:02 -07:00
Subbaraman Narayanamurthy
db23351bf7 soc: qcom: pmic_glink: add an error log when pmic_glink_write fails
Add an error log in pmic_glink_write when rpmsg_trysend fails to
send the message for a client. It will be useful for debugging.

Change-Id: I4d3e72fdf64f1df6caad10840e21517c393530b7
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-11 15:39:08 -07:00
Subbaraman Narayanamurthy
d68f7175d5 dt-bindings: iio: add smb139x IIO channels
Add SMB_TEMP, IIN_SMB and ICHG_SMB channels for both SMB139x
charge pumps that can be paired with PM8350B.

Change-Id: Ie67f308d59439a8cb2bced6e80693b101261f3cc
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-11 12:45:55 -07:00
Subbaraman Narayanamurthy
f086d6a2ec dt-bindings: iio: update pm8350b ADC channel list
Add PM8350B_ADC7_ICHG_FB channel to read charging current for
PM8350B. Also, update qcom,spmi-vadc.h to add ADC7_ICHG_FB and
other relevant channels that are needed for reading input and
charging current for SMB139x charger pumps along with scale
function indices.

Change-Id: I4a1b53f328e1b394063cbf951f6ff978eb96d21e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-11 12:45:19 -07:00
Deepak Kumar
612b69bab2 msm; kgsl: Correct secure pagetable pointer check
Secure pagetable pointer in case of secure pagetable creation
failure is set to ERR_PTR. Correct the secure pagetable pointer
check in kgsl_iommu_map_secure_global to avoid invalid pointer
access when someone tries to map a secure global buffer.

Change-Id: Ic938072e38c410a31158b8ab83f2678b2a64f276
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2020-09-12 01:03:02 +05:30
Isaac J. Manjarres
2b91868a72 soc: qcom: mem-buf: Fix memory leak in mem_buf_alloc()
When mem_buf_alloc() encounters an error after mapping the memory
in the stage-2 page tables of the VM, the SGL descriptor is not
freed in the error handling path, so free it.

Change-Id: I6e6fa296311575bb55cd0b9da7a138970e8b8e74
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-09-11 12:19:13 -07:00