OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agomsm: kgsl: Clear the interrupt immediately
Harshdeep Dhatt [Wed, 7 Oct 2015 22:10:36 +0000 (16:10 -0600)]
msm: kgsl: Clear the interrupt immediately

Sometimes an interrupt from GPU is ignored while we
are still executing the previous interrupt. In order
to service any interrupt that was fired while executing
the interrupt handler, clear the interrupt register
immediately.
Also, clear the ADRENO_INT_RBBM_AHB_ERROR bit not before
but after it's serviced in its respective handler. This
will avoid firing the main interrupt handler a second
time.

CRs-Fixed: 1072781
Change-Id: Ie6b5a511f5b3077adae7d464de437f2aa893b0c9
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agoMerge "msm: vidc: Don't print message queues in error cases"
Linux Build Service Account [Wed, 12 Oct 2016 05:33:05 +0000 (22:33 -0700)]
Merge "msm: vidc: Don't print message queues in error cases"

7 years agoMerge "msm: vidc: Fix the condition to check dcvs support"
Linux Build Service Account [Wed, 12 Oct 2016 05:33:03 +0000 (22:33 -0700)]
Merge "msm: vidc: Fix the condition to check dcvs support"

7 years agoMerge "msm: ipa: Add guard around nat entries read"
Linux Build Service Account [Wed, 12 Oct 2016 05:33:00 +0000 (22:33 -0700)]
Merge "msm: ipa: Add guard around nat entries read"

7 years agoMerge "clk: msm: clock-osm: enable WDOG status registers for msmcobalt v2"
Linux Build Service Account [Wed, 12 Oct 2016 05:33:00 +0000 (22:33 -0700)]
Merge "clk: msm: clock-osm: enable WDOG status registers for msmcobalt v2"

7 years agoMerge "msm: wlan: Change Egypt regulatory rules"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:59 +0000 (22:32 -0700)]
Merge "msm: wlan: Change Egypt regulatory rules"

7 years agoMerge "clk: msm: clock-osm: Set Nominal Fmax frequency for boot"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:58 +0000 (22:32 -0700)]
Merge "clk: msm: clock-osm: Set Nominal Fmax frequency for boot"

7 years agoMerge "ARM: dts: msm: Enable cache coherency for fastrpc devices on msmcobalt"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:48 +0000 (22:32 -0700)]
Merge "ARM: dts: msm: Enable cache coherency for fastrpc devices on msmcobalt"

7 years agoMerge "msm: ADSPRPC: Support for dma-coherent devices"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:48 +0000 (22:32 -0700)]
Merge "msm: ADSPRPC: Support for dma-coherent devices"

7 years agoMerge "msm: kgsl: restructure GPU power initialization"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:47 +0000 (22:32 -0700)]
Merge "msm: kgsl: restructure GPU power initialization"

7 years agoMerge "dwc3: gadget: Don't memset TRB ring with zero related to USB GSI endpoint"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:45 +0000 (22:32 -0700)]
Merge "dwc3: gadget: Don't memset TRB ring with zero related to USB GSI endpoint"

7 years agoMerge "smb-lib: smb138x-charger: add parallel current to parallel psy"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:43 +0000 (22:32 -0700)]
Merge "smb-lib: smb138x-charger: add parallel current to parallel psy"

7 years agoMerge "qpnp-smb2: add the PARALLEL_DISABLE property to usb psy"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:42 +0000 (22:32 -0700)]
Merge "qpnp-smb2: add the PARALLEL_DISABLE property to usb psy"

7 years agoMerge "clk: msm: clock: Update the bimc clock mux index"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:41 +0000 (22:32 -0700)]
Merge "clk: msm: clock: Update the bimc clock mux index"

7 years agoMerge "diag: Update msg, log and event information"
Linux Build Service Account [Wed, 12 Oct 2016 05:32:40 +0000 (22:32 -0700)]
Merge "diag: Update msg, log and event information"

7 years agoclk: msm: clock-osm: enable WDOG status registers for msmcobalt v2
Osvaldo Banuelos [Tue, 11 Oct 2016 18:43:17 +0000 (11:43 -0700)]
clk: msm: clock-osm: enable WDOG status registers for msmcobalt v2

Enable the watchdog status registers for msmcobalt v2. This
feature must be specifically enabled in the OSM controller
of msmcobalt v2.

CRs-Fixed: 1076523
Change-Id: I1eb5c61037004e200e8f261d6e39b73028f04ab4
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
7 years agomsm: wlan: Change Egypt regulatory rules
Amar Singhal [Tue, 11 Oct 2016 19:31:20 +0000 (12:31 -0700)]
msm: wlan: Change Egypt regulatory rules

Egypt does not allow 40 mhz for 2.4 GHZ channels. Change the rules
accordingly.

