Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-14 Thread Sergey Senozhatsky
On (12/14/17 15:27), Petr Mladek wrote: > > Therefore I tend to give Steven's solution a chance before this > combined approach. > have you seen this https://marc.info/?l=linux-kernel&m=151015850209859 or this https://marc.info/?l=linux-kernel&m=151011840830776&w=2 or this https://marc.info/?l=li

Re: [v3,2/2] hwmon (pmbus): cffps: Add debugfs entries

2017-12-14 Thread Guenter Roeck
On Mon, Dec 11, 2017 at 03:32:50PM -0600, eaja...@linux.vnet.ibm.com wrote: > From: "Edward A. James" > > Add debugfs entries for additional power supply data, including part > number, serial number, FRU number, firmware revision, ccin, and the > input history of the power supply. The input histo

Re: [PATCH] PCI/DPC: Fix shared interrupt handling

2017-12-14 Thread Keith Busch
On Wed, Dec 13, 2017 at 05:01:58PM -0700, Alex Williamson wrote: > @@ -109,6 +109,7 @@ static void interrupt_event_handler(struct work_struct > *work) > struct dpc_dev *dpc = container_of(work, struct dpc_dev, work); > struct pci_dev *dev, *temp, *pdev = dpc->dev->port; > struct

Re: [PATCH] Fix for hanging si2168 in PCTV 292e, making the code match

2017-12-14 Thread Mauro Carvalho Chehab
Em Tue, 19 Sep 2017 13:13:52 +0100 Nigel Kettlewell escreveu: > [re-sending as plain text] > > Fix for hanging si2168 in PCTV 292e USB, making the code match the comment. > > Using firmware v4.0.11 the 292e would work once and then hang on > subsequent attempts to view DVB channels, until phys

[PULL] drm-misc-fixes

2017-12-14 Thread Daniel Vetter
Hi Linus&Dave, drm-misc-fixes-2017-12-14: drm-misc-fixes for 4.15-rc4 2 fixes for new core features, a corner case fix for the connnector_iter fix from last week (that one is cc: stable) and 1 vc4 fix. Imo that's enough that I figured better not delay until Dave is back. Linus, can you pls appl

Re: [PATCH 6/8 v3] staging: pi433: use defines for shifting register values

2017-12-14 Thread Dan Carpenter
You'll need to resend everything. The thread is too messy. On Wed, Dec 13, 2017 at 06:44:44PM +0100, Valentin Vidic wrote: > diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c > index f77ecd60f43a..0889c65d5a31 100644 > --- a/drivers/staging/pi433/rf69.c > +++ b/drivers/stag

Re: [PATCH v2] ARM64: dts: meson-axg: add ethernet mac controller

2017-12-14 Thread Jerome Brunet
On Thu, 2017-12-14 at 11:02 +0800, Yixun Lan wrote: > Add DT info for the stmmac ethernet MAC which found in > the Amlogic's Meson-AXG SoC, also describe the ethernet > pinctrl & clock information here. > > This is tested in the S400 dev board which use a RTL8211F PHY, > and the pins connect to th

Re: [PATCH] PCI/DPC: Fix shared interrupt handling

2017-12-14 Thread Alex Williamson
On Thu, 14 Dec 2017 07:50:31 -0700 Keith Busch wrote: > On Wed, Dec 13, 2017 at 05:01:58PM -0700, Alex Williamson wrote: > > @@ -109,6 +109,7 @@ static void interrupt_event_handler(struct work_struct > > *work) > > struct dpc_dev *dpc = container_of(work, struct dpc_dev, work); > > struc

Re: [PATCH v2 0/2] mm: introduce MAP_FIXED_SAFE

2017-12-14 Thread Edward Napierala
On 1214T1415, Michal Hocko wrote: > On Thu 14-12-17 12:44:17, Edward Napierala wrote: > > Regarding the name - how about adopting MAP_EXCL? It was introduced in > > FreeBSD, > > and seems to do exactly this; quoting mmap(2): > > > > MAP_FIXEDDo not permit the system to select a different addr

Re: [PATCH 06/12] mmc: sdhci_omap: Add support to set IODELAY values

2017-12-14 Thread Tony Lindgren
Hi, * Kishon Vijay Abraham I [171214 13:13]: > The data manual of J6/J6 Eco recommends to set different IODELAY values > depending on the mode in which the MMC/SD is enumerated in order to > ensure IO timings are met. > > Add support to set the IODELAY values depending on the various MMC > modes

Re: [PATCH 1/1] dt-bindings: arm: document supported STM32 SoC family

2017-12-14 Thread Rob Herring
On Wed, Dec 13, 2017 at 2:40 AM, Ludovic BARRE wrote: > hi Rob > > Today there was no bindings documentation for STM32 SoC > already upstreamed. This patch adds initial list of STM32 > existing in kernel. > The next serie adds just new soc and one compatible on STM32 list. Yes, and that series wi

Re: [PATCH 0/2] Fixed voltage regulator: Adjustments for two function implementations

