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 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] 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: 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] 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: [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] 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 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

[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] 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

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] 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] 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 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: [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

[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(+)

[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

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 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 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 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: [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 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:

[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 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

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

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

[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 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

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: [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? >

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] 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

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

[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

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

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: [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

[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 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. > >>

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

[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] 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

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: 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: [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: [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

[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] 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

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

2017-10-25 Thread Alexey Dobriyan
On 10/20/17, Greg KH wrote: > On Thu, Oct 19, 2017 at 05:34:35PM +0200, Alexey Dobriyan wrote: >> So the answer it not to fix /proc, the answer it to leave /proc alone. > > No, because: > >> The answer is make Unix shell people move their lazy asses and >> implement minimal type system and a way t

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

2017-10-25 Thread Chris Wilson
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 callbacks, switch to using the new timer_setup() and > > > fr

Re: [RFC PATCH v2 1/3] regulator: bindings: Add properties for coupled regulators

2017-10-25 Thread Maciej Purski
On 10/25/2017 02:59 PM, Rob Herring wrote: On Wed, Oct 25, 2017 at 2:31 AM, Maciej Purski wrote: On 10/24/2017 08:58 PM, Rob Herring wrote: On Wed, Oct 18, 2017 at 02:47:00PM +0200, Maciej Purski wrote: Some regulators require keeping their voltage spread below defined max_spread. Add

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

2017-10-25 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 25 Oct 2017 15:00:35 +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. Signed-off-by: Markus Elfring --- drivers/i2c/busses/i2c-s3c2410.c | 19

Re: [RFC PATCH v2 1/3] regulator: bindings: Add properties for coupled regulators

2017-10-25 Thread Rob Herring
On Wed, Oct 25, 2017 at 2:31 AM, Maciej Purski wrote: > > > On 10/24/2017 08:58 PM, Rob Herring wrote: >> >> On Wed, Oct 18, 2017 at 02:47:00PM +0200, Maciej Purski wrote: >>> >>> Some regulators require keeping their voltage spread below defined >>> max_spread. >>> >>> Add properties to provide i

Re: [PATCH] drivers/net: hippi: Convert timers to use timer_setup()

2017-10-25 Thread Jes Sorensen
On 10/25/2017 06:51 AM, Kees Cook wrote: 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. Cc: Jes Sorensen Cc: linux-hi...@sunsite.dk Cc: net...@vger.kern

[RFC 01/14] bootsplash: Initial implementation showing black screen

2017-10-25 Thread Max Staudt
This is the initial prototype for a lean Linux kernel bootsplash. It works by replacing fbcon's FB manipulation routines (such as bitblit, tileblit) with dummy functions, effectively disabling text output, and drawing the splash directly onto the FB device. As it is now, it will show a black scre

[RFC 02/14] bootsplash: Add platform device

2017-10-25 Thread Max Staudt
This allows us to export a userland API via sysfs, showing/hiding the splash on request by dracut, systemd, or other init systems. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash.c | 83 ++ drivers/video/fbdev/core/bo

[RFC 05/14] bootsplash: Disable splash on oops

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/fbcon.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c index 4ac1a33be418..cbe8a4480037 100644 --- a/drivers/video/fbdev/core/fbcon.

[RFC 00/14] Kernel based bootsplash

2017-10-25 Thread Max Staudt
Dear fbdev and fbcon developers, Could you please voice your opinion on the following patch series? This series adds simple bootsplash functionality on top of fbcon. A (simple!) kernel based bootsplash allows system integrators to show an earlier and more reliable bootsplash, completely hiding

[RFC 12/14] bootsplash: Add sysfs ABI documentation

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- Documentation/ABI/testing/sysfs-platform-bootsplash | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-platform-bootsplash diff --git a/Documentation/ABI/testing/sysfs-platform

[RFC 07/14] bootsplash: Add VT keyboard hook

2017-10-25 Thread Max Staudt
Let's disable the splash if the user presses ESC or F1-F12 on a VT. The F1-F12 check is to disable the splash on VT switches. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/tty/vt/keyboard.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/tty/vt/keybo

[RFC 08/14] bootsplash: Add file reading and picture rendering

2017-10-25 Thread Max Staudt
Load logo(s) from a file and render them in the center of the screen. This removes the "black screen" functionality, which can now be emulated by providing a splash file with no pictures and a black background. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/console/Kcon

[RFC 06/14] bootsplash: Disable on SysRq SAK

2017-10-25 Thread Max Staudt
When the user requests a clean TTY via the SAK SysRq, that means he really wants to use the console. Let's disable the bootsplash, even if the request is not on a VT, as the user probably knows what he's doing and it's more helpful to get out of his way. Signed-off-by: Max Staudt Reviewed-by: Ol

[RFC 10/14] bootsplash: Add animation support

2017-10-25 Thread Max Staudt
Each 'picture' in the splash file can consist of multiple 'blobs'. If animation is enabled, these blobs become the frames of an animation, in the order in which they are stored in the file. Note: There is only one global timer, so all animations happen at the same frame rate. It doesn't rea

[RFC 11/14] bootsplash: Redraw fully on console_unblank

2017-10-25 Thread Max Staudt
After exiting a KD_GRAPHICS program and falling back to the text console, a previously enabled splash needs to be fully redrawn. Without this patch, the following fails: 1. Switch to a text console 2. Enable splash 3. Start X (or any other KD_GRAPHICS program) 4. Exit X 5. Splash is not seen, apa

[RFC 09/14] bootsplash: Add corner positioning

2017-10-25 Thread Max Staudt
This allows showing multiple logos, each in its own position, relative to the eight screen corners. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash_file.h | 42 - drivers/video/fbdev/core/bootsplash_render.c | 55 +++

[RFC 04/14] bootsplash: Redraw on suspend/hibernate

2017-10-25 Thread Max Staudt
When the system is woken from sleep or restored after hibernating, we cannot expect the screen contents to still be present in VRAM. Thus, we have to redraw the splash if we're currently active. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash.c | 22

[RFC 13/14] bootsplash: Add main documentation

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- Documentation/fb/bootsplash.txt | 169 1 file changed, 169 insertions(+) create mode 100644 Documentation/fb/bootsplash.txt diff --git a/Documentation/fb/bootsplash.txt b/Documentation/fb/bootspla

[RFC 14/14] bootsplash: Update MAINTAINERS

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a74227ad082e..ee792797cee9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2705,6 +2705,15 @@ S: Supported F: drivers/net/bo

[RFC 03/14] bootsplash: Flush framebuffer after drawing

2017-10-25 Thread Max Staudt
Framebuffers with deferred I/O need to be flushed to the screen explicitly, since we use neither the mmap nor the file I/O abstractions that handle this for userspace FB clients. Example: xenfb Some framebuffer drivers implement lazy access to the screen without actually exposing a fbdefio interf

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

2017-10-25 Thread Alexey Dobriyan
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? closefrom() can be implemented on top of fdmap(). fdmap as is i

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

2017-10-25 Thread Jason A. Donenfeld
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); > cmd->dataout_timer.expires = (get_jiffies_64() + na->dataout_timeo

Re: [PATCH v2 0/3] pinctrl: sunxi: Start to enforce the strict mode

2017-10-25 Thread Maxime Ripard
Hi Linus, On Mon, Oct 09, 2017 at 10:53:36PM +0200, Maxime Ripard wrote: > Hi, > > Here is an attempt to enable pinctrl's strict mode on our pinctrl drivers. > Indeed, our controllers should have had that mode enabled since its > introduction. > > However, there's a number of issues with old dev

Re: [PATCH 2/2] scsi: megaraid: Track the page allocations for struct fusion_context

2017-10-25 Thread Martin K. Petersen
Yisheng, > I have get many kmemleak reports just similar to commit 70c54e210ee9 > (scsi: megaraid_sas: fix memleak in megasas_alloc_cmdlist_fusion) > on v4.14-rc6, however it seems have a different stroy: Do you still see leaks reported with the megaraid driver update recently merged into 4.15/s

[PATCH] kernel/kprobes: add check to avoid memory leaks

2017-10-25 Thread Bixuan Cui
The register_kretprobe(struct kretprobe *rp) creates and initializes a hash list for rp->free_instances when register kretprobe every time. Then malloc memory for it. The test case: static struct kretprobe rp; struct kretprobe *rps[2]={&rp, &rp}; static int ret_handler(struct kretprobe_instance *

Re: [PATCH 00/19] hisi_sas: misc fixes, improvements, and new features

2017-10-25 Thread Martin K. Petersen
John, > This patchset contains many misc fixes, improvements, and a few new > features. > > Here is a list of the significant changes: > - more fixes for hisi_hba.locking > - v3 hw DFX feature > - random error handling bugfixes > - reporting v2 hw errors to userspace Applied to 4.15/scsi-queue.

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

2017-10-25 Thread Chao Yu
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 comments below. > > On 2017/8/18 23:09, Yunlong Song wrote: >> This patch adds cur_

Re: [PATCH v2 3/5] kbuild: Use relative path for $(objtree)

2017-10-25 Thread Masahiro Yamada
Hi Geert, (+CC Michal's new address) 2017-10-16 19:26 GMT+09:00 Geert Uytterhoeven : > Hi Michal, > > On Thu, Jun 5, 2014 at 5:56 PM, Michal Marek wrote: >> On Wed, Jun 04, 2014 at 03:12:33PM +0200, Michal Marek wrote: >>> On 2014-06-04 11:43, Michal Marek wrote: >>> > On 2014-06-04 11:03, Rich

Re: alpha boot hang - 4.14-rc* regression

2017-10-25 Thread Meelis Roos
> > (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 them. Tried bisecting on PC164, got into unrelated > > > > stuff, so probably it doe

Re: [fstests PATCH v2] generic: add test for DAX MAP_SYNC support

2017-10-25 Thread Amir Goldstein
On Sun, Oct 22, 2017 at 9:56 AM, Amir Goldstein wrote: > On Sat, Oct 21, 2017 at 12:25 AM, Ross Zwisler > wrote: >> Add a test that exercises DAX's new MAP_SYNC flag. >> >> This test creates a file and writes to it via an mmap(), but never syncs >> via fsync/msync. This process is tracked via dm

Re: [PATCH v4 04/21] doc: media/v4l-drivers: Add Qualcomm Camera Subsystem driver document

2017-10-25 Thread Daniel Mack
Hi Todor, On Wednesday, October 25, 2017 02:07 PM, Todor Tomov wrote: > On 16.10.2017 18:01, Daniel Mack wrote: >> I'd be grateful for any pointer about what I could investigate on. >> > > Everything that you have described seems correct. > > As you say that frames do not contain any data, do >

Re: How to power gate a specific single device from outside?

2017-10-25 Thread Waldemar Rymarkiewicz
On 25 October 2017 at 01:56, Alan Cox wrote: > > For a lot of devices if you close it then it will try and put the device > into a low power state. If a driver isn't doing that then (unless there > are hardware constraints preventing it) it would make sense to fix it. > > There are some things ent

Re: [PATCH] bitmap: Fix optimization of bitmap_set/clear for big-endian machines

2017-10-25 Thread Matthew Wilcox
(I don't think I can reliably send patches from outlook; sorry for breaking the threading) I see where we're not incrementing the failure count ... try this patch! --- 8< --- Subject: Fix bitmap optimisation tests to report errors correctly From: Matthew Wilcox I had neglected to increment th

[PATCH 1/3 v4] perf/x86/intel/uncore: Cache logical pkg id in uncore driver

2017-10-25 Thread Prarit Bhargava
From: Andi Kleen The SNB-EP uncore driver is the only user of topology_phys_to_logical_pkg in a performance critical path. Change it query the logical pkg ID only once at initialization time and then cache it in box structure. Signed-off-by: Andi Kleen Cc: Thomas Gleixner Cc: Ingo Molnar Cc:

[PATCH 2/3 v4] x86/topology: Avoid wasting 128k for package id array

2017-10-25 Thread Prarit Bhargava
From: Andi Kleen I was looking at large early boot allocations and noticed that since (1f12e32f x86/topology: Create logical package id) every 64bit system allocates a 128k array to convert logical package ids. This happens because the array is sized to (MAX_LOCAL_APIC * u16) = 128k. This is a l

[PATCH 3/3 v4] x86/smpboot: Fix __max_logical_packages estimate

2017-10-25 Thread Prarit Bhargava
A system booted with a small number of cores enabled per package panics because the estimate of __max_logical_packages is too low. This occurs when the total number of active cores across all packages is less than the maximum core count for a single package. ie) On a 4 package system with 20 cores

[PATCH 0/3 v4] Fix panic in logical packages calculation

2017-10-25 Thread Prarit Bhargava
A system booted with a small number of cores enabled per package panics because the estimate of __max_logical_packages is too low. This occurs when the total number of active cores across all packages is less than the maximum core count for a single package. Andi noted that the logical_packages ca

Re: [PATCH v4 04/21] doc: media/v4l-drivers: Add Qualcomm Camera Subsystem driver document

2017-10-25 Thread Todor Tomov
Hi Daniel, On 16.10.2017 18:01, Daniel Mack wrote: > Hi, > > On 28.08.2017 09:10, Todor Tomov wrote: >> On 25.08.2017 17:10, Daniel Mack wrote: >>> Could you explain how ISPIF, CSID and CSIPHY are related? >>> >>> I have a userspace test setup that works fine for USB webcams, but when >>> operati

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

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 3:06 PM, Amir Goldstein wrote: > On Wed, Oct 25, 2017 at 11:41 AM, Miklos Szeredi wrote: >> This patch doesn't actually fix any bug, just paves the way for fixing mark >> and group pinning. >> >> Signed-off-by: Miklos Szeredi >> Cc: # v4.12 >> --- >> fs/notify/mark.c |

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

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 11:41 AM, Miklos Szeredi wrote: > This patch doesn't actually fix any bug, just paves the way for fixing mark > and group pinning. > > Signed-off-by: Miklos Szeredi > Cc: # v4.12 > --- > fs/notify/mark.c | 89 > ++-- >

Applied "spi: sprd: Fix the possible negative value of BIT()" to the spi tree

2017-10-25 Thread Mark Brown
The patch spi: sprd: Fix the possible negative value of BIT() has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

Re: [PATCH] PCI: endpoint: handle probable NULL pointer access

2017-10-25 Thread Kishon Vijay Abraham I
Hi, On Wednesday 25 October 2017 01:32 AM, Bjorn Helgaas wrote: > On Thu, Oct 12, 2017 at 09:27:57AM +0530, Pankaj Dubey wrote: >> controller_group allocation in pci_ep_cfs_init function can fail >> so we should have a check while using it in pci_ep_cfs_add_epc_group >> for registering group, else

Re: [PATCH v9 0/7] Add support for Qualcomm A53 CPU clock

2017-10-25 Thread Georgi Djakov
On 09/21/2017 07:49 PM, Georgi Djakov wrote: > This patchset adds support for the A53 CPU clock on MSM8916 platforms > and allows scaling of the CPU frequency on msm8916 based platforms. > > Changes since v8 (https://lkml.org/lkml/2017/6/23/476) > * Converted APCS mailbox driver to use regmap and

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

2017-10-25 Thread Jarkko Sakkinen
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 struct tpm_chip instance is given and NULL means the default chip. In addition

Re: [PATCH v5 03/10] KVM: arm/arm64: vgic-its: Check CBASER/BASER validity before enabling the ITS

2017-10-25 Thread Christoffer Dall
On Mon, Oct 23, 2017 at 04:08:22PM +0200, Eric Auger wrote: > The spec says it is UNPREDICTABLE to enable the ITS > if any of the following conditions are true: > > - GITS_CBASER.Valid == 0. > - GITS_BASER.Valid == 0, for any GITS_BASER register > where the Type field indicates Device. > - GITS_

Re: [RESEND PATCH 1/3] completion: Add support for initializing completion with lockdep_map

2017-10-25 Thread Byungchul Park
On Wed, Oct 25, 2017 at 07:07:06AM +, Bart Van Assche wrote: > > Please, point out logical problems of cross-release than saying it's > > impossbile according to the paper. > > Isn't that the same? If it's impossible to use lock-graphs for detecting > deadlocks > in programs that use mutexes,

[GIT PULL] phy: for 4.15 merge window

2017-10-25 Thread Kishon Vijay Abraham I
Hi Greg, Please find the pull request for 4.15 merge window below. It includes a couple of phy core changes (adds phy_calibrate() API and return NULL for optional phy_get even if CONFIG_GENERIC_PHY is not selected). Apart from that, it adds a new USB PHY driver for Broadcom STB SoCs and includes o

Re: [PATCH v2 6/7] fsnotify: clean up fsnotify()

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 11:41 AM, Miklos Szeredi wrote: > Use helpers to get first and next marks from connector. > > Also get rid of inode_node/vfsmount_node local variables, which just refers > to the same objects as iter_info. There was an srcu_dereference() for > foo_node, but that's complete

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

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 11:41 AM, Miklos Szeredi wrote: > The only negative from this patch should be an addition of 32bytes to > 'struct fsnotify_group' if CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not > defined. > Thanks for this cleanup! See one question and coding style nits below. > Signed-off-

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

2017-10-25 Thread SF Markus Elfring
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. Signed-off-by: Markus Elfring --- drivers/i2c/busses/i2c-piix4.c | 16 ++

<    1   2   3   4   5   6   7   8   >