Re: [PATCH] x86: Align TLB invalidation info

2018-02-01 Thread Nadav Amit
Peter Zijlstra wrote: > On Wed, Jan 31, 2018 at 09:38:46PM -0800, Nadav Amit wrote: > >> I used ftrace to measure the execution time of flush_tlb_func_remote() on a >> 2-socket Haswell machine, using a microbenchmark I wrote for some research >> project. > > However cool ftrace is, it is _reall

[PATCH 3/3] x86/MCE/AMD: Get address from already initialized block

2018-02-01 Thread Yazen Ghannam
From: Yazen Ghannam The block address is saved after the block is initialized when threshold_init_device() is called. Use the saved block address, if available, rather than trying to rediscover it. We can avoid some *on_cpu() calls in the init path that will cause a call trace when resuming fro

[PATCH 1/3] x86/MCE/AMD: Redo function to get SMCA bank type

2018-02-01 Thread Yazen Ghannam
From: Yazen Ghannam Pass the bank number to smca_get_bank_type() since that's all we need. Also, we should compare the bank number to the size of the smca_banks array not the number of bank types. Bank types are reused for multiple banks, so the number of types can be different from the number o

[PATCH 2/3] x86/MCE/AMD, EDAC/mce_amd: Enumerate Reserved SMCA bank type

2018-02-01 Thread Yazen Ghannam
From: Yazen Ghannam Currently, bank 4 is reserved on Fam17h, so we chose not to initialize bank 4 in the smca_banks array. This means that when we check if a bank is initialized, like during boot or resume, we will see that bank 4 is not initialized and try to initialize it. This may cause a call

Re: [PATCH 3/3] PCI: designware-ep: Return an error when requesting a too large BAR size

