Re: [PATCH 1/2] virtio: Reduce BUG if total_sg > virtqueue size to WARN.

2017-08-10 Thread Michael S. Tsirkin
On Thu, Aug 10, 2017 at 10:35:11PM +0100, Richard W.M. Jones wrote: > On Fri, Aug 11, 2017 at 12:31:44AM +0300, Michael S. Tsirkin wrote: > > Then we probably should fail probe if vq size is too small. > > What does this mean? > > Rich. We must prevent driver from submitting s/g lists > vq size

Re: clk-samsung tree inlcusion in linux-next

2017-08-10 Thread Stephen Rothwell
Hi Sylwester, On Thu, 10 Aug 2017 12:07:31 +0200 Sylwester Nawrocki wrote: > > I'd like to ask for inclusion of this (clk-samsung) tree in linux-next: > > git://git.kernel.org/pub/scm/linux/kernel/git/snawrocki/clk.git for-next > > It will contain Samsung SoC clock controller related patches.

Re: [PATCH] KVM: MMU: Fix softlockup due to mmu_lock is held too long

2017-08-10 Thread Wanpeng Li
2017-08-10 22:36 GMT+08:00 Paolo Bonzini : > On 10/08/2017 15:55, Wanpeng Li wrote: >> From: Wanpeng Li >> >> watchdog: BUG: soft lockup - CPU#5 stuck for 22s! [warn_test:3089] >> irq event stamp: 20532 >> hardirqs last enabled at (20531): [] >> restore_regs_and_iret+0x0/0x1d >> hardirqs last

[PATCH 0/5] [media] Add analog mode support for Medion MD95700