CRs-Fixed: 1076547
Change-Id: I8ef4a258e55e3dbbc3cd67472a5f2d3931d26c12
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
7 years agoMerge "msm: mdss: edid: parse dtd and proper fps and pclk check"
Linux Build Service Account [Tue, 11 Oct 2016 18:35:22 +0000 (11:35 -0700)]
Merge "msm: mdss: edid: parse dtd and proper fps and pclk check"

7 years agoMerge "msm: mdss: displayport: replace delayed work with work"
Linux Build Service Account [Tue, 11 Oct 2016 18:35:20 +0000 (11:35 -0700)]
Merge "msm: mdss: displayport: replace delayed work with work"

7 years agoMerge "msm: mdss: displayport: fix link training 2 for dp dongles"
Linux Build Service Account [Tue, 11 Oct 2016 18:35:20 +0000 (11:35 -0700)]
Merge "msm: mdss: displayport: fix link training 2 for dp dongles"

7 years agoclk: msm: clock-osm: Set Nominal Fmax frequency for boot
Osvaldo Banuelos [Tue, 11 Oct 2016 17:54:11 +0000 (10:54 -0700)]
clk: msm: clock-osm: Set Nominal Fmax frequency for boot

Request the Nominal Fmax as the boot frequency for
each cluster during probe. This is done to ensure reasonable
boot time.

CRs-Fixed: 994035
Change-Id: Ic2dac9bdc1cd9f9b8d236997eba2e63295d6b4c0
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
7 years agoMerge "msm: ipa3: add check on qmi-client handler"
Linux Build Service Account [Tue, 11 Oct 2016 08:17:10 +0000 (01:17 -0700)]
Merge "msm: ipa3: add check on qmi-client handler"

7 years agoMerge "ASoC: msm: fix lowlatency playback and FM concurrency issue"
Linux Build Service Account [Tue, 11 Oct 2016 08:17:09 +0000 (01:17 -0700)]
Merge "ASoC: msm: fix lowlatency playback and FM concurrency issue"

7 years agoMerge "qpnp-fg-gen3: add support to configure and handle delta battery temperature"
Linux Build Service Account [Tue, 11 Oct 2016 08:17:06 +0000 (01:17 -0700)]
Merge "qpnp-fg-gen3: add support to configure and handle delta battery temperature"

7 years agoMerge "ARM: dts: msm: Add lpg-lut-size property for pmicobalt"
Linux Build Service Account [Tue, 11 Oct 2016 08:17:05 +0000 (01:17 -0700)]
Merge "ARM: dts: msm: Add lpg-lut-size property for pmicobalt"

7 years agoMerge "pwm: qpnp: Add support to read the LPG LUT size from device tree"
Linux Build Service Account [Tue, 11 Oct 2016 08:17:04 +0000 (01:17 -0700)]
Merge "pwm: qpnp: Add support to read the LPG LUT size from device tree"

7 years agoMerge "iommu: msm: add barrier call on coherent lazy map"
Linux Build Service Account [Tue, 11 Oct 2016 08:16:57 +0000 (01:16 -0700)]
Merge "iommu: msm: add barrier call on coherent lazy map"

7 years agoMerge "iommu/io-pgtable-arm: Make cacheable mappings outer-shareable"
Linux Build Service Account [Tue, 11 Oct 2016 08:16:57 +0000 (01:16 -0700)]
Merge "iommu/io-pgtable-arm: Make cacheable mappings outer-shareable"

7 years agoMerge "iommu: Remove obsolete domain attribute"
Linux Build Service Account [Tue, 11 Oct 2016 08:16:56 +0000 (01:16 -0700)]
Merge "iommu: Remove obsolete domain attribute"

7 years agoMerge "iommu/arm-smmu: Remove DOMAIN_ATTR_COHERENT_HTW_DISABLE"
Linux Build Service Account [Tue, 11 Oct 2016 08:16:56 +0000 (01:16 -0700)]
Merge "iommu/arm-smmu: Remove DOMAIN_ATTR_COHERENT_HTW_DISABLE"

7 years agoMerge "icnss: Remove obsolete IOMMU domain attribute"
Linux Build Service Account [Tue, 11 Oct 2016 08:16:55 +0000 (01:16 -0700)]
Merge "icnss: Remove obsolete IOMMU domain attribute"

7 years agoMerge "msm: ADSPRPC: Remove obsolete IOMMU domain attribute"
Linux Build Service Account [Tue, 11 Oct 2016 08:16:54 +0000 (01:16 -0700)]
Merge "msm: ADSPRPC: Remove obsolete IOMMU domain attribute"

