Re: [PATCH 3/4] powerpc: Reduce ELF_ET_DYN_BASE

2017-06-23 Thread Michael Ellerman
Kees Cook writes: > Now that explicitly executed loaders are loaded in the mmap region, > position PIE binaries lower in the address space to avoid possible > collisions with mmap or stack regions. For 64-bit, align to 4GB to > allow runtimes to use the entire 32-bit address space for 32-bit > po

Re: [PATCH 0/3] Enable namespaced file capabilities

2017-06-23 Thread Amir Goldstein
On Thu, Jun 22, 2017 at 9:59 PM, Stefan Berger wrote: > This series of patches primary goal is to enable file capabilities > in user namespaces without affecting the file capabilities that are > effective on the host. This is to prevent that any unprivileged user > on the host maps his own uid to

Re: linux-next: build failure after merge of most trees

2017-06-23 Thread Stephen Rothwell
Hi, On Fri, 23 Jun 2017 06:46:53 + wrote: > > > -Original Message- > > From: Stephen Rothwell [mailto:s...@canb.auug.org.au] > > Sent: Friday, June 23, 2017 3:43 PM > > To: David Miller > > Cc: npig...@gmail.com; linux-n...@vger.kernel.org; > > linux-kernel@vger.kernel.org; Yamada, M

[PATCH v2] qla2xxx: Protect access to qpair members with qpair->qp_lock

2017-06-23 Thread Johannes Thumshirn
In qla2xx_start_scsi_mq() and qla2xx_dif_start_scsi_mq() we grab the qpair->qp_lock but do access members of the qpair before having the lock. Re-order the locking sequence to have all read and write access to qpair members under the qpair->qp_lock. Signed-off-by: Johannes Thumshirn --- drivers/

linux-next: Tree for Jun 23

2017-06-23 Thread Stephen Rothwell
Hi all, Changes since 20170622: Removed tree: dma-mapping Renamed tree: dma-mapping-hch to dma-mapping The net-next tree gained a conflict against the net tree. The sound-asoc tree gained a conflict against the pm tree. The block tree gained a conflict against Linus' tree. The devicetree tree

[PATCH -mm -v2 08/12] memcg, THP, swap: Support move mem cgroup charge for THP swapped out

2017-06-23 Thread Huang, Ying
From: Huang Ying PTE mapped THP (Transparent Huge Page) will be ignored when moving memory cgroup charge. But for THP which is in the swap cache, the memory cgroup charge for the swap of a tail-page may be moved in current implementation. That isn't correct, because the swap charge for all sub-

[PATCH -mm -v2 04/12] mm, THP, swap: Don't allocate huge cluster for file backed swap device

2017-06-23 Thread Huang, Ying
From: Huang Ying It's hard to write a whole transparent huge page (THP) to a file backed swap device during swapping out and the file backed swap device isn't very popular. So the huge cluster allocation for the file backed swap device is disabled. Signed-off-by: "Huang, Ying" Cc: Johannes Wei

[PATCH -mm -v2 12/12] mm, THP, swap: Add THP swapping out fallback counting

2017-06-23 Thread Huang, Ying
From: Huang Ying When swapping out THP (Transparent Huge Page), instead of swapping out the THP as a whole, sometimes we have to fallback to split the THP into normal pages before swapping, because no free swap clusters are available, or cgroup limit is exceeded, etc. To count the number of the

[PATCH -mm -v2 07/12] mm, THP, swap: Support to split THP for THP swapped out

2017-06-23 Thread Huang, Ying
From: Huang Ying After adding swapping out support for THP (Transparent Huge Page), it is possible that a THP in swap cache (partly swapped out) need to be split. To split such a THP, the swap cluster backing the THP need to be split too, that is, the CLUSTER_FLAG_HUGE flag need to be cleared fo

[PATCH -mm -v2 09/12] memcg, THP, swap: Avoid to duplicated charge THP in swap cache

2017-06-23 Thread Huang, Ying
From: Huang Ying For a THP (Transparent Huge Page), tail_page->mem_cgroup is NULL. So to check whether the page is charged already, we need to check the head page. This is not an issue before because it is impossible for a THP to be in the swap cache before. But after we add delaying splitting

[PATCH] bcache: release the allocated id, not its multiple of BCACHE_MINORS

2017-06-23 Thread Liang Chen
The id passed to ida_simple_remove has to be the one originally allocated with ida_simple_get, not the one after multipling by BCACHE_MINORS. Signed-off-by: Liang Chen --- drivers/md/bcache/super.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/md/bcache/super.c

[PATCH -mm -v2 10/12] memcg, THP, swap: Make mem_cgroup_swapout() support THP

2017-06-23 Thread Huang, Ying
From: Huang Ying This patch makes mem_cgroup_swapout() works for the transparent huge page (THP). Which will move the memory cgroup charge from memory to swap for a THP. This will be used for the THP swap support. Where a THP may be swapped out as a whole to a set of (HPAGE_PMD_NR) continuous

[PATCH -mm -v2 05/12] block, THP: Make block_device_operations.rw_page support THP

2017-06-23 Thread Huang, Ying
From: Huang Ying The .rw_page in struct block_device_operations is used by the swap subsystem to read/write the page contents from/into the corresponding swap slot in the swap device. To support the THP (Transparent Huge Page) swap optimization, the .rw_page is enhanced to support to read/write