2018-02-01 Thread Andy Shevchenko
On Thu, Feb 1, 2018 at 6:11 PM, Niklas Cassel wrote: include/linux/sizes.h: +SZ_4G 0x1ULL > + if (size > 0x1ULL) { #include if (size > SZ_4G) { ? -- With Best Regards, Andy Shevchenko

Re: [PATCH v6 02/41] clk: davinci: New driver for davinci PLL clocks

2018-02-01 Thread David Lechner
On 02/01/2018 02:01 AM, Sekhar Nori wrote: On Saturday 20 January 2018 10:43 PM, David Lechner wrote: This adds a new driver for mach-davinci PLL clocks. This is porting the code from arch/arm/mach-davinci/clock.c to the common clock framework. Additionally, it adds device tree support for these

Re: [PATCH 3/3] PCI: designware-ep: Return an error when requesting a too large BAR size

2018-02-01 Thread Jingoo Han
On Thursday, February 1, 2018 1:58 PM, Andy Shevchenko wrote: > > On Thu, Feb 1, 2018 at 6:11 PM, Niklas Cassel > wrote: > > include/linux/sizes.h: > > +SZ_4G 0x1ULL > > > + if (size > 0x1ULL) { > > #include > > if (size > SZ_4G) { I like this one for the readability

Re: linux-next: build failure after merge of the pci tree

2018-02-01 Thread Bjorn Helgaas
[+cc Kishon, linux-pci] On Thu, Feb 01, 2018 at 09:56:09AM +0100, Niklas Cassel wrote: > On Thu, Feb 01, 2018 at 10:51:14AM +1100, Stephen Rothwell wrote: > > Hi Bjorn, > > > > After merging the pci tree, today's linux-next build (arm > > multi_v7_defconfig) failed like this: > > > > drivers/pci

Re: [PATCH] fbdev: simplefb: add support for 'memory-region' property on DT node

2018-02-01 Thread Andy Shevchenko
On Thu, Feb 1, 2018 at 5:56 PM, Bartlomiej Zolnierkiewicz wrote: > On Tuesday, January 23, 2018 08:34:56 PM Kunihiko Hayashi wrote: >> Enables 'memory-region' property referring to the memory description on >> the reserved-memory node in case of devicetree use. >> If there is no 'reg' property tha

Re: [PATCH v6 04/41] clk: davinci: Add platform information for TI DA850 PLL

2018-02-01 Thread David Lechner
On 02/01/2018 02:58 AM, Sekhar Nori wrote: On Saturday 20 January 2018 10:43 PM, David Lechner wrote: This adds platform-specific declarations for the PLL clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner +static const struct davinci_pll_clk_info da850_pll1_info __init

Re: [PATCH] KVM: x86: fix backward migration with async_PF

2018-02-01 Thread Radim Krčmář
2018-02-01 13:09-0500, Paolo Bonzini: > On 01/02/2018 12:50, Radim Krčmář wrote: > > Guests on new hypersiors might set KVM_ASYNC_PF_DELIVERY_AS_PF_VMEXIT > > bit when enabling async_PF, but this bit is reserved on old hypervisors, > > which results in a failure upon migration. > > > > Guests at l

Re: [PATCH] of: cache phandle nodes to decrease cost of of_find_node_by_phandle()

2018-02-01 Thread Frank Rowand
On 02/01/18 02:31, Chintan Pandya wrote: > >>> Anyways, will fix this locally and share test results. >> >> Thanks, I look forward to the results. >> > > Set up for this time was slightly different. So, taken all the numbers again. > > Boot to shell time (in ms): Experiment 2 > [1] Base 

Re: [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK

2018-02-01 Thread Vincent Guittot
On 1 February 2018 at 19:10, Peter Zijlstra wrote: > On Wed, Jan 24, 2018 at 09:25:36AM +0100, Vincent Guittot wrote: >> @@ -8861,7 +8875,14 @@ static int idle_balance(struct rq *this_rq, struct >> rq_flags *rf) >> update_next_balance(sd, &next_balance); >> rcu

[PATCH 1/2] staging: rtl8712: make unsigned length for rtl8717_get{_wpa_,_wpa2_,_}ie

2018-02-01 Thread Stefano Manni
Fixed r8712_get_ie, r8712_get_wpa_ie, r8712_get_wpa2_ie to have a length as unsigned int pointer instead of signed. Sparse warnings: drivers/staging/rtl8712/rtl871x_ioctl_linux.c:173:27: warning: incorrect type in argument 3 (different signedness) drivers/staging/rtl8712/rtl871x_ioctl_linux.c:17

Re: [PATCH v24 2/2] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-02-01 Thread Michael S. Tsirkin
On Thu, Jan 25, 2018 at 08:28:52PM +0900, Tetsuo Handa wrote: > On 2018/01/25 12:32, Wei Wang wrote: > > On 01/25/2018 01:15 AM, Michael S. Tsirkin wrote: > >> On Wed, Jan 24, 2018 at 06:42:42PM +0800, Wei Wang wrote: > >> + > >> +static void report_free_page_func(struct work_struct *work) > >> +{

[PATCH 2/2] staging: rtl8712: fix signedness of length to rtl8717_set_ie

2018-02-01 Thread Stefano Manni
rtl8717_set_it() takes an unsigned int pointer as length, fixed signedness in code using it. Sparse warnings: drivers/staging/rtl8712/ieee80211.c:191:53: warning: incorrect type in argument 5 (different signedness) drivers/staging/rtl8712/ieee80211.c:191:53:expected unsigned int [usertype]

Re: [PATCH v25 0/2] Virtio-balloon: support free page reporting

2018-02-01 Thread Michael S. Tsirkin
On Thu, Jan 25, 2018 at 05:14:04PM +0800, Wei Wang wrote: > This patch series is separated from the previous "Virtio-balloon > Enhancement" series. The new feature, VIRTIO_BALLOON_F_FREE_PAGE_HINT, > implemented by this series enables the virtio-balloon driver to report > hints of guest free page

Re: [PATCH v6 04/41] clk: davinci: Add platform information for TI DA850 PLL

2018-02-01 Thread David Lechner
On 01/20/2018 11:13 AM, David Lechner wrote: This adds platform-specific declarations for the PLL clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner --- v6 changes: - Added da850_pll{0,1}_info with controller-specific information - Added OBSCLK data - Add empty lines betwe

Re: [PATCH] vmxnet3: remove redundant initialization of pointer 'rq'

2018-02-01 Thread Shrikrishna Khare
On Thu, 1 Feb 2018, Colin King wrote: > From: Colin Ian King > > Pointer rq is being initialized but this value is never read, it > is being updated inside a for-loop. Remove the initialization and > move it into the scope of the for-loop. > > Cleans up clang warning: > drivers/net/vmxnet3/vm

Re: Dell docking station & Dell Embedded Controller & PS/2 devices

2018-02-01 Thread Dmitry Torokhov
Hi Pali, On Wed, Jan 24, 2018 at 11:41:21AM +0100, Pali Rohár wrote: > Hi Dmitry! > > I'm observing a problem with internal touchpad (handled by psmouse.ko) > on Dell laptops connected to Dell E docking station. When I connect > external PS/2 keyboard to docking station then internal laptop touch

Re: [PATCH] KVM: x86: fix backward migration with async_PF

2018-02-01 Thread Paolo Bonzini
On 01/02/2018 14:10, Radim Krčmář wrote: >>> >> This check will break migration if the source guest and host both have >> the recent kernels which support KVM_ASYNC_PF_DELIVERY_AS_PF_VMEXIT, so >> I am not sure about it. Otherwise, the patch is okay! > Good point, breaking forward migration is wor

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-01 Thread Ozgur
01.02.2018, 21:03, "Greg KH" : > On Thu, Feb 01, 2018 at 06:33:30PM +0100, Ozan Alpay wrote: >>  Dear Rodrigo Vivi, Ville Syrjälä, >> >>  My name is Ozan Alpay, and I am a student mentored by Lukas Bulwahn. We Hi Ozan, why did you send e-mail to kernel development e-mail list? >>  intend to us

RE: Dell docking station & Dell Embedded Controller & PS/2 devices

2018-02-01 Thread Mario.Limonciello
> -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Thursday, February 1, 2018 1:30 PM > To: Pali Rohár > Cc: Limonciello, Mario ; linux- > in...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: Dell docking station & Dell Embedded Controll

Re: [PATCH 0/7] objtool: retpoline validation

2018-02-01 Thread Peter Zijlstra
On Thu, Feb 01, 2018 at 04:32:35PM +0100, Peter Zijlstra wrote: > On Thu, Feb 01, 2018 at 09:28:56AM -0600, Josh Poimboeuf wrote: > > On Thu, Feb 01, 2018 at 03:34:21PM +0100, Peter Zijlstra wrote: > > > There are the retpoline validation patches; they work with the > > > __noretpoline > > > thing

Re: [PATCH 2/2] MAINTAINERS: add the Memory Consistency Model subsystem

2018-02-01 Thread Andrea Parri
On Thu, Feb 01, 2018 at 01:44:01PM +, Will Deacon wrote: > On Thu, Feb 01, 2018 at 01:04:26PM +0100, Andrea Parri wrote: > > Integrate (and then remove) tools/memory-model/MAINTAINERS into the > > main MAINTAINERS file. This way get_maintainer.pl can give a "right > > answer" for tools/memory-m

Re: [PATCH] Documentation: mips: Update AU1xxx_IDE Kconfig dependencies

2018-02-01 Thread Jonathan Corbet
On Mon, 29 Jan 2018 12:21:07 + Corentin Labbe wrote: > IDEDMA_AUTO IDEDMA_PCI_AUTO was removed in commit 120b9cfddff2 ("ide: remove > CONFIG_IDEDMA_{ICS,PCI}_AUTO config") > BLK_DEV_IDEDISK was removed in commit 806f80a6fc20 ("ide: add generic > ATA/ATAPI disk driver") > BLK_DEV_IDE_AU1XXX_

Re: [PATCH] Documentation/admin-guide: fixes for thunderbolt.rst

2018-02-01 Thread Jonathan Corbet
On Sat, 27 Jan 2018 18:49:08 -0800 Randy Dunlap wrote: > From: Randy Dunlap > > Edits for grammar, punctuation, and a doubled-up word. Applied to the docs tree, thanks. jon

Re: cocci script for detecting alloc_apertures mem leak

2018-02-01 Thread Julia Lawall
On Thu, 1 Feb 2018, Mathieu Malaterre wrote: > Hi cocci gurus, > > I am wondering if coccinelle can handle detection of kzalloc mem leak > (within alloc_apertures call) ? Typically: > > $ cat drivers/video/fbdev/vesafb.c > static int vesafb_probe(struct platform_device *dev) > [...] > info->ap

Re: [PATCH] vmxnet3: remove redundant initialization of pointer 'rq'

2018-02-01 Thread David Miller
From: Colin King Date: Thu, 1 Feb 2018 17:29:21 + > From: Colin Ian King > > Pointer rq is being initialized but this value is never read, it > is being updated inside a for-loop. Remove the initialization and > move it into the scope of the for-loop. > > Cleans up clang warning: > driver

Re: [PATCH] net: jme: remove unused initialization of 'rxdesc'

2018-02-01 Thread David Miller
From: Colin King Date: Thu, 1 Feb 2018 16:58:42 + > From: Colin Ian King > > Pointer rxdesc is assigned a value that is never read, it is overwritten > by a new assignment inside a while loop hence the initial assignment > is redundant and can be removed. > > Cleans up clang warning: > dr

Re: [PATCH] lan78xx: remove redundant initialization of pointer 'phydev'

2018-02-01 Thread David Miller
From: Colin King Date: Thu, 1 Feb 2018 17:10:18 + > From: Colin Ian King > > Pointer phydev is initialized and this value is never read, phydev > is immediately updated to a new value, hence this initialization > is redundant and can be removed > > Cleans up clang warning: > drivers/net/u

Re: [PATCH] mm/kasan: Don't vfree() nonexistent vm_area.

2018-02-01 Thread Matthew Wilcox
On Thu, Feb 01, 2018 at 07:33:49PM +0300, Andrey Ryabinin wrote: > + case MEM_OFFLINE: { > + struct vm_struct *vm; > + > + /* > + * Only hot-added memory have vm_area. Freeing shadow > + * mapped during boot would be tricky, so we'll just > +

Re: [PATCH v4.15-rc9] sched, cgroup: Don't reject lower cpu.max on ancestors

2018-02-01 Thread Tejun Heo
Hello, On Thu, Feb 01, 2018 at 05:49:42PM +0100, Peter Zijlstra wrote: > > Well, they're upper limits, not strict allocations. The current > > behavior implemented by cpu isn't either a strict allocation or upper > > limits. It disallows a child from having a value higher than the > > parent (al

Re: [PATCH] KVM/x86: remove WARN_ON() for when vm_munmap() fails

2018-02-01 Thread Eric Biggers
On Thu, Feb 01, 2018 at 12:12:00PM -0500, Paolo Bonzini wrote: > On 01/02/2018 10:33, Radim Krčmář wrote: > > 2018-01-31 17:30-0800, Eric Biggers: > >> From: Eric Biggers > >> > >> On x86, special KVM memslots such as the TSS region have anonymous > >> memory mappings created on behalf of userspac

Re: [PATCH] xen: fix frontend driver disconnected from xenbus on removal

2018-02-01 Thread Boris Ostrovsky
On 02/01/2018 03:57 AM, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Current xenbus frontend driver removal flow first disconnects > the driver from xenbus and then calls driver's remove callback. > This makes it impossible for the driver to listen to backend's > state change

Re: [usb-serial] Support for console read from usb serial driver

2018-02-01 Thread Greg KH
On Thu, Feb 01, 2018 at 11:52:18PM +0530, Ivid Suvarna wrote: > Hi All, > > I was going through usb serial driver console related source code > (drivers/usb/serial/console.c) in linux kernel and came across > "usb_console_write" function and was wondering if any usb serial > convertor drivers were

Re: [PATCH 1/5] compiler.h, kasan: Avoid duplicating __read_once_size_nocheck()

2018-02-01 Thread Andrey Ryabinin
On 02/01/2018 09:28 PM, Linus Torvalds wrote: > Ack for the whole series. > > Will this go through Andrew's mm tree or what? I can pick it up directly too. > Whatever you'd prefer.

Re: [Xen-devel] [PATCH v2] x86/xen: init %gs very early to avoid page faults with stack protector

2018-02-01 Thread Boris Ostrovsky
On 02/01/2018 07:40 AM, Juergen Gross wrote: > When running as Xen pv guest %gs is initialized some time after > C code is started. Depending on stack protector usage this might be > too late, resulting in page faults. > > So setup %gs and MSR_GS_BASE in assembly code already. > > Cc: sta...@vger.k

Re: unexpected kernel reboot

2018-02-01 Thread Eric Biggers
On Fri, Dec 15, 2017 at 01:06:16AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > d5c52866f560ba43edcb941868e1f884f15234e5 > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console o

Re: [PATCH net] net: memcontrol: charge allocated memory after mem_cgroup_sk_alloc()

2018-02-01 Thread Roman Gushchin
On Thu, Feb 01, 2018 at 10:16:55AM -0500, David Miller wrote: > From: Roman Gushchin > Date: Wed, 31 Jan 2018 21:54:08 + > > > So I really start thinking that reverting 9f1c2674b328 > > ("net: memcontrol: defer call to mem_cgroup_sk_alloc()") > > and fixing the original issue differently migh

Re: [PATCH] mm/kasan: Don't vfree() nonexistent vm_area.

2018-02-01 Thread Andrey Ryabinin
On 02/01/2018 10:57 PM, Matthew Wilcox wrote: > On Thu, Feb 01, 2018 at 07:33:49PM +0300, Andrey Ryabinin wrote: >> +case MEM_OFFLINE: { >> +struct vm_struct *vm; >> + >> +/* >> + * Only hot-added memory have vm_area. Freeing shadow >> + * mappe

[GIT PULL] VFIO updates for v4.16

2018-02-01 Thread Alex Williamson
Hi Linus, The following changes since commit 1291a0d5049dbc06baaaf66a9ff3f53db493b19b: Linux 4.15-rc4 (2017-12-17 18:59:59 -0800) are available in the Git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v4.16-rc1 for you to fetch changes up to 46ed90f157f42d956ffed17c003f

Re: [PATCH] xen: fix frontend driver disconnected from xenbus on removal

2018-02-01 Thread Oleksandr Andrushchenko
On 02/01/2018 10:08 PM, Boris Ostrovsky wrote: On 02/01/2018 03:57 AM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Current xenbus frontend driver removal flow first disconnects the driver from xenbus and then calls driver's remove callback. This makes it impossible for the d

Good Morning !

2018-02-01 Thread Anny
Good Morning , I have a project i would like to bring to you and i want you to help me discuss it. please let me know if you will be available for this project. Thanks

Re: [PATCH 1/5] compiler.h, kasan: Avoid duplicating __read_once_size_nocheck()

2018-02-01 Thread Linus Torvalds
On Thu, Feb 1, 2018 at 12:14 PM, Andrey Ryabinin wrote: > On 02/01/2018 09:28 PM, Linus Torvalds wrote: >> >> Will this go through Andrew's mm tree or what? I can pick it up directly too. > > Whatever you'd prefer. Ok, I just took it directly as-is, Linus

Re: [Intel-wired-lan] [PATCH] ixgbevf: remove redundant initialization of variable 'dma'.

2018-02-01 Thread Alexander Duyck
On Thu, Feb 1, 2018 at 10:35 AM, Colin King wrote: > From: Colin Ian King > > Variable dma is initialized with a value that is never read, later > on it is re-assigned a new value, hence the initialization is redundant > and can be removed. > > Cleans up clang warning: > drivers/net/ethernet/inte

Re: [PATCH v11 03/10] sparc64: Add support for ADI register fields, ASIs and traps

2018-02-01 Thread Joe Perches
On Thu, 2018-02-01 at 11:01 -0700, Khalid Aziz wrote: > diff --git a/arch/sparc/include/asm/pgtable_64.h > b/arch/sparc/include/asm/pgtable_64.h [] > @@ -164,6 +164,8 @@ bool kern_addr_valid(unsigned long addr); > #define _PAGE_E_4V _AC(0x0800,UL) /* side-Effect */ > #de

Re: [PATCH arm/aspeed/ast2500 v3 1/2] ipmi: add a KCS IPMI BMC driver

2018-02-01 Thread Corey Minyard
On 02/01/2018 02:48 AM, Haiyue Wang wrote: --- v2->v3 - Update the KCS phase state machine. - Fix the race condition of read/write. v1->v2 - Divide the driver into two parts, one handles the BMC KCS IPMI 2.0 state; the other handles the BMC KCS controller such as AST2500 IO accessing. - Use

Re: [PATCH v11 03/10] sparc64: Add support for ADI register fields, ASIs and traps

2018-02-01 Thread David Miller
From: Joe Perches Date: Thu, 01 Feb 2018 12:32:02 -0800 >> diff --git a/arch/sparc/include/asm/ttable.h >> b/arch/sparc/include/asm/ttable.h > [] >> @@ -219,6 +219,16 @@ >> nop;\ >> nop; >> >> +#define SUN4V_MCD_PRECISE

[PATCH] staging: vc04_services: remove unused files

2018-02-01 Thread Corentin Labbe
All thoses files are not used by anybody. Lets just remove them. Signed-off-by: Corentin Labbe --- .../interface/vchiq_arm/vchiq_build_info.h | 37 -- .../interface/vchiq_arm/vchiq_memdrv.h | 59 -- .../interface/vchiq_arm/vchiq_version.c

Re: [PATCH 1/2] dt-bindings: Documentation for qcom,llcc

2018-02-01 Thread Channa
On 2018-02-01 02:44, Mark Rutland wrote: On Thu, Jan 25, 2018 at 03:55:12PM -0800, Channagoud Kadabi wrote: Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi --- .../devicetree/bindings/arm/msm/qcom,llcc.txt

[PATCH 1/3] documentation: watchdog: remove documentation of at32ap700x_wdt

2018-02-01 Thread Corentin Labbe
Since at32ap700x_wdt is gone, no need to keep its documentation Signed-off-by: Corentin Labbe --- Documentation/watchdog/watchdog-parameters.txt | 5 - 1 file changed, 5 deletions(-) diff --git a/Documentation/watchdog/watchdog-parameters.txt b/Documentation/watchdog/watchdog-parameters.tx

[PATCH 2/3] documentation: watchdog: remove documentation for ixp2000

2018-02-01 Thread Corentin Labbe
The ixp2000 watchdog driver was removed in commit 065e8238302b ("watchdog: remove ixp2000 driver") No need to keep its documentation, so remove it. Signed-off-by: Corentin Labbe --- Documentation/watchdog/watchdog-parameters.txt | 5 - 1 file changed, 5 deletions(-) diff --git a/Documenta

[PATCH 3/3] documentation: watchdog: remove documentation of w83697hf_wdt/w83697ug_wdt

2018-02-01 Thread Corentin Labbe
Since w83697hf_wdt/w83697ug_wdt watchdogs drivers were removed in commit 7285fae9345e ("watchdog: Remove drivers for W83697HF and W83697UG") There are no need to keep their documentation Signed-off-by: Corentin Labbe --- Documentation/watchdog/watchdog-parameters.txt | 13 - 1 file c

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

2018-02-01 Thread Stephen Rothwell
Hi Jeff, Commit 9b796f330111 ("Rename make inode_cmp_iversion{+raw} to inode_eq_iversion{+raw}") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell

Re: [GIT PULL] leaking_addresses.pl changes for 4.16-rc1

2018-02-01 Thread Tobin C. Harding
On Wed, Jan 31, 2018 at 01:42:36PM +1100, Tobin C. Harding wrote: > The following changes since commit d8a5b80568a9cb66810e75b182018e9edb68e8ff: > > Linux 4.15 (2018-01-28 13:20:33 -0800) > > are available in the git repository at: > > git://github.com/tcharding/linux.git tags/leaks-4.16-rc1

Re: [PATCH 1/2] dt-bindings: Documentation for qcom,llcc

2018-02-01 Thread Channa
On 2018-02-01 02:48, Mark Rutland wrote: On Thu, Jan 25, 2018 at 03:55:12PM -0800, Channagoud Kadabi wrote: Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi --- .../devicetree/bindings/arm/msm/qcom,llcc.txt

[PATCH] iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined

2018-02-01 Thread Andreas Klinger
Functions for triggered buffer support are needed by this module. If they are not defined accidentally by another driver, there's an error thrown out while linking. Add a select of IIO_BUFFER and IIO_TRIGGERED_BUFFER in the Kconfig file. Signed-off-by: Andreas Klinger --- drivers/iio/proximity/

Re: [PATCH v2] Documentation/process: kernel maintainer PGP guide

2018-02-01 Thread Konstantin Ryabitsev
On Thu, Feb 01, 2018 at 11:14:50AM -0700, Jonathan Corbet wrote: - Capitalizing "Kernel" bugs me. Obviously not a big deal. Noted. - The "master keys vs. subkeys" section is nice, but it's missing one thing, IMO: a sentence saying what a subkey *is* in the first place. I'll work that in

Re: [PATCH] perf vendor events aarch64: Add JSON metrics for ARM Cortex-A53 Processor

2018-02-01 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 01, 2018 at 10:12:59AM -0500, William Cohen escreveu: > On 02/01/2018 09:43 AM, Arnaldo Carvalho de Melo wrote: > > Em Tue, Jan 30, 2018 at 10:28:13PM -0500, William Cohen escreveu: > >> Add JSON metrics for ARM Cortex-A53 Processor > > > > Hi Will, would it be possible to you include

Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE

2018-02-01 Thread Kees Cook
On Fri, Feb 2, 2018 at 12:40 AM, Michal Hocko wrote: > On Thu 01-02-18 14:10:07, Michal Hocko wrote: > Thanks a lot to Michael Matz for his background. He has pointed me to > the following two segments from your binary[1] > LOAD 0x 0x1000 0x1000

Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE

2018-02-01 Thread Kees Cook
On Fri, Feb 2, 2018 at 12:48 AM, Michal Hocko wrote: > On Thu 01-02-18 08:43:34, Anshuman Khandual wrote: > [...] >> $dmesg | grep elf_brk >> [9.571192] elf_brk 10030328 elf_bss 1003 >> >> static int load_elf_binary(struct linux_binprm *bprm) >> - >> >> if (unlike

Re: [PATCH] xen: fix frontend driver disconnected from xenbus on removal

2018-02-01 Thread Boris Ostrovsky
On 02/01/2018 03:24 PM, Oleksandr Andrushchenko wrote: > > > On 02/01/2018 10:08 PM, Boris Ostrovsky wrote: >> On 02/01/2018 03:57 AM, Oleksandr Andrushchenko wrote: >>> From: Oleksandr Andrushchenko >>> >>> Current xenbus frontend driver removal flow first disconnects >>> the driver from xenbus a

Re: [PATCH] of: cache phandle nodes to decrease cost of of_find_node_by_phandle()

2018-02-01 Thread Frank Rowand
On 02/01/18 06:24, Rob Herring wrote: > On Wed, Jan 31, 2018 at 3:43 PM, Frank Rowand wrote: >> On 01/31/18 12:05, frowand.l...@gmail.com wrote: >>> From: Frank Rowand >>> >>> Create a cache of the nodes that contain a phandle property. Use this >>> cache to find the node for a given phandle val

Re: [PATCH 3/6] struct page: add field for vm_struct

2018-02-01 Thread Kees Cook
On Thu, Feb 1, 2018 at 11:42 PM, Igor Stoppa wrote: > On 01/02/18 02:00, Christopher Lameter wrote: >> Would it not be better to use compound page allocations here? >> page_head(whatever) gets you the head page where you can store all sorts >> of information about the chunk of memory. > > Can you

Re: linux-next: build failure after merge of the pci tree

2018-02-01 Thread Stephen Rothwell
Hi Bjorn, On Thu, 1 Feb 2018 13:00:33 -0600 Bjorn Helgaas wrote: > > I applied this resolution to the merge of lorenzo/pci/dwc. Excellent, thanks. -- Cheers, Stephen Rothwell

Re: [PATCH] of: cache phandle nodes to decrease cost of of_find_node_by_phandle()

2018-02-01 Thread Frank Rowand
On 02/01/18 06:34, Rob Herring wrote: > On Wed, Jan 31, 2018 at 2:05 PM, wrote: >> From: Frank Rowand >> >> Create a cache of the nodes that contain a phandle property. Use this >> cache to find the node for a given phandle value instead of scanning >> the devicetree to find the node. If the p

Re: Dell docking station & Dell Embedded Controller & PS/2 devices

2018-02-01 Thread Dmitry Torokhov
On Thu, Feb 1, 2018 at 11:35 AM, wrote: > > >> -Original Message- >> From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] >> Sent: Thursday, February 1, 2018 1:30 PM >> To: Pali Rohár >> Cc: Limonciello, Mario ; linux- >> in...@vger.kernel.org; linux-kernel@vger.kernel.org >> Subject

[PATCH] checkpatch.pl: Add SPDX license tag check

2018-02-01 Thread Rob Herring
Add SPDX license tag check based on the rules defined in Documentation/process/license-rules.rst. To summarize, SPDX license tags should be on the 1st line (or 2nd line in scripts) using the appropriate comment style for the file type. Cc: Andy Whitcroft Cc: Joe Perches Cc: Greg Kroah-Hartman C

[PATCH v2] KVM: x86: fix backward migration with async_PF

2018-02-01 Thread Radim Krčmář
Guests on new hypersiors might set KVM_ASYNC_PF_DELIVERY_AS_PF_VMEXIT bit when enabling async_PF, but this bit is reserved on old hypervisors, which results in a failure upon migration. To avoid breaking different cases, we are checking for CPUID feature bit before enabling the feature and nothing

Re: [PATCH v3 14/18] firmware/psci: Expose SMCCC version through psci_ops

2018-02-01 Thread Ard Biesheuvel
On 1 February 2018 at 11:46, Marc Zyngier wrote: > Since PSCI 1.0 allows the SMCCC version to be (indirectly) probed, > let's do that at boot time, and expose the version of the calling > convention as part of the psci_ops structure. > > Acked-by: Lorenzo Pieralisi > Signed-off-by: Marc Zyngier

Re: [PATCH net] net: memcontrol: charge allocated memory after mem_cgroup_sk_alloc()

2018-02-01 Thread Eric Dumazet
On Thu, Feb 1, 2018 at 12:22 PM, Roman Gushchin wrote: > On Thu, Feb 01, 2018 at 10:16:55AM -0500, David Miller wrote: >> From: Roman Gushchin >> Date: Wed, 31 Jan 2018 21:54:08 + >> >> > So I really start thinking that reverting 9f1c2674b328 >> > ("net: memcontrol: defer call to mem_cgroup_s

Re: [PATCH] Revert "extcon: axp288: Redo charger type detection a couple of seconds after probe()"

2018-02-01 Thread Chanwoo Choi
Hi Hans, Why don't modify the extcon-axp288.c after revert it? Instead, you sent the patch[1]. Are you going to send other patch for extcon-axp288.c? [1] [PATCH] extcon: int3496: process id-pin first so that we start with the right status On 2018년 01월 26일 02:10, Hans de Goede wrote: > Redoing

Re: [PATCH V5 02/17] perf mmap: fix: recalculate size for overwrite mode.

2018-02-01 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 18, 2018 at 01:26:17PM -0800, kan.li...@intel.com escreveu: > From: Kan Liang > > In perf_mmap__push(), the 'size' need to be recalculated, otherwise the > invalid data might be pushed to the record in overwrite mode. > > The issue is introduced by commit 7fb4b407a124 ("perf mmap: Do

RE: Dell docking station & Dell Embedded Controller & PS/2 devices

2018-02-01 Thread Mario.Limonciello
> -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Thursday, February 1, 2018 3:14 PM > To: Limonciello, Mario > Cc: Pali Rohár ; linux-in...@vger.kernel.org; lkml > ker...@vger.kernel.org> > Subject: Re: Dell docking station & Dell Embedded Controlle

Re: [PATCH 2/2 v5] lib: debugobjects: handle objects free in a batch outside the loop

2018-02-01 Thread Thomas Gleixner
On Fri, 2 Feb 2018, Yang Shi wrote: > /* > - * Allocate a new object. If the pool is empty, switch off the debugger. > + * Allocate a new object. Retrieve from global freelist first. If the pool is > + * empty, switch off the debugger. > * Must be called with interrupts disabled. > */ > stat

Re: [PATCH] extcon: int3496: process id-pin first so that we start with the right status

2018-02-01 Thread Chanwoo Choi
On 2018년 01월 26일 04:39, Hans de Goede wrote: > Some other drivers may be waiting for our extcon to show-up (exiting their > probe methods with -EPROBE_DEFER until we show up). > > These drivers will typically get the cable state directly after getting > the extcon, this commit changes the int3496

Re: [PATCH] checkpatch.pl: Add SPDX license tag check

2018-02-01 Thread Joe Perches
On Thu, 2018-02-01 at 15:14 -0600, Rob Herring wrote: > Add SPDX license tag check based on the rules defined in > Documentation/process/license-rules.rst. To summarize, SPDX license tags > should be on the 1st line (or 2nd line in scripts) using the appropriate > comment style for the file type. >

Re: [PATCH v11 03/10] sparc64: Add support for ADI register fields, ASIs and traps

2018-02-01 Thread Sam Ravnborg
> > #define _PAGE_E_4V _AC(0x0800,UL) /* side-Effect */ > > #define _PAGE_CP_4V _AC(0x0400,UL) /* Cacheable in > > P-Cache */ > > #define _PAGE_CV_4V _AC(0x0200,UL) /* Cacheable in > > V-Cache */ > > +/* Bit 9 is used to enable M

Re: [RFC PATCH] rootfs: force mounting rootfs as tmpfs

2018-02-01 Thread Mimi Zohar
On Thu, 2018-02-01 at 11:09 -0600, Rob Landley wrote: > On 02/01/2018 09:55 AM, Mimi Zohar wrote: > > On Thu, 2018-02-01 at 09:20 -0600, Rob Landley wrote: > > > >>> With your patch and specifying "root=tmpfs", dracut is complaining: > >>> > >>> dracut: FATAL: Don't know how to handle 'root=tmpfs'

Re: [PATCH] perf vendor events aarch64: Add JSON metrics for ARM Cortex-A53 Processor

2018-02-01 Thread William Cohen
On 02/01/2018 03:51 PM, Arnaldo Carvalho de Melo wrote: > Em Thu, Feb 01, 2018 at 10:12:59AM -0500, William Cohen escreveu: >> On 02/01/2018 09:43 AM, Arnaldo Carvalho de Melo wrote: >>> Em Tue, Jan 30, 2018 at 10:28:13PM -0500, William Cohen escreveu: Add JSON metrics for ARM Cortex-A53 Proce

Re: KASAN: use-after-free Read in tipc_group_size

2018-02-01 Thread Eric Biggers
On Mon, Jan 08, 2018 at 08:11:35PM +, Jon Maloy wrote: > > > > -Original Message- > > From: Cong Wang [mailto:xiyou.wangc...@gmail.com] > > Sent: Monday, January 08, 2018 13:44 > > To: syzbot > > Cc: David Miller ; Jon Maloy > > ; LKML ; Linux > > Kernel Network Developers ; syzkalle

RE: [PATCH V5 02/17] perf mmap: fix: recalculate size for overwrite mode.

2018-02-01 Thread Liang, Kan
> Em Thu, Jan 18, 2018 at 01:26:17PM -0800, kan.li...@intel.com escreveu: > > From: Kan Liang > > > > In perf_mmap__push(), the 'size' need to be recalculated, otherwise > > the invalid data might be pushed to the record in overwrite mode. > > > > The issue is introduced by commit 7fb4b407a124 ("p

Re: [PATCH v3 08/21] fpga: add Intel FPGA DFL PCIe device

2018-02-01 Thread Alan Tull
On Tue, Dec 5, 2017 at 11:30 PM, Wu Hao wrote: > On Tue, Dec 05, 2017 at 11:00:22AM -0600, Alan Tull wrote: >> On Mon, Dec 4, 2017 at 9:33 PM, Wu Hao wrote: >> > On Mon, Dec 04, 2017 at 01:46:59PM -0600, Alan Tull wrote: >> >> On Mon, Nov 27, 2017 at 9:15 PM, Wu Hao wrote: >> >> > On Mon, Nov 27

[PATCH v6 4/5] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL

2018-02-01 Thread KarimAllah Ahmed
[ Based on a patch from Ashok Raj ] Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for guests that will only mitigate Spectre V2 through IBRS+IBPB and will not be using a retpoline+IBPB based approach. To avoid the overhead of saving and restoring the MSR_IA32_SPEC_CTRL for g

[PATCH v6 3/5] KVM: VMX: Emulate MSR_IA32_ARCH_CAPABILITIES

2018-02-01 Thread KarimAllah Ahmed
Intel processors use MSR_IA32_ARCH_CAPABILITIES MSR to indicate RDCL_NO (bit 0) and IBRS_ALL (bit 1). This is a read-only MSR. By default the contents will come directly from the hardware, but user-space can still override it. [dwmw2: The bit in kvm_cpuid_7_0_edx_x86_features can be unconditional]

Re: [git pull] vfs.git: poll annotations

2018-02-01 Thread Al Viro
On Wed, Jan 31, 2018 at 04:46:20AM +, Al Viro wrote: > On Tue, Jan 30, 2018 at 07:19:19PM -0800, Linus Torvalds wrote: > > On Tue, Jan 30, 2018 at 7:13 PM, Al Viro wrote: > > > > > > As for the place for mangle/demangle... where would you prefer them? > > > > If we can make gcc generate ok co

[PATCH v6 2/5] KVM: x86: Add IBPB support

2018-02-01 Thread KarimAllah Ahmed
From: Ashok Raj The Indirect Branch Predictor Barrier (IBPB) is an indirect branch control mechanism. It keeps earlier branches from influencing later ones. Unlike IBRS and STIBP, IBPB does not define a new mode of operation. It's a command that ensures predicted branch targets aren't used after

[PATCH v6 0/5] KVM: Expose speculation control feature to guests

2018-02-01 Thread KarimAllah Ahmed
Add direct access to speculation control MSRs for KVM guests. This allows the guest to protect itself against Spectre V2 using IBRS+IBPB instead of a retpoline+IBPB based approach. It also exposes the ARCH_CAPABILITIES MSR which is used by Intel processors to indicate RDCL_NO and IBRS_ALL. Keep i

Re: [PATCH v3 14/21] fpga: dfl: add fpga manager platform driver for FME

2018-02-01 Thread Alan Tull
On Mon, Nov 27, 2017 at 12:42 AM, Wu Hao wrote: Hi Hao, A few comments below. Besides that, looks good. > This patch adds fpga manager driver for FPGA Management Engine (FME). It > implements fpga_manager_ops for FPGA Partial Reconfiguration function. > > Signed-off-by: Tim Whisonant > Signe

[PATCH v6 5/5] KVM: SVM: Allow direct access to MSR_IA32_SPEC_CTRL

2018-02-01 Thread KarimAllah Ahmed
[ Based on a patch from Paolo Bonzini ] ... basically doing exactly what we do for VMX: - Passthrough SPEC_CTRL to guests (if enabled in guest CPUID) - Save and restore SPEC_CTRL around VMExit and VMEntry only if the guest actually used it. Cc: Asit Mallick Cc: Arjan Van De Ven Cc: Dave Han

[PATCH v6 1/5] KVM: x86: Update the reverse_cpuid list to include CPUID_7_EDX

2018-02-01 Thread KarimAllah Ahmed
[dwmw2: Stop using KF() for bits in it, too] Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: x...@kernel.org Cc: k...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reviewed-by: Paolo Bonzini Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Ka

RE: [PATCH 1/3] tpm: cmd_ready command can be issued only after granting locality

2018-02-01 Thread Winkler, Tomas
> > On Wed, Jan 24, 2018 at 06:33:53PM +, Winkler, Tomas wrote: > > > > - pm_runtime_put(dev); > > > > + pm_runtime_put_sync(dev); > > > > > > Change to put_sync is needed so that the idle handshake gets > completed? > > > > Right. > > Since we seem to agree that your change to g

Re: [PATCH] Documentation/ABI: update infiniband sysfs interfaces

2018-02-01 Thread Jason Gunthorpe
On Thu, Feb 01, 2018 at 07:02:33PM +0530, Aishwarya Pant wrote: > Add documentation for core and hardware specific infiniband interfaces. > The descriptions have been collected from git commit logs, reading > through code and data sheets. Some drivers have incomplete doc and are > annotated with th

Re: [PATCH v11 03/10] sparc64: Add support for ADI register fields, ASIs and traps

2018-02-01 Thread Joe Perches
On Thu, 2018-02-01 at 15:39 -0500, David Miller wrote: > From: Joe Perches > Date: Thu, 01 Feb 2018 12:32:02 -0800 > > >> diff --git a/arch/sparc/include/asm/ttable.h > >> b/arch/sparc/include/asm/ttable.h > > [] > >> @@ -219,6 +219,16 @@ > >> nop;

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-01 Thread Lukas Bulwahn
Hi Greg, On Thu, 1 Feb 2018, Greg KH wrote: > On Thu, Feb 01, 2018 at 06:33:30PM +0100, Ozan Alpay wrote: > > Dear Rodrigo Vivi, Ville Syrjälä, > > > > My name is Ozan Alpay, and I am a student mentored by Lukas Bulwahn. We > > intend to use static analysis tools on the kernel source to identi

Re: suspicious RCU usage at net/tipc/bearer.c:LINE

2018-02-01 Thread Eric Biggers
On Sun, Dec 31, 2017 at 10:58:01AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 5aa90a84589282b87666f92b6c3c917c8080a9bf > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console ou

Re: [PATCH 1/3] documentation: watchdog: remove documentation of at32ap700x_wdt

2018-02-01 Thread Guenter Roeck
On Thu, Feb 01, 2018 at 08:44:10PM +, Corentin Labbe wrote: > Since at32ap700x_wdt is gone, no need to keep its documentation > > Signed-off-by: Corentin Labbe Reviewed-by: Guenter Roeck > --- > Documentation/watchdog/watchdog-parameters.txt | 5 - > 1 file changed, 5 deletions(-) >

Re: [PATCH 2/3] documentation: watchdog: remove documentation for ixp2000

2018-02-01 Thread Guenter Roeck
On Thu, Feb 01, 2018 at 08:44:11PM +, Corentin Labbe wrote: > The ixp2000 watchdog driver was removed in commit 065e8238302b ("watchdog: > remove ixp2000 driver") > > No need to keep its documentation, so remove it. > > Signed-off-by: Corentin Labbe Reviewed-by: Guenter Roeck > --- > Do

Re: [PATCH 3/3] documentation: watchdog: remove documentation of w83697hf_wdt/w83697ug_wdt

2018-02-01 Thread Guenter Roeck
On Thu, Feb 01, 2018 at 08:44:12PM +, Corentin Labbe wrote: > Since w83697hf_wdt/w83697ug_wdt watchdogs drivers were removed > in commit 7285fae9345e ("watchdog: Remove drivers for W83697HF and W83697UG") > There are no need to keep their documentation > > Signed-off-by: Corentin Labbe Revie

<    1   2   3   4   5   6   7   8   >