Commit graph

883,973 commits

Author SHA1 Message Date
Dinesh K Garg
a23a0f3316 qseecom: Enable APIs only when module is enabled
Enable QSEECom API only when this module is enabled. Otherwise,
it could give error.

Change-Id: I8f499528a4e7e531cd4763693aec86737845b528
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2020-06-03 10:18:02 -07:00
qctecmdr
832413cfd4 Merge "cnss2: Save PCIe GEN speed and width changed from device" 2020-06-03 04:18:28 -07:00
qctecmdr
321b58ecd6 Merge "msm: cvp: Support new HFI FLUSH MSG value" 2020-06-03 04:18:27 -07:00
qctecmdr
99dd2f918c Merge "msm: kgsl: Fix gpu boot ab vote" 2020-06-03 04:18:27 -07:00
qctecmdr
0a29599df4 Merge "dwc3-msm: Force USB speed as high speed if SS release lane is called" 2020-06-03 04:18:27 -07:00
qctecmdr
dab6ee24ea Merge "xhci-plat: Mark usb1 and usb2 devices as wakeup source" 2020-06-03 04:18:26 -07:00
qctecmdr
2e914316cc Merge "defconfig: holi: Enable GPU driver" 2020-06-03 00:09:15 -07:00
qctecmdr
ea7101c01d Merge "Revert "usb: dwc3: gadget: Enable SUSPEND event after CONNECT DONE"" 2020-06-03 00:09:15 -07:00
qctecmdr
7903d82108 Merge "i2c: i2c-msm-geni: Do I2C configurations during resume" 2020-06-03 00:09:14 -07:00
qctecmdr
205bf79fed Merge "defconfig: msm: enable remote debugger driver on Lahaina" 2020-06-03 00:09:14 -07:00
qctecmdr
63ca758bd8 Merge "msm: synx: support for external dma fence" 2020-06-03 00:09:13 -07:00
qctecmdr
f96edb22b9 Merge "msm: kgsl: Do not program CP_LPAC_ROQ_THRESHOLDS registers" 2020-06-03 00:09:13 -07:00
qctecmdr
ff478e8d76 Merge "mhi: core: Do a null pointer check before reading debug registers" 2020-06-03 00:09:13 -07:00
qctecmdr
ab69e75913 Merge "mhi: core: expose soc reset and register dump debugfs entries" 2020-06-03 00:09:13 -07:00
qctecmdr
dfb22cb268 Merge ".gitignore: Ignore vendor devicetree directories from git" 2020-06-03 00:09:12 -07:00
Prakruthi Deepak Heragu
64e68fd529 aarch64: ABI: Update abi snapshot for enabling CFI in enforcement mode
Update the ABI snapshot as well as the whitelist when CFI_PERMISSIVE
flag is turned off to put CFI in enforcing mode.

Change-Id: If5fcff638231ae5bc081ea018134edde804b6c78
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-06-01 17:21:29 -07:00
George Shen
d2241c8215 msm: cvp: Support new HFI FLUSH MSG value
Change is to support both deprecated FLUSH MSG value and new
value in kernel before new HFI FLUSH MSG value released.

Change-Id: I376bb58f6f9625e692a814836f276c9c98c164d4
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-06-01 15:33:31 -07:00
Harshdeep Dhatt
f44d1a49b9 msm: kgsl: Fix gpu boot ab vote
The ab is in megabytes and ddr_table is in kilobytes. So do
the conversion to fix the first ab vote out of slumber.

Also fix the ib vote units for the very first gmu boot.

Change-Id: I57efd80fa2de8262842475e02a363e0436a7b0f2
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-01 15:37:54 -06:00
Pratham Pratap
51f6ca5f35 Revert "usb: dwc3: gadget: Enable SUSPEND event after CONNECT DONE"
This reverts commit 74cc257a62210a7fc69cd095ecd48a364621bb7a.

Instead, enable the SUSPEND event interrupt on enable_irq as part
of gadget start to be inline with USB specification.