7 years agoMerge "msm: kgsl: Remove obsolete IOMMU domain attribute"
Linux Build Service Account [Tue, 11 Oct 2016 08:16:54 +0000 (01:16 -0700)]
Merge "msm: kgsl: Remove obsolete IOMMU domain attribute"

7 years agoMerge "msm: mdss: Remove obsolete IOMMU domain attribute"
Linux Build Service Account [Tue, 11 Oct 2016 08:16:53 +0000 (01:16 -0700)]
Merge "msm: mdss: Remove obsolete IOMMU domain attribute"

7 years agoMerge "tcp: make challenge acks less predictable"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:38 +0000 (18:28 -0700)]
Merge "tcp: make challenge acks less predictable"

7 years agoMerge "msm: kgsl: Modify dispatcher to accept generic objects"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:36 +0000 (18:28 -0700)]
Merge "msm: kgsl: Modify dispatcher to accept generic objects"

7 years agoMerge "input: misc: pat9125: code clean-up in pat9125 driver"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:34 +0000 (18:28 -0700)]
Merge "input: misc: pat9125: code clean-up in pat9125 driver"

7 years agoMerge "ARM: dts: msm: Add revid phandle to read FAB ID"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:33 +0000 (18:28 -0700)]
Merge "ARM: dts: msm: Add revid phandle to read FAB ID"

7 years agoMerge "iio: rradc: Add temperature compensation for die temperature"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:32 +0000 (18:28 -0700)]
Merge "iio: rradc: Add temperature compensation for die temperature"

7 years agoMerge "ARM: dts: msm: add VDD_APC0/1 CPR aging configurations for msmcobalt"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:30 +0000 (18:28 -0700)]
Merge "ARM: dts: msm: add VDD_APC0/1 CPR aging configurations for msmcobalt"

7 years agoMerge "qcom-charger: software fix for OTG soft-start"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:29 +0000 (18:28 -0700)]
Merge "qcom-charger: software fix for OTG soft-start"

7 years agoMerge "msm: gsi: driver upgrade for gsi version 1.2 and 1.3"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:29 +0000 (18:28 -0700)]
Merge "msm: gsi: driver upgrade for gsi version 1.2 and 1.3"

7 years agoMerge "KEYS: Fix ASN.1 indefinite length object parsing"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:28 +0000 (18:28 -0700)]
Merge "KEYS: Fix ASN.1 indefinite length object parsing"

7 years agoMerge "msm: cpp: Add support pagefault handler in CPP driver"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:27 +0000 (18:28 -0700)]
Merge "msm: cpp: Add support pagefault handler in CPP driver"

7 years agoMerge "sched: Add cgroup attach functionality to the tune controller"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:26 +0000 (18:28 -0700)]
Merge "sched: Add cgroup attach functionality to the tune controller"

7 years agoMerge "sched: Update the number of tune groups to 5"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:25 +0000 (18:28 -0700)]
Merge "sched: Update the number of tune groups to 5"

7 years agoMerge "sched/tune: add initial support for CGroups based boosting"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:24 +0000 (18:28 -0700)]
Merge "sched/tune: add initial support for CGroups based boosting"

7 years agoMerge "qpnp-fg-gen3: add support to restart fuel gauge"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:21 +0000 (18:28 -0700)]
Merge "qpnp-fg-gen3: add support to restart fuel gauge"

7 years agoMerge "qpnp-fg-gen3: Add support to configure force battery profile loading"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:21 +0000 (18:28 -0700)]
Merge "qpnp-fg-gen3: Add support to configure force battery profile loading"

7 years agoMerge "msm: kgsl: Remove GPU BCL and LMH support"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:20 +0000 (18:28 -0700)]
Merge "msm: kgsl: Remove GPU BCL and LMH support"

7 years agoMerge "mdss: DisplayPort: add support for multiple resolutions"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:17 +0000 (18:28 -0700)]
Merge "mdss: DisplayPort: add support for multiple resolutions"

7 years agoMerge "msm: mdss: edid: limit resolutions support based on interface"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:16 +0000 (18:28 -0700)]
Merge "msm: mdss: edid: limit resolutions support based on interface"

7 years agoMerge "mdss: DisplayPort: update link-training settings and do DP reset"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:15 +0000 (18:28 -0700)]
Merge "mdss: DisplayPort: update link-training settings and do DP reset"

7 years agoMerge "ARM: dts: enable broadcast in nt35597 dual-dsi panels for msmcobalt"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:13 +0000 (18:28 -0700)]
Merge "ARM: dts: enable broadcast in nt35597 dual-dsi panels for msmcobalt"

7 years agoMerge "ARM: dts: reduce reset delays for nt35597 panels"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:12 +0000 (18:28 -0700)]
Merge "ARM: dts: reduce reset delays for nt35597 panels"

7 years agoMerge "msm: mdss: add mdp guard window property"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:12 +0000 (18:28 -0700)]
Merge "msm: mdss: add mdp guard window property"