[PATCH -mm -v2 11/12] mm, THP, swap: Delay splitting THP after swapped out

2017-06-23 Thread Huang, Ying
From: Huang Ying In this patch, splitting transparent huge page (THP) during swapping out is delayed from after adding the THP into the swap cache to after swapping out finishes. After the patch, more operations for the anonymous THP reclaiming, such as writing the THP to the swap device, removi

[PATCH -mm -v2 00/12] mm, THP, swap: Delay splitting THP after swapped out

2017-06-23 Thread Huang, Ying
From: Huang Ying Hi, Andrew, could you help me to check whether the overall design is reasonable? Hi, Johannes and Minchan, Thanks a lot for your review to the first step of the THP swap optimization! Could you help me to review the second step in this patchset? Hi, Hugh, Shaohua, Minchan and

[PATCH -mm -v2 03/12] mm, THP, swap: Make reuse_swap_page() works for THP swapped out

2017-06-23 Thread Huang, Ying
From: Huang Ying After supporting to delay THP (Transparent Huge Page) splitting after swapped out, it is possible that some page table mappings of the THP are turned into swap entries. So reuse_swap_page() need to check the swap count in addition to the map count as before. This patch done tha

[PATCH -mm -v2 01/12] mm, THP, swap: Support to clear swap cache flag for THP swapped out

2017-06-23 Thread Huang, Ying
From: Huang Ying Previously, swapcache_free_cluster() is used only in the error path of shrink_page_list() to free the swap cluster just allocated if the THP (Transparent Huge Page) is failed to be split. In this patch, it is enhanced to clear the swap cache flag (SWAP_HAS_CACHE) for the swap cl

[PATCH -mm -v2 02/12] mm, THP, swap: Support to reclaim swap space for THP swapped out

2017-06-23 Thread Huang, Ying
From: Huang Ying The normal swap slot reclaiming can be done when the swap count reaches SWAP_HAS_CACHE. But for the swap slot which is backing a THP, all swap slots backing one THP must be reclaimed together, because the swap slot may be used again when the THP is swapped out again later. So th

[PATCH -mm -v2 06/12] Test code to write THP to swap device as a whole

2017-06-23 Thread Huang, Ying
From: Huang Ying To support to delay splitting THP (Transparent Huge Page) after swapped out. We need to enhance swap writing code to support to write a THP as a whole. This will improve swap write IO performance. As Ming Lei pointed out, this should be based on multipage bvec support, which

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-23 Thread Andrzej Hajda
On 22.06.2017 15:34, Boris Brezillon wrote: > On Thu, 22 Jun 2017 15:16:47 +0200 > Andrzej Hajda wrote: > >> On 22.06.2017 14:41, Boris Brezillon wrote: >>> On Thu, 22 Jun 2017 14:29:07 +0200 >>> Andrzej Hajda wrote: >>> On 22.06.2017 11:23, Boris Brezillon wrote: > On Thu, 22 Jun 20

[PATCH NET v2 1/2] net: phy: Add phy loopback support in net phy framework

2017-06-23 Thread Lin Yun Sheng
This patch add set_loopback in phy_driver, which is used by Mac driver to enable or disable a phy. it also add a generic genphy_loopback function, which use BMCR loopback bit to enable or disable a phy. Signed-off-by: Lin Yun Sheng --- drivers/net/phy/marvell.c| 1 + drivers/net/phy/phy_dev

[PATCH NET v2 2/2] net: hns: Use phy_driver to setup Phy loopback

2017-06-23 Thread Lin Yun Sheng
Use function set_loopback in phy_driver to setup phy loopback when doing ethtool self test. Signed-off-by: Lin Yun Sheng --- drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 68 +--- 1 file changed, 14 insertions(+), 54 deletions(-) diff --git a/drivers/net/ethernet/hisili

[PATCH NET v2 0/2] Add loopback support in phy_driver and hns ethtool fix

2017-06-23 Thread Lin Yun Sheng
This Patch Set add set_loopback in phy_driver and use it to setup loopback when doing ethtool phy self_test. Patch V2: 1. Add phy_loopback in phy_device.c. 2. Do error checking and do the read and write once in genphy_loopback. 3. Remove gen10g_loopback in phy_device.c. Pa

Re: [PATCH v2] iio: adc: Add support for DLN2 ADC

2017-06-23 Thread Peter Meerwald-Stadler
> This patch adds support for Diolan DLN2 ADC via IIO's ADC interface. > ADC is the fourth and final component of the DLN2 for the kernel. I am missing a changelog or information if and how review comments have been addressed thanks for the super-fast turnaround, anyway p. > Signed-off-by: Ja

Re: [PATCH 01/14] staging: fsl-mc: drop macros with possible side effects

2017-06-23 Thread Laurentiu Tudor
Hi Joe, On 06/22/2017 07:07 PM, Joe Perches wrote: > On Thu, 2017-06-22 at 16:35 +0300, laurentiu.tu...@nxp.com wrote: >> From: Laurentiu Tudor >> >> Several macros were triggering this checkpatch.pl warning: >>"Macro argument reuse '$arg' - possible side-effects?" >> Fix the warning by turni

Re: [Intel-gfx] [PATCH v9 5/7] vfio: Define vfio based dma-buf operations

