summaryrefslogtreecommitdiff
path: root/drivers/platform (follow)
Commit message (Collapse)AuthorAge
...
* | | mhi: core: Enable MHI for 64bit. Necessary ChangesAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | Change-Id: I9ac7df3a6ecffaf78e23232ead005fba9eadc9c1 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Remove assertion on RPM failureAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove assertion on runtime pm resume return code. A failure to resume may imply an ongoing change in overall system state rather than a device failure. Change-Id: Ic7aecc200e2d13f0771fd683e0070b0c2f9da467 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Enable MHI verbose logging in IPC logsAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Enable MHI IPC verbose logs to facilitate debugging. This will not pollute the kernel main log. Change-Id: I8178227c7377284ce8e7dc4c3825a3cce6f5e3df Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Fix bug in MHI WAKE transitionAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MHI WAKE transition must use runtime PM to transition the device to operational state. Previously MHI would enable the device transparent to runtime PM, eventually locking up the entire state machine. CRs-Fixed: 825891 Change-Id: I264533fe46a42394634e22d737324288ba387bf3 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Ignore ESOC notifications for SHUTDOWNAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | MHI clients should not be notified of ESOC shutdown notifications, since MDM communication is still necessary after such a notification is received. Change-Id: I4075b56e1f8666dea63949db7a62bd1698dc9df8 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: uci: Remove incorrect logging from UCIAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | Remove incorrect logging during the MHI_DISABLED notifier. Change-Id: I35b31ff448be03cd76a848e25391a825d79cabe9 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Parse ring information from DTAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parse MHI ring information from DT instead of statically allocating data structure. This is necessary as different platforms support different configurations. Change-Id: I59cd660459d627f93479a11257653611070fd3a4 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Clean-up MHI context data structureAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Remove unused MHI data structure and reorganize the main MHI context data structure for easier debugging. Change-Id: I2658bef7fcda95181bf8d80f58991277cf854449 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Enable MHI reset operationAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Enable MHI reset for dynamic recovery of MHI transport errors. CRs-Fixed: 797757 Change-Id: I522503ab12d90d5391884772952960201f3585fb Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Flush CPU write buffer before DMA opAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | CPU write buffer must be flushed before a DMA operation is signaled to the device. CRs-Fixed: 812602 Change-Id: I304671fd1a403d6d897b47641910bc112310b674 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Enable M2 exit through CLKREQ assertionAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Enable M2 power state transition exit through CLKREQ GPIO assertion due to MHI doorbell write. CRs-Fixed: 733370 Change-Id: I27b425ee305fc9c044812a8b15c76970987a5dae Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Enabled full NER supportAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Enable NER support for MHI core. MHI core now enables only event rings required for used channels. This saves a substantial amount of system memory. Change-Id: I3b9d63875cf117fba2ac062f831da1899b355e2c Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Enable log level sysfs for MHI UCIAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Enable log level sysfs attribute for MHI UCI to enable different verbosity levels at runtime to the IPC log. CRs-Fixed: 734010 Change-Id: I866b5bebb08257ac120de565a7b2a83b8e831a1a Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Cleanup unused commands from MHIAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove dead code from the MHI driver. Currently there is no usecase for the MHI STOP and NOP commands and this codepath is not being touched. Change-Id: I6cd96e28b9f46aca8014bbe4d2f2aa701f40b08b Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: uci: Enable enlarged buffers for SAHARAAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Enable large buffer sizes for SAHARA to reduce number of data transfers by a factor of 12. CRs-Fixed: 800039 Change-Id: Ica59ae4e3eae3b7c64222d36a8bc5033928ae631 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Flush pending writes on D3hot and M2Andrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flush pending PCIe writes after setting D3 hot and after setting M2. This will ensure that no writes will bring the link down as it is being turned off. CRs-Fixed: 755658 Change-Id: If2ca4575f833ede77d6a14e1e2bf5a86d1c28218 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Enable common queue TRE functionAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Enable queue TRE function for treating both command and transfer TREs in the same codepath. This simplifies the flow of processing TREs and facilitates debugging. Change-Id: I8dc1dec4e0e23b7b36982cc0ace957a1b43aa6da Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: uci: Propagate transport readiness to UCIAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently on UCI open, if the transport is not ready, the open is succeeded in hopes that the transport becomes ready in the future. Increase transparency between UCI clients and MHI such that when the transport is not ready the UCI client is notified and can react accordingly. Change-Id: Iacc85e9aa68be9cde152a3fc2bfe9d0c6f6f6b62 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Assert on incorrect device eventsAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Assert when an event is received for a channel which is empty. This is a fatal transport error. Change-Id: I0249f97480ebc3ca8d3e98c10e35a0eb040215a4 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | Revert "msm: mhi: Stale doorebell in MHI Host"Andrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e38c1ec36984945d60d02002eae5e615d1b9b6aa. This commit can generate a link down in M2 state where the doorbell is flushed while the link is down. Change-Id: If29db648f0c6d2b0bd7a3d3a9b0f31ae5512c4eb Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Enable runtime PMAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Enable runtime PM in the MHI driver to increase transparency between kernel and device driver and synchronize runtime PM actions with system wide power states. Change-Id: I8b87c2ed7b0be8a4cf9568ac1fb772eebe416dc6 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Ring out pending doorbellsAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Ring out pending doorbells in the event of a cancelled M3 transition attempt. Change-Id: I83ffe0407618ea26768707fc6341d20947ef3ba2 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Resolve static analysis issuesAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | Address static analysis issues. Change-Id: I21e1d05cab2e8899c105ae2bc81d85ec62ec7df7 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Enable client notification of overflowAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | Enable client notification of MHI overflow events. Change-Id: I83a1c91b13b6c52501d4e639803f7638cf7cb3c1 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Reduce interrupt moderation to 1msAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce interrupt moderation for both inbound and outbound hardware channels to 1ms, for improved latency response to device acknowledgements. CRs-Fixed: 782801 Change-Id: Id0717582d88dcfc12a8711f983da59a8f651b6d3 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Enable NER supportAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Enable support for NER as part of the MHI REV E specification. NER register will now be set to the maximum number of channels supported by MHI. Change-Id: Id868c04886af13cd34720c86a55ac64debc4ab31 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Fix double increment on event counterAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Prevent event counter from getting incremented twice and breaking the modulo operation. Change-Id: I472115a3d65a84904482455d00cee9de6d31043b Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Enable additional MHI loggingAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Enable additional MHI logs for monitoring SSR flow. CRs-Fixed: 773805 Change-Id: I579c083ad9ec0238ab3a6d51fec25b4ce5ccf62a Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Remove useless atomic variablesAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Remove unused atomic variables in MHI. CRs-Fixed: 734059 Change-Id: I052a9662c52ef88df0a5b8bcf37be1187a6b942e Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: uci: Fix race conditon in mhi_poll_inboundAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | A race condition exists in MHI_UCI whereby a client could receive a buffer, inconsistent with the return code from MHI. Change-Id: I4a932ea608ce967c1588f092c60d03747bad2064 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | mhi: core: Enable ftrace events in MHIAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Enable ftrace events in MHI for the tracing of power state transitions. Change-Id: I74373b7429c6d7316c4a66db141cc09e2a4418dd Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Fix incorrect init of TRE iteratorAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pending TRE iterator is not properly initialized and checked against, leading to an incorrect number of TREs getting processed. CRs-Fixed: 748475 Change-Id: Ie8609edd1a89d8dc14bf781612357d7dc524f83a Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Reorder operations on MHI TREAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reorder operations on MHI TRE to prevent a race condition of publishing the TRE to the device before the TRE is fully populated. CRs-Fixed: 726655 Change-Id: Ide208c77c93f0e68eee0c6c304eaebc451028341 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Ensure db value is sampled in spinlockAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | The doorbell value for the event ring must be sampled within spinlock context or the value could be stale when written. CRs-Fixed: 746401 Change-Id: I4eb5095f34b890e02fee48c22206afcbfd70a454 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Stale doorebell in MHI HostAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A timing window exists where M3 state transition is pending and the doorbell does not get written out. The M3 process is then cancelled, and no M0 event takes place to flush the doorbell out. Remove setting the pending M3 flag until the transition is no longer cancelable. CRs-Fixed: 733632 Change-Id: I3b4dfe23d0ea4af69d2810a171c61dc60a6c2f8d Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Enabled event ring context updatesAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Enabled event ring context updates regardless of MHI power state. Change-Id: I910d056d53f7c940caea48546c206d4603e8a4b9 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Enable clearing outstanding acks in MHIAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After a channel reset, any pending acks on that channel will not be received from the device. In this case they must be cleared in the channel reset command handling. CRs-Fixed: 733172 Change-Id: I5b7c525f7f532ed107caa020cde33ec1955ae618 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Reset the pending packets counter in UCIAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Reset the pending packets counter in UCI when a client releases the character device node. Signed-off-by: Andrei Danaila <adanaila@codeaurora.org> Change-Id: Ic3d83873ae207e76acbb9f60683b43cb30ff7c5b
* | | msm: mhi: Fix issues regarding BHI img loadAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve issue regarding BHI image load process. Interface will no longer be published to userspace before local initialization is complete. Register masks and retry mechanism are also cleaned up. Change-Id: I05d87d4be5e9c05c6beb2b7b0c0234757b93097d Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Enable MHI support for msmzircAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the msmzirc device in the list of supported PCI devices by the MHI driver to enable to PCIe framework to probe MHI in the event of discovering this device on the bus. CRs-Fixed: 736039 Change-Id: I66eb5f67885d60c579c33c47ce696d66c6c428b5 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Remove incorrect iomem operationsAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the incorrect direct de-reference of device mapped IO mememory and replace with kernel standard handlers. CRs-Fixed: 728285 Change-Id: I0b3afe8a62369057b4a6b45b1a71bd9f5a52ce1d Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: Add MHI core driverAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable the MHI core driver for communication between host and device using PCIe as an interconnect and supporting MHI as the communication protocol. The driver exposes several kernel space APIs for use by other kernel entities to interface to the PCIe device over MHI. APIs for read and write and other notifications are supported by this MHI driver. Support for full power management and device reset is also included. CRs-Fixed: 689329 Change-Id: Ibc2fd7c2d5689001485f71b1133ada2c4ca236a9 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | msm: mhi: MHI Usperspace Control Interface driverAndrei Danaila2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MHI UCI driver exposes MHI core functionality to userspace by means of device nodes. The UCI driver exposes a device node for a pair of unidirectional MHI channels. The supported system calls on the device nodes are read, write, select/poll and RS232 IOCTLs. CRs-Fixed: 689329 Change-Id: Iceab97dba7c3bbb4eb7bf0c4ab0c1eac8c5417e9 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
* | | Merge remote-tracking branch 'lsk-44/linux-linaro-lsk-v4.4' into 44rc2David Keitel2016-03-23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lsk-44/linux-linaro-lsk-v4.4: Linux 4.4.3 modules: fix modparam async_probe request module: wrapper for symbol name. itimers: Handle relative timers with CONFIG_TIME_LOW_RES proper posix-timers: Handle relative timers with CONFIG_TIME_LOW_RES proper timerfd: Handle relative timers with CONFIG_TIME_LOW_RES proper prctl: take mmap sem for writing to protect against others xfs: log mount failures don't wait for buffers to be released Revert "xfs: clear PF_NOFREEZE for xfsaild kthread" xfs: inode recovery readahead can race with inode buffer creation libxfs: pack the agfl header structure so XFS_AGFL_SIZE is correct ovl: setattr: check permissions before copy-up ovl: root: copy attr ovl: check dentry positiveness in ovl_cleanup_whiteouts() ovl: use a minimal buffer in ovl_copy_xattr ovl: allow zero size xattr futex: Drop refcount if requeue_pi() acquired the rtmutex devm_memremap_release(): fix memremap'd addr handling ipc/shm: handle removed segments gracefully in shm_mmap() intel_scu_ipcutil: underflow in scu_reg_access() mm,thp: khugepaged: call pte flush at the time of collapse dump_stack: avoid potential deadlocks radix-tree: fix oops after radix_tree_iter_retry drivers/hwspinlock: fix race between radix tree insertion and lookup radix-tree: fix race in gang lookup MAINTAINERS: return arch/sh to maintained state, with new maintainers memcg: only free spare array when readers are done numa: fix /proc/<pid>/numa_maps for hugetlbfs on s390 fs/hugetlbfs/inode.c: fix bugs in hugetlb_vmtruncate_list() scripts/bloat-o-meter: fix python3 syntax error dma-debug: switch check from _text to _stext m32r: fix m32104ut_defconfig build fail xhci: Fix list corruption in urb dequeue at host removal Revert "xhci: don't finish a TD if we get a short-transfer event mid TD" iommu/vt-d: Clear PPR bit to ensure we get more page request interrupts iommu/vt-d: Fix 64-bit accesses to 32-bit DMAR_GSTS_REG iommu/vt-d: Fix mm refcounting to hold mm_count not mm_users iommu/amd: Correct the wrong setting of alias DTE in do_attach iommu/vt-d: Don't skip PCI devices when disabling IOTLB Input: vmmouse - fix absolute device registration string_helpers: fix precision loss for some inputs Input: i8042 - add Fujitsu Lifebook U745 to the nomux list Input: elantech - mark protocols v2 and v3 as semi-mt mm: fix regression in remap_file_pages() emulation mm: replace vma_lock_anon_vma with anon_vma_lock_read/write mm: fix mlock accouting libnvdimm: fix namespace object confusion in is_uuid_busy() mm: soft-offline: check return value in second __get_any_page() call perf kvm record/report: 'unprocessable sample' error while recording/reporting guest data KVM: PPC: Fix ONE_REG AltiVec support KVM: PPC: Fix emulation of H_SET_DABR/X on POWER8 KVM: arm/arm64: Fix reference to uninitialised VGIC arm64: dma-mapping: fix handling of devices registered before arch_initcall ARM: OMAP2+: Fix ppa_zero_params and ppa_por_params for rodata ARM: OMAP2+: Fix save_secure_ram_context for rodata ARM: OMAP2+: Fix l2dis_3630 for rodata ARM: OMAP2+: Fix l2_inv_api_params for rodata ARM: OMAP2+: Fix wait_dll_lock_timed for rodata ARM: dts: at91: sama5d4ek: add phy address and IRQ for macb0 ARM: dts: at91: sama5d4 xplained: fix phy0 IRQ type ARM: dts: at91: sama5d4: fix instance id of DBGU ARM: dts: at91: sama5d4 xplained: properly mux phy interrupt ARM: dts: omap5-board-common: enable rtc and charging of backup battery ARM: dts: Fix omap5 PMIC control lines for RTC writes ARM: dts: Fix wl12xx missing clocks that cause hangs ARM: nomadik: fix up SD/MMC DT settings ARM: 8517/1: ICST: avoid arithmetic overflow in icst_hz() ARM: 8519/1: ICST: try other dividends than 1 arm64: mm: avoid calling apply_to_page_range on empty range ARM: mvebu: remove duplicated regulator definition in Armada 388 GP powerpc/ioda: Set "read" permission when "write" is set powerpc/powernv: Fix stale PE primary bus powerpc/eeh: Fix stale cached primary bus powerpc/eeh: Fix PE location code SUNRPC: Fixup socket wait for memory udf: Check output buffer length when converting name to CS0 udf: Prevent buffer overrun with multi-byte characters udf: limit the maximum number of indirect extents in a row pNFS/flexfiles: Fix an XDR encoding bug in layoutreturn nfs: Fix race in __update_open_stateid() pNFS/flexfiles: Fix an Oopsable typo in ff_mirror_match_fh() NFS: Fix attribute cache revalidation cifs: fix erroneous return value cifs_dbg() outputs an uninitialized buffer in cifs_readdir() cifs: fix race between call_async() and reconnect() cifs: Ratelimit kernel log messages iio: inkern: fix a NULL dereference on error iio: pressure: mpl115: fix temperature offset sign iio: light: acpi-als: Report data as processed iio: dac: mcp4725: set iio name property in sysfs iio: add IIO_TRIGGER dependency to STK8BA50 iio: add HAS_IOMEM dependency to VF610_ADC iio-light: Use a signed return type for ltr501_match_samp_freq() iio:adc:ti_am335x_adc Fix buffered mode by identifying as software buffer. iio: adis_buffer: Fix out-of-bounds memory access scsi: fix soft lockup in scsi_remove_target() on module removal SCSI: Add Marvell Console to VPD blacklist scsi_dh_rdac: always retry MODE SELECT on command lock violation drivers/scsi/sg.c: mark VMA as VM_IO to prevent migration SCSI: fix crashes in sd and sr runtime PM iscsi-target: Fix potential dead-lock during node acl delete scsi: add Synology to 1024 sector blacklist klist: fix starting point removed bug in klist iterators tracepoints: Do not trace when cpu is offline tracing: Fix freak link error caused by branch tracer perf tools: tracepoint_error() can receive e=NULL, robustify it tools lib traceevent: Fix output of %llu for 64 bit values read on 32 bit machines ptrace: use fsuid, fsgid, effective creds for fs access checks Btrfs: fix direct IO requests not reporting IO error to user space Btrfs: fix hang on extent buffer lock caused by the inode_paths ioctl Btrfs: fix page reading in extent_same ioctl leading to csum errors Btrfs: fix invalid page accesses in extent_same (dedup) ioctl btrfs: properly set the termination value of ctx->pos in readdir Revert "btrfs: clear PF_NOFREEZE in cleaner_kthread()" Btrfs: fix fitrim discarding device area reserved for boot loader's use btrfs: handle invalid num_stripes in sys_array ext4: don't read blocks from disk after extents being swapped ext4: fix potential integer overflow ext4: fix scheduling in atomic on group checksum failure serial: omap: Prevent DoS using unprivileged ioctl(TIOCSRS485) serial: 8250_pci: Add Intel Broadwell ports tty: Add support for PCIe WCH382 2S multi-IO card pty: make sure super_block is still valid in final /dev/tty close pty: fix possible use after free of tty->driver_data staging/speakup: Use tty_ldisc_ref() for paste kworker phy: twl4030-usb: Fix unbalanced pm_runtime_enable on module reload phy: twl4030-usb: Relase usb phy on unload ALSA: seq: Fix double port list deletion ALSA: seq: Fix leak of pool buffer at concurrent writes ALSA: pcm: Fix rwsem deadlock for non-atomic PCM stream ALSA: hda - Cancel probe work instead of flush at remove x86/mm: Fix vmalloc_fault() to handle large pages properly x86/uaccess/64: Handle the caching of 4-byte nocache copies properly in __copy_user_nocache() x86/uaccess/64: Make the __copy_user_nocache() assembly code more readable x86/mm/pat: Avoid truncation when converting cpa->numpages to address x86/mm: Fix types used in pgprot cacheability flags translations Linux 4.4.2 HID: multitouch: fix input mode switching on some Elan panels mm, vmstat: fix wrong WQ sleep when memory reclaim doesn't make any progress zsmalloc: fix migrate_zspage-zs_free race condition zram: don't call idr_remove() from zram_remove() zram: try vmalloc() after kmalloc() zram/zcomp: use GFP_NOIO to allocate streams rtlwifi: rtl8821ae: Fix 5G failure when EEPROM is incorrectly encoded rtlwifi: rtl8821ae: Fix errors in parameter initialization crypto: marvell/cesa - fix test in mv_cesa_dev_dma_init() crypto: atmel-sha - remove calls of clk_prepare() from atomic contexts crypto: atmel-sha - fix atmel_sha_remove() crypto: algif_skcipher - Do not set MAY_BACKLOG on the async path crypto: algif_skcipher - Do not dereference ctx without socket lock crypto: algif_skcipher - Do not assume that req is unchanged crypto: user - lock crypto_alg_list on alg dump EVM: Use crypto_memneq() for digest comparisons crypto: algif_hash - wait for crypto_ahash_init() to complete crypto: shash - Fix has_key setting crypto: chacha20-ssse3 - Align stack pointer to 64 bytes crypto: caam - make write transactions bufferable on PPC platforms crypto: algif_skcipher - sendmsg SG marking is off by one crypto: algif_skcipher - Load TX SG list after waiting crypto: crc32c - Fix crc32c soft dependency crypto: algif_skcipher - Fix race condition in skcipher_check_key crypto: algif_hash - Fix race condition in hash_check_key crypto: af_alg - Forbid bind(2) when nokey child sockets are present crypto: algif_skcipher - Remove custom release parent function crypto: algif_hash - Remove custom release parent function crypto: af_alg - Allow af_af_alg_release_parent to be called on nokey path ahci: Intel DNV device IDs SATA libata: disable forced PORTS_IMPL for >= AHCI 1.3 crypto: algif_skcipher - Add key check exception for cipher_null crypto: skcipher - Add crypto_skcipher_has_setkey crypto: algif_hash - Require setkey before accept(2) crypto: hash - Add crypto_ahash_has_setkey crypto: algif_skcipher - Add nokey compatibility path crypto: af_alg - Add nokey compatibility path crypto: af_alg - Fix socket double-free when accept fails crypto: af_alg - Disallow bind/setkey/... after accept(2) crypto: algif_skcipher - Require setkey before accept(2) sched: Fix crash in sched_init_numa() ext4 crypto: add missing locking for keyring_key access iommu/io-pgtable-arm: Ensure we free the final level on teardown tty: Fix unsafe ldisc reference via ioctl(TIOCGETD) tty: Retry failed reopen if tty teardown in-progress tty: Wait interruptibly for tty lock on reopen n_tty: Fix unsafe reference to "other" ldisc usb: xhci: apply XHCI_PME_STUCK_QUIRK to Intel Broxton-M platforms usb: xhci: handle both SSIC ports in PME stuck quirk usb: phy: msm: fix error handling in probe. usb: cdc-acm: send zero packet for intel 7260 modem usb: cdc-acm: handle unlinked urb in acm read callback USB: option: fix Cinterion AHxx enumeration USB: serial: option: Adding support for Telit LE922 USB: cp210x: add ID for IAI USB to RS485 adaptor USB: serial: ftdi_sio: add support for Yaesu SCU-18 cable usb: hub: do not clear BOS field during reset device USB: visor: fix null-deref at probe USB: serial: visor: fix crash on detecting device without write_urbs ASoC: rt5645: fix the shift bit of IN1 boost saa7134-alsa: Only frees registered sound cards ALSA: dummy: Implement timer backend switching more safely ALSA: hda - Fix bad dereference of jack object ALSA: hda - Fix speaker output from VAIO AiO machines Revert "ALSA: hda - Fix noise on Gigabyte Z170X mobo" ALSA: hda - Fix static checker warning in patch_hdmi.c ALSA: hda - Add fixup for Mac Mini 7,1 model ALSA: timer: Fix race between stop and interrupt ALSA: timer: Fix wrong instance passed to slave callbacks ALSA: timer: Fix race at concurrent reads ALSA: timer: Fix link corruption due to double start or stop ALSA: timer: Fix leftover link at closing ALSA: timer: Code cleanup ALSA: seq: Fix lockdep warnings due to double mutex locks ALSA: seq: Fix race at closing in virmidi driver ALSA: seq: Fix yet another races among ALSA timer accesses ASoC: dpcm: fix the BE state on hw_free ALSA: pcm: Fix potential deadlock in OSS emulation ALSA: hda/realtek - Support Dell headset mode for ALC225 ALSA: hda/realtek - Support headset mode for ALC225 ALSA: hda/realtek - New codec support of ALC225 ALSA: rawmidi: Fix race at copying & updating the position ALSA: rawmidi: Remove kernel WARNING for NULL user-space buffer check ALSA: rawmidi: Make snd_rawmidi_transmit() race-free ALSA: seq: Degrade the error message for too many opens ALSA: seq: Fix incorrect sanity check at snd_seq_oss_synth_cleanup() ALSA: dummy: Disable switching timer backend via sysfs ALSA: compress: Disable GET_CODEC_CAPS ioctl for some architectures ALSA: hda - disable dynamic clock gating on Broxton before reset ALSA: Add missing dependency on CONFIG_SND_TIMER ALSA: bebob: Use a signed return type for get_formation_index ALSA: usb-audio: avoid freeing umidi object twice ALSA: usb-audio: Add native DSD support for PS Audio NuWave DAC ALSA: usb-audio: Fix OPPO HA-1 vendor ID ALSA: usb-audio: Add quirk for Microsoft LifeCam HD-6000 ALSA: usb-audio: Fix TEAC UD-501/UD-503/NT-503 usb delay hrtimer: Handle remaining time proper for TIME_LOW_RES md/raid: only permit hot-add of compatible integrity profiles media: i2c: Don't export ir-kbd-i2c module alias parisc: Fix __ARCH_SI_PREAMBLE_SIZE parisc: Protect huge page pte changes with spinlocks printk: do cond_resched() between lines while outputting to consoles tracing/stacktrace: Show entire trace if passed in function not found tracing: Fix stacktrace skip depth in trace_buffer_unlock_commit_regs() PCI: Fix minimum allocation address overwrite PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD mtd: nand: assign reasonable default name for NAND drivers wlcore/wl12xx: spi: fix NULL pointer dereference (Oops) wlcore/wl12xx: spi: fix oops on firmware load ocfs2/dlm: clear refmap bit of recovery lock while doing local recovery cleanup ocfs2/dlm: ignore cleaning the migration mle that is inuse ALSA: hda - Implement loopback control switch for Realtek and other codecs block: fix bio splitting on max sectors base/platform: Fix platform drivers with no probe callback HID: usbhid: fix recursive deadlock ocfs2: NFS hangs in __ocfs2_cluster_lock due to race with ocfs2_unblock_lock block: split bios to max possible length NFSv4.1/pnfs: Fixup an lo->plh_block_lgets imbalance in layoutreturn crypto: sun4i-ss - add missing statesize Linux 4.4.1 arm64: kernel: fix architected PMU registers unconditional access arm64: kernel: enforce pmuserenr_el0 initialization and restore arm64: mm: ensure that the zero page is visible to the page table walker arm64: Clear out any singlestep state on a ptrace detach operation powerpc/module: Handle R_PPC64_ENTRY relocations scripts/recordmcount.pl: support data in text section on powerpc powerpc: Make {cmp}xchg* and their atomic_ versions fully ordered powerpc: Make value-returning atomics fully ordered powerpc/tm: Check for already reclaimed tasks batman-adv: Drop immediate orig_node free function batman-adv: Drop immediate batadv_hard_iface free function batman-adv: Drop immediate neigh_ifinfo free function batman-adv: Drop immediate batadv_neigh_node free function batman-adv: Drop immediate batadv_orig_ifinfo free function batman-adv: Avoid recursive call_rcu for batadv_nc_node batman-adv: Avoid recursive call_rcu for batadv_bla_claim team: Replace rcu_read_lock with a mutex in team_vlan_rx_kill_vid net/mlx5_core: Fix trimming down IRQ number bridge: fix lockdep addr_list_lock false positive splat ipv6: update skb->csum when CE mark is propagated net: bpf: reject invalid shifts phonet: properly unshare skbs in phonet_rcv() dwc_eth_qos: Fix dma address for multi-fragment skbs bonding: Prevent IPv6 link local address on enslaved devices net: preserve IP control block during GSO segmentation udp: disallow UFO for sockets with SO_NO_CHECK option net: pktgen: fix null ptr deref in skb allocation sched,cls_flower: set key address type when present tcp_yeah: don't set ssthresh below 2 ipv6: tcp: add rcu locking in tcp_v6_send_synack() net: sctp: prevent writes to cookie_hmac_alg from accessing invalid memory vxlan: fix test which detect duplicate vxlan iface unix: properly account for FDs passed over unix sockets xhci: refuse loading if nousb is used usb: core: lpm: fix usb3_hardware_lpm sysfs node USB: cp210x: add ID for ELV Marble Sound Board 1 rtlwifi: fix memory leak for USB device ASoC: compress: Fix compress device direction check ASoC: wm5110: Fix PGA clear when disabling DRE ALSA: timer: Handle disconnection more safely ALSA: hda - Flush the pending probe work at remove ALSA: hda - Fix missing module loading with model=generic option ALSA: hda - Fix bass pin fixup for ASUS N550JX ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0 ALSA: hrtimer: Fix stall by hrtimer_cancel() ALSA: pcm: Fix snd_pcm_hw_params struct copy in compat mode ALSA: seq: Fix snd_seq_call_port_info_ioctl in compat mode ALSA: hda - Add fixup for Dell Latitidue E6540 ALSA: timer: Fix double unlink of active_list ALSA: timer: Fix race among timer ioctls ALSA: hda - fix the headset mic detection problem for a Dell laptop ALSA: timer: Harden slave timer list handling ALSA: usb-audio: Fix mixer ctl regression of Native Instrument devices ALSA: hda - Fix white noise on Dell Latitude E5550 ALSA: seq: Fix race at timer setup and close ALSA: usb-audio: Avoid calling usb_autopm_put_interface() at disconnect ALSA: seq: Fix missing NULL check at remove_events ioctl ALSA: hda - Fixup inverted internal mic for Lenovo E50-80 ALSA: usb: Add native DSD support for Oppo HA-1 x86/mm: Improve switch_mm() barrier comments x86/mm: Add barriers and document switch_mm()-vs-flush synchronization x86/boot: Double BOOT_HEAP_SIZE to 64KB x86/reboot/quirks: Add iMac10,1 to pci_reboot_dmi_table[] kvm: x86: Fix vmwrite to SECONDARY_VM_EXEC_CONTROL KVM: x86: correctly print #AC in traces KVM: x86: expose MSR_TSC_AUX to userspace x86/xen: don't reset vcpu_info on a cancelled suspend KEYS: Fix keyring ref leak in join_session_keyring() Conflicts: arch/arm64/kernel/perf_event.c drivers/scsi/sd.c sound/core/compress_offload.c Change-Id: I9f77fe42aaae249c24cd6e170202110ab1426878 Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
| * | intel_scu_ipcutil: underflow in scu_reg_access()Dan Carpenter2016-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit b1d353ad3d5835b16724653b33c05124e1b5acf1 upstream. "count" is controlled by the user and it can be negative. Let's prevent that by making it unsigned. You have to have CAP_SYS_RAWIO to call this function so the bug is not as serious as it could be. Fixes: 5369c02d951a ('intel_scu_ipc: Utility driver for intel scu ipc') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | msm: ipa3: support IPA driverSkylar Chang2016-03-23
| | | | | | | | | | | | Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | qmp: Add support for QSSP EnhancementsMona Hossain2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update seemp_api header file update seemp_parm_id header file update seemp_core to log data with blk header set to 64B remove logging from fs proc base and net socket modules Change-Id: I583e3129d62651b155b0372e173564d5a17e3153 Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
* | | seemp: add more seemp parametersWilliam Clark2016-03-23
| | | | | | | | | | | | | | | | | | | | | Add more seep parameters for frameworks refactoring. Change-Id: I9807ef0dc6d5a54c82dea64cec68be3fd0ff7396 Signed-off-by: William Clark <wclark@codeaurora.org>
* | | seemp: prevent assertWilliam Clark2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | The change fixes event parameter encoding for seemp. It will prevent an assert in seemp functioning Change-Id: Ib3681d526a1dfb45cd5de5a40ee8cf07e02296dd Signed-off-by: William Clark <wclark@codeaurora.org>
* | | seemp: enhance support for malware detectionWilliam Clark2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improves the ability of a malware protection program to detect anomalies in various activities. It records task activities in a log and rates the actions according to how a typical user would use the tools. Change-Id: I976bc97f57215f173b046326b5f905522d785288 Signed-off-by: Mona Hossain <mhossain@codeaurora.org> Signed-off-by: William Clark <wclark@codeaurora.org>