summaryrefslogtreecommitdiff
path: root/drivers/platform (follow)
Commit message (Collapse)AuthorAge
...
* | | | | | | | Merge "msm: ipa: Fix to use after free issue"Linux Build Service Account2017-08-30
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | msm: ipa: Fix to use after free issueMohammed Javid2017-08-30
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added code changes to avoid use after free if header already table already freed during ipa ioctl test. Change-Id: I5e89c28448bd3b94714451432774457a170005bd Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | | msm: ipa3: Vote to IPA clocks when destroying MHI channelsGhanim Fodi2017-08-30
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to the missing vote, un-clocked access to GSI registers occurred when destroying MHI channels. Fix it by voting to the clocks. CRs-Fixed: 2097296 Change-Id: Ib4fe41ff87ecb9746617b1ed3e32cae740de0c7e Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* | | | | | msm: ipa: protect q6_proxy_clk_voteSkylar Chang2017-08-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a mutex to protect q6_proxy_clk_vote. The proxy vote/unvote may be called from different contexts which can result in a a race condition. Change-Id: I402090be5ff35897ed61499a13bf52eb60a1f5cf CRs-Fixed: 2094724 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | Merge "msm: ipa3: Load IPA FW using PIL for MDM devices"Linux Build Service Account2017-08-23
|\ \ \ \ \ \
| * | | | | | msm: ipa3: Load IPA FW using PIL for MDM devicesGhanim Fodi2017-08-23
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change IPA firmware loading on MDM devices to use Linux PIL instead of manual loading. Loading with PIL is more secure. Firmware needs to be signed and then authenticated by Trust Zone. Change-Id: If8bda76795dcd000327c6f6345a9b38474b609fd Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* / | | | | msm: sps: Destroy debug log during BAM deregistrationRama Krishna Phani A2017-08-22
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clients can register and deregister to BAM based on usecase. IPC Log pages are created during clients registration to BAM. Update support to destroy log pages during BAM deregistration. Change-Id: I1da266c61ebd57d6cfead6fc5b64a05be5620cf4 Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
* | | | | Merge "msm: ipa3: Fix to avoid accessing of uninitialized structure"Linux Build Service Account2017-08-21
|\ \ \ \ \
| * | | | | msm: ipa3: Fix to avoid accessing of uninitialized structureMohammed Javid2017-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added code changes to check ipa3_ctx initilized or not during bootup in sdm670. Change-Id: I03e5b8de30c77da140e9575c2315b0878cf5363c Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | Merge "msm: ipa3: fix usb statuses exception path"Linux Build Service Account2017-08-21
|\ \ \ \ \ \
| * | | | | | msm: ipa3: fix usb statuses exception pathSkylar Chang2017-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set APPS_LAN_CONS pipe as the statuses exception pipe for usb-prod pipes. Change-Id: Ia0938da6ec2b2cbdbab4dddf177d2af76fad3aaa Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | | Merge changes I0236f849,I87b2ac56,Ia7a344e6,I1cace039 into msm-4.4Linux Build Service Account2017-08-20
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: ARM: dts: msm: Add tp rev property for PM660 iio: rradc: Update RRADC USBIN scaling qpnp: revid: Add support to read TP Rev ARM: dts: msm: increase PCIe PHY wakeup delay from L1ss for msm8998
| * | | | | | | qpnp: revid: Add support to read TP RevRama Krishna Phani A2017-08-17
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some PMICs software drivers (PM660) require the TP revision information to implement specific logic. Add an optional property qcom,tp-rev-valid to check if support for TP REV is available in the REVID peripheral for the PMIC. Change-Id: Ia7a344e60bedcc6fb28d9ed9f18dc29a3d7f4fd7 Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
* | | | | | | Merge "msm: gsi: check channel state on timeout" into msm-4.4Linux Build Service Account2017-08-20
|\ \ \ \ \ \ \
| * | | | | | | msm: gsi: check channel state on timeoutSkylar Chang2017-08-10
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases of stopping a channel, the CH CTRL interrupt arrives late even though the channel is already stopped. This change will check the channel state after timeout occurs. CRs-Fixed: 2090459 Change-Id: I4b99e8fb6710dca16047025a614fb734995934a1 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* / / / / / / msm: usb_bam: Fix failure of remove by of_platform_depopulateZiqi Chen2017-08-15
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If device is created by of_platform_populate and removed by of_platform_depopulate from parent device driver, platform_data will be released twice and lead to kernel panic. of_platform_depopulate will free platform_data of each device driver. Usually we use devm_kzalloc to malloc for platform_data so it can be released during driver unregister. So if device is removed by of_platform_depopulate and platform_data is malloced by devm_kzalloc, platform_data will be freed twice. To fix it, move this data into struct usb_bam_ctx_type and then store usb_bam_ctx_type into device driver data. In this way, it can be get in remove function. The member regs of usb_bam_ctx_type is not necessary. It is only used for ioremap which already has been done by virt_addr of struct sps_bam_props. Without sps_deregister_bam_device, bam child device will not be created again during defer probe. So deregister in remove function. Change-Id: Ibae80745be5810d400a1c05566a99efcc2190020 Signed-off-by: Ziqi Chen <ziqic@codeaurora.org>
* | | | | | msm: ipa3: Fix IPA aggregation force close callGhanim Fodi2017-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Core IPA driver passes wrong end-point index to HAL when generating aggregation force close parameters values. Fixed the call to pass the correct index. CRs-Fixed: 2082839 Change-Id: Icc0fd2ce8a23bf0e3334f54b27b850ebf92b58a1 Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* | | | | | Merge "msm: usb_bam: replace %p with %pK"Linux Build Service Account2017-08-07
|\ \ \ \ \ \
| * | | | | | msm: usb_bam: replace %p with %pKLiangliang Lu2017-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with 0's. Debugging Note : &pK prints only Zeros as address. If you need actual address information, write 0 to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: If3e3a7d5c737b8b7e2c2f78e2814747db4a770cd Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
* | | | | | | Merge "msm: mhi: initialize variables to default values"Linux Build Service Account2017-08-04
|\ \ \ \ \ \ \
| * | | | | | | msm: mhi: initialize variables to default valuesRama Krishna Phani A2017-08-03
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Few functions have variables which might get used with out proper initialization. Initialize variables to default values. CRs-Fixed: 2087109 Change-Id: I7645940e8d466e0ef67a5b8b7702b18b160cc10f Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
* | | | | | | Merge "msm: ipa3: Fix Q6 resourse manager de-init"Linux Build Service Account2017-08-03
|\ \ \ \ \ \ \
| * | | | | | | msm: ipa3: Fix Q6 resourse manager de-initMohammed Javid2017-08-02
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make a change not to handle Q6 resource manager deinit in SSR situation. Change-Id: I5c3f68deb4514747146c5118fb58dad121ca7335 Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | | Merge "msm: ipa: Fix invalid source pipe index"Linux Build Service Account2017-08-03
|\ \ \ \ \ \ \
| * | | | | | | msm: ipa: Fix invalid source pipe indexMohammed Javid2017-08-02
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Source pipe index may returned invalid or given invalid from IOCTl. Check it for valid before sending it to Q6. Change-Id: I9dbbc930014549ed2d0620af6872816a18b438b5 Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | | Merge "msm: ipa: Fix wrong usage and cleanup code"Linux Build Service Account2017-08-03
|\ \ \ \ \ \ \
| * | | | | | | msm: ipa: Fix wrong usage and cleanup codeMohammed Javid2017-08-02
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Couple of code cleanup - Initialize the return variable before using it. - Remove unnecessary NULL check. Change-Id: I8e63cb95ae99d1656143ae4b1d130f92890bb3c5 Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | | Merge "msm: ipa: Add support for per client statistics and UL firewall"Linux Build Service Account2017-08-03
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | msm: ipa: Add support for per client statistics and UL firewallUtkarsh Saxena2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per client lan statistics feature requires fetching data from IPA Q6 and share it with user space application. For UL firewall, v6 rules are sent to IPA Q6 in case of whitelisting to allow only specific connections and drop the rest of the connections. Change-Id: I67e33c338f1d119e2e1a08ef462767e2e0cd6f1c Acked-by: Abhishek Choubey <abchoube@qti.qualcomm.com> Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org> Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
* | | | | | | Merge "mhi: uci: Fix a bug related to split transfer packets"Linux Build Service Account2017-07-28
|\ \ \ \ \ \ \
| * | | | | | | mhi: uci: Fix a bug related to split transfer packetsSujeev Dias2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When transfer buffer is larger than available space, uci driver will split the transfer into multiple transactions. Driver incorrectly calculated the transfer length and caused infinite transfer. Simplify uci write method to avoid such bugs. CRs-Fixed: 2083693 Change-Id: Ic7169cefda6a4637511ecfa3ce5ddde6f3d55f8c Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* | | | | | | | Merge "msm: ipa3: add offline charging support"Linux Build Service Account2017-07-28
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | msm: ipa3: add offline charging supportSkylar Chang2017-07-26
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In offline charging mode, modem is not loaded so the proxy IPA clock vote added by IPA driver on behalf of modem is never released and this prolongs the charge time. Move the proxy vote to IPA3_POST_INIT before rmnet_ipa driver init completes. Change-Id: I271c8e6916d0c3068f720ae81b67f0fc5c198b6f Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | | Merge "msm: ipa3: disable clock gating for MISC"Linux Build Service Account2017-07-26
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | msm: ipa3: disable clock gating for MISCSkylar Chang2017-07-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per design recommendation on clock gating of MISC block for IPA 3.1, as a workaround, clock gating for MISC needs to be disabled using IPA_CLKON_CFG register. Change-Id: If38741933f2700231977b87f1eaa7b4d95efd478 Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | | Merge "msm: ipa3: Add spinlock to avoid deleting already deleted list"Linux Build Service Account2017-07-19
|\ \ \ \ \ \ \
| * | | | | | | msm: ipa3: Add spinlock to avoid deleting already deleted listMohammed Javid2017-07-19
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a chance of deleting, already deleted list in ipa_cleanup_wlan_rx_common_cache API. Protect the wlan_comm_desc_list, with the spinlock to avoid this deletion. Change-Id: I10161f71b92d6d5fe06af62b65bf3d92d0d4512a Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* / | | | | | msm: ipa: fix to incorrect structure accessMohammed Javid2017-07-18
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accessing of incorrect structure pointer is causing memory out of bound access, fixed issue by accessing the correct structure pointer.Missed changes in previous commit I3c2f5f7a97ca ("msm:ipa: Fix to incorrect structure access") for proc header table cookie variable.Added missing changes. Change-Id: I9260b8a4d4db0e76eb3849f64174e33e075d3736 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | Merge "msm:ipa: using rate limit api for ioctl calls"Linux Build Service Account2017-07-17
|\ \ \ \ \ \
| * | | | | | msm:ipa: using rate limit api for ioctl callsUtkarsh Saxena2017-07-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ipav2/ipav3 ioctl calls input arguments validation failed cases, replacing IPAERR() with IPAERR_RL() marco for controlling logs printing on the console. Change-Id: I0d1aabb9b500228e5fd5d94cf17657bf29bdf175 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | | Merge "msm: ipa: remove delay in out of buffer recovery procedure"Linux Build Service Account2017-07-16
|\ \ \ \ \ \ \
| * | | | | | | msm: ipa: remove delay in out of buffer recovery procedureSkylar Chang2017-07-06
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a RX pipe runs out of buffers, a delayed work is scheduled to re-attempt the replenish process but the single threaded workqueue will not process that work till the existing work is retired. The existing work will be retired after sufficient inacvitivty is detected but in this corner-case, we can do this immediately since no further packets will be received. Change-Id: Ia12a35aaadcb95c94471ae0ffea8c61a9a3d26f7 CRs-Fixed: 854938 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | | Merge "msm:ipa: Fix to incorrect structure access"Linux Build Service Account2017-07-14
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| * | | | | | msm:ipa: Fix to incorrect structure accessMohammed Javid2017-07-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accessing of incorrect structure pointer is causing memory out of bound access, fixed issue by accessing the correct structure pointer. Change-Id: I3c2f5f7a97cac854093ef670184d06db4231f5e1 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | | Merge "msm_11ad: Compile as module instead of built-in"Linux Build Service Account2017-07-14
|\ \ \ \ \ \ \
| * | | | | | | msm_11ad: Compile as module instead of built-inHamad Kadmany2017-07-12
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove compilation of the module as built-in by default. Change-Id: Iadb70814c02df68b75ae4efae66637beaf520b9e Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
* | | | | | | Merge "Merge android-4.4@64a73ff (v4.4.76) into msm-4.4"Linux Build Service Account2017-07-12
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Merge android-4.4@64a73ff (v4.4.76) into msm-4.4Blagovest Kolenichev2017-07-10
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-64a73ff: Linux 4.4.76 KVM: nVMX: Fix exception injection KVM: x86: zero base3 of unusable segments KVM: x86/vPMU: fix undefined shift in intel_pmu_refresh() KVM: x86: fix emulation of RSM and IRET instructions cpufreq: s3c2416: double free on driver init error path iommu/amd: Fix incorrect error handling in amd_iommu_bind_pasid() iommu: Handle default domain attach failure iommu/vt-d: Don't over-free page table directories ocfs2: o2hb: revert hb threshold to keep compatible x86/mm: Fix flush_tlb_page() on Xen x86/mpx: Correctly report do_mpx_bt_fault() failures to user-space ARM: 8685/1: ensure memblock-limit is pmd-aligned ARM64/ACPI: Fix BAD_MADT_GICC_ENTRY() macro implementation sched/loadavg: Avoid loadavg spikes caused by delayed NO_HZ accounting watchdog: bcm281xx: Fix use of uninitialized spinlock. xfrm: Oops on error in pfkey_msg2xfrm_state() xfrm: NULL dereference on allocation failure xfrm: fix stack access out of bounds with CONFIG_XFRM_SUB_POLICY jump label: fix passing kbuild_cflags when checking for asm goto support ravb: Fix use-after-free on `ifconfig eth0 down` sctp: check af before verify address in sctp_addr_id2transport net/mlx4_core: Eliminate warning messages for SRQ_LIMIT under SRIOV perf probe: Fix to show correct locations for events on modules be2net: fix status check in be_cmd_pmac_add() s390/ctl_reg: make __ctl_load a full memory barrier swiotlb: ensure that page-sized mappings are page-aligned coredump: Ensure proper size of sparse core files x86/mpx: Use compatible types in comparison to fix sparse error mac80211: initialize SMPS field in HT capabilities spi: davinci: use dma_mapping_error() scsi: lpfc: avoid double free of resource identifiers HID: i2c-hid: Add sleep between POWER ON and RESET kernel/panic.c: add missing \n ibmveth: Add a proper check for the availability of the checksum features vxlan: do not age static remote mac entries virtio_net: fix PAGE_SIZE > 64k vfio/spapr: fail tce_iommu_attach_group() when iommu_data is null drm/amdgpu: check ring being ready before using net: dsa: Check return value of phy_connect_direct() amd-xgbe: Check xgbe_init() return code platform/x86: ideapad-laptop: handle ACPI event 1 scsi: virtio_scsi: Reject commands when virtqueue is broken xen-netfront: Fix Rx stall during network stress and OOM swiotlb-xen: update dev_addr after swapping pages virtio_console: fix a crash in config_work_handler Btrfs: fix truncate down when no_holes feature is enabled gianfar: Do not reuse pages from emergency reserve powerpc/eeh: Enable IO path on permanent error net: bgmac: Remove superflous netif_carrier_on() net: bgmac: Start transmit queue in bgmac_open net: bgmac: Fix SOF bit checking bgmac: Fix reversed test of build_skb() return value. mtd: bcm47xxpart: don't fail because of bit-flips bgmac: fix a missing check for build_skb mtd: bcm47xxpart: limit scanned flash area on BCM47XX (MIPS) only MIPS: ralink: fix MT7628 wled_an pinmux gpio MIPS: ralink: fix MT7628 pinmux typos MIPS: ralink: Fix invalid assignment of SoC type MIPS: ralink: fix USB frequency scaling MIPS: ralink: MT7688 pinmux fixes net: korina: Fix NAPI versus resources freeing MIPS: ath79: fix regression in PCI window initialization net: mvneta: Fix for_each_present_cpu usage ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags qla2xxx: Fix erroneous invalid handle message scsi: lpfc: Set elsiocb contexts to NULL after freeing it scsi: sd: Fix wrong DPOFUA disable in sd_read_cache_type KVM: x86: fix fixing of hypercalls mm: numa: avoid waiting on freed migrated pages block: fix module reference leak on put_disk() call for cgroups throttle sysctl: enable strict writes usb: gadget: f_fs: Fix possibe deadlock drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr ALSA: hda - set input_path bitmap to zero after moving it to new place ALSA: hda - Fix endless loop of codec configure MIPS: Fix IRQ tracing & lockdep when rescheduling MIPS: pm-cps: Drop manual cache-line alignment of ready_count MIPS: Avoid accidental raw backtrace mm, swap_cgroup: reschedule when neeed in swap_cgroup_swapoff() drm/ast: Handle configuration without P2A bridge NFSv4: fix a reference leak caused WARNING messages netfilter: synproxy: fix conntrackd interaction netfilter: xt_TCPMSS: add more sanity tests on tcph->doff rtnetlink: add IFLA_GROUP to ifla_policy ipv6: Do not leak throw route references sfc: provide dummy definitions of vswitch functions net: 8021q: Fix one possible panic caused by BUG_ON in free_netdev decnet: always not take dst->__refcnt when inserting dst into hash table net/mlx5: Wait for FW readiness before initializing command interface ipv6: fix calling in6_ifa_hold incorrectly for dad work igmp: add a missing spin_lock_init() igmp: acquire pmc lock for ip_mc_clear_src() net: caif: Fix a sleep-in-atomic bug in cfpkt_create_pfx Fix an intermittent pr_emerg warning about lo becoming free. af_unix: Add sockaddr length checks before accessing sa_family in bind and connect handlers net: Zero ifla_vf_info in rtnl_fill_vfinfo() decnet: dn_rtmsg: Improve input length sanitization in dnrmg_receive_user_skb net: don't call strlen on non-terminated string in dev_set_alias() ipv6: release dst on error in ip6_dst_lookup_tail UPSTREAM: selinux: enable genfscon labeling for tracefs Change-Id: I05ae1d6271769a99ea3817e5066f5ab6511f3254 Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
| | * | | | | Merge 4.4.76 into android-4.4Greg Kroah-Hartman2017-07-05
| | |\ \ \ \ \ | | | | |_|_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in 4.4.76 ipv6: release dst on error in ip6_dst_lookup_tail net: don't call strlen on non-terminated string in dev_set_alias() decnet: dn_rtmsg: Improve input length sanitization in dnrmg_receive_user_skb net: Zero ifla_vf_info in rtnl_fill_vfinfo() af_unix: Add sockaddr length checks before accessing sa_family in bind and connect handlers Fix an intermittent pr_emerg warning about lo becoming free. net: caif: Fix a sleep-in-atomic bug in cfpkt_create_pfx igmp: acquire pmc lock for ip_mc_clear_src() igmp: add a missing spin_lock_init() ipv6: fix calling in6_ifa_hold incorrectly for dad work net/mlx5: Wait for FW readiness before initializing command interface decnet: always not take dst->__refcnt when inserting dst into hash table net: 8021q: Fix one possible panic caused by BUG_ON in free_netdev sfc: provide dummy definitions of vswitch functions ipv6: Do not leak throw route references rtnetlink: add IFLA_GROUP to ifla_policy netfilter: xt_TCPMSS: add more sanity tests on tcph->doff netfilter: synproxy: fix conntrackd interaction NFSv4: fix a reference leak caused WARNING messages drm/ast: Handle configuration without P2A bridge mm, swap_cgroup: reschedule when neeed in swap_cgroup_swapoff() MIPS: Avoid accidental raw backtrace MIPS: pm-cps: Drop manual cache-line alignment of ready_count MIPS: Fix IRQ tracing & lockdep when rescheduling ALSA: hda - Fix endless loop of codec configure ALSA: hda - set input_path bitmap to zero after moving it to new place drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr usb: gadget: f_fs: Fix possibe deadlock sysctl: enable strict writes block: fix module reference leak on put_disk() call for cgroups throttle mm: numa: avoid waiting on freed migrated pages KVM: x86: fix fixing of hypercalls scsi: sd: Fix wrong DPOFUA disable in sd_read_cache_type scsi: lpfc: Set elsiocb contexts to NULL after freeing it qla2xxx: Fix erroneous invalid handle message ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags net: mvneta: Fix for_each_present_cpu usage MIPS: ath79: fix regression in PCI window initialization net: korina: Fix NAPI versus resources freeing MIPS: ralink: MT7688 pinmux fixes MIPS: ralink: fix USB frequency scaling MIPS: ralink: Fix invalid assignment of SoC type MIPS: ralink: fix MT7628 pinmux typos MIPS: ralink: fix MT7628 wled_an pinmux gpio mtd: bcm47xxpart: limit scanned flash area on BCM47XX (MIPS) only bgmac: fix a missing check for build_skb mtd: bcm47xxpart: don't fail because of bit-flips bgmac: Fix reversed test of build_skb() return value. net: bgmac: Fix SOF bit checking net: bgmac: Start transmit queue in bgmac_open net: bgmac: Remove superflous netif_carrier_on() powerpc/eeh: Enable IO path on permanent error gianfar: Do not reuse pages from emergency reserve Btrfs: fix truncate down when no_holes feature is enabled virtio_console: fix a crash in config_work_handler swiotlb-xen: update dev_addr after swapping pages xen-netfront: Fix Rx stall during network stress and OOM scsi: virtio_scsi: Reject commands when virtqueue is broken platform/x86: ideapad-laptop: handle ACPI event 1 amd-xgbe: Check xgbe_init() return code net: dsa: Check return value of phy_connect_direct() drm/amdgpu: check ring being ready before using vfio/spapr: fail tce_iommu_attach_group() when iommu_data is null virtio_net: fix PAGE_SIZE > 64k vxlan: do not age static remote mac entries ibmveth: Add a proper check for the availability of the checksum features kernel/panic.c: add missing \n HID: i2c-hid: Add sleep between POWER ON and RESET scsi: lpfc: avoid double free of resource identifiers spi: davinci: use dma_mapping_error() mac80211: initialize SMPS field in HT capabilities x86/mpx: Use compatible types in comparison to fix sparse error coredump: Ensure proper size of sparse core files swiotlb: ensure that page-sized mappings are page-aligned s390/ctl_reg: make __ctl_load a full memory barrier be2net: fix status check in be_cmd_pmac_add() perf probe: Fix to show correct locations for events on modules net/mlx4_core: Eliminate warning messages for SRQ_LIMIT under SRIOV sctp: check af before verify address in sctp_addr_id2transport ravb: Fix use-after-free on `ifconfig eth0 down` jump label: fix passing kbuild_cflags when checking for asm goto support xfrm: fix stack access out of bounds with CONFIG_XFRM_SUB_POLICY xfrm: NULL dereference on allocation failure xfrm: Oops on error in pfkey_msg2xfrm_state() watchdog: bcm281xx: Fix use of uninitialized spinlock. sched/loadavg: Avoid loadavg spikes caused by delayed NO_HZ accounting ARM64/ACPI: Fix BAD_MADT_GICC_ENTRY() macro implementation ARM: 8685/1: ensure memblock-limit is pmd-aligned x86/mpx: Correctly report do_mpx_bt_fault() failures to user-space x86/mm: Fix flush_tlb_page() on Xen ocfs2: o2hb: revert hb threshold to keep compatible iommu/vt-d: Don't over-free page table directories iommu: Handle default domain attach failure iommu/amd: Fix incorrect error handling in amd_iommu_bind_pasid() cpufreq: s3c2416: double free on driver init error path KVM: x86: fix emulation of RSM and IRET instructions KVM: x86/vPMU: fix undefined shift in intel_pmu_refresh() KVM: x86: zero base3 of unusable segments KVM: nVMX: Fix exception injection Linux 4.4.76 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
| | | * | | | platform/x86: ideapad-laptop: handle ACPI event 1Zach Ploskey2017-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit cfee5d63767b2e7997c1f36420d008abbe61565c ] On Ideapad laptops, ACPI event 1 is currently not handled. Many models log "ideapad_laptop: Unknown event: 1" every 20 seconds or so while running on battery power. Some convertible laptops receive this event when switching in and out of tablet mode. This adds and additional case for event 1 in ideapad_acpi_notify to call ideapad_input_report(priv, vpc_bit), so that the event is reported to userspace and we avoid unnecessary logging. Fixes bug #107481 (https://bugzilla.kernel.org/show_bug.cgi?id=107481) Fixes bug #65751 (https://bugzilla.kernel.org/show_bug.cgi?id=65751) Signed-off-by: Zach Ploskey <zach@ploskey.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>