Commit Graph

19 Commits

Author SHA1 Message Date
neoyu
5c90cf2148 msm: ipa: use lower order pages and avoid OOM killer
When order 3 pages are not available, make changes to use
lower order pages, Make changes to use __GFP_RETRY_MAYFAIL
to avoid triggering OOM Killer.

Bug: 227339706
Test: SST test
Change-Id: Ic6f03b4a9b17d60242bf03a078e51b8f1382cc67
Signed-off-by: neoyu <neoyu@google.com>
2022-05-27 09:27:56 +08:00
JohnnLee
fad96b1c77 Merge branch 'LA.UM.9.12.R1.11.00.00.597.108' via branch 'qcom-msm-4.19-7250' into android-msm-pixel-4.19
Conflicts:
	Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt
	Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt
	Documentation/devicetree/bindings/sound/wm8994.txt
	Documentation/devicetree/bindings/usb/dwc3.txt
	arch/arm64/configs/vendor/kona_defconfig
	arch/arm64/mm/init.c
	drivers/base/base.h
	drivers/base/core.c
	drivers/char/diag/diagfwd_rpmsg.c
	drivers/clk/clk.c
	drivers/gpu/msm/kgsl.c
	drivers/hwtracing/coresight/coresight-tmc-etf.c
	drivers/md/dm-default-key.c
	drivers/mmc/core/block.c
	drivers/mmc/core/queue.c
	drivers/mmc/host/sdhci-msm.c
	drivers/platform/msm/ipa/Makefile
	drivers/platform/msm/ipa/ipa_api.h
	drivers/platform/msm/usb_bam.c
	drivers/power/supply/power_supply_sysfs.c
	drivers/power/supply/qcom/qpnp-qg.c
	drivers/scsi/ufs/ufs-qcom.c
	drivers/scsi/ufs/ufshcd-crypto-qti.h
	drivers/scsi/ufs/ufshcd.c
	drivers/slimbus/qcom-ngd-ctrl.c
	drivers/soc/qcom/minidump_log.c
	drivers/soc/qcom/rq_stats.c
	drivers/tty/serial/msm_geni_serial.c
	drivers/usb/dwc3/gadget.c
	fs/crypto/crypto.c
	fs/crypto/keysetup_v1.c
	fs/f2fs/data.c
	fs/proc/task_mmu.c
	fs/sdcardfs/main.c
	include/crypto/ice.h
	include/linux/mm.h
	include/linux/power_supply.h
	include/linux/sched.h
	include/net/cfg80211.h
	include/soc/qcom/socinfo.h
	include/uapi/linux/v4l2-controls.h
	kernel/sched/cpufreq_schedutil.c
	kernel/sched/fair.c
	kernel/signal.c
	kernel/time/tick-sched.c
	mm/memory.c
	mm/oom_kill.c
	mm/vmalloc.c
	net/qrtr/qrtr.c

Bug: 182748782
Change-Id: I81b2744d0ce40a5e524c5e3aa4d505b3ed305f8e
Signed-off-by: JohnnLee <johnnlee@google.com>
2021-05-14 10:40:09 +08:00
Shilpa Suresh
0f1b035635 usb: gadget: f_qc_rndis: Add RNDIS support using IPA over BAM2BAM
On some targets RNDIS function uses BAM to BAM transport,
and is handled by the f_qc_rndis driver. This change
adds RNDIS support using IPA over BAM2BAM.
This is snapshot of the qcrndis driver as of kernel
msm-4.9 'commit e4c6a37f8770697d4 ("msm: vidc: avoid OOB
write while accessing memory")'.

Change-Id: I34e9ab6ca25ea515a36ffd54216a09177e5fa746
Signed-off-by: Shilpa Suresh <sbsure@codeaurora.org>
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2020-11-19 13:33:31 +05:30
Ashok Raj Deenadayalan
8be05ea1c1 msm: ipa2: Add changes compatible to kernel-4.14
Add following changes,
	- Include dependent files.
	- Handle buffer recycling in new kernel.
	- Add WLAN endpoints for IPA_v2_6.
	- Fix indentation errors.
	- Add structure, api changes in QMI files compatible
	  with kernel 4.14.
	- Add changes to support late clk initialization.
	- Add IPA_v2_6 support for platform probing.
        - Add locking mechanism as per the new kernel.

Change-Id: I6f153398f9a11026744c076a67a609cf7af807ba
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Signed-off-by: Ashok Raj Deenadayalan <adeenada@codeaurora.org>
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2020-10-23 11:29:59 +05:30
Wilson Sung
25cdce6167 Merge LA.UM.9.12.R2.10.00.00.685.004 via branch 'qcom-msm-4.19-7250' into android-msm-pixel-4.19
Conflicts:
	drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c
	drivers/scsi/ufs/ufshcd.c
	drivers/tty/serial/msm_geni_serial.c

Bug: 156322859
Change-Id: I0ea6a5a28ff3c1b4b8d4c4d16eb375d987b1d352
Signed-off-by: Wilson Sung <wilsonsung@google.com>
2020-05-30 02:32:35 +08:00
Mark Salyzyn
9aa46ff071 resolve merge conflicts of c61884b4963ba913df06e9ff5a1f98338ae4db67 to android-msm-pixel-4.19-gki-dev
SideEffect: must export kern_addr_valid to build, followup patch fixes.

