Commit Graph

234 Commits

Author SHA1 Message Date
Linux Build Service Account
78667dedc6 Merge "Merge android-4.9.90 (dd1e37e) into msm-4.9" 2018-05-03 09:02:10 -07:00
Blagovest Kolenichev
dc9767ff92 Merge android-4.9.90 (dd1e37e) into msm-4.9
* refs/heads/tmp-dd1e37e:
  Linux 4.9.90
  usb: gadget: f_hid: fix: Move IN request allocation to set_alt()
  RDMA/ucma: Don't allow join attempts for unsupported AF family
  RDMA/ucma: Fix access to non-initialized CM_ID object
  clk: migrate the count of orphaned clocks at init
  IB/mlx5: Fix out-of-bounds read in create_raw_packet_qp_rq
  IB/mlx5: Fix integer overflows in mlx5_ib_create_srq
  dmaengine: ti-dma-crossbar: Fix event mapping for TPCC_EVT_MUX_60_63
  clk: si5351: Rename internal plls to avoid name collisions
  clk: axi-clkgen: Correctly handle nocount bit in recalc_rate()
  clk: Don't touch hardware when reparenting during registration
  nfsd4: permit layoutget of executable-only files
  ARM: dts: aspeed-evb: Add unit name to memory node
  RDMA/ocrdma: Fix permissions for OCRDMA_RESET_STATS
  ip6_vti: adjust vti mtu according to mtu of lower device
  iommu/vt-d: clean up pr_irq if request_threaded_irq fails
  pinctrl: rockchip: enable clock when reading pin direction register
  pinctrl: Really force states during suspend/resume
  coresight: Fix disabling of CoreSight TPIU
  pty: cancel pty slave port buf's work in tty_release
  drm/omap: DMM: Check for DMM readiness after successful transaction commit
  omapdrm: panel: fix compatible vendor string for td028ttec1
  vgacon: Set VGA struct resource types
  iser-target: avoid reinitializing rdma contexts for isert commands
  IB/umem: Fix use of npages/nmap fields
  RDMA/cma: Use correct size when writing netlink stats
  IB/ipoib: Avoid memory leak if the SA returns a different DGID
  mmc: avoid removing non-removable hosts during suspend
  drm/tilcdc: ensure nonatomic iowrite64 is not used
  dmaengine: zynqmp_dma: Fix race condition in the probe
  platform/chrome: Use proper protocol transfer function
  watchdog: Fix potential kref imbalance when opening watchdog
  cros_ec: fix nul-termination for firmware build info
  serial: 8250_dw: Disable clock on error
  qmi_wwan: set FLAG_SEND_ZLP to avoid network initiated disconnect
  media: [RESEND] media: dvb-frontends: Add delay to Si2168 restart
  ath10k: handling qos at STA side based on AP WMM enable/disable
  media: bt8xx: Fix err 'bt878_probe()'
  rtlwifi: rtl_pci: Fix the bug when inactiveps is enabled.
  RDMA/iwpm: Fix uninitialized error code in iwpm_send_mapinfo()
  drm/msm: fix leak in failed get_pages
  media: c8sectpfe: fix potential NULL pointer dereference in c8sectpfe_timer_interrupt
  Bluetooth: btqcomsmd: Fix skb double free corruption
  Bluetooth: hci_qca: Avoid setup failure on missing rampatch
  block/mq: Cure cpu hotplug lock inversion
  perf tests kmod-path: Don't fail if compressed modules aren't supported
  ath10k: fix out of bounds access to local buffer
  rtc: ds1374: wdt: Fix stop/start ioctl always returning -EINVAL
  rtc: ds1374: wdt: Fix issue with timeout scaling from secs to wdt ticks
  mm: hwpoison: call shake_page() after try_to_unmap() for mlocked page
  mm, vmstat: suppress pcp stats for unpopulated zones in zoneinfo
  mm: fix check for reclaimable pages in PF_MEMALLOC reclaim throttling
  cifs: small underflow in cnvrtDosUnixTm()
  net: hns: fix ethtool_get_strings overflow in hns driver
  pNFS: Fix a deadlock when coalescing writes and returning the layout
  sm501fb: don't return zero on failure path in sm501fb_start()
  video: fbdev: udlfb: Fix buffer on stack
  x86/xen: split xen_smp_prepare_boot_cpu()
  tcm_fileio: Prevent information leak for short reads
  ia64: fix module loading for gcc-5.4
  ACPI / power: Delay turning off unused power resources after suspend
  md/raid10: skip spare disk as 'first' disk
  IB/rxe: Don't clamp residual length to mtu
  Input: twl4030-pwrbutton - use correct device for irq request
  power: supply: pda_power: move from timer to delayed_work
  power: supply: isp1704: Fix unchecked return value of devm_kzalloc
  power: supply: bq24190_charger: Add disable-reset device-property
  bnx2x: Align RX buffers
  qed: Unlock on error in qed_vf_pf_acquire()
  vxlan: correctly handle ipv6.disable module parameter
  Bluetooth: hci_ldisc: Add protocol check to hci_uart_tx_wakeup()
  Bluetooth: hci_ldisc: Add protocol check to hci_uart_dequeue()
  soc/fsl/qe: round brg_freq to 1kHz granularity
  net: ethernet: ucc_geth: fix MEM_PART_MURAM mode
  ixgbevf: fix size of queue stats length
  jbd2: Fix lockdep splat with generic/270 test
  drm/nouveau/kms: Increase max retries in scanout position queries.
  drm/amdgpu: fix gpu reset crash
  ACPI / PMIC: xpower: Fix power_table addresses
  ipmi/watchdog: fix wdog hang on panic waiting for ipmi response
  platform/x86: asus-wmi: try to set als by default
  IB/hfi1: Fix softlockup issue
  IB/rdmavt: restore IRQs on error path in rvt_create_ah()
  ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP
  netfilter: x_tables: unlock on error in xt_find_table_lock()
  mmc: sdhci-of-esdhc: limit SD clock for ls1012a/ls1046a
  mac80211: Fix possible sband related NULL pointer de-reference
  ipvs: explicitly forbid ipv6 service/dest creation if ipv6 mod is disabled
  staging: wilc1000: fix unchecked return value
  staging: unisys: visorhba: fix s-Par to boot with option CONFIG_VMAP_STACK set to y
  gpio: gpio-wcove: fix GPIO IRQ status mask
  x86/KASLR: Fix kexec kernel boot crash when KASLR randomization fails
  mtip32xx: use runtime tag to initialize command header
  mfd: palmas: Reset the POWERHOLD mux during power off
  dt-bindings: mfd: axp20x: Add "xpowers,master-mode" property for AXP806 PMICs
  iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value
  ACPICA: iasl: Fix IORT SMMU GSI disassembling
  mac80211: don't parse encrypted management frames in ieee80211_frame_acked
  orangefs: do not wait for timeout if umounting
  Btrfs: fix extent map leak during fallocate error path
  Btrfs: send, fix file hole not being preserved due to inline extent
  Btrfs: fix incorrect space accounting after failure to insert inline extent
  rndis_wlan: add return value validation
  libertas: check return value of alloc_workqueue
  mt7601u: check return value of alloc_skb
  iio: st_pressure: st_accel: Initialise sensor platform data properly
  NFS: don't try to cross a mountpount when there isn't one there.
  xprtrdma: Cancel refresh worker during buffer shutdown
  pNFS: Fix use after free issues in pnfs_do_read()
  infiniband/uverbs: Fix integer overflows
  scsi: mac_esp: Replace bogus memory barrier with spinlock
  platform/x86: intel-vbtn: add volume up and down
  netfilter: nft_dynset: continue to next expr if _OP_ADD succeeded
  qlcnic: fix unchecked return value
  wan: pc300too: abort path on failure
  tipc: check return value of nlmsg_new
  mmc: host: omap_hsmmc: checking for NULL instead of IS_ERR()
  netfilter: nf_ct_helper: permit cthelpers with different names via nfnetlink
  openvswitch: Delete conntrack entry clashing with an expectation.
  netfilter: xt_CT: fix refcnt leak on error path
  gpio: gpio-wcove: fix irq pending status bit width
  Fix Express lane queue creation.
  Fix driver usage of 128B WQEs when WQ_CREATE is V1.
  netvsc: Deal with rescinded channels correctly
  ibmvnic: Disable irq prior to close
  ASoC: Intel: Skylake: Uninitialized variable in probe_codec()
  IB/mlx5: Set correct SL in completion for RoCE
  IB/mlx5: Change vma from shared to private
  IB/mlx5: Take write semaphore when changing the vma struct
  IB/mlx4: Change vma from shared to private
  IB/mlx4: Take write semaphore when changing the vma struct
  HSI: ssi_protocol: double free in ssip_pn_xmit()
  IB/ipoib: Update broadcast object if PKey value was changed in index 0
  IB/ipoib: Fix deadlock between ipoib_stop and mcast join flow
  ALSA: hda - Fix headset microphone detection for ASUS N551 and N751
  e1000e: fix timing for 82579 Gigabit Ethernet controller
  tcp: remove poll() flakes with FastOpen
  NFS: Fix missing pg_cleanup after nfs_pageio_cond_complete()
  md/raid10: wait up frozen array in handle_write_completed
  iommu/omap: Register driver before setting IOMMU ops
  irqchip/mips-gic: Separate IPI reservation & usage tracking
  ARM: 8668/1: ftrace: Fix dynamic ftrace with DEBUG_RODATA and !FRAME_POINTER
  x86/reboot: Turn off KVM when halting a CPU
  mwifiex: don't leak 'chan_stats' on reset
  KVM: PPC: Book3S PR: Exit KVM on failed mapping
  scsi: virtio_scsi: Always try to read VPD pages
  iwlwifi: a000: fix memory offsets and lengths
  iwlwifi: split the handler and the wake parts of the notification infra
  clk: ns2: Correct SDIO bits
  ath: Fix updating radar flags for coutry code India
  powerpc/64s: Remove SAO feature from Power9 DD1
  spi: dw: Disable clock after unregistering the host
  tools/testing/nvdimm: fix nfit_test shutdown crash
  ASoC: Intel: Atom: update Thinkpad 10 quirk
  btrfs: fix a bogus warning when converting only data or metadata
  media/dvb-core: Race condition when writing to CAM
  net: ipv6: send unsolicited NA on admin up
  i2c: i2c-scmi: add a MS HID
  genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs
  cpufreq/sh: Replace racy task affinity logic
  ACPI/processor: Replace racy task affinity logic
  ACPI/processor: Fix error handling in __acpi_processor_start()
  time: Change posix clocks ops interfaces to use timespec64
  Input: ar1021_i2c - fix too long name in driver's device table
  rtc: cmos: Do not assume irq 8 for rtc when there are no legacy irqs
  x86: i8259: export legacy_pic symbol
  power: supply: bq24190_charger: Limit over/under voltage fault logging
  regulator: anatop: set default voltage selector for pcie
  bonding: handle link transition from FAIL to UP correctly
  platform/x86: asus-nb-wmi: Add wapf4 quirk for the X302UA
  led: core: Clear LED_BLINK_SW flag in led_blink_set()
  Revert "led: core: Fix brightness setting when setting delay_off=0"
  staging: android: ashmem: Fix possible deadlock in ashmem_ioctl
  CIFS: Enable encryption during session setup phase
  SMB3: Validate negotiate request must always be signed
  ASoC: rsnd: check src mod pointer for rsnd_mod_id()
  tpm: fix potential buffer overruns caused by bit glitches on the bus
  BACKPORT, FROMLIST: crypto: arm64/speck - add NEON-accelerated implementation of Speck-XTS
  ANDROID: debugobjects: Make stack check warning more informative
  PM / OPP: list_del_rcu should be used in function _remove_opp_dev
  trace/sched: Fix compilation for 32 bit systems
  sched/fair: select the most energy-efficient CPU candidate on wake-up
  sched/fair: fix array out of bounds access in select_energy_cpu_idx()
  sched/fair: use min capacity when evaluating active cpus
  sched/fair: use min capacity when evaluating idle backup cpus
  sched/fair: use min capacity when evaluating placement energy costs
  sched/fair: introduce minimum capacity capping sched feature
  arm/topology: link arch_scale_min_freq_capacity to cpufreq
  arm64/topology: link arch_scale_min_freq_capacity to cpufreq
  sched: add arch_scale_min_freq_capacity to track minimum capacity caps
  cpufreq: add scaled minimum capacity tracking for policy changes
  arm64: enable max frequency capping
  arm: enable max frequency capping
  cpufreq: implement max frequency capping
  sched/fair: introduce an arch scaling function for max frequency capping
  cpufreq: remove max frequency capping from scale_freq_capacity()
  Revert "ANDROID: cpufreq: Max freq invariant scheduler load-tracking and cpu capacity support"
  Revert "ANDROID: arm: Enable max freq invariant scheduler load-tracking and capacity support"
  Revert "ANDROID: arm64: Enable max freq invariant scheduler load-tracking and capacity support"
  sched/fair: reduce rounding errors in energy computations
  sched/fair: re-factor energy_diff to use a single (extensible) energy_env
  sched/fair: cleanup select_energy_cpu_brute to be more consistent
  sched/fair: remove capacity tracking from energy_diff
  sched/fair: remove energy_diff tracepoint in preparation to re-factoring
  sched/fair: use *p to reference task_structs
  sched: EAS: Fix the calculation of group util in group_idle_state()

