[PATCH 9/9] vfs: intercept fsync on overlay files

2017-02-17 Thread Miklos Szeredi
Fsync is really an inode operation (AFAICS) so a doing it on a O_RDONLY file descriptor should flush any data written through an O_WRONLY file descriptor for example. To make this work correctly in case the file is copied up after being opened for read, intercept the fsync operation, similarly to

[PATCH 7/9] ovl: intercept mmap on overlay files

2017-02-17 Thread Miklos Szeredi
... in order to handle the corner case when the file is copied up after being opened read-only and mapped shared. Can be verified with the following script: - 8< - - - - - 8< - - - - - 8< - - - - - 8< - - - - cd / rm -rf /tmp/ovl-rorw-test mkdir /tmp/ovl-rorw-test cd /tmp/ovl-rorw-test cat << EO

Re: [PATCH V3 3/7] mm: reclaim MADV_FREE pages

2017-02-17 Thread Johannes Weiner
Hi Minchan, On Fri, Feb 17, 2017 at 02:45:55PM +0900, Minchan Kim wrote: > On Thu, Feb 16, 2017 at 04:27:18PM -0800, Shaohua Li wrote: > > On Thu, Feb 16, 2017 at 01:40:18PM -0500, Johannes Weiner wrote: > > > On Tue, Feb 14, 2017 at 11:36:09AM -0800, Shaohua Li wrote: > > > > @@ -1419,11 +1419,18

[PATCH 6/9] mm: use helper for calling f_op->mmap()

2017-02-17 Thread Miklos Szeredi
Signed-off-by: Miklos Szeredi --- drivers/gpu/drm/i915/i915_gem_dmabuf.c | 2 +- drivers/gpu/drm/vgem/vgem_drv.c| 2 +- fs/coda/file.c | 2 +- include/linux/fs.h | 5 + ipc/shm.c | 2 +- mm/mmap.c

Re: [PATCH v2 04/10] mm, page_alloc: count movable pages when stealing from pageblock