2017-06-23 Thread Gerd Hoffmann
Hi, > Is this only going to support accelerated driver output, not basic > VGA > modes for BIOS interaction? Right now there is no vgabios or uefi support for the vgpu. But even with that in place there still is the problem that the display device initialization happens before the guest runs a

[PATCH] kbuild: improve comments on KBUILD_SRC

2017-06-23 Thread Cao jin
Original comments is confusing on "OBJ directory", make it clear. Bonus: move comments close to what it want to comment. Signed-off-by: Cao jin --- Makefile | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 57df756..81c0df9 100644 --- a/Makefile

Re: [PATCH v3 11/11] x86/mm: Try to preserve old TLB entries using PCID

2017-06-23 Thread Thomas Gleixner
On Thu, 22 Jun 2017, Andy Lutomirski wrote: > On Thu, Jun 22, 2017 at 2:22 PM, Thomas Gleixner wrote: > > On Thu, 22 Jun 2017, Andy Lutomirski wrote: > >> On Thu, Jun 22, 2017 at 5:21 AM, Thomas Gleixner > >> wrote: > >> > Now one other optimization which should be trivial to add is to keep the

Re: [PATCH v2 03/11] drm: sun4i: ignore swapped mixer<->tcon connection for DE2

2017-06-23 Thread Maxime Ripard
Hi, On Tue, Jun 13, 2017 at 06:05:57PM +0800, Chen-Yu Tsai wrote: > > That's not true. DE1's can output to several TCONs (or rather, TCONs > > can select multiple engines as their input). The A31 for example is in > > this case. > > Actually that's not true. The TCON is bound to the backend. I do

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-23 Thread Boris Brezillon
On Fri, 23 Jun 2017 09:22:15 +0200 Andrzej Hajda wrote: > On 22.06.2017 15:34, Boris Brezillon wrote: > > On Thu, 22 Jun 2017 15:16:47 +0200 > > Andrzej Hajda wrote: > > > >> On 22.06.2017 14:41, Boris Brezillon wrote: > >>> On Thu, 22 Jun 2017 14:29:07 +0200 > >>> Andrzej Hajda wrote: > >>

Re: [PATCH RESEND 09/13] platform/chrome: cros_ec_lpc: Add MKBP events support over ACPI