Conflicts:
	drivers/clk/clk.c
	drivers/gpu/drm/msm/msm_gem.c
	include/trace/events/sched.h
	kernel/sched/fair.c
	kernel/sched/features.h

Change-Id: I875b8c298dc6a8151abf740126a2d1881d498203
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2018-04-17 10:46:05 -07:00
Linux Build Service Account
c2d4b82543 Merge "soc: qcom: socinfo: Add support for SDA439/SDA429 soc-id" 2018-04-14 20:49:16 -07:00
Tingwei Zhang
89b9927cb5 soc: qcom: socinfo: Add support for SDA439/SDA429 soc-id
Add socinfo support for SDA439 and SDA429 SoC and update
the bindings for the same.

Change-Id: I03f2ebd1a8b4e745d8dfe62a65320db1500296a6
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2018-04-12 13:14:36 +08:00
Linux Build Service Account
a98239792b Merge "defconfig: msm: Enable SYSMON on msm8953" 2018-04-11 19:33:03 -07:00
Tingwei Zhang
4fff60ad7d soc: qcom: add support for sysmon drivers
Add support for sysmon drivers on msm-4.9 Kernel.
This driver is needed for msm8953 to communicate
with other subsystem.

Change-Id: I3048b84c28e859369193867fa80dc0159cd7c22c
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2018-04-09 09:41:54 +08:00
Linux Build Service Account
27cb80aec0 Merge "soc: qcom: memory_dump: Support ETB/ETR register dump" 2018-03-30 15:09:18 -07:00
Linux Build Service Account
c395302cd3 Merge "soc: qcom: scm: Add a noretry variant for scm_call2" 2018-03-30 15:08:40 -07:00
Kaushal Kumar
8fca99cfd6 soc: qcom: scm: Add a noretry variant for scm_call2
scm_call2 can block scm calls up to 2s due to its
retry mechanism whenever the secure firmware is
busy waiting for certain processing by the client
who in turn is waiting upon its scm call to either
complete or return with failure.