7 years agoMerge "msm: mdss: Fix concurrent writeback failures in end-to-end use cases"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:10 +0000 (18:28 -0700)]
Merge "msm: mdss: Fix concurrent writeback failures in end-to-end use cases"

7 years agoMerge "usb: gadget: ncm: Add super speed descriptors for NCM function"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:09 +0000 (18:28 -0700)]
Merge "usb: gadget: ncm: Add super speed descriptors for NCM function"

7 years agoMerge "fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:08 +0000 (18:28 -0700)]
Merge "fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE"

7 years agoMerge "msm: ipa: fix static analysis sign issue"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:07 +0000 (18:28 -0700)]
Merge "msm: ipa: fix static analysis sign issue"

7 years agoMerge "ARM: dts: msm: Add RFCLK2 for msmcobalt MTP/CDP"
Linux Build Service Account [Tue, 11 Oct 2016 01:28:07 +0000 (18:28 -0700)]
Merge "ARM: dts: msm: Add RFCLK2 for msmcobalt MTP/CDP"

7 years agomsm: ipa3: add check on qmi-client handler
Skylar Chang [Fri, 16 Sep 2016 22:32:47 +0000 (15:32 -0700)]
msm: ipa3: add check on qmi-client handler

In some cases with IPA3 received qmi_service_exit from
modem but still uses invalid qmi-handler to send QMI-msg
to modem which leads to crash. The fix is to add the
check before sending QMI msg to modem.

Change-Id: Iac48747a188b234cc640285e181984985fc3c012
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agosmb-lib: smb138x-charger: add parallel current to parallel psy
Nicholas Troast [Wed, 5 Oct 2016 20:30:18 +0000 (13:30 -0700)]
smb-lib: smb138x-charger: add parallel current to parallel psy

The measured battery current can be read from the parallel slave
charger. Expose this through the CURRENT_NOW property in the parallel
power supply.

Change-Id: Icd717147adc018a076a72bd5ce1a52a765f34f7b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoqpnp-smb2: add the PARALLEL_DISABLE property to usb psy
Nicholas Troast [Thu, 6 Oct 2016 18:49:45 +0000 (11:49 -0700)]
qpnp-smb2: add the PARALLEL_DISABLE property to usb psy

Use the PARALLEL_DISABLE property to enable or disable parallel
charging. When writing to this property the effect is immediate.

Change-Id: Ia9cd9d352935be19e9383141cf279a34796ff642
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agopower_supply: add PARALLEL_DISABLE property
Nicholas Troast [Thu, 6 Oct 2016 18:48:31 +0000 (11:48 -0700)]
power_supply: add PARALLEL_DISABLE property

The PARALLEL_DISABLE property is used to enable or disable parallel
charging.

Change-Id: If2845efa942abc5849890b45de525222632b32db
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agosmb138x-charger: enable parallel current sensing
Nicholas Troast [Wed, 5 Oct 2016 00:07:26 +0000 (17:07 -0700)]
smb138x-charger: enable parallel current sensing

When parallel charging is enabled the charge current read by the fuel
gauage will not include the parallel charging current. Enable VCHG to
report the parallel charge current.

Change-Id: I6090d4163e760dc02a7dce45f1246bb59b2e195b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoARM: dts: msm: Add lpg-lut-size property for pmicobalt
Devesh Jhunjhunwala [Mon, 29 Aug 2016 20:25:04 +0000 (13:25 -0700)]
ARM: dts: msm: Add lpg-lut-size property for pmicobalt

Add a new property to read the lpg-lut size for the
qpnp-pwm device tree nodes for pmicobalt.

CRs-Fixed: 1060896
Change-Id: I93bf7c406471b5877008e2000260adfa62336b93
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
7 years agopwm: qpnp: Add support to read the LPG LUT size from device tree
Devesh Jhunjhunwala [Mon, 29 Aug 2016 23:14:56 +0000 (16:14 -0700)]
pwm: qpnp: Add support to read the LPG LUT size from device tree

Add support to read the qcom,lpg-lut-size property from
the device tree instead of using the value returned by the
of_get_address API.

CRs-Fixed: 1060896
Change-Id: I0f84baf29a141719dd44dabb67e9d599d9646d49
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
7 years agotcp: make challenge acks less predictable
Eric Dumazet [Sun, 10 Jul 2016 08:04:02 +0000 (10:04 +0200)]
tcp: make challenge acks less predictable

Yue Cao claims that current host rate limiting of challenge ACKS
(RFC 5961) could leak enough information to allow a patient attacker
to hijack TCP sessions. He will soon provide details in an academic
paper.

This patch increases the default limit from 100 to 1000, and adds
some randomization so that the attacker can no longer hijack
sessions without spending a considerable amount of probes.