2017-12-14 Thread Mark Brown
On Thu, Dec 14, 2017 at 02:21:55PM +0100, SF Markus Elfring wrote: > How are the chances that such change possibilities will be integrated > in this software module? Please don't send content free pings and please allow a reasonable time for review. People get busy, go on holiday, attend confere

Re: [PATCH v6 00/14] soundwire: Add a new SoundWire subsystem

2017-12-14 Thread Mark Brown
On Thu, Dec 14, 2017 at 01:49:49PM +0100, Greg Kroah-Hartman wrote: > Ok, but that feels a bit rushed, as I'm guessing those sysfs files are > essencial for the use of the hardware. To not include them feels odd to > me :) As a reviewer if we can get the rest of the series moving so that there's

[PATCH] of: build dbts with symbols when CONFIG_OF_OVERLAY is set

2017-12-14 Thread Andre Heider
The overlay feature requires the base dtb to be built with symbols, so lets build the dtbs with symbols when overlay support was explicitly enabled. With CONFIG_OF_ALL_DTBS on ARCH=arm the 989 dtb files grow about ~38% on average. Totals in bytes with the 3 biggest ones: Before: 90471

[PATCH 0/6] Fix cdrom autoclose

2017-12-14 Thread Michal Suchanek
Hello, there is cdrom autoclose feature that is supposed to close the tray, wait for the disc to become ready, and then open the device. This used to work in ancient times. Then in old times there was a hack in util-linux which worked around the breakage which probably resulted from switching to

Re: [PATCH 00/19] fs: rework and optimize i_version handling in filesystems

2017-12-14 Thread J. Bruce Fields
On Thu, Dec 14, 2017 at 09:14:47AM -0500, Jeff Layton wrote: > On Wed, 2017-12-13 at 19:02 -0500, Jeff Layton wrote: > > On Thu, 2017-12-14 at 10:03 +1100, Dave Chinner wrote: > > > On Wed, Dec 13, 2017 at 03:14:28PM -0500, Jeff Layton wrote: > > > > On Wed, 2017-12-13 at 10:05 -0500, J. Bruce Fiel

[PATCH 3/6] cdrom: wait for tray to close

2017-12-14 Thread Michal Suchanek
The scsi command to close tray only starts the motor and does not wait for the tray to close. Wait until the state chages from TRAY_OPEN so users do not race with the tray closing. This looks like inifinte wait but unless the drive is broken it either closes the tray within a few seconds or report

[PATCH 4/6] cdrom: introduce CDS_DRIVE_ERROR

2017-12-14 Thread Michal Suchanek
CDS_DRIVE_NOT_READY is used for the state in which CDROM is 'becoming ready' (typically analyzing the disc) but also as the fallback when nothing else applies. Introduce CDS_DRIVE_ERROR for the fallback case. Signed-off-by: Michal Suchanek --- drivers/block/paride/pcd.c | 2 +- drivers/cdrom/gd

[PATCH 6/6] cdrom: wait for drive to become ready

2017-12-14 Thread Michal Suchanek
When the drive closes it can take tens of seconds until the disc is analyzed. Wait for the drive to become ready or report an error. Signed-off-by: Michal Suchanek --- drivers/cdrom/cdrom.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c

[PATCH 5/6] Documentetion: cdrom: introduce CDS_DRIVE_ERROR

2017-12-14 Thread Michal Suchanek
CDS_DRIVE_NOT_READY is used for the state in which CDROM is 'becoming ready' (typically analyzing the disc) but also as the fallback when nothing else applies. Introduce CDS_DRIVE_ERROR for the fallback case. Signed-off-by: Michal Suchanek --- Documentation/cdrom/cdrom-standard.tex | 8 +++-

[PATCH 1/6] delay: add poll_event_interruptible

2017-12-14 Thread Michal Suchanek
Add convenience macro for polling an event that does not have a waitqueue. Signed-off-by: Michal Suchanek --- include/linux/delay.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/delay.h b/include/linux/delay.h index b78bab4395d8..3ae9fa395628 100644 --- a/includ

[PATCH 2/6] cdrom: factor out common open_for_* code

2017-12-14 Thread Michal Suchanek
The open_for_audio and open_for_data copies are bitrotten in different ways already and will need to update the autoclose logic in both. Signed-off-by: Michal Suchanek --- drivers/cdrom/cdrom.c | 100 ++ 1 file changed, 36 insertions(+), 64 deletio

Re: [PATCH 04/14] ARM: dts: dra76x: Create a common file with MMC/SD IOdelay data