Upon early return, client can process the pending
requests to free up secure firmware and unblock
processing of all pending scm calls. Add a noretry
variant for scm_call2 which can be used by clients
who do not intend to wait for 2s for return status.

Change-Id: I1f0849464a64c32a4de4510fa5787b0ab328725c
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
2018-03-28 15:43:59 +05:30
Abinaya P
a28c903dfa ARM: dts: mdm: Add initial device node support for MDM9607
Add snapshot of initial set of device tree files, pinctrl
driver and config options required to build MDM9607 from
msm-3.18 'commit fc7eae29037d ("Merge soc: qcom:
bgspi: soft reset Blackghost on failure to resume")'.

Change-Id: Icbeb61b062c9b2b2fbbe4c2fb9fd0edad0efcac0
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2018-03-25 22:28:30 -07:00
Christophe Leroy
b0d0441f2a net: ethernet: ucc_geth: fix MEM_PART_MURAM mode
[ Upstream commit 8b8642af15ed14b9a7a34d3401afbcc274533e13 ]

Since commit 5093bb965a ("powerpc/QE: switch to the cpm_muram
implementation"), muram area is not part of immrbar mapping anymore
so immrbar_virt_to_phys() is not usable anymore.

Fixes: 5093bb965a ("powerpc/QE: switch to the cpm_muram implementation")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Li Yang <pku.leo@gmail.com>
Signed-off-by: Scott Wood <oss@buserror.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-24 11:00:19 +01:00
Linux Build Service Account
00644d3ab2 Merge "ARM: dts: mdm: Add initial device node support for MDM9650" 2018-03-23 05:51:12 -07:00
Linux Build Service Account
937bf2eb6e Merge "ion: msm: Add support for VMID_CP_CDSP" 2018-03-23 05:51:10 -07:00
Patrick Daly
f92b061e25 ion: msm: Add support for VMID_CP_CDSP
Add necessary flags for userspace to request this type of memory.

Change-Id: Ic603cb6cf186f3dec483b5a769ed4c405667d9e4
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2018-03-21 14:30:42 -07:00
Abinaya P
b444e832bc ARM: dts: mdm: Add initial device node support for MDM9650
Add snapshot of initial set of device tree files, pinctrl
driver and config options required to build MDM9650 from
msm-3.18 'commit fc7eae29037d ("Merge soc: qcom:
bgspi: soft reset Blackghost on failure to resume")'.

Change-Id: I58d6e4d345730c6b5b0b5de02b9b1786c5aa2c28
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2018-03-21 16:19:44 +05:30
Kaushal Kumar
bf346d5f53 soc: qcom: socinfo: add support for sdm710
Add support for getting soc-id and dummy handle
on sdm710.

Change-Id: Id77f7db25aac1aaf1cfc0b7a8e826e4dd69cd064
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
2018-03-16 15:12:48 +05:30
Charan Teja Reddy
313991e71f iommu/arm-smmu: msm map/unmap calls for slave side secure targets
On slave side access control based targets, TZ is responsible to
prepare and program page table mapping for secure context banks.
Implement separate map/unmap calls accordingly.

Change-Id: Icb366067b39ce6eaae204c42a067d2a1fc4b8cf0
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2018-03-14 07:02:47 -07:00
Tingwei Zhang
525f1035fd soc: qcom: memory_dump: Support ETB/ETR register dump
Add support to dump ETB/ETR register when enabling
ETB/ETR.

Change-Id: Ia4d4d49fe313adb4d1fe15413495909bc5f226fc
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2018-03-08 19:17:43 +08:00
Amit Nischal
05bd8759e3 clk: msm: Add support to configure calibration L value
For some PLLs, there could be need to configure the calibration
L value for auto calibration which PLL would use whenever it will
come out of reset. Add support for the same by writing into
USER_CTL_HI register.

Change-Id: I864d5086f4e77b38827c0286caa3f64b9a37a7a7
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2018-02-22 11:30:00 +05:30
Linux Build Service Account
8e5ca73ffa Merge "drivers: irqchip: qcom: Add MSM8953 pin data for MPM" 2018-02-21 08:23:17 -08:00
Linux Build Service Account
892b3aa78e Merge "msm: camera: Port msm-4.4 camera kernel on msm-4.9 kernel" 2018-02-20 14:23:56 -08:00
Pratap Nirujogi
6e759914be msm: camera: Port msm-4.4 camera kernel on msm-4.9 kernel
This snapshot is taken from msm-4.4 branch as of:

'commit ee294a60356a ("msm: jpegdma: Fix for ASAN issues in jpegdma module")'

Change-Id: I3aba3098a986a5dec84b4bb4144dda19d1db5790
Signed-off-by: Pratap Nirujogi <pratapn@codeaurora.org>
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2018-02-20 15:56:39 +05:30
Raju P.L.S.S.S.N
99d241ea3d cpuidle: lpm-levels: Add system_pm ops for system level LPMs
Add system_pm ops that are used by LPM driver to configure sleep
and wake votes as well as next wake up time. LPM driver uses them
during system level LPMs.

Change-Id: I72b89aeb3408b89a73d1f0c821649f4f998ab85c
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2018-02-19 16:29:49 +05:30
Ajay Agarwal
ff0b560347 usb: gadget: Add snapshot of USB BAM DMUX driver
This change adds USB BAM DMUX driver which is required by RmNET
and DPL functions to work in SW mode.

This snapshot is taken as of msm-3.18 'commit 4a06b0168aeb ("ANDROID:
sdcardfs: Make WARN_RATELIMIT to pr_debug")'.

This change also fixes the coding style errors.

Change-Id: Ie565a3354765a1d042182cfcd9f9812225a0d2f7
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-02-15 22:59:33 +05:30
Jingbiao Lu
6c7a3bd4ae soc: qcom: socinfo: add support for sdm429 and sdm439
Add support for getting soc-id and dummy handle on sdm429
and sdm439.

Change-Id: I93b9578bed5b0d9b18d7496fcda69c1cdc4c949b
Signed-off-by: Jingbiao Lu <jingbiao@codeaurora.org>
2018-02-09 14:16:59 +08:00
Jingbiao Lu
21074344ca soc: qcom: socinfo: Add support for msm8937 soc-id
Add support for getting soc-id and dummy handle on msm8937.

Change-Id: I7a592b4cefbbe6054bd62469bbeb6bf58e59156f
Signed-off-by: Jingbiao Lu <jingbiao@codeaurora.org>
2018-02-02 10:38:27 +08:00
Linux Build Service Account
4a6775bbce Merge "icnss: Remove sending uevent after FW ready" 2018-01-26 18:15:19 -08:00
Shiraz Hashim
a28a479125 iommu/arm-smmu: Do not write to slave side protected context banks
For msm targets that have slave side access control, iommu
driver is not allowed to write to secure context bank
register space. Extend arm_smmu_skip_write logic to
consider such protected context bank address space as well
for skipping.

Change-Id: Ia64ab5a1c7f8b4ced82f25ab0d2988ac8d08aec3
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2018-01-22 11:09:19 +05:30
Linux Build Service Account
e2077a5dec Merge "ARM: dts: msm: enable apss smmu device node on msm8953" 2018-01-11 07:29:40 -08:00
Linux Build Service Account
ab5d4673f7 Merge "coresight-tpdm: Add support to dump MCMB MSR" 2018-01-09 16:09:17 -08:00
Yuanyuan Liu
8340870c88 icnss: Remove sending uevent after FW ready
FW ready indication doesn't mean it is safe to access HW register.
FW ready only means that WLAN FW is initialized. The HW register
is safe to access only after FW ack the wlan enable mode request.
Hence removing uevent in FW ready indication handler. WLAN driver
will responsible for setting FW ready state once wlan enable mode
request is return success.

CRs-Fixed: 2168628
Change-Id: I769d848efb9dd427da0d71494090fcbf9514cfb2
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2018-01-08 11:45:55 -08:00
Linux Build Service Account
6481869fe3 Merge "drivers: qcom: system_pm: read CVAL to program PDC wake up" 2018-01-08 10:04:25 -08:00
Linux Build Service Account
926e92fe8d Merge "soc: qcom: socinfo: Add support for SDM632 soc-id" 2018-01-08 10:04:15 -08:00
Charan Teja Reddy
6f5cbe7d28 iommu/arm-smmu: override writel_relaxed
Skip writes to global space of SMMU on targets with slave
side protection where this space was preprogrammed by TZ
that need to be kept intact.

Change-Id: I03f8ba708144ad9846ec8d6b8a89bd53773bdded
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2018-01-05 15:01:13 +05:30
Lina Iyer
a22430086b drivers: qcom: system_pm: read CVAL to program PDC wake up
The PDC wakeup value must be equal or earlier than the QTimer value that
is set to wake up the system. This is to ensure that the PDC system is
awake before the timer. Read the CVAL from the timer and program the PDC
wakeup value.

Ensure the PDC value is updated after calling tick_broadcast_enter().

Change-Id: I291fd2dd80bed4de19119c548d985ace2ad0c070
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2018-01-04 23:39:16 +00:00
Satyajit Desai
267d85738a coresight-tpdm: Add support to dump MCMB MSR
Add support to dump MSR for MCMB TPDM. This is needed
for postprocessing of dump data obtained from MCMB source.

Change-Id: Iddcd6dba98463ddf5e1df66378ba2645ee53c644
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2018-01-04 16:33:38 +05:30
Charan Teja Reddy
55c1de1e43 ion: add support for secure dma allocations
Some targets need slave side secure buffers allocation using ION.
Add the support for the same.

Change-Id: I21489ea71fd7d2844c3bea1f4b701b3eb33cb355
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-12-27 21:47:59 -08:00
Maria Yu
06dc21e722 soc: qcom: socinfo: Add support for SDM632 soc-id
Add socinfo support to get soc_id and other details
about sdm632.

Change-Id: I85697d0b17d6aa27392d6f645e8e2e22a25793d0
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
2017-12-26 13:53:15 +08:00
Charan Teja Reddy
35144b0b8c iommu/arm-smmu: Add support for slave side protection
For targets where we have no hypervisor, slave side protection mechanism
is used to provide buffer protection. Add functionality to make calls
into TZ for mapping/unmapping of buffers.

Change-Id: I845983a25b56ce1b34c90f91ac4a2cf6c4451813
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-12-26 11:18:34 +05:30
Yuanyuan Liu
5718dfc67c 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-19 12:27:11 -08:00
Shefali Jain
0dc6e78a3f clk: msm: Add snapshot of clock framework files
This is snapshot of the clock framework files as of msm-3.18
'commit c0b3f609196f ("ARM: dts: msm: Remove GPU mempool
for msm8909")'.

Below is the brief description of the additional changes made:
1. Add COMMON_CLK_MSM config flag for conditional compilation for
   some common files used between COMMON_CLK_MSM and COMMON_CLK_QCOM
   clock framework files.
2. Add reset controller framework files for BCR operation.
3. Add conditional compilation support for FTRACE clock functions
   to maintain compatibility for clock framework based on
   COMMON_CLK_MSM and COMMON_CLK_QCOM.
4. Add files for GDSC operation.

Change-Id: Ia5688600ca8e548beb15745d3ce938fdf41f82de
Signed-off-by: Shefali Jain <shefjain@codeaurora.org>
2017-12-16 12:33:02 +05:30
Linux Build Service Account
c1d8b3e6a7 Merge "drivers: soc: Add static attribute for function in header file" 2017-12-04 17:04:04 -08:00
Linux Build Service Account
e4060dfbe2 Merge "icnss: Add dev to all export APIs in ICNSS" 2017-11-30 14:10:39 -08:00
Sarada Prasanna Garnayak
09e3207b9a icnss: Add dev to all export APIs in ICNSS
Add device pointer in all export symbol to
add support for numerous WLAN module.

CRs-Fixed: 2138446
Change-Id: I981155c165e4e5c2794b778afe647f8a588dd860
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-11-30 02:45:59 -08:00
Maria Yu
4531f203b3 drivers: soc: Add static attribute for function in header file
Add static attribute for function in header file to
avoid compile error.

Change-Id: I784a6339e067bbeb3f8ab5d616ffdd72f7ef685f
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
2017-11-30 18:05:40 +08:00
Raju P.L.S.S.S.N
43c1be7e52 soc: qcom: Add RPM SMD Driver
This is a snapshot of the RPM-SMD driver functionality as of
'commit 9c23726ad4df ("leds: qpnp-flash: Fix 11
Use-after-free(UAF) for debugfs")' on msm-4.4 branch.

Change-Id: I502300cf26b67679a9344a89b2feaa0dbcc5fb59
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2017-11-30 15:29:02 +05:30
Arun Kumar Neelakantam
d680a245f1 soc: qcom: msm_smd: Add snapshot of Shared memory driver
This is a snapshot of the SMD driver as of msm-4.4 commit
<bb3bb010ec74> (Merge "ASoC: wcd9xxx: restrict debugfs permission")

Shared memory data[SMD] drivers provides data communication to
remote peripherals such as Modem and ADSP over shared memory.

CRs-Fixed: 2144497
Change-Id: I50ded677a10dae3910b8369e6c17f175dda3edf5
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2017-11-29 10:52:52 +05:30
Linux Build Service Account
de467c0500 Merge "ARM: dts: msm: use short name for memdump nodes on SDM670" 2017-11-28 06:04:05 -08:00
Lingutla Chandrasekhar
5d4442b465 soc: qcom: Use ToC design for Minidump support
The Minidump design is re architected to decentralize,
more secure, and to be more scalable.
New design uses table of content for each subsystem to
decentralize, and encryption status to secure regions.
Each subsystem have fixed index in global toc, and
its regions table can be located in its own memory.

Change-Id: I104596e51cf976000b97b2519ce7dcd43e72abb4
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2017-11-27 14:22:10 +05:30
Hareesh Gundu
7020089e74 drivers: qcom: cmd-db: Export cmd_db_get_aux related APIs
cmd_db_get_aux_data() and cmd_db_get_aux_data_len()
APIs used by the QCOM_KGSL driver. These APIs needs to
be exported to fix compilation errors seen in QCOM_KGSL
loadable module.

Change-Id: I8a6d7b4ed629f7b536adb92be48a71946daff46b
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2017-11-22 12:33:11 +05:30