Based on initial analysis and patch from Linus.

Note that we also have per socket rate limiting, so it is tempting
to remove the host limit in the future.

v2: randomize the count of challenge acks per second, not the period.

Fixes: 282f23c6ee34 ("tcp: implement RFC 5961 3.2")
Reported-by: Yue Cao <ycao009@ucr.edu>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: I1bf93d033e788c37899837f0c9e930bc4e20aa4c
Git-repo: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Git-commit: 75ff39ccc1bd5d3c455b6822ab09e533c551f758
[d-cagle@codeaurora.org: Resolve trivial merge conflict]
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agomsm: kgsl: restructure GPU power initialization
George Shen [Mon, 29 Aug 2016 18:34:41 +0000 (11:34 -0700)]
msm: kgsl: restructure GPU power initialization

Move target specific initialization and setup into target
specific init functions. The change is required to port the GPU
driver to support future generation GPUs.

CRs-Fixed: 1053516
Change-Id: I808e247669fab61a6a64131858fe2f9e19754242
Signed-off-by: George Shen <sqiao@codeaurora.org>
7 years agoKEYS: Fix ASN.1 indefinite length object parsing
David Howells [Tue, 23 Feb 2016 11:03:12 +0000 (11:03 +0000)]
KEYS: Fix ASN.1 indefinite length object parsing

This fixes CVE-2016-0758.

In the ASN.1 decoder, when the length field of an ASN.1 value is extracted,
it isn't validated against the remaining amount of data before being added
to the cursor.  With a sufficiently large size indicated, the check:

datalen - dp < 2

may then fail due to integer overflow.

Fix this by checking the length indicated against the amount of remaining
data in both places a definite length is determined.

Whilst we're at it, make the following changes:

 (1) Check the maximum size of extended length does not exceed the capacity
     of the variable it's being stored in (len) rather than the type that
     variable is assumed to be (size_t).

 (2) Compare the EOC tag to the symbolic constant ASN1_EOC rather than the
     integer 0.

 (3) To reduce confusion, move the initialisation of len outside of:

for (len = 0; n > 0; n--) {

     since it doesn't have anything to do with the loop counter n.

Change-Id: I13b15885df9dc0c17a3e1670ae9606bf3ce4ba05
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Acked-by: Peter Jones <pjones@redhat.com>
Git-repo: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Git-commit: 23c8a812dc3c621009e4f0e5342aa4e2ede1ceaa
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agodwc3: gadget: Don't memset TRB ring with zero related to USB GSI endpoint
Mayank Rana [Wed, 5 Oct 2016 16:43:05 +0000 (09:43 -0700)]
dwc3: gadget: Don't memset TRB ring with zero related to USB GSI endpoint

USB GSI endpoint related TRB ring is allocated with EP_OPS. Each USB
endpoint related TRB ring is zeroed with usb_ep_disable() operation. Hence
if USB composition switch or USB cable disconnect is performed when there
is active data transfer with USB GSI endpoint, it results into IPA GSI
accessing 0x0 address causing bus errors. Hence fix this issue by not
memsetting TRB ring with zero for USB GSI endpoint.

CRs-Fixed: 1072782
Change-Id: I92df514e31d5168b8dff4b249f4d8fd3e70c0118
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
7 years agoMerge "cpuidle: lpm-levels: Consider cluster history for LPM selection"
Linux Build Service Account [Mon, 10 Oct 2016 18:51:07 +0000 (11:51 -0700)]
Merge "cpuidle: lpm-levels: Consider cluster history for LPM selection"

7 years agoMerge "defconfig: Enable CONFIG_ICNSS_DEBUG for msmfalcon"
Linux Build Service Account [Mon, 10 Oct 2016 18:51:06 +0000 (11:51 -0700)]
Merge "defconfig: Enable CONFIG_ICNSS_DEBUG for msmfalcon"

7 years agosched: Add cgroup attach functionality to the tune controller
Syed Rameez Mustafa [Wed, 7 Sep 2016 02:18:58 +0000 (19:18 -0700)]
sched: Add cgroup attach functionality to the tune controller

This is required to allow tasks to freely move between cgroups associated
with the tune controller.

Change-Id: I1f39b957462034586edc2fdc0a35488b314e9c8c
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agosched: Update the number of tune groups to 5
Syed Rameez Mustafa [Sat, 3 Sep 2016 00:51:39 +0000 (17:51 -0700)]
sched: Update the number of tune groups to 5

The schedtune controller will mimic the cpusets controller configuration
for now. For that we need to make 4 groups in addition to the root
group present by default.

Change-Id: I082f1e4e4ebf863e623cf66ee127eac70a3e2716
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agosched/tune: add initial support for CGroups based boosting
Patrick Bellasi [Tue, 23 Jun 2015 08:17:54 +0000 (09:17 +0100)]
sched/tune: add initial support for CGroups based boosting

To support task performance boosting, the usage of a single knob has the
advantage to be a simple solution, both from the implementation and the
usability standpoint.  However, on a real system it can be difficult to
identify a single value for the knob which fits the needs of multiple
different tasks. For example, some kernel threads and/or user-space
background services should be better managed the "standard" way while we
still want to be able to boost the performance of specific workloads.

In order to improve the flexibility of the task boosting mechanism this
patch is the first of a small series which extends the previous
implementation to introduce a "per task group" support.
This first patch introduces just the basic CGroups support, a new
"schedtune" CGroups controller is added which allows to configure
different boost value for different groups of tasks.
To keep the implementation simple but still effective for a boosting
strategy, the new controller:
  1. allows only a two layer hierarchy
  2. supports only a limited number of boost groups

A two layer hierarchy allows to place each task either:
  a) in the root control group
     thus being subject to a system-wide boosting value
  b) in a child of the root group
     thus being subject to the specific boost value defined by that
     "boost group"