2017-06-23 Thread Thierry Escande
Hi Benson, On 22/06/2017 21:35, Benson Leung wrote: + adev = ACPI_COMPANION(dev); + if (adev) { + status = acpi_install_notify_handler(adev->handle, +ACPI_ALL_NOTIFY, Is there a reason you're using ACPI_ALL_NOTIFY

[patch-rt v2] rtmutex: Fix lock stealing logic

2017-06-23 Thread Mike Galbraith
V2 changes:   - beautification (ymmv)   - enable lock stealing when waiter is queued rtmutex: Fix lock stealing logic 1. When trying to acquire an rtmutex, we first try to grab it without queueing the waiter, and explicitly check for that initial attempt in the !waiter path of __try_to_take_rt_mu

[PATCH] staging: unisys: visorbus: constify channel_attr_grp and dev_attr_grp

2017-06-23 Thread Arvind Yadav
File size before: textdata bss dec hex filename 6712 960 52181932001 drivers/staging/unisys/visorbus/visorbus_main.o File size After adding 'const': textdata bss dec hex filename 6840 832 52181932001 drivers/staging/unis

[tip:smp/hotplug] powerpc: Only obtain cpu_hotplug_lock if called by rtasd

2017-06-23 Thread tip-bot for Thiago Jung Bauermann
Commit-ID: 3e401f7a2e5199151f735aee6a5c6b4776e6a35e Gitweb: http://git.kernel.org/tip/3e401f7a2e5199151f735aee6a5c6b4776e6a35e Author: Thiago Jung Bauermann AuthorDate: Tue, 20 Jun 2017 19:08:30 -0300 Committer: Thomas Gleixner CommitDate: Fri, 23 Jun 2017 09:32:11 +0200 powerpc: Only

Re: [PATCH v5 2/2] arm64: dts: renesas: salvator-x: Add ADV7482 support

2017-06-23 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Wednesday 14 Jun 2017 20:58:13 Kieran Bingham wrote: > From: Kieran Bingham > > The Salvator boards use an ADV7482 receiver for HDMI and CVBS inputs. > > Provide ADV7482 node on the i2c4 bus, along with connectors for the > hdmi and cvbs inputs, and link

[UBSAN] iwlmvm's iwl_mvm_enable_txq accesses IEEE80211_INVAL_HW_QUEUE

2017-06-23 Thread Jiri Slaby
Hi, we have got an UBSAN report from opensuse's user who booten UBSAN-enabled kernel by mistake: UBSAN: Undefined behaviour in drivers/net/wireless/intel/iwlwifi/mvm/utils.c:667:49 shift exponent 255 is too large for 64-bit type 'long unsigned int' CPU: 2 PID: 1590 Comm: wpa_supplicant Not tainted

Re: [PATCH 1/1] futex: remove duplicated code and fix UB

2017-06-23 Thread Thomas Gleixner
On Wed, 21 Jun 2017, Jiri Slaby wrote: > diff --git a/arch/arm64/include/asm/futex.h b/arch/arm64/include/asm/futex.h > index f32b42e8725d..5bb2fd4674e7 100644 > --- a/arch/arm64/include/asm/futex.h > +++ b/arch/arm64/include/asm/futex.h > @@ -48,20 +48,10 @@ do {

Re: [PATCH] edac: pnd2_edac: add code comment for clarification and update variable assignment

2017-06-23 Thread Borislav Petkov
On Thu, Jun 22, 2017 at 05:05:35PM -0500, Gustavo A. R. Silva wrote: > Add code comment to make it clear that the fall-through is intentional and, > OR ret with its previous value to avoid overwriting it. > > Cc: Borislav Petkov > Signed-off-by: Gustavo A. R. Silva > --- > drivers/edac/pnd2_eda

Re: [UBSAN] iwlmvm's iwl_mvm_enable_txq accesses IEEE80211_INVAL_HW_QUEUE

2017-06-23 Thread Johannes Berg
On Fri, 2017-06-23 at 09:48 +0200, Jiri Slaby wrote: > > mac80211_queue is 255 which is IEEE80211_INVAL_HW_QUEUE, so it should > not be worked with at all. Funny you should find this today :-) > The invalid queue is hopefully handled in ieee80211_check_queues > after > drv_add_interface in ieee8

Re: [GIT PULL 2/2] ARM: defconfig: Topic branch with defconfig cleanup for v4.13

2017-06-23 Thread Arnd Bergmann
On Mon, Jun 19, 2017 at 6:05 PM, Krzysztof Kozlowski wrote: > > ARM defconfig cleanup: > 1. Remove old Kconfig options from all ARM configs, > 2. Update Samsung defconfigs to bring back options over time got disabled >for some re

Re: [PATCH V2] kernel/watchdog: fix spurious hard lockups

2017-06-23 Thread Thomas Gleixner
On Thu, 22 Jun 2017, Don Zickus wrote: > On Wed, Jun 21, 2017 at 11:53:57PM +0200, Thomas Gleixner wrote: > > On Wed, 21 Jun 2017, kan.li...@intel.com wrote: > > > We now have more and more systems where the Turbo range is wide enough > > > that the NMI watchdog expires faster than the soft watchdo

Re: [Intel-gfx] [PATCH v9 5/7] vfio: Define vfio based dma-buf operations

2017-06-23 Thread Zhi Wang
Hi: Thanks for the discussions! If the userspace application has already maintained a LRU list, it looks like we don't need generation anymore, as userspace application will lookup the guest framebuffer from the LRU list by "offset". No matter how, it would know if this is a new guest fram

Re: [GIT PULL 0/1] perf probe fix

2017-06-23 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit fb3a5055cd7098f8d1dd0cd38d717223255f: > > perf/x86/intel: Add 1G DTLB load/store miss support for

Re: [PATCH 3/7] staging: ccree: add support for older HW revisions

2017-06-23 Thread kbuild test robot
-Yossef/staging-ccree-bug-fixes-and-TODO-items-for-4-13/20170623-134445 config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin

Re: [PATCH v6 2/8] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-06-23 Thread jmondi
Hi Rob, On Thu, Jun 22, 2017 at 04:09:17PM -0500, Rob Herring wrote: > On Thu, Jun 22, 2017 at 04:54:30PM +0200, Jacopo Mondi wrote: > > Add device tree bindings documentation for Renesas RZ/A1 gpio and pin > > controller. > > > > Signed-off-by: Jacopo Mondi > > --- > > .../bindings/pinctrl/rene

Re: [PATCH] kdb: remove unnecessary variable assignment in kdb_bc()

2017-06-23 Thread Daniel Thompson
On 22/06/17 23:41, Gustavo A. R. Silva wrote: Value assigned to variable _bp_ at line 415 is the same as at line 434. This makes such variable assignment unnecessary. Addresses-Coverity-ID: 1227025 Signed-off-by: Gustavo A. R. Silva Reviewed-by: Daniel Thompson --- kernel/debug/kdb/kdb_b

[PATCH] f2fs: stop discard thread in prior during umount

2017-06-23 Thread Chao Yu
This patch resolves kernel panic for xfstests/081, caused by recent f2fs_bug_on f2fs: add f2fs_bug_on in __remove_discard_cmd For fixing, we will stop discard thread in prior in put_super, in order to avoid racing in between referrer and releaser. Signed-off-by: Jaegeuk Kim Signed-off-by: Chao

Re: [PATCH] RAS: Fix an error checking test in 'create_debugfs_nodes()'

2017-06-23 Thread Borislav Petkov
On Fri, Jun 23, 2017 at 08:24:40AM +0200, Christophe JAILLET wrote: > 'decay' is kwown to be not NULL at this point. > 'count' should be tested instead. > > Fixes: 011d82611172 ("RAS: Add a Corrected Errors Collector") > Signed-off-by: Christophe JAILLET > --- > drivers/ras/cec.c | 2 +- > 1 fil

Re: [PATCH v6 0/2] IV Generation algorithms for dm-crypt

2017-06-23 Thread Herbert Xu
Binoy Jayan wrote: > === > dm-crypt optimization for larger block sizes > === > > Currently, the iv generation algorithms are implemented in dm-c

Re: [PATCH] bcache: release the allocated id, not its multiple of BCACHE_MINORS

2017-06-23 Thread Coly Li
On 2017/6/23 下午3:15, Liang Chen wrote: > The id passed to ida_simple_remove has to be the one originally > allocated with ida_simple_get, not the one after multipling by > BCACHE_MINORS. > > Signed-off-by: Liang Chen > --- > drivers/md/bcache/super.c | 5 +++-- > 1 file changed, 3 insertions(+),

Re: [PATCH 0/4] Support new Alps HID I2C Touchpad device

2017-06-23 Thread Benjamin Tissoires
On May 11 2017 or thereabouts, Jiri Kosina wrote: > On Thu, 27 Apr 2017, Masaki Ota wrote: > > > Hi, Benjamin, > > > > I modified the patch and added the code that supports Alps USB Touchpad as > > PATCH 4/4. > > Hi, > > could you please reformat / extend the changelogs of individual commits a

Re: [PATCH] f2fs: fix ref of discard command

2017-06-23 Thread Chao Yu
Hi Jaegeuk, On 2017/6/12 11:04, Jaegeuk Kim wrote: > This patch resolves kernel panic for xfstests/081, caused by recent > f2fs_bug_on > > f2fs: add f2fs_bug_on in __remove_discard_cmd > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/segment.c | 2 ++ > 1 file changed, 2 insertions(+) > > di

Re: [PATCH v2 1/5] dt-bindings: add bindings for i2c-pca-platform

2017-06-23 Thread Wolfram Sang
On Thu, Jun 22, 2017 at 09:20:59PM +, Chris Packham wrote: > On 22/06/17 20:23, Wolfram Sang wrote: > > > >> + - reset-gpios : gpio specifier for gpio connected to RESET_N pin. > > > > What about the 'active' state that Rob mentioned in his last review? > > > > My intention was that by sayi

Re: [PATCH 0/3] HID: multitouch: fix a corner case of some Win 8 devices

2017-06-23 Thread Jiri Kosina
On Thu, 15 Jun 2017, Benjamin Tissoires wrote: > It looks like the Microsft certification misses one case of released fingers. > > The (only) solution we can have against that is to wait for a hundred of ms, > and if no input report comes in, consider that the touches should have been > released.

Re: [PATCH NET v2 0/2] Add loopback support in phy_driver and hns ethtool fix

2017-06-23 Thread Yunsheng Lin
My apology, this patch set have a bug in hns mac driver which is not calling phy_loopback enable and disable in pair, I will send a v3 to fix it. Please ignore this patch set. Best Regards Yunsheng Lin On 2017/6/23 15:54, Lin Yun Sheng wrote: > This Patch Set add set_loopback in phy_driver and us

Re: [PATCH v3 1/3] dt-bindings: arm: amlogic: Add SoC information bindings

2017-06-23 Thread Neil Armstrong
On 06/22/2017 11:24 PM, Rob Herring wrote: > On Wed, Jun 14, 2017 at 02:05:44PM +0200, Neil Armstrong wrote: >> Add bindings for the SoC information register of the Amlogic SoCs. >> >> Signed-off-by: Neil Armstrong >> --- >> Documentation/devicetree/bindings/arm/amlogic.txt | 29 >> +

[PATCH] crypto: brcm - software fallback for cryptlen zero

2017-06-23 Thread Raveendra Padasalagi
Zero length payload requests are not handled in Broadcom SPU2 engine, so this patch adds conditional check to fallback to software implementation for AES-GCM and AES-CCM algorithms. Signed-off-by: Raveendra Padasalagi Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- drivers/crypto/bcm/ciphe

Re: [PATCH v5 1/4] x86: switch atomic.h to use atomic-instrumented.h

2017-06-23 Thread Dmitry Vyukov
On Thu, Jun 22, 2017 at 11:14 PM, Andrew Morton wrote: > On Thu, 22 Jun 2017 16:14:16 +0200 Dmitry Vyukov wrote: > >> Add arch_ prefix to all atomic operations and include >> . This will allow >> to add KASAN instrumentation to all atomic ops. > > This gets a large number of (simple) rejects when

Re: [PATCH] fs: buffer: Modify alloc_page_buffers.

2017-06-23 Thread Sean Fu
On Mon, Jun 19, 2017 at 05:03:16PM +0100, Al Viro wrote: > On Mon, Jun 19, 2017 at 09:01:36PM +0800, Sean Fu wrote: > > Make alloc_page_buffers support circular buffer list and initialise > > b_state field. > > Optimize the performance by removing the buffer list traversal to create > > circular bu

Re: [PATCH][V2] x86/microcode: make a couple of symbols static

2017-06-23 Thread Borislav Petkov
On Thu, Jun 22, 2017 at 10:57:36AM +0100, Colin King wrote: > From: Colin Ian King > > The helper function __load_ucode_amd and pointer intel_ucode_patch > do not need to be in global scope, so make them static. > > Cleans up sparse warnings: > "symbol '__load_ucode_amd' was not declared. Should

Re: [PATCH v4 1/1] f2fs: dax: implement direct access

2017-06-23 Thread Chao Yu
Hi Qiuyang, On 2017/6/23 11:37, Sun Qiuyang wrote: > Hi Chao, > > Thanks for pointing it out. See below for how to fix this issue. > > >> Hi Qiuyang >> >> As I tested with pmem, this patch will corrupt f2fs image with generic/051 >> of fstest suit. >> >> Could you please take a look at this iss

[PATCH v3.1 1/3] dt-bindings: arm: amlogic: Add SoC information bindings

2017-06-23 Thread Neil Armstrong
Add bindings for the SoC information register of the Amlogic SoCs. Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/arm/amlogic.txt | 29 +++ 1 file changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic

[PATCH v3.1 0/3] soc: amlogic: Add Amlogic SoC Information driver

2017-06-23 Thread Neil Armstrong
Amlogic SoCs have a SoC information register for SoC type, package type and revision information. This patchset adds support for this register decoding and exposing with the SoC bus infrastructure, with dt-bindings and DT node. Changes since v3.1 at [3] : - Prepend amlogic to has-chip-id property

[PATCH v3.1 3/3] soc: Add Amlogic SoC Information driver

2017-06-23 Thread Neil Armstrong
Amlogic SoCs have a SoC information register for SoC type, package type and revision information. This patchs adds support for this register decoding and exposing with the SoC bus infrastructure. Signed-off-by: Neil Armstrong --- drivers/soc/Kconfig| 1 + drivers/soc/Makefi

[PATCH v3.1 2/3] ARM64: dts: meson-gx: Add SoC info register

2017-06-23 Thread Neil Armstrong
Add node for the Amlogic Meson GX SoC information register. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 603491d..

[PATCH] mfd: intel_soc_pmic_chtwc: Turn Kconfig option into a bool

2017-06-23 Thread Hans de Goede
The PMIC provides ACPI OpRegions which must be available for other drivers' PS0 / PS3 methods early-on as such it must be builtin as the Kconfig help text already states. Somehow its Kconfig option ended up being a tristate though, this fixes this. Signed-off-by: Hans de Goede --- Note, feel fre

Re: [PATCH RESEND] Calling check_system_tsc_reliable() before unsynchronized_tsc()

2017-06-23 Thread Zhenzhong Duan
在 2017/6/22 21:56, Thomas Gleixner 写道: Zhenzhong, On Wed, 21 Jun 2017, Zhenzhong Duan wrote: So the patch format is now correct, but the subject line is missing a proper subsystem prefix. Please use 'git log 'path/to/patched/file' next time to see what the usually used prefix for a file is. In

Re: [Intel-gfx] [PATCH v9 5/7] vfio: Define vfio based dma-buf operations

2017-06-23 Thread Gerd Hoffmann
On Fri, 2017-06-23 at 15:49 +0800, Zhi Wang wrote: > Hi: >  Thanks for the discussions! If the userspace application has  > already maintained a LRU list, it looks like we don't need > generation  > anymore, generation isn't required, things are working just fine without that. It is just a sm

Re: [Patch V5 1/7] crypto: Multi-buffer encryption infrastructure support

2017-06-23 Thread Herbert Xu
On Thu, Jun 08, 2017 at 12:52:54PM -0700, Megha Dey wrote: > > I will move this code to the mcryptd.c. > > About the naming scheme, could you give me an example where the internal > and external algorithm have the same name? I tried searching but did not > find any. > > When the outer and inner a

Re: [PATCH] crypto: brcm - Fix SHA3-512 algorithm failure

2017-06-23 Thread Anup Patel
On Fri, Jun 23, 2017 at 12:15 PM, Raveendra Padasalagi wrote: > In Broadcom SPU driver, due to missing break statement > in spu2_hash_xlate() while mapping SPU2 equivalent > SHA3-512 value, -EINVAL is chosen and hence leading to > failure of SHA3-512 algorithm. This patch fixes the same. > > Signe

Re: [PATCH] crypto: brcm - software fallback for cryptlen zero

2017-06-23 Thread Anup Patel
On Fri, Jun 23, 2017 at 1:52 PM, Raveendra Padasalagi wrote: > Zero length payload requests are not handled in > Broadcom SPU2 engine, so this patch adds conditional > check to fallback to software implementation for AES-GCM > and AES-CCM algorithms. > > Signed-off-by: Raveendra Padasalagi > Revi

Re: linux-next: build warning after merge of the l2-mtd tree

2017-06-23 Thread Rafał Miłecki
On 2017-06-23 03:32, Stephen Rothwell wrote: After merging the l2-mtd tree, today's linux-next build (x86_64 allmodconfig) produced this warning: This code has been just moved, so the warning was already there before. But it's of course a good opportunity to fix it :)

Re: [PATCH 0/3] properly account for stack randomization and guard gap

2017-06-23 Thread Ingo Molnar
* r...@redhat.com wrote: > When RLIMIT_STACK is larger than the minimum gap enforced by > mmap_base(), it is possible for the kernel to place the mmap > area where the stack wants to grow, resulting in the stack > not being able to use the space that should have been allocated > to it through RL

[PATCH] platform: x86: toshiba_haps: constify haps_attr_group

2017-06-23 Thread Arvind Yadav
File size before: textdata bss dec hex filename 1471 528 82007 7d7 drivers/platform/x86/toshiba_haps.o File size After adding 'const': textdata bss dec hex filename 1519 464 81991 7c7 drivers/platform/x86/toshiba_haps.

[PATCH] Bluetooth: hci_serdev: make hci_serdev_client_ops static

2017-06-23 Thread Colin King
From: Colin Ian King The structure hci_serdev_client_ops does not need to be in global scope and is not modified, so make it static. Cleans up sparse warning: "symbol 'hci_serdev_client_ops' was not declared. Should it be static?" Signed-off-by: Colin Ian King --- drivers/bluetooth/hci_serdev

Re: [PATCH 01/11] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-23 Thread Daniel Vetter
On Thu, Jun 22, 2017 at 10:48:10AM +0200, Peter Rosin wrote: > On 2017-06-22 08:36, Daniel Vetter wrote: > > On Wed, Jun 21, 2017 at 11:40:52AM +0200, Peter Rosin wrote: > >> On 2017-06-21 09:38, Daniel Vetter wrote: > >>> On Tue, Jun 20, 2017 at 09:25:25PM +0200, Peter Rosin wrote: > This mak

Re: [Devel] [PATCH v9 0/3] Cavium ThunderX2 SMMUv3 errata workarounds

2017-06-23 Thread Lorenzo Pieralisi
On Fri, Jun 23, 2017 at 06:55:41AM +0200, Robert Richter wrote: > On 22.06.17 22:04:37, Lorenzo Pieralisi wrote: > > On Thu, Jun 22, 2017 at 09:35:35PM +0200, Robert Richter wrote: > > > On 22.06.17 19:58:22, Will Deacon wrote: > > > > On Thu, Jun 22, 2017 at 07:22:57PM +0100, Will Deacon wrote: >

Re: [PATCH 1/2][RFC] x86/boot/e820: Introduce e820_table_ori to represent the real original e820 layout

2017-06-23 Thread Ingo Molnar
* Chen Yu wrote: > Hi Ingo, > On Thu, Jun 22, 2017 at 11:40:30AM +0200, Ingo Molnar wrote: > > > > * Chen Yu wrote: > > > > > Currently we try to have e820_table_firmware to represent the > > > original firmware memory layout passed to us by the bootloader, > > > however it is not the case, t

Re: [PATCH v3 05/11] x86/mm: Track the TLB's tlb_gen and update the flushing algorithm

2017-06-23 Thread Borislav Petkov
On Thu, Jun 22, 2017 at 11:08:38AM -0700, Andy Lutomirski wrote: > Yes, I agree it's confusing. There really are three numbers. Those > numbers are: the latest generation, the generation that this CPU has > caught up to, and the generation that the requester of the flush we're > currently handlin

Re: [RFC PATCH] mmap, aslr: do not enforce legacy mmap on unlimited stacks

2017-06-23 Thread Michal Hocko
ping? On Wed 14-06-17 10:22:18, Michal Hocko wrote: > From: Michal Hocko > > Since cc503c1b43e0 ("x86: PIE executable randomization") we treat > applications with RLIMIT_STACK configured to unlimited as legacy > and so we a) set the mmap_base to 1/3 of address space + randomization > and b) mmap