2017-12-14 Thread Tony Lindgren
* Kishon Vijay Abraham I [171214 13:44]: > +&dra7_pmx_core { > + mmc1_pins_default: mmc1_pins_default { > + pinctrl-single,pins = < > + DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_MODE0) > /* mmc1_clk.clk */ > + DRA7XX_CORE_IOPAD(0x3758

[PATCH v2 0/7] Add the I3C subsystem

2017-12-14 Thread Boris Brezillon
This patch series is a proposal for a new I3C [1] subsystem. This infrastructure is not complete yet and will be extended over time. There are a few design choices that are worth mentioning because they impact the way I3C device drivers can interact with their devices: - all functions used to se

Re: arm64: unhandled level 0 translation fault

2017-12-14 Thread Will Deacon
Hi Geert, On Thu, Dec 14, 2017 at 03:34:50PM +0100, Geert Uytterhoeven wrote: > On Tue, Dec 12, 2017 at 11:20 AM, Geert Uytterhoeven > wrote: > > During userspace (Debian jessie NFS root) boot on arm64: > > > > rpcbind[1083]: unhandled level 0 translation fault (11) at 0x0008, > > esr 0x92000

[PATCH v2 6/7] i3c: master: Add driver for Cadence IP

2017-12-14 Thread Boris Brezillon
Add a driver for Cadence I3C master IP. Signed-off-by: Boris Brezillon --- Changes in v2: - Add basic IBI support. Note that the IP is not really reliable with regards to IBI because you can't extract IBI payloads as soon as you have more than one IBI waiting in the HW queue. This is somethin

[PATCH] ipmi: Stop timers before cleaning up the module

2017-12-14 Thread minyard
From: Masamitsu Yamazaki commit 4f7f5551a760eb0124267be65763008169db7087 upstream. System may crash after unloading ipmi_si.ko module because a timer may remain and fire after the module cleaned up resources. cleanup_one_si() contains the following processing. /* * Make sure t

Re: [PATCH -mm -V2] mm, swap: Fix race between swapoff and some swap operations

2017-12-14 Thread Michal Hocko
On Thu 14-12-17 21:38:32, Huang, Ying wrote: > From: Huang Ying > > When the swapin is performed, after getting the swap entry information > from the page table, system will swap in the swap entry, without any > lock held to prevent the swap device from being swapoff. This may > cause the race l

[PATCH] ipmi: Stop timers before cleaning up the module

2017-12-14 Thread minyard
From: Masamitsu Yamazaki commit 4f7f5551a760eb0124267be65763008169db7087 upstream. System may crash after unloading ipmi_si.ko module because a timer may remain and fire after the module cleaned up resources. cleanup_one_si() contains the following processing. /* * Make sure t

[PATCH v2 1/7] i2c: Export of_i2c_get_board_info()

2017-12-14 Thread Boris Brezillon
I3C busses have to know about all I2C devices connected on the I3C bus to properly initialize the I3C master, and I2C frames can't be sent on the bus until this initialization is done. We can't let the I2C core parse the DT and instantiate I2C devices as part of its i2c_add_adapter() procedure bec

[PATCH v2 5/7] dt-bindings: i3c: Document core bindings

2017-12-14 Thread Boris Brezillon
A new I3C subsystem has been added and a generic description has been created to represent the I3C bus and the devices connected on it. Document this generic representation. Signed-off-by: Boris Brezillon --- Changes in v2: - Define how to describe I3C devices in the DT and when it should be u

Re: [PATCH] x86/pti: Add pti= cmdline option and documentation

2017-12-14 Thread Will Deacon
On Tue, Dec 12, 2017 at 02:28:56PM +, Will Deacon wrote: > On Tue, Dec 12, 2017 at 02:39:52PM +0100, Borislav Petkov wrote: > > From: Borislav Petkov > > > > Keep the "nopti" for traditional reasons. > > > > Requested-by: Linus Torvalds > > Signed-off-by: Borislav Petkov > > Cc: Linus Torv

[PATCH v2 7/7] dt-bindings: i3c: Document Cadence I3C master bindings

2017-12-14 Thread Boris Brezillon
Document Cadence I3C master DT bindings. Signed-off-by: Boris Brezillon --- .../devicetree/bindings/i3c/cdns,i3c-master.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt diff --git a/Documentation/d

[PATCH] ipmi: Stop timers before cleaning up the module

2017-12-14 Thread minyard
From: Masamitsu Yamazaki commit 4f7f5551a760eb0124267be65763008169db7087 upstream. System may crash after unloading ipmi_si.ko module because a timer may remain and fire after the module cleaned up resources. cleanup_one_si() contains the following processing. /* * Make sure t

Re: [PATCH v3] arm64: cpu_errata: Add Kryo to Falkor 1003 errata

2017-12-14 Thread Will Deacon
On Wed, Dec 13, 2017 at 02:19:37PM -0800, Stephen Boyd wrote: > The Kryo CPUs are also affected by the Falkor 1003 errata, so > we need to do the same workaround on Kryo CPUs. The MIDR is > slightly more complicated here, where the PART number is not > always the same when looking at all the bits f

[PATCH v2 3/7] docs: driver-api: Add I3C documentation

2017-12-14 Thread Boris Brezillon
Add the I3C documentation describing the protocol, the master driver API and the device driver API. Signed-off-by: Boris Brezillon --- Changes in v2: - Moved out of patch "i3c: Add core I3C infrastructure" - Add link to the I3C spec - Move rst files in Documentation/driver-api/i3c/ --- Documenta

[PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-14 Thread Boris Brezillon
Add core infrastructure to support I3C in Linux and document it. This infrastructure is not complete yet and will be extended over time. There are a few design choices that are worth mentioning because they impact the way I3C device drivers can interact with their devices: - all functions used t

[PATCH v2 4/7] i3c: Add sysfs ABI spec

2017-12-14 Thread Boris Brezillon
Document sysfs files/directories/symlinks exposed by the I3C subsystem. Signed-off-by: Boris Brezillon --- Changes in v2: - new patch --- Documentation/ABI/testing/sysfs-bus-i3c | 95 + 1 file changed, 95 insertions(+) create mode 100644 Documentation/ABI/testing

[PATCH v2] PCI/DPC: Fix shared interrupt handling

2017-12-14 Thread Alex Williamson
DPC supports shared interrupts, but it plays very loosely with testing whether the interrupt is generated by DPC before generating spurious log messages, such as: dpc :10:01.2:pcie010: DPC containment event, status:0x1f00 source:0x Testing the status register for zero or -1 is not suffic

[PATCH 6/8 v4] staging: pi433: remove unused function

2017-12-14 Thread Valentin Vidic
As it turns out rf69_get_lna_gain is not used at all. Signed-off-by: Valentin Vidic --- v2: - drop change for SHIFT_DATAMODUL_MODULATION_TYPE - move shifting to the header file v3: - drop auto case - use CURRENT suffix - precompute define values v4: - drop the whole function since it

Re: [PATCH] misc: kgdbts: Display progress of asynchronous tests

2017-12-14 Thread Jason Wessel
On 12/12/2017 06:10 AM, Daniel Thompson wrote: kgdbts includes a couple of different "thrashing" style tests that may have long runtimes (especially on simulated platforms) and which run asynchronously. This is uncomfortable for interactive use and makes setting timeouts tricky for automatic use.

Re: [PATCH AUTOSEL for 4.14 111/135] ASoC: samsung: i2s: disable secondary DAI until it gets fixed

2017-12-14 Thread alexander . levin
On Thu, Dec 07, 2017 at 05:33:36PM +, Mark Brown wrote: >On Thu, Dec 07, 2017 at 03:45:57PM +, alexander.le...@verizon.com wrote: > >> Secondary DAI in Exynos I2S driver is not used by any of the currently >> supported boards and it causes problems due to some limitations in the >> ASoC cod

waitqueue lockdep annotation V3

2017-12-14 Thread Christoph Hellwig
Hi all, this series adds a strategic lockdep_assert_held to __wake_up_common to ensure callers really do hold the wait_queue_head lock when calling the unlocked wake_up variants. It turns out epoll did not do this for a fairly common path (hit all the time by systemd during bootup), so the second

[PATCH 2/3] userfaultfd: use fault_wqh lock

2017-12-14 Thread Christoph Hellwig
From: Matthew Wilcox The epoll code currently uses the unlocked waitqueue helpers for managing fault_wqh, but instead of holding the waitqueue lock for this waitqueue around these calls, it the waitqueue lock of fault_pending_wq, which is a different waitqueue instance. Given that the waitqueue

Re: arm64: unhandled level 0 translation fault

2017-12-14 Thread Dave P Martin
On Thu, Dec 14, 2017 at 02:34:50PM +, Geert Uytterhoeven wrote: > Hi Catalin, Will, Dave, > > On Tue, Dec 12, 2017 at 11:20 AM, Geert Uytterhoeven > wrote: > > During userspace (Debian jessie NFS root) boot on arm64: > > > > rpcbind[1083]: unhandled level 0 translation fault (11) at 0x0008

[PATCH 3/3] sched/wait: assert the wait_queue_head lock is held in __wake_up_common

2017-12-14 Thread Christoph Hellwig
Better ensure we actually hold the lock using lockdep than just commenting on it. Due to the various exported _locked interfaces it is far too easy to get the locking wrong. Signed-off-by: Christoph Hellwig Acked-by: Ingo Molnar --- kernel/sched/wait.c | 2 ++ 1 file changed, 2 insertions(+)

[PATCH 1/2] ip_gre: fix potential memory leak in erspan_rcv

2017-12-14 Thread Haishuang Yan
If md is NULL, tun_dst must be freed, otherwise it will cause memory leak. Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") Cc: William Tu Signed-off-by: Haishuang Yan --- net/ipv4/ip_gre.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/ipv4/ip

[PATCH 2/2] ip6_gre: fix potential memory leak in ip6erspan_rcv

2017-12-14 Thread Haishuang Yan
If md is NULL, tun_dst must be freed, otherwise it will cause memory leak Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support") Cc: William Tu Signed-off-by: Haishuang Yan --- net/ipv6/ip6_gre.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/ipv6/ip6_gre.

[PATCH 1/3] epoll: use the waitqueue lock to protect ep->wq

2017-12-14 Thread Christoph Hellwig
The epoll code currently uses the unlocked waitqueue helpers for managing ep->wq, but instead of holding the waitqueue lock around these calls, it uses its own ep->lock spinlock. Given that the waitqueue is not exposed to the rest of the kernel this actually works ok at the moment, but prevents th

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-14 Thread Tejun Heo
Hello, Petr. On Thu, Dec 14, 2017 at 03:27:09PM +0100, Petr Mladek wrote: > Ah, I know that it was me who was pessimistic about Steven's approach[1] > and persuaded you that offloading idea was still alive. But I am less > sure now. So, I don't really care which one gets in as long as the liveloc

Re: [PATCH AUTOSEL for 4.14 111/135] ASoC: samsung: i2s: disable secondary DAI until it gets fixed

2017-12-14 Thread Mark Brown
On Thu, Dec 14, 2017 at 03:21:43PM +, alexander.le...@verizon.com wrote: > On Thu, Dec 07, 2017 at 05:33:36PM +, Mark Brown wrote: > >People carry out of tree patches for that hardware, I'm not sure that it > >makes sense to backport this given that it's likely to conflict for > >users who

Re: [PATCH] perf report: Fix regression when decoding intelPT traces

2017-12-14 Thread Jiri Olsa
On Wed, Dec 13, 2017 at 05:57:54PM -0700, Mathieu Poirier wrote: > Commit (93d10af26bb7 perf tools: Optimize sample parsing for ordered > events) breaks intelPT trace decoding by invariably returning an error if > the event type isn't a PERF_SAMPLE_TIME. right, thanks for catchng that > > With t

Re: [PATCH] KVM: arm/arm64: don't set vtimer->cnt_ctl in kvm_arch_timer_handler

2017-12-14 Thread Jia He
Hi Christoffer On 12/14/2017 9:09 PM, Christoffer Dall Wrote: On Thu, Dec 14, 2017 at 12:57:54PM +0800, Jia He wrote: Hi Jia, I have tried your newer level-mapped-v7 branch, but bug is still there. There is no special load in both host and guest. The guest (kernel 4.14) is often hanging when

Re: Linux 4.15-rc2: Regression in resume from ACPI S3

2017-12-14 Thread Rafael J. Wysocki
On Thursday, December 14, 2017 1:30:37 PM CET Thomas Gleixner wrote: > On Thu, 14 Dec 2017, Rafael J. Wysocki wrote: > > On Thursday, December 14, 2017 12:54:05 PM CET Thomas Gleixner wrote: > > > Now the graphics issue is a different story. That only happens on > > > hibernation after doing the sn

Re: BUG: unable to handle kernel paging request in do_futex

2017-12-14 Thread Thomas Gleixner
On Thu, 30 Nov 2017, syzbot wrote: > Hello, > > syzkaller hit the following crash on 11fed7829beff10184503fd65e5919926464601a > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > >

Re: [PATCH v2] ASOC: wm8960: Add multiple MCLK frequency support

2017-12-14 Thread Mark Brown
On Thu, Dec 14, 2017 at 11:56:48AM +, Charles Keepax wrote: > On Wed, Dec 13, 2017 at 08:37:30PM +0800, Chen.Liu wrote: > > + if (unsupported) > > + snd_soc_update_bits(codec, WM8960_CLOCK1, 0x6, > > + WM8960_SYSCLK_DIV_2); > > + > Looking at this a bit m

Re: wcn36xx: Reduce spinlock in indication handler

2017-12-14 Thread Kalle Valo
Bjorn Andersson wrote: > The purpose of pushing indication on a list and handle these in a > separate worker is to allow the handlers to sleep. It does therefor not > make much sense to hold the queue spinlock through the entire indication > worker function. > > By removing items from the queue

[PATCH V5 00/13] drivers: Boot Constraint core

2017-12-14 Thread Viresh Kumar
Hi Greg, Here is V5 of the boot constraints core based on your feedback from V4. Hope this looks better now :) I have tested the Hisilicon patches (again) on hikey 9660 board, IMX stuff was earlier tested by Sascha (Pengutronix) on i.MX6 and Qualcomm stuff was earlier tested by Rajendra (Qualcomm

[PATCH V5 05/13] boot_constraint: Add support for clk constraints

2017-12-14 Thread Viresh Kumar
This patch adds the clk constraint type. The constraint is set by enabling the clk for the device. Once the device is probed, the clk is disabled and the constraint is removed. We may want to do clk_set_rate() from here, but lets wait for some real users that really want it. Tested-by: Rajendra

[PATCH V5 12/13] boot_constraint: Update MAINTAINERS

2017-12-14 Thread Viresh Kumar
Add entry for boot constraint subsystem in MAINTAINERS. Signed-off-by: Viresh Kumar --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e716cdafa784..81823de0d655 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2723,6 +2723,15 @@ S: S

[PATCH V5 09/13] boot_constraint: Add support for Hisilicon platforms

2017-12-14 Thread Viresh Kumar
This adds boot constraint support for Hisilicon platforms. Currently only one use case is supported: earlycon. One of the UART is enabled by the bootloader and is used for early console in the kernel. The boot constraint core handles it properly and removes constraints once the serial device is pro

[PATCH V5 01/13] of: platform: Add of_find_any_device_by_node()

2017-12-14 Thread Viresh Kumar
This creates a new helper that returns the struct device corresponding to a struct device_node. This currently works only for amba and platform devices, but can be easily extended to include other bus types. This also creates an internal of_find_amba_device_by_node() helper, which isn't exported a

[PATCH V5 11/13] boot_constraint: Add Qualcomm display controller constraints

2017-12-14 Thread Viresh Kumar
From: Rajendra Nayak This sets boot constraints for the display controller used on Qualcomm dragonboard 410c. The display controlled is enabled by the bootloader to show a flash screen during kernel boot. The handover to kernel should be without any glitches on the screen.The resources of the di

[PATCH V5 07/13] boot_constraint: Add debugfs support

2017-12-14 Thread Viresh Kumar
This patch adds debugfs support for boot constraints. This is how it looks for a "vmmc-supply" constraint for the MMC device. $ ls -R /sys/kernel/debug/boot_constraints/ /sys/kernel/debug/boot_constraints/: f723d000.dwmmc0 /sys/kernel/debug/boot_constraints/f723d000.dwmmc0: clk-ciu pm-domain su

[PATCH V5 03/13] drivers: Add boot constraints core

2017-12-14 Thread Viresh Kumar
Some devices are powered ON by the bootloader before the bootloader handovers control to Linux. It maybe important for those devices to keep working until the time a Linux device driver probes the device and reconfigure its resources. A typical example of that can be the LCD controller, which is u

[PATCH V5 13/13] boot_constraint: Add documentation

2017-12-14 Thread Viresh Kumar
This adds boot constraint documentation. Signed-off-by: Viresh Kumar --- .../driver-api/boot-constraint/constraints.rst | 98 ++ Documentation/driver-api/boot-constraint/index.rst | 4 + Documentation/driver-api/index.rst | 1 + 3 files changed, 103 inse

Re: general protection fault in show_timer

2017-12-14 Thread Thomas Gleixner
On Thu, 14 Dec 2017, Dmitry Vyukov wrote: > On Thu, Dec 14, 2017 at 3:26 PM, Thomas Gleixner wrote: > > On Tue, 12 Dec 2017, Greg KH wrote: > >> Did this ever go anywhere? I don't see it in Linus's tree yet... > > > > I learned yesterday that syzboz is understuffed and cannot test patches, so > >

[PATCH V5 10/13] boot_constraint: Add support for IMX platform

2017-12-14 Thread Viresh Kumar
This adds boot constraint support for IMX platforms. Currently only one use case is supported: earlycon. Some of the UARTs are enabled by the bootloader and are used for early console in the kernel. The boot constraint core handles them properly and removes them once the serial device is probed by

[PATCH V5 06/13] boot_constraint: Add support for PM constraints

2017-12-14 Thread Viresh Kumar
This patch adds the PM constraint type. The constraint is set by attaching the power domain for the device, which will also enable the power domain. This guarantees that the power domain doesn't get shut down while being used. We don't need to detach the power domain to remove the constraint as t

[PATCH V5 08/13] boot_constraint: Manage deferrable constraints

2017-12-14 Thread Viresh Kumar
It is possible that some of the resources aren't available at the time constraints are getting set and the boot constraints core will return -EPROBE_DEFER for them. In order to retry adding the constraints at a later point of time (after the resource is added and before any of its users come up), t

Re: [RFC PATCH 1/3] mm, numa: rework do_pages_move

2017-12-14 Thread Kirill A. Shutemov
On Wed, Dec 13, 2017 at 03:39:48PM +0100, Michal Hocko wrote: > This patch has been generated with --patience parameter as suggested by > Kirill and it realy seems to provide a more compact diff. > --- > From 1f529769d099ca605888b29059014e7c8f0bfd50 Mon Sep 17 00:00:00 2001 > From: Michal Hocko >

[PATCH V5 04/13] boot_constraint: Add support for supply constraints

2017-12-14 Thread Viresh Kumar
This patch adds the first constraint type: power-supply. The constraint is set by enabling the regulator and setting a voltage range (if required) for the respective regulator device, which will be honored by the regulator core even if more users turn up. Once the device is probed, the regulator i

Re: [RFC PATCH v2 03/13] bootsplash: Flush framebuffer after drawing

2017-12-14 Thread Max Staudt
On 12/13/2017 10:35 PM, Daniel Vetter wrote: > Using drm directly would allow you to flush the contents without the fake > (and tbh, really expensive on most drivers) copy op. If you insist on > using fbdev for this stuff, then at least add a new hook to flush cpu > rendering. My reasoning is as f

[PATCH V5 02/13] of: platform: Make of_platform_bus_create() global

2017-12-14 Thread Viresh Kumar
The boot constraints core needs to create platform or AMBA devices corresponding to a compatible string and not for rest of the nodes in DT. of_platform_bus_create() fits in the best to achieve that. Allow it to be used outside of platform.c. Signed-off-by: Viresh Kumar --- drivers/of/platform.

Re: [RFC PATCH v2 01/13] bootsplash: Initial implementation showing black screen

2017-12-14 Thread Max Staudt
On 12/14/2017 12:55 AM, Randy Dunlap wrote: > On 12/13/2017 11:47 AM, Max Staudt wrote: >> This is the initial prototype for a lean Linux kernel bootsplash. >> >> As it is now, it will show a black screen rather than a logo, and >> only if manually enabled via the kernel cmdline: >> >> bootsplash

Re: Regression with a0747a859ef6 ("bdi: add error handle for bdi_debug_register")

2017-12-14 Thread Bruno Wolff III
On Thu, Dec 14, 2017 at 18:09:27 +0800, weiping zhang wrote: It seems something wrong with bdi debugfs register, could you help test the forllowing debug patch, I add some debug log, no function change, thanks. I applied your patch to d39a01eff9af1045f6e30ff9db40310517c4b45f and there were

Re: [PATCH] KVM: arm/arm64: don't set vtimer->cnt_ctl in kvm_arch_timer_handler

2017-12-14 Thread Christoffer Dall
On Thu, Dec 14, 2017 at 11:28:04PM +0800, Jia He wrote: > > On 12/14/2017 9:09 PM, Christoffer Dall Wrote: > >On Thu, Dec 14, 2017 at 12:57:54PM +0800, Jia He wrote: > >Hi Jia, > > > >>I have tried your newer level-mapped-v7 branch, but bug is still there. > >> > >>There is no special load in both

Re: [PATCH v2] PCI/DPC: Fix shared interrupt handling

2017-12-14 Thread Keith Busch
On Thu, Dec 14, 2017 at 08:20:18AM -0700, Alex Williamson wrote: > DPC supports shared interrupts, but it plays very loosely with testing > whether the interrupt is generated by DPC before generating spurious > log messages, such as: > > dpc :10:01.2:pcie010: DPC containment event, status:0x1

Re: [PATCH] sched/fair: Consider RT/IRQ pressure in capacity_spare_wake

2017-12-14 Thread Vincent Guittot
Hi Joel, On 13 December 2017 at 21:00, Joel Fernandes wrote: > On Mon, Dec 11, 2017 at 4:43 PM, Joel Fernandes wrote: >> Hi Vincent, >> > >> >> Here we have RT activity running on big CPU cluster induced with rt-app, >

Re: [PATCH v2 1/2] acpi, spcr: Make SPCR avialable to other architectures

2017-12-14 Thread Lorenzo Pieralisi
On Thu, Dec 14, 2017 at 08:08:08AM -0600, Timur Tabi wrote: > On 12/14/17 4:30 AM, Lorenzo Pieralisi wrote: > >>I didn't want to put any ACPI code in amba-pl011.c, so putting it in spcr.c > >>made the most sense. I agree the global variable is ugly. If you have a > >>better idea, I'm all ears. >

[PATCH 0/7 v2] make some functions return bool

2017-12-14 Thread Yaowei Bai
This patchset makes some *_is_* like functions return bool because these functions only use true or false as their return values. No functional change. Yaowei Bai (7): mm/memblock: memblock_is_map/region_memory can be boolean lib/lockref: __lockref_is_dead can be boolean kernel/cpuset: curr

[PATCH 2/7] lib/lockref: __lockref_is_dead can be boolean

2017-12-14 Thread Yaowei Bai
This patch makes __lockref_is_dead return bool due to this function only using either true or false as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/lockref.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/lockref.h b/incl

[PATCH 6/7] kernel/mutex: mutex_is_locked can be boolean

2017-12-14 Thread Yaowei Bai
This patch makes mutex_is_locked return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/mutex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mutex.h

[PATCH 5/7] kernel/module: module_is_live can be boolean

2017-12-14 Thread Yaowei Bai
This patch makes module_is_live return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/module.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/module.h b/

[PATCH 7/7] crash_dump: is_kdump_kernel can be boolean

2017-12-14 Thread Yaowei Bai
This patch makes is_kdump_kernel return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/crash_dump.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/l

[PATCH 1/7] mm/memblock: memblock_is_map/region_memory can be boolean

2017-12-14 Thread Yaowei Bai
This patch makes memblock_is_map/region_memory return bool due to these two functions only using either true or false as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/memblock.h | 4 ++-- mm/memblock.c| 6 +++--- 2 files changed, 5 insertions(+)

[PATCH 3/7] kernel/cpuset: current_cpuset_is_being_rebound can be boolean

2017-12-14 Thread Yaowei Bai
This patch makes current_cpuset_is_being_rebound return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/cpuset.h | 6 +++--- kernel/cgroup/cpuset.c | 4 ++-- 2 files changed, 5 insertions(+

[PATCH 4/7] kernel/resource: iomem_is_exclusive can be boolean

2017-12-14 Thread Yaowei Bai
This patch makes iomem_is_exclusive return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/ioport.h | 2 +- kernel/resource.c | 10 +- 2 files changed, 6 insertions(+), 6 dele

Re: Linux 4.15-rc2: Regression in resume from ACPI S3

2017-12-14 Thread Thomas Gleixner
On Thu, 14 Dec 2017, Rafael J. Wysocki wrote: > The problem here is that pci_pm_thaw_noirq() calls pci_restore_state() which > in fact requires the device to be in D0, so the caller should put it into > D0 instead of trying to "update" its power state. > > [Note that the PCI layer doesn't put devi

Re: [PATCH v2] ASOC: wm8960: Add multiple MCLK frequency support

2017-12-14 Thread Charles Keepax
On Thu, Dec 14, 2017 at 03:31:39PM +, Mark Brown wrote: > On Thu, Dec 14, 2017 at 11:56:48AM +, Charles Keepax wrote: > > On Wed, Dec 13, 2017 at 08:37:30PM +0800, Chen.Liu wrote: > > > > + if (unsupported) > > > + snd_soc_update_bits(codec, WM8960_CLOCK1, 0x6, > > > +

[PATCH 1/1] usb: serial: option: add support for Telit ME910 PID 0x1101

2017-12-14 Thread Daniele Palmas
This patch adds support for PID 0x1101 of Telit ME910. Signed-off-by: Daniele Palmas --- Following lsusb output for 0x1101 composition tty, tty, tty, rmnet Bus 003 Device 015: ID 1bc7:1101 Telit Wireless Solutions Device Descriptor: bLength18 bDescriptorType 1 bcdU

Re: Linux 4.15-rc2: Regression in resume from ACPI S3

2017-12-14 Thread Rafael J. Wysocki
On Thursday, December 14, 2017 4:52:22 PM CET Thomas Gleixner wrote: > On Thu, 14 Dec 2017, Rafael J. Wysocki wrote: > > The problem here is that pci_pm_thaw_noirq() calls pci_restore_state() which > > in fact requires the device to be in D0, so the caller should put it into > > D0 instead of tryin

Re: [PATCH] perf report: Fix regression when decoding intelPT traces

2017-12-14 Thread Mathieu Poirier
On 14 December 2017 at 08:28, Jiri Olsa wrote: > On Wed, Dec 13, 2017 at 05:57:54PM -0700, Mathieu Poirier wrote: >> Commit (93d10af26bb7 perf tools: Optimize sample parsing for ordered >> events) breaks intelPT trace decoding by invariably returning an error if >> the event type isn't a PERF_SAMP

[PATCH 1/2] ip_gre: fix error path when erspan_rcv failed

2017-12-14 Thread Haishuang Yan
When erspan_rcv call return PACKET_REJECT, we shoudn't call ipgre_rcv to process packets again, instead send icmp unreachable message in error path. Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") Cc: William Tu Signed-off-by: Haishuang Yan --- net/ipv4/ip_gre.c | 2 ++

[PATCH 2/2] ip6_gre: fix error path when ip6erspan_rcv failed

2017-12-14 Thread Haishuang Yan
Same as ipv4 code, when ip6erspan_rcv call return PACKET_REJECT, we should call icmpv6_send to send icmp unreachable message in error path. Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support") Cc: William Tu Signed-off-by: Haishuang Yan --- net/ipv6/ip6_gre.c | 3 ++- 1 file change

rf69_get_lna_gain

2017-12-14 Thread Marcus Wolf
Hi! This is an information for all of you, doing experiments with real hardware! I wanted to explain, what this lna_gain stuff is used for: If you are receiving messages from different sender (let's say several thermometers), it may happen (e. g. due to different distance and different batter

Re: [PATCH] misc: kgdbts: Display progress of asynchronous tests

2017-12-14 Thread Daniel Thompson
On 14/12/17 15:20, Jason Wessel wrote: On 12/12/2017 06:10 AM, Daniel Thompson wrote: kgdbts includes a couple of different "thrashing" style tests that may have long runtimes (especially on simulated platforms) and which run asynchronously. This is uncomfortable for interactive use and makes se

RE: [Regression 4.15-rc2] New messages `tpm tpm0: A TPM error (2314) occurred continue selftest`

2017-12-14 Thread Alexander.Steffen
> > -Original Message- > > From: alexander.stef...@infineon.com > [mailto:alexander.stef...@infineon.com] > > Sent: Thursday, December 14, 2017 6:21 AM > > To: pmen...@molgen.mpg.de; j...@ziepe.ca > > Cc: linux-integr...@vger.kernel.org; linux-kernel@vger.kernel.org; > Limonciello, > > Mari

[RFC PATCH for 4.16 00/21] Restartable sequences and CPU op vector

2017-12-14 Thread Mathieu Desnoyers
Hi, Following changes based on the last round of review, I'm respinning this series for another RFC round. It is based on the v4.15-rc3 tag. I am now targeting the 4.16 merge window. This series contains: - Restartable sequences system call (x86 32/64, powerpc 32/64, arm 32), - CPU operation vec

[RFC PATCH for 4.16 01/21] uapi headers: Provide types_32_64.h

2017-12-14 Thread Mathieu Desnoyers
Provide helper macros for fields which represent pointers in kernel-userspace ABI. This facilitates handling of 32-bit user-space by 64-bit kernels by defining those fields as 32-bit 0-padding and 32-bit integer on 32-bit architectures, which allows the kernel to treat those as 64-bit integers. The

<    1   2   3   4   5   6   7   8   9   10   >