The limited number of "boost groups" supported is mainly motivated by
the observation that in a real system it could be useful to have only
few classes of tasks which deserve different treatment.
For example, background vs foreground or interactive vs low-priority.
As an additional benefit, a limited number of boost groups allows also
to have a simpler implementation especially for the code required to
compute the boost value for CPUs which have runnable tasks belonging to
different boost groups.

Change-Id: I1304e33a8440bfdad9c8bcf8129ff390216f2e32
cc: Tejun Heo <tj@kernel.org>
cc: Li Zefan <lizefan@huawei.com>
cc: Johannes Weiner <hannes@cmpxchg.org>
cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
Git-commit: 13001f47c9a610705219700af4636386b647e231
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
7 years agoclk: msm: clock: Update the bimc clock mux index
Deepak Katragadda [Mon, 19 Sep 2016 17:23:46 +0000 (10:23 -0700)]
clk: msm: clock: Update the bimc clock mux index

Use the ddrss_gcc_dbg_clk mux index to get the rate
measurement of the DDR clock on MSMCOBALT. Note that
this feature is only supported on v2 platforms.

CRs-Fixed: 1068034
Change-Id: Ib472c226b7e35079e6b8391848a0a0d1c38962c0
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
7 years agoqpnp-fg-gen3: add support to configure and handle delta battery temperature
Subbaraman Narayanamurthy [Mon, 26 Sep 2016 18:27:24 +0000 (11:27 -0700)]
qpnp-fg-gen3: add support to configure and handle delta battery temperature

Battery temperature delta configuration can be used to know the
battery temperature change. There is an interrupt associated
with this configuration which can be used to update the battery
health of the device.

Change-Id: Ic55b9bb34ac9912f88dab6a11ec365814b525ca2
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-fg-gen3: add support to configure jeita hysteresis
Subbaraman Narayanamurthy [Sat, 24 Sep 2016 02:11:17 +0000 (19:11 -0700)]
qpnp-fg-gen3: add support to configure jeita hysteresis

GEN3 FG has jeita hysteresis support in hardware. Add support
to configure the hysteresis applied to jeita temperature via
a device tree property.

While at it, fix reading the JEITA thresholds from device tree
property where the total size of the elements was used instead
of the total number of elements.

Change-Id: I1d468f1291224de0f781ca71cbc1374a29d7c790
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-fg-gen3: fg-util: Do not allow SRAM access when battery is missing
Subbaraman Narayanamurthy [Tue, 4 Oct 2016 01:33:19 +0000 (18:33 -0700)]
qpnp-fg-gen3: fg-util: Do not allow SRAM access when battery is missing

When the battery is removed and a strong charger is plugged in,
device will be kept powered. However, because of missing battery
SRAM access over IMA can fail leading to errors. Eventually, the
errors will go away when the battery is inserted again. However,
if the user tries to access SRAM registers or bms power supply
properties, it can cause further errors flooding logs. Handle
this gracefully by returning an error upon battery missing is
detected.

CRs-Fixed: 1072401
Change-Id: I764442548cb076dad89856d75394ef9cf355f83a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-fg-gen3: fix reading OCV and Vbatt predicted values
Subbaraman Narayanamurthy [Tue, 4 Oct 2016 01:30:32 +0000 (18:30 -0700)]
qpnp-fg-gen3: fix reading OCV and Vbatt predicted values

Open circuit voltage and predicted battery voltage are read from
16 bits. However, the real value is present only in 15 bits.
Mask the bit 16 to get the proper readings.

