Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-24 Thread Gilad Ben-Yossef
On Sun, Apr 23, 2017 at 12:48 PM, Gilad Ben-Yossef wrote: > Hi, > > Thank you for the review. > > On Thu, Apr 20, 2017 at 4:39 PM, Stephan Müller wrote: > >>> +/* The function verifies that tdes keys are not weak.*/ >>> +static int

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

2017-04-24 Thread Benjamin Herrenschmidt
On Thu, 2017-03-30 at 22:13 -0700, Sukadev Bhattiprolu wrote: > +config VAS > +   tristate "IBM Virtual Accelerator Switchboard (VAS)" CONFIG_IBM_VAS or PPC_VAS ... too high risk of collision otherwise Ben.

[PATCH] arm64: dts: rockchip: update cpu opp table for rk3399 op1

2017-04-24 Thread Caesar Wang
Update the cpu opp table for rk3399 op1. Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi

Re: Doubt on first access for PCIe device

2017-04-24 Thread abhijit
Hi Lorenzo, Yes that's true.. My question is: what if EP function default completer ID means BDF has values = 0(meaning B = 0, D = 0, f = 0) and Root complex requester ID also has same BDF, that is 0. Is that valid case as per PCIe standard, as in this case, requester ID and completion ID

Re: [PATCH v3 09/11] x86/xen: use capabilities instead of fake cpuid values for xsave

2017-04-24 Thread Juergen Gross
On 21/04/17 16:51, Boris Ostrovsky wrote: > On 04/21/2017 10:45 AM, Andrew Cooper wrote: >> On 21/04/17 15:38, Juergen Gross wrote: >>> On 21/04/17 16:24, Boris Ostrovsky wrote: > +static bool __init xen_check_xsave(void) > { > - unsigned int ax, bx, cx, dx; > - unsigned int

linux-next: build failure after merge of the nvdimm tree

2017-04-24 Thread Stephen Rothwell
Hi Dan, After merging the nvdimm tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/nvdimm/x86.c: In function 'pmem_from_user': drivers/nvdimm/x86.c:115:11: error: implicit declaration of function '__copy_from_user_nocache' [-Werror=implicit-function-declaration]

qemu-kvm hangs with DAX

2017-04-24 Thread Yigal Korman
This is a re-post, I didn't send it to all relevant mailing lists before... Original below. Hi everyone, I have an interesting issue with DAX and KVM - I'm trying to boot a VM with its memory mapped to a DAX-mounted file (kernel 4.9). The use case is a bit wacky but I'm trying to recreate

Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-24 Thread Stephan Müller
Am Montag, 24. April 2017, 08:06:09 CEST schrieb Gilad Ben-Yossef: Hi Gilad, > > Well, it turns out there is and we do :-) > > This is from crypto/des_generic.c: > > /* > * RFC2451: > * > * For DES-EDE3, there is no known need to reject weak or > * complementation keys. Any weakness

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-24 Thread Paul E. McKenney
On Mon, Apr 24, 2017 at 07:24:44AM +0200, Mike Galbraith wrote: > On Sun, 2017-04-23 at 20:32 -0700, Paul E. McKenney wrote: > > On Mon, Apr 24, 2017 at 04:48:09AM +0200, Mike Galbraith wrote: > > > Greetings, > > > > > > Running Steven's hotplug stress script in tip w. CLASSIC_SRCU takes 55s > >

Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-24 Thread Stephan Müller
Am Montag, 24. April 2017, 08:16:50 CEST schrieb Stephan Müller: Hi Gilad, > > > > int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key, > > > > unsigned int keylen) > > > > However, this does not check that k1 == k3. In this case DES3 > > becomes 2DES (2-keys

[PATCH 1/6] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-04-24 Thread Gerd Hoffmann
It's unused. Suggested-by: Daniel Vetter Signed-off-by: Gerd Hoffmann --- include/uapi/drm/drm_fourcc.h | 2 -- drivers/gpu/drm/drm_fourcc.c | 3 +-- drivers/gpu/drm/drm_framebuffer.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-)

[PATCH 6/6] drm: fourcc byteorder: virtio restrict to XRGB8888

2017-04-24 Thread Gerd Hoffmann
While wading through the code I've noticed we have a little issue in virtio: We attach a format to the bo when it is created (DRM_IOCTL_MODE_CREATE_DUMB), not when we map it as framebuffer (DRM_IOCTL_MODE_ADDFB). Easy way out: support a single format only. Signed-off-by: Gerd Hoffmann

[PATCH 5/6] drm: fourcc byteorder: adapt virtio to drm_mode_legacy_fb_format update

2017-04-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_gem.c | 2 +- drivers/gpu/drm/virtio/virtgpu_plane.c | 31 --- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_gem.c

[PATCH 2/6] drm: fourcc byteorder: add DRM_FORMAT_CPU_*

2017-04-24 Thread Gerd Hoffmann
Add fourcc variants in cpu byte order. With these at hand we don't need #ifdefs in drivers want support framebuffers in cpu endianess. Signed-off-by: Gerd Hoffmann --- include/drm/drm_fourcc.h | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 3/6] drm: fourcc byteorder: add bigendian support to drm_mode_legacy_fb_format

2017-04-24 Thread Gerd Hoffmann
Return correct fourcc codes on bigendian. Drivers must be adapted to this change. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/drm_fourcc.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c

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

2017-04-24 Thread Benjamin Herrenschmidt
On Thu, 2017-03-30 at 22:13 -0700, Sukadev Bhattiprolu wrote: > > + p = of_get_property(dn, "vas-id", NULL); > + if (!p) { > + pr_err("VAS: NULL vas-id? %p\n", p); > + return -ENODEV; > + } > + > + vinst->vas_id = of_read_number(p, 1);

[PATCH 4/6] drm: fourcc byteorder: adapt bochs-drm to drm_mode_legacy_fb_format update

2017-04-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c index 857755ac2d..781d35bdff 100644 --- a/drivers/gpu/drm/bochs/bochs_mm.c

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

2017-04-24 Thread Benjamin Herrenschmidt
On Thu, 2017-03-30 at 22:13 -0700, Sukadev Bhattiprolu wrote: > +static void *map_mmio_region(char *name, uint64_t start, int len) > +{ > +   void *map; > + > +   if (!request_mem_region(start, len, name)) { > +   pr_devel("%s(): request_mem_region(0x%llx, %d) failed\n", > +

linux-next: manual merge of the akpm-current tree with the kselftest tree

2017-04-24 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: tools/testing/selftests/vm/run_vmtests between commit: ff80d9152fd7 ("selftests/vm/run_vmtests: Fix wrong comment") from the kselftest tree and commit: 7b7c7dac4437 ("userfaultfd: selftest: combine all

Re: [PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-24 Thread Michel Dänzer
On 23/04/17 04:24 AM, Ilia Mirkin wrote: > > fbdev also creates fb's that expect cpu endianness, as disabling the > byteswap logic caused a green fbcon terminal to show up. (So at least > something somewhere in the fbcon -> nouveau's fbdev emulation pipeline > is expecting cpu endianness. This

Re: [PATCH] scsi: mvumi: remove code handling zero scsi_sg_count(scmd) case

2017-04-24 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig Note that there is plenty opportunity for cleanup even in the moved code section, but let's get this issue sorted out only for now.

Re: [lkp-robot] [debugfs] f3e7155d08: BUG:unable_to_handle_kernel

2017-04-24 Thread Ye Xiaolong
On 04/23, Nicolai Stange wrote: >Hi Xiaolong, > >I'm encountering some difficulties running the reproducer, see below. >Any help is very welcome! > Thanks for watching the report and trying the reproducer. > >On Tue, Apr 18 2017, kernel test robot wrote: > >> [ 45.772683] BUG: unable to handle

Re: [PATCH v2 2/2] drm: dw-hdmi: gate audio clock from the I2S enablement callbacks

2017-04-24 Thread Romain Perier
Hello, Le 19/04/2017 à 06:51, Archit Taneja a écrit : > > > On 04/14/2017 02:01 PM, Romain Perier wrote: >> Currently, the audio sampler clock is enabled from dw_hdmi_setup() at >> step E. and is kept enabled for later use. This clock should be enabled >> and disabled along with the actual audio

Re: [PATCH v3 07/29] x86: bpf_jit, use ENTRY+ENDPROC

2017-04-24 Thread Jiri Slaby
On 04/21/2017, 09:32 PM, Alexei Starovoitov wrote: > On Fri, Apr 21, 2017 at 04:12:43PM +0200, Jiri Slaby wrote: >> Do not use a custom macro FUNC for starts of the global functions, use >> ENTRY instead. >> >> And while at it, annotate also ends of the functions by ENDPROC. >> >> Signed-off-by:

Re: [PATCH -mm -v3] mm, swap: Sort swap entries before free

2017-04-24 Thread Huang, Ying
Minchan Kim writes: > On Fri, Apr 21, 2017 at 08:29:30PM +0800, Huang, Ying wrote: >> "Huang, Ying" writes: >> >> > Minchan Kim writes: >> > >> >> On Wed, Apr 19, 2017 at 04:14:43PM +0800, Huang, Ying wrote: >> >>> Minchan Kim

linux-next: manual merge of the akpm-current tree with the nvdimm tree

2017-04-24 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/dax.c between commit: 52d52d6f1178 ("filesystem-dax: convert to dax_direct_access()") from the nvdimm tree and commit: a865ea3e58c4 ("dax: add tracepoints to dax_writeback_mapping_range()")

Re: [PATCH] hwmon: tmp103: use SIMPLE_DEV_PM_OPS helper macro

2017-04-24 Thread Rahul Bedarkar
Hello Guenter, Heiko, On Mon, Apr 24, 2017 at 9:28 AM, Heiko Schocher wrote: > Hello Guenter, Rahul, > > Hmm.. I like this patch too, but have also no idea, what is preffered. > > Looking into drivers/hwmon > > pollux:linux hs [master] $ grep -lr __maybe_unused drivers/hwmon/ >

Fix English in description of GCC_PLUGIN_STRUCTLEAK

2017-04-24 Thread Jean Delvare
Signed-off-by: Jean Delvare Fixes: c61f13eaa1ee ("gcc-plugins: Add structleak for more stack initialization") Cc: Kees Cook --- arch/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-4.11-rc8.orig/arch/Kconfig2017-04-03

Re: [PATCH v2 3/3] Documentation/kernel-parameters.txt: Update 'memmap=' option description

2017-04-24 Thread Baoquan He
On 04/24/17 at 11:53am, Dou Liyang wrote: > > > At 04/24/2017 10:40 AM, Baoquan He wrote: > > In commit: > > > > 9710f581bb4c ("x86, mm: Let "memmap=" take more entries one time") > > > > ... 'memmap=' was changed to adopt multiple, comma delimited values in a > > single entry, so update the

Re: [PATCH v2 2/2] drm: dw-hdmi: gate audio clock from the I2S enablement callbacks

2017-04-24 Thread Romain Perier
Hello, > Took the liberty of going ahead with the fixes. Queued both patches to > drm-misc-next. > > Thanks, > Archit You were right. Sorry for the delay, I am back from vacations :) Regards, Romain

Re: [PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-24 Thread Michel Dänzer
On 22/04/17 07:05 PM, Ville Syrjälä wrote: > On Fri, Apr 21, 2017 at 06:14:31PM +0200, Gerd Hoffmann wrote: >> Hi, >> My personal opinion is that formats in drm_fourcc.h should be independent of the CPU byte order and the function drm_mode_legacy_fb_format() and drivers

[BUG] x86: failed to boot a kernel on a Ryzen machine

2017-04-24 Thread Satoru Takeuchi
Recently I bought a new Ryzen machine. When I tried to test v4.11-rc8 on it, it failed to boot with the following panic log. ``` ... [0.227720] raid6: sse2x1 gen() 7985 MB/s [0.295709] raid6: sse2x1 xor() 8181 MB/s [0.363706] raid6: sse2x2 gen() 17531 MB/s [0.431699]

Re: [lkp-robot] [mtd] 42e9401bd1: WARNING:at_kernel/locking/lockdep.c:#__bfs

2017-04-24 Thread Uwe Kleine-König
Hello, On Tue, Apr 11, 2017 at 09:47:29AM +0800, kernel test robot wrote: > > FYI, we noticed the following commit: > > commit: 42e9401bd1467d22c4dc4d2c637347b874e6a80b ("mtd: Add partition device > node to mtd partition devices") >

Re: [PATCH] libnvdimm, region: sysfs trigger for nvdimm_flush()

2017-04-24 Thread Dan Williams
On Sun, Apr 23, 2017 at 10:31 PM, Masayoshi Mizuma wrote: > On Fri, 21 Apr 2017 16:48:57 -0700 Dan Williams wrote: >> The nvdimm_flush() mechanism helps to reduce the impact of an ADR >> (asynchronous-dimm-refresh) failure. The ADR mechanism handles flushing >> platform

Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-24 Thread Gilad Ben-Yossef
On Mon, Apr 24, 2017 at 9:16 AM, Stephan Müller wrote: > Am Montag, 24. April 2017, 08:06:09 CEST schrieb Gilad Ben-Yossef: > > Hi Gilad, >> >> Well, it turns out there is and we do :-) >> >> This is from crypto/des_generic.c: >> >> /* >> * RFC2451: >> * >> * For

[PATCH 1/2] net: team: fix memory leak in team_nl_send_port_list_get

2017-04-24 Thread Pan Bian
In function team_nl_send_port_list_get(), pointer skb keeps the return value of nlmsg_new(). When the call to genlmsg_put() fails, the memory is not freed. This will result in a memory leak bug. This patch fixes it. Fixes: fbd69cda90e7 ("team: fix memory leak") Signed-off-by: Pan Bian

[PATCH 2/2] net: team: fix memory leak in team_nl_send_options_get

2017-04-24 Thread Pan Bian
In function team_nl_send_options_get(), pointer skb keeps the return value of function nlmsg_new(). When the call to genlmsg_put() fails, the control flow directly returns and does not free skb. This will result in a memory leak bug. This patch fixes it. Fixes: 8ea7fd0d8792 ("team: fix memory

Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-24 Thread Gilad Ben-Yossef
On Mon, Apr 24, 2017 at 9:21 AM, Stephan Müller wrote: > Am Montag, 24. April 2017, 08:16:50 CEST schrieb Stephan Müller: > > Hi Gilad, > >> > >> > int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key, >> > >> > unsigned int keylen) >> > >> >

Re: [PATCH 2/2] net: team: fix memory leak in team_nl_send_options_get

2017-04-24 Thread Jiri Pirko
Mon, Apr 24, 2017 at 09:04:55AM CEST, bianpan2...@163.com wrote: >In function team_nl_send_options_get(), pointer skb keeps the return >value of function nlmsg_new(). When the call to genlmsg_put() fails, the >control flow directly returns and does not free skb. This will result in >a memory leak

Re: [PATCH] tty/serial: atmel: use offset_in_page() macro

2017-04-24 Thread Richard Genoud
On 22/04/2017 03:21, Geliang Tang wrote: > Use offset_in_page() macro instead of open-coding. > > Signed-off-by: Geliang Tang > --- > drivers/tty/serial/atmel_serial.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Your e-mail won $5,000,000.00

2017-04-24 Thread Congratulations
-- Congratulations: Your E-MAIL ACCOUNT has won the sum of $5,000,000.00USD (Five Million United States Dollars) in the on-going Facebook online award promo. Your Ticket number is 00545 188 564756. All participant were selected through a computer random integrated system drawn in 27 million

[PATCH] virtio_blk: Fix English in description of VIRTIO_BLK_SCSI

2017-04-24 Thread Jean Delvare
Signed-off-by: Jean Delvare Fixes: 97b50a654d5d ("virtio_blk: make SCSI passthrough support configurable") Cc: Christoph Hellwig Cc: Jens Axboe --- drivers/block/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---

Re: tango_nand: is logic right in error cases? (was Re: fsl_ifc_nand: are blank pages protected by ECC?)

2017-04-24 Thread Boris Brezillon
On Sun, 23 Apr 2017 11:58:45 +0200 Pavel Machek wrote: > Hi! > > > > Maybe I figured it out. Unfortunately, it is only compile tested. Does > > > it look approximately right? > > > > Yep that's definitely better. Just one thing missing (see below), > > otherwise it looks good.

Re: [linux-sunxi] Re: [PATCH v3 02/12] arm64: allwinner: a64: add NMI controller on A64

2017-04-24 Thread Maxime Ripard
On Thu, Apr 20, 2017 at 03:03:38PM +0800, icen...@aosc.io wrote: > 在 2017-04-20 13:58,Maxime Ripard 写道: > > On Tue, Apr 18, 2017 at 06:56:43PM +0800, Icenowy Zheng wrote: > > > > > > > > > 于 2017年4月18日 GMT+08:00 下午3:00:16, Maxime Ripard > > > 写到: > > > >On Mon,

Re: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-04-24 Thread Pali Rohár
On Monday 24 April 2017 08:34:08 Pan Bian wrote: > Function devm_kzalloc() will return a NULL pointer. However, in function > isp1704_charger_probe(), the return value of devm_kzalloc() is directly > used without validation. This may result in a bad memory access bug. > > Signed-off-by: Pan Bian

[lkp-robot] [trace/perf] 24db7a671b: WARNING:at_kernel/cpu.c:#lockdep_assert_hotplug_held

2017-04-24 Thread kernel test robot
FYI, we noticed the following commit: commit: 24db7a671bd5eea76b17138b976eb9a4072f1b7a ("trace/perf: Cure hotplug lock ordering issues") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git smp/hotplug in testcase: boot on test machine: qemu-system-i386 -enable-kvm -m 256M caused below

Re: [PATCH] virtio_blk: Fix English in description of VIRTIO_BLK_SCSI

2017-04-24 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-24 Thread Stephan Müller
Am Montag, 24. April 2017, 09:04:13 CEST schrieb Gilad Ben-Yossef: Hi Gilad, > > Thanks you for the clarification. As I think is obvious by now I am > not a FIPS expert by any stretch. > > Isn't the requirements on DRBG or KDF invocations pertain to key > generation only? > What happens if you

Re: [PATCH v2] usb: core: Warn if an URB's transfer_buffer is on stack

2017-04-24 Thread Clemens Ladisch
Florian Fainelli wrote: > We see a large number of fixes to several drivers to remove the usage of > on-stack buffers feeding into USB transfer functions. Make it easier to spot > the offenders by adding a warning in usb_hcd_map_urb_for_dma() checking that > urb->transfer_buffer is not a stack

Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-24 Thread Stephan Müller
Am Montag, 24. April 2017, 09:07:45 CEST schrieb Gilad Ben-Yossef: Hi Gilad, > I guess we could change the function to indicate that a key is valid > for decryption but not encryption > and have the implementation limiting based on that if there is an > interest in SP800-131A compliance. I

linux-next: manual merge of the akpm-current tree with Linus' tree

2017-04-24 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: mm/page_alloc.c between commit: d34b0733b452 ("Revert "mm, page_alloc: only use per-cpu allocator for irq-safe requests"") from Linus' tree and commit: f4881295a79e ("mm, page_alloc: re-enable softirq use

Re: [PATCH] driver-core: remove lock for platform devices during probe

2017-04-24 Thread Greg Kroah-Hartman
On Mon, Apr 24, 2017 at 01:42:16PM +0800, Wei Li wrote: > During driver probe procedure, lock on the parent of > platform devices could be removed to make probe in > parallel. > > Signed-off-by: Wei Li Why? Why does this matter? > --- > drivers/base/dd.c | 6 -- > 1

[PATCH] dm verity: deferred hash checking for restart/logging mode

2017-04-24 Thread Bongkyu Kim
This patch introduces deferred hash checking for dm-verity. In case of restart and logging mode, I/O return first and hash checking is deferred. It can improve dm-verity's performance greatly. This is my testing on qualcomm snapdragon 821 platform with UFS 2.0. dd if=/dev/block/dm-0 of=/dev/null

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-24 Thread Mike Galbraith
On Sun, 2017-04-23 at 23:22 -0700, Paul E. McKenney wrote: > Could you please collect an ftrace (or whatever) showing the timestamp > sequence of calls to synchronize_srcu(), synchronize_srcu_expedited(), > and call_srcu() during the execution of the stress script? If it is easy > to do, also

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-24 Thread Knut Omang
On Mon, 2017-04-17 at 08:31 +1000, Benjamin Herrenschmidt wrote: > On Sun, 2017-04-16 at 10:34 -0600, Logan Gunthorpe wrote: > >  > > On 16/04/17 09:53 AM, Dan Williams wrote: > > > ZONE_DEVICE allows you to redirect via get_dev_pagemap() to retrieve > > > context about the physical address in

Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer

2017-04-24 Thread Pavel Machek
On Sun 2017-04-23 21:42:54, David Lin wrote: > This patch replaces the kernel timer used by led transient trigger as an > one-shot timer with an hrtimer. As Android is moving away from the > obsoleted timed_output to ledtrig-transient for the vibrator HAL, > ledtrig-transient needs to be able to

Re: [PATCH v3 11/20] cifs: set mapping error when page writeback fails in writepage or launder_pages

2017-04-24 Thread Christoph Hellwig
On Mon, Apr 24, 2017 at 09:22:50AM -0400, Jeff Layton wrote: > Signed-off-by: Jeff Layton > --- > fs/cifs/file.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/fs/cifs/file.c b/fs/cifs/file.c > index 21d404535739..4b696a23b0b1 100644 >

Re: [PATCH v3 07/29] x86: bpf_jit, use ENTRY+ENDPROC

2017-04-24 Thread David Miller
From: Jiri Slaby Date: Mon, 24 Apr 2017 17:41:06 +0200 > On 04/24/2017, 05:08 PM, David Miller wrote: >> If you align the entry points, then the code sequence as a whole is >> are no longer densely packed. > > Sure. > >> Or do I misunderstand how your macros work? > > Perhaps.

Re: [PATCH] KVM: nVMX: fix AD condition when handling EPT violation

2017-04-24 Thread Radim Krčmář
2017-04-14 13:10+0800, Paolo Bonzini: > More important: did kvm-unit-test catch the bug? It did; the bright side. :)

Re: [PATCH v3 09/20] 9p: set mapping error when writeback fails in launder_page

2017-04-24 Thread Jan Kara
On Mon 24-04-17 09:22:48, Jeff Layton wrote: > launder_page is just writeback under the page lock. We still need to > mark the mapping for errors there when they occur. > > Signed-off-by: Jeff Layton Looks good. You can add: Reviewed-by: Jan Kara

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread Catalin Marinas
On Mon, Apr 24, 2017 at 04:40:23PM +0100, Will Deacon wrote: > On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: > > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > > > On 18 April 2017 at 18:01, Catalin Marinas > > > wrote: > > > > On

[PATCH v2 17/18] ASoC: cs47l85: Add codec driver for Cirrus Logic CS47L85

2017-04-24 Thread Richard Fitzgerald
Adds the codec driver for the CS47L85 SmartCodec. This is a multi-functional codec based on the Cirrus Logic Madera platform. Signed-off-by: Nariman Poushin Signed-off-by: Charles Keepax Signed-off-by: Richard Fitzgerald

[PATCH v2 03/18] dt-bindings: mfd: Add bindings for Cirrus Logic Madera codecs

2017-04-24 Thread Richard Fitzgerald
Specification of the bindings for the parent MFD driver component of the Cirrus Logic Madera codec drivers. Signed-off-by: Richard Fitzgerald --- Changes since V1: - split out from main MFD patch - moved interrupt control binding descriptions into here - added

Re: [v10, 2/2] Documentation/ABI: Add ABI information for QCOM socinfo driver

2017-04-24 Thread Rob Herring
On Mon, Apr 24, 2017 at 11:00 AM, Imran Khan wrote: > On 4/18/2017 7:53 PM, Imran Khan wrote: > Hi Rob, > Could you please provide some feedback so that this discussion can move > forward > and ABI document can be finalized? > Without the ABI document we are not able to

Re: [PATCH 1/2] gpio: move tca9554 from pcf857x to pca953x

2017-04-24 Thread Linus Walleij
On Fri, Apr 21, 2017 at 2:46 PM, Anders Darander wrote: > The TCA9554 doesn't work with the pcf857x driver, trying to change the > direction > gives a NAK bailout error. > > TCA9554 is similar to the PCA9554, thus change the driver. > > Signed-off-by: Anders Darander

Re: [PATCH v2 01/12] IB/ocrdma: Use kcalloc() in ocrdma_mbx_alloc_pd_range()

2017-04-24 Thread Devesh Sharma
Acked-By: Devesh Sharma On Sat, Apr 22, 2017 at 8:00 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 22 Apr 2017 11:33:25 +0200 > > * Multiplications for the size determination of memory

Re: [PATCH perf/urgent] perf tools: Fix the code to strip command name

2017-04-24 Thread Arnaldo Carvalho de Melo
Em Mon, Apr 24, 2017 at 06:06:45PM +0200, Jiri Olsa escreveu: > On Mon, Apr 24, 2017 at 12:44:50PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Apr 20, 2017 at 11:24:30AM +0200, Jiri Olsa escreveu: > > > Recent commit broke command name strip in perf_event__get_comm_ids > > > function. It

Re: [PATCH] clk: at91: Add sama5d2 suspend/resume

2017-04-24 Thread Nicolas Ferre
Le 14/04/2017 à 23:56, Alexandre Belloni a écrit : > On sama5d2, VDD core maybe be cut while in suspend. This means registers > will be lost. Ensure they are saved and restored properly. I'm pretty sure we can't just restore them like you do. But the bootloader must have restored the registers

Re: [PATCH] ARM: at91/at91-pinctrl documentation: fix spelling mistake: "contoller" -> "controller"

2017-04-24 Thread Linus Walleij
On Fri, Apr 21, 2017 at 2:07 PM, Colin King wrote: > From: Colin Ian King > > trivial fix to spelling mistake in documentation > > Signed-off-by: Colin Ian King Patch applied with Nico's ACK. Yours, Linus Walleij

Re: [PATCH v4 net-next] mdio_bus: Issue GPIO RESET to PHYs.

2017-04-24 Thread Florian Fainelli
On 04/24/2017 02:04 AM, Roger Quadros wrote: > On 24/04/17 02:35, Andrew Lunn wrote: >> On Fri, Apr 21, 2017 at 03:31:09PM +0200, Lars-Peter Clausen wrote: >>> On 04/21/2017 03:15 PM, Roger Quadros wrote: diff --git a/Documentation/devicetree/bindings/net/mdio.txt

Re: [PATCH v3 07/29] x86: bpf_jit, use ENTRY+ENDPROC

2017-04-24 Thread Alexei Starovoitov
On Mon, Apr 24, 2017 at 06:02:51PM +0200, Jiri Slaby wrote: > On 04/24/2017, 05:55 PM, Ingo Molnar wrote: > > * Jiri Slaby wrote: > > > >> On 04/24/2017, 05:08 PM, David Miller wrote: > >>> If you align the entry points, then the code sequence as a whole is > >>> are no longer

Re: [RFC] x86/tboot: add an option to disable iommu force on

2017-04-24 Thread Shaohua Li
Hi Joerg, Is Ning's answer sufficient to justify merging the patch? Thanks, Shaohua On Mon, Apr 10, 2017 at 09:28:46PM +, Sun, Ning wrote: > From tboot perspective, it is ok to add the option "tboot_noforce" to Linux > kernel Intel_iommu parameter for those performance hungry tboot users,

Re: [PATCH] libnvdimm, region: sysfs trigger for nvdimm_flush()

2017-04-24 Thread Linda Knippers
On 04/21/2017 07:48 PM, Dan Williams wrote: > The nvdimm_flush() mechanism helps to reduce the impact of an ADR > (asynchronous-dimm-refresh) failure. The ADR mechanism handles flushing > platform WPQ (write-pending-queue) buffers when power is removed. The > nvdimm_flush() mechanism performs that

Re: [PATCH] drm/etnaviv: add thermal dependency

2017-04-24 Thread Arnd Bergmann
On Mon, Apr 24, 2017 at 12:44 PM, Lucas Stach wrote: > Am Mittwoch, den 19.04.2017, 20:11 +0200 schrieb Arnd Bergmann: >> When CONFIG_THERMAL is enabled as a loadable module, and etnaviv is >> built-in, we get a link error: >> >> drivers/gpu/drm/etnaviv/etnaviv_gpu.o: In

[PATCH v2] V4L2 SDR: Add Real U8 format (V4L2_SDR_FMT_RU8)

2017-04-24 Thread Bertold Van den Bergh
This patch adds support for the Real U8 format to the V4L2 SDR framework. Signed-off-by: Bertold Van den Bergh --- Thanks for your comments. I was not aware of the V4L format documentation. I don't think there is a clear natural ordering for these types of formats, but I

Re: [PATCH] libnvdimm, region: sysfs trigger for nvdimm_flush()

2017-04-24 Thread Jeff Moyer
Dan Williams writes: > [ adding Christoph ] > > On Mon, Apr 24, 2017 at 9:43 AM, Jeff Moyer wrote: >> Dan Williams writes: >> >>> On Mon, Apr 24, 2017 at 9:26 AM, Jeff Moyer wrote: Dan Williams

[PATCH 0/3 v2] xen: Implement EFI reset_system callback

2017-04-24 Thread Julien Grall
Hi all, This small patch series implements EFI reset_system callback when using EFI Xen. Without this, it will not be possible to reboot/power off ARM64 DOM0 when using ACPI. Cheers, Cc: Boris Ostrovsky Cc: Juergen Gross Julien Grall (3): xen:

Re: [PATCH] net: atheros: atl1: use offset_in_page() macro

2017-04-24 Thread David Miller
From: Geliang Tang Date: Sat, 22 Apr 2017 09:21:10 +0800 > Use offset_in_page() macro instead of open-coding. > > Signed-off-by: Geliang Tang Applied, thanks.

[PATCH v7 5/5] i2c: aspeed: added slave support for Aspeed I2C driver

2017-04-24 Thread Brendan Higgins
Added slave support for Aspeed I2C controller. Supports fourteen busses present in AST24XX and AST25XX BMC SoCs by Aspeed. Signed-off-by: Brendan Higgins --- Added in v6: - Pulled slave support out of initial driver commit into its own commit. - No longer

[PATCH v7 3/5] i2c: aspeed: added documentation for Aspeed I2C driver

2017-04-24 Thread Brendan Higgins
Added device tree binding documentation for Aspeed I2C busses. Signed-off-by: Brendan Higgins --- Changes for v2: - None Changes for v3: - Removed reference to "bus" device tree param Changes for v4: - None Changes for v5: - None Changes for v6: - Replaced

Re: PATCH drivers:net:cris/eth_v10: alternate string char arrary

2017-04-24 Thread David Miller
From: Karim Eshapa Date: Mon, 24 Apr 2017 19:49:39 +0200 > static char pointer creates two variables in final assembly. > static string and pointer to it according to > Jeff Garzik janitors TODO. > > Signed-off-by: Karim Eshapa Instead of

Re: [PATCH v3 05/20] orangefs: don't call filemap_write_and_wait from fsync

2017-04-24 Thread Mike Marshall
I've been running it here... Acked-by: Mike Marshall On Mon, Apr 24, 2017 at 11:23 AM, Christoph Hellwig wrote: > Looks fine, > > Reviewed-by: Christoph Hellwig

Re: [PATCH v3 06/20] dax: set errors in mapping when writeback fails

2017-04-24 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH] platform/x86: asus-wmi: fix cpufv sysfs file permission

2017-04-24 Thread Jérémy Lefaure
On Mon, 24 Apr 2017 12:14:14 +0300 Andy Shevchenko wrote: > On Sat, Apr 22, 2017 at 5:19 AM, Jérémy Lefaure > wrote: > > The cpufv sysfs file is defined as readable by anyone even if the > > attribute does not have a show function. The

[patch v4 resend 0/2] Extend kcmp for epoll sake

2017-04-24 Thread Cyrill Gorcunov
Hi! Take a look please on the series, should be fine by now. The man page I've been sedning previously is not changed anyhow so to not spam I don't send it again. If needed I'll post it separately. Cyrill

Re: [PATCH v3 04/20] fs: check for writeback errors after syncing out buffers in generic_file_fsync

2017-04-24 Thread Jan Kara
On Mon 24-04-17 09:22:43, Jeff Layton wrote: > ext2 currently does a test+clear of the AS_EIO flag, which is > is problematic for some coming changes. > > What we really need to do instead is call filemap_check_errors > in __generic_file_fsync after syncing out the buffers. That > will be

Re: [PATCH 1/2] perf tools: Guard _GNU_SOURCE in pmu-events/jevents.c

2017-04-24 Thread Tony Jones
On 04/24/2017 06:05 AM, Andi Kleen wrote: > On Sun, Apr 23, 2017 at 09:26:32PM -0700, Tony Jones wrote: >> Guard _GNU_SOURCE (as done in pt-decoder/intel-pt-decoder.c) to prevent >> possible redefinition error. > > Who defines it? > > If it's always defined somewhere else it can be just

Re: [PATCH] hwmon: tmp103: use SIMPLE_DEV_PM_OPS helper macro

2017-04-24 Thread Guenter Roeck
On Mon, Apr 24, 2017 at 05:58:18AM +0200, Heiko Schocher wrote: > Hello Guenter, Rahul, > > Am 23.04.2017 um 17:43 schrieb Guenter Roeck: > >Hi Rahul, > > > >On 04/23/2017 07:10 AM, Rahul Bedarkar wrote: > >>Replace ifdefs with SIMPLE_DEV_PM_OPS helper macro. > >> > >>Signed-off-by: Rahul

Re: [PATCH v2 3/3] fs: ubifs: set s_uuid in super block

2017-04-24 Thread Richard Weinberger
Oleksij, Am 12.04.2017 um 09:15 schrieb Oleksij Rempel: > On Tue, Apr 11, 2017 at 10:48:28PM -0700, Christoph Hellwig wrote: >> On Tue, Apr 11, 2017 at 10:43:26PM +0200, Richard Weinberger wrote: >>> Artem, do you remember why UBIFS didn't set s_uuid in first place? >> >> It's an extremely odd

Re: [PATCH v2 6/7] ARM: Kconfig: Introduce MACH_STM32F469 flag

2017-04-24 Thread Alexandre Torgue
Hi On 04/24/2017 02:30 PM, Linus Walleij wrote: On Fri, Apr 7, 2017 at 2:43 PM, Alexandre TORGUE wrote: This patch introduces the MACH_STM32F469 to make possible to only select STM32F469 pinctrl driver By default, all the MACH_STM32Fxxx flags will be set with STM32

Re: [PATCH] x86: kvm: Avoid guest page table walk when gpa_available is set

2017-04-24 Thread Brijesh Singh
On 04/24/2017 10:52 AM, Brijesh Singh wrote: On AMD hardware when a guest causes a NFP which requires emulation, Just realized a typo in patch description, s/NFP/NPF the vcpu->arch.gpa_available flag is set to indicate that cr2 contains a valid GPA. Currently,

[PATCH v2 3/4] mm/truncate: bail out early from invalidate_inode_pages2_range() if mapping is empty

2017-04-24 Thread Andrey Ryabinin
If mapping is empty (both ->nrpages and ->nrexceptional is zero) we can avoid pointless lookups in empty radix tree and bail out immediately after cleancache invalidation. Signed-off-by: Andrey Ryabinin Acked-by: Konrad Rzeszutek Wilk ---

Re: [PATCH 1/4] pinctrl: stm32: set pin to gpio input when used as interrupt

2017-04-24 Thread Alexandre Torgue
Hi Linus, On 04/24/2017 02:36 PM, Linus Walleij wrote: On Fri, Apr 7, 2017 at 5:10 PM, Alexandre TORGUE wrote: This patch ensures that pin is correctly set as gpio input when it is used as an interrupt. Signed-off-by: Alexandre TORGUE

[PATCH v2 1/4] fs: fix data invalidation in the cleancache during direct IO

2017-04-24 Thread Andrey Ryabinin
Some direct IO write fs hooks call invalidate_inode_pages2[_range]() conditionally iff mapping->nrpages is not zero. This can't be right, because invalidate_inode_pages2[_ragne]() also invalidate data in the cleancache via cleancache_invalidate_inode() call. So if page cache is empty but there is

[PATCH v2 2/4] fs/block_dev: always invalidate cleancache in invalidate_bdev()

2017-04-24 Thread Andrey Ryabinin
invalidate_bdev() calls cleancache_invalidate_inode() iff ->nrpages != 0 which doen't make any sense. Make sure that invalidate_bdev() always calls cleancache_invalidate_inode() regardless of mapping->nrpages value. Fixes: c515e1fd361c ("mm/fs: add hooks to support cleancache") Signed-off-by:

Re: [RFC] minimum gcc version for kernel: raise to gcc-4.3 or 4.6?

2017-04-24 Thread Maciej W. Rozycki
On Mon, 24 Apr 2017, Arnd Bergmann wrote: > > If there's no real good reason (brokenness) to deprecate gcc-4.1, I would > > not > > do it.I guess most people using old compilers know what they're doing. > > What I'm trying to find out first is whether "people regularly using 10+ > year old

Re: [PATCH 4/4] KVM: x86: enable configurable MAX_VCPU

2017-04-24 Thread Radim Krčmář
2017-04-19 10:08+0200, Christian Borntraeger: > On 04/13/2017 10:19 PM, Radim Krčmář wrote: >> The only user of KVM_MAX_VCPU is switched to kvm->max_vcpu. >> >> The limit could have been INT_MAX as it makes no difference, but there >> is no point in making it bigger than KVM_MAX_VCPU_ID. >> >>

Re: [PATCH v1 1/1] srcu-cbmc: Use /usr/bin/awk instead of /bin/awk

2017-04-24 Thread Paul E. McKenney
On Mon, Apr 24, 2017 at 08:02:10AM -0600, Shuah Khan wrote: > On 04/22/2017 11:17 AM, priyalee.kushw...@intel.com wrote: > > From: Priyalee Kushwaha > > > > Most OS distribution have awk in /usr/bin not in /bin > > Without this patch, kernel-devsrc fails to build as

Re: [RFC] minimum gcc version for kernel: raise to gcc-4.3 or 4.6?

2017-04-24 Thread Arnd Bergmann
On Mon, Apr 24, 2017 at 6:53 PM, Maciej W. Rozycki wrote: > On Mon, 24 Apr 2017, Arnd Bergmann wrote: > >> > If there's no real good reason (brokenness) to deprecate gcc-4.1, I would >> > not >> > do it.I guess most people using old compilers know what they're doing. >> >>

Re: [PATCH] arm64: Add ASM modifier for xN register operands

2017-04-24 Thread Will Deacon
On Mon, Apr 24, 2017 at 06:22:51PM +0100, Ard Biesheuvel wrote: > On 24 April 2017 at 18:00, Will Deacon wrote: > > Hi Matthias, > > > > On Thu, Apr 20, 2017 at 11:30:53AM -0700, Matthias Kaehlcke wrote: > >> Many inline assembly statements don't include the 'x' modifier when

  1   2   3   4   5   6   7   8   9   10   >