Change-Id: I4c2d6e48a2276b480e112ee203a18a6865f15408
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-05-31 23:13:44 -07:00
qctecmdr
bf4eaa44f7 Merge "regulator: core: avoid deadlock in QTI addition to regulator_unregister()" 2020-05-31 02:33:19 -07:00
qctecmdr
10cbadfc18 Merge "net: qrtr: Allocate workqueue before kernel_bind" 2020-05-31 02:33:18 -07:00
qctecmdr
325fc4d843 Merge "memory_dump: resolve the issue of configuring core_reg_numer" 2020-05-31 02:33:18 -07:00
qctecmdr
51b9ea9e84 Merge "mhi: core: Enable both time synchronization methods to co-exist" 2020-05-31 02:33:18 -07:00
qctecmdr
b7180d867f Merge "soc: qcom: spcom: add channel name for each txn_id print" 2020-05-31 02:33:17 -07:00
qctecmdr
9d0c2bcade Merge "msm: cvp: stop session queue when session closed" 2020-05-31 02:33:16 -07:00
qctecmdr
24999171d7 Merge "arm64: defconfig: Enable config to add QTI specific code" 2020-05-31 02:33:16 -07:00
qctecmdr
57e93d279c Merge "arm64: defconfig: Disable CONFIG_CFI_PERMISSIVE flag" 2020-05-31 02:33:16 -07:00
qctecmdr
af2d4f76fd Merge "pwm: qti-lpg: Read tick duration via device tree" 2020-05-30 04:42:14 -07:00
qctecmdr
9ee4a9e6ec Merge "PM / devfreq: icc: add support for L3 BW devices" 2020-05-30 04:42:14 -07:00
qctecmdr
af28a1662f Merge "clk: qcom: clk-alpha-pll: Add support for Lucid EVO PLL print registers" 2020-05-30 04:42:13 -07:00
Vipin Deep Kaur
398ff36a86 i2c: i2c-msm-geni: Do I2C configurations during resume
Do I2C frequency related configurations during resume.
Don't make the current message as NULL before the whole
transfer process is complete.

Change-Id: I8c4797fed1cfa0743c98eea3324e4b7b82d7f3cb
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-05-29 23:55:09 -07:00
Yue Ma
fd13c5203a cnss2: Save PCIe GEN speed and width changed from device
WLAN device may adjust GEN speed and width at run time so save them
accordingly from driver.

Change-Id: I4b20909425c4606b3ee5995946c97542b9849a54
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-05-29 14:50:27 -07:00
Manikandan Mohan
7ed72aef1a cnss2: Add support for bus bandwidth scale
Register MHI bus bandwidth scale callback function.

Change-Id: I0829db892545565c1d59898a988ed9f0da5d1470
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-05-29 14:38:17 -07:00
Raghu Ananya Arabolu
859471278e msm: kgsl: Do not program CP_LPAC_ROQ_THRESHOLDS registers
CP ucode (v0.76 onwards) handles the programming of these registers.

Change-Id: I233458160ea1f7ef55db49d751b9a50f84820a68
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
2020-05-29 13:44:55 -07:00
Guru Das Srinagesh
fe41af3d8f pwm: qti-lpg: Read tick duration via device tree
Tick duration defines the tick duration (in microseconds) for the clock
that PPG uses which is used to program the ramp step duration for the
pattern. If unspecified, the default value is 7800 us.

Change-Id: I7cd96d74a39becffbf9a008610c0092ad2462446
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-29 12:17:20 -07:00
Bhaumik Bhatt
6ea0bdda25 mhi: core: expose soc reset and register dump debugfs entries
For debug purposes, allow clients to issue SOC reset or read the entire
register dump when they wish to do so. They may not read proper values
or the reset may not take effect if the device is powered down.

Change-Id: I7fb7589a1bdfd5d7c610bdf6aab5edfc814cdceb
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-05-29 11:08:52 -07:00
Amir Vajid
7e0c383b72 PM / devfreq: icc: add support for L3 BW devices
Add support for L3 bandwidth devices that vote in units
of MBPS. This includes creating OPP tables in units of
MBPS as well as requiring that these devices define a
width in DT which is used to convert the votes to Hz
before submitting them to the L3 provider.

Change-Id: I47a569f76b9e57caac57788592784921c689505b
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
2020-05-28 21:27:20 -07:00
Mayank Rana
7e7b7790b1 dwc3-msm: Force USB speed as high speed if SS release lane is called
DP driver shall call SS release lane API asynchronously when USB is into
device mode or host mode or not yet started. This is possible as ADSP
firmware notification over UCSI may be delayed and can be running in
parallel with altmode functionality. Hence force maximum speed as USB
high speed if SS release lane API is called until next USB able disconnect.

Change-Id: Iaae8b4e39ec8695e0204b83d9292cd3efa4af310
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-28 19:56:17 -07:00
Yuanfang Zhang
376a008159 memory_dump: resolve the issue of configuring core_reg_numer
When the new core_reg_number value is the same as previous value,
writing to core_reg_number node cannot exit normally, this
change resolve this issue.

Change-Id: I6cbb301fc77a630aa9f01a68341c9510fdbd5c0f
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-05-29 10:26:35 +08:00
Bhaumik Bhatt
48dcddd380 mhi: core: Do a null pointer check before reading debug registers
Not all registers can be set while dumping debug registers depending
on the state of the device. For example, wake doorbell is not set
until a READY state of the device is reached. Hence, we could access
a NULL pointer while dumping debug registers. Avoid this by adding a
check to skip the addresses which are not yet set.

Change-Id: Iccf275705d87023613ad3ab0c2ab53bad7ab912a
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-05-28 17:05:15 -07:00
David Collins
29c128cfd2 regulator: core: avoid deadlock in QTI addition to regulator_unregister()
regulator_unregister() calls rdev_free_qti_debugfs() with the
regulator_list_mutex held.  rdev_free_qti_debugfs() then calls
regulator_put() which attempts to lock regulator_list_mutex again.
This leads to deadlock.

Modify regulator_unregister() and rdev_free_qti_debugfs() so that
mutex deadlock cannot occur.

Change-Id: I12bb4c704f7d9332e790c707aba854e224474bdb
Signed-off-by: David Collins <collinsd@codeaurora.org>
2020-05-28 17:02:13 -07:00
Chris Lew
5b40b16f3c net: qrtr: Allocate workqueue before kernel_bind
A null pointer dereference in qrtr_ns_data_ready() is seen if a client
opens a qrtr socket before qrtr_ns_init() can bind to the control port.
When the control port is bound, the ENETRESET error will be broadcasted
and clients will close their sockets. This results in DEL_CLIENT
packets being sent to the ns and qrtr_ns_data_ready() being called
without the workqueue being allocated.

Allocate the workqueue before setting sk_data_ready and binding to the
control port. This ensures that the work and workqueue structs are
allocated and initialized before qrtr_ns_data_ready can be called.

Change-Id: Ib20aec56414789905ccd80a91290fca9e3c29ead
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-05-28 14:20:36 -07:00
Guru Das Srinagesh
6d56178cb7 pwm: qti-lpg: Adapt to two-nvmem PBS triggering scheme
PM8350C PWM PPG does away with the need to directly manage the PBS
triggering via the PBS driver APIs by using a single register write to
an SDAM register instead. A PBS sequence thus triggered should be duly
cleared before next use. The existing scheme is also retained for
backward compatibility with targets that use a single-nvmem scheme.

The new PBS triggering scheme also expects a change in the way the high
and low indices pertaining to the pattern are specified.

Change-Id: I7d07dc611f98ce32cf5e8ba7de758fbbc3513f4b
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-28 13:38:17 -07:00
Konstantin Dorfman
49de023c2f soc: qcom: spcom: add channel name for each txn_id print
This change add printing of the channel name for each
sequence number print.

Change-Id: I7a5e5ac57eba9d637d48387849f1ba915096215b
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2020-05-28 06:37:24 -07:00
Bhaumik Bhatt
419686cc96 mhi: core: Enable both time synchronization methods to co-exist
Due to co-existence of both time synchronization methods on a
platform, it is likely that a doorbell method response can be pending
while another host client requests for time using the MMIO or
synchronous method. Wait for completion of the doorbell method and
return the local and remote times from that request as the device may
not be able to handle both requests or host is likely to end up reading
corrupted time values. Also, ensure the doorbell method request is done
while holding the bus vote so the host stays awake and receives the
response as soon as possible.

Change-Id: If876905eb523fd65f3758f13b75c035de4108d8d
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-05-27 19:15:51 -07:00
Bhaumik Bhatt
453fb4d199 mhi: core: improve time synchronization events handling
Validate event ring accesses before walking special event rings and
update processing time synchronization such that a doorbell is rung and
future requests are queued until a response is received. Also, ensure
events are only processed when they are pending.

Change-Id: Ib8c9385530f822af3e53efb96b82c0f26c3438b7
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-05-27 19:14:42 -07:00
Bhaumik Bhatt
16caf4dcb7 mhi: core: block fast suspends on controller device bus vote
Currently only a pending packets check is used to block fast
suspends. Since it does not exactly reflect what the core
driver intends to do, allow a bus vote to the controller device
to block fast suspends as well.

Change-Id: I31266d296e855027f6b49b2dcfe4606bb48ac221
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-05-27 19:11:27 -07:00
qctecmdr
e1bdeb4100 Merge "ASoC: pcm: QGKI startup sequence for playback and capture" 2020-05-27 18:54:59 -07:00
qctecmdr
cdda674ede Merge "sched: walt: Improve the scheduler" 2020-05-27 18:54:59 -07:00
qctecmdr
f7d26b82cb Merge "bluetooth: add support for retrieving power resource values" 2020-05-27 18:54:59 -07:00