Change-Id: I196ccc64fd221fead87a88f43dce1a21ba800908
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-fg-gen3: add support to restart fuel gauge
Subbaraman Narayanamurthy [Fri, 23 Sep 2016 02:36:39 +0000 (19:36 -0700)]
qpnp-fg-gen3: add support to restart fuel gauge

Add a module parameter "fg_restart" to restart the fuel gauge
without loading the battery profile. This will be useful in
geting a fresh SOC estimate whenever required.

Change-Id: I0c054ad523a0eab72f777d010807bb3a55f63f7e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agopower: qpnp-fg-gen3: add capacity learning feature
Subbaraman Narayanamurthy [Wed, 14 Sep 2016 21:48:49 +0000 (14:48 -0700)]
power: qpnp-fg-gen3: add capacity learning feature

Batteries age across the time. Capacity learning is a feature
which uses the hardware autonomous coulomb counter to determine
the actual battery capacity against the advertised full capacity.
This will be useful to determine how much degradation has
happened to the battery. Capacity learning algorithm will start
based on some pre-set conditions like start SOC, battery
temperature and ends when the charging cycle is complete.

Actual capacity will be exposed through charge_full property.

Change-Id: I89cc14d213b0de10bc8d052dd76e1468fe9c30e5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-fg-gen3: Add support to configure force battery profile loading
Subbaraman Narayanamurthy [Wed, 21 Sep 2016 19:36:03 +0000 (12:36 -0700)]
qpnp-fg-gen3: Add support to configure force battery profile loading

Currently, FG_GEN3 driver loads the battery profile if it finds
out the profile loaded earlier doesn't match with the available
profile. This will be done when the profile integrity bit is
set already. Make this force profile loading as a configurable
parameter through a device tree property.

While at it, add a module parameter to dump the profile contents
conditionally. This will be helpful in debugging.

Change-Id: Ibaff55aa5434ee283e6d597485d193e9e52bb74e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-fg-gen3: disable msoc-full and bsoc-delta IRQs as wakeup sources
Nicholas Troast [Fri, 23 Sep 2016 15:54:13 +0000 (08:54 -0700)]
qpnp-fg-gen3: disable msoc-full and bsoc-delta IRQs as wakeup sources

msoc-full is not used to determine when the battery is full. The charger
will wakeup the device when it has terminated charging indicating that
the battery is full. Disable the msoc-full IRQ as a wakeup source.

The msoc-delta IRQ is used to wakeup the device when the SOC changes
therefore having the bsoc-delta IRQ as a wakeup source is unnecessary.
Disable the bsoc-delta IRQ as a wakeup source.

Change-Id: Iab7087ce3d6727abc852d3a84590cfa570ec584d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoqpnp-fg-gen3: change the encoding for delta soc threshold
Subbaraman Narayanamurthy [Fri, 23 Sep 2016 01:11:42 +0000 (18:11 -0700)]
qpnp-fg-gen3: change the encoding for delta soc threshold

Currently, delta SOC threshold is written as a 8 bit value but
the encoding is in 11 bits. This will cause the delta SOC
threshold programmed to a lower value causing interrupts to fire
quickly. Change the numerator of delta SOC SRAM parameter so that
the delta SOC threshold will be set correctly. Maximum possible
threshold will be 12.45% (1/2048 * 255).

Change-Id: Ia908c917d71939b9d72b16ddca3400a692540bf3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: add CC_CV threshold to itech/ascent FG_GEN3 battery profiles
Subbaraman Narayanamurthy [Mon, 19 Sep 2016 23:22:30 +0000 (16:22 -0700)]
ARM: dts: msm: add CC_CV threshold to itech/ascent FG_GEN3 battery profiles

Configure CC_CV threshold voltage to 4.34V for both itech and
ascent battery profiles that will be used by GEN3 fuel gauge
on pmicobalt.

CRs-Fixed: 1068593
Change-Id: I7df3d343afa62ffdbf6f5db8c7fc7d94e2f0e3a0
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agopower: qpnp-fg-gen3: add support to configure VBtGTFltTh and VBtFull
Subbaraman Narayanamurthy [Mon, 19 Sep 2016 21:52:12 +0000 (14:52 -0700)]
power: qpnp-fg-gen3: add support to configure VBtGTFltTh and VBtFull

Based on the battery profile parameters, Vbatt greater than float
voltage and full voltage thresholds needs to be configured. Add
support for the same. Since this needs the battery profile
parameters to be read in advance before the hardware is
initialized, shuffle the code to get battery profile early.

CRs-Fixed: 1068593
Change-Id: If5df62d933cc653a276967b3d16c080c6d4ecb2e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agodefconfig: Enable CONFIG_ICNSS_DEBUG for msmfalcon
Hardik Kantilal Patel [Mon, 10 Oct 2016 12:25:35 +0000 (17:55 +0530)]
defconfig: Enable CONFIG_ICNSS_DEBUG for msmfalcon