2017-02-17 Thread Vlastimil Babka
On 02/14/2017 07:10 PM, Johannes Weiner wrote: > > That makes sense to me. I have just one nit about the patch: > >> @@ -1981,10 +1994,29 @@ static void steal_suitable_fallback(struct zone >> *zone, struct page *page, >> return; >> } >> >> -pages = move_freepages_block(zo

[PATCH 8/9] vfs: use helper for calling f_op->fsync()

2017-02-17 Thread Miklos Szeredi
Signed-off-by: Miklos Szeredi --- fs/sync.c | 2 +- include/linux/fs.h | 6 ++ ipc/shm.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/sync.c b/fs/sync.c index 2a54c1f22035..11ba023434b1 100644 --- a/fs/sync.c +++ b/fs/sync.c @@ -192,7 +192,7 @@ i

[PATCH 0/9] overlay: fix inconsistency of ro file after copy-up

2017-02-17 Thread Miklos Szeredi
A file is opened for read-only, opened read-write (resulting in a copy up) and modified. The data read back from the the read-only fd will be stale in this case (the read-only file descriptor still refers to the lower, unmodified file). This patchset fixes issues related to this corner case. Thi

[PATCH 4/9] vfs: intercept reads to overlay files

2017-02-17 Thread Miklos Szeredi
...in order to handle the corner case when the file is copyied up after being opened read-only. Can be verified with the following script: - 8< - - - - - 8< - - - - - 8< - - - - - 8< - - - - cd / rm -rf /tmp/ovl-rorw-test mkdir /tmp/ovl-rorw-test cd /tmp/ovl-rorw-test mkdir -p mnt lower upper wo

[PATCH 2/9] vfs: pass type instead of fn to do_{loop,iter}_readv_writev()

2017-02-17 Thread Miklos Szeredi
Signed-off-by: Miklos Szeredi --- fs/read_write.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/fs/read_write.c b/fs/read_write.c index b7cf7e2cb8c5..c9da4492a462 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -23,9 +23,6 @@ #i

Re: [PATCH] net: nvidia: forcedeth: use new api ethtool_{get|set}_link_ksettings

2017-02-17 Thread David Miller
From: Philippe Reynes Date: Tue, 14 Feb 2017 23:36:32 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if > someone may test this patch. > > Signed-off-by: Philippe Reynes

[RFC 3/4] dt-bindings: iio: add support for GPIO triggers

2017-02-17 Thread Fabrice Gasnier
Document Industrial I/O GPIO trigger support. Signed-off-by: Fabrice Gasnier --- .../bindings/iio/trigger/iio-trig-gpio.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/trigger/iio-trig-gpio.txt diff --git a/Doc

[RFC 2/4] iio: trigger: add OF support

2017-02-17 Thread Fabrice Gasnier
Provide OF support. Device drivers can get IIO triggers from dt. Introduce IIO trigger specifiers, so there are: - IIO trigger providers, e.g. dt nodes designated with #io-trigger-cells= - IIO trigger consumers, e.g. phandles listed in io-triggers = <...>. Those can be identified by names by us

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-17 Thread Fabrice Gasnier
On 02/11/2017 11:29 AM, Jonathan Cameron wrote: On 06/02/17 16:01, Fabrice Gasnier wrote: On 02/04/2017 12:39 PM, Jonathan Cameron wrote: On 03/02/17 19:40, Linus Walleij wrote: On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier wrote: EXTi[0..15] gpio signal can be routed internally as trigg

[RFC 0/4] iio: trigger: Add OF support and GPIO based trigger

2017-02-17 Thread Fabrice Gasnier
Hi, I send this as an RFC, as I'm digging to try to get as generic as possible GPIO based trigger support, as discussed earlier in other patchset "Add EXTI GPIO trigger support to STM32 ADC": https://www.spinics.net/lists/arm-kernel/msg559091.html Following various comments on this, I sent this R

[RFC 1/4] dt-bindings: iio: introduce trigger providers, consumers

2017-02-17 Thread Fabrice Gasnier
Document iio provider and consumer bindings. Signed-off-by: Fabrice Gasnier --- .../devicetree/bindings/iio/iio-bindings.txt | 37 ++ 1 file changed, 37 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/iio-bindings.txt b/Documentation/devicetree/bindin

[RFC 4/4] iio: trigger: add GPIO trigger

2017-02-17 Thread Fabrice Gasnier
GPIOs can be used to generate triggers for any IIO device. Introduce generic GPIO trigger driver. It offers some options to tune polarity (e.g. rising/falling edge), and label so trigger name may be customized. By default, gpio triggers will be named gpiotrigX, where X is gpio number as returned by

Re: [PATCH v2 0/4] PTP attribute handling cleanup

2017-02-17 Thread David Miller
From: Richard Cochran Date: Thu, 16 Feb 2017 21:19:29 +0100 > On Tue, Feb 14, 2017 at 10:23:30AM -0800, Dmitry Torokhov wrote: >> drivers/ptp/ptp_clock.c | 22 +++--- >> drivers/ptp/ptp_private.h | 7 +- >> drivers/ptp/ptp_sysfs.c | 167 >> ++ >

Re: [PATCH V3 3/7] mm: reclaim MADV_FREE pages

2017-02-17 Thread Johannes Weiner
On Thu, Feb 16, 2017 at 04:27:18PM -0800, Shaohua Li wrote: > On Thu, Feb 16, 2017 at 01:40:18PM -0500, Johannes Weiner wrote: > > On Tue, Feb 14, 2017 at 11:36:09AM -0800, Shaohua Li wrote: > > > @@ -911,7 +911,7 @@ static void page_check_dirty_writeback(struct page > > > *page, > > >* Anonym

Re: [RFC PATCH v4 19/28] swiotlb: Add warnings for use of bounce buffers with SME

2017-02-17 Thread Konrad Rzeszutek Wilk
On Thu, Feb 16, 2017 at 09:46:19AM -0600, Tom Lendacky wrote: > Add warnings to let the user know when bounce buffers are being used for > DMA when SME is active. Since the bounce buffers are not in encrypted > memory, these notifications are to allow the user to determine some > appropriate actio

Re: [PATCH] RDMA/bnxt_re: remove redundant initialization of rc to zero

2017-02-17 Thread Dan Carpenter
drivers/infiniband/hw/bnxt_re/ib_verbs.c 2817 int bnxt_re_dereg_mr(struct ib_mr *ib_mr) 2818 { 2819 struct bnxt_re_mr *mr = container_of(ib_mr, struct bnxt_re_mr, ib_mr); 2820 struct bnxt_re_dev *rdev = mr->rdev; 2821 int rc = 0; It's weird that it would com

Re: [RFC PATCH v4 26/28] x86: Allow kexec to be used with SME

2017-02-17 Thread Konrad Rzeszutek Wilk
On Thu, Feb 16, 2017 at 09:47:55AM -0600, Tom Lendacky wrote: > Provide support so that kexec can be used to boot a kernel when SME is > enabled. Is the point of kexec and kdump to ehh, dump memory ? But if the rest of the memory is encrypted you won't get much, will you? Would it make sense to i

[PATCH] crypto: cavium: fix leak on curr if curr->head fails to be allocated

2017-02-17 Thread Colin King
From: Colin Ian King The exit path when curr->head cannot be allocated fails to kfree the earlier allocated curr. Fix this by kfree'ing it. Signed-off-by: Colin Ian King --- drivers/crypto/cavium/cpt/cptvf_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/cavium/cpt/cp

Re: [PATCH 0/8] ARM: sun8i: a33: Mali improvements

2017-02-17 Thread Tobias Jakobi
Alexandre Belloni wrote: > On 17/02/2017 at 13:45:44 +0100, Tobias Jakobi wrote: >>> The device tree is a representation of the hardware itself. The state >>> of the driver support doesn't change the hardware you're running on, >>> just like your BIOS/UEFI on x86 won't change the device it reports

Re: [RFC PATCH v4 02/28] x86: Set the write-protect cache mode for full PAT support

2017-02-17 Thread Tom Lendacky
On 2/17/2017 5:07 AM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:42:25AM -0600, Tom Lendacky wrote: For processors that support PAT, set the write-protect cache mode (_PAGE_CACHE_MODE_WP) entry to the actual write-protect value (x05). Acked-by: Borislav Petkov Signed-off-by: Tom Lendack

Re: [PATCH] RDMA/bnxt_re: remove redundant initialization of rc to zero

2017-02-17 Thread Laurence Oberman
- Original Message - > From: "Colin King" > To: "Selvin Xavier" , "Devesh Sharma" > , "Somnath Kotur" > , "Sriharsha Basavapatna" > , "Doug Ledford" > , "Sean Hefty" , "Hal Rosenstock" > , > linux-r...@vger.kernel.org > Cc: kernel-janit...@vger.kernel.org, linux-kernel@vger.kernel.org

Re: [PATCH] userfaultfd: hugetlbfs: add UFFDIO_COPY support for shared mappings

2017-02-17 Thread Andrea Arcangeli
On Thu, Feb 16, 2017 at 04:18:51PM -0800, Mike Kravetz wrote: > Thanks Andrea, I incorporated your suggestions into a new version of the > patch. > While changing (dst_vma->vm_flags & VM_SHARED) to integers, I noticed an issue > in the error path of __mcopy_atomic_hugetlb(). Indeed good point!

Re: [PATCH 0/8] ARM: sun8i: a33: Mali improvements

2017-02-17 Thread Maxime Ripard
On Thu, Feb 16, 2017 at 04:54:45PM +, Emil Velikov wrote: > On 16 February 2017 at 12:43, Tobias Jakobi > wrote: > > Hello, > > > > I was wondering about the following. Wasn't there some strict > > requirement about code going upstream, which also included that there > > was a full open-source

Re: [PATCH 0/8] ARM: sun8i: a33: Mali improvements

2017-02-17 Thread Maxime Ripard
On Fri, Feb 17, 2017 at 01:45:44PM +0100, Tobias Jakobi wrote: > Hello Maxime, > > Maxime Ripard wrote: > > Hi, > > > > On Thu, Feb 16, 2017 at 01:43:06PM +0100, Tobias Jakobi wrote: > >> I was wondering about the following. Wasn't there some strict > >> requirement about code going upstream, whi

Re: [PATCH] platform: intel_turbo_max_3: make it explicitly non-modular

2017-02-17 Thread Paul Gortmaker
[Re: [PATCH] platform: intel_turbo_max_3: make it explicitly non-modular] On 16/02/2017 (Thu 19:37) Darren Hart wrote: > On Mon, Feb 13, 2017 at 07:37:00PM -0500, Paul Gortmaker wrote: > > The Kconfig currently controlling compilation of this code is: > > > > drivers/platform/x86/Kconfig:config

Re: [PATCH 0/8] ARM: sun8i: a33: Mali improvements

2017-02-17 Thread Alexandre Belloni
On 17/02/2017 at 13:45:44 +0100, Tobias Jakobi wrote: > > The device tree is a representation of the hardware itself. The state > > of the driver support doesn't change the hardware you're running on, > > just like your BIOS/UEFI on x86 won't change the device it reports to > > Linux based on wheth

[PATCH trivial] selftests/timers: Spelling s/privledges/privileges/

2017-02-17 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- tools/testing/selftests/timers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile index b90e50c36f9f99a4..5fa1d7e9a9158ab6 100644 --- a/tools/test

[PATCH trivial 4/4] PM / Documentation: Spelling s/wrtie/write/

2017-02-17 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Cc: Rafael J. Wysocki Cc: linux...@vger.kernel.org --- Documentation/power/states.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/power/states.txt b/Documentation/power/states.txt index 008ecb588317bc1d..bc4548245a243134 100

[PATCH trivial 1/4] HID: picoLCD: Spelling s/REPORT_WRTIE_MEMORY/REPORT_WRITE_MEMORY/

2017-02-17 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Cc: Bruno Prémont Cc: linux-in...@vger.kernel.org --- drivers/hid/hid-picolcd_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-picolcd_debugfs.c b/drivers/hid/hid-picolcd_debugfs.c index 3c13af6844108f97..3e0feb4bb53

[PATCH trivial 3/4] drm/amd: Spelling s/SDMA_WRTIE_SUB_OPCODE_TILED/SDMA_WRITE_SUB_OPCODE_TILED/

2017-02-17 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Cc: Alex Deucher Cc: Christian König Cc: dri-devel@lists.freedesktop.orgamd-...@lists.freedesktop.org --- drivers/gpu/drm/amd/amdgpu/cikd.h | 2 +- drivers/gpu/drm/radeon/cikd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/

[PATCH trivial 2/4] rtlwifi: rtl8821ae: Spelling s/wrtie_addr/write_addr/

2017-02-17 Thread Geert Uytterhoeven
As per symmetry with _rtl8821ae_dbi_read(), "wrtie" is not a funky register acronym, but a simple misspelling of "write". Signed-off-by: Geert Uytterhoeven Cc: Larry Finger Cc: Chaoming Li Cc: net...@vger.kernel.org --- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 10 +- 1 fil

Re: [PATCH v3 2/3] perf: make build_cpu_topology skip offline/absent CPUs

2017-02-17 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 17, 2017 at 12:10:25PM +0100, Jan Stancek escreveu: > When build_cpu_topo() encounters offline/absent CPUs, > it fails to find any sysfs entries and returns failure. > This leads to build_cpu_topology() and write_cpu_topology() > failing as well. > > Because HEADER_CPU_TOPOLOGY has not

[PATCH] RDMA/bnxt_re: remove redundant initialization of rc to zero

2017-02-17 Thread Colin King
From: Colin Ian King rc is initialized to zero but is then updated by calls to bnxt_qplib_free_fast_reg_page_list and/or bnxt_qpliob_free_mrw so the initialization is redundant and can be removed. Detected with CoverityScan, CID#1408448 ("Unused Value") Signed-off-by: Colin Ian King --- drive

Re: [PATCH v2 1/3] watchdog: sama5d4: Cleanup init

2017-02-17 Thread Alexandre Belloni
On 17/02/2017 at 06:48:36 -0800, Guenter Roeck wrote: > On 02/16/2017 11:30 AM, Alexandre Belloni wrote: > > .config is used to cache a part of WDT_MR at probe time and is not used > > afterwards. Also functions are used while they always return 0. Simplify > > the flow by having everything in .pro

Re: [PATCH] Revert "ARM: at91/dt: sama5d2: Use new compatible for ohci node"

2017-02-17 Thread Alexandre Belloni
On 17/02/2017 at 16:12:50 +0100, Romain Izard wrote: > This reverts commit cab43282682e ("ARM: at91/dt: sama5d2: Use new > compatible for ohci node") > > It depends from commit 7150bc9b4d43 ("usb: ohci-at91: Forcibly suspend > ports while USB suspend") which was reverted and implemented > differen

Re: [PATCH 6/6] sysctl: Add global tunable mt_page_copy

2017-02-17 Thread kbuild test robot
Hi Zi, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc8 next-20170217] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Anshuman-Khandual/Enable-parallel-page-migration

Re: [PATCH] s390: crypto make ap_bus explicitly non-modular

2017-02-17 Thread Harald Freudenberger
On 02/13/2017 01:03 PM, Harald Freudenberger wrote: > On 02/09/2017 03:48 PM, Paul Gortmaker wrote: >> The Makefile in drivers/s390 has: >> >> obj-y += cio/ block/ char/ crypto/ net/ scsi/ virtio/ >> >> ..and the Makefile in crypto/ has: >> >> ap-objs := ap_bus.o ap_card.o ap_queue.o >> >

Re: [PATCH net-next v2 2/2] net: mvneta: Use cacheable memory to store the rx buffer DMA address

2017-02-17 Thread Gregory CLEMENT
Hi Thomas, On ven., févr. 17 2017, Thomas Petazzoni wrote: > Does not make sense, because it's not the SW that refills the RX > descriptors with the address of the RX buffers. It's done by the HW. > > With HWBM, I believe you have no choice but to read the physical > address from the RX descr

Re: [PATCH v2 00/10] try to reduce fragmenting fallbacks

2017-02-17 Thread Vlastimil Babka
On 02/16/2017 04:12 PM, Vlastimil Babka wrote: > On 02/15/2017 03:29 PM, Vlastimil Babka wrote: >> On 02/13/2017 12:07 PM, Mel Gorman wrote: >>> On Fri, Feb 10, 2017 at 06:23:33PM +0100, Vlastimil Babka wrote: >>> >>> By and large, I like the series, particularly patches 7 and 8. I cannot >>> make

Re: [PATCH v2 3/3] watchdog: sama5d4: Implement resume hook

2017-02-17 Thread Alexandre Belloni
On 17/02/2017 at 06:47:03 -0800, Guenter Roeck wrote: > On 02/16/2017 11:30 AM, Alexandre Belloni wrote: > > When resuming for the deepest state on sama5d2, it is necessary to restore > > MR as the registers are lost. > > > > Signed-off-by: Alexandre Belloni > > --- > > Changes in v2: > > - cach

[PATCH] timerfd: only check CAP_WAKE_ALARM when it is needed

2017-02-17 Thread Stephen Smalley
timerfd_create() and do_timerfd_settime() presently always call capable(CAP_WAKE_ALARM) although CAP_WAKE_ALARM is only required for CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM. This can cause extraneous audit messages when using a LSM such as SELinux, incorrectly causes PF_SUPERPRIV to be set ev

Re: [PATCH 18/35] drivers/ide: Convert remaining uses of pr_warning to pr_warn

2017-02-17 Thread David Miller
From: Joe Perches Date: Thu, 16 Feb 2017 23:11:31 -0800 > To enable eventual removal of pr_warning > > This makes pr_warn use consistent for drivers/ide > > Prior to this patch, there were 2 uses of pr_warning and > 0 uses of pr_warn in drivers/ide > > Signed-off-by: Joe Perches Acked-by: Da

Re: [PATCH 08/35] sparc: Convert remaining use of pr_warning to pr_warn

2017-02-17 Thread David Miller
From: Joe Perches Date: Thu, 16 Feb 2017 23:11:21 -0800 > To enable eventual removal of pr_warning > > This makes pr_warn use consistent for arch/sparc > > Prior to this patch, there was 1 use of pr_warning and > 8 uses of pr_warn in arch/sparc > > Signed-off-by: Joe Perches Acked-by: David

Re: [PATCH 3/4] fpga dt: bindings for Altera Partial Reconfiguraion IP.

2017-02-17 Thread Moritz Fischer
Matthew, On Fri, Feb 17, 2017 at 5:31 AM, Dinh Nguyen wrote: > On Wed, Feb 15, 2017 at 3:10 PM, wrote: >> From: Matthew Gerlach >> >> Device Tree bindings for Altera Partial Reconfiguraion IP? >> >> Signed-off-by: Matthew Gerlach Acked-By: Moritz Fischer >> --- >> Documentation/devicetree/b

Re: [PATCH v2] drm/color: Document CTM eqations

2017-02-17 Thread Ville Syrjälä
On Fri, Feb 17, 2017 at 03:05:28PM +, Lionel Landwerlin wrote: > On 17/02/17 14:56, Ville Syrjälä wrote: > > On Fri, Feb 17, 2017 at 02:42:26PM +, Lionel Landwerlin wrote: > >> On 17/02/17 13:54, Brian Starkey wrote: > >>> What's the verdict? We've got [1] which is about to become another >

Re: [PATCH v2 2/3] watchdog: sama5d4: Fix setting timeout when watchdog is disabled

2017-02-17 Thread Alexandre Belloni
On 17/02/2017 at 06:40:33 -0800, Guenter Roeck wrote: > On 02/16/2017 11:30 AM, Alexandre Belloni wrote: > > The datasheet states: "When setting the WDDIS bit, and while it is set, the > > fields WDV and WDD must not be modified." > > > > Ensure WDDIS is not set when changing the timeout and set i

Re: [PATCH v2] drm/color: Document CTM eqations

2017-02-17 Thread Daniel Stone
Hi, On 17 February 2017 at 14:56, Ville Syrjälä wrote: > On Fri, Feb 17, 2017 at 02:42:26PM +, Lionel Landwerlin wrote: >> If we're talking fixed point reprsentation, ChromeOS is using this : >> >> https://cs.chromium.org/chromium/src/ui/ozone/platform/drm/gpu/drm_device.cc?q=DrmDevice&l=209

[PATCH v2] gpio: xgene: mark PM functions as __maybe_unused

2017-02-17 Thread Arnd Bergmann
When CONFIG_PM_SLEEP is disabled, we get a warning about unused functions: drivers/gpio/gpio-xgene.c:155:12: warning: 'xgene_gpio_resume' defined but not used [-Wunused-function] static int xgene_gpio_resume(struct device *dev) ^ drivers/gpio/gpio-xgene.c:142:12: warn

[PATCH] Revert "ARM: at91/dt: sama5d2: Use new compatible for ohci node"

2017-02-17 Thread Romain Izard
This reverts commit cab43282682e ("ARM: at91/dt: sama5d2: Use new compatible for ohci node") It depends from commit 7150bc9b4d43 ("usb: ohci-at91: Forcibly suspend ports while USB suspend") which was reverted and implemented differently. With the new implementation, the compatible string must rema

[PATCH] vmxnet3: prevent building with 64K pages

2017-02-17 Thread Arnd Bergmann
I got a warning about broken code on ARM64 with 64K pages: drivers/net/vmxnet3/vmxnet3_drv.c: In function 'vmxnet3_rq_init': drivers/net/vmxnet3/vmxnet3_drv.c:1679:29: error: large integer implicitly truncated to unsigned type [-Werror=overflow] rq->buf_info[0][i].len = PAGE_SIZE; 'len' here

[PATCH net-next v2 4/6] net: dsa: mv88e6xxx: move VTU code to its own file

2017-02-17 Thread Vivien Didelot
Move the Global (1) VTU related code to its own file. Use this opportunity to provide a cleaner API for the VTU, by renaming a few underscore prefixed functions, split the data member of the mv88e6xxx_vtu_entry structure into membership (for 802.1q) and port state (for 802.1s) members, and add a m

[PATCH net-next v2 5/6] net: dsa: mv88e6xxx: add VTU ops

2017-02-17 Thread Vivien Didelot
Because there are several variant of the VTU operations and because checking for the presence of an STU is not enough, add new ops to the info structure to describe the VTU operations that a chip supports. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 58 +

[PATCH net-next v2 3/6] net: dsa: mv88e6xxx: add support for 6390 ATU Move

2017-02-17 Thread Vivien Didelot
The 6390 family of Marvell chips uses 5 bits to describe the ToPort and FromPort values of PortVec in the ATU Move operation, while older switches use 0xf. Add an atu_move_port_mask member in the info structure to describe that. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c

[PATCH net-next v2 0/6] net: dsa: mv88e6xxx: 88E6390 ATU/VTU

2017-02-17 Thread Vivien Didelot
This series adds support to 88E6390 for the ATU (MAC address databases) and VTU (VLAN databases), as well as providing a cleaner API for both. The 6390 family of Marvell switch chip handles the ATU Move operation differently and has a different usage of the VTU Data registers. v2: remove unsused

[PATCH net-next v2 6/6] net: dsa: mv88e6xxx: add support for 6390 VTU

2017-02-17 Thread Vivien Didelot
The 6390 family of chips use only 2 of the 3 VTU Data registers to pack the MemberTag and PortState VLAN data. This means that they must be written or read before or after each VTU/STU operations. Implement this variant to add support for VTU with such chips. Signed-off-by: Vivien Didelot --- d

[PATCH net-next v2 2/6] net: dsa: mv88e6xxx: move ATU code in its own file

2017-02-17 Thread Vivien Didelot
Move the Global (1) ATU related code in its own file, and export the necessary primitives. Use that opportunity to provide a cleaner API for the ATU, by renaming a few underscore prefixed functions, and members of the mv88e6xxx_atu_entry structures. Signed-off-by: Vivien Didelot --- drivers/net

[PATCH net-next v2 1/6] net: dsa: mv88e6xxx: add port mask helper

2017-02-17 Thread Vivien Didelot
Add a mv88e6xxx_port_mask() helper to get the bitmask of ports in a switch chip, that will be used in several features. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 5 + drivers/net/dsa/mv88e6xxx/port.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)

Re: [PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end

2017-02-17 Thread Alexander Shishkin
Will Deacon writes: > On Fri, Feb 17, 2017 at 04:06:59PM +0200, Alexander Shishkin wrote: >> Will Deacon writes: >> >> > On Fri, Feb 17, 2017 at 03:40:23PM +0200, Alexander Shishkin wrote: >> >> Will Deacon writes: >> >> >> >> > @@ -485,7 +485,8 @@ int intel_bts_interrupt(void) >> >> >

Re: [PATCH v3 3/3] perf: replace _SC_NPROCESSORS_CONF with max_present_cpu in cpu_topology_map

2017-02-17 Thread Jiri Olsa
On Fri, Feb 17, 2017 at 12:10:26PM +0100, Jan Stancek wrote: SNIP > - int cpu_nr = ph->env.nr_cpus_online; > + int cpu_nr = ph->env.nr_cpus_avail; > > nr = ph->env.nr_sibling_cores; > str = ph->env.sibling_cores; > @@ -1792,7 +1786,7 @@ static int process_cpu_topology(struct

Re: [PATCH v2] drm/color: Document CTM eqations

2017-02-17 Thread Lionel Landwerlin
On 17/02/17 14:56, Ville Syrjälä wrote: On Fri, Feb 17, 2017 at 02:42:26PM +, Lionel Landwerlin wrote: On 17/02/17 13:54, Brian Starkey wrote: What's the verdict? We've got [1] which is about to become another (driver) implementation - better to change before that merges than after I guess.

Re: [PATCH v4 00/36] i.MX Media Driver

2017-02-17 Thread Philipp Zabel
On Fri, 2017-02-17 at 14:22 +0200, Sakari Ailus wrote: > Hi Philipp, Steve and Russell, > > On Fri, Feb 17, 2017 at 12:43:38PM +0100, Philipp Zabel wrote: > > On Thu, 2017-02-16 at 14:27 -0800, Steve Longerbeam wrote: > > > > > > On 02/16/2017 02:20 PM, Russell King - ARM Linux wrote: > > > > On

[PATCH] smartpqi: fix time handling

2017-02-17 Thread Arnd Bergmann
When we have turned off RTC support, the smartpqi driver fails to build: ERROR: "rtc_time64_to_tm" [drivers/scsi/smartpqi/smartpqi.ko] undefined! This is easily avoided by using the generic 'struct tm' based helper rather than the RTC specific one. While fixing this, I noticed that even though th

Re: [PATCH 1/5] KVM: change API for requests to match bit operations

2017-02-17 Thread Radim Krčmář
2017-02-17 10:30+0100, Cornelia Huck: > On Thu, 16 Feb 2017 17:04:45 +0100 > Radim Krčmář wrote: > >> kvm_make_request was a wrapper that added barriers to bit_set and >> kvm_check_request did the same for bit_test and bit_check, but the name >> was not very obvious and we were also lacking opera

Re: [PATCH 09/35] x86: Convert remaining uses of pr_warning to pr_warn

2017-02-17 Thread Steven Rostedt
On Thu, 16 Feb 2017 23:11:22 -0800 Joe Perches wrote: > diff --git a/arch/x86/mm/testmmiotrace.c b/arch/x86/mm/testmmiotrace.c > index 38868adf07ea..4a55e453296d 100644 > --- a/arch/x86/mm/testmmiotrace.c > +++ b/arch/x86/mm/testmmiotrace.c > @@ -121,9 +121,8 @@ static int __init init(void) >

Re: [PATCH 5/5] KVM: add kvm_request_pending

2017-02-17 Thread Radim Krčmář
2017-02-17 10:51+0100, Andrew Jones: > On Thu, Feb 16, 2017 at 05:04:49PM +0100, Radim Krčmář wrote: > ... >> diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h >> index 2cc438685af8..563cf964dc5c 100644 >> --- a/include/linux/kvm_host.h >> +++ b/include/linux/kvm_host.h >> @@ -1101,6

Re: [PATCH 33/35] kernel/trace: Convert remaining uses of pr_warning to pr_warn

2017-02-17 Thread Steven Rostedt
On Thu, 16 Feb 2017 23:11:46 -0800 Joe Perches wrote: > To enable eventual removal of pr_warning > > This makes pr_warn use consistent for kernel/trace > > Prior to this patch, there were 2 uses of pr_warning and > 79 uses of pr_warn in kernel/trace > > Signed-off-by: Joe Perches Acked-by: S

Re: [PATCH v2] drm/color: Document CTM eqations

2017-02-17 Thread Ville Syrjälä
On Fri, Feb 17, 2017 at 02:42:26PM +, Lionel Landwerlin wrote: > On 17/02/17 13:54, Brian Starkey wrote: > > What's the verdict? We've got [1] which is about to become another > > (driver) implementation - better to change before that merges than > > after I guess. > > > > -Brian > > > > [1] ht

Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state

2017-02-17 Thread Ritesh Raj Sarraf
On Fri, 2017-02-17 at 14:35 +0530, Ritesh Raj Sarraf wrote: > > Please use: > > > > static DEVICE_ATTR_RW(touchpad_mode); > > > > You'll need to move the show_ and store_ prefixes to be postfixes, see > > toshiba-acpi.c for several examples. > > > > Thank you. I am building the kernel the test/

Re: [PATCH v2 1/3] watchdog: sama5d4: Cleanup init

2017-02-17 Thread Guenter Roeck
On 02/16/2017 11:30 AM, Alexandre Belloni wrote: .config is used to cache a part of WDT_MR at probe time and is not used afterwards. Also functions are used while they always return 0. Simplify the flow by having everything in .probe(). Does that really improve anything ? It makes the code har

[PATCH v3] Add sysfs interface for touchpad state

2017-02-17 Thread Ritesh Raj Sarraf
Lenovo Yoga (many variants: Yoga, Yoga2 Pro, Yoga2 13, Yoga3 Pro, Yoga 3 14 etc) has multiple modles that are a hybrid laptop, working in laptop mode as well as tablet mode. Currently, there is no easy interface to determine the touchpad status, which in case of the Yoga family of machines, can al

Re: [PATCH v2 3/3] watchdog: sama5d4: Implement resume hook

2017-02-17 Thread Guenter Roeck
On 02/16/2017 11:30 AM, Alexandre Belloni wrote: When resuming for the deepest state on sama5d2, it is necessary to restore MR as the registers are lost. Signed-off-by: Alexandre Belloni --- Changes in v2: - cache mr beofre suspending drivers/watchdog/sama5d4_wdt.c | 32 +

[PATCH] sched/core: include asm/paravirt.h

2017-02-17 Thread Arnd Bergmann
One of the headers that got removed was needed after all, depending on the configuration: kernel/sched/core.c: In function 'update_rq_clock_task': kernel/sched/core.c:198:50: error: 'paravirt_steal_rq_enabled' undeclared (first use in this function); did you mean 'arch_local_irq_enable'? This re

Re: [PATCH 4/5] perf stat: Add -a as a default target

2017-02-17 Thread Jiri Olsa
On Fri, Feb 17, 2017 at 11:41:28AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 17, 2017 at 03:33:27PM +0100, Jiri Olsa escreveu: > > On Fri, Feb 17, 2017 at 11:27:47AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Fri, Feb 17, 2017 at 03:00:57PM +0100, Jiri Olsa escreveu: > > > > Boris a

Re: [PATCH 2/2] x86/xen: use capabilities instead of fake cpuid values

2017-02-17 Thread Juergen Gross
On 17/02/17 15:30, Boris Ostrovsky wrote: > > > On 02/17/2017 09:19 AM, Juergen Gross wrote: >> On 17/02/17 15:05, Boris Ostrovsky wrote: >>> >>> >>> On 02/17/2017 02:36 AM, Juergen Gross wrote: When running as pv domain xen_cpuid() is being used instead of native_cpuid(). In xen_cpuid(

Re: [PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end

2017-02-17 Thread Will Deacon
On Fri, Feb 17, 2017 at 04:06:59PM +0200, Alexander Shishkin wrote: > Will Deacon writes: > > > On Fri, Feb 17, 2017 at 03:40:23PM +0200, Alexander Shishkin wrote: > >> Will Deacon writes: > >> > >> > @@ -485,7 +485,8 @@ int intel_bts_interrupt(void) > >> > return handled; > >>

Re: [PATCH v2] drm/color: Document CTM eqations

2017-02-17 Thread Lionel Landwerlin
On 17/02/17 13:54, Brian Starkey wrote: What's the verdict? We've got [1] which is about to become another (driver) implementation - better to change before that merges than after I guess. -Brian [1] https://lkml.org/lkml/2017/2/13/304 On Wed, Feb 15, 2017 at 11:56:55AM +, Daniel Stone wro

[PATCH] fbdev: ssd1307fb: include linux/gpio/consumer.h

2017-02-17 Thread Arnd Bergmann
Changing this driver to the gpiod API requires the use of the new-style header, depending on the configuration: drivers/video/fbdev/ssd1307fb.c: In function 'ssd1307fb_probe': drivers/video/fbdev/ssd1307fb.c:569:15: error: implicit declaration of function 'devm_gpiod_get_optional';did you mean 'd

Re: [PATCH 4/5] perf stat: Add -a as a default target

2017-02-17 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 17, 2017 at 03:33:27PM +0100, Jiri Olsa escreveu: > On Fri, Feb 17, 2017 at 11:27:47AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Fri, Feb 17, 2017 at 03:00:57PM +0100, Jiri Olsa escreveu: > > > Boris asked for default -a option in case we monitor > > > only uncore events. While impl

[PATCH] RDMA/bnxt_re: add DCB dependency

2017-02-17 Thread Arnd Bergmann
When CONFIG_DCB is disabled, we get a link error: drivers/infiniband/built-in.o: In function `bnxt_re_setup_qos': trace.c:(.text+0x155774): undefined reference to `dcb_ieee_getapp_mask' trace.c:(.text+0x155774): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `dcb_ieee_geta

Re: [PATCH v2 2/3] watchdog: sama5d4: Fix setting timeout when watchdog is disabled

2017-02-17 Thread Guenter Roeck
On 02/16/2017 11:30 AM, Alexandre Belloni wrote: The datasheet states: "When setting the WDDIS bit, and while it is set, the fields WDV and WDD must not be modified." Ensure WDDIS is not set when changing the timeout and set it afterwards if the watchdog was disabled. Signed-off-by: Alexandre B

Re: v4.10-rc8 (-rc6) boot regression on Intel desktop, does not boot after cold boots, boots after reboot

2017-02-17 Thread Frederic Weisbecker
On Thu, Feb 16, 2017 at 08:06:04PM +0100, Pavel Machek wrote: > On Thu 2017-02-16 18:25:35, Pavel Machek wrote: > > Hi! > > > > > > > 4.10-rc4 broken > > > > > 4.10-rc3 ok > > > > > > > > Hmm. If those actually end up being reliable, then there's not a whole > > > > lot in between them wrt PCI or

[PATCH] IB/hns: include linux/module.h

2017-02-17 Thread Arnd Bergmann
I ran into a build error on arm64 randconfig testing: infiniband/hw/hns/hns_roce_main.c:539:1: error: data definition has no type or storage class [-Werror] infiniband/hw/hns/hns_roce_main.c:539:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int] infin

[PATCH v1 2/2] drm: sti: make driver use devm_of_platform_populate()

2017-02-17 Thread Benjamin Gaignard
This make sure that of_platform_depopulate() is called if an error occur in probe after populating the date from the device tree. Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/sti/sti_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_drv.c

[PATCH v1 1/2] of: add devm_ functions for populate and depopulate

2017-02-17 Thread Benjamin Gaignard
Lost of calls to of_platform_populate() are not unbalanced by a call to of_platform_depopulate(). This create issues while drivers are bind/unbind. In way to solve those issues is to add devm_of_platform_populate() which will call of_platform_depopulate() when the device is unbound from the bus.

Re: [PATCH 2/2] x86/xen: use capabilities instead of fake cpuid values

2017-02-17 Thread Boris Ostrovsky
On 02/17/2017 09:19 AM, Juergen Gross wrote: On 17/02/17 15:05, Boris Ostrovsky wrote: On 02/17/2017 02:36 AM, Juergen Gross wrote: When running as pv domain xen_cpuid() is being used instead of native_cpuid(). In xen_cpuid() the aperf/mperf feature is indicated as not being present by spec

[PATCH v1 0/2] Introduce devm_of_platform_populate() helper

2017-02-17 Thread Benjamin Gaignard
Lost of calls to of_platform_populate() are not unbalanced by a call to of_platform_depopulate(). This create issues while drivers are bind/unbind. In way to solve those issues is to add devm_of_platform_populate() which will call of_platform_depopulate() when the device is unbound from the bu

[PATCH] x86/mm: trivial code cleanup for memory_map_top_doown()

2017-02-17 Thread Wei Yang
In case (last_start <= step_size), start is for sure to be 0. So, it is save to do the round_down for all cases and set start to map_start when start is smaller than map_start. >From the performance point of view, this also reduces the check on each iteration. This patch unifies the code on round

Re: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a single line

2017-02-17 Thread Maksymilian Piechota
On Thu, Feb 16, 2017 at 10:27:24AM -0800, Greg Kroah-Hartman wrote: > On Wed, Feb 15, 2017 at 10:11:00AM -0500, Maksymilian Piechota wrote: > > move else if statement to a single line > > > > Signed-off-by: Maksymilian Piechota > > --- > > drivers/staging/wlan-ng/prism2mgmt.c | 3 +-- > > 1 file

[PATCH] staging: octeon: remove unused variable

2017-02-17 Thread Arnd Bergmann
A cleanup patch left one local variable without a reference: drivers/staging/octeon/ethernet-rx.c:339:28: warning: unused variable 'priv' [-Wunused-variable] This removes the declaration too. Fixes: 66812da3a689 ("staging: octeon: Use net_device_stats from struct net_device") Signed-off-by: Ar

Re: [PATCH 4/5] perf stat: Add -a as a default target

2017-02-17 Thread Jiri Olsa
On Fri, Feb 17, 2017 at 11:27:47AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 17, 2017 at 03:00:57PM +0100, Jiri Olsa escreveu: > > Boris asked for default -a option in case we monitor > > only uncore events. While implementing that I thought > > it might be actually useful to make it ove

Re: [PATCH 5/5] perf record: Add -a as a default target

2017-02-17 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 17, 2017 at 03:00:58PM +0100, Jiri Olsa escreveu: > Adding system wide (-a) option as a default target > if non is specified. > > # perf record > Warning: No target specified, setting system-wide collection (-a). Ditto, this warning will get annoying after a while... > ... > >

Re: [PATCH 4/5] perf stat: Add -a as a default target

2017-02-17 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 17, 2017 at 03:00:57PM +0100, Jiri Olsa escreveu: > Boris asked for default -a option in case we monitor > only uncore events. While implementing that I thought > it might be actually useful to make it overall default. > > # perf stat > Warning: No target specified, setting system-

[PATCHv3 21/33] x86/asm: remove __VIRTUAL_MASK_SHIFT==47 assert

2017-02-17 Thread Kirill A. Shutemov
We don't need it anymore. 17be0aec74fb ("x86/asm/entry/64: Implement better check for canonical addresses") made canonical address check generic wrt. address width. Signed-off-by: Kirill A. Shutemov --- arch/x86/entry/entry_64.S | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[PATCHv3 19/33] x86: convert the rest of the code to support p4d_t

2017-02-17 Thread Kirill A. Shutemov
This patch converts x86 to use proper folding of new page table level with . That's a bit of kitchen sink, but I don't see how to split it further. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/paravirt.h | 33 +- arch/x86/include/asm/paravirt_types.h | 12 ++- arch/x86

[PATCHv3 18/33] x86/xen: convert __xen_pgd_walk() and xen_cleanmfnmap() to support p4d

2017-02-17 Thread Kirill A. Shutemov
Split these helpers few per-level functions and add p4d support. Signed-off-by: Xiong Zhang [kirill.shute...@linux.intel.com: split off into separate patch] Signed-off-by: Kirill A. Shutemov --- arch/x86/xen/mmu.c | 243 - arch/x86/xen/mmu.h |

Re: [PREVIEW 10/10] linkage: add .cfi_{start/end}proc to ENTRY/ENDPROC

2017-02-17 Thread Jiri Slaby
On 02/17/2017, 03:07 PM, Josh Poimboeuf wrote: > On Fri, Feb 17, 2017 at 02:36:15PM +0100, Jiri Slaby wrote: >> On 02/17/2017, 02:16 PM, Josh Poimboeuf wrote: >>> On Fri, Feb 17, 2017 at 11:47:57AM +0100, Jiri Slaby wrote: This is just a preview, not to merged now, only later with DWARF u

<    1   2   3   4   5   6   7   >