Re: [PATCH 0/6] Update binding documentation for cp110 and ap806

2017-06-23 Thread Gregory CLEMENT
Hi Mike, as you were not in CC of the thread here is the reference: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-June/514497.html On jeu., juin 22 2017, Rob Herring wrote: > On Tue, Jun 20, 2017 at 05:34:57PM +0200, Gregory CLEMENT wrote: >> Hi Rob, >> >> On mar., juin 20 20

[PATCH] EDAC, pnd2_edac: make function sbi_send static

2017-06-23 Thread Colin King
From: Colin Ian King The function sbi_send is local to just pnd2_edac.c and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'sbi_send' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/edac/pnd2_edac.c | 4 ++-- 1 file ch

x86/mshyperv: Remove unneeded includes from mshyperv.h

2017-06-23 Thread Thomas Gleixner
A recent commit included linux/slab.h in linux/irq.h. This breaks the build of vdso32 on a 64bit kernel. The reason is that linux/irq.h gets included into the vdso code via linux/interrupt.h which is included from asm/mshyperv.h. That makes the 32bit vdso compile fail, because slab.h includes the

Re: [PATCH net-next v3 1/6] vxlan: refactor verification and application of configuration

2017-06-23 Thread Jiri Benc
This patchset looks good overall (would send my Acked-by for most of this but I'm late). On Mon, 19 Jun 2017 10:03:55 +0200, Matthias Schiffer wrote: > Log messages in these > functions are removed, as it is generally unexpected to find error output > for netlink requests in the kernel log. Usersp

Re: [PATCH v5 1/4] x86: switch atomic.h to use atomic-instrumented.h

2017-06-23 Thread Ingo Molnar
* Dmitry Vyukov wrote: > On Thu, Jun 22, 2017 at 11:14 PM, Andrew Morton > wrote: > > On Thu, 22 Jun 2017 16:14:16 +0200 Dmitry Vyukov wrote: > > > >> Add arch_ prefix to all atomic operations and include > >> . This will allow > >> to add KASAN instrumentation to all atomic ops. > > > > This

[PATCH 1/6] MIPS: do not use __GFP_REPEAT for order-0 request

2017-06-23 Thread Michal Hocko
From: Michal Hocko 3377e227af44 ("MIPS: Add 48-bit VA space (and 4-level page tables) for 4K pages.") has added a new __GFP_REPEAT user but using this flag doesn't really make any sense for order-0 request which is the case here because PUD_ORDER is 0. __GFP_REPEAT has historically effect only on

[PATCH 6/6] mm, migration: do not trigger OOM killer when migrating memory

2017-06-23 Thread Michal Hocko
From: Michal Hocko Page migration (for memory hotplug, soft_offline_page or mbind) needs to allocate a new memory. This can trigger an oom killer if the target memory is depleated. Although quite unlikely, still possible, especially for the memory hotplug (offlining of memoery). Up to now we didn

[PATCH v1] crypto: brcm - software fallback for cryptlen zero

2017-06-23 Thread Raveendra Padasalagi
Zero length payload requests are not handled in Broadcom SPU2 engine, so this patch adds conditional check to fallback to software implementation for AES-GCM and AES-CCM algorithms. Fixes: 9d12ba86f818 ("crypto: brcm - Add Broadcom SPU driver") Signed-off-by: Raveendra Padasalagi Reviewed-by: Ray

[PATCH 0/6] mm: give __GFP_REPEAT a better semantic

2017-06-23 Thread Michal Hocko
is a demand for the new semantic. We should simply merge the new flag and new users will emerge over time. There is no need for a flag day to convert all of them at once. This is based on the current linux-next (next-20170623) The main motivation for the change is that the current implementation

[PATCH 4/6] mm: kvmalloc support __GFP_RETRY_MAYFAIL for all sizes

2017-06-23 Thread Michal Hocko
From: Michal Hocko Now that __GFP_RETRY_MAYFAIL has a reasonable semantic regardless of the request size we can drop the hackish implementation for !costly orders. __GFP_RETRY_MAYFAIL retries as long as the reclaim makes a forward progress and backs of when we are out of memory for the requested

Re: [PATCH] Bluetooth: hci_serdev: make hci_serdev_client_ops static

2017-06-23 Thread Marcel Holtmann
Hi Colin, > The structure hci_serdev_client_ops does not need to be in global scope > and is not modified, so make it static. > > Cleans up sparse warning: > "symbol 'hci_serdev_client_ops' was not declared. Should it be static?" > > Signed-off-by: Colin Ian King > --- > drivers/bluetooth/hci_s

[PATCH 5/6] drm/i915: use __GFP_RETRY_MAYFAIL

2017-06-23 Thread Michal Hocko
From: Michal Hocko 24f8e00a8a2e ("drm/i915: Prefer to report ENOMEM rather than incur the oom for gfx allocations") has tried to remove disruptive OOM killer because the userspace should be able to cope with allocation failures. At the time only __GFP_NORETRY could achieve that and it turned out

Re: [PATCH v7 31/36] x86/mm, kexec: Allow kexec to be used with SME

2017-06-23 Thread Borislav Petkov
On Fri, Jun 16, 2017 at 01:55:45PM -0500, Tom Lendacky wrote: > Provide support so that kexec can be used to boot a kernel when SME is > enabled. > > Support is needed to allocate pages for kexec without encryption. This > is needed in order to be able to reboot in the kernel in the same manner >

[PATCH 3/6] xfs: map KM_MAYFAIL to __GFP_RETRY_MAYFAIL

2017-06-23 Thread Michal Hocko
From: Michal Hocko KM_MAYFAIL didn't have any suitable GFP_FOO counterpart until recently so it relied on the default page allocator behavior for the given set of flags. This means that small allocations actually never failed. Now that we have __GFP_RETRY_MAYFAIL flag which works independently o

[PATCH] sony-laptop: constify sony_laptop_input_* and spic_attribute_group

2017-06-23 Thread Arvind Yadav
File size before: textdata bss dec hex filename 312735176 372 368218fd5 drivers/platform/x86/sony-laptop.o File size After adding 'const': textdata bss dec hex filename 315934856 372 368218fd5 drivers/platform/x86/sony-laptop.o

[PATCH 2/6] mm, tree wide: replace __GFP_REPEAT by __GFP_RETRY_MAYFAIL with more useful semantic

2017-06-23 Thread Michal Hocko
From: Michal Hocko __GFP_REPEAT was designed to allow retry-but-eventually-fail semantic to the page allocator. This has been true but only for allocations requests larger than PAGE_ALLOC_COSTLY_ORDER. It has been always ignored for smaller sizes. This is a bit unfortunate because there is no way

Re: [PATCH] iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel

2017-06-23 Thread Baoquan He
Hi dear Joerg, On 06/16/17 at 10:15am, Joerg Roedel wrote: > From: Joerg Roedel > > When booting into a kdump kernel, suppress IO_PAGE_FAULTs by > default for all devices. But allow the faults again when a > domain is assigned to a device. I have two bugs at hand reported by customer, saying th

Re: [PATCH] EDAC, pnd2_edac: make function sbi_send static

2017-06-23 Thread Borislav Petkov
On Fri, Jun 23, 2017 at 09:48:55AM +0100, Colin King wrote: > From: Colin Ian King > > The function sbi_send is local to just pnd2_edac.c and does not need to > be in global scope, so make it static. > > Cleans up sparse warning: > symbol 'sbi_send' was not declared. Should it be static? > > Si

[PATCH][mtd-next] mtd: parser: print hex size_t value using correct %zx printk format specifier

2017-06-23 Thread Colin King
From: Colin Ian King Use %zx instead of %X for size_t variable offset, fixes build warning: warning: format '%X' expects argument of type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=] Signed-off-by: Colin Ian King --- drivers/mtd/parsers/parser_trx.c | 2

[PATCH 6/6] ARM: dts: at91: sama5d2_xplained: add pin muxing and enable classd

2017-06-23 Thread Quentin Schulz
From: Cyrille Pitchen This patch adds the pin muxing for classd and enables it. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch

  1   2   3   4   5   6   7   8   >