Enable CONFIG_ICNSS_DEBUG to enable driver debugging.

CRs-fixed: 1076049
Change-Id: I0d97a9aca9525da4aee6a9ddbf97849cd9c11a55
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
7 years agoMerge "input: misc: pat9125: fix issues found in static analysis"
Linux Build Service Account [Mon, 10 Oct 2016 12:57:59 +0000 (05:57 -0700)]
Merge "input: misc: pat9125: fix issues found in static analysis"

7 years agoMerge "ASoC: msm: create backend dailink for wcd934x MAD"
Linux Build Service Account [Mon, 10 Oct 2016 12:57:59 +0000 (05:57 -0700)]
Merge "ASoC: msm: create backend dailink for wcd934x MAD"

7 years agoMerge "ASoC: soundwire: add null check before pointer dereference."
Linux Build Service Account [Mon, 10 Oct 2016 12:57:51 +0000 (05:57 -0700)]
Merge "ASoC: soundwire: add null check before pointer dereference."

7 years agoinput: misc: pat9125: code clean-up in pat9125 driver
Vevek Venkatesan [Wed, 21 Sep 2016 13:10:25 +0000 (18:40 +0530)]
input: misc: pat9125: code clean-up in pat9125 driver

Remove redundant code from the Pixart PAT9125 reference driver
- Remove unwanted struct declarations and definitions
- Remove unwanted header files
- Dynamically allocate platform data structure
- Change pr_err to dev_err
- Changes as per Linux coding guidelines
- Clean-up probe and remove routines
- Remove unwanted file operations
- Remove unused functions and variables

Change-Id: I71b1d2548dc07c21ab8f12327662f5bb6998cdcb
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
7 years agoinput: misc: pat9125: fix issues found in static analysis
Himanshu Aggarwal [Tue, 4 Oct 2016 04:25:31 +0000 (09:55 +0530)]
input: misc: pat9125: fix issues found in static analysis

Fix the following issues found in static analysis:
- missing blank lines after declarations
- unnecessary return in a void function
- exporting world writable files is usually an error
- block comments use * on subsequent and trailing lines
- Add DT binding description and vendor prefixe for the
driver.
- Add Linux Foundation copyright markings.

Change-Id: Id2ed9a6d4e31bd2acd3185bf7ef9c78f8a41cf36
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
7 years agoThis is the reference driver source code for Pixart OTS PAT9125.
Lawrence Liao [Fri, 16 Sep 2016 08:01:15 +0000 (13:31 +0530)]
This is the reference driver source code for Pixart OTS PAT9125.

Change-Id: Ie366894e9e89707fa2950a7ffbfe4e93059a19a3
Signed-off-by: Lawrence Liao <lawrence_liao@pixart.com>
(cherry picked from commit dfc4349a8aa02bb0b7b0639ad5368a5c85f6520f)
Git-commit: dfc4349a8aa02bb0b7b0639ad5368a5c85f6520f
Git-repo: https://github.com/PixartOpen/pixart-sensor-db810-linux-driver
[shjain@codeaurora.org: removed below listed files from original
commit as they are not needed and to resolve trivial merge conflicts:
1. arch/arm/boot/dts/qcom/apq8094-dragonboard.dtsi
2. arch/arm/boot/dts/qcom/msm8994-pinctrl.dtsi
3. arch/arm/boot/dts/qcom/msm8994.dtsi
4. drivers/input/misc/Makefile
5. drivers/input/misc/ots_pat9125/Makefile
Remove the unused pieces of algorithm from the reference
driver of Pixart PAT9125 Rotating side button.]
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
7 years agoMerge "wil6210: initial support for FTM and AOA"
Linux Build Service Account [Mon, 10 Oct 2016 04:17:55 +0000 (21:17 -0700)]
Merge "wil6210: initial support for FTM and AOA"

7 years agoMerge "ARM: dts: msm: Add IMEM dload-type entry for MSM8996 and MSMCOBALT"
Linux Build Service Account [Mon, 10 Oct 2016 04:17:53 +0000 (21:17 -0700)]
Merge "ARM: dts: msm: Add IMEM dload-type entry for MSM8996 and MSMCOBALT"

7 years agoMerge "soc: qcom: handle wdsp glink state notifications"
Linux Build Service Account [Mon, 10 Oct 2016 04:17:52 +0000 (21:17 -0700)]
Merge "soc: qcom: handle wdsp glink state notifications"

7 years agoMerge "regulator: correct name used in debug consumer regulator_get call"
Linux Build Service Account [Mon, 10 Oct 2016 04:17:52 +0000 (21:17 -0700)]
Merge "regulator: correct name used in debug consumer regulator_get call"