RE: [char-misc for 4.10-rc4 V2] mei: bus: enable OS version only for SPT and newer

2017-01-11 Thread Winkler, Tomas
> On 01/11/17 15:12, Winkler, Tomas wrote: > > >>> On 01/11/17 10:24, Winkler, Tomas wrote: > > > > On Wed, Jan 11, 2017 at 01:27:21AM +0200, Tomas Winkler wrote: > >> On older platforms the command should be just ignored by the > >> firmware but some older platforms misbehave so

[PATCH v4 1/4] signals, sparc: Add signal codes for ADI violations

2017-01-11 Thread Khalid Aziz
SPARC M7 processor introduces a new feature - Application Data Integrity (ADI). ADI allows MMU to catch rogue accesses to memory. When a rogue access occurs, MMU blocks the access and raises an exception. In response to the exception, kernel sends the offending task a SIGSEGV with si_code that ind

[PATCH v4 3/4] sparc64: Add support for ADI register fields, ASIs and traps

2017-01-11 Thread Khalid Aziz
SPARC M7 processor adds new control register fields, ASIs and a new trap to support the ADI (Application Data Integrity) feature. This patch adds definitions for these register fields, ASIs and a handler for the new precise memory corruption detected trap. Signed-off-by: Khalid Aziz Cc: Khalid Az

Re: [PATCH] mm: Ignore __GFP_NOWARN when reporting stalls

2017-01-11 Thread Michal Hocko
On Wed 11-01-17 19:55:20, Tetsuo Handa wrote: > Currently, warn_alloc() prints warning messages only if __GFP_NOWARN > is not specified. When warn_alloc() was proposed, I asserted that > warn_alloc() should print stall warning messages even if __GFP_NOWARN > is specified, but that assertion was not

Re: [PATCH/RESEND v2 1/5] z3fold: make pages_nr atomic

2017-01-11 Thread Dan Streetman
On Wed, Jan 11, 2017 at 10:06 AM, Vitaly Wool wrote: > This patch converts pages_nr per-pool counter to atomic64_t. > > Signed-off-by: Vitaly Wool Acked-by: Dan Streetman > --- > mm/z3fold.c | 20 +--- > 1 file changed, 9 insertions(+), 11 deletions(-) > > diff --git a/mm/z3fo

Re: [PATCH v3 0/5] fbtft: make it work with DMA enabled SPI

2017-01-11 Thread Noralf Trønnes
Den 11.01.2017 15:43, skrev Andy Shevchenko: On Tue, 2017-01-03 at 20:29 +0200, Andy Shevchenko wrote: This series enables 64x48 OLED display and fixes the driver to work with DMA enabled SPI properly. Has been tested on Intel Edison board with Adafruit 2'8" and SSD1306 64x48 (Sparkfun for Int

Re: [PATCH 04/15] video: fbdev: use permission-specific DEVICE_ATTR variants