Bug: None
Test: compile tested on bramble and kona, runtime test on kona
Change-Id: I629358f2d61ac04787b1c82b1167ae7935e24acb
2020-05-30 01:51:41 +08:00
Bojun Pan
b87b1804ff msm: ipa: enable SYSPIPE_ERR_DETECTION bit for deaggr_err
We observe the IPA RX stall due to the DEAGGR_ERR_IRQ
of PACKET_SIZE > FRAME_SIZE on rndis.
 In IPA, some of de-aggregation error handling checks
are dependent on the syspipe_err_detection config bit.
Adding IGNORE_MIN_PKT_ERR bit for rndis as well based
on recommendations.

Change-Id: Iad1c816bf3371696bf665a8702fcf27490e230d0
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-04-09 09:01:36 -07:00
Will McVicker
5062bfd97b resolve merge conflicts of 0807e6a104 to android-msm-pixel-4.19-gki-dev
Signed-off-by: Will McVicker <willmcvicker@google.com>
Bug: 144043597
Test: build, boot sm8250
Change-Id: Ie9277a654f3839faf0e9676aabfc191516875010
2019-11-06 15:11:34 -08:00
Will McVicker
0f4af851ce msm: ipa: Modularize qcom,*ipa*
This includes the following devices:
 * qcom,ipa
 * qcom,ipa-smmu-ap-cb
 * qcom,ipa-smmu-wlan-cb
 * qcom,ipa-smmu-uc-cb
 * qcom,ipa-smmu-11ad-cb
 * qcom,smp2p-map-ipa-1-in
 * qcom,smp2p-map-ipa-1-out
 * qcom,ipa-mpm
 * qcom,ipa-mhi-proxy
 * qcom,rmnet-ipa3

Bug: 142346799
Test: compiled with build_sm8250.sh, booted on sm8250 MTP

Change-Id: Id4c7973525307b346cf3b521a34180fb8160e608
Signed-off-by: Will McVicker <willmcvicker@google.com>
2019-10-25 10:42:44 -07:00
Bojun Pan
b5f8ff3194 msm: ipa: Enable NAPI on IPA LAN CONS pipe
LAN RX optimization, change LAN RX data path bottom half
to run in softirq using NAPI. Also added an API for other
clients to see if we are using NAPI.

Change-Id: Iecd47f7412975b58786d81a5df3460de9aeffa21
Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-10-24 14:56:41 +03:00
Bojun Pan
005cd50e01 msm: IPA: uC debug stats for loadable modules
Add uC debug stats support for AQC/loadable modules.

Change-Id: I21cd3807c8e8973065b79f4ec43a0da382595653
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-10-22 10:13:04 -07:00
Skylar Chang
092de25449 ipa3: add hasting AP+STA quota/stats support
Add uc event ring to have ipa-uc monitor the
quota and bw-voting threshold to generate the
irq to ipa-drvier to inform if quota or and bw
threshold is hit.

Change-Id: I7ce9c1a0048016fc6b6248a1632365f51717422c
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2019-09-05 09:04:29 -07:00
Bojun Pan
3cd665b560 msm: ipa: Page recycling on WAN DL data path
Enable the page recycling on IPA WAN DL data path.

Change-Id: I25856082f51fd348e3331ebb031e422a1e627143
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-08-01 17:57:49 -07:00
Bojun Pan
4a2c0fae5f msm: IPA: FnR stats for IPA4.5
Update the FnR stats related changes for IPA 4.5.

Change-Id: I3f34b5d58862636cba39cff3403102fb7884f769
Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-06-12 12:06:27 -07:00
Amir Levy
ea064859df msm: ipa4: adapt ipa_wigig code to data buffers shared CB
This change adapts ipa_wigig code to context banks sharing between
11AD HW and IPA HW. Due to CB sharing there is no need to SMMU
map data buffers: remove SMMU mapping related code of data buffers in
case of shared CB. The buffers mapping is done by the wigig driver and
IPA may use the IOVAs without any additional mapping.
A DTS file change is needed to enable the context banks sharing.

Change-Id: I168d2db193460e554370ad46550fdc0b40ea01d0
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-04-02 03:17:46 -07:00
Michael Adisumarta
d7e572828b msm: ipa: include file changes fo MHI PRIME channels support
This change enables MHI PRIME channels for IPA tethering
offload support.

Change-Id: Ie92ee012f4aebf2f687237e26b035efecdcfcfe8
Acked-by: Jyothi J <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2019-03-18 18:16:13 -07:00
Michael Adisumarta
a87de7517c msm: ipa: IPA coalescing changes
Support new IPA coalescing pipe IPA_WAN_COAL_CONS. If coalescing
is enabled, this pipe will become the default pipe and be setup with
its own transfer ring but share an event ring with WAN_CONS. Also adds
a new coalescing ifdef and support coalescing in the RT rule.

Change-Id: I4d09aaa030c427271f59461897354e3a7cf7a563
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2019-01-09 18:53:43 -08:00
Michael Adisumarta
f5e1e3e2e2 msm: ipa: Checksum validation changes
Change DL/UL WAN pipe configurations for CS offload.
Add new 8 bytes qmap header for DL CS offload.
Add a CS offload enum for QMAP_DL cS offload.

Change-Id: If23ed20a797db143da6dca61fa4c3080a347af1d
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2018-12-21 10:30:52 -08:00
Ghanim Fodi
859783a138 msm: ipa: Add snapshot of IPA driver
This is a snapshot of the IPA and GSI drivers
from msm-4.14 to 4.19 kernel as of
'commit <cec0da843f57> ("clk: qcom: npucc: Add CRC div
source for npu_cc_cal_dp_clk_src")'.

CRs-Fixed: 2341003
Change-Id: I498b2edb878e7d75311824dd217e75893efcfc73
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2018-12-02 17:11:18 +02:00