2017-08-10 Thread Maciej S. Szmigiero
This series adds support for analog part of Medion 95700 in the cxusb driver. What works: * Video capture at various sizes with sequential fields, * Input switching (TV Tuner, Composite, S-Video), * TV and radio tuning, * Video standard switching and auto detection, * Radio mode switching (stereo

Re: [PATCH 1/2] virtio: Reduce BUG if total_sg > virtqueue size to WARN.

2017-08-10 Thread Richard W.M. Jones
On Fri, Aug 11, 2017 at 12:41:47AM +0300, Michael S. Tsirkin wrote: > On Thu, Aug 10, 2017 at 10:35:11PM +0100, Richard W.M. Jones wrote: > > On Fri, Aug 11, 2017 at 12:31:44AM +0300, Michael S. Tsirkin wrote: > > > Then we probably should fail probe if vq size is too small. > > > > What does this

[PATCH 1/5] [media] cx25840: add pin to pad mapping and output format configuration

2017-08-10 Thread Maciej S. Szmigiero
This commit adds pin to pad mapping and output format configuration support in CX2584x-series chips to cx25840 driver. This functionality is then used to allow disabling ivtv-specific hacks (called a "generic mode"), so cx25840 driver can be used for other devices not needing them without risking

[PATCH 3/5] [media] cx25840: fix a possible divide by zero in set_fmt callback

2017-08-10 Thread Maciej S. Szmigiero
If set_fmt callback is called with format->width or format->height set to zero and HACTIVE_CNT or VACTIVE_CNT bits (respectively) in chip are zero we will divide by zero later in this callback when we try to calculate HSC or VSC values. Fix this by explicitly rejecting these values. Signed-off-by

[PATCH 2/5] [media] cx25840: describe standard for 0b1100 value in AFD_FMT_STAT bits

2017-08-10 Thread Maciej S. Szmigiero
A 0b1100 value in 4 LSBs of "General Status 1" register (AFD_FMT_STAT) has known meaning for CX2584x-series chips - it means that a SECAM signal is currently detected by the chip. Use this opportunity to also fix wrong binary values that were present as comments attached to some entries in an arra

Re: [PATCH V9 1/2] PCI: handle CRS returned by device after FLR

2017-08-10 Thread Bjorn Helgaas
On Tue, Aug 08, 2017 at 08:57:24PM -0400, Sinan Kaya wrote: > Sporadic reset issues have been observed with Intel 750 NVMe drive by > writing to the reset file in sysfs in a loop. The sequence of events > observed is as follows: > > - perform a Function Level Reset (FLR) > - sleep up to 1000ms tot

[PATCH 4/5] [media] tuner-simple: allow setting mono radio mode

2017-08-10 Thread Maciej S. Szmigiero
For some types of tuners (Philips FMD1216ME(X) MK3 currently) we know that letting TDA9887 output port 1 remain high (inactive) will switch FM radio to mono mode. Let's make use of this functionality - nothing changes for the default stereo radio mode. Tested on a Medion 95700 board which has a FM

[PATCH 5/5] [media] cxusb: add analog mode support for Medion MD95700

2017-08-10 Thread Maciej S. Szmigiero
This patch adds support for analog part of Medion 95700 in the cxusb driver. What works: * Video capture at various sizes with sequential fields, * Input switching (TV Tuner, Composite, S-Video), * TV and radio tuning, * Video standard switching and auto detection, * Radio mode switching (stereo /

Re: [PATCH] imon: constify attribute_group structures

2017-08-10 Thread Sean Young
On Fri, Aug 04, 2017 at 09:51:38PM -0400, Amitoj Kaur Chawla wrote: > Functions working with attribute_groups provided by > work with const attribute_group. These attribute_group structures do not > change at runtime so mark them as const. I'm afraid the exact same patch has already been submitte

[PATCH v2 0/4] hwmon: (pmbus): Core extension for STATUS_WORD and debugfs

2017-08-10 Thread Eddie James
From: "Edward A. James" This series adds some functionality to the pmbus core. The first two patches provide support for the STATUS_WORD register. This allows more default alarm attributes to be used, as the upper byte of the status register is available. The third patch then uses the STATUS_INP

[PATCH v2 3/4] hwmon: (pmbus): Add generic alarm bit for iin and pin

2017-08-10 Thread Eddie James
From: "Edward A. James" Add PB_STATUS_INPUT as the generic alarm bit for iin and pin. We also need to redo the status register checking before setting up the boolean attribute, since it won't necessarily check STATUS_WORD if the device doesn't support it, which we need for this bit. Signed-off-b

[PATCH v2 4/4] hwmon: (pmbus): Add debugfs for status registers

2017-08-10 Thread Eddie James
From: "Edward A. James" Export all the available status registers through debugfs, if the client driver wants them. Signed-off-by: Edward A. James --- drivers/hwmon/pmbus/pmbus.h | 6 ++ drivers/hwmon/pmbus/pmbus_core.c | 201 +++ 2 files changed, 207

[PATCH v2 2/4] hwmon: (pmbus): Access word data for STATUS_WORD

2017-08-10 Thread Eddie James
From: "Edward A. James" Pmbus always reads byte data from the status register, even if configured to use STATUS_WORD. Use a function pointer to read the correct amount of data from the registers. Also switch to try STATUS_WORD first before STATUS_BYTE on init. Signed-off-by: Edward A. James ---

[PATCH v2 1/4] hwmon: (pmbus): Switch status registers to 16 bit

2017-08-10 Thread Eddie James
From: "Edward A. James" Switch the storage of status registers to 16 bit values. This allows us to store all the bits of STATUS_WORD. Signed-off-by: Edward A. James --- drivers/hwmon/pmbus/pmbus_core.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/h

Re: [PATCH V9 1/2] PCI: handle CRS returned by device after FLR

2017-08-10 Thread Bjorn Helgaas
On Tue, Aug 08, 2017 at 08:57:24PM -0400, Sinan Kaya wrote: > Sporadic reset issues have been observed with Intel 750 NVMe drive by > writing to the reset file in sysfs in a loop. The sequence of events > observed is as follows: > > - perform a Function Level Reset (FLR) > - sleep up to 1000ms tot

Re: [PATCH] mm: add pmd_t initializer __pmd() to work around a GCC bug.

2017-08-10 Thread David Miller
From: Zi Yan Date: Thu, 3 Aug 2017 09:17:21 -0400 > From: Zi Yan > > THP migration is added but only supports x86_64 at the moment. For all > other architectures, swp_entry_to_pmd() only returns a zero pmd_t. > > Due to a GCC zero initializer bug #53119, the standard (pmd_t){0} > initializer

Re: [PATCH] acpi: apei: fix GHES estatus iteration

2017-08-10 Thread gengdongjiu
On 2017/8/9 8:52, Rafael J. Wysocki wrote: > On Tuesday, August 8, 2017 6:32:20 PM CEST Will Deacon wrote: >> On Thu, Aug 03, 2017 at 03:32:25PM -0600, Tyler Baicar wrote: >>> Currently iterating through the GHES estatus blocks does not >>> take into account the new generic data v3 structure size

RE: [PATCH v2 2/2] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-10 Thread Mario.Limonciello
> -Original Message- > From: Srinivas Pandruvada [mailto:srinivas.pandruv...@linux.intel.com] > Sent: Tuesday, August 8, 2017 5:41 PM > To: r...@rjwysocki.net; l...@kernel.org > Cc: linux...@vger.kernel.org; Limonciello, Mario ; > linux-kernel@vger.kernel.org; linux-a...@vger.kernel.org;

Re: [PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-10 Thread Colm MacCárthaigh
On Thu, Aug 10, 2017 at 7:01 PM, Michal Hocko wrote: > Does anybody actually do that using the minherit BSD interface? I can't find any OSS examples. I just thought of it in response to your question, but now that I have, I do want to use it that way in privsep code. As a mere user, fwiw it woul

[PATCH] staging: typec: tcpm: Consider port_type while determining unattached_state

2017-08-10 Thread Badhri Jagan Sridharan
While performing PORT_RESET, upon receiving the cc disconnect signal from the underlaying tcpc device, TCPM transitions into unattached state. Consider, the current type of port while determining the unattached state. In the below logs, although the port_type was set to sink, TCPM transitioned int

Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-10 Thread Benjamin Block
On Thu, Aug 10, 2017 at 11:32:17AM +0200, Christoph Hellwig wrote: > We can't use an on-stack buffer for the sense data, as drivers will > dma to it. So we should reuse the SCSI init_rq_fn() for the BSG > queues and/or implement the same scheme. > BSG is odd in this regard. Here is the data mode

Re: make clean all broken with -j? + question regarding modpost

2017-08-10 Thread Jim Davis
On Thu, Aug 10, 2017 at 11:28 AM, Randy Dunlap wrote: > [adding linux-kbuild] > > On 08/10/2017 08:42 AM, Thomas Meyer wrote: >> Hi, >> >> 1.) make with multiple targets >> >> When running >> $ make -j4 clean all >> I get error from make (probably in scripts/Makefile.modbuiltin): With 4.13-rc4 I

Re: [RFC PATCH 4/6] bsg: refactor ioctl to use regular BSG-command infrastructure for SG_IO

2017-08-10 Thread Benjamin Block
On Thu, Aug 10, 2017 at 10:24:56AM +0200, Johannes Thumshirn wrote: > On Wed, Aug 09, 2017 at 04:11:18PM +0200, Benjamin Block wrote: > > + return 0 == (bc->hdr.flags & BSG_FLAG_Q_AT_TAIL); > > return !(bc->hdr.flags & BSG_FLAG_Q_AT_TAIL); and make the function return > bool? I have to admit, th

[PATCH 2/8] mfd: cros_ec_i2c: move the system sleep pm ops to late

2017-08-10 Thread Thierry Escande
From: Joseph Lo The cros_ec_i2c driver is still active after it had suspended or before it resumes. Besides that, it also tried to transfer data even after the I2C host had been suspended. This leads the system to crash. During the test, we also observed that the EC needs to be resumed earlier d

[PATCH 1/8] iio: cros_ec: Relax sampling frequency before suspending

2017-08-10 Thread Thierry Escande
From: Gwendal Grignou If an application set a tight sampling frequency, given the interrupt use is a wakup source, suspend will not happen: the kernel will receive a wake up interrupt and will cancel the suspend process. Given cros_ec sensors type is non wake up, this patch adds prepare and comp

Re: [PATCH] staging: typec: tcpm: Consider port_type while determining unattached_state

2017-08-10 Thread Badhri Jagan Sridharan
Please hold off on reviewing this patch. Patch went wrong while rebasing. Thanks, Badhri On Thu, Aug 10, 2017 at 3:06 PM, Badhri Jagan Sridharan wrote: > While performing PORT_RESET, upon receiving the cc disconnect > signal from the underlaying tcpc device, TCPM transitions into > unattached st

[PATCH 8/8] platform/chrome: cros_ec: sysfs: Modify error handling

2017-08-10 Thread Thierry Escande
From: Gwendal Grignou When accessing a sysfs attribute, if the EC command fails, -EPROTO is now returned instead of an error message as it is unlikely an app is parsing the error message to do something meaningful. Also, this patch makes use of cros_ec_cmd_xfer_status() instead of cros_ec_cmd_xfe

[PATCH 6/8] mfd: cros_ec_i2c: add ACPI module device table

2017-08-10 Thread Thierry Escande
From: Wei-Ning Huang Add ACPI module device table for matching cros-ec devices to load the cros_ec_i2c driver automatically. Signed-off-by: Wei-Ning Huang Signed-off-by: Thierry Escande --- drivers/mfd/cros_ec_i2c.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/mfd

[PATCH 7/8] platform/chrome: cros_ec: Add sysfs entry to set keyboard wake lid angle

2017-08-10 Thread Thierry Escande
From: Gwendal Grignou This adds a sysfs attribute (/sys/class/chromeos/cros_ec/kb_wake_angle) used to set and get the keyboard wake lid angle. This attribute is present only if 2 accelerometers are controlled by the EC. This patch also moves the cros_ec features check before the device is added

[PATCH 5/8] mfd: cros_ec: fail early if we cannot identify the EC

2017-08-10 Thread Thierry Escande
From: Vincent Palatin If we cannot communicate with the EC chip to detect the protocol version and its features, it's very likely useless to continue. Else we will commit all kind of uninformed mistakes (using the wrong protocol, the wrong buffer size, mixing the EC with other chips). Signed-off

[PATCH 0/8] platform/chrome: cros_ec: Fixes and improvements

2017-08-10 Thread Thierry Escande
Hi, This series contains various fixes and improvements for the ChromeOS Embedded Controller drivers. These concern PM suspend/resume fixes, sysfs interface, and module initialization. Regards, Thierry Daniel Hung-yu Wu (1): platform/chrome: cros_ec: register shutdown function for debugfs Do

[PATCH 4/8] platform/chrome: cros_ec: register shutdown function for debugfs

2017-08-10 Thread Thierry Escande
From: Daniel Hung-yu Wu Reboot or shutdown during delayed works could corrupt communication with EC and certain I2C controller may not be able to recover from the error state. This patch registers a shutdown callback used to cancel the debugfs log worker thread. Signed-off-by: Daniel Hung-yu Wu

[PATCH 3/8] mfd: cros_ec: Stop the debugfs work when suspended

2017-08-10 Thread Thierry Escande
From: Douglas Anderson This patch stops the debugfs worker thread when the device is suspended. This change avoids messages like: cros-ec-spi spi5.0: spi transfer failed: -108 cros-ec-spi spi5.0: cs-deassert spi transfer failed: -108 cros-ec-ctl cros-ec-ctl.0.auto: EC communication failed

Re: [RFC PATCH 5/6] bsg: reduce unnecessary arguments for bsg_map_hdr()

2017-08-10 Thread Benjamin Block
On Thu, Aug 10, 2017 at 11:35:31AM +0200, Christoph Hellwig wrote: > On Wed, Aug 09, 2017 at 04:11:19PM +0200, Benjamin Block wrote: > > Since struct bsg_command is now used in every calling case, we don't > > need separation of arguments anymore that are contained in the same > > bsg_command. > >

[PATCH v2 3/3] Documentation: hwmon: Add POWER system power supply documentation

2017-08-10 Thread Eddie James
From: "Edward A. James" Signed-off-by: Edward A. James --- Documentation/hwmon/powerps | 54 + 1 file changed, 54 insertions(+) create mode 100644 Documentation/hwmon/powerps diff --git a/Documentation/hwmon/powerps b/Documentation/hwmon/powerps new

[PATCH v2 1/3] dt-bindings: i2c: Document the POWER system power supply device

2017-08-10 Thread Eddie James
From: "Edward A. James" Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,power-ps.txt| 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/ibm,power-ps.txt diff --git a/Documentation/devicetree/bindings/

[PATCH v2 2/3] hwmon: (pmbus): Add POWER system power supply driver

2017-08-10 Thread Eddie James
From: "Edward A. James" Add the driver to monitor POWER system power supplies with hwmon over pmbus. Signed-off-by: Edward A. James --- drivers/hwmon/pmbus/Kconfig | 10 +++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/powerps.c | 144 ++

[PATCH v2 0/3] hwmon: (pmbus): Add POWER System power supply driver

2017-08-10 Thread Eddie James
From: "Edward A. James" This series adds a hwmon pmbus driver for a POWER System power supply. The core monitoring functionality is provided by pmbus. This series depends on the pmbus core extensions for debugfs recently submitted to the mailing list (latest: https://lkml.org/lkml/2017/8/10/881)

Re: [PATCH v4 0/7] PCI: MediaTek: Add host controller support for mt2712 and mt7622

2017-08-10 Thread Bjorn Helgaas
On Thu, Aug 10, 2017 at 02:34:53PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > MediaTek's PCIe host controller has two generation HWs, MT2712 and MT7622 > using the new generation HW, which has two root ports. They share most > probing flow with MT2701/MT7623. But the read/

Re: [PATCH V9 1/2] PCI: handle CRS returned by device after FLR

2017-08-10 Thread Sinan Kaya
On 8/10/2017 5:52 PM, Bjorn Helgaas wrote: > On Tue, Aug 08, 2017 at 08:57:24PM -0400, Sinan Kaya wrote: >> Sporadic reset issues have been observed with Intel 750 NVMe drive by >> writing to the reset file in sysfs in a loop. The sequence of events >> observed is as follows: >> >> - perform a Func

mmotm 2017-08-10-15-33 uploaded

2017-08-10 Thread akpm
The mm-of-the-moment snapshot 2017-08-10-15-33 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

[PATCH] USB: core: Avoid race of async_completed() w/ usbdev_release()

2017-08-10 Thread Douglas Anderson
While running reboot tests w/ a specific set of USB devices (and slub_debug enabled), I found that once every few hours my device would be crashed with a stack that looked like this: [ 14.012445] BUG: spinlock bad magic on CPU#0, modprobe/2091 [ 14.012460] lock: 0xffc0cb055978, .magic: ff

Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-10 Thread Benjamin Block
On Fri, Aug 11, 2017 at 12:10:38AM +0200, Benjamin Block wrote: > On Thu, Aug 10, 2017 at 11:32:17AM +0200, Christoph Hellwig wrote: > > We can't use an on-stack buffer for the sense data, as drivers will > > dma to it. So we should reuse the SCSI init_rq_fn() for the BSG > > queues and/or impleme

[PATCH 0/2] Tools: hv: Miscellaneous adjustments

2017-08-10 Thread kys
From: K. Y. Srinivasan Miscellaneous adjustments. Olaf Hering (2): Tools: hv: fix snprintf warning in kvp_daemon Tools: hv: update buffer handling in hv_fcopy_daemon tools/hv/hv_fcopy_daemon.c | 32 +--- tools/hv/hv_kvp_daemon.c |2 +- 2 files changed, 1

[PATCH 1/2] Tools: hv: fix snprintf warning in kvp_daemon

2017-08-10 Thread kys
From: Olaf Hering Increase buffer size so that "_{-INT_MAX}" will fit. Spotted by the gcc7 snprintf checker. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_kvp_daemon.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/hv/hv_kvp_daemon

[PATCH 2/2] Tools: hv: update buffer handling in hv_fcopy_daemon

2017-08-10 Thread kys
From: Olaf Hering Currently this warning is triggered when compiling hv_fcopy_daemon: hv_fcopy_daemon.c:216:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] kernel_modver = *(__u32 *)buffer; Convert the send/receive buffer to a union and pas

Re: [PATCH v2 2/2] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-10 Thread Srinivas Pandruvada
On Thu, 2017-08-10 at 22:07 +, mario.limoncie...@dell.com wrote: > > > > > [...] > > + > > + ret = acpi_device_get_power(adev, &state); > > + if (!ret) > > + pr_debug("LPI: %s required min power state > > %d, current > > power state %d, real power state

[PATCH v3 net-next 2/2] wan: dscc4: convert to plain DMA API

2017-08-10 Thread Alexey Khoroshilov
Make use the dma_*() interfaces rather than the pci_*() interfaces. Signed-off-by: Alexey Khoroshilov --- drivers/net/wan/dscc4.c | 96 ++--- 1 file changed, 51 insertions(+), 45 deletions(-) diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc

[PATCH v3 net-next 1/2] wan: dscc4: add checks for dma mapping errors

2017-08-10 Thread Alexey Khoroshilov
The driver does not check if mapping dma memory succeed. The patch adds the checks and failure handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- v2: Fix issues noted by David Miller and Francois Romieu. v3: Improve code per Francois Ro

Re: [PATCH] sched/fair: Make PELT signal more accurate

2017-08-10 Thread Joel Fernandes
Hi Peter, On Mon, Aug 7, 2017 at 6:40 AM, Peter Zijlstra wrote: > On Fri, Aug 04, 2017 at 08:40:23AM -0700, Joel Fernandes wrote: >> The PELT signal (sa->load_avg and sa->util_avg) are not updated if the >> amount accumulated during a single update doesn't cross a period >> boundary. > >> This is

Re: [PATCH RESEND] mailbox: pcc: Drop uninformative output during boot

2017-08-10 Thread Rafael J. Wysocki
On Tuesday, August 1, 2017 2:43:57 PM CEST Punit Agrawal wrote: > When booting on an ACPI enabled system that does not provide the > Platform Communications Channel Table (PCCT), the pcc mailbox driver > prints - > > [0.484261] PCCT header not found. > > during probe before returning -ENODEV.

Re: [PATCH 0/2] Updated SPCR quirks for Moonshot/Mustang

2017-08-10 Thread Rafael J. Wysocki
On Saturday, August 5, 2017 2:32:33 PM CEST Rafael J. Wysocki wrote: > On Fri, Aug 4, 2017 at 11:49 PM, Graeme Gregory > wrote: > > A couple of patches to build on the SPCR quirks support already upstreamed. > > > > 1 - Moonshot m400 cartridge has the same soc but ACPI tables have different > > HP

[V3] firmware: vpd: use memunmap instead of iounmap

2017-08-10 Thread Pan Bian
In functions vpd_sections_init() and vpd_section_init(), iounmap() is used to unmap memory. However, in these cases, memunmap() should be used. Signed-off-by: Pan Bian --- V2: change error label err_iounmap to err_memunmap V3: add changes from V1 to V2 --- drivers/firmware/google/vpd.c | 10

Re: [PATCH] cpufreq: Return 0 from ->fast_switch() on errors

2017-08-10 Thread Rafael J. Wysocki
On Wednesday, August 9, 2017 6:51:46 AM CEST Viresh Kumar wrote: > CPUFREQ_ENTRY_INVALID is a special symbol which is used to specify that > an entry in the cpufreq table is invalid. But using it outside of the > scope of the cpufreq table looks a bit incorrect. > > We can represent an invalid fre

Re: [PATCH 0/2] add cpufreq support to MT7622

2017-08-10 Thread Rafael J. Wysocki
On Wednesday, August 9, 2017 12:12:37 PM CEST sean.w...@mediatek.com wrote: > From: Sean Wang > > Add cpufreq support to MT7622 SoC and also include some cleanups > with the generic naming to explicitly support all MediaTek SoCs. > > Sean Wang (2): > cpufreq: mediatek: add cleanups with the mo

[RFT][PATCH] iio: hid-sensor-trigger: Fix the race with user space powering up sensors

2017-08-10 Thread Srinivas Pandruvada
It has been reported for a while that with iio-sensor-proxy service the rotation only works after one suspend/resume cycle. This required a wait in the systemd unit file to avoid race. I found a Yoga 900 where I could reproduce this. The problem scenerio is: - During sensor driver init, enable run

linux-next: Signed-off-by missing for commits in the omap tree

2017-08-10 Thread Stephen Rothwell
Hi Tony, Commits de2f0cf18400 ("ARM: dts: dra72x: Create a common file with MMC/SD IOdelay data") 949ac551ff48 ("ARM: dts: dra74x: Create a common file with MMC/SD IOdelay data") are missing a Signed-off-by from their author. -- Cheers, Stephen Rothwell

linux-next: Signed-off-by missing for commit in the kvm tree

2017-08-10 Thread Stephen Rothwell
Hi all, Commit 53a70daf3cfd ("KVM: nVMX: get rid of nested_release_page*") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell

[PATCH] KVM: MMU: Bail out immediately if there is no available mmu page

2017-08-10 Thread Wanpeng Li
From: Wanpeng Li Bailing out immediately if there is no available mmu page to alloc. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/mmu.c | 36 +++- arch/x86/kvm/paging_tmpl.h | 3 ++- 2 files changed, 29 insertions(+),

Re: [PATCH v2 04/29] drm/ast: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Joel Stanley
On Thu, Aug 10, 2017 at 9:39 PM, Cihangir Akturk wrote: > Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() > and drm_*_unreference() helpers. > > drm_*_reference() and drm_*_unreference() functions are just > compatibility alias for drm_*_get() and drm_*_put() and should not be

[PATCH 1/2] ACPI: Add debug statements to acpi_global_event_handler()

2017-08-10 Thread Rafael J. Wysocki
From: Rafael J. Wysocki It sometimes is useful to examine the timing of ACPI events during certain operations only, like during system suspend/resume, so add pr_debug() statements for that to acpi_global_event_handler(). Signed-off-by: Rafael J. Wysocki --- drivers/acpi/sysfs.c | 12

Re: linux-next: build failure in the staging tree (Was: kisskb: FAILED linux-next/s390-allmodconfig/s390x Mon Jul 31, 17:24)

2017-08-10 Thread Stephen Rothwell
Hi all, On Mon, 7 Aug 2017 10:22:08 +1000 Stephen Rothwell wrote: > > On Tue, 1 Aug 2017 08:29:31 + Laurentiu Tudor > wrote: > > > > On 07/31/2017 06:58 PM, Greg KH wrote: > > > On Mon, Jul 31, 2017 at 09:55:14AM +, Laurentiu Tudor wrote: > > >> > > >> That's because the fsl-mc d

[PATCH 2/2] ACPI / PM: Add debug statements to acpi_pm_notify_handler()

2017-08-10 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add statements to trace invocations of the ACPI PM notify handler and the work functions called by it. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/device_pm.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) Index: linux-pm/drivers/acpi/device_pm.c

[PATCH 0/2] ACPI: Add some debug statements related to PM

2017-08-10 Thread Rafael J. Wysocki
Hi, The following two patches add pr_debug() and acpi_handle_debug() in a couple of places to help debug issues related to ACPI events, such as device wakeup. Thanks, Rafael

Re: [PATCH] arcmsr: add const to bin_attribute structures

2017-08-10 Thread Martin K. Petersen
Christoph, > Looks good, > > Reviewed-by: Christoph Hellwig Applied to 4.14/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: make clean all broken with -j? + question regarding modpost

2017-08-10 Thread valdis . kletnieks
On Thu, 10 Aug 2017 17:42:51 +0200, Thomas Meyer said: > 1.) make with multiple targets > > When running > $ make -j4 clean all > I get error from make (probably in scripts/Makefile.modbuiltin): > Output from above with V=1: Possibly unrelated, but I suspect there's a bunch of weirdness lurking i

[PATCH 2/3] media: v4l2-ctrls: prepare the function to be used by compat32 code

2017-08-10 Thread Mauro Carvalho Chehab
Right now, both v4l2_ctrl_fill() and compat32 code need to know the type of the control. As new controls are added, this cause troubles at compat32, as it won't be able to discover what functions are pointers or not. Change v4l2_ctrl_fill() function for it to be called with just one argument: the

[PATCH 1/3] media: v4l2-ctrls.h: better document the arguments for v4l2_ctrl_fill

2017-08-10 Thread Mauro Carvalho Chehab
The arguments for this function are pointers. Make it clear at its documentation. Signed-off-by: Mauro Carvalho Chehab --- include/media/v4l2-ctrls.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h ind

[PATCH 0/3] v4l2-compat-ioctl32.c: better detect pointer controls

2017-08-10 Thread Mauro Carvalho Chehab
In the past, only string controls were pointers. That changed when compounded types got added, but the compat32 code was not updated. We could just add those controls there, but maintaining it is flaw, as we often forget about the compat code. So, instead, rely on the control type, as this is alwa

[PATCH 3/3] media: compat32: reimplement ctrl_is_pointer()

2017-08-10 Thread Mauro Carvalho Chehab
The current way that this function works is subject to problems as new controls gets added. Move it to v4l2-ctrls and use the knowledge that v4l2_ctrl_fill() has about controls, in order to detect if a given control is a pointer. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/v4l2-core/v

Re: [PATCH v3 2/3] firmware: qcom: scm: Expose download-mode control

2017-08-10 Thread Stephen Boyd
On 08/09/2017 01:10 PM, Bjorn Andersson wrote: > In order to aid post-mortem debugging the Qualcomm platforms provides a s/provides/provide/ > "memory download mode", where the boot loader will provide an interface > for custom tools to "download" the content of RAM to a host machine. > > The mod

[v3 2/2] x86/tsc: use tsc early

2017-08-10 Thread Pavel Tatashin
tsc_early_init(): Use verious methods to determine the availability of TSC feature and its frequency early in boot, and if that is possible initialize TSC and also call sched_clock_early_init() to be able to get timestamps early in boot. tsc_early_fini() Implement the finish part of early tsc feat

[v3 0/2] *** SUBJECT HERE ***

2017-08-10 Thread Pavel Tatashin
changelog - v2 - v3 - Addressed comment from Thomas Gleixner - Timestamps are available a little later in boot but still much earlier than in mainline. This significantly simplified this work. v1 - v2 In patch "x86/tsc: tsc early": - added

Re: linux-next: build failure in the staging tree (Was: kisskb: FAILED linux-next/s390-allmodconfig/s390x Mon Jul 31, 17:24)

2017-08-10 Thread Greg KH
On Fri, Aug 11, 2017 at 09:41:09AM +1000, Stephen Rothwell wrote: > Hi all, > > On Mon, 7 Aug 2017 10:22:08 +1000 Stephen Rothwell > wrote: > > > > On Tue, 1 Aug 2017 08:29:31 + Laurentiu Tudor > > wrote: > > > > > > On 07/31/2017 06:58 PM, Greg KH wrote: > > > > On Mon, Jul 31, 2017 at

[v3 1/2] sched/clock: interface to allow timestamps early in boot

2017-08-10 Thread Pavel Tatashin
In Linux printk() can output timestamps next to every line. This is very useful for tracking regressions, and finding places that can be optimized. However, the timestamps are available only later in boot. On smaller machines it is insignificant amount of time, but on larger it can be many seconds

Re: [PATCH 0/3] v4l2-compat-ioctl32.c: better detect pointer controls

2017-08-10 Thread Mauro Carvalho Chehab
Em Thu, 10 Aug 2017 20:45:10 -0300 Mauro Carvalho Chehab escreveu: > In the past, only string controls were pointers. That changed when compounded > types got added, but the compat32 code was not updated. > > We could just add those controls there, but maintaining it is flaw, as we > often forge

[PATCH 3/3] ARM: dts: keystone-k2g-ice: Add and enable DSP CMA memory pool

2017-08-10 Thread Suman Anna
A CMA memory pool reserved memory node is added, and is attached to the DSP node through the 'memory-region' property on the K2G ICE board. This area will be used for allocating virtio rings and buffers. This node allows the DSP Memory Protection and Address Extension (MPAX) module to be configured

[PATCH 2/3] selftests: timers: posix_timers: fix to work without ksft framework

2017-08-10 Thread Shuah Khan
Fix to build and run without ksft framework like the other timers tests. Signed-off-by: Shuah Khan --- tools/testing/selftests/timers/posix_timers.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/timers/posix_timers.c b/tools/testing/selftests/timers/posix_timer

[PATCH 0/3] selfttests: timers ksft_ stubs handling changes

2017-08-10 Thread Shuah Khan
This patch series consists of changes to: Move ksft_ stubs from individual tests into kselftest_stubs.h and change tests to include it. Fix posix_timers and freq-step tests to run without ksft_ framework. This is in preparation to convert timers tests to ksft TAP 13 format. Question for John St

[PATCH 3/3] selftests: timers: freq-step: to work without ksft framework

2017-08-10 Thread Shuah Khan
Fix to build and run without ksft framework like the other timers tests. Signed-off-by: Shuah Khan --- tools/testing/selftests/timers/freq-step.c | 4 tools/testing/selftests/timers/kselftest_stubs.h | 1 + 2 files changed, 5 insertions(+) diff --git a/tools/testing/selftests/timers/

[PATCH 1/3] ARM: dts: keystone-k2g: Add DSP node

2017-08-10 Thread Suman Anna
The Keystone 2 66AK2G SoC has a single TMS320C66x DSP Core Subsystem (C66x CorePac), containing a C66x Fixed/Floating-Point DSP Core, and 32 KB of L1P & L1D SRAMs and a 1 MB L2 SRAM. Add the DT node for this DSP processor sub-system. The DT node has a new property 'power-domains' and no 'clocks' p

[PATCH 0/3] Add DSP DT nodes on Keystone 66AK2G platforms

2017-08-10 Thread Suman Anna
Hi Santosh, The following series adds the DT nodes for the DSP device present on the Keystone2 66AK2G SoC and enables them on the currently supported platforms. The DTS nodes for the other Keystone2 family of SoCs were posted previously [1] and already in your staging branches for 4.14. This seri

[PATCH 1/3] selftests: timers: move ksft_ stubs from tests into kselftest_stubs.h

2017-08-10 Thread Shuah Khan
Move ksft_ stubs from individual tests into kselftest_stubs.h and change tests to include it. This change removes duplicate stubs from individual tests and gets them ready for converting them to Kselftest TAP13 API. Signed-off-by: Shuah Khan --- tools/testing/selftests/timers/adjtick.c

[PATCH 2/3] ARM: dts: keystone-k2g-evm: Add and enable DSP CMA memory pool

2017-08-10 Thread Suman Anna
From: "Andrew F. Davis" A CMA memory pool reserved memory node is added, and is attached to the DSP node through the 'memory-region' property on the K2G EVM board. This area will be used for allocating virtio rings and buffers. This node allows the DSP Memory Protection and Address Extension (MPA

Re: [PATCH v5 2/6] seccomp: Sysctl to configure actions that are allowed to be logged

2017-08-10 Thread Tyler Hicks
On 08/04/2017 05:24 PM, Tyler Hicks wrote: > On 08/03/2017 11:33 AM, Kees Cook wrote: >> On Fri, Jul 28, 2017 at 1:55 PM, Tyler Hicks wrote: >>> Adminstrators can write to this sysctl to set the seccomp actions that >>> are allowed to be logged. Any actions not found in this sysctl will not >>> be

Re: [PATCH 0/5] esp_scsi, mac_esp: Various fixes and cleanups

2017-08-10 Thread Martin K. Petersen
Finn, > This series has been tested on m68k Macs (ESP236 equivalent). > > Some more testing with different targets and devices (FAS236 etc) > might be nice. Being that the esp_scsi fixes are on error paths, more > review may actually be more valuable than more testing... Applied to 4.14/scsi-que

Re: [PATCH 0/5] qcom-ufs: phy/hcd: Refactor phy initialization code

2017-08-10 Thread Martin K. Petersen
Vivek, > Can you kindly review this patch series (for UFS controller changes) > and consider giving your Ack so that Kishon can pull in the series > through phy tree. SCSI piece looks OK. Would still like Subhash to review the rest. -- Martin K. Petersen Oracle Linux Engineering

Re: linux-next: build failure in the staging tree (Was: kisskb: FAILED linux-next/s390-allmodconfig/s390x Mon Jul 31, 17:24)

2017-08-10 Thread Stephen Rothwell
Hi Greg, On Thu, 10 Aug 2017 16:48:42 -0700 Greg KH wrote: > > I have a patch in my queue, somewhere, that should resolve this, I > think. I have 600+ staging patches in my todo queue right now, that's > what I get for trying to have a vacation... > > I'll get to it soon, it's not lost, thanks.

Re: scsi: pm8001: fix double free in pm8001_pci_probe

2017-08-10 Thread Martin K. Petersen
Pan, > In function pm8001_pci_probe(), on errors that the control flow jumps to > label err_out_ha_free, function pm8001_free() is called. In pm8001_free(), > scsi_host_put() is called to release shost, which keeps the return value > of scsi_host_alloc(). After pm8001_free() returns, kfree() is c

Re: scsi: qla2xxx: use dma_mapping_error to check map errors

2017-08-10 Thread Martin K. Petersen
Pan, > The return value of dma_map_single() should be checked by > dma_mapping_error(). However, in function qla26xx_dport_diagnostics(), > its return value is checked against NULL, which could result in > failures. Applied to 4.14/scsi-queue. -- Martin K. Petersen Oracle Linux Engineerin

Re: scsi: mvsas: replace kfree with scsi_host_put

2017-08-10 Thread Martin K. Petersen
Pan, > The return value of scsi_host_alloc() should be released by > scsi_host_put(). However, in function mvs_pci_init(), kfree() > is used. This patch replaces kfree() with scsi_host_put() to avoid > possible memory leaks. Applied to 4.14/scsi-queue. -- Martin K. Petersen Oracle Linux E

Re: [PATCH 0/3] selfttests: timers ksft_ stubs handling changes

2017-08-10 Thread John Stultz
On Thu, Aug 10, 2017 at 4:53 PM, Shuah Khan wrote: > This patch series consists of changes to: > > Move ksft_ stubs from individual tests into kselftest_stubs.h and change > tests to include it. > > Fix posix_timers and freq-step tests to run without ksft_ framework. > > This is in preparation to

Re: [PATCH] printk-formats.txt: Add examples for %pS and %pF

2017-08-10 Thread Sergey Senozhatsky
On (08/10/17 19:35), Helge Deller wrote: > Sometimes people seems unclear when to use the %pS or %pF printk format. > Adding some examples may help to avoid such mistakes. > > See for example commit 51d96dc2e2dc ("random: fix warning message on ia64 and > parisc") which fixed such a wrong format s

simple-reset to de-duplicate reset drivers

2017-08-10 Thread Alexandru Gagniuc
Hi, I was looking at implementing a reset driver for our in-house SoC. It's essentially a long bitfield, each bit controlling one sort of reset. That seems to be surprisingly common. I've identified the following drivers which control a very similar reset: * reset-zynq * reset-zx2967 * reset

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

2017-08-10 Thread Martin K. Petersen
John, > This patchset introduces an array of misc changes, most significantly > including: There were a couple of patches that did multiple things. In the future, please make sure you only make one logical change per patch. Applied to 4.14/scsi-queue. Thanks! -- Martin K. Petersen Oracle

Re: [PATCH v2 0/2] virtio_scsi: Set can_queue based on size of virtqueue.

2017-08-10 Thread Martin K. Petersen
Richard, > v1 was here: > > https://lkml.org/lkml/2017/8/10/689 > > v1 -> v2: > > Remove .can_queue field from the templates. Applied to 4.14/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v8 06/14] lockdep: Detect and handle hist_lock ring buffer overwrite

2017-08-10 Thread Byungchul Park
On Thu, Aug 10, 2017 at 08:51:33PM +0800, Boqun Feng wrote: > > > > void crossrelease_hist_end(enum context_t c) > > > > { > > > > - if (current->xhlocks) > > > > - current->xhlock_idx = current->xhlock_idx_hist[c]; > > > > + struct task_struct *cur = current; > > > > +

<    4   5   6   7   8   9   10   11   >