2017-01-11 Thread Bartlomiej Zolnierkiewicz
Hi, On Saturday, October 29, 2016 09:36:58 PM Julia Lawall wrote: > Use DEVICE_ATTR_RW for read-write attributes. This simplifies the > source code, improves readbility, and reduces the chance of > inconsistencies. > > The semantic patch that makes this change is as follows: > (http://coccinell

Re: [PATCH 2/2] btrfs: drop gfp mask tweaking in try_release_extent_state

2017-01-11 Thread David Sterba
On Mon, Jan 09, 2017 at 03:39:03PM +0100, Michal Hocko wrote: > From: Michal Hocko > > try_release_extent_state reduces the gfp mask to GFP_NOFS if it is > compatible. This is true for GFP_KERNEL as well. There is no real > reason to do that though. There is no new lock taken down the > the only

Re: Perf hotplug lockup in v4.9-rc8

2017-01-11 Thread Peter Zijlstra
On Wed, Jan 11, 2017 at 02:59:20PM +, Mark Rutland wrote: > Hi Peter, > > Sorry for the delay; this fell into my backlog over the holiday. > > On Fri, Dec 09, 2016 at 02:59:00PM +0100, Peter Zijlstra wrote: > > So while I went back and forth trying to make that less ugly, I figured > > there

Re: [PATCH] tools: gpio add .gitignore for generated files

2017-01-11 Thread Shuah Khan
On 01/11/2017 08:19 AM, Linus Walleij wrote: > On Tue, Jan 10, 2017 at 3:07 PM, Shuah Khan wrote: >> On 01/10/2017 02:29 AM, Linus Walleij wrote: >>> On Thu, Jan 5, 2017 at 10:32 PM, Shuah Khan wrote: >>> Add .gitignore for generated files. Signed-off-by: Shuah Khan ---

[PATCH 2/3] perf/x86/amd/uncore: Dynamically allocate uncore counters

2017-01-11 Thread Janakarajan Natarajan
This patch updates the AMD uncore driver to support AMD Family17h processors. In Family17h, there are two extra last level cache counters. The counters are, therefore, allocated dynamically based on the family. The cpu hotplug up callback function is refactored to better manage failure conditions.

[PATCH 3/3] perf/x86/amd/uncore: Update sysfs attributes for Family17h processors

2017-01-11 Thread Janakarajan Natarajan
This patch updates the sysfs attributes for AMD Family17h processors. In Family17h, the event bit position is changed for both the NorthBridge and Last level cache counters. The sysfs attributes are assigned based on the family and the type of the counter. Signed-off-by: Janakarajan Natarajan --

[PATCH 1/3] perf/x86/amd/uncore: Update AMD uncore to rename L2 to LLC

2017-01-11 Thread Janakarajan Natarajan
This patch renames L2 counters to LLC counters. In AMD Family17h processors, L3 cache counter is supported. Since older families have at most L2 counters, last level cache (LLC) indicates L2/L3 based on the family. Signed-off-by: Janakarajan Natarajan --- arch/x86/events/amd/uncore.c | 98 +

[PATCH 0/3] perf/x86/amd/uncore: Update AMD uncore driver

2017-01-11 Thread Janakarajan Natarajan
This patchset updates the AMD uncore driver to support AMD Family17h processors. First, the current L2 counters are renamed to Last level cache (LLC) counter to reflect either L2 or L3 counters depending on the family. Then, it also dynamically allocates the counters since they vary between Famil

[RESEND PATCH v5] arm64: dts: qcom: Add msm8916 CoreSight components

2017-01-11 Thread Georgi Djakov
From: "Ivan T. Ivanov" Add initial set of CoreSight components found on Qualcomm msm8916 and apq8016 based platforms, including the DragonBoard 410c board. Signed-off-by: Ivan T. Ivanov Acked-by: Mathieu Poirier Signed-off-by: Georgi Djakov --- Changes since v4: (https://lkml.org/lkml/2016/1

Re: patch 4.8 "net: handle no dst on skb in icmp6_send"

2017-01-11 Thread Jiri Slaby
On 01/11/2017, 04:56 PM, Bronek Kozicki wrote: > On 11/01/2017 15:50, Jiri Slaby wrote: >> On 01/08/2017, 03:28 PM, Bronek Kozicki wrote: >>> Hello, >>> >>> any particular reason why this fix >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=79dc7e3f1cd323be4c81aa1a94fa

Re: patch 4.8 "net: handle no dst on skb in icmp6_send"

2017-01-11 Thread Bronek Kozicki
On 11/01/2017 15:50, Jiri Slaby wrote: On 01/08/2017, 03:28 PM, Bronek Kozicki wrote: Hello, any particular reason why this fix https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=79dc7e3f1cd323be4c81aa1a94faa1b3ed987fb2 was missed from stable 4.8 line? Apparently the bug

Re: [PATCH] afs: correctly use 64-bit time for UUID

2017-01-11 Thread Arnd Bergmann
On Wednesday, January 11, 2017 2:47:20 PM CET David Howells wrote: > Arnd Bergmann wrote: > > > > Is it worth abstracting out in-kernel UUID generation? > > > > Do you mean moving it out of AFS into lib/*.c? I think the 'afs_uuid' > > structure is quite different from other UUID definitions, so

Re: gpio: pcf857x: lockdep warning on v4.10-rc3

2017-01-11 Thread Roger Quadros
Grygorii, On 10/01/17 22:00, Grygorii Strashko wrote: > Hi > > On 01/10/2017 06:18 AM, Roger Quadros wrote: >> Hi Linus, >> >> I see the following lockdep warning on v4.10-rc3 on TI's dra7-evm. >> >> reverting (d245b3f9bd3 "gpio: simplify adding threaded interrupts") seems to >> fix it. >> >> >>

Re: [PATCH v2] net: netcp: correct netcp_get_stats function signature

2017-01-11 Thread David Miller
From: Keerthy Date: Wed, 11 Jan 2017 09:03:29 +0530 > Commit: bc1f44709cf2 - net: make ndo_get_stats64 a void function > and > Commit: 6a8162e99ef3 - net: netcp: store network statistics in 64 bits. > > The commit 6a8162e99ef3 adds ndo_get_stats64 function as per old > signature which causes com

Re: gpio: pcf857x: lockdep warning on v4.10-rc3

2017-01-11 Thread Roger Quadros
On 11/01/17 17:38, Linus Walleij wrote: > On Tue, Jan 10, 2017 at 1:18 PM, Roger Quadros wrote: > >> Hi Linus, >> >> I see the following lockdep warning on v4.10-rc3 on TI's dra7-evm. >> >> reverting (d245b3f9bd3 "gpio: simplify adding threaded interrupts") seems to >> fix it. > > I sent out a

Re: + mm-vmscan-add-mm_vmscan_inactive_list_is_low-tracepoint.patch added to -mm tree

2017-01-11 Thread Michal Hocko
On Wed 11-01-17 08:52:50, Minchan Kim wrote: [...] > > @@ -2055,8 +2055,8 @@ static bool inactive_list_is_low(struct > > if (!file && !total_swap_pages) > > return false; > > > > - inactive = lruvec_lru_size(lruvec, file * LRU_FILE); > > - active = lruvec_lru_size(lruvec, file

Re: [PATCH 2/2] gpio: davinci: Remove gpio2regs function to accommodate multi instances

2017-01-11 Thread Linus Walleij
On Wed, Jan 11, 2017 at 1:40 PM, Keerthy wrote: > On Wednesday 11 January 2017 04:34 PM, Linus Walleij wrote: >> On Wed, Jan 4, 2017 at 9:26 AM, Keerthy wrote: >> >>> gpio2regs is written making an assumption that driver supports only >>> one instance of gpio controller. Removing this and adding

Re: [PATCH] bnxt_en: hide unused bnxt_get_max_func_{vnics,rss_ctxs} functions

2017-01-11 Thread David Miller
From: Arnd Bergmann Date: Wed, 11 Jan 2017 15:36:09 +0100 > There are lots of #ifdefs in this file, and a recent patch got one > of them wrong, leading to a harmless warning in some randconfig > builds: > > ethernet/broadcom/bnxt/bnxt.c:4956:21: error: 'bnxt_get_max_func_vnics' > defined but no

[PATCHv2 1/2] iio: Documentation: Add proximity unit

2017-01-11 Thread Enric Balletbo i Serra
To follow iio guidelines Where possible we stick to the raw SI unit, so specify meters for proximity. Signed-off-by: Enric Balletbo i Serra --- Documentation/ABI/testing/sysfs-bus-iio | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b

[PATCHv2 2/2] iio: cros_ec_light_prox: add ChromeOS EC Light and Proximity Sensors

2017-01-11 Thread Enric Balletbo i Serra
From: Gwendal Grignou Handle Light and Proximity sensors presented by the ChromeOS EC Sensor hub. Creates an IIO device for each functions. Signed-off-by: Gwendal Grignou Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Serra --- drivers/iio/common/cros_ec_sensors/Kconfig

Re: [PATCH v6] drm: add fourcc codes for 16bit R and RG

2017-01-11 Thread Ben Widawsky
On 17-01-11 17:05:04, Ville Syrjälä wrote: On Thu, Jan 05, 2017 at 02:45:37PM +0100, Christian König wrote: Am 05.01.2017 um 12:37 schrieb Ville Syrjälä: > On Wed, Jan 04, 2017 at 07:38:55PM +0100, Rainer Hochecker wrote: >> From: Rainer Hochecker >> >> This adds fourcc codes for 16bit planes r

Re: patch 4.8 "net: handle no dst on skb in icmp6_send"

2017-01-11 Thread Jiri Slaby
On 01/08/2017, 03:28 PM, Bronek Kozicki wrote: > Hello, > > any particular reason why this fix > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=79dc7e3f1cd323be4c81aa1a94faa1b3ed987fb2 > was missed from stable 4.8 line? Apparently the bug being fixed has its > own https

[PATCH v3] ARM: dts: qcom: Add apq8064 CoreSight components

2017-01-11 Thread Georgi Djakov
From: "Ivan T. Ivanov" Add initial set of CoreSight components found on Qualcomm apq8064 based platforms, including the IFC6410 board. Signed-off-by: Ivan T. Ivanov Acked-by: Mathieu Poirier Signed-off-by: Georgi Djakov --- Changes since v2 (https://lkml.org/lkml/2016/11/21/522) * Rebase to

Re: [PATCH v2 4/5] firmware: add SmPL report for custom fallback mechanism

2017-01-11 Thread Greg KH
On Wed, Jan 11, 2017 at 03:02:22PM +0100, Luis R. Rodriguez wrote: > On Wed, Jan 11, 2017 at 09:32:26AM +0100, Greg KH wrote: > > On Fri, Dec 16, 2016 at 03:10:37AM -0800, Luis R. Rodriguez wrote: > > > Even though most distributions today disable the fallback mechanism > > > by default we've deter

Re: [PATCH 10/62] watchdog: coh901327_wdt: Convert to use device managed functions

2017-01-11 Thread Linus Walleij
On Wed, Jan 11, 2017 at 12:34 AM, Guenter Roeck wrote: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patches. Th

[tip:perf/urgent] perf/x86/intel: Use ULL constant to prevent undefined shift behaviour

2017-01-11 Thread tip-bot for Colin King
Commit-ID: ad5013d5699d30ded0cdbbc68b93b2aa28222c6e Gitweb: http://git.kernel.org/tip/ad5013d5699d30ded0cdbbc68b93b2aa28222c6e Author: Colin King AuthorDate: Wed, 11 Jan 2017 11:43:10 + Committer: Thomas Gleixner CommitDate: Wed, 11 Jan 2017 16:43:30 +0100 perf/x86/intel: Use ULL c

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-11 Thread Chris Wilson
On Wed, Jan 11, 2017 at 07:24:45AM -0800, Dave Hansen wrote: > On 01/10/2017 11:43 PM, Daniel Vetter wrote: > > On Tue, Jan 10, 2017 at 08:52:47AM -0800, Dave Hansen wrote: > >> On 01/10/2017 02:31 AM, Daniel Vetter wrote: > >>> commit e73ab00e9a0f1731f34d0620a9c55f5c30c4ad4e > >>> Author: Daniel V

Re: [PATCH 3/3] iio: pc104: Mask PC/104 drivers via the PC104 Kconfig option

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 10:45 PM, William Breathitt Gray wrote: > On Tue, Jan 10, 2017 at 09:13:02PM +, Jonathan Cameron wrote: >>On 10/01/17 18:51, William Breathitt Gray wrote: >>> PC/104 drivers should be hidden on machines which do not support PC/104 >>> devices. This patch adds the PC104

[PATCH] PCI: Enumerate switches below PCI-to-PCIe bridges

2017-01-11 Thread Bjorn Helgaas
PCI: Enumerate switches below PCI-to-PCIe bridges A PCI-to-PCIe bridge (a "reverse bridge") has a PCI or PCI-X primary interface and a PCI Express secondary interface. The PCIe interface is a Downstream Port that originates a Link. See the "PCI Express to PCI/PCI-X Bridge Specification", rev 1.0

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-11 Thread Uwe Kleine-König
On Wed, Jan 11, 2017 at 02:58:44PM +0100, M'boumba Cedric Madianga wrote: > Hi Uwe, > > 2017-01-11 9:22 GMT+01:00 Uwe Kleine-König : > > Hello Cedric, > > > > On Thu, Jan 05, 2017 at 10:07:23AM +0100, M'boumba Cedric Madianga wrote: > >> +/* > >> + * In standard mode: > >> + * SCL period = SCL hig

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-11 Thread Daniel Vetter
On Wed, Jan 11, 2017 at 4:24 PM, Dave Hansen wrote: > On 01/10/2017 11:43 PM, Daniel Vetter wrote: >> On Tue, Jan 10, 2017 at 08:52:47AM -0800, Dave Hansen wrote: >>> On 01/10/2017 02:31 AM, Daniel Vetter wrote: commit e73ab00e9a0f1731f34d0620a9c55f5c30c4ad4e Author: Daniel Vetter

Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol

2017-01-11 Thread Arnd Bergmann
On Tuesday, January 10, 2017 4:39:43 PM CET Andrew Duggan wrote: > On 01/10/2017 04:16 AM, Arnd Bergmann wrote: > > If CONFIG_INPUT=m, we get a build error for the rmi4-f03 driver, > > added in linux-4.10: > > > > drivers/input/built-in.o: In function `rmi_f03_attention': > > rmi_f03.c:(.text+0xcfe

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread James Bottomley
On Wed, 2017-01-11 at 13:34 +0200, Jarkko Sakkinen wrote: > On Tue, Jan 10, 2017 at 01:05:58PM -0700, Jason Gunthorpe wrote: > > On Tue, Jan 10, 2017 at 01:16:35AM +0200, Jarkko Sakkinen wrote: > > > On Wed, Jan 04, 2017 at 10:12:41AM -0600, Dr. Greg Wettstein > > > wrote: > > > > The kernel needs

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-11 Thread Uwe Kleine-König
Hello Cedric, On Wed, Jan 11, 2017 at 03:20:41PM +0100, M'boumba Cedric Madianga wrote: > > > >> + */ > >> + reg = i2c_dev->base + STM32F4_I2C_CR1; > >> + stm32f4_i2c_clr_bits(reg, STM32F4_I2C_CR1_ACK); > >> + stm32f4_i2c_set_bits(reg, STM32F4_I2C_C

Re: gpio: pcf857x: lockdep warning on v4.10-rc3

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 1:18 PM, Roger Quadros wrote: > Hi Linus, > > I see the following lockdep warning on v4.10-rc3 on TI's dra7-evm. > > reverting (d245b3f9bd3 "gpio: simplify adding threaded interrupts") seems to > fix it. I sent out a patch today: "gpio: provide lockdep keys for nested/un

[PATCH] regulator: twl6030: fix range comparison, allowing vsel = 59

2017-01-11 Thread Colin King
From: Colin Ian King The range min_uV > 135 && min_uV <= 15 is never reachable because of a typo in the previous range check and hence vsel = 59 is never reached. Fix the previous range check to enable the vsel = 59 setting. Fixes CoverityScan CID#728454 ("Logially dead code") Signed-o

Re: [PATCH v2] gpio: pca953x: Add optional reset gpio control

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 8:29 PM, Steve Longerbeam wrote: > Add optional reset-gpios pin control. If present, de-assert the > specified reset gpio pin to bring the chip out of reset. > > Signed-off-by: Steve Longerbeam > Cc: Linus Walleij > Cc: Alexandre Courbot > Cc: linux-g...@vger.kernel.org

[PATCH v5 0/4] MIPS: Remote processor driver

2017-01-11 Thread Matt Redfearn
The MIPS remote processor driver allows non-Linux firmware to take control of and execute on one of the systems VPEs. The CPU must be offlined from Linux first. A sysfs interface is created which allows firmware to be loaded and changed at runtime. A full description is available at [1]. An exampl

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 8:19 PM, Tony Lindgren wrote: > Below is an experimental fix to intorduce pinctrl_start() that I've > tested with pinctrl-single. Then we should probably make all pin controller > drivers call pinctrl_start() to properly fix the issue of struct pinctrl_dev > handle not bei

[PATCH v5 1/4] irqchip: mips-gic: Add context saving for MIPS_REMOTEPROC

2017-01-11 Thread Matt Redfearn
The MIPS remote processor driver allows non-Linux firmware to take control of and execute on one of the systems VPEs. If that VPE is brought back under Linux, it is necessary to ensure that all GIC interrupts are routed and masked as Linux expects them, as the firmware can have done anything it lik

[PATCH v5 4/4] MIPS: Deprecate VPE Loader

2017-01-11 Thread Matt Redfearn
The MIPS remote processor driver (CONFIG_MIPS_REMOTEPROC) provides a more standard mechanism for using one or more VPs as coprocessors running separate firmware. Here we deprecate this mechanism before it is removed. Signed-off-by: Matt Redfearn --- Changes in v5: None Changes in v4: None Chang

[PATCH v5 2/4] MIPS: CPS: Add VP(E) stealing

2017-01-11 Thread Matt Redfearn
From: Lisa Parratt VP(E) stealing provides a mechanism for removing an offline Virtual Processor from the Linux kernel such that it is available to run bare metal code. Once the CPU has been offlined from Linux, the CPU can be given a task to run via mips_cps_steal_cpu_and_execute(). The CPU is r

[PATCH v5 3/4] remoteproc/MIPS: Add a remoteproc driver for MIPS

2017-01-11 Thread Matt Redfearn
This driver allows a MIPS processor offlined from Linux to be used as a remote processor. Firmware may be loaded via the sysfs interface and changed at runtime, allowing the processor to handle real-time tasks or perform coprocessing while remaining processors are available to Linux. Coprocessor f

Re: [RFC PATCH] ext4: increase the protection of drop nlink and ext4 inode destroy

2017-01-11 Thread Theodore Ts'o
On Wed, Jan 11, 2017 at 05:07:29PM +0800, zhangyi (F) wrote: > > (1) The file we want to unlink have many hard links, but only one dcache > entry in memory. > (2) open this file, but it's inode->i_nlink read from disk was 1 (too low). > (3) some one call rename and drop it's i_nlink to zero. > (4

Re: [PATCH 5/8] efi: Get the secure boot status [ver #6]

2017-01-11 Thread David Howells
Matt Fleming wrote: > > + movb$0, BP_secure_boot(%rsi) > > #ifdef CONFIG_EFI_STUB > > /* > > * The entry point for the PE/COFF executable is efi_pe_entry, so > > Is clearing ::secure_boot really necessary? Any code path that goes > via efi_main() will set it correctly and all oth

Re: [PATCH] selftests/futex: Fix makefile dependencies

2017-01-11 Thread Stafford Horne
On Wed, Jan 11, 2017 at 07:41:07AM -0700, Shuah Khan wrote: > On 01/11/2017 01:48 AM, Stafford Horne wrote: > > On Wed, Jan 11, 2017 at 12:07:55AM -0800, Darren Hart wrote: > >> On Wed, Jan 11, 2017 at 01:37:19PM +0900, Stafford Horne wrote: > >>> On Tue, Jan 10, 2017 at 02:17:18PM -0800, Darren Ha

Re: [PATCH 8/8] efi: Add EFI_SECURE_BOOT bit [ver #6]

2017-01-11 Thread David Howells
Matt Fleming wrote: > Before we add more efi.flags bits I'd like this series to include the > patch that makes use of EFI_SECURE_BOOT. Alternatively, you move this > last patch to a new series. Are you willing to take the kernel lock-down patches also? David

Re: [Xen-devel] [PATCH] xen: do not re-use pirq number cached in pci device msi msg data

2017-01-11 Thread Dan Streetman
On Tue, Jan 10, 2017 at 8:25 PM, Stefano Stabellini wrote: > On Tue, 10 Jan 2017, Dan Streetman wrote: >> On Tue, Jan 10, 2017 at 2:03 PM, Stefano Stabellini >> wrote: >> > On Tue, 10 Jan 2017, Dan Streetman wrote: >> >> On Tue, Jan 10, 2017 at 10:57 AM, Dan Streetman wrote: >> >> > On Mon, Jan

Re: [PATCH 3/3] xen: optimize xenbus driver for multiple concurrent xenstore accesses

2017-01-11 Thread Boris Ostrovsky
>>> + >>> + >>> +static bool test_reply(struct xb_req_data *req) >>> +{ >>> + if (req->state == xb_req_state_got_reply || !xenbus_ok()) >>> + return true; >>> + >>> + /* Make sure to reread req->state each time. */ >>> + cpu_relax(); >> I don't think I understand why this is needed

Re: [PATCH 3/5] pinctrl: sunxi: add driver for V3s SoC

2017-01-11 Thread Linus Walleij
On Tue, Jan 3, 2017 at 4:16 PM, Icenowy Zheng wrote: > V3s SoC features only a pin controller (for the lack of CPUs part). > > Add a driver for this controller. > > Signed-off-by: Icenowy Zheng Patch applied with Maxime's ACK. Yours, Linus Walleij

Re: [PATCH 56/62] watchdog: tangox_wdt: Convert to use device managed functions

2017-01-11 Thread Marc Gonzalez
On 11/01/2017 15:25, Guenter Roeck wrote: > On 01/11/2017 04:31 AM, Marc Gonzalez wrote: >> On 11/01/2017 11:52, Guenter Roeck wrote: >> >>> On 01/11/2017 01:07 AM, Marc Gonzalez wrote: >>> > @@ -134,12 +134,15 @@ static int tangox_wdt_probe(struct platform_device > *pdev) > err = cl

Re: [PATCH v3 13/15] livepatch: change to a per-task consistency model

2017-01-11 Thread Josh Poimboeuf
On Wed, Jan 11, 2017 at 04:18:28PM +0100, Petr Mladek wrote: > On Tue 2017-01-10 14:46:46, Josh Poimboeuf wrote: > > On Tue, Jan 10, 2017 at 02:00:58PM +0100, Petr Mladek wrote: > > > On Thu 2016-12-22 12:31:37, Josh Poimboeuf wrote: > > > > On Thu, Dec 22, 2016 at 03:34:52PM +0100, Petr Mladek wro

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-11 Thread Dave Hansen
On 01/10/2017 11:43 PM, Daniel Vetter wrote: > On Tue, Jan 10, 2017 at 08:52:47AM -0800, Dave Hansen wrote: >> On 01/10/2017 02:31 AM, Daniel Vetter wrote: >>> commit e73ab00e9a0f1731f34d0620a9c55f5c30c4ad4e >>> Author: Daniel Vetter >>> Date: Sun Dec 18 14:35:45 2016 +0100 >>> >>> drm: prev

Re: [PATCH 0/3] pc104: Mask PC/104 Kconfig options

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 7:50 PM, William Breathitt Gray wrote: > PC/104 form factor devices serve a specific niche of embedded system > users. Since PC/104 devices and hardware are typically used by just a > subset of Linux users, it would be appropriate to filter PC/104 related > Kconfig options

[PATCH/RESEND v2 4/5] z3fold: use per-page spinlock

2017-01-11 Thread Vitaly Wool
Most of z3fold operations are in-page, such as modifying z3fold page header or moving z3fold objects within a page. Taking per-pool spinlock to protect per-page objects is therefore suboptimal, and the idea of having a per-page spinlock (or rwlock) has been around for some time. This patch implem

[PATCH v7 04/15] irqchip: gic-v3-its: keep the head file include in alphabetic order

2017-01-11 Thread Hanjun Guo
Rearrange header file includes to alphabetic order. As acpi_iort.h includes acpi.h so remove the duplidate acpi.h inclusion as well. Signed-off-by: Hanjun Guo Cc: Marc Zyngier Cc: Tomasz Nowicki --- drivers/irqchip/irq-gic-v3-its.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 2/2] locking/percpu-rwsem: Replace waitqueue with rcuwait

2017-01-11 Thread Davidlohr Bueso
The use of any kind of wait queue is an overkill for pcpu-rwsems. While one option would be to use the less heavy simple (swait) flavor, this is still too much for what pcpu-rwsems needs. For one, we do not care about any sort of queuing in that the only (rare) time writers (and readers, for that m

[PATCH 1/2] sched: Introduce rcuwait machinery

2017-01-11 Thread Davidlohr Bueso
rcuwait provides support for (single) rcu-safe task wait/wake functionality, with the caveat that it must not be called after exit_notify(), such that we avoid racing with rcu delayed_put_task_struct callbacks, task_struct being rcu unaware in this context -- for which we similarly have task_rcu_de

[PATCH v2 0/2] sched: Introduce rcuwait

2017-01-11 Thread Davidlohr Bueso
Changes from v1: - Renamed trywake to wake_up. - Added Oleg's review tags. Hi, Here's an updated version of the pcpu rwsem writer wait/wake changes with the abstractions wanted by Oleg. Patch 1 adds rcuwait (for a lack of better name), and patch 2 trivially makes use of it. Has survived tortu

[GIT] Networking

2017-01-11 Thread David Miller
1) Fix rtlwifi crash, from Larry Finger. 2) Memory disclosure in appletalk ipddp routing code, from Vlad Tsyrklevich. 3) r8152 can erroneously split an RX packet into multiple URBs if the Rx FIFO is not empty when we suspend. Fix this by waiting for the FIFO to empty before suspending.

Re: [PATCH v2 2/6] cpupower: Restore format of frequency-info limit

2017-01-11 Thread Stafford Horne
Hi All, Please ignore this, its a dup of the patch with the same name. I had an slight issue with reordering patches and this got send out. On Thu, Jan 12, 2017 at 12:11:15AM +0900, Stafford Horne wrote: > The intel_pstate kselftest expects that the output of > `cpupower frequency-info -l | tail

Re: [PATCH] tools: gpio add .gitignore for generated files

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 3:07 PM, Shuah Khan wrote: > On 01/10/2017 02:29 AM, Linus Walleij wrote: >> On Thu, Jan 5, 2017 at 10:32 PM, Shuah Khan wrote: >> >>> Add .gitignore for generated files. >>> >>> Signed-off-by: Shuah Khan >>> --- >>> tools/gpio/.gitignore | 4 >>> 1 file changed, 4

Re: [PATCH v3 13/15] livepatch: change to a per-task consistency model

2017-01-11 Thread Petr Mladek
On Tue 2017-01-10 14:46:46, Josh Poimboeuf wrote: > On Tue, Jan 10, 2017 at 02:00:58PM +0100, Petr Mladek wrote: > > On Thu 2016-12-22 12:31:37, Josh Poimboeuf wrote: > > > On Thu, Dec 22, 2016 at 03:34:52PM +0100, Petr Mladek wrote: > > > > On Wed 2016-12-21 15:25:05, Josh Poimboeuf wrote: > > > >

[PATCH v2 6/6] selftests: Add intel_pstate to TARGETS

2017-01-11 Thread Stafford Horne
This test was missing from the TARGETS list. The test requires patches to cpupower to pass correctly. Cc: Prarit Bhargava Signed-off-by: Stafford Horne --- tools/testing/selftests/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/Makefile b/tools/testing/self

[PATCH v2 4/6] selftests/intel_pstate: Fix warning on loop index overflow

2017-01-11 Thread Stafford Horne
The build was showing the warning: aperf.c:60:27: warning: iteration 2147483647 invokes undefined behavior [-Waggressive-loop-optimizations] for (i=0; i<0x8fff; i++) { This change sets i, cpu and fd to unsigned int as they should not need to be signed. Cc: Prarit Bhargava Signed-off-by:

[PATCH v2 3/6] cpupower: Restore format of frequency-info limit

2017-01-11 Thread Stafford Horne
The intel_pstate kselftest expects that the output of `cpupower frequency-info -l | tail -1 | awk ' { print $1 } '` to get frequency limits. This does not work after the following two changes. - 562e5f1a3: rework the "cpupower frequency-info" command (Jacob Tanenbaum) removed parsable limit o

[PATCH v2 5/6] selftests/intel_pstate: Update makefile to match new style

2017-01-11 Thread Stafford Horne
Recent changes from Bamvor (88baa78d1f318) have standardized the variable names like TEST_GEN_FILES and removed the need for make targets all and clean. These changes bring the intel_pstate test inline with those changes. Cc: Prarit Bhargava Signed-off-by: Stafford Horne --- tools/testing/self

[PATCH v7 15/15] irqchip: mbigen: Add ACPI support

2017-01-11 Thread Hanjun Guo
With the preparation of platform msi support and interrupt producer in DSDT, we can add mbigen ACPI support now. We are using _PRS methd to indicate number of irq pins instead of num_pins in DT to avoid _DSD usage in this case. For mbi-gen, Device(MBI0) { Name(_HID, "HISI0152")

Re: [PATCH] pinctrl: qcom: Add msm8998 pinctrl driver

2017-01-11 Thread Linus Walleij
On Mon, Jan 9, 2017 at 4:00 PM, Imran Khan wrote: > Add initial pinctrl driver to support pin configuration with > pinctrl framework for msm8998. > > Signed-off-by: Imran Khan You need review from the Qcom pinctrl maintainer Bjorn Andersson for this patch. +#define NORTH 0x50 +#define WE

[PATCH v7 02/15] ACPI: IORT: add missing comment for iort_dev_find_its_id()

2017-01-11 Thread Hanjun Guo
Add missing req_id parameter to the iort_dev_find_its_id() function kernel-doc comment. Signed-off-by: Hanjun Guo Cc: Lorenzo Pieralisi Cc: Tomasz Nowicki --- drivers/acpi/arm64/iort.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c ind

[PATCH v2 2/6] selftests/futex: Add headers to makefile dependencies

2017-01-11 Thread Stafford Horne
I am working on doing selftests for openrisc and found issues with the futex test not building after changes to the tests source. The futex makefile did not contain dependencies for all headers, so if we make changes to logging.h rebuild will not happen. Add headers to fix it up. Signed-off-by: S

Re: [PATCH v2 2/3] gpio: Add gpio driver support for ThunderX and OCTEON-TX

2017-01-11 Thread Linus Walleij
On Mon, Jan 9, 2017 at 9:02 PM, David Daney wrote: >> if (test_bit(line, gpio->invert_mask)) >>return !(read_bits & BIT(bank_bit)); >> else >>return !!(read_bits & BIT(bank_bit)); >> >> OK maybe not much clearer but seems clearer to me. > > As I really dislike the "!!" idiom, would you se

[PATCH v7 01/15] ACPI: IORT: fix the indentation in iort_scan_node()

2017-01-11 Thread Hanjun Guo
The indentation is wrong when return the iort_node, fix it. Signed-off-by: Hanjun Guo --- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index ba156c5..ce3084b 100644 --- a/drivers/acpi/arm64/ior

Re: pca953x: lockdep warning since 4.10

2017-01-11 Thread Clemens Gruber
On Wed, Jan 11, 2017 at 02:43:31PM +0100, Linus Walleij wrote: > On Sat, Jan 7, 2017 at 9:54 PM, Clemens Gruber > wrote: > > > I observed the following lockdep warning when booting an i.MX6Q board > > with several PCAL9555A gpio expanders connected over I2C. They are > > connected to 3 separate b

[PATCH v2 2/6] cpupower: Restore format of frequency-info limit

2017-01-11 Thread Stafford Horne
The intel_pstate kselftest expects that the output of `cpupower frequency-info -l | tail -1 | awk ' { print $1 } '` to get frequency limits. This does not work after the following two changes. - 562e5f1a3: rework the "cpupower frequency-info" command (Jacob Tanenbaum) removed parsable limit o

RE: [PATCH v2 8/8] crypto/testmgr: Allocate only the required output size for hash tests

2017-01-11 Thread David Laight
From: Andy Lutomirski > Sent: 10 January 2017 23:25 > There are some hashes (e.g. sha224) that have some internal trickery > to make sure that only the correct number of output bytes are > generated. If something goes wrong, they could potentially overrun > the output buffer. > > Make the test mo

Re: [PATCH] ASoC: rt5651: use msleep for large delays

2017-01-11 Thread Nicholas Mc Guire
On Wed, Jan 11, 2017 at 02:59:26PM +, Mark Brown wrote: > On Wed, Jan 11, 2017 at 12:49:36PM +0100, Nicholas Mc Guire wrote: > > > if (!rt5651->hp_mute) > > - usleep_range(8, 85000); > > + msleep(85); > > If you're doing conversions like thi

[PATCH v7 05/15] irqchip: gicv3-its: platform-msi: refactor its_pmsi_prepare()

2017-01-11 Thread Hanjun Guo
Adding ACPI support for platform MSI, we need to retrieve the dev id in ACPI way instead of device tree, we already have a well formed function its_pmsi_prepare() to get the dev id but it's OF dependent, so collect OF related code and put them into a single function to make its_pmsi_prepare() more

[PATCH/RESEND v2 3/5] z3fold: extend compaction function

2017-01-11 Thread Vitaly Wool
z3fold_compact_page() currently only handles the situation when there's a single middle chunk within the z3fold page. However it may be worth it to move middle chunk closer to either first or last chunk, whichever is there, if the gap between them is big enough. This patch adds the relevant code,

[PATCH/RESEND v2 1/5] z3fold: make pages_nr atomic

2017-01-11 Thread Vitaly Wool
This patch converts pages_nr per-pool counter to atomic64_t. Signed-off-by: Vitaly Wool --- mm/z3fold.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index 207e5dd..2273789 100644 --- a/mm/z3fold.c +++ b/mm/z3fold.c @@ -80,7 +

[PATCH v7 06/15] irqchip: gicv3-its: platform-msi: refactor its_pmsi_init() to prepare for ACPI

2017-01-11 Thread Hanjun Guo
Introduce its_pmsi_init_one() to refactor the code to isolate ACPI&DT common code to prepare for ACPI later. Signed-off-by: Hanjun Guo Cc: Marc Zyngier Cc: Tomasz Nowicki Cc: Thomas Gleixner --- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 45 --- 1 file changed, 27

[PATCH v7 11/15] ACPI: platform: setup MSI domain for ACPI based platform device

2017-01-11 Thread Hanjun Guo
With the platform msi domain created, we can set up the msi domain for a platform device when it's probed. In order to do that, we need to get the domain that the platform device connecting to, so the iort_get_platform_device_domain() is introduced to retrieve the domain from iort. After the doma

Re: [PATCH v5 4/6] usb: xhci: use bus->sysdev for DMA configuration

2017-01-11 Thread Alan Stern
On Wed, 11 Jan 2017, Mathias Nyman wrote: > On 17.11.2016 13:43, Sriram Dash wrote: > > From: Arnd Bergmann > > > > For xhci-hcd platform device, all the DMA parameters are not > > configured properly, notably dma ops for dwc3 devices. So, set > > the dma for xhci from sysdev. sysdev is pointing

[PATCH v7 07/15] irqchip: gicv3-its: platform-msi: scan MADT to create platform msi domain

2017-01-11 Thread Hanjun Guo
With the introduction of its_pmsi_init_one(), we can add some code on top for ACPI support of platform MSI. We are scanning the MADT table to get the ITS entry(ies), then use the information to create the platform msi domain for devices connect to it, just like the PCI MSI for ITS did. Signed-off

Re: [PATCH v3] staging: greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-11 Thread Johan Hovold
On Wed, Jan 11, 2017 at 04:00:35PM +0100, Roman Sommer wrote: > Note that this patch does not fix all checkpatch warnings for the > affected files. > > Signed-off-by: Christian Bewermeyer > Signed-off-by: Roman Sommer Next time I suggest you drop "checkpatch: " from your subject since that's no

[PATCH v7 12/15] msi: platform: make platform_msi_create_device_domain() ACPI aware

2017-01-11 Thread Hanjun Guo
platform_msi_create_device_domain() is used to ctreate irqdomain for the device such as irqchip mbigen generating the MSIs, it's almost ready for ACPI use except of_node_to_fwnode() is for dt only, make it ACPI aware then things will work in both DTS and ACPI. Signed-off-by: Hanjun Guo Cc: Marc Z

[PATCH v7 10/15] ACPI: IORT: move over to iort_node_map_platform_id()

2017-01-11 Thread Hanjun Guo
iort_node_map_platform_id() includes the function of iort_node_get_id(), so update current iort_node_get_id() users and move them over to iort_node_map_platform_id(). type handing in iort_node_get_id() is duplicate with iort_node_map_platform_id(), so clean up a little bit to make the code simpler

[PATCH v7 14/15] irqchip: mbigen: introduce mbigen_of_create_domain()

2017-01-11 Thread Hanjun Guo
From: Kefeng Wang Introduce mbigen_of_create_domain() to consolidate OF related code and prepare for ACPI later, no funtional change. Signed-off-by: Kefeng Wang Signed-off-by: Hanjun Guo Reviewed-by: Ma Jun Cc: Marc Zyngier Cc: Thomas Gleixner --- drivers/irqchip/irq-mbigen.c | 42

[PATCH v2 1/6] selftests/futex: Add stdio used for logging

2017-01-11 Thread Stafford Horne
Without this I am getting warnings of printf missing when compiling selftests. Signed-off-by: Stafford Horne --- tools/testing/selftests/futex/include/logging.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/futex/include/logging.h b/tools/testing/selftests/futex/in

[PATCH v2 0/6] Selftests fixes for futex and intel_pstate

2017-01-11 Thread Stafford Horne
This is followup to my previous patch [1] which was a very simple makefile change. After a comment from Darren Hart I updated intel_pstate as well, but noticed a few issues with running intel_pstate. That caused the change to expand a bit. - fix build deps for futex test *original* - update make

[PATCH v7 13/15] irqchip: mbigen: drop module owner

2017-01-11 Thread Hanjun Guo
From: Kefeng Wang Module owner will be set by driver core, so drop it. Signed-off-by: Kefeng Wang Signed-off-by: Hanjun Guo Reviewed-by: Ma Jun Cc: Marc Zyngier Cc: Thomas Gleixner --- drivers/irqchip/irq-mbigen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/irqchip/irq-mbige

[PATCH v7 08/15] ACPI: IORT: rename iort_node_map_rid() to make it generic

2017-01-11 Thread Hanjun Guo
iort_node_map_rid() was designed for both PCI and platform device, but the rid means requester id is for ITS mappings, rename iort_node_map_rid() to iort_node_map_id() and update its argument names to make it more generic. Signed-off-by: Hanjun Guo Cc: Lorenzo Pieralisi Cc: Tomasz Nowicki ---

[PATCH v7 09/15] ACPI: platform-msi: retrieve dev id from IORT

2017-01-11 Thread Hanjun Guo
For devices connecting to ITS, it needs dev id to identify itself, and this dev id is represented in the IORT table in named component node [1] for platform devices, so in this patch we will scan the IORT to retrieve device's dev id. For named components we know that there are always two steps inv

[PATCH v7 03/15] ACPI: IORT: minor cleanup for iort_match_node_callback()

2017-01-11 Thread Hanjun Guo
Cleanup iort_match_node_callback() a little bit to reduce some lines of code. Signed-off-by: Hanjun Guo Cc: Lorenzo Pieralisi Cc: Tomasz Nowicki --- drivers/acpi/arm64/iort.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/ar

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