{"push_id":753463232,"size":16,"distinct_size":16,"ref":"refs/heads/master","head":"2b9bea035a488774b176f14f53160442e8906ad8","before":"f7644cbfcdf03528f0f450f3940c4985b2291f49","commits":[{"sha":"111509294b9efafe0353423c8180e03db810bdb5","author":{"email":"8e4aa0015eb43ed5ca66aaca3fb498609e1e427c@opensource.wolfsonmicro.com","name":"Charles Keepax"},"message":"mfd: arizona: Fix race between runtime suspend and IRQs\n\nThe function arizona_irq_thread (the threaded handler for the arizona\nIRQs) calls pm_runtime_get_sync at the start to ensure that the chip is\nactive as we handle the IRQ. If the chip is part way through a runtime\nsuspend when an IRQ arrives the PM core will wait for the suspend to\ncomplete, before resuming. However, since commit 4f0216409f7c\n(\"mfd: arizona: Add better support for system suspend\") the runtime\nsuspend function may call disable_irq, if the chip is going to fully\npower off, which will try to wait for any outstanding IRQs to complete.\nThis results in deadlock as the IRQ thread is waiting for the PM\noperation to complete and the PM thread is waiting for the IRQ to\ncomplete.\n\nTo avoid this situation we use disable_irq_nosync, which allows the\nsuspending thread to finish the suspend without waiting for the IRQ to\ncomplete. This is safe because if an IRQ is being processed it can only\nbe blocked at the pm_runtime_get_sync at the start of the handler\notherwise it wouldn't be possible to suspend.\n\nSigned-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>\nSigned-off-by: Lee Jones <lee.jones@linaro.org>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/111509294b9efafe0353423c8180e03db810bdb5"},{"sha":"72e43164fd472f6c2659c8313b87da962322dbcf","author":{"email":"8e4aa0015eb43ed5ca66aaca3fb498609e1e427c@opensource.wolfsonmicro.com","name":"Charles Keepax"},"message":"mfd: arizona: Fix initialisation of the PM runtime\n\nThe PM runtime core by default assumes a chip is suspended when runtime\nPM is enabled. Currently the arizona driver enables runtime PM when the\nchip is fully active and then disables the DCVDD regulator at the end of\narizona_dev_init. This however has several problems, firstly the if we\nreach the end of arizona_dev_init, we did not properly follow all the\nproceedures for shutting down the chip, and most notably we never marked\nthe chip as cache only so any writes occurring between then and the next\nPM runtime resume will be lost. Secondly, if we are already resumed when\nwe reach the end of dev_init, then at best we get unbalanced regulator\nenable/disables at work we lose DCVDD whilst we need it.\n\nAdditionally, since the commit 4f0216409f7c (\"mfd: arizona: Add better\nsupport for system suspend\"), the PM runtime operations may\ndisable/enable the IRQ, so the IRQs must now be enabled before we call\nany PM operations.\n\nThis patch adds a call to pm_runtime_set_active to inform the PM core\nthat the device is starting up active and moves the PM enabling to\naround the IRQ initialisation to avoid any PM callbacks happening until\nthe IRQs are initialised.\n\nCc: stable@vger.kernel.org # v3.5+\nSigned-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>\nSigned-off-by: Lee Jones <lee.jones@linaro.org>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/72e43164fd472f6c2659c8313b87da962322dbcf"},{"sha":"d12bbcd3ea4402704d13f687601dc5af1361a548","author":{"email":"039000e09e601bba70626bd0fbe59654c9cf8cac@collabora.co.uk","name":"Javier Martinez Canillas"},"message":"platform/chrome: Don't make CHROME_PLATFORMS depends on X86 || ARM\n\nThe Chrome platform support depends on X86 || ARM because there are\nonly Chromebooks using those architectures. But only some drivers\ndepend on a given architecture, and the ones that do already have\na dependency on their specific Kconfig symbol entries.\n\nAn option is to also make CHROME_PLATFORMS depends on || COMPILE_TEST\nbut is more future proof to remove the dependency and let the drivers\nbe built in all architectures if possible to have more build coverage.\n\nAcked-by: Olof Johansson <olof@lixom.net>\nSigned-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>\nSigned-off-by: Lee Jones <lee.jones@linaro.org>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/d12bbcd3ea4402704d13f687601dc5af1361a548"},{"sha":"fb9caeedafe61599371d057696bff3baef01f455","author":{"email":"039000e09e601bba70626bd0fbe59654c9cf8cac@collabora.co.uk","name":"Javier Martinez Canillas"},"message":"mfd: Remove MFD_CROS_EC_SPI depends on OF\n\nThe ChromeOS EC SPI transport driver has a dependency on OF because it\nuses some OF helpers from the <linux/of.h> header. But there isn't a\nneed for an explicit dependency since the header has stub functions if\nCONFIG_OF is not defined.\n\nAlso, MFD_CROS_EC_SPI already depends on MFD_CROS_EC which in turn has\na dependency on OF so in practice can't be selected without CONFIG_OF.\n\nSigned-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>\nSigned-off-by: Lee Jones <lee.jones@linaro.org>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/fb9caeedafe61599371d057696bff3baef01f455"},{"sha":"aa65fa35ba6b589a12a6025739c2d935dd743b5a","author":{"email":"de609eb4d5d70b1d38ec6642adbfc33a2781f63c@zeniv.linux.org.uk","name":"Al Viro"},"message":"may_follow_link() should use nd->inode\n\nNow that we can get there in RCU mode, we shouldn't play with\nnd->path.dentry->d_inode - it's not guaranteed to be stable.\nUse nd->inode instead.\n\nReported-by: Hugh Dickins <hughd@google.com>\nSigned-off-by: Al Viro <viro@zeniv.linux.org.uk>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/aa65fa35ba6b589a12a6025739c2d935dd743b5a"},{"sha":"da2e5ae56164b86823c1bff5b4d28430ca4a7108","author":{"email":"92b2227634627929a043144e46bda0ae15eb2cf5@emc.com","name":"Allen Hubbe"},"message":"NTB: Fix ntb_transport out-of-order RX update\n\nIt was possible for a synchronous update of the RX index in the error\ncase to get ahead of the asynchronous RX index update in the normal\ncase.  Change the RX processing to preserve an RX completion order.\n\nThere were two error cases.  First, if a buffer is not present to\nreceive data, there would be no queue entry to preserve the RX\ncompletion order.  Instead of dropping the RX frame, leave the RX frame\nin the ring.  Schedule RX processing when RX entries are enqueued, in\ncase there are RX frames waiting in the ring to be received.\n\nSecond, if a buffer is too small to receive data, drop the frame in the\nring, mark the RX entry as done, and indicate the error in the RX entry\nlength.  Check for a negative length in the receive callback in\nntb_netdev, and count occurrences as rx_length_errors.\n\nSigned-off-by: Allen Hubbe <Allen.Hubbe@emc.com>\nSigned-off-by: Jon Mason <jdmason@kudzu.us>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/da2e5ae56164b86823c1bff5b4d28430ca4a7108"},{"sha":"c8650fd03d320e9c39f44435a583933cacea5259","author":{"email":"7a72b0ecdf501e4593e842e1a61bf3d5b53699e6@intel.com","name":"Dave Jiang"},"message":"NTB: Fix transport stats for multiple devices\n\nCurrently the debugfs does not have files for all NTB transport queue\npairs.  When there are multiple NTBs present in a system, the QP names\nof the last transport clobber the names of previously added transport\nQPs.  Only the last added QPs can be observed via debugfs.\n\nCreate a directory per NTB transport to associate the QPs with that\ntransport.  Name the directory the same as the PCI device.\n\nSigned-off-by: Dave Jiang <dave.jiang@intel.com>\nSigned-off-by: Jon Mason <jdmason@kudzu.us>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/c8650fd03d320e9c39f44435a583933cacea5259"},{"sha":"da4eb27a2c2efd034bdd645650114b82c479329c","author":{"email":"7a72b0ecdf501e4593e842e1a61bf3d5b53699e6@intel.com","name":"Dave Jiang"},"message":"NTB: ntb_netdev not covering all receive errors\n\nntb_netdev is allowing the link to come up even when -ENOMEM is returned\nfrom ntb_transport_rx_enqueue.  Fix to cover all possible errors.\n\nSigned-off-by: Dave Jiang <dave.jiang@intel.com>\nSigned-off-by: Jon Mason <jdmason@kudzu.us>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/da4eb27a2c2efd034bdd645650114b82c479329c"},{"sha":"260bee9451b4f0f5f9845c5b3024f0bfb8de8f22","author":{"email":"7a72b0ecdf501e4593e842e1a61bf3d5b53699e6@intel.com","name":"Dave Jiang"},"message":"NTB: Fix oops in debugfs when transport is half-up\n\nWhen the remote side is not up, we do not have all the context for the\ntransport, and that causes NULL ptr access. Have the debugfs reads check\nto see if transport is up before we make access.\n\nSigned-off-by: Dave Jiang <dave.jiang@intel.com>\nSigned-off-by: Jon Mason <jdmason@kudzu.us>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/260bee9451b4f0f5f9845c5b3024f0bfb8de8f22"},{"sha":"8b5a22d8f18496f5921ccb92554a7051cbfd9b0c","author":{"email":"92b2227634627929a043144e46bda0ae15eb2cf5@emc.com","name":"Allen Hubbe"},"message":"NTB: Schedule to receive on QP link up\n\nSchedule to receive on QP link up, to make sure that the doorbell is\nproperly cleared for interrupts.\n\nSigned-off-by: Allen Hubbe <Allen.Hubbe@emc.com>\nSigned-off-by: Jon Mason <jdmason@kudzu.us>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/8b5a22d8f18496f5921ccb92554a7051cbfd9b0c"},{"sha":"8c9edf63e75f036b42afb4502deb20bbfb5004b4","author":{"email":"92b2227634627929a043144e46bda0ae15eb2cf5@emc.com","name":"Allen Hubbe"},"message":"NTB: Fix zero size or integer overflow in ntb_set_mw\n\nA plain 32 bit integer will overflow for values over 4GiB.\n\nChange the plain integer size to the appropriate size type in\nntb_set_mw.  Change the type of the size parameter and two local\nvariables used for size.\n\nEven if there is no overflow, a size of zero is invalid here.\n\nReported-by: Juyoung Jung <jjung@micron.com>\nSigned-off-by: Allen Hubbe <Allen.Hubbe@emc.com>\nSigned-off-by: Jon Mason <jdmason@kudzu.us>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/8c9edf63e75f036b42afb4502deb20bbfb5004b4"},{"sha":"30a4bb1e5a9d7e283af6e29da09362104b67d7aa","author":{"email":"92b2227634627929a043144e46bda0ae15eb2cf5@emc.com","name":"Allen Hubbe"},"message":"NTB: Fix dereference before check\n\nRemove early dereference of a pointer that is checked later in the code.\n\nReported-by: Dan Carpenter <dan.carpenter@oracle.com>\nSigned-off-by: Allen Hubbe <Allen.Hubbe@emc.com>\nSigned-off-by: Jon Mason <jdmason@kudzu.us>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/30a4bb1e5a9d7e283af6e29da09362104b67d7aa"},{"sha":"e15f940908e474da03349cb55a107fe89310a02c","author":{"email":"50cb10d2be062154b17ab4d66a4eab34f1cf1c84@chromium.org","name":"Kees Cook"},"message":"ntb: avoid format string in dev_set_name\n\nAvoid any chance of format string expansion when calling dev_set_name.\n\nSigned-off-by: Kees Cook <keescook@chromium.org>\nSigned-off-by: Jon Mason <jdmason@kudzu.us>","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/e15f940908e474da03349cb55a107fe89310a02c"},{"sha":"a3ca013d8824e9bcf9cd62111058e882be9b334c","author":{"email":"69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org","name":"Linus Torvalds"},"message":"Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs\n\nPull RCU pathwalk fix from Al Viro:\n \"Another racy use of nd->path.dentry in RCU mode\"\n\n* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:\n  may_follow_link() should use nd->inode","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/a3ca013d8824e9bcf9cd62111058e882be9b334c"},{"sha":"016a9f50e28086f70007729017142dedc84e53d1","author":{"email":"69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org","name":"Linus Torvalds"},"message":"Merge tag 'ntb-4.2-rc7' of git://github.com/jonmason/ntb\n\nPull NTB bugfixes from Jon Mason:\n \"NTB bug fixes to address transport receive issues, stats, link\n  negotiation issues, and string formatting\"\n\n* tag 'ntb-4.2-rc7' of git://github.com/jonmason/ntb:\n  ntb: avoid format string in dev_set_name\n  NTB: Fix dereference before check\n  NTB: Fix zero size or integer overflow in ntb_set_mw\n  NTB: Schedule to receive on QP link up\n  NTB: Fix oops in debugfs when transport is half-up\n  NTB: ntb_netdev not covering all receive errors\n  NTB: Fix transport stats for multiple devices\n  NTB: Fix ntb_transport out-of-order RX update","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/016a9f50e28086f70007729017142dedc84e53d1"},{"sha":"2b9bea035a488774b176f14f53160442e8906ad8","author":{"email":"69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org","name":"Linus Torvalds"},"message":"Merge tag 'mfd-fixes-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd\n\nPull MFD fixes from Lee Jones:\n - fix dependency issues on ChromeOS platforms\n - fix runtime PM issues on Arizona\n - fix IRQ/suspend race on Arizona\n\n* tag 'mfd-fixes-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:\n  mfd: Remove MFD_CROS_EC_SPI depends on OF\n  platform/chrome: Don't make CHROME_PLATFORMS depends on X86 || ARM\n  mfd: arizona: Fix initialisation of the PM runtime\n  mfd: arizona: Fix race between runtime suspend and IRQs","distinct":true,"url":"https://api.github.com/repos/PKRoma/linux/commits/2b9bea035a488774b176f14f53160442e8906ad8"}]}