Re: [B.A.T.M.A.N.] [PATCH] net: batman-adv: use new api ethtool_{get|set}_link_ksettings

2017-03-30 Thread Sven Eckelmann
On Donnerstag, 30. März 2017 23:01:27 CEST Philippe Reynes wrote: > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > I've only compiled this change. If someone may test it, > it would be very nice. > > Signed-off-by: Philippe Reynes

Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which apply indirect-IO

2017-03-30 Thread zhichang.yuan
Hi, Rafael, Thanks for reviewing this! On 2017/3/31 4:31, Rafael J. Wysocki wrote: > On Thursday, March 30, 2017 11:26:58 PM zhichang.yuan wrote: >> On some platforms(such as Hip06/Hip07), the legacy ISA/LPC devices access I/O >> with some special host-local I/O ports known on x86. To access the

Re: [PATCH v3] xfs: Honor FALLOC_FL_KEEP_SIZE when punching ends of files

2017-03-30 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH 5/6] mm, memory_hotplug: do not associate hotadded memory to zones until online

2017-03-30 Thread Michal Hocko
On Fri 31-03-17 14:18:08, Hillf Danton wrote: > > On March 30, 2017 7:55 PM Michal Hocko wrote: > > > > +static void __meminit resize_zone_range(struct zone *zone, unsigned long > > start_pfn, > > + unsigned long nr_pages) > > +{ > > + unsigned long old_end_pfn = zone_end_pfn(zone);

Re: [PATCH v2] module: check if memory leak by module.

2017-03-30 Thread Joel Fernandes
Hi Michal, On Wed, Mar 29, 2017 at 3:43 AM, Michal Hocko wrote: > On Wed 29-03-17 09:23:32, Vaneet Narang wrote: >> Hi, >> >> >> Hmm, how can you track _all_ vmalloc allocations done on behalf of the >> >> module? It is quite some time since I've checked kernel/module.c but >> >> from my vague un

Re: [PATCH 3/6] mm: remove return value from init_currently_empty_zone

2017-03-30 Thread Michal Hocko
On Fri 31-03-17 11:49:49, Hillf Danton wrote: [...] > > -/* Can fail with -ENOMEM from allocating a wait table with vmalloc() or > > - * alloc_bootmem_node_nopanic()/memblock_virt_alloc_node_nopanic() */ > > -static int __ref ensure_zone_is_initialized(struct zone *zone, > > +static void __ref ensu

Re: [PATCH 1/6] mm: get rid of zone_is_initialized

2017-03-30 Thread Michal Hocko
On Fri 31-03-17 08:43:01, Michal Hocko wrote: > On Fri 31-03-17 11:39:07, Hillf Danton wrote: > > > > On March 30, 2017 7:55 PM Michal Hocko wrote: > > > > > > @@ -5535,9 +5535,6 @@ int __meminit init_currently_empty_zone(struct zone > > > *zone, > > > zone_start_pfn, (zone_sta

Re: [PATCH V2 net-next 7/7] vhost_net: try batch dequing from skb array

2017-03-30 Thread Jason Wang
On 2017年03月31日 12:02, Jason Wang wrote: On 2017年03月30日 22:21, Michael S. Tsirkin wrote: On Thu, Mar 30, 2017 at 03:22:30PM +0800, Jason Wang wrote: We used to dequeue one skb during recvmsg() from skb_array, this could be inefficient because of the bad cache utilization which cache does th

Re: [locking/ww_mutex] 857811a371 BUG: kernel hang in boot stage

2017-03-30 Thread Boqun Feng
On Tue, Mar 28, 2017 at 05:07:09PM +0800, Fengguang Wu wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit 857811a37129f5d2ba162d7be3986eff44724014 > Author:

Re: [PATCH 1/6] mm: get rid of zone_is_initialized

2017-03-30 Thread Michal Hocko
On Fri 31-03-17 11:39:07, Hillf Danton wrote: > > On March 30, 2017 7:55 PM Michal Hocko wrote: > > > > @@ -5535,9 +5535,6 @@ int __meminit init_currently_empty_zone(struct zone > > *zone, > > zone_start_pfn, (zone_start_pfn + size)); > > > > zone_init_free_lists(zone);

Re: linux-next: manual merge of the akpm tree with the tip tree

2017-03-30 Thread Peter Zijlstra
On Fri, Mar 31, 2017 at 04:44:51PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the akpm tree got a conflict in: > > kernel/sched/fair.c > > between commit: > > 0ccb977f4c80 ("sched/fair: Explicitly generate __update_load_avg() > instances") > > from the tip tr

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-03-30 Thread Ye Xiaolong
On 03/31, Sergey Senozhatsky wrote: >On (03/31/17 11:35), Sergey Senozhatsky wrote: >[..] >> > [ 21.009531] VFS: Warning: trinity-c2 using old stat() call. Recompile >> > your binary. >> > [ 21.148898] VFS: Warning: trinity-c0 using old stat() call. Recompile >> > your binary. >> > [ 22.298

Re: [PATCH] drm/i915: fix build error without CONFIG_BACKLIGHT_CLASS_DEVICE

2017-03-30 Thread Tobias Regnery
On 30.03.17, Jani Nikula wrote: > On Wed, 29 Mar 2017, Tobias Regnery wrote: > > With CONFIG_ACPI=n and CONFIG_BACKLIGHT_CLASS_DEVICE=n we see the following > > link error in the i915 driver: > > > > drivers/built-in.o: In function 'intel_backlight_device_register': > > (.text+0x2a921d): undefined

Re: [PATCH V8 0/7] LPC: legacy ISA I/O support

2017-03-30 Thread zhichang.yuan
Hi, Dann, Many thanks for your tests! Best, Zhichang On 2017/3/31 5:42, dann frazier wrote: > On Thu, Mar 30, 2017 at 9:26 AM, zhichang.yuan > wrote: >> This patchset supports the IPMI-bt device attached to the Low-Pin-Count >> interface implemented on Hisilicon Hip06/Hip07 SoC. >>

Re: [PATCH] fscrypt: Add support for AES-128-CBC

2017-03-30 Thread Eric Biggers
On Thu, Mar 30, 2017 at 11:21:49PM -0700, Eric Biggers wrote: > > Something else to consider (probably for the future; this doesn't necessarily > have to be done yet) is that you really only need one essiv_tfm per *key*, not > one per inode. To deduplicate them you'd need a hash table or LRU queu

[PATCH] thermal: core: Add a back up thermal shutdown mechanism

2017-03-30 Thread Keerthy
orderly_poweroff is triggered when a graceful shutdown of system is desired. This may be used in many critical states of the kernel such as when subsystems detects conditions such as critical temperature conditions. However, in certain conditions in system boot up sequences like those in the middle

Re: Ftrace: Static function graph not work

2017-03-30 Thread Zong Li
ping

Re: [PATCH] drivers: gpu: drm: i915L intel_lpe_audio: Fix kerneldoc comments

2017-03-30 Thread Daniel Vetter
On Thu, Mar 30, 2017 at 02:55:10PM +0300, Tamara Diaconita wrote: > Add description for existing parameter 'pipe' to fix the build > warning: ./drivers/gpu/drm/i915/intel_lpe_audio.c:342: warning: No > description found for parameter 'pipe'. > > Signed-off-by: Tamara Diaconita Applied, thanks. -

Re: [PATCH] drivers: gpu: drm: dr_fb_cma_helper: Fix kerneldoc comments

2017-03-30 Thread Daniel Vetter
On Thu, Mar 30, 2017 at 01:55:07PM +0300, Tamara Diaconita wrote: > Remove the description for the non-existing 'num_crtc' to fix the > build warning: ./drivers/gpu/drm/drm_fb_cma_helper.c:557: warning: > Excess function parameter 'num_crtc' description in > 'drm_fbdev_cma_init'. > > Signed-off-by

[PATCH 1/2] mailbox: PCC: Move the MAX_PCC_SUBSPACES definition to header file

2017-03-30 Thread George Cherian
Move the MAX_PCC_SUBSPACES definition to acpi/pcc.h file. In preparation to add subspace id support for cppc_acpi driver. Signed-off-by: George Cherian --- drivers/mailbox/pcc.c | 1 - include/acpi/pcc.h| 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/pcc.c

[PATCH 0/2] Make cppc acpi driver aware of pcc subspace ids

2017-03-30 Thread George Cherian
The current cppc acpi driver works with only one pcc subspace id. It maintains and registers only one pcc channel even if the acpi table has different pcc subspace ids. The series tries to address the same by making cppc acpi driver aware of multiple possible pcc subspace ids. Patch 1 : In prepa

[PATCH 2/2] ACPI / CPPC: Make cppc acpi driver aware of pcc subspace ids

2017-03-30 Thread George Cherian
Based on Section 14.1 of ACPI specification, it is possible to have a maximum of 256 PCC subspace ids. Add support of multiple PCC subspace id instead of using a single global pcc_data structure. While at that fix the time_delta check in send_pcc_cmd() so that last_mpar_reset and mpar_count is ini

Re: [PATCH] fscrypt: Add support for AES-128-CBC

2017-03-30 Thread Eric Biggers
[+Cc linux-fscrypt] Hi David and Daniel, On Thu, Mar 30, 2017 at 07:38:40PM +0200, David Gstir wrote: > From: Daniel Walter > > fscrypt provides facilities to use different encryption algorithms which are > selectable by userspace when setting the encryption policy. Currently, only > AES-256-XT

Re: Ftrace: Static function graph not work

2017-03-30 Thread Zong Li
ping 2017-03-23 11:28 GMT+08:00 Zong Li : > Hi all, > > I test the static function graph for ARM, x86 and x86_64 architecture > on linux-3.10 and linux-4.9, and I find it works correctly only for > x86_64 on linux-4.9. > > After the following commit, the function tracer also be registered > when r

Re: [PATCH 5/6] mm, memory_hotplug: do not associate hotadded memory to zones until online

2017-03-30 Thread Hillf Danton
On March 30, 2017 7:55 PM Michal Hocko wrote: > > +static void __meminit resize_zone_range(struct zone *zone, unsigned long > start_pfn, > + unsigned long nr_pages) > +{ > + unsigned long old_end_pfn = zone_end_pfn(zone); > + > + if (start_pfn < zone->zone_start_pfn) > +

Re: [PATCH 02/16] fpga: add FPGA device framework

2017-03-30 Thread Greg KH
On Thu, Mar 30, 2017 at 08:08:02PM +0800, Wu Hao wrote: > During FPGA device (e.g PCI-based) discovery, platform devices are > registered for different FPGA function units. But the device node path > isn't quite friendly to applications. > > Consider this case, applications want to access child de

linux-next: Tree for Mar 31

2017-03-30 Thread Stephen Rothwell
Hi all, Changes since 20170330: The s390 tree gained a conflict against the kbuild tree. The tip tree gained a conflict against the arm64 tree. The phy-next tree lost its build failure. The mux tree gained a conflict against the arm-soc tree. The vhost tree still had its build failure, so I

Re: [PATCH 02/16] fpga: add FPGA device framework

2017-03-30 Thread Greg KH
On Thu, Mar 30, 2017 at 08:08:02PM +0800, Wu Hao wrote: > During FPGA device (e.g PCI-based) discovery, platform devices are > registered for different FPGA function units. But the device node path > isn't quite friendly to applications. > > Consider this case, applications want to access child de

Re: [PATCH] iio: gyro: adis16060: Change the function's name

2017-03-30 Thread Greg Kroah-Hartman
On Fri, Mar 31, 2017 at 12:32:26AM +0530, simran singhal wrote: > Change the name of function from adis16060_spi_write_than_read() > to adis16060_spi_write_then_read(). change "than" to "then" as > its time depended. > --- > drivers/staging/iio/gyro/adis16060_core.c | 4 ++-- > 1 file changed, 2 i

Re: [PATCH] x86/fpu: move FPU state into separate cache

2017-03-30 Thread kbuild test robot
Hi Kees, [auto build test ERROR on kvm/linux-next] [also build test ERROR on v4.11-rc4 next-20170330] [cannot apply to tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Kees-Cook/x86

linux-next: manual merge of the akpm tree with the tip tree

2017-03-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: kernel/sched/fair.c between commit: 0ccb977f4c80 ("sched/fair: Explicitly generate __update_load_avg() instances") from the tip tree and patch: "kernel/sched/fair.c: uninline __update_load_avg()" from the akpm tree.

Re: sudo x86info -a => kernel BUG at mm/usercopy.c:78!

2017-03-30 Thread Tommi Rantala
On 30.03.2017 20:44, Laura Abbott wrote: On 03/30/2017 10:37 AM, Kees Cook wrote: Reads out of /dev/mem should be restricted to non-RAM on Fedora, yes? Tommi, do your kernels have CONFIG_STRICT_DEVMEM=y ? -Kees CONFIG_STRICT_DEVMEM should be on in all Fedora kernels. Yes, the fedora kern

Re: sudo x86info -a => kernel BUG at mm/usercopy.c:78!

2017-03-30 Thread Tommi Rantala
On 30.03.2017 23:01, Dave Jones wrote: On Thu, Mar 30, 2017 at 12:52:31PM -0700, Kees Cook wrote: > On Thu, Mar 30, 2017 at 12:41 PM, Dave Jones wrote: > > On Thu, Mar 30, 2017 at 09:45:26AM -0700, Kees Cook wrote: > > > On Wed, Mar 29, 2017 at 11:44 PM, Tommi Rantala > > > wrote: > >

Re: [PATCH v2 3/5] PCI: rockchip: add remove() support

2017-03-30 Thread Bjorn Helgaas
On Thu, Mar 30, 2017 at 05:26:09PM -0700, Brian Norris wrote: > Hi Bjorn, > > On Thu, Mar 30, 2017 at 06:28:25PM -0500, Bjorn Helgaas wrote: > > On Fri, Mar 24, 2017 at 10:22:19AM -0700, Brian Norris wrote: > > > On Fri, Mar 24, 2017 at 09:25:41AM -0500, Bjorn Helgaas wrote: > > > > These don't ha

[PATCH v4 03/11] Move GET_FIELD/SET_FIELD to vas.h

2017-03-30 Thread Sukadev Bhattiprolu
Move the GET_FIELD and SET_FIELD macros to vas.h as VAS and other users of VAS, including NX-842 can use those macros. There is a lot of related code between the VAS/NX kernel drivers and skiboot. For consistency switch the order of parameters in SET_FIELD to match the order in skiboot. Signed-of

Re: [PATCH RFC] staging: ks7010: remove custom Michael MIC implementation

2017-03-30 Thread Joe Perches
On Fri, 2017-03-31 at 15:47 +1100, Tobin C. Harding wrote: > ks7010 currently uses a custom implementation of the Michael MIC > algorithm. The kernel has an implementation of this algorithm > already, we should use it. ok, trivia: Do please run your patch through checkpatch and fix a few style ni

[PATCH v4 00/11] Enable VAS

2017-03-30 Thread Sukadev Bhattiprolu
Power9 introduces a hardware subsystem referred to as the Virtual Accelerator Switchboard (VAS). VAS allows kernel subsystems and user space processes to directly access the Nest Accelerator (NX) engines which implement compression and encryption algorithms in the hardware. NX has been in Power pr

[PATCH v4 01/11] Add Power9 PVR

2017-03-30 Thread Sukadev Bhattiprolu
Add Power9 PVR Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/include/asm/reg.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index fc879fd..7a45ff7 100644 --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powerpc/include/a

[PATCH v4 07/11] VAS: Define helpers to alloc/free windows

2017-03-30 Thread Sukadev Bhattiprolu
Define helpers to allocate/free VAS window objects. These will be used in follow-on patches when opening/closing windows. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/platforms/powernv/vas-window.c | 63 - 1 file changed, 62 insertions(+), 1 deletion(-) diff -

[PATCH v4 06/11] VAS: Define helpers to init window context

2017-03-30 Thread Sukadev Bhattiprolu
Define helpers to initialize window context registers of the VAS hardware. These will be used in follow-on patches when opening/closing VAS windows. Signed-off-by: Sukadev Bhattiprolu --- Changelog[v4] - Michael Neuling] Use ilog2(), radix_enabled() helpers; drop warning when 32

[PATCH v4 08/11] VAS: Define vas_rx_win_open() interface

2017-03-30 Thread Sukadev Bhattiprolu
Define the vas_rx_win_open() interface. This interface is intended to be used by the Nest Accelerator (NX) driver(s) to setup receive windows for one or more NX engines (which implement compression/encryption algorithms in the hardware). Follow-on patches will provide an interface to close the win

[PATCH v4 09/11] VAS: Define vas_win_close() interface

2017-03-30 Thread Sukadev Bhattiprolu
Define the vas_win_close() interface which should be used to close a send or receive windows. While the hardware configurations required to open send and receive windows differ, the configuration to close a window is the same for both. So we use a single interface to close the window. Signed-off-

[PATCH v4 05/11] VAS: Define helpers for access MMIO regions

2017-03-30 Thread Sukadev Bhattiprolu
Define some helper functions to access the MMIO regions. We use these in a follow-on patches to read/write VAS hardware registers. These helpers are also used to later issue 'paste' instructions to submit requests to the NX hardware engines. Signed-off-by: Sukadev Bhattiprolu --- Changelog [v3]:

[PATCH v4 11/11] VAS: Define copy/paste interfaces

2017-03-30 Thread Sukadev Bhattiprolu
Define interfaces (wrappers) to the 'copy' and 'paste' instructions (which are new in PowerISA 3.0). These are intended to be used to by NX driver(s) to submit Coprocessor Request Blocks (CRBs) to the NX hardware engines. Signed-off-by: Sukadev Bhattiprolu --- Changelog[v3] - Map raw CR

[PATCH v4 10/11] VAS: Define vas_tx_win_open()

2017-03-30 Thread Sukadev Bhattiprolu
Define an interface to open a VAS send window. This interface is intended to be used the Nest Accelerator (NX) driver(s) to open a send window and use it to submit compression/encryption requests to a VAS receive window. The receive window, identified by the [vasid, cop] parameters, must already b

[PATCH v4 04/11] VAS: Define vas_init() and vas_exit()

2017-03-30 Thread Sukadev Bhattiprolu
Implement vas_init() and vas_exit() functions for a new VAS module. This VAS module is essentially a library for other device drivers and kernel users of the NX coprocessors like NX-842 and NX-GZIP. In the future this will be extended to add support for user space to access the NX coprocessors. Si

[PATCH v4 02/11] VAS: Define macros, register fields and structures

2017-03-30 Thread Sukadev Bhattiprolu
Define macros for the VAS hardware registers and bit-fields as well as couple of data structures needed by the VAS driver. Signed-off-by: Sukadev Bhattiprolu --- Changelog[v4] - [Michael Neuling] Move VAS code to arch/powerpc; Reorg vas.h and vas-internal.h to kernel and uapi ve

[lkp-robot] [staging] 5b6f9b95f7: kernel_BUG_at_drivers/base/driver.c

2017-03-30 Thread kernel test robot
FYI, we noticed the following commit: commit: 5b6f9b95f7aeddf8a77a991bf1657a84ca281ab0 ("staging: unisys: visorbus: get rid of create_bus_type.") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu Westm

Re: [PATCH v3 14/37] mtd: nand: denali: support "nand-ecc-strength" DT property

2017-03-30 Thread Masahiro Yamada
Hi Boris, 2017-03-30 23:02 GMT+09:00 Boris Brezillon : > On Thu, 30 Mar 2017 15:46:00 +0900 > Masahiro Yamada wrote: > >> Historically, this driver tried to choose as big ECC strength as >> possible, but it would be reasonable to allow DT to set a particular >> ECC strength with "nand-ecc-streng

[lkp-robot] [PCI] d3881e5015: BUG:kernel_hang_in_boot_stage

2017-03-30 Thread kernel test robot
FYI, we noticed the following commit: commit: d3881e5015421a578bc328136471fcf1d02ac389 ("PCI: Export PCI device config accessors") https://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git pci/enumeration in testcase: trinity with following parameters: runtime: 300s test-descriptio

Re: [PATCH] x86/fpu: move FPU state into separate cache

2017-03-30 Thread kbuild test robot
Hi Kees, [auto build test ERROR on kvm/linux-next] [also build test ERROR on v4.11-rc4 next-20170330] [cannot apply to tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Kees-Cook/x86

[PATCH RFC] staging: ks7010: remove custom Michael MIC implementation

2017-03-30 Thread Tobin C. Harding
ks7010 currently uses a custom implementation of the Michael MIC algorithm. The kernel has an implementation of this algorithm already, we should use it. Remove the custom implementation. Implement helper functions that call the in-tree implementation through the crypto API. Update the makefile. R

[PATCH RFC] remove custom Michael MIC implementation

2017-03-30 Thread Tobin C. Harding
This RFC can be applied on op on Linus' tree 89970a0 Configuration options needed to build are CONFIG_STAGING=y CONFIG_KS7010=m The ks7010 driver currently uses a custom implementation of the Michael MIC algorithm. The kernel has an implementation of this algorithm already. This patch is an atte

Re: [PATCH v4 0/7] PCI: dwc: Miscellaneous fixes and cleanups

2017-03-30 Thread Kishon Vijay Abraham I
On Friday 31 March 2017 05:14 AM, Bjorn Helgaas wrote: > On Mon, Mar 13, 2017 at 07:13:21PM +0530, Kishon Vijay Abraham I wrote: >> This should be the final set of cleanups/fixes before endpoint >> support can be merged. >> >> Keerthy's patch is a general fix in dra7xx driver and is not >> direct

[PATCH] arm64: dts: uniphier: add input-delay properties to Cadence eMMC node

2017-03-30 Thread Masahiro Yamada
Since commit a04e2b383401 ("mmc: sdhci-cadence: Update PHY delay configuration"), PHY parameters must be specified by DT. The hard-coded settings have been converted as follows: - SDHCI_CDNS_PHY_DLY_SD_DEFAULT -> cdns,phy-input-delay-legacy - SDHCI_CDNS_PHY_DLY_EMMC_SDR -> cdns,phy-input-delay-m

linux-next: manual merge of the mux tree with the arm-soc tree

2017-03-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mux tree got conflicts in: drivers/Kconfig drivers/Makefile between commit: 967c9cca2cc5 ("tee: generic TEE subsystem") from the arm-soc tree and commit: 1fc1dd988186 ("mux: minimal mux subsystem and gpio-based mux controller") from the mux tre

[PATCH v3] xfs: Honor FALLOC_FL_KEEP_SIZE when punching ends of files

2017-03-30 Thread Calvin Owens
When punching past EOF on XFS, fallocate(mode=PUNCH_HOLE|KEEP_SIZE) will round the file size up to the nearest multiple of PAGE_SIZE: calvinow@vm-disks/generic-xfs-1 ~$ dd if=/dev/urandom of=test bs=2048 count=1 calvinow@vm-disks/generic-xfs-1 ~$ stat test Size: 2048Blocks: 8

Re: [f2fs-dev] [PATCH 2/2] f2fs: avoid IO split due to mixed WB_SYNC_ALL and WB_SYNC_NONE

2017-03-30 Thread Jaegeuk Kim
On 03/31, heyunlei wrote: > Hi Jaegeuk, > > Can we split in place update bios into single sbi->f2fs_bio_info for more page > merged in out place update? This case can be show as below: > > in place update submit a bio with one page > out place update submit a bio with one page > in place up

Re: [PATCH 11/16] fpga: intel: fme: add partial reconfiguration sub feature support

2017-03-30 Thread Xiao Guangrong
On 31/03/2017 4:30 AM, Alan Tull wrote: On Thu, Mar 30, 2017 at 7:08 AM, Wu Hao wrote: From: Kang Luwei Partial Reconfiguration (PR) is the most important function for FME. It allows reconfiguration for given Port/Accelerated Function Unit (AFU). This patch adds support for PR sub feature.

Re: [PATCH V2 net-next 5/7] tun: support receiving skb through msg_control

2017-03-30 Thread Jason Wang
On 2017年03月30日 23:06, Michael S. Tsirkin wrote: On Thu, Mar 30, 2017 at 03:22:28PM +0800, Jason Wang wrote: This patch makes tun_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang Do we need to bother with tun? I di

Re: [PATCH V2 net-next 6/7] tap: support receiving skb from msg_control

2017-03-30 Thread Jason Wang
On 2017年03月30日 23:03, Michael S. Tsirkin wrote: On Thu, Mar 30, 2017 at 03:22:29PM +0800, Jason Wang wrote: This patch makes tap_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang --- drivers/net/tap.c | 12 +++

Re: [PATCH] zram: factor out partial IO routine

2017-03-30 Thread Sergey Senozhatsky
Hello, On (03/31/17 08:33), Minchan Kim wrote: [..] > > a bigger side effect is that now we double the amount of lines we need > > to change in certain patches and, thus, the amount of work - when we > > add new functionality/fix something in zram_bvec_{write, read} we also > > would need to touch

Re: [PATCH v2] sd: Consider max_xfer_blocks if opt_xfer_blocks is unusable

2017-03-30 Thread Fam Zheng
On Thu, 03/30 11:30, Martin K. Petersen wrote: > Fam Zheng writes: > > >>rw_max = min_not_zero(logical_to_sectors(sdp, dev_max), > >> BLK_DEF_MAX_SECTORS); > > > > Yes, it is better. Is it okay to make the change when you apply? > > Sure. Applied to 4.11/scsi-fi

Re: [PATCH v3 00/37] mtd: nand: denali: 2nd round of Denali NAND IP patch bomb

2017-03-30 Thread Masahiro Yamada
Hi Boris, 2017-03-31 1:38 GMT+09:00 Boris Brezillon : > The rest looks almost good, except for a few comments I had on patch > 14, 18, 25, 26 and 32. > > I'll probably apply 33 and 34 soon. > Thank you! Please note I left a minor comment on 34. (Accidental addition of braces.) -- Best Regard

Re: [PATCH 1/6] virtio: wrap find_vqs

2017-03-30 Thread Jason Wang
On 2017年03月30日 22:32, Michael S. Tsirkin wrote: On Thu, Mar 30, 2017 at 02:00:08PM +0800, Jason Wang wrote: On 2017年03月30日 04:48, Michael S. Tsirkin wrote: We are going to add more parameters to find_vqs, let's wrap the call so we don't need to tweak all drivers every time. Signed-off-by: M

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-03-30 Thread Sergey Senozhatsky
On (03/31/17 11:35), Sergey Senozhatsky wrote: [..] > > [ 21.009531] VFS: Warning: trinity-c2 using old stat() call. Recompile > > your binary. > > [ 21.148898] VFS: Warning: trinity-c0 using old stat() call. Recompile > > your binary. > > [ 22.298208] warning: process `trinity-c2' used the

Re: [PATCH V2 net-next 7/7] vhost_net: try batch dequing from skb array

2017-03-30 Thread Jason Wang
On 2017年03月30日 22:21, Michael S. Tsirkin wrote: On Thu, Mar 30, 2017 at 03:22:30PM +0800, Jason Wang wrote: We used to dequeue one skb during recvmsg() from skb_array, this could be inefficient because of the bad cache utilization which cache does this refer to btw? Both icache and dcache m

Re: [PATCH v3 34/37] mtd: nand: allow drivers to request minimum alignment for passed buffer

2017-03-30 Thread Masahiro Yamada
Hi Boris, 2017-03-30 17:15 GMT+09:00 Masahiro Yamada : > In some cases, nand_do_{read,write}_ops is passed with unaligned > ops->datbuf. Drivers using DMA will be unhappy about unaligned > buffer. > > The new struct member, buf_align, represents the minimum alignment > the driver require for the

Re: [PATCH 2/7] iommu/iova: cut down judgement times

2017-03-30 Thread Leizhen (ThunderTown)
On 2017/3/23 20:11, Robin Murphy wrote: > On 22/03/17 06:27, Zhen Lei wrote: >> Below judgement can only be satisfied at the last time, which produced 2N >> judgements(suppose N times failed, 0 or 1 time successed) in vain. >> >> if ((pfn >= iova->pfn_lo) && (pfn <= iova->pfn_hi)) { >> retur

Re: [f2fs-dev] [PATCH 1/2] f2fs: write small sized IO to hot log

2017-03-30 Thread Jaegeuk Kim
On 03/31, heyunlei wrote: > Hi Jaegeuk, > > On 2017/3/30 4:48, Jaegeuk Kim wrote: > > It would better split small and large IOs separately in order to get more > > consecutive big writes. > > > > The default threshold is set to 64KB, but configurable by > > sysfs/min_hot_blocks. > > > > Signed-

Re: [f2fs-dev] [PATCH 2/2] f2fs: avoid IO split due to mixed WB_SYNC_ALL and WB_SYNC_NONE

2017-03-30 Thread heyunlei
Hi Jaegeuk, Can we split in place update bios into single sbi->f2fs_bio_info for more page merged in out place update? This case can be show as below: in place update submit a bio with one page out place update submit a bio with one page in place update submit a bio with one page

Re: [PATCH V2 net-next 1/7] ptr_ring: introduce batch dequeuing

2017-03-30 Thread Jason Wang
On 2017年03月30日 21:53, Michael S. Tsirkin wrote: On Thu, Mar 30, 2017 at 03:22:24PM +0800, Jason Wang wrote: This patch introduce a batched version of consuming, consumer can dequeue more than one pointers from the ring at a time. We don't care about the reorder of reading here so no need for c

Re: [PATCH 3/6] mm: remove return value from init_currently_empty_zone

2017-03-30 Thread Hillf Danton
On March 30, 2017 7:55 PM Michal Hocko wrote: > > From: Michal Hocko > > init_currently_empty_zone doesn't have any error to return yet it is > still an int and callers try to be defensive and try to handle potential > error. Remove this nonsense and simplify all callers. > It is already cut o

Re: [RESEND PATCH 2/2] sched/fair: Optimize __update_sched_avg()

2017-03-30 Thread Yuyang Du
On Fri, Mar 31, 2017 at 03:13:55AM +0800, Yuyang Du wrote: > On Thu, Mar 30, 2017 at 04:14:28PM +0200, Peter Zijlstra wrote: > > On Thu, Mar 30, 2017 at 02:16:58PM +0200, Peter Zijlstra wrote: > > > On Thu, Mar 30, 2017 at 04:21:08AM -0700, Paul Turner wrote: > > > > > > > + > > > > > + if (

Re: [PATCH 4.10 00/17] 4.10.8-stable review

2017-03-30 Thread Guenter Roeck
On 03/30/2017 03:00 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.10.8 release. There are 17 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [PATCH 4.9 00/16] 4.9.20-stable review

2017-03-30 Thread Guenter Roeck
On 03/30/2017 03:15 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.20 release. There are 16 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [PATCH 4.4 00/14] 4.4.59-stable review

2017-03-30 Thread Guenter Roeck
On 03/30/2017 02:58 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.59 release. There are 14 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

[PATCH] treewide: Correct diffrent[iate] and banlance typos

2017-03-30 Thread Joe Perches
Add these misspellings to scripts/spelling.txt too Signed-off-by: Joe Perches --- drivers/media/dvb-frontends/drx39xyj/drx_dap_fasi.h | 2 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c | 2 +- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 2 +- drivers/net/ethernet/qlogic/qed/qe

Re: [f2fs-dev] [PATCH 2/2] f2fs: avoid IO split due to mixed WB_SYNC_ALL and WB_SYNC_NONE

2017-03-30 Thread heyunlei
Hi Jaegeuk, I try this patch and find it can fix below case: kworker/u16:3-423 [002] 183.812347: submit_bio: kworker/u16:3(423): WRITE block 104749352 on mmcblk0p50 (8 sectors) fio-2122 [003] 183.812380: submit_bio: fio(2122): WRITE block 104749360 on mmcblk0p5

Re: [PATCH 1/6] mm: get rid of zone_is_initialized

2017-03-30 Thread Hillf Danton
On March 30, 2017 7:55 PM Michal Hocko wrote: > > @@ -5535,9 +5535,6 @@ int __meminit init_currently_empty_zone(struct zone > *zone, > zone_start_pfn, (zone_start_pfn + size)); > > zone_init_free_lists(zone); > - zone->initialized = 1; > - > - return 0; > }

Re: [f2fs-dev] [PATCH 1/2] f2fs: write small sized IO to hot log

2017-03-30 Thread heyunlei
Hi Jaegeuk, On 2017/3/30 4:48, Jaegeuk Kim wrote: It would better split small and large IOs separately in order to get more consecutive big writes. The default threshold is set to 64KB, but configurable by sysfs/min_hot_blocks. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c| 9 +

Re: [PATCH 3/7] iommu/iova: insert start_pfn boundary of dma32

2017-03-30 Thread Leizhen (ThunderTown)
Because the problem of my email-server, all patches sent to Joerg Roedel failed. So I repost this email again. On 2017/3/24 11:43, Leizhen (ThunderTown) wrote: > > > On 2017/3/23 21:01, Robin Murphy wrote: >> On 22/03/17 06:27, Zhen Lei wrote: >>> Reserve the first granule size memory(start a

Re: [PATCH 1/7] iommu/iova: fix incorrect variable types

2017-03-30 Thread Leizhen (ThunderTown)
On 2017/3/24 10:27, Leizhen (ThunderTown) wrote: > > > On 2017/3/23 19:42, Robin Murphy wrote: >> On 22/03/17 06:27, Zhen Lei wrote: >>> Keep these four variables type consistent with the paramters of function >>> __alloc_and_insert_iova_range and the members of struct iova: >>> >>> 1. static i

[PATCH v2 0/7] iommu/iova: improve the allocation performance of dma64

2017-03-30 Thread Zhen Lei
v1 -> v2: Because the problem of my email-server, all patches sent to Joerg Roedel failed. So I repost all these patches again, there is no changes. v1: 64 bits devices is very common now. But currently we only defined a cached32_node to optimize the allocation performance of dma32, and I saw s

[PATCH v2 4/7] iommu/iova: adjust __cached_rbnode_insert_update

2017-03-30 Thread Zhen Lei
For case 2 and 3, adjust cached32_node to the new place, case 1 keep no change. For example: case1: (the right part was allocated) |--| |<-free>|<--new_iova-->| | | cached32_node case2: (all was allocated) |---

[PATCH v2 5/7] iommu/iova: to optimize the allocation performance of dma64

2017-03-30 Thread Zhen Lei
Currently we always search free iova space for dma64 begin at the last node of iovad rb-tree. In the worst case, there maybe too many nodes exist at the tail, so that we should traverse many times for the first loop in __alloc_and_insert_iova_range. As we traced, more than 10K times for the case of

[PATCH v2 3/7] iommu/iova: insert start_pfn boundary of dma32

2017-03-30 Thread Zhen Lei
Reserve the first granule size memory(start at start_pfn) as boundary iova, to make sure that iovad->cached32_node can not be NULL in future. Meanwhile, changed the assignment of iovad->cached32_node from rb_next to rb_prev of &free->node in function __cached_rbnode_delete_update. Signed-off-by: Z

[PATCH v2 1/7] iommu/iova: fix incorrect variable types

2017-03-30 Thread Zhen Lei
Keep these four variables type consistent with the paramters of function __alloc_and_insert_iova_range and the members of struct iova: 1. static int __alloc_and_insert_iova_range(struct iova_domain *iovad, unsigned long size, unsigned long limit_pfn, 2. struct iova { unsig

Re: [PATCH 1/2] virtio: allow drivers to validate features

2017-03-30 Thread Michael S. Tsirkin
On Thu, Mar 30, 2017 at 12:39:31PM -0700, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Wed, 29 Mar 2017 20:14:44 +0300 > > > Some drivers can't support all features in all configurations. At the > > moment we blindly set FEATURES_OK and later FAILED. Support this better > > by addin

[PATCH v2 6/7] iommu/iova: move the caculation of pad mask out of loop

2017-03-30 Thread Zhen Lei
I'm not sure whether the compiler can optimize it, but move it out will be better. At least, it does not require lock protection. Signed-off-by: Zhen Lei --- drivers/iommu/iova.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/iommu/iova.c b/d

[PATCH v2 2/7] iommu/iova: cut down judgement times

2017-03-30 Thread Zhen Lei
Below judgement can only be satisfied at the last time, which produced 2N judgements(suppose N times failed, 0 or 1 time successed) in vain. if ((pfn >= iova->pfn_lo) && (pfn <= iova->pfn_hi)) { return iova; } Signed-off-by: Zhen Lei --- drivers/iommu/iova.c | 9 +++-- 1 file change

[PATCH v2 7/7] iommu/iova: fix iovad->dma_32bit_pfn as the last pfn of dma32

2017-03-30 Thread Zhen Lei
To make sure iovad->cached32_node and iovad->cached64_node can exactly control dma32 and dma64 area. It also help us to remove the parameter pfn_32bit of init_iova_domain. Signed-off-by: Zhen Lei --- drivers/iommu/amd_iommu.c| 7 ++- drivers/iommu/dma-iommu.c| 22 +--

Re: Random guest crashes since 5c34d002dcc7 ("virtio_pci: use shared interrupts for virtqueues")

2017-03-30 Thread Michael S. Tsirkin
On Fri, Mar 31, 2017 at 04:23:35AM +0300, Michael S. Tsirkin wrote: > On Thu, Mar 30, 2017 at 09:20:35AM +0200, Mike Galbraith wrote: > > On Thu, 2017-03-30 at 05:10 +0200, Mike Galbraith wrote: > > > > > WRT spin, you should need do nothing more than boot with threadirqs, > > > that's 100% repeat

Re: [RESEND PATCH 2/2] sched/fair: Optimize __update_sched_avg()

2017-03-30 Thread Yuyang Du
On Thu, Mar 30, 2017 at 04:14:28PM +0200, Peter Zijlstra wrote: > On Thu, Mar 30, 2017 at 02:16:58PM +0200, Peter Zijlstra wrote: > > On Thu, Mar 30, 2017 at 04:21:08AM -0700, Paul Turner wrote: > > > > > + > > > > + if (unlikely(periods >= LOAD_AVG_MAX_N)) > > > > return LOA

Re: [PATCH v4 2/2] extable: verify address is read-only

2017-03-30 Thread Eddie Kovsky
On 03/30/17, Kees Cook wrote: > On Wed, Mar 29, 2017 at 8:27 PM, Jessica Yu wrote: > > +++ Eddie Kovsky [28/03/17 21:28 -0600]: > > > >> On 03/27/17, Kees Cook wrote: > >>> > >>> On Mon, Mar 27, 2017 at 1:43 AM, kbuild test robot wrote: > >>> > Hi Eddie, > >>> > > >>> > [auto build test ERROR on

Re: [PATCH net 00/19] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-30 Thread David Miller
From: Salil Mehta Date: Thu, 30 Mar 2017 16:30:47 +0100 > This patch set introduces various HNS bug fixes, optimizations and code > improvements. There is no way you should do such an expensive calculation for every single transmit packet as you are doing in your select_queue() routine. That's

Re: [PATCH] powerpc/time: set ->min_delta_ticks and ->max_delta_ticks

2017-03-30 Thread Michael Ellerman
Nicolai Stange writes: > In preparation for making the clockevents core NTP correction aware, > all clockevent device drivers must set ->min_delta_ticks and > ->max_delta_ticks rather than ->min_delta_ns and ->max_delta_ns: a > clockevent device's rate is going to change dynamically and thus, the

linux-next: manual merge of the tip tree with the arm64 tree

2017-03-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/arm64/include/asm/bug.h between commit: f13d52cb3fad ("arm64: define BUG() instruction without CONFIG_BUG") from the arm64 tree and commit: 19d436268dde ("debug: Add _ONCE() logic to report_bug()") from the tip tr

Re: Recommended notation for OPP to avoid DTC warnings

2017-03-30 Thread Masahiro Yamada
Hi. 2017-02-27 19:55 GMT+09:00 Viresh Kumar : > On 27-02-17, 10:44, Mark Rutland wrote: >> On Sun, Feb 26, 2017 at 02:18:03PM +0900, Masahiro Yamada wrote: >> > Hi. >> > >> > >> > Decumentation/devicetree/bindings/opp/opp.txt >> > takes examples like this: >> > >> > opp@10 { >> >

Re: [RESEND PATCH 2/2] sched/fair: Optimize __update_sched_avg()

2017-03-30 Thread Yuyang Du
On Thu, Mar 30, 2017 at 03:46:58PM +0200, Peter Zijlstra wrote: > On Thu, Mar 30, 2017 at 02:16:58PM +0200, Peter Zijlstra wrote: > > On Thu, Mar 30, 2017 at 04:21:08AM -0700, Paul Turner wrote: > > > > - The naming here is really ambiguous: > > > "__accumulate_sum" -> "__accumulate_pelt_segme

  1   2   3   4   5   6   7   8   9   10   >