Re: [PATCH] vfs: introduce UMOUNT_WAIT which waits for umount completion

2017-09-16 Thread Amir Goldstein
On Sat, Sep 16, 2017 at 1:12 AM, Theodore Ts'o wrote: > On Fri, Sep 15, 2017 at 11:44:33AM -0700, Jaegeuk Kim wrote: >> >> So, I digged it in more detail, and found, in drivers/android/binder.c [1], >> - binder_ioctl() >> - create a kernel thread >> - zombie_cleanup_check() >> - binder_defer_w

Re: [Outreachy kernel] [PATCH] Staging: irda: Use !x instead of NULL comparison

2017-09-16 Thread Julia Lawall
On Sat, 16 Sep 2017, Srishti Sharma wrote: > Test for NULL as !x where functions that return NULL on failure > are used. Done using the following semantic patch by coccinelle. > > @ is_null @ > expression E; > statement S; > @@ > > E = (\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\| > us

Re: [PATCH bisected regression in 4.14] PCI: fix race while enabling upstream bridges concurrently

2017-09-16 Thread Konstantin Khlebnikov
On 15.09.2017 16:43, Srinath Mannam wrote: Hi Konstantin, On Fri, Sep 15, 2017 at 6:18 PM, Konstantin Khlebnikov wrote: In pci_enable_bridge() pci_enable_device() is called before calling pci_set_master(), thus check pci_is_enabled() becomes true in the middle of this sequence. As a result i

[PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Thomas Meyer
Use common library function rather than explicitly coding some variant of it yourself. Signed-off-by: Thomas Meyer --- net/tipc/name_table.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) V2: Coding style diff --git a/net/tipc/name_table.c b/net/tipc/nam

[PATCH] vt: Use bsearch library function in is_double_width

2017-09-16 Thread Thomas Meyer
Use bsearch library function instead of duplicated functionality. Signed-off-by: Thomas Meyer --- drivers/tty/vt/vt.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 2ebaba16f785..ca55004a639e 100

[PATCH] [media] Maxi Radio: Delete an error message for a failed memory allocation in maxiradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 10:15:29 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-maxiradio.c | 4 +--- 1 file changed, 1 inse

[PATCH] firmware: Restore support for built-in firmware

2017-09-16 Thread Markus Trippelsdorf
Commit 5620a0d1aac ("firmware: delete in-kernel firmware") removed the entire firmware directory. Unfortunately it thereby also removed the support for built-in firmware. This restores the ability to build firmware directly into the kernel by pruning the original Makefile to the necessary minimum.

Re: [PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Ying Xue
On 09/16/2017 03:50 PM, Thomas Meyer wrote: > Use common library function rather than explicitly coding > some variant of it yourself. > > Signed-off-by: Thomas Meyer Acked-by: Ying Xue > --- > net/tipc/name_table.c | 30 +++--- > 1 file changed, 15 insertions(+), 15 d

Re: [PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Joe Perches
On Sat, 2017-09-16 at 17:02 +0800, Ying Xue wrote: > On 09/16/2017 03:50 PM, Thomas Meyer wrote: > > Use common library function rather than explicitly coding > > some variant of it yourself. > > > > Signed-off-by: Thomas Meyer > > Acked-by: Ying Xue Are you sure you want to do this? Note the

Re: [PATCH] mm: meminit: mark init_reserved_page as __meminit

2017-09-16 Thread Mel Gorman
On Fri, Sep 15, 2017 at 09:31:30PM +0200, Arnd Bergmann wrote: > The function is called from __meminit context and calls other > __meminit functions but isn't it self mark as such today: > > WARNING: vmlinux.o(.text.unlikely+0x4516): Section mismatch in reference from > the function init_reserved

Re: [I2C] About warning 'DMA-API: device driver maps memory from stack'

2017-09-16 Thread Jun Gao
On Sat, 2017-09-02 at 23:58 +0200, Wolfram Sang wrote: > Hi, > > nice to see someone else interested in the I2C & DMA topic. > > Please check this series which I sent out recently: > > "[RFC PATCH v4 0/6] i2c: document DMA handling and add helpers for it" > > In that series, I proposed... > >

Re: [PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Ying Xue
On 09/16/2017 05:26 PM, Joe Perches wrote: > On Sat, 2017-09-16 at 17:02 +0800, Ying Xue wrote: >> On 09/16/2017 03:50 PM, Thomas Meyer wrote: >>> Use common library function rather than explicitly coding >>> some variant of it yourself. >>> >>> Signed-off-by: Thomas Meyer >> >> Acked-by: Ying Xue

Re: [PATCH 3/5] powerpc64: Add .opd based function descriptor dereference

2017-09-16 Thread Naveen N. Rao
On 2017/09/16 12:53PM, Sergey Senozhatsky wrote: > We are moving towards separate kernel and module function descriptor > dereference callbacks. This patch enables it for powerpc64. > > For pointers that belong to the kernel > - Added __start_opd and __end_opd pointers, to track the kernel >.

Re: [PATCH v4 4/6] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor

2017-09-16 Thread Quentin Schulz
Hi Icenowy, On 14/09/2017 16:52, Icenowy Zheng wrote: > This adds support for the Allwinner H3 thermal sensor. > > Allwinner H3 has a thermal sensor like the one in A33, but have its > registers nearly all re-arranged, sample clock moved to CCU and a pair > of bus clock and reset added. It's also

Re: [PATCH v2 0/2] enable hires timer to timeout datagram socket

2017-09-16 Thread Thomas Gleixner
On Fri, 8 Sep 2017, Eric Dumazet wrote: > On Fri, 2017-09-08 at 11:55 -0700, Eduardo Valentin wrote: > > Hello, > > > > On Fri, Sep 08, 2017 at 10:26:45AM -0700, David Miller wrote: > > > From: David Woodhouse > > > Date: Fri, 08 Sep 2017 18:23:22 +0100 > > > > > > > I don't know that anyone's e

Re: [PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Joe Perches
On Sat, 2017-09-16 at 17:36 +0800, Ying Xue wrote: > On 09/16/2017 05:26 PM, Joe Perches wrote: > > On Sat, 2017-09-16 at 17:02 +0800, Ying Xue wrote: > > > On 09/16/2017 03:50 PM, Thomas Meyer wrote: > > > > Use common library function rather than explicitly coding > > > > some variant of it yours

Re: [PATCH v4 6/6] ARM: sun8i: h3: add partial CPU thermal zone

2017-09-16 Thread Quentin Schulz
Hi Icenowy, On 14/09/2017 16:52, Icenowy Zheng wrote: > Because of the restriction of the OF thermal framework, the thermal > sensor will fail to probe if the thermal zone doesn't exist. > Oh no, that's not good. We discussed about it on IRC and I even proposed a patch for it, telling you I wou

Re: [PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Ying Xue
On 09/16/2017 05:58 PM, Joe Perches wrote: > On Sat, 2017-09-16 at 17:36 +0800, Ying Xue wrote: >> On 09/16/2017 05:26 PM, Joe Perches wrote: >>> On Sat, 2017-09-16 at 17:02 +0800, Ying Xue wrote: On 09/16/2017 03:50 PM, Thomas Meyer wrote: > Use common library function rather than explici

Re: [PATCH v4 4/6] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor

2017-09-16 Thread icenowy
在 2017-09-16 17:45,Quentin Schulz 写道: Hi Icenowy, On 14/09/2017 16:52, Icenowy Zheng wrote: This adds support for the Allwinner H3 thermal sensor. Allwinner H3 has a thermal sensor like the one in A33, but have its registers nearly all re-arranged, sample clock moved to CCU and a pair of bus c

Re: system hung up when offlining CPUs

2017-09-16 Thread Thomas Gleixner
On Thu, 14 Sep 2017, YASUAKI ISHIMATSU wrote: > On 09/13/2017 09:33 AM, Thomas Gleixner wrote: > >> Question - "what happens once __cpu_disable is called and some of the > >> queued > >> interrupt has affinity to that particular CPU ?" > >> I assume ideally those pending/queued Interrupt should be

Re: [PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Joe Perches
On Sat, 2017-09-16 at 18:10 +0800, Ying Xue wrote: > On 09/16/2017 05:58 PM, Joe Perches wrote: > > On Sat, 2017-09-16 at 17:36 +0800, Ying Xue wrote: > > > On 09/16/2017 05:26 PM, Joe Perches wrote: > > > > On Sat, 2017-09-16 at 17:02 +0800, Ying Xue wrote: > > > > > On 09/16/2017 03:50 PM, Thomas

Re: [PATCH v4 4/6] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor

2017-09-16 Thread Quentin Schulz
Hi Icenowy, On 16/09/2017 12:14, icen...@aosc.io wrote: > 在 2017-09-16 17:45,Quentin Schulz 写道: >> Hi Icenowy, >> >> On 14/09/2017 16:52, Icenowy Zheng wrote: >>> This adds support for the Allwinner H3 thermal sensor. >>> >>> Allwinner H3 has a thermal sensor like the one in A33, but have its >>>

[PATCH 0/9 v2] usb: usb251xb: Add USB2517i hub support and fix some bugs

2017-09-16 Thread Serge Semin
Primarily it was intended to just add USB2517 hub support to the driver. But after tests a bug and inconistency were discovered. So it was decided to make the following changes: Changelog v1: - Add USB2517/i hub specifics support to the driver - Fix property_u32 NULL-pointer dereference - Add new

[PATCH 2/9 v2] usb: usb251xb: Add USB251x specific port count setting

2017-09-16 Thread Serge Semin
USB251xb as well as USB2517 datasheet states, that all these hubs differ by number of ports declared as the last digit in the model name. So USB2512 got two ports, USB2513 - three, and so on. Such setting must be reflected in the device specific data structure and corresponding dts property should

[PATCH 6/9 v2] usb: usb251xb: Add USB2517 LED settings

2017-09-16 Thread Serge Semin
USB2517 supports two LED modes: USB mode (default) and speed indication mode. The last one can be switched on by corresponding dts property. Since USB251xb hubs doesn't support LEDs settings, we need to ignore this setting. Signed-off-by: Serge Semin --- Documentation/devicetree/bindings/usb/usb

[PATCH 8/9 v2] usb: usb251xb: Add max power/current dts property support

2017-09-16 Thread Serge Semin
This parameters may be varied in accordance with hardware specifics. So lets add the corresponding settings to the usb251x driver dts specification. Signed-off-by: Serge Semin --- Documentation/devicetree/bindings/usb/usb251xb.txt | 6 ++ drivers/usb/misc/usb251xb.c

[PATCH 7/9 v2] usb: usb251xb: Fix property_u32 NULL pointer dereference

2017-09-16 Thread Serge Semin
The methods like of_property_read_u32 utilizing the specified pointer permit only the pointer to a preallocated u32 storage as the third argument. As a result the driver crashes on NULL pointer dereference in case if "oc-delay-us" or "power-on-time-ms" declared in dts file. Signed-off-by: Serge Se

[PATCH 9/9 v2] usb: usb251xb: Use GPIO descriptor consumer interface

2017-09-16 Thread Serge Semin
The driver used to be developed with legacy GPIO API support. It's better to use descriptor-based interface for several reasons. First of all the legacy API doesn't support the ACTIVE_LOW/HIGH flag of dts nodes, which is essential since different hardware may have different GPIOs connectivity inclu

[PATCH 5/9 v2] usb: usb251xb: Add battery enable setting flag

2017-09-16 Thread Serge Semin
Battery charging settings are supported by USB251xb hubs only. USB2517i isn't one of them. So we need to reflect it within the device-specific data structure. The driver doesn't support dts property to change this setting, but instead defaults it with zero. So the flag isn't used anywhere in the dr

[PATCH 4/9 v2] usb: usb251xb: Add 5,6,7 ports boost settings

2017-09-16 Thread Serge Semin
USB electrical signaling drive strength boost bit is also supported by USB2517 hub. Since it got three addition ports, the designers needed to add one more register for initialization. It turned out to be formerly reserved 0xF7. As before we just initialize it with default zeros. Signed-off-by: Se

[PATCH 1/9 v2] usb: usb251xb: Add USB2517i specific struct and IDs

2017-09-16 Thread Serge Semin
There are USB2517 and USB2517i hubs, which have almost the same registers space as already supported USB251xbi series. The difference it in DIDs and in few functions. This patch adds the USB2517/i data structures to the driver, so it would have different setting depending on the device discovered o

[PATCH 3/9 v2] usb: usb251xb: Add 5,6,7 ports mapping def setting

2017-09-16 Thread Serge Semin
USB2517 got three additionl downstream ports, which can as well be mapped to another logical ports. USB2551xb driver currently doesn't fully support such setting configuration from dts file. This patch doesn't change this, but adds usb2517 spcific ports default liner mapping. Signed-off-by: Serge

[PATCH 0/3] [media] MR800: Adjustments for usb_amradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 12:35:43 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete two error messages for a failed memory allocation Improve a size determination Delete an unnecessary variable initialisat

[PATCH 1/3] [media] mr800: Delete two error messages for a failed memory allocation in usb_amradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 11:23:53 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-mr800.c | 2 -- 1 file changed, 2 deletions(-)

[PATCH 2/3] [media] mr800: Improve a size determination in usb_amradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 11:34:11 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH 3/3] [media] mr800: Delete an unnecessary variable initialisation in usb_amradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 11:39:50 +0200 The variable "retval" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-mr800.c | 2 +- 1 file changed, 1 ins

Re: [PATCH] [media] solo6x10: hide unused variable

2017-09-16 Thread Anton Sviridenko
On Fri, Sep 15, 2017 at 09:52:04PM +0200, Arnd Bergmann wrote: > When building without CONFIG_GPIOLIB, we get a harmless > warning about an unused variable: > > drivers/media/pci/solo6x10/solo6x10-gpio.c: In function 'solo_gpio_init': > drivers/media/pci/solo6x10/solo6x10-gpio.c:165:6: error: unu

Re: [PATCH] thinkpad_acpi: Implement tablet mode resolving using GMMS method

2017-09-16 Thread Henrique de Moraes Holschuh
On Fri, 15 Sep 2017, Benjamin Berg wrote: > Many thinkpad laptops and convertibles provide the GMMS method to > resolve how far the laptop has been opened and whether it has been > converted into tablet mode. This allows reporting a more precise tablet > mode state to userspace. > > The current im

Re: [Outreachy kernel] [PATCH] staging: lustre: lnet: Replace list_for_each with list_for_each_entry

2017-09-16 Thread Julia Lawall
On Fri, 15 Sep 2017, Haneen Mohammed wrote: > Replace use of the combination of list_for_each and list_entry > with list_for_each_entry to simplify the code and remove variables > that are used only in list_for_each. > Issue found and corrected using Coccinelle script: > > @r@ > expression head,

Re: [PATCH 3/5] powerpc64: Add .opd based function descriptor dereference

2017-09-16 Thread Sergey Senozhatsky
On (09/16/17 15:13), Naveen N. Rao wrote: [..] > Would it be simpler to just use kernel_text_address() and dereference > everything else? See commit 83e840c770f2c5 ("powerpc64/elfv1: Only > dereference function descriptor for non-text symbols") for a related > patch. I had this idea, see lkml.

[PATCH] i2c: i2c-stm32f7: make structure stm32f7_setup static

2017-09-16 Thread Colin King
From: Colin Ian King The structure stm32f7_setup is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'stm32f7_setup' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/i2c/busses/i2c-stm32f7.c | 2 +-

Re: [PATCH v2 3/3] kernel/uprobes: Fix check for active uprobe

2017-09-16 Thread Naveen N. Rao
On 2017/09/15 05:38PM, Oleg Nesterov wrote: > Hi Naveen, Hi Oleg, > > I forgot almost everything about this code, but at first glance this patch > needs more comments and the changelog should be updated, at least. And in > any case this needs more changes iirc. Sure, thanks for the review! >

[PATCH] Staging: dgnc: Remove unused variables from structure definition

2017-09-16 Thread Srishti Sharma
Some variables in the structure were unused and hence them and the comments associated with them can be removed. Signed-off-by: Srishti Sharma --- drivers/staging/dgnc/dgnc_driver.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/stagi

Re: [PATCH v2 1/3] kernel/uprobes: Warn if unable to install breakpoint

2017-09-16 Thread Naveen N. Rao
On 2017/09/15 05:53PM, Oleg Nesterov wrote: > On 09/14, Naveen N. Rao wrote: > > > > +static void uprobe_warn(struct task_struct *t, const char *msg) > > +{ > > + pr_warn("uprobe: %s:%d failed to %s\n", > > + current->comm, current->pid, msg); > > +} > > + > > /* > > * valid_

[PATCH] Documentation: fix little inconsistencies

2017-09-16 Thread Pavel Machek
Fix little inconsistencies in Documentation: make case and spacing match surrounding text. Signed-off-by: Pavel Machek Reviewed-by: Darrick J. Wong diff --git a/Documentation/filesystems/ext4.txt b/Documentation/filesystems/ext4.txt index 5a8f7f4..75236c0 100644 --- a/Documentation/filesyste

Re: [Outreachy kernel] [PATCH] Staging: dgnc: Remove unused variables from structure definition

2017-09-16 Thread Julia Lawall
On Sat, 16 Sep 2017, Srishti Sharma wrote: > Some variables in the structure were unused and hence them and > the comments associated with them can be removed. How did you find these? The last two can easily be checked with grep, but that is ont the case for type. Actually there are two struc

[PATCH] Documentation: fix ascii art in networking docs

2017-09-16 Thread Pavel Machek
Fix ascii-art. Signed-off-by: Pavel Machek diff --git a/Documentation/networking/switchdev.txt b/Documentation/networking/switchdev.txt index 5e40e1f..6309e90 100644 --- a/Documentation/networking/switchdev.txt +++ b/Documentation/networking/switchdev.txt @@ -29,7 +29,7 @@ with SR-IOV or soft

Re: [Outreachy kernel] [PATCH] Staging: dgnc: Remove unused variables from structure definition

2017-09-16 Thread Srishti Sharma
On Sat, Sep 16, 2017 at 5:20 PM, Julia Lawall wrote: > > > On Sat, 16 Sep 2017, Srishti Sharma wrote: > >> Some variables in the structure were unused and hence them and >> the comments associated with them can be removed. > > How did you find these? The last two can easily be checked with grep,

Re: [Outreachy kernel] [PATCH] Staging: dgnc: Remove unused variables from structure definition

2017-09-16 Thread Julia Lawall
On Sat, 16 Sep 2017, Srishti Sharma wrote: > On Sat, Sep 16, 2017 at 5:20 PM, Julia Lawall wrote: > > > > > > On Sat, 16 Sep 2017, Srishti Sharma wrote: > > > >> Some variables in the structure were unused and hence them and > >> the comments associated with them can be removed. > > > > How did

[PATCH 0/3] [media] WL1273: Adjustments for two function implementations

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 14:05:45 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation Delete an unnecessary goto statement Delete an unnecessary variable initi

Re: [PATCH] drm/radeon: properly initialize r600_audio_status() data

2017-09-16 Thread Christian König
Am 15.09.2017 um 22:06 schrieb Arnd Bergmann: The structure returned from r600_audio_status() is only partially initialized, and older gcc versions (4.3 and 4.4) warn about this: drivers/gpu/drm/radeon/r600_hdmi.c: In function 'r600_audio_status': drivers/gpu/drm/radeon/r600_hdmi.c:108: error: '

[PATCH 1/3] [media] WL1273: Delete an error message for a failed memory allocation in wl1273_fm_radio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 13:28:38 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-wl1273.c | 1 - 1 file changed, 1 deletion(-

[PATCH 2/3] [media] WL1273: Delete an unnecessary goto statement in wl1273_fm_suspend()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 13:53:22 +0200 * Remove an extra goto statement. * Delete the label "out" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-wl1273.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-)

[PATCH 3/3] [media] WL1273: Delete an unnecessary variable initialisation in wl1273_fm_suspend()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 13:55:56 +0200 The local variable "r" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-wl1273.c | 2 +- 1 file changed, 1 insertion(+)

Re: [FYI] GCC segfaults under heavy multithreaded compilation with AMD Ryzen

2017-09-16 Thread Satoru Takeuchi
2017-08-11 19:07 GMT+09:00 Borislav Petkov : > On Wed, Jul 26, 2017 at 06:54:01AM +0900, Satoru Takeuchi wrote: >> # I'm a LKML subscriber, but not a x86 list subscriber >> >> I found the following new linux kernel bugzilla about Ryzen related problem. >> Since many developers don't check this bugz

Re: [Outreachy kernel] [PATCH] Staging: dgnc: Remove unused variables from structure definition

2017-09-16 Thread Srishti Sharma
On Sat, Sep 16, 2017 at 5:45 PM, Julia Lawall wrote: > > > On Sat, 16 Sep 2017, Srishti Sharma wrote: > >> On Sat, Sep 16, 2017 at 5:20 PM, Julia Lawall wrote: >> > >> > >> > On Sat, 16 Sep 2017, Srishti Sharma wrote: >> > >> >> Some variables in the structure were unused and hence them and >> >>

Re: Vibrations in input vs. LED was Re: [PATCH v2 0/3] led: ledtrig-transient: add support for hrtimer

2017-09-16 Thread Pavel Machek
Hi! > These patch series add the LED_BRIGHTNESS_FAST flag support for > ledtrig-transient to use hrtimer so that platforms with high-resolution > timer > support can have better accuracy in the trigger duration timing. The > need for ... > > If we want to say "lets move

[Part1 PATCH v4 00/17] x86: Secure Encrypted Virtualization (AMD)

2017-09-16 Thread Brijesh Singh
This part of Secure Encrypted Virtualization (SEV) series focuses on the changes required in a guest OS for SEV support. When SEV is active, the memory content of guest OS will be transparently encrypted with a key unique to the guest VM. SEV guests have concept of private and shared memory. Pri

[Part1 PATCH v4 03/17] x86/mm: Don't attempt to encrypt initrd under SEV

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky When SEV is active the initrd/initramfs will already have already been placed in memory encrypted so do not try to encrypt it. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Borislav Petkov Cc: Andy Lutomirski Cc: linux-kernel@vger.kernel.org Cc: x...@kernel

[Part1 PATCH v4 10/17] x86/mm, resource: Use PAGE_KERNEL protection for ioremap of memory pages

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky In order for memory pages to be properly mapped when SEV is active, we need to use the PAGE_KERNEL protection attribute as the base protection. This will insure that memory mapping of, e.g. ACPI tables, receives the proper mapping attributes. Cc: Thomas Gleixner Cc: Ingo Moln

[Part1 PATCH v4 16/17] X86/KVM: Unencrypt shared per-cpu variables when SEV is active

2017-09-16 Thread Brijesh Singh
When SEV is active, guest memory is encrypted with guest-specific key, a guest memory region shared with hypervisor must be mapped as unencrypted before we share it. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Borislav Petkov Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Tom Lend

[Part1 PATCH v4 08/17] resource: Consolidate resource walking code

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky The walk_iomem_res_desc(), walk_system_ram_res() and walk_system_ram_range() functions each have much of the same code. Create a new function that consolidates the common code from these functions in one place to reduce the amount of duplicated code. Cc: Borislav Petkov Cc:

[Part1 PATCH v4 17/17] X86/KVM: Clear encryption attribute when SEV is active

2017-09-16 Thread Brijesh Singh
The guest physical memory area holding the struct pvclock_wall_clock and struct pvclock_vcpu_time_info are shared with the hypervisor. Hypervisor periodically updates the contents of the memory. When SEV is active, we must clear the encryption attributes from the shared memory pages so that both hy

[Part1 PATCH v4 15/17] percpu: introduce DEFINE_PER_CPU_UNENCRYPTED

2017-09-16 Thread Brijesh Singh
When SEV is active, memory is encrypted with guest-specific key, and if guest OS wants to share the memory region with hypervisor then it must clear the C-bit (i.e set unencrypted) before sharing it. DEFINE_PER_CPU_UNENCRYPTED can be used to define the per-cpu variables which will be shared betwee

[Part1 PATCH v4 14/17] x86: Add support for changing memory encryption attribute in early boot

2017-09-16 Thread Brijesh Singh
Some KVM-specific custom MSRs share the guest physical address with the hypervisor in early boot. When SEV is active, the shared physical address must be mapped with memory encryption attribute cleared so that both hypervisor and guest can access the data. Add APIs to change the memory encryption

[Part1 PATCH v4 12/17] x86/boot: Add early boot support when running with SEV active

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky Early in the boot process, add checks to determine if the kernel is running with Secure Encrypted Virtualization (SEV) active. Checking for SEV requires checking that the kernel is running under a hypervisor (CPUID 0x0001, bit 31), that the SEV feature is available (CPUID

[Part1 PATCH v4 11/17] x86/mm: DMA support for SEV memory encryption

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky DMA access to encrypted memory cannot be performed when SEV is active. In order for DMA to properly work when SEV is active, the SWIOTLB bounce buffers must be used. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Borislav Petkov Cc: Konrad Rzeszutek Wilk Cc:

[Part1 PATCH v4 13/17] x86/io: Unroll string I/O when SEV is active

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky Secure Encrypted Virtualization (SEV) does not support string I/O, so unroll the string I/O operation into a loop operating on one element at a time. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Borislav Petkov Cc: Andy Shevchenko Cc: David Laight Cc: Arn

[Part1 PATCH v4 06/17] x86/mm: Include SEV for encryption memory attribute changes

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky The current code checks only for sme_active() when determining whether to perform the encryption attribute change. Include sev_active() in this check so that memory attribute changes can occur under SME and SEV. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc:

[Part1 PATCH v4 09/17] resource: Provide resource struct in resource walk callback

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky In prep for a new function that will need additional resource information during the resource walk, update the resource walk callback to pass the resource structure. Since the current callback start and end arguments are pulled from the resource structure, the callback functio

[Part1 PATCH v4 07/17] x86/efi: Access EFI data as encrypted when SEV is active

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky EFI data is encrypted when the kernel is run under SEV. Update the page table references to be sure the EFI memory areas are accessed encrypted. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Borislav Petkov Cc: Andy Lutomirski Cc: Matt Fleming Cc: Ard Bies

[Part1 PATCH v4 05/17] x86/mm: Use encrypted access of boot related data with SEV

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky When Secure Encrypted Virtualization (SEV) is active, boot data (such as EFI related data, setup data) is encrypted and needs to be accessed as such when mapped. Update the architecture override in early_memremap to keep the encryption attribute when mapping this data. Cc: Tho

[Part1 PATCH v4 04/17] x86/realmode: Don't decrypt trampoline area under SEV

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky When SEV is active the trampoline area will need to be in encrypted memory so only mark the area decrypted if SME is active. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Borislav Petkov Cc: Andy Lutomirski Cc: Laura Abbott Cc: "Kirill A. Shutemov" Cc: li

[Part1 PATCH v4 02/17] x86/mm: Add Secure Encrypted Virtualization (SEV) support

2017-09-16 Thread Brijesh Singh
From: Tom Lendacky Provide support for Secure Encrypted Virtualization (SEV). This initial support defines a flag that is used by the kernel to determine if it is running with SEV active. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Borislav Petkov Cc: Andy Lutomirski Cc: li

[Part1 PATCH v4 01/17] Documentation/x86: Add AMD Secure Encrypted Virtualization (SEV) description

2017-09-16 Thread Brijesh Singh
Update the AMD memory encryption document describing the Secure Encrypted Virtualization (SEV) feature. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Jonathan Corbet Cc: Borislav Petkov Cc: Tom Lendacky Signed-off-by: Brijesh Singh --- Documentation/x86/amd-memory-encryption

Re: d57108d4f6 ("watchdog/core: Get rid of the thread .."): BUG: unable to handle kernel NULL pointer dereference at 0000000000000208

2017-09-16 Thread Fengguang Wu
On Fri, Sep 15, 2017 at 06:24:20PM +0200, Thomas Gleixner wrote: On Fri, 15 Sep 2017, Thomas Gleixner wrote: On Fri, 15 Sep 2017, Thomas Gleixner wrote: > On Fri, 15 Sep 2017, kernel test robot wrote: > > [0.035023] CPU: Intel Common KVM processor (family: 0xf, model: 0x6, stepping: 0x1)

Re: Vibrations in input vs. LED was Re: [PATCH v2 0/3] led: ledtrig-transient: add support for hrtimer

2017-09-16 Thread Pavel Machek
Hi! > >> If we want to have discussion "how to make vibrations in input > >> easier to use", well that's fair. But I don't think it is particulary hard. > >> > > > > I would like to know more about why you find the FF interface hard, > > led-transient trigger can be activated using only followin

[PATCH v4] security/keys: rewrite all of big_key crypto

2017-09-16 Thread Jason A. Donenfeld
This started out as just replacing the use of crypto/rng with get_random_bytes_wait, so that we wouldn't use bad randomness at boot time. But, upon looking further, it appears that there were even deeper underlying cryptographic problems, and that this seems to have been committed with very little

Re: [PATCH manpages] stat.2: correct AT_NO_AUTOMOUNT text and general revisions.

2017-09-16 Thread Michael Kerrisk (man-pages)
On 09/15/2017 12:25 AM, NeilBrown wrote: > On Thu, Sep 14 2017, Michael Kerrisk (man-pages) wrote: > >> Hi Neil, >> >> On 25 August 2017 at 07:32, NeilBrown wrote: >>> >>> Expand on the relationship between fstatat() and the other >>> three functions, and improve the description of AT_NO_AUTOMOUN

[PATCH v5] security/keys: rewrite all of big_key crypto

2017-09-16 Thread Jason A. Donenfeld
This started out as just replacing the use of crypto/rng with get_random_bytes_wait, so that we wouldn't use bad randomness at boot time. But, upon looking further, it appears that there were even deeper underlying cryptographic problems, and that this seems to have been committed with very little

Re: [PATCH] xen: x86: mark xen_find_pt_base as __init

2017-09-16 Thread Boris Ostrovsky
On 09/15/2017 03:29 PM, Arnd Bergmann wrote: > gcc-4.6 causes a harmless link-time warning: > > WARNING: vmlinux.o(.text.unlikely+0x48e): Section mismatch in reference from > the function xen_find_pt_base() to the function .init.text:m2p() > The function xen_find_pt_base() references > the functio

Re: [PATCH v8 10/18] RISC-V: Init and Halt Code

2017-09-16 Thread Daniel Lezcano
On 16/09/2017 08:23, Dmitriy Cherkasov wrote: > On 09/13/2017 11:15 AM, Daniel Lezcano wrote: >> >> All this code must go in the timer side and use the TIMER_OF_DECLARE >> macro with the proper wrappers. > > Hi, thanks for the feedback. > > Agreed. I'll clean this up. > >> >> Where is the reques

[git pull] Input updates for v4.14-rc0

2017-09-16 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive second round of updates for the input subsystem. You will get: - a new driver for PWM-controlled vibrators - ucb1400 touchscreen driver had completely busted suspend/resume han

RE: [PATCH V2] tipc: Use bsearch library function

2017-09-16 Thread Jon Maloy
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Joe Perches > Sent: Saturday, September 16, 2017 06:18 > To: Ying Xue ; Thomas Meyer > ; Jon Maloy ; > net...@vger.kernel.org; tipc-discuss...@lists.sourceforge.net; linux- > ke

[PATCH 0/3] [media] si470x: Adjustments for si470x_usb_driver_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 15:16:17 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation Improve a size determination Delete an unnecessary variable initialisatio

[PATCH 1/3] [media] si470x: Delete an error message for a failed memory allocation in si470x_usb_driver_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 14:53:49 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/si470x/radio-si470x-usb.c | 1 - 1 file changed, 1

[PATCH 2/3] [media] si470x: Improve a size determination in si470x_usb_driver_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 14:58:06 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH 3/3] [media] si470x: Delete an unnecessary variable initialisation in si470x_usb_driver_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 15:08:39 +0200 The variable "retval" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/radio/si470x/radio-si470x-usb.c | 2 +- 1 file ch

Re: intel-vbtn: match power button on press rather than release

2017-09-16 Thread Pali Rohár
On Friday 04 August 2017 19:00:06 Mario Limonciello wrote: > This fixes a problem where the system gets stuck in a loop > unable to wakeup via power button in s2idle. > > The problem happens because: > - press power button: >- system emits 0xc0 (power press), event ignored >- system emits

[PATCH] Documentation: link in networking docs

2017-09-16 Thread Pavel Machek
Fix link in filter.txt. Acked-by: Pavel Machek diff --git a/Documentation/networking/filter.txt b/Documentation/networking/filter.txt index e5e33ba..789b74d 100644 --- a/Documentation/networking/filter.txt +++ b/Documentation/networking/filter.txt @@ -45,7 +45,7 @@ in many more places. There's

[PATCH] [media] Si4713: Delete an error message for a failed memory allocation in two functions

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 16:15:44 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/si4713/radio-platform-si4713.c | 1 - drivers/me

[PATCH 1/2] Staging: dgnc: Remove unused variables in struct dgnc_board

2017-09-16 Thread Srishti Sharma
Remove unused variables and comments associated with them in the structure definition. Signed-off-by: Srishti Sharma --- drivers/staging/dgnc/dgnc_driver.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h index 7

[PATCH 2/2] Staging: dgnc: Remove unused variable in struct channel_t

2017-09-16 Thread Srishti Sharma
Eliminate the variables that are not used and the comments associated with them. Signed-off-by: Srishti Sharma --- drivers/staging/dgnc/dgnc_driver.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h index 5d2566e..0

[PATCH 0/2] Remove unused variables in structure definition

2017-09-16 Thread Srishti Sharma
This patch series attempts to remove unused variables in structure variables and the comments associated with them. Srishti Sharma (2): Staging: dgnc: Remove unused variables in structure definition Staging: dgnc: Remove unused variable in structure drivers/staging/dgnc/dgnc_driver.h | 15 --

Re: system hung up when offlining CPUs

2017-09-16 Thread Thomas Gleixner
On Sat, 16 Sep 2017, Thomas Gleixner wrote: > On Thu, 14 Sep 2017, YASUAKI ISHIMATSU wrote: > > Here are one irq's info of megasas: > > > > - Before offline CPU > > /proc/irq/70/smp_affinity_list > > 24-29 > > > > /proc/irq/70/effective_affinity > > ,,,,,00

Re: [PATCH 1/3] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-16 Thread David Ahern
On 9/13/17 9:10 AM, yuzhoujian wrote: > @@ -2797,7 +2801,12 @@ int cmd_script(int argc, const char **argv) > > file.path = input_name; > file.force = symbol_conf.force; > - > + for (i = 1; argv[i] != NULL; i++) { > + if (strcmp(argv[i], "-O") == 0) { > +

Re: [PATCH 2/3] Makes all those related functions receive the FILE pointer

2017-09-16 Thread David Ahern
On 9/13/17 9:10 AM, yuzhoujian wrote: > @@ -1621,8 +1634,12 @@ static int process_comm_event(struct perf_tool *tool, > sample->tid = event->comm.tid; > sample->pid = event->comm.pid; > } > - print_sample_start(sample, thread, evsel); > - perf_event__fprintf

Re: [Outreachy kernel] [PATCH 0/2] Remove unused variables in structure definition

2017-09-16 Thread Julia Lawall
On Sat, 16 Sep 2017, Srishti Sharma wrote: > This patch series attempts to remove unused variables in structure > variables and the comments associated with them. Actually, I would say that a structure has fields, not variables. julia > > Srishti Sharma (2): > Staging: dgnc: Remove unused v

[PATCH] mwifiex: make const arrays static to shink object code size

2017-09-16 Thread Colin King
From: Colin Ian King Don't populate const arrays on the stack, instead make them static Makes the object code smaller by nearly 300 bytes: Before: textdata bss dec hex filename 69260 16149 576 85985 14fe1 cfg80211.o After: textdata bss dec hex f

Re: [Part1 PATCH v4 01/17] Documentation/x86: Add AMD Secure Encrypted Virtualization (SEV) description

2017-09-16 Thread Borislav Petkov
On Sat, Sep 16, 2017 at 07:34:02AM -0500, Brijesh Singh wrote: > Update the AMD memory encryption document describing the Secure Encrypted > Virtualization (SEV) feature. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Jonathan Corbet > Cc: Borislav Petkov > Cc: Tom Len

  1   2   3   >