Commit graph

581401 commits

Author SHA1 Message Date
Runmin Wang
778031ccb5 genirq: Add IRQ_AFFINITY_MANAGED flag
Add IRQ_AFFINITY_MANAGED flag and related kernel APIs so that
kernel driver can modify an irq's status in such a way that
user space affinity change will be ignored. Kernel space's
affinity setting will not be changed.

Change-Id: Ib2d5ea651263bff4317562af69079ad950c9e71e
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-01-23 16:01:01 -08:00
Thomas Gleixner
1cc869442a genirq: Introduce IRQD_AFFINITY_MANAGED flag
Interupts marked with this flag are excluded from user space interrupt
affinity changes. Contrary to the IRQ_NO_BALANCING flag, the kernel internal
affinity mechanism is not blocked.

This flag will be used for multi-queue device interrupts.

Change-Id: I204c49bb1c8ce87fbcd163119093163b120bfe83
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: linux-block@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Cc: linux-nvme@lists.infradead.org
Cc: axboe@fb.com
Cc: agordeev@redhat.com
Link: http://lkml.kernel.org/r/1467621574-8277-3-git-send-email-hch@lst.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Git-commit: 9c2555835bb3d34dfac52a0be943dcc4bedd650f
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[runminw@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-01-23 11:23:37 -08:00
Linux Build Service Account
8fa25e8c0e Merge "ARM: dts: msm: Enable wakeup capability of SPMI interrupts for SDM660" 2017-01-22 19:16:00 -08:00
Linux Build Service Account
35c415b4be Merge "ath10k: add WCN3990 target type and hw version" 2017-01-22 19:15:59 -08:00
Linux Build Service Account
f4396ba850 Merge "ath10k: Make CE layer bus agnostic" 2017-01-22 19:15:58 -08:00
Linux Build Service Account
2eb5dfd69a Merge "iommu: arm-smmu: Move to using bus bandwidth voting for bus clocks" 2017-01-22 19:15:57 -08:00
Linux Build Service Account
9335a12bb0 Merge "ufs: fixed bugs in ice related to key syncronization" 2017-01-22 01:16:27 -08:00
Ashay Jaiswal
e9f91e7ce0 ARM: dts: msm: Enable wakeup capability of SPMI interrupts for SDM660
Remove "qcom,not-wakeup" flag from SPMI device node to allow
device wake-up via SPMI peripheral interrupts.

CRs-Fixed: 1114067
Change-Id: I0ba400bca2603a408a1fb2f934cb26e5109a65c2
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-01-22 10:58:50 +05:30
Linux Build Service Account
b184cdd610 Merge "sched: Update capacity and load scale factor for all clusters at boot" 2017-01-21 05:01:27 -08:00
Linux Build Service Account
fde6f86c4f Merge "cpumask: Correctly report CPU as not isolated in UP case" 2017-01-21 05:01:26 -08:00
Linux Build Service Account
a991f5b51e Merge "qcom-charger: smb138x: Add MODEL_NAME property for parallel" 2017-01-21 05:01:26 -08:00
Linux Build Service Account
79ef6a4e90 Merge "ARM: dts: msm: Enable QoS settings programming for sdm660" 2017-01-21 05:01:25 -08:00
Linux Build Service Account
221a27db07 Merge "usb: composite: Increase ep0 buffer size to 4KB" 2017-01-21 05:01:24 -08:00
Linux Build Service Account
c13aae3157 Merge "smb-lib: fix Type-C detection after sink removal" 2017-01-21 05:01:23 -08:00
Linux Build Service Account
9b0b7adacb Merge "qseecom: release memory when failed to get fw size" 2017-01-21 05:01:22 -08:00
Linux Build Service Account
25c683b528 Merge "Block: Add support to measure bio latencies" 2017-01-21 05:01:21 -08:00
Linux Build Service Account
adb2b7a2ff Merge "usb: phy: snps: fix copyright information" 2017-01-21 05:01:21 -08:00
Linux Build Service Account
345e3446ea Merge "iommu: arm-smmu: Allow configurations with zero clocks" 2017-01-21 05:01:20 -08:00
Linux Build Service Account
24f914dbea Merge "clk: msm: clock-debug: acquire prepare lock during measurement" 2017-01-21 05:01:18 -08:00
Govind Singh
33d8132134 ath10k: add WCN3990 target type and hw version
Add new target type and hw version for WCN3990.

Change-Id: Iba891c8a25321d986d24120db8e0988f7df56dc5
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-01-21 14:37:47 +05:30
Govind Singh
fed84102f9 ath10k: Make CE layer bus agnostic
Remove bus specific dependencies from CE layer to have
common CE layer across multiple targets.

Change-Id: Ieb6a80b359eed820653215bbf98148ce15634e87
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-01-21 14:31:54 +05:30
Syed Rameez Mustafa
196069b1bc sched: Update capacity and load scale factor for all clusters at boot
Cluster capacities should reflect differences in efficiency of
different clusters even in the absence of cpufreq. Currently
capacity is updated only when cpufreq policy notifier is received.
Therefore placement is suboptimal when cpufreq is turned off. Fix
this by updating capacities and load scaling factors during cluster
detection.

Change-Id: I47f63c1e374bbfd247a4302525afb37d55334bad
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2017-01-20 16:58:11 -08:00
Olav Haugan
8109f028ef cpumask: Correctly report CPU as not isolated in UP case
When we have only 1 CPU in the system always report a CPU as not
isolated.

Change-Id: I009b3e7c2499da07b167c603107b1c50b096c6b6
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2017-01-20 16:49:37 -08:00
Pratik Patel
10f058a6e2 iommu: arm-smmu: Move to using bus bandwidth voting for bus clocks
Bus clocks are managed via bus apis and hence move to using them for
enabling bus clocks. The previous method could enable a bus clock at a
higher than required frequency, wasting power.

The power on sequence is regulator on, bus vote, and then enable
remaining clocks.

Remove all clocks which are of RPM_SMD type (including mmssnoc_axi_clk)
since these are managed by the bus driver. Using an active-only bus vote
instead should save power when APPS is power collapsed.

Keep the mmss_mnoc_ahb_clk because it is a branch clock type which is
not managed by the bus driver. No active-only mode is available for this
clock.

Change-Id: I3b35d81098b8bd5299b27e85d27aa959e7cf415a
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2017-01-20 16:05:03 -08:00
Patrick Daly
2829116b1e iommu: arm-smmu: Allow configurations with zero clocks
If no clocks are present in devicetree, ensure that smmu->num_clocks is
set to zero instead of an error value.

Change-Id: Ibc3ede250419dd0235f3aa481218e3a91cdb3630
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2017-01-20 16:02:05 -08:00
Hemant Kumar
9ff38a5145 usb: composite: Increase ep0 buffer size to 4KB
Maximum QMI packet size is 4KB. As a result with current
ep0 buffer size of 1KB driver is overstepping the buffer
memory when QMI packet of more than 1KB size is received
from usb host.

Change-Id: Id162ed23dfa855fd7e11d43b32627b577c0c2dd4
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-01-20 15:47:53 -08:00
Nicholas Troast
ba0441736d smb-lib: fix Type-C detection after sink removal
A misplaced return statement causes an early return from disabling OTG.

If OTG is enabled when a source is attached then Type-C detection will
fail. Therefore, OTG should never be blocked from being disabled.

Remove all of the early returns that could potentially block the
register write which disables OTG.

Change-Id: I4645210233c7490cf3e1b8f6a629fec60399b250
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-01-20 13:52:10 -08:00
Linux Build Service Account
1004ecce48 Merge "soc: qcom: service-notifier: change log level for UP/DOWN indications" 2017-01-20 13:48:35 -08:00
Linux Build Service Account
a76ca86adf Merge "spi: spi_qsd: Revert latency improvement changes done for small transfers" 2017-01-20 13:48:35 -08:00
Linux Build Service Account
ec95bb9e5c Merge "USB: u_data_ipa: Fix spinlock usage in resume_work handler" 2017-01-20 13:48:34 -08:00
Linux Build Service Account
43be7f575f Merge "ARM: dts: msm: Update GPU bus IB votes for SDM660" 2017-01-20 13:48:33 -08:00
Linux Build Service Account
144961a0ba Merge "USb: f_qc_rndis: Initialize opts variable in set_alt()" 2017-01-20 13:48:30 -08:00
Linux Build Service Account
8c2a437b6b Merge "USB: u_ctrl_qti: Remove redundant check in qti_ctrl_write()" 2017-01-20 13:48:30 -08:00
Linux Build Service Account
7c02ef2b00 Merge "USB: gadget: mass_storage: Fix Null pointer access during disconnect" 2017-01-20 13:48:29 -08:00
Linux Build Service Account
ae4c40372b Merge "msm: kgsl: Clean up power-related members if probe fails" 2017-01-20 13:48:28 -08:00
Linux Build Service Account
b24a83ae61 Merge "mmc: core: Add sysfs entry to print ring buffer" 2017-01-20 13:48:26 -08:00
Linux Build Service Account
c51bfb9f3d Merge "mmc: cmdq_hci: Add tracing events for CQ mode." 2017-01-20 13:48:25 -08:00
Linux Build Service Account
f6e430bf1b Merge "mmc: core: Add mmc tracing events in suspend and resume" 2017-01-20 13:48:25 -08:00
Linux Build Service Account
f0cd2ed1ad Merge "mmc: sdhci: Add mmc tracing events for legacy mode." 2017-01-20 13:48:24 -08:00
Linux Build Service Account
7280bd073e Merge "mmc: host: Add Ring buffer logging for MMC." 2017-01-20 13:48:24 -08:00
Linux Build Service Account
e40f634b02 Merge "USB: gadget: mass_storage: Fix Null pointer access during disconnect" 2017-01-20 13:48:23 -08:00
Linux Build Service Account
587659fb8f Merge "ARM: dts: msm: update sensor dtsi for SDM660 QRD" 2017-01-20 13:48:22 -08:00
Hemant Kumar
7f2c301dd1 usb: phy: snps: fix copyright information
Update copyright line to "The Linux Foundation" and
year.

Change-Id: I1bdd64bebb77f41555f1057132ad3a060874bb11
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-01-20 13:15:35 -08:00
Abhijeet Dharmapurikar
c9f6c20965 qcom-charger: smb138x: Add MODEL_NAME property for parallel
Currently there is no easy way to detect the device name based on
the bus or device sysfs properties.

Implement MODEL_NAME property to identify the parallel charger.

Change-Id: I8134b415a2b36e249b098f4b61d4dd8415008cfa
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-01-20 13:04:46 -08:00
Zhen Kong
d250be844b qseecom: release memory when failed to get fw size
release app list entry when __qseecom_get_fw_size() returns error.

Change-Id: I82406c39a2def87395811f442f39b57201766091
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2017-01-20 12:24:30 -08:00
Osvaldo Banuelos
6b6b86c9b9 clk: msm: clock-debug: acquire prepare lock during measurement
If the rate of the clock being measured changes at the same
time clock_debug_measure_get() is called, there can be a
miscalculation of the value of the divider between the
measurement circuitry and clock output. Acquiring the prepare
lock fixes the race since it prevents clock rate changes during
measurement.

CRs-Fixed: 1109789
Change-Id: I51050379a45a51c22109a06bc4758d767f361da1
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2017-01-20 10:45:29 -08:00
Odelu Kukatla
0a0cd47d3d ARM: dts: msm: Enable QoS settings programming for sdm660
Bus driver requires to set the QoS parameters like QoS mode
and priorities, so enable the QoS parameter programming and
also add the required clocks for QoS register access.

Change-Id: Ie2f4e054f4fc16b5c33233321e8761f999db7c46
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-01-20 19:45:52 +05:30
Vijayavardhan Vennapusa
bd8ed2fcf3 USB: u_data_ipa: Fix spinlock usage in resume_work handler
Fix spinlock usage in bam2bam_data_resume_work handler that could
cause error reported by static analysis tool.

Change-Id: I15bbb5abc98452fcfed2d98547a859a355a391d9
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-01-20 15:46:54 +05:30
Mihir Patel
ae687e37a7 ARM: dts: msm: Update GPU bus IB votes for SDM660
A512 GPU clock plan is revised hence need to adjust IB
bus votes for respective GPU power levels. Update GPU
bus votes as per new GPU clock plan for SDM660.
Also adjust GPU IB votes as per dual channel DDR
recommendation.

Change-Id: Ia68bd5dee8bf9d037510877c647c5c3a74bdce99
Signed-off-by: Mihir Patel <mihirp@codeaurora.org>
2017-01-20 14:34:54 +05:30
Vijayavardhan Vennapusa
3cd77ace2d USB: u_ctrl_qti: Remove redundant check in qti_ctrl_write()
Remove redundant check for port in qti_ctrl_write() which is not
required.

Change-Id: I8825b52156d722772759d2ae10f2b8bbd4d18417
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-01-20 12:16:04 +05:30