Re: [PATCH] platform/x86: fujitsu-laptop: Fix radio LED detection

2017-10-25 Thread Harvey
Am 25.10.2017 um 08:33 schrieb Jonathan Woithe: > On Wed, Oct 25, 2017 at 06:29:46AM +0200, Micha?? K??pie?? wrote: >> Radio LED detection method implemented in commit 4f62568c1fcf >> ("fujitsu-laptop: Support radio LED") turned out to be incorrect as it >> causes a radio LED to be erroneously dete

[PATCH v6 4/6] dt-bindings: mfd: Add bindings for the keys as subnode of PMIC

2017-10-25 Thread Chen Zhong
This patch adds documentation for device tree bindings for keys support as the subnode of MT6397/MT6323 PMIC. Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones Signed-off-by: Chen Zhong --- Documentation/devicetree/bindings/mfd/mt6397.txt |6 ++ 1 file changed, 6 insertions(+) diff --

Re: [PATCH] fs, mm: account filp and names caches to kmemcg

2017-10-25 Thread Johannes Weiner
On Wed, Oct 25, 2017 at 09:15:22AM +0200, Michal Hocko wrote: > On Tue 24-10-17 23:51:30, Greg Thelen wrote: > > Michal Hocko wrote: > [...] > > > I am definitely not pushing that thing right now. It is good to discuss > > > it, though. The more kernel allocations we will track the more careful we

Re: [GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-25 Thread Paul E. McKenney
On Wed, Oct 25, 2017 at 11:04:43AM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > On Wed, Oct 25, 2017 at 10:45:48AM +0200, Ingo Molnar wrote: > > > > > > * Paul E. McKenney wrote: > > > > > > > Hello, Ingo, > > > > > > > > This series is a first step towards making the core k

Re: Proposal: rename tpm1_eventlog.c and tpm2_eventlog.c

2017-10-25 Thread Jarkko Sakkinen
On Wed, Oct 25, 2017 at 10:43:10AM +0200, Thiebaud Weksteen wrote: > On Wed, Oct 25, 2017 at 12:21 AM, Jarkko Sakkinen > wrote: > > I noticed when making slides for KS that the naming for event log stuff > > that the naming is so broken that it is hard to understand the code. > > Here it really wo

Re: Kernel error messages: leds fujitsu::radio_led: Setting an LED's brightness failed

2017-10-25 Thread Harvey
Am 25.10.2017 um 06:39 schrieb Michał Kępień: >>> - Investigating the E LED. This requires taking a look at the DSDT >>> dump from your laptop and searching for clues as to how this LED is >>> handled. I will be happy to do that, but again, no promises about >>> how much time it wil

Re: [PATCH] Input: synaptics-rmi4: Limit the range of what GPIOs are buttons

2017-10-25 Thread Daniel Martin
On 25 October 2017 at 05:42, Andrew Duggan wrote: > By convention the first 6 bits of F30 Ctrl 2 and 3 are used to signify > GPIOs which are connected to buttons. Additional GPIOs may be used as > input GPIOs to signal the touch controller of some event > (ie disable touchpad). These additional GP

[PATCH v6 5/6] input: Add MediaTek PMIC keys support

2017-10-25 Thread Chen Zhong
This patch add support to handle MediaTek PMIC MT6397/MT6323 key interrupts including pwrkey and homekey, also add setting for long press key shutdown behavior. Acked-by: Dmitry Torokhov Signed-off-by: Chen Zhong --- drivers/input/keyboard/Kconfig |9 + drivers/input/keyboard/Makefi

Re: [PATCH 6/8] PCI: host: brcmstb: add MSI capability

2017-10-25 Thread Bjorn Helgaas
On Tue, Oct 24, 2017 at 02:15:47PM -0400, Jim Quinlan wrote: > This commit adds MSI to the Broadcom STB PCIe host controller. It does > not add MSIX since that functionality is not in the HW. The MSI > controller is physically located within the PCIe block, however, there > is no reason why the MS

Re: [PATCH v2] dwc: dra7xx: Print link state to console for debug

2017-10-25 Thread Bjorn Helgaas
On Wed, Oct 25, 2017 at 01:51:53PM +0530, Faiz Abbas wrote: > Bjorn, > > On Wednesday 25 October 2017 01:29 AM, Bjorn Helgaas wrote: > > On Thu, Oct 19, 2017 at 06:13:29PM +0530, Faiz Abbas wrote: > >> Enable support for printing the LTSSM link state for debugging PCI > >> when link is down. > >>

[PATCH] Documentation: support kernel enforcement

2017-10-25 Thread Jarkko Sakkinen
I'm sorry that I forgot to add my name on time. Signed-off-by: Jarkko Sakkinen --- Documentation/process/kernel-enforcement-statement.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/process/kernel-enforcement-statement.rst b/Documentation/process/kernel-enforcement-stateme

Re: [PATCH] I2C-S3C2410: Use common error handling code in s3c24xx_i2c_probe()

2017-10-25 Thread Dan Carpenter
> @@ -1180,24 +1179,21 @@ static int s3c24xx_i2c_probe(struct platform_device > *pdev) > i2c->irq = ret = platform_get_irq(pdev, 0); > if (ret <= 0) { Not related to this patch, but the comparison here should be < 0. Or otherwise we should set an error code. The bug

Re: [PATCH] Input: synaptics-rmi4: Limit the range of what GPIOs are buttons

2017-10-25 Thread Benjamin Tissoires
On Oct 24 2017 or thereabouts, Andrew Duggan wrote: > By convention the first 6 bits of F30 Ctrl 2 and 3 are used to signify I really do not like the "by convention". What if future firmware developers are willing to add extra buttons and already have trackstick buttons there, meaning the max 6 bu

Re: alpha boot hang - 4.14-rc* regression

2017-10-25 Thread Lorenzo Pieralisi
On Wed, Oct 25, 2017 at 03:21:21PM +0300, Meelis Roos wrote: > > > (Added linux-pci to CC) > > > > > > > > I run Gentoo Linux on my alphas, with latest git kernels for test. > > > > > 4.13.0 worked well on 3 alphas but 4.13.0-09217-g5969d1bb3082 hangs > > > > > on > > > > > boot on all 3 of the

[PATCH v6 3/6] dt-bindings: input: Add document bindings for mtk-pmic-keys

2017-10-25 Thread Chen Zhong
This patch adds the device tree binding documentation for the MediaTek pmic keys found on PMIC MT6397/MT6323. Acked-by: Rob Herring Signed-off-by: Chen Zhong --- .../devicetree/bindings/input/mtk-pmic-keys.txt| 43 1 file changed, 43 insertions(+) create mode 100644

Fixing CVE-2017-15361

2017-10-25 Thread Jarkko Sakkinen
I'm implementing a fix for CVE-2017-15361 that simply blacklists vulnerable FW versions. I think this is the only responsible action from my side that I can do. /arkko

Re: [PATCH] PCI: rework error checking in the reset path

2017-10-25 Thread Bjorn Helgaas
[+cc Alex] On Mon, Oct 23, 2017 at 05:36:48PM -0400, Sinan Kaya wrote: > The return codes from various reset types are not consistent. The code is > assuming that all reset types will return -ENOTTY when things go wrong. > Instead of relying on negative error status, let's bail out if the > operat

Maintenance, how to check the solar water heating system

2017-10-25 Thread Mr.David
New Year, New Product, New Certificate, New Price, New Opportunity Hi, Now, It is my pleasure to introduce you the new product, model SHC, The CPC heat pipe collectors. Its main advantages are: biggest aperture area of evacuated tubes collectors, highest power output, and overheating solution.

Re: [PATCH 1/2 v2] fdmap(2)

2017-10-25 Thread Pavel Machek
On Wed 2017-10-25 14:45:31, Alexey Dobriyan wrote: > On 10/23/17, Pavel Machek wrote: > > > Binary fdmap looks... quite ugly to me. But close_all(from, to) > > syscall kindof makes sense to me... and is not that ugly. > > > > Given that openbsd has something similar... perhaps we can take that? >

Re: [PATCH v6 02/13] xen/pvcalls: implement frontend disconnect

2017-10-25 Thread Boris Ostrovsky
On 10/24/2017 01:33 PM, Stefano Stabellini wrote: > +static void pvcalls_front_free_map(struct pvcalls_bedata *bedata, > +struct sock_mapping *map, bool locked) > +{ > +} > + > static const struct xenbus_device_id pvcalls_front_ids[] = { > { "pvcalls" }, >

Re: [RFC PATCH] PCI: Detach driver before procfs & sysfs teardown on device remove

2017-10-25 Thread Bjorn Helgaas
On Wed, Oct 11, 2017 at 03:35:56PM -0600, Alex Williamson wrote: > When removing a device, for example a VF being removed due to SR-IOV > teardown, a "soft" hot-unplug via 'echo 1 > remove' in sysfs, or an > actual hot-unplug, we first remove the procfs and sysfs attributes > for the device before

[PATCH v6 6/6] mfd: mt6397: Add PMIC keys support to MT6397 driver

2017-10-25 Thread Chen Zhong
This patch adds compatible strings and interrupts for pmic keys which serves as child device of MFD. Acked-for-MFD-by: Lee Jones Signed-off-by: Chen Zhong --- drivers/mfd/mt6397-core.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/mt639

Re: [RFC] net/unix_diag: Provide UDIAG_SHOW_VFS2 attribute to fetch complete inode number

2017-10-25 Thread Roman Mashak
Cyrill Gorcunov writes: > Currently unix_diag_vfs structure reports unix socket inode > as u32 value which of course doesn't fit to ino_t type and > the number may be trimmed. Lets rather deprecate old UDIAG_SHOW_VFS > interface and provide UDIAG_SHOW_VFS2 (with one field "__zero" reserved > whic

Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-25 Thread Jiri Olsa
On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > Perf top is often crashing at very random locations on powerpc. > After investigating, I found the crash only happens when sample > is of zero length symbol. Powerpc kernel has many such symbols > which does not contain length details

[PATCH 1/1] l2tp: cleanup l2tp_tunnel_delete calls

2017-10-25 Thread Jiri Slaby
l2tp_tunnel_delete does not return anything since commit 62b982eeb458 ("l2tp: fix race condition in l2tp_tunnel_delete"). But call sites of l2tp_tunnel_delete still do casts to void to avoid unused return value warnings. Kill these now useless casts. Signed-off-by: Jiri Slaby Cc: Sabrina Dubroc

[PATCH v6 2/6] dt-bindings: input: Add common keyboard document bindings

2017-10-25 Thread Chen Zhong
This patch adds the device tree binding documentation for common keyboard. Acked-by: Rob Herring Signed-off-by: Chen Zhong --- Documentation/devicetree/bindings/input/keys.txt |8 1 file changed, 8 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/keys.txt

[PATCH v6 1/6] mfd: mt6397: create irq mappings in mfd core driver

2017-10-25 Thread Chen Zhong
The core driver should create and manage irq mappings instead of leaf drivers. This patch change to pass irq domain to devm_mfd_add_devices() and it will create mapping for irq resources automatically. And remove irq mapping in rtc driver since this has been done in core driver. Acked-for-MFD-by:

Re: [RFC] net/unix_diag: Provide UDIAG_SHOW_VFS2 attribute to fetch complete inode number

2017-10-25 Thread Cyrill Gorcunov
On Wed, Oct 25, 2017 at 09:55:07AM -0400, Roman Mashak wrote: > > I think __zero should be explicitly set to 0. It will be by compiler default.

[PATCH net-next 0/2] net: stmmac: Support DWMAC5 and TSN

2017-10-25 Thread Jose Abreu
Hi, This adds support for a new IP version (5) of dwmac and for TSN features as defined by IEEE802.1Qbv-2015 and IEEE802.1Qbu. Please review. Best regards, Jose Miguel Abreu Jose Abreu (2): net: stmmac: Add support for DWMAC5 with TSN features bindings: net: stmmac: Add documentation for TS

Re: [PATCH 12/27] x86/msr: Restrict MSR access when the kernel is locked down

2017-10-25 Thread joeyli
Hi David, On Mon, Oct 23, 2017 at 03:49:44PM +0100, David Howells wrote: > Alan Cox wrote: > > > There are a load of standard tools that use this so I think you are going > > to need a whitelist. Can you at least log *which* MSR in the failing case > > so a whitelist can be built over time ? >

[PATCH net-next 1/2] net: stmmac: Add support for DWMAC5 with TSN features

2017-10-25 Thread Jose Abreu
This adds support for IP version 5 of DWMAC. The new introduced features are the Enhancements to Scheduled Traffic (EST) as defined by IEEE802.1Qbv-2015 and Frame Preemption (FPE) as defined by IEEE802.1Qbu. In order to not break previous setups all the necessary configuration is only performed wh

Re: [PATCH] drm/i915/selftests: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
On Wed, Oct 25, 2017 at 3:11 PM, Chris Wilson wrote: > Quoting Chris Wilson (2017-10-25 11:24:19) >> Quoting Chris Wilson (2017-10-24 17:17:09) >> > Quoting Kees Cook (2017-10-24 16:13:44) >> > > In preparation for unconditionally passing the struct timer_list pointer >> > > to >> > > all timer c

[PATCH] Bluetooth: btusb: Add new NFA344A entry.

2017-10-25 Thread Bartosz Chronowski
This change allows proper low power mode entry in suspend. Signed-off-by: Bartosz Chronowski --- drivers/bluetooth/btusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 7a5c06a..513a7a5 100644 --- a/drivers/bluetooth/btusb.c +++ b

[PATCH net-next 2/2] bindings: net: stmmac: Add documentation for TSN parameters

2017-10-25 Thread Jose Abreu
This adds the documentation for TSN feature EST and FP. Signed-off-by: Jose Abreu Cc: David S. Miller Cc: Joao Pinto Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Rob Herring --- Documentation/devicetree/bindings/net/stmmac.txt | 20 1 file changed, 20 insertions(+)

Re: [PATCHv2 9/9] perf tools: Unwind properly location after REJECT

2017-10-25 Thread Jiri Olsa
On Tue, Oct 24, 2017 at 02:51:21PM +0200, Jiri Olsa wrote: > On Fri, Oct 13, 2017 at 04:50:36PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Fri, Oct 13, 2017 at 10:37:36AM +0200, Jiri Olsa escreveu: > > > We have defined YY_USER_ACTION to keep trace of the column > > > location during events pars

Re: [PATCH v3] f2fs: add cur_reserved_blocks to support soft block reservation

2017-10-25 Thread Yunlong Song
Hi, Chao, Please see my comments below. On 2017/10/25 20:26, Chao Yu wrote: On 2017/10/25 18:02, Yunlong Song wrote: ping... I've replied in this thread, check your email list please, or you can check the comments in below link: https://patchwork.kernel.org/patch/9909407/ Anyway, see com

Re: [PATCH] Bluetooth: btusb: Add new NFA344A entry.

2017-10-25 Thread Marcel Holtmann
Hi Bartosz, > This change allows proper low power mode entry in suspend. please include /sys/kernel/debug/usb/devices entries for this hardware. > > Signed-off-by: Bartosz Chronowski > --- > drivers/bluetooth/btusb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/bluetooth/bt

Re: [PATCH] iscsi-target: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
On Wed, Oct 25, 2017 at 2:41 PM, Jason A. Donenfeld wrote: > On Wed, Oct 25, 2017 at 12:01 PM, Kees Cook wrote: >> sess->time2retain_timer.expires = >> (get_jiffies_64() + sess->sess_ops->DefaultTime2Retain * HZ); >> add_timer(&sess->time2retain_timer); >>

Re: [PATCH] fs, mm: account filp and names caches to kmemcg

2017-10-25 Thread Michal Hocko
On Wed 25-10-17 09:11:51, Johannes Weiner wrote: > On Wed, Oct 25, 2017 at 09:15:22AM +0200, Michal Hocko wrote: [...] > > ... we shouldn't make it more loose though. > > Then we can end this discussion right now. I pointed out right from > the start that the only way to replace -ENOMEM with OOM k

Re: [PATCH] media: pvrusb2: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
Eek, sorry, this uses timer_setup_on_stack() which is only in -next. If you can Ack this, I can carry it in the timer tree. Thanks! -Kees On Tue, Oct 24, 2017 at 5:22 PM, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch

[PATCH] mfd: ssbi: Use devm_of_platform_populate()

2017-10-25 Thread Benjamin Gaignard
Use devm_of_platform_populate() instead of of_platform_populate() to be sure that of_platform_depopulate() is called when removing the driver. Signed-off-by: Benjamin Gaignard --- drivers/mfd/ssbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/ssbi.c b/drivers/

Re: [PATCH v2 1/7] fsnotify: clean up fsnotify_prepare/finish_user_wait()

2017-10-25 Thread Miklos Szeredi
On Wed, Oct 25, 2017 at 2:07 PM, Amir Goldstein wrote: >>> -bool fsnotify_prepare_user_wait(struct fsnotify_iter_info *iter_info) >>> +/* >>> + * Get mark reference when we found the mark via lockless traversal of >>> object >>> + * list. Mark can be already removed from the list by now and on i

Re: [PATCH] tracing: Allocate mask_str buffer dynamically

2017-10-25 Thread Du, Changbin
On Wed, Oct 25, 2017 at 07:24:36PM +0800, changbin...@intel.com wrote: > From: Changbin Du > > The default NR_CPUS can be very large, but actual possible nr_cpu_ids > usually is very small. For my x86 distribution, the NR_CPUS is 8192 and > nr_cpu_ids is 4. About 2 pages are wasted. > > Most mac

Re: [PATCH] usb: usbtest: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
Sorry, I sent this one but forgot that timer_setup_on_stack() is in -next only. If it's okay, I can carry it in the timers tree. Thanks! -Kees On Tue, Oct 24, 2017 at 12:27 PM, Felipe Balbi wrote: > Kees Cook writes: > >> In preparation for unconditionally passing the struct timer_list pointer

Re: [PATCH] usb: usbatm: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
This also uses timer_setup_on_stack() (only in -next). If it's okay, I'll carry it in the timers tree. Thanks! -Kees On Tue, Oct 24, 2017 at 12:08 PM, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new ti

Re: Fixing CVE-2017-15361

2017-10-25 Thread Matthew Garrett
On Wed, Oct 25, 2017 at 6:44 AM, Jarkko Sakkinen wrote: > I'm implementing a fix for CVE-2017-15361 that simply blacklists > vulnerable FW versions. I think this is the only responsible action from > my side that I can do. I'm not sure this is ideal - do Infineon have any Linux tooling for perfor

Re: [PATCH] rcu: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
Sorry, I sent this and forgot that timer_setup_on_stack() is only in -next. If this patch is okay, I can carry it in the timers tree. Thanks! -Kees On Tue, Oct 24, 2017 at 11:32 AM, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callba

Re: [PATCH v4 19/27] x86: assembly, make some functions local

2017-10-25 Thread Jiri Slaby
On 10/06/2017, 04:01 PM, Ard Biesheuvel wrote: > On 6 October 2017 at 13:53, Jiri Slaby wrote: >> On 10/04/2017, 09:33 AM, Ard Biesheuvel wrote: >>> In arm64, we use ENTRY/ENDPROC for functions with external linkage, >>> and the bare symbol name/ENDPROC for functions with local linkage. I >>> gues

Re: [PATCH v2 7/7] fanotify: clean up CONFIG_FANOTIFY_ACCESS_PERMISSIONS ifdefs

2017-10-25 Thread Miklos Szeredi
On Wed, Oct 25, 2017 at 1:44 PM, Amir Goldstein wrote: >> +static inline bool fanotify_is_perm_event(u32 mask) >> +{ >> + return IS_ENABLED(CONFIG_FANOTIFY_ACCESS_PERMISSIONS) && >> + mask & FAN_ALL_PERM_EVENTS; > > I know this is good w.r.t operation precedence, but it gets me

Re: [PATCH v4 01/27] linkage: new macros for assembler symbols

2017-10-25 Thread Jiri Slaby
On 10/06/2017, 05:23 PM, Josh Poimboeuf wrote: > On Mon, Oct 02, 2017 at 11:12:20AM +0200, Jiri Slaby wrote: >>SYM_CODE_INNER_LABEL -- only for labels in the middle of code >>SYM_CODE_INNER_LABEL_NOALIGN -- only for labels in the middle of code > > Why are the inner labels aligned by defau

Re: [PATCH v4 19/27] x86: assembly, make some functions local

2017-10-25 Thread Jiri Slaby
Hi, On 10/06/2017, 03:21 PM, Mark Rutland wrote: > If the aim of this series is to introduce something that architectures > use consistently, then can we please actually poke other architectures > about it? e.g. send this to linux-arch, with a cover letter explaining > the idea and asking maintain

Re: [PATCH 1/1] l2tp: cleanup l2tp_tunnel_delete calls

2017-10-25 Thread Guillaume Nault
On Wed, Oct 25, 2017 at 03:57:55PM +0200, Jiri Slaby wrote: > l2tp_tunnel_delete does not return anything since commit 62b982eeb458 > ("l2tp: fix race condition in l2tp_tunnel_delete"). But call sites of > l2tp_tunnel_delete still do casts to void to avoid unused return value > warnings. > > Kill

Re: [PATCH] drm/i915/selftests: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
On Wed, Oct 25, 2017 at 4:16 PM, Chris Wilson wrote: > Quoting Kees Cook (2017-10-25 15:05:13) >> On Wed, Oct 25, 2017 at 3:11 PM, Chris Wilson >> wrote: >> > Quoting Chris Wilson (2017-10-25 11:24:19) >> >> Quoting Chris Wilson (2017-10-24 17:17:09) >> >> > Quoting Kees Cook (2017-10-24 16:13:4

Re: fuse readdirplus skip one entry when interrupted by signal

2017-10-25 Thread Marios Titas
On Wed, Oct 25, 2017 at 11:38:09AM +0200, Miklos Szeredi wrote: On Tue, Oct 24, 2017 at 08:10:49PM +0200, Jakob Unterwurzacher wrote: A user running a Haskell program [1] noticed a problem with fuse's readdirplus: when it is interrupted by a signal, it skips one directory entry. The problem is

Re: [PATCH] drm/i915/selftests: Convert timers to use timer_setup()

2017-10-25 Thread Jani Nikula
On Wed, 25 Oct 2017, Kees Cook wrote: > On Wed, Oct 25, 2017 at 4:16 PM, Chris Wilson > wrote: >> Quoting Kees Cook (2017-10-25 15:05:13) >>> On Wed, Oct 25, 2017 at 3:11 PM, Chris Wilson >>> wrote: >>> > Quoting Chris Wilson (2017-10-25 11:24:19) >>> >> Quoting Chris Wilson (2017-10-24 17:17:

Re: [PATCH v6 12/13] xen/pvcalls: implement release command

2017-10-25 Thread Boris Ostrovsky
On 10/24/2017 01:33 PM, Stefano Stabellini wrote: > Send PVCALLS_RELEASE to the backend and wait for a reply. Take both > in_mutex and out_mutex to avoid concurrent accesses. Then, free the > socket. > > For passive sockets, check whether we have already pre-allocated an > active socket for the pur

Re: [PATCH v2 0/7] fix fanotify issues with the series in v4.12

2017-10-25 Thread Miklos Szeredi
On Wed, Oct 25, 2017 at 10:41 AM, Miklos Szeredi wrote: > We discovered some problems in the latest fsnotify/fanotify codebase with > the help of a stress test (Xiong Zhou is working on upstreaming it to > fstests). > > This series attempts to fix these. With the patch applied the stress test > p

Re: fuse readdirplus skip one entry when interrupted by signal

2017-10-25 Thread Miklos Szeredi
On Wed, Oct 25, 2017 at 4:28 PM, Marios Titas wrote: > Original reporter here ("Haskell user"). I tested your patch and everything > works as expected now. Thanks for the prompt response! Thanks for the report and testing. Thanks, Miklos

Re: [PATCH] I2C-PIIX4: Use common error handling code in piix4_probe()

2017-10-25 Thread Jean Delvare
On mer., 2017-10-25 at 13:40 +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 25 Oct 2017 13:30:18 +0200 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function. > > This issue was detected by using the Coccinelle software.

[PATCH] iio/accel/bmc150: Improve unlocking of a mutex in two functions

2017-10-25 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 25 Oct 2017 16:26:29 +0200 Add a jump target so that a call of the function "mutex_unlock" is mostly stored at the end of these function implementations. Replace five calls by goto statements. This issue was detected by using the Coccinelle software. Signed-off-b

Re: I2C-PIIX4: Use common error handling code in piix4_probe()

2017-10-25 Thread SF Markus Elfring
> I'm no longer taking patches from you. Why do you not like another update suggestion for this use case? Regards, Markus

Re: [PATCH v6 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-25 Thread Boris Ostrovsky
On 10/24/2017 01:33 PM, Stefano Stabellini wrote: > Also add pvcalls-front to the Makefile. > > Signed-off-by: Stefano Stabellini > CC: boris.ostrov...@oracle.com > CC: jgr...@suse.com > --- > drivers/xen/Kconfig | 9 + > drivers/xen/Makefile | 1 + > 2 files changed, 10 insertions(+) >

Re: [PATCH] tpm: Move Linux RNG connection to hwrng

2017-10-25 Thread PrasannaKumar Muralidharan
Hi Jason, Nice to see this patch. Some minor comments below. On 25 October 2017 at 00:12, Jason Gunthorpe wrote: > The tpm-rng.c approach is completely inconsistent with how the kernel > handles hotplug. Instead manage a hwrng device for each TPM. This will > cause the kernel to read entropy fro

Re: [RFC v4 13/17] [media] vb2: add in-fence support to QBUF

2017-10-25 Thread Brian Starkey
Hi Gustavo, On Fri, Oct 20, 2017 at 07:50:08PM -0200, Gustavo Padovan wrote: From: Gustavo Padovan Receive in-fence from userspace and add support for waiting on them before queueing the buffer to the driver. Buffers are only queued to the driver once they are ready. A buffer is ready when its

Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-25 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 25, 2017 at 02:50:33PM +0530, Naveen N. Rao escreveu: > On 2017/10/25 08:28AM, Jiri Olsa wrote: > > On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > > > Perf top is often crashing at very random locations on powerpc. > > > After investigating, I found the crash only happ

Re: alpha boot hang - 4.14-rc* regression

2017-10-25 Thread Meelis Roos
> > > > removing libata modules and rebooting fixes it - so it seems to be > > > > loading of libata. > > > > > > Can you please cherry-pick: > > > > > > commit b1f9e5e355e9 ("ide: fix IRQ assignment for PCI bus order probing") > > > > > > from mainline and let us know if that solves the issue

Re: [tpmdd-devel] [PATCH] tpm: remove chip_num parameter from in-kernel API

2017-10-25 Thread PrasannaKumar Muralidharan
Hi Jarkko, On 24 October 2017 at 23:52, Jarkko Sakkinen wrote: > On Tue, Oct 24, 2017 at 10:05:20PM +0530, PrasannaKumar Muralidharan wrote: >> > 1. Every user in the kernel is using TPM_ANY_NUM, which means there are >> >no other users. >> >> Completely agree that there is no in kernel users

Re: [PATCH v4 19/27] x86: assembly, make some functions local

2017-10-25 Thread Mark Rutland
On Wed, Oct 25, 2017 at 04:21:48PM +0200, Jiri Slaby wrote: > Hi, > > On 10/06/2017, 03:21 PM, Mark Rutland wrote: > > If the aim of this series is to introduce something that architectures > > use consistently, then can we please actually poke other architectures > > about it? e.g. send this to l

Re: [PATCH v2 1/2] Documentation: dt: extcon: add optional debounce-timeout-ms attribute

2017-10-25 Thread Rob Herring
On Thu, Oct 19, 2017 at 08:55:59AM +0530, Raveendra Padasalagi wrote: > Add documentation on optional dt attribute "debounce-timeout-ms" > in extcon node to capture user specified timeout value for id > and vbus gpio detection. > > Signed-off-by: Raveendra Padasalagi > Reviewed-by: Ray Jui > Rev

[PATCH v2] iio : Add cm3218 smbus ara and acpi support

2017-10-25 Thread Marc CAPDEVILLE
On asus T100, Capella cm3218 chip is implemented as ambiant light sensor. This chip expose an smbus ARA protocol device on standard address 0x0c. The chip is not functional before all alerts are acknowledged. On asus T100, this device is enumerated on ACPI bus and the description give tow I2C conne

[PATCH v8 0/2] crypto: s5p-sss: Add HASH support for Exynos

2017-10-25 Thread Kamil Konieczny
First patch change spaces to tabs, second adds HASH support for Exynos. Changes: version 8: - fixes suggested by Vladimir Zapolskiy: drop first condition check in s5p_hash_import, delete unused include delay.h, fix typo in commit message, fix descriptions of struct s5p_hash_reqctx and functio

[PATCH 2/2] crypto: s5p-sss: Add HASH support for Exynos

2017-10-25 Thread Kamil Konieczny
Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. It uses the crypto framework asynchronous hash api. It is based on omap-sham.c driver. S5P has some HW differencies and is not implemented. Modifications in s5p-sss: - Add hash supporting structures and functions. - Modify irq hand

[PATCH 1/2] crypto: s5p-sss: Change spaces to tabs

2017-10-25 Thread Kamil Konieczny
Change #define lines to use tabs consistently. Acked-by: Vladimir Zapolskiy Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kamil Konieczny --- drivers/crypto/s5p-sss.c | 190 +++ 1 file changed, 95 insertions(+), 95 deletions(-) diff --git a/driver

Re: [PATCH v2] lib: optimize cpumask_next_and()

2017-10-25 Thread Yury Norov
On Tue, Oct 24, 2017 at 12:51:59PM +0200, Clement Courbet wrote: > We've measured that we spend ~0.6% of sys cpu time in cpumask_next_and(). > It's essentially a joined iteration in search for a non-zero bit, which > is currently implemented as a lookup join (find a nonzero bit on the > lhs, lookup

Re: [PATCH v8 5/5] dt-bindings: watchdog: Add bindings for RAVE SP watchdog driver

2017-10-25 Thread Andrey Smirnov
On Tue, Oct 24, 2017 at 12:07 PM, Rob Herring wrote: > On Wed, Oct 18, 2017 at 10:01:36AM -0700, Andrey Smirnov wrote: > > Commit msg? > OK, will add in v9. >> Cc: linux-kernel@vger.kernel.org >> Cc: devicet...@vger.kernel.org >> Cc: linux-watch...@vger.kernel.org >> Cc: cphe...@gmail.com >> Cc:

Re: [PATCH 1/8] SOC: brcmstb: add memory API

2017-10-25 Thread Jim Quinlan
On Tue, Oct 24, 2017 at 8:23 PM, Florian Fainelli wrote: > Hi Jim, > > On 10/24/2017 11:15 AM, Jim Quinlan wrote: >> +#elif defined(CONFIG_MIPS) >> +int brcmstb_memory_phys_addr_to_memc(phys_addr_t pa) >> +{ >> + /* The logic here is fairly simple and hardcoded: if pa <= 0x5000_, >> +

Re: [PATCH] iscsi-target: Convert timers to use timer_setup()

2017-10-25 Thread Bart Van Assche
On Wed, 2017-10-25 at 16:10 +0200, Kees Cook wrote: > However, maintainers: sorry to send this one -- it can't be merged > yet, this uses timer_setup_on_stack() which is only in -next right > now. If it looks okay, though, I can carry this in the timer tree. Hello Kees, Can you have a look at the

Re: [PATCH v3 2/2] ima: check signature enforcement against cmdline param instead of CONFIG

2017-10-25 Thread Bruno E. O. Meneguele
On 24-10, Mimi Zohar wrote: > On Tue, 2017-10-24 at 15:37 -0200, Bruno E. O. Meneguele wrote: > > When the user requests MODULE_CHECK policy and its kernel is compiled > > with CONFIG_MODULE_SIG_FORCE not set, all modules would not load, just > > those loaded in initram time. One option the user wo

Re: [PATCH 2/2] crypto: s5p-sss: Add HASH support for Exynos

2017-10-25 Thread Vladimir Zapolskiy
Hi Kamil, thank you for updates, everything looks good from my point of view. On 10/25/2017 05:57 PM, Kamil Konieczny wrote: > Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. > It uses the crypto framework asynchronous hash api. > It is based on omap-sham.c driver. > S5P has some

[PATCH] sound: Convert timers to use timer_setup()

2017-10-25 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. These are all the "mechanical" changes remaining in the sound subsystem. Cc: Jaroslav Kysela Cc: Takashi Iw

[PATCH] xen/gntdev: avoid out of bounds access in case of partial gntdev_mmap()

2017-10-25 Thread Juergen Gross
In case gntdev_mmap() succeeds only partially in mapping grant pages it will leave some vital information uninitialized needed later for cleanup. This will lead to an out of bounds array access when unmapping the already mapped pages. So just initialize the data needed for unmapping the pages a li

Re: [PATCH v3 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-25 Thread Boris Ostrovsky
On 10/25/2017 02:45 AM, Dongli Zhang wrote: > After guest live migration on xen, steal time in /proc/stat > (cpustat[CPUTIME_STEAL]) might decrease because steal returned by > xen_steal_lock() might be less than this_rq()->prev_steal_time which is > derived from previous return value of xen_steal_c

Re: alpha boot hang - 4.14-rc* regression

2017-10-25 Thread Lorenzo Pieralisi
On Wed, Oct 25, 2017 at 05:49:54PM +0300, Meelis Roos wrote: > > > > > removing libata modules and rebooting fixes it - so it seems to be > > > > > loading of libata. > > > > > > > > Can you please cherry-pick: > > > > > > > > commit b1f9e5e355e9 ("ide: fix IRQ assignment for PCI bus order > >

[PATCH v6 0/6] Add MediaTek PMIC keys support

2017-10-25 Thread Chen Zhong
MediaTek PMIC are multi-function devices that can handle key interrupts, typically there are two keys attached to PMIC, which called pwrkey and homekey. PWRKEY usually used to wake up system from sleep. Homekey can used as volume down key due to board design. Long press keys can shutdown PMIC, t

Re: [PATCH 0/3] arm64: remove some unused defconfig options

2017-10-25 Thread Alex Elder
On 10/25/2017 02:02 AM, Andy Gross wrote: > On Tue, Oct 24, 2017 at 05:20:20PM -0700, Stephen Boyd wrote: >> On 10/20, Alex Elder wrote: >>> This series deletes three config options related to USB on Qualcomm >>> SoCs from the arm64 "defconfig", along with the code that they >>> enable. The code i

Re: [PATCH v2 0/7] fix fanotify issues with the series in v4.12

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 5:31 PM, Miklos Szeredi wrote: > On Wed, Oct 25, 2017 at 10:41 AM, Miklos Szeredi wrote: >> We discovered some problems in the latest fsnotify/fanotify codebase with >> the help of a stress test (Xiong Zhou is working on upstreaming it to >> fstests). >> >> This series att

Re: [PATCH v2] tpm: use struct tpm_chip for tpm_chip_find_get()

2017-10-25 Thread PrasannaKumar Muralidharan
Hi Jarkko, On 25 October 2017 at 17:25, Jarkko Sakkinen wrote: > Device number (the character device index) is not a stable identifier > for a TPM chip. That is the reason why every call site passes > TPM_ANY_NUM to tpm_chip_find_get(). > > This commit changes the API in a way that instead a stru

Re: [PATCH] tpm: Move Linux RNG connection to hwrng

2017-10-25 Thread Jason Gunthorpe
On Wed, Oct 25, 2017 at 08:15:09PM +0530, PrasannaKumar Muralidharan wrote: > > +static int tpm_add_hwrng(struct tpm_chip *chip) > > +{ > > + if (!IS_ENABLED(CONFIG_HW_RANDOM_TPM)) > > + return 0; > > Can #ifndef CONFIG_HW_RANDOM_TPM be used instead? That way an if > condition

Re: [PATCH] thermal: cpu_cooling: pr_err() strings should end with newlines

2017-10-25 Thread Javi Merino
On Tue, Oct 24, 2017 at 01:20:39PM +0530, Arvind Yadav wrote: > pr_err() messages should end with a new-line to avoid other messages > being concatenated. > > Signed-off-by: Arvind Yadav FWIW, Acked-by: Javi Merino > --- > drivers/thermal/cpu_cooling.c | 2 +- > 1 file changed, 1 insertion(+

Re: [PATCH v2] tpm: use struct tpm_chip for tpm_chip_find_get()

2017-10-25 Thread Jason Gunthorpe
On Wed, Oct 25, 2017 at 01:55:04PM +0200, Jarkko Sakkinen wrote: > Device number (the character device index) is not a stable identifier > for a TPM chip. That is the reason why every call site passes > TPM_ANY_NUM to tpm_chip_find_get(). > > This commit changes the API in a way that instead a str

Re: [PATCH] tpm: Move Linux RNG connection to hwrng

2017-10-25 Thread PrasannaKumar Muralidharan
Hi Jason, On 25 October 2017 at 20:48, Jason Gunthorpe wrote: > On Wed, Oct 25, 2017 at 08:15:09PM +0530, PrasannaKumar Muralidharan > wrote: > >> > +static int tpm_add_hwrng(struct tpm_chip *chip) >> > +{ >> > + if (!IS_ENABLED(CONFIG_HW_RANDOM_TPM)) >> > + return 0; >> >> Ca

Re: [PATCH 2/2] crypto: s5p-sss: Add HASH support for Exynos

2017-10-25 Thread Kamil Konieczny
Hi Vladimir, On 25.10.2017 17:09, Vladimir Zapolskiy wrote: > > thank you for updates, everything looks good from my point of view. > Thank you for your work, I am still newbie, I forgot 'v8' and to: linux-crypto :( So I will resend this patch series with improved title and your Ack added. >

[PATCH v8 2/2] crypto: s5p-sss: Add HASH support for Exynos

2017-10-25 Thread Kamil Konieczny
Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. It uses the crypto framework asynchronous hash api. It is based on omap-sham.c driver. S5P has some HW differencies and is not implemented. Modifications in s5p-sss: - Add hash supporting structures and functions. - Modify irq hand

[PATCH] iommu: qcom: wire up fault handler

2017-10-25 Thread Rob Clark
This is quite useful for debugging. Currently, always TERMINATE the translation when the fault handler returns (since this is all we need for debugging drivers). But I expect the SVM work should eventually let us do something more clever. Signed-off-by: Rob Clark --- drivers/iommu/qcom_iommu.c

[PATCH v2] iommu: qcom: wire up fault handler

2017-10-25 Thread Rob Clark
This is quite useful for debugging. Currently, always TERMINATE the translation when the fault handler returns (since this is all we need for debugging drivers). But I expect the SVM work should eventually let us do something more clever. Signed-off-by: Rob Clark --- v2: add back a hunk that wa

[PATCH v8 0/2] crypto: s5p-sss: Add HASH support for Exynos

2017-10-25 Thread Kamil Konieczny
First patch change spaces to tabs, second adds HASH support for Exynos. Changes: version 8: - fixes suggested by Vladimir Zapolskiy: drop first condition check in s5p_hash_import, delete unused include delay.h, fix typo in commit message, fix descriptions of struct s5p_hash_reqctx and functio

[PATCH v8 1/2] crypto: s5p-sss: Change spaces to tabs

2017-10-25 Thread Kamil Konieczny
Change #define lines to use tabs consistently. Acked-by: Vladimir Zapolskiy Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kamil Konieczny --- drivers/crypto/s5p-sss.c | 190 +++ 1 file changed, 95 insertions(+), 95 deletions(-) diff --git a/driver

Re [PATCH v2] lib: optimize cpumask_next_and()

2017-10-25 Thread Clement Courbet
Thanks for the comments Yury. > But I'd like also to keep _find_next_bit() consistent with > _find_next_bit_le() Not sure I understand what you're suggesting here: Do you want a find_next_and_bit_le() or do you want to make _find_next_bit_le() more like _find_next_bit() ? In the latter case we mi

Re: [PATCH] powerpc/powernv: Enable reset_devices parameter to issue a PHB reset

2017-10-25 Thread Guilherme G. Piccoli
V2 just sent to linuxppc-dev[0] list, with some simplifications. This one is then officially dropped! Thanks, Guilherme [0] http://patchwork.ozlabs.org/patch/830320

Re: [PATCH 6/8] PCI: host: brcmstb: add MSI capability

2017-10-25 Thread Jim Quinlan
On Tue, Oct 24, 2017 at 2:57 PM, Florian Fainelli wrote: > Hi Jim, > > On 10/24/2017 11:15 AM, Jim Quinlan wrote: >> This commit adds MSI to the Broadcom STB PCIe host controller. It does >> not add MSIX since that functionality is not in the HW. The MSI >> controller is physically located within

<    1   2   3   4   5   6   7   8   >