[PATCH] crypto: n2_core: Add empty hash export and import

2018-01-16 Thread Kamil Konieczny
Crypto framework will require async hash export/import, so add empty functions to prevent OOPS. Signed-off-by: Kamil Konieczny --- drivers/crypto/n2_core.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index 662e709812cc..80

Re: [PATCH] [RESEND net] fm10k: mark PM functions as __maybe_unused

2018-01-16 Thread Arnd Bergmann
On Tue, Jan 16, 2018 at 5:12 PM, Keller, Jacob E wrote: >> -Original Message- >> From: Arnd Bergmann [mailto:a...@arndb.de] >> Sent: Tuesday, January 16, 2018 1:14 AM >> To: Kirsher, Jeffrey T >> Cc: Arnd Bergmann ; Keller, Jacob E >> ; David S. Miller ; Kwan, >> Ngai-mint ; intel-wired-.

[PATCH] scripts: add the KDEB_ADDITIONAL_CONTROL knob to builddeb

2018-01-16 Thread Florian Margaine
This lets builders configure the resulting .deb a bit more. Especially, this lets builders choose to add additional dependencies, such as e.g. adding initramfs-tools in Debian-like, which will generate the initramfs for the newly installed package. Signed-off-by: Florian Margaine --- scripts/pa

Re: [PATCH] tcmu: Fix trailing semicolon

2018-01-16 Thread Michael Christie
On 01/16/2018 09:34 AM, Luis de Bethencourt wrote: > The trailing semicolon is an empty statement that does no operation. > It is completely stripped out by the compiler. Removing it since it doesn't do > anything. > > Signed-off-by: Luis de Bethencourt > --- > > Hi, > > After fixing the same t

Re: [PATCH] cgroup/cpuset: fix circular locking dependency

2018-01-16 Thread Tejun Heo
Hello, Prateek. On Mon, Jan 15, 2018 at 05:32:18PM +0530, Prateek Sood wrote: > My understanding of WQ_MEM_RECLAIM was that it needs to be used for > cases where memory pressure could cause deadlocks. Yes, that is the primary role; however, there are a couple places where we need it to isolate a

Re: [PATCH v2 1/3] trace-cmd: Make read_proc() to return int status via OUT arg

2018-01-16 Thread Steven Rostedt
On Tue, 16 Jan 2018 16:47:33 +0200 Vladislav Valtchev wrote: > > > > + num = strtol(buf, NULL, 10); > > > + > > > + /* strtol() returned 0: we have to check for errors */ > > > > Actually, a better comment is, why would strtol return zero and this > > not be an error? > > I don't understan

Re: [PATCH 1/1] vfio-ccw: update documentation

2018-01-16 Thread Cornelia Huck
On Tue, 16 Jan 2018 17:17:08 +0100 Halil Pasic wrote: > On 01/15/2018 11:43 AM, Cornelia Huck wrote: > > The vfio-ccw documentation comes from the cover letter of the > > original patch submission, which shows in some parts. Give it some > > love; in particular: > > > > - Remove/rework statement

[PATCH] ARM: make memzero optimization smarter

2018-01-16 Thread Arnd Bergmann
While testing with a gcc-8.0.0 snapshot, I ran into a harmless build warning: In file included from include/linux/string.h:18:0, ... from drivers/net/ethernet/hisilicon/hns/hns_ethtool.c:10: drivers/net/ethernet/hisilicon/hns/hns_ethtool.c: In function '__lb_othe

[PATCH] pinctrl: meson: axg: fix gpio_ao bank stop pin

2018-01-16 Thread Jerome Brunet
GPIO bank mistakenly stops at GPIOAO_9 while it should stop at GPIOAO_13. This gives -EINVAL if one tries to set/get anything on GPIOAO_10 to GPIOAO_13 (pull, direction, value) Correcting the bank last pin fixes this problem Fixes: e072b0f1b03a ("pinctrl: meson-axg: Add new pinctrl driver for Mes

Re: [PATCH 1/3] ARM: dts: at91: nattis: use up-to-date mtd partitions

2018-01-16 Thread Alexandre Belloni
Hi, On 16/01/2018 at 17:08:33 +0100, Peter Rosin wrote: > The nattis currently relies on the cmdline to correctly configure the > MTD partition table, and the one given in the device tree is simply > ignored. Which is fortunate, since the device tree partition table is > bonkers and does not match

Re: [PATCH 1/3] powerpc/32: Fix hugepage allocation on 8xx at hint address

2018-01-16 Thread Christophe LEROY
Le 16/01/2018 à 16:49, Aneesh Kumar K.V a écrit : Christophe Leroy writes: When an app has some regular pages allocated (e.g. see below) and tries to mmap() a huge page at a hint address covered by the same PMD entry, the kernel accepts the hint allthough the 8xx cannot handle different page

Re: [PATCH 08a/30] kexec_file: split KEXEC_VERIFY_SIG into KEXEC_SIG and KEXEC_SIG_FORCE

2018-01-16 Thread David Howells
I think that your code isn't quite right. Looking at the patched code: #ifdef CONFIG_KEXEC_SIG sig_err = arch_kexec_kernel_verify_sig(image, image->kernel_buf, image->kernel_buf_len); if (sig_err) pr_debug("kernel sign

[PATCH] crypto: ux500/hash: Add empty export and import

2018-01-16 Thread Kamil Konieczny
Crypto framework will require async hash export/import, so add empty functions to prevent OOPS. Signed-off-by: Kamil Konieczny --- drivers/crypto/ux500/hash/hash_core.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto

Re: [PATCH 00/13] replace print_symbol() with printk()-s

2018-01-16 Thread Petr Mladek
On Mon 2018-01-08 11:09:42, Sergey Senozhatsky wrote: > On (01/05/18 15:42), Petr Mladek wrote: > > > > I am all for it. But I would postpone this removal to 4.17. > > The reason is rather ugly. 13th patch is already in arc tree. > > We would need to shuffle the patch or coordinate pull requests.

Re: [RESEND PATCH 0/2] selftests: ftrace: Fix multiple-kprobe testcase

2018-01-16 Thread Shuah Khan
On 01/15/2018 11:05 AM, Steven Rostedt wrote: > > Shuah, > > Want to take these in your tree? You can add: > > Acked-by: Steven Rostedt (VMware) > > -- Steve Thanks. 2 patches in the series are now in linux-kselftest next with Steve's Acked-by thanks, -- Shuah

[PATCH] caif: reduce stack size with KASAN

2018-01-16 Thread Arnd Bergmann
When CONFIG_KASAN is set, we can use relatively large amounts of kernel stack space: net/caif/cfctrl.c:555:1: warning: the frame size of 1600 bytes is larger than 1280 bytes [-Wframe-larger-than=] This adds convenience wrappers around cfpkt_extr_head(), which is responsible for most of the stack

Re: [PATCH v6 5/5] kaslr: add kaslr_mem=nn[KMG]!ss[KMG] to avoid memory regions

2018-01-16 Thread Luiz Capitulino
On Tue, 16 Jan 2018 08:43:20 +0800 Baoquan He wrote: > On 01/15/18 at 08:49pm, Chao Fan wrote: > > Hi Luiz, > > > > I don't know if this patch is OK for you. > > Of coure you can only use kaslr_mem=nn@ss to solve the 1G huge page > > issue. Because we know the region [0,1G] is not suitable for 1

Re: [PATCH] selftests: Fix loss of test output in run_kselftests.sh

2018-01-16 Thread Shuah Khan
On 01/15/2018 11:10 PM, Michael Ellerman wrote: > Commit fbcab13d2e25 ("selftests: silence test output by default") > changed the run_tests logic as well as the logic to generate > run_kselftests.sh to redirect test output away from the console. > > As discussed on the list and at kernel summit, t

Re: [PATCH] x86/acpi: check rsdp address received via bootparams to be valid

2018-01-16 Thread Ingo Molnar
* Juergen Gross wrote: > On 16/01/18 16:46, Ingo Molnar wrote: > > > > * Juergen Gross wrote: > > > >> There seem to exist several grub2 versions trashing > >> boot_params.hdr.acpi_rsdp_addr. > >> > >> So don't just believe this address to be valid, but verify it pointing > >> to a valid RSDP

Re: [PATCH 2/3] powerpc/mm: Allow more than 16 low slices

2018-01-16 Thread Christophe LEROY
Le 16/01/2018 à 16:52, Aneesh Kumar K.V a écrit : Christophe Leroy writes: While the implementation of the "slices" address space allows a significant amount of high slices, it limits the number of low slices to 16 due to the use of a single u64 low_slices element in struct slice_mask. It

Re: [PATCH] Kbuild: suppress packed-not-aligned warning for default setting only

2018-01-16 Thread Masahiro Yamada
2018-01-11 18:22 GMT+09:00 Xiongfeng Wang : > From: Xiongfeng Wang > > gcc-8 reports many -Wpacked-not-aligned warnings. The below are some > examples. > > ./include/linux/ceph/msgr.h:67:1: warning: alignment 1 of 'struct > ceph_entity_addr' is less than 8 [-Wpacked-not-aligned] > } __attribute__

Re: [REGRESSION][v4.14.y][v4.15] x86/intel_rdt/cqm: Improve limbo list processing

2018-01-16 Thread Joseph Salisbury
On 01/16/2018 08:32 AM, Shankar, Ravi V wrote: > Vikas on vacation until end of the month. Fenghua will look into this > issue. > > On Jan 16, 2018, at 5:09 AM, Thomas Gleixner > wrote: > >> >> Vikas, Fenghua can you please look at that ASAP? >> >> On Sun, 14 Jan 2018, T

Re: [PATCH 1/3] powerpc/32: Fix hugepage allocation on 8xx at hint address

2018-01-16 Thread Aneesh Kumar K.V
On 01/16/2018 10:01 PM, Christophe LEROY wrote: diff --git a/arch/powerpc/include/asm/page_64.h b/arch/powerpc/include/asm/page_64.h index 56234c6fcd61..a7baef5bbe5f 100644 --- a/arch/powerpc/include/asm/page_64.h +++ b/arch/powerpc/include/asm/page_64.h @@ -91,30 +91,13 @@ extern u64 ppc64_

Re: [PATCH v5 01/44] dt-bindings: clock: Add new bindings for TI Davinci PLL clocks

2018-01-16 Thread David Lechner
On 01/16/2018 06:21 AM, Adam Ford wrote: On Tue, Jan 16, 2018 at 5:22 AM, Sekhar Nori wrote: Hi Adam, David, On Friday 12 January 2018 03:04 AM, Adam Ford wrote: Thanks for clarifying. I was able to make it work with the following patch: diff --git a/drivers/clk/davinci/psc-da850.c b/driver

Re: [PATCH] [v2] drm/i915: use static const array for PICK macro

2018-01-16 Thread Arnd Bergmann
On Mon, Dec 11, 2017 at 7:40 PM, Chris Wilson wrote: > Quoting Chris Wilson (2017-12-11 12:51:42) >> Quoting Arnd Bergmann (2017-12-11 12:46:22) >> > v2: rebased after a1986f4174a4 ("drm/i915: Remove unnecessary PORT3 >> > definition.") >> > --- >> > drivers/gpu/drm/i915/i915_reg.h | 18

[PATCH] mfd/viperboard: Delete an error message for a failed memory allocation in vprbrd_probe()

2018-01-16 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 16 Jan 2018 17:30:23 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/mfd/viperboard.c | 4 +--- 1 file changed, 1 insertion(+), 3 d

Re: [PATCH 1/3] powerpc/32: Fix hugepage allocation on 8xx at hint address

2018-01-16 Thread Aneesh Kumar K.V
On 01/16/2018 10:01 PM, Christophe LEROY wrote: Le 16/01/2018 à 16:49, Aneesh Kumar K.V a écrit : Christophe Leroy writes: When an app has some regular pages allocated (e.g. see below) and tries to mmap() a huge page at a hint address covered by the same PMD entry, the kernel accepts the

Re: [PATCH v2 1/7] fixdep: remove unnecessary inclusion

2018-01-16 Thread Masahiro Yamada
2018-01-11 22:05 GMT+09:00 Masahiro Yamada : > was included for ntohl(), but it was removed by > commit dee81e988674 ("fixdep: faster CONFIG_ search"). > > Signed-off-by: Masahiro Yamada > --- > Series, applied to linux-kbuild/kbuild. -- Best Regards Masahiro Yamada

Re: [PATCH v3] firmware: qcom: scm: Fix incorrect of_node_put calls in scm_init

2018-01-16 Thread Bjorn Andersson
On Fri 15 Dec 05:40 PST 2017, Loys Ollivier wrote: > When using other platform architectures, in the init of the qcom_scm > driver, of_node_put is called on /firmware if no qcom dt is found. > This results in a kernel error: Bad of_node_put() on /firmware. > > These calls to of_node_put from the

[PATCH] [v3] media: s3c-camif: fix out-of-bounds array access

2018-01-16 Thread Arnd Bergmann
While experimenting with older compiler versions, I ran into a warning that no longer shows up on gcc-4.8 or newer: drivers/media/platform/s3c-camif/camif-capture.c: In function '__camif_subdev_try_format': drivers/media/platform/s3c-camif/camif-capture.c:1265:25: error: array subscript is below

Re: [PATCH v2] powerpc/mm: Fix growth direction for hugepages mmaps with slice

2018-01-16 Thread Christophe LEROY
Le 16/01/2018 à 17:03, Aneesh Kumar K.V a écrit : Christophe Leroy writes: An application running with libhugetlbfs fails to allocate additional pages to HEAP due to the hugemap being done inconditionally as topdown mapping: mmap(0x1008, 1572864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_A

[PATCH 04/16] x86/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Move it out of the X86_64 specific processor defines so that its visible for 32bit too. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/processor-flags.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/include/asm/processor-flags.h

[PATCH 08/16] x86/pgtable/32: Allocate 8k page-tables when PTI is enabled

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Allocate a kernel and a user page-table root when PTI is enabled. Also allocate a full page per root for PAEm because otherwise the bit to flip in cr3 to switch between them would be non-constant, which creates a lot of hassle. Keep that for a later optimization. Signed-off-by

Re: [PATCH] [v2] media: s3c-camif: fix out-of-bounds array access

2018-01-16 Thread Arnd Bergmann
On Tue, Jan 16, 2018 at 4:44 PM, Sakari Ailus wrote: >> if (camif_mbus_formats[i] == mf->code) >> break; >> >> + if (i == ARRAY_SIZE(camif_mbus_formats)) >> + mf->code = camif_mbus_formats[0]; >> + > > Either else here so that the line below is

Re: [PATCH 3/6] kconfig: do not call conf_set_all_new_symbols() for (all)defconfig

2018-01-16 Thread Masahiro Yamada
Hi Ulf, 2018-01-12 23:28 GMT+09:00 Ulf Magnusson : > On Wed, Jan 10, 2018 at 7:56 AM, Masahiro Yamada > wrote: >> (all)defconfig does not need to call conf_set_all_new_symbols() because >> conf_write() calculates all symbols based on their default unless they >> have been user-defined. >> >> conf

[PATCH 06/16] x86/mm/ldt: Reserve high address-space range for the LDT

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Reserve 2MB/4MB of address space for mapping the LDT to user-space. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable_32_types.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/pgtable_32_types.h b/arch/x86/include/asm

[PATCH 09/16] x86/mm/pti: Clone CPU_ENTRY_AREA on PMD level on x86_32

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Cloning on the P4D level would clone the complete kernel address space into the user-space page-tables for PAE kernels. Cloning on PMD level is fine for PAE and legacy paging. Signed-off-by: Joerg Roedel --- arch/x86/mm/pti.c | 17 + 1 file changed, 17 insert

Re: [PATCH v2 1/2] nvme: add tracepoint for nvme_setup_cmd

2018-01-16 Thread Christoph Hellwig
> + trace_seq_printf(p, "slba=%llu, length=%u, control=0x%x, dsmgmt=%u, > reftag=%u", Overly long line. > + (unsigned long long)le64_to_cpu(rw.slba), u64 now always is an unsigned long long, no need for the cast. > + le16_to_cpu(rw.length), le16_to

[PATCH 12/16] x86/mm/pae: Populate the user page-table with user pgd's

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel This is the last part of the PAE page-table setup for PAE before we can add the CR3 switch to the entry code. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable-3level.h | 3 +++ arch/x86/mm/pti.c | 7 +++ 2 files changed, 10 insertions(+)

Re: [PATCH v16 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-16 Thread Noralf Trønnes
Den 16.01.2018 11.31, skrev Meghana Madhyastha: Add helper functions backlight_enable and backlight_disable to enable/disable a backlight device. These helper functions can then be used by different drm and tinydrm drivers to avoid repetition of code and also to enforce a uniform and consistent

Re: [PATCH v2 2/2] nvme: add tracepoint for nvme_complete_rq

2018-01-16 Thread Christoph Hellwig
> void nvme_complete_rq(struct request *req) > { > + trace_nvme_complete_rq(nvme_req(req), req->tag); > + Just pass the struct request?

[PATCH 14/16] x86/mm/legacy: Populate the user page-table with user pgd's

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Also populate the user-spage pgd's in the user page-table. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable-2level.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/pgtable-2level.h b/arch/x86/include/asm/pgtable-2level.h index 685ffe

[PATCH 01/16] x86/entry/32: Rename TSS_sysenter_sp0 to TSS_sysenter_stack

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel The stack addresss doesn't need to be stored in tss.sp0 if we switch manually like on sysenter. Rename the offset so that it still makes sense when we its location. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S| 2 +- arch/x86/kernel/asm-offsets_32.c | 2

[RFC PATCH 00/16] PTI support for x86-32

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Hi, here is my current WIP code to enable PTI on x86-32. It is still in a pretty early state, but it successfully boots my KVM guest with PAE and with legacy paging. The existing PTI code for x86-64 already prepares a lot of the stuff needed for 32 bit too, thanks for that to

Re: [PATCH v16 02/10] drm/tinydrm: Convert tinydrm_enable/disable_backlight to backlight_enable/disable

2018-01-16 Thread Noralf Trønnes
Den 16.01.2018 11.32, skrev Meghana Madhyastha: Remove tinydrm_enable/disable_backlight and let the callers call the more generic backlight_enable/disable helpers Signed-off-by: Meghana Madhyastha This patch needs to be rebased on some recent changes to mipi-dbi. Reviewed-by: Noralf Trønnes

[PATCH 13/16] x86/mm/pti: Add an overflow check to pti_clone_pmds()

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel The addr counter will overflow if we clone the last PMD of the address space, resulting in an endless loop. Check for that and bail out of the loop when it happens. Signed-off-by: Joerg Roedel --- arch/x86/mm/pti.c | 4 1 file changed, 4 insertions(+) diff --git a/arc

Re: [PATCH v5 10/44] clk: davinci: New driver for davinci PSC clocks

2018-01-16 Thread David Lechner
On 01/16/2018 05:03 AM, Sekhar Nori wrote: On Monday 08 January 2018 07:47 AM, David Lechner wrote: This adds a new driver for mach-davinci PSC clocks. This is porting the code from arch/arm/mach-davinci/psc.c to the common clock framework and is converting it to use regmap to simplify the code.

[PATCH 2/3] KVM: VMX: use same MSR bitmaps for 32-/64-bit modes

2018-01-16 Thread Paolo Bonzini
KVM has a small optimization where it doesn't save/restore MSR_KERNEL_GS_BASE if the guest is in 32-bit mode. However, this complicates the code noticeably by doubling the number of possible MSR bitmaps. In addition, pt_disable_intercept_for_msr was only updating the "basic" MSR bitmap, because x

Re: [PATCH] [v3] media: s3c-camif: fix out-of-bounds array access

2018-01-16 Thread Sakari Ailus
On Tue, Jan 16, 2018 at 05:47:24PM +0100, Arnd Bergmann wrote: > While experimenting with older compiler versions, I ran > into a warning that no longer shows up on gcc-4.8 or newer: > > drivers/media/platform/s3c-camif/camif-capture.c: In function > '__camif_subdev_try_format': > drivers/media/p

Re: [GIT PULL] isolation: 1Hz residual tick offloading v3

2018-01-16 Thread Luiz Capitulino
On Tue, 16 Jan 2018 16:41:00 +0100 Frederic Weisbecker wrote: > On Fri, Jan 12, 2018 at 02:18:13PM -0500, Luiz Capitulino wrote: > > On Thu, 4 Jan 2018 05:25:32 +0100 > > Frederic Weisbecker wrote: > > > > > Ingo, > > > > > > Please pull the sched/0hz branch that can be found at: > > > > >

[PATCH 07/16] x86/mm: Move two more functions from pgtable_64.h to pgtable.h

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel These two functions are required for PTI on 32 bit: * pgdp_maps_userspace() * pgd_large() Also re-implement pgdp_maps_userspace() so that it will work on 64 and 32 bit kernels. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable.h| 16 +

Re: [PATCH 06/16] x86/mm/ldt: Reserve high address-space range for the LDT

2018-01-16 Thread Peter Zijlstra
On Tue, Jan 16, 2018 at 05:36:49PM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > Reserve 2MB/4MB of address space for mapping the LDT to > user-space. LDT is 64k, we need 2 per CPU, and NR_CPUS <= 64 on 32bit, that gives 64K*2*64=8M > 2M.

[PATCH 0/3] KVM: VMX: per-VCPU MSR bitmaps

2018-01-16 Thread Paolo Bonzini
This can be useful for both processor tracing and IBRS/IBPB MSRs. MSR bitmaps are moved into struct loaded_vmcs so that we keep two separate bitmaps for L1 and L2 guests. The first patch introduces an auxiliary function to allocate a struct loaded_vmcs, the second simplifies a bit the handling of

Re: [PATCH 1/3] powerpc/32: Fix hugepage allocation on 8xx at hint address

2018-01-16 Thread Christophe LEROY
Le 16/01/2018 à 17:43, Aneesh Kumar K.V a écrit : On 01/16/2018 10:01 PM, Christophe LEROY wrote: Le 16/01/2018 à 16:49, Aneesh Kumar K.V a écrit : Christophe Leroy writes: When an app has some regular pages allocated (e.g. see below) and tries to mmap() a huge page at a hint address c

[PATCH 3/3] KVM: VMX: make MSR bitmaps per-VCPU

2018-01-16 Thread Paolo Bonzini
Place the MSR bitmap in struct loaded_vmcs, and update it in place every time the x2apic or APICv state can change. This does not sound too efficient, but (with the exception of nested virt) it's rare and the loop can handle 64 MSRs per iteration, in a similar fashion as nested_vmx_prepare_msr_bit

Re: [PATCH 4/5] sched/isolation: Residual 1Hz scheduler tick offload

2018-01-16 Thread Luiz Capitulino
On Tue, 16 Jan 2018 16:57:45 +0100 Frederic Weisbecker wrote: > On Fri, Jan 12, 2018 at 02:22:58PM -0500, Luiz Capitulino wrote: > > On Thu, 4 Jan 2018 05:25:36 +0100 > > Frederic Weisbecker wrote: > > > > > When a CPU runs in full dynticks mode, a 1Hz tick remains in order to > > > keep the

Re: staging: lustre: lnet: convert selftest to use workqueues

2018-01-16 Thread Greg Kroah-Hartman
On Tue, Jan 16, 2018 at 03:59:58PM +, Colin Ian King wrote: > Hi, > > CoverityScan detected a couple of issues, one of which was introduced > with the following commit: > > commit 6106c0f82481e686b337ee0c403821fb5c3c17ef > Author: NeilBrown > Date: Thu Jan 11 15:06:40 2018 +1100 > > Cover

Re: [PATCH 8/8] staging: fsl-mc: Convert documentation to rst format

2018-01-16 Thread Greg KH
On Tue, Jan 16, 2018 at 03:40:18PM +, Ruxandra Ioana Ciocoi Radulescu wrote: > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Tuesday, January 16, 2018 5:14 PM > > To: Bogdan Purcareata > > Cc: Laurentiu Tudor ; Ruxandra Ioana Ciocoi > > Radulescu

Re: kmem_cache_attr (was Re: [PATCH 04/36] usercopy: Prepare for usercopy whitelisting)

2018-01-16 Thread Christopher Lameter
On Tue, 16 Jan 2018, Matthew Wilcox wrote: > I think that's a good thing! /proc/slabinfo really starts to get grotty > above 16 bytes. I'd like to chop off "_cache" from the name of every > single slab! If ext4_allocation_context has to become ext4_alloc_ctx, > I don't think we're going to lose

[PATCH 10/16] x86/mm/pti: Populate valid user pud entries

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel With PAE paging we don't have PGD and P4D levels in the page-table, instead the PUD level is the highest one. In PAE page-tables at the top-level most bits we usually set with _KERNPG_TABLE are reserved, resulting in a #GP when they are loaded by the processor. Work around th

[PATCH 1/3] KVM: VMX: introduce alloc_loaded_vmcs

2018-01-16 Thread Paolo Bonzini
Group together the calls to alloc_vmcs and loaded_vmcs_init. Soon we'll also allocate an MSR bitmap there. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx.c | 36 ++-- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86

Re: [PATCH] staging: lustre: Fix avoid intensive reconnecting for ko2iblnd patch

2018-01-16 Thread Greg Kroah-Hartman
On Tue, Jan 16, 2018 at 03:01:49PM +, Eremin, Dmitry wrote: > In the original commit 4d99b2581effe115376402e710fbcb1c3c073769 Please use the documented way to write this: 4d99b2581eff ("staging: lustre: avoid intensive reconnecting for ko2iblnd") > was missed one hunk. Added it now t

Re: [PATCH] crypto: mxs-dcp: Add empty hash export and import

2018-01-16 Thread Marek Vasut
On 01/16/2018 05:16 PM, Kamil Konieczny wrote: > Crypto framework will require async hash export/import, so add empty > functions to prevent OOPS. Shouldn't this be handled on the subsystem level with some if (foo->bar) foo->bar(); instead? > Signed-off-by: Kamil Konieczny > --- > drivers/cr

[PATCH 03/16] x86/entry/32: Leave the kernel via the trampoline stack

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Switch back to the trampoline stack before returning to userspace. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S| 58 arch/x86/kernel/asm-offsets_32.c | 1 + 2 files changed, 59 insertions(+) diff --git a/arch/x8

Re: [PATCH v16 03/10] video: backlight: Add of_find_backlight helper in backlight.c

2018-01-16 Thread Noralf Trønnes
Den 16.01.2018 11.33, skrev Meghana Madhyastha: Add of_find_backlight, a helper function which is a generic version of tinydrm_of_find_backlight that can be used by other drivers to avoid repetition of code and simplify things. Signed-off-by: Meghana Madhyastha --- Changes in v16: -Add comment

[PATCH 15/16] x86/entry/32: Switch between kernel and user cr3 on entry/exit

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Add the cr3 switches between the kernel and the user page-table when PTI is enabled. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/x86/entry/entry_32.S b/arch/x86/e

[PATCH 05/16] x86/pgtable: Move pgdp kernel/user conversion functions to pgtable.h

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Make them available on 32 bit and clone_pgd_range() happy. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable.h| 49 +++ arch/x86/include/asm/pgtable_64.h | 49 --- 2 files changed, 49 inse

[PATCH 16/16] x86/pti: Allow CONFIG_PAGE_TABLE_ISOLATION for x86_32

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Allow PTI to be compiled on x86_32. Signed-off-by: Joerg Roedel --- security/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Kconfig b/security/Kconfig index b0cb9a5f9448..93d85fda0f54 100644 --- a/security/Kconfig +++ b/security/Kconfig

[PATCH 11/16] x86/mm/pgtable: Move pti_set_user_pgd() to pgtable.h

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel There it is also usable from 32 bit code. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable.h| 23 +++ arch/x86/include/asm/pgtable_64.h | 21 - 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/arch/x86/i

Re: what trees/branches to test on syzbot

2018-01-16 Thread Guenter Roeck
On Tue, Jan 16, 2018 at 1:58 AM, Dmitry Vyukov wrote: > On Tue, Jan 16, 2018 at 10:45 AM, Guenter Roeck wrote: >> On Mon, Jan 15, 2018 at 11:51 PM, Dmitry Vyukov wrote: >>> Hello, >>> >>> Several people proposed that linux-next should not be tested on >>> syzbot. While some people suggested that

Re: [PATCH 1/3] powerpc/32: Fix hugepage allocation on 8xx at hint address

2018-01-16 Thread Christophe LEROY
Le 16/01/2018 à 17:41, Aneesh Kumar K.V a écrit : On 01/16/2018 10:01 PM, Christophe LEROY wrote: diff --git a/arch/powerpc/include/asm/page_64.h b/arch/powerpc/include/asm/page_64.h index 56234c6fcd61..a7baef5bbe5f 100644 --- a/arch/powerpc/include/asm/page_64.h +++ b/arch/powerpc/includ

[PATCH] Carrier detect ok, don't turn off negotiation

2018-01-16 Thread Denis Du
In drivers/net/wan/hdlc_ppp.c, some noise on physical line can cause the carrier detect still ok, but the protocol will fail. So if carrier detect ok, don't turn off protocol negotiation This patch is against the kernel version Linux 4.15-rc8From b5902a4dfc709b62b704997ab64f31c9ef69a6db Mon Sep

[PATCH 02/16] x86/entry/32: Enter the kernel via trampoline stack

2018-01-16 Thread Joerg Roedel
From: Joerg Roedel Use the sysenter stack as a trampoline stack to enter the kernel. The sysenter stack is already in the cpu_entry_area and will be mapped to userspace when PTI is enabled. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S| 89 ++

Re: [PATCH v16 04/10] drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight

2018-01-16 Thread Noralf Trønnes
Den 16.01.2018 11.34, skrev Meghana Madhyastha: Remove tinydrm_of_find_backlight from tinydrm-helpers.c. We now have a generic of_find_backlight defined in backlight.c. Let the callers of tinydrm_of_find_backlight call of_find_backlight. Signed-off-by: Meghana Madhyastha This patch needs reb

Re: [PATCH] x86/pti: Fix !PCID and sanitize defines

2018-01-16 Thread Greg KH
On Tue, Jan 16, 2018 at 04:59:37PM +0100, Jiri Kosina wrote: > On Tue, 16 Jan 2018, Ingo Molnar wrote: > > > Thanks for the confirmation. Now the fix is upstream and Greg queued it > > up as well earlier today, so this fix is part of the next -stable > > iteration as well. > > Greg, please note

Re: [PATCH 00/10] perf tools: Add support for CoreSight trace decoding

2018-01-16 Thread Kim Phillips
On Tue, 16 Jan 2018 12:35:26 + Mike Leach wrote: > Hi, > > On 11 January 2018 at 22:18, Mathieu Poirier > wrote: > > On 11 January 2018 at 14:49, Kim Phillips wrote: > >> On Thu, 11 Jan 2018 14:11:00 -0700 > >> Mathieu Poirier wrote: > >> > >>> On 11 January 2018 at 10:28, Kim Phillips

[PATCH] [RESEND] spufs: use timespec64 for timestamps

2018-01-16 Thread Arnd Bergmann
The switch log prints the tv_sec portion of timespec as a 32-bit number, while overflows in 2106. It also uses the timespec type, which is safe on 64-bit architectures, but deprecated because it causes overflows in 2038 elsewhere. This changes it to timespec64 and printing a 64-bit number for cons

Re: [PATCH v2] vfio-ccw: update documentation

2018-01-16 Thread Halil Pasic
On 01/16/2018 05:12 PM, Cornelia Huck wrote: > The vfio-ccw documentation comes from the cover letter of the > original patch submission, which shows in some parts. Give it some > love; in particular: > > - Remove/rework statements that make sense in a cover letter, but not > in regular docume

[PATCH] [RESEND] powerpc: mpic_timer: avoid struct timeval

2018-01-16 Thread Arnd Bergmann
In an effort to remove all instances of 'struct timeval' from the kernel, I'm changing the powerpc mpic_timer interface to use plain seconds instead. There is only one user of this interface, and that doesn't use the microseconds portion, so the code gets noticeably simpler in the process. Signed-

RE: [PATCH v2] x86/microcode/intel: Extend BDW late-loading with LLC size check

2018-01-16 Thread Luck, Tony
>> I'm not taking this: this looks like a bunch of voodoo magic numbers. >> Please get someone from Intel to explain first. > > Tony, could you clarify this? Jia, I'll look for someone who can confirm the 2.5MB/core detail. -Tony

Re: [PATCH] perf:util:dso: Using O_CLOEXEC in do_open

2018-01-16 Thread Wang YanQing
On Mon, Jan 15, 2018 at 10:45:06AM +0100, Jiri Olsa wrote: > On Mon, Jan 15, 2018 at 01:04:48PM +0800, Wang YanQing wrote: > > I meet strange behavior with below commands on my gentoo box: > > 1:perf kmem record > > 2:CTRL-C to stop 1 > > 3:perf report > > 4:"Enter", "Enter", "Run scripts for all s

Re: [PATCH] perf report: Provide libtraceevent with a kernel symbol resolver

2018-01-16 Thread Wang YanQing
On Mon, Jan 15, 2018 at 11:06:11AM +0100, Jiri Olsa wrote: > On Mon, Jan 15, 2018 at 12:47:32PM +0800, Wang YanQing wrote: > > So that beautifiers wanting to resolve kernel function addresses to > > names can do its work, and when we use "perf report" for output of > > "perf kmem record", we will g

Re: [PATCH v16 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-16 Thread Noralf Trønnes
Den 16.01.2018 11.34, skrev Meghana Madhyastha: Add devm_of_find_backlight and the corresponding release function because some drivers use devres versions of functions for acquiring device resources. Signed-off-by: Meghana Madhyastha checkpatch complains: -:26: WARNING: Block comments should

Re: [PATCH v16 06/10] drm/tinydrm: Call devres version of of_find_backlight

2018-01-16 Thread Noralf Trønnes
Den 16.01.2018 11.34, skrev Meghana Madhyastha: Call devm_of_find_backlight (the devres version) instead of of_find_backlight. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tinydrm

Re: what trees/branches to test on syzbot

2018-01-16 Thread Eric W. Biederman
Dmitry Vyukov writes: > On Tue, Jan 16, 2018 at 10:45 AM, Guenter Roeck wrote: >> On Mon, Jan 15, 2018 at 11:51 PM, Dmitry Vyukov wrote: >>> Hello, >>> >>> Several people proposed that linux-next should not be tested on >>> syzbot. While some people suggested that it needs to test as many >>> t

[PATCH] PCI: Add Marvell 9128 to DMA alias quirks

2018-01-16 Thread Alex Williamson
This is the original device generating bug 42679, from which many other Marvell DMA alias quirks have been sourced, but we didn't have positive confirmation of the fix on 9128 until now. Link: https://bugzilla.kernel.org/show_bug.cgi?id=42679 Link: https://www.spinics.net/lists/kvm/msg161459.html

Re: [PATCH] bnxt_en: don't update cpr->rx_bytes with uninitialized length len

2018-01-16 Thread Michael Chan
On Tue, Jan 16, 2018 at 2:22 AM, Colin King wrote: > From: Colin Ian King > > Currently in the cases where cmp_type == CMP_TYPE_RX_L2_TPA_START_CMP or > CMP_TYPE_RX_L2_TPA_END_CMP the exit path updates cpr->rx_bytes with an > uninitialized length len. Fix this by adding a new exit path that does

Re: [PATCH v16 09/10] drm/panel: Use of_find_backlight helper

2018-01-16 Thread Noralf Trønnes
Den 16.01.2018 11.36, skrev Meghana Madhyastha: Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 10 +++--- drivers/gpu/drm/panel

Re: [PATCH 5/8] [media] omap3isp: support 64-bit version of omap3isp_stat_data

2018-01-16 Thread Arnd Bergmann
On Tue, Dec 5, 2017 at 1:41 AM, Laurent Pinchart wrote: > Hi Arnd, > > Thank you for the patch. > > I'll try to review this without too much delay. In the meantime, I'm CC'ing > Sakari Ailus who might be faster than me :-) Hi Laurent and Sakari, I stumbled over this while cleaning out my backlog

Re: [PATCH] ARM: make memzero optimization smarter

2018-01-16 Thread Nicolas Pitre
On Tue, 16 Jan 2018, Arnd Bergmann wrote: > While testing with a gcc-8.0.0 snapshot, I ran into a harmless > build warning: > > In file included from include/linux/string.h:18:0, >... > from drivers/net/ethernet/hisilicon/hns/hns_ethtool.c:10: > drivers/net/ethern

Re: [PATCH v16 07/10] drm/panel: Use backlight_enable/disable helpers

2018-01-16 Thread Noralf Trønnes
Den 16.01.2018 11.35, skrev Meghana Madhyastha: Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/panel/panel-innolux-p079

Re: [PATCH 06/16] x86/mm/ldt: Reserve high address-space range for the LDT

2018-01-16 Thread Joerg Roedel
Hi Peter, On Tue, Jan 16, 2018 at 05:52:13PM +0100, Peter Zijlstra wrote: > On Tue, Jan 16, 2018 at 05:36:49PM +0100, Joerg Roedel wrote: > > From: Joerg Roedel > > > > Reserve 2MB/4MB of address space for mapping the LDT to > > user-space. > > LDT is 64k, we need 2 per CPU, and NR_CPUS <= 64 o

[PATCH v2] net/core: Increase default optmem_max limit

2018-01-16 Thread Björn 'besser82' Esser

[PATCH] pps: parport: use timespec64 instead of timespec

2018-01-16 Thread Arnd Bergmann
getnstimeofday() is deprecated, so I'm converting this to use ktime_get_real_ts64() as a safe replacement. I considered using ktime_get_real() instead, but since the algorithm here depends on the exact timing, I decided to introduce fewer changes and leave the code that determines the nanoseconds s

[PATCH] nfs/super: check NFS_CAP_ACLS instead of the NFS version

2018-01-16 Thread Max Kellermann
This sets MS_POSIXACL only if ACL support is really enabled, instead of always setting MS_POSIXACL if the NFS protocol version theoretically supports ACL. The code comment says "We will [apply the umask] ourselves", but that happens in posix_acl_create() only if the kernel has POSIX ACL support.

Re: [PATCH v5 11/44] clk: davinci: Add platform information for TI DA830 PSC

2018-01-16 Thread David Lechner
On 01/16/2018 07:38 AM, Sekhar Nori wrote: On Monday 08 January 2018 07:47 AM, David Lechner wrote: This adds platform-specific declarations for the PSC clocks on TI DA830/ OMAP-L137/AM17XX SoCs. Signed-off-by: David Lechner --- drivers/clk/davinci/Makefile| 1 + drivers/clk/davinci/ps

Re: [RFC 0/6] Enlightened VMCS support for KVM on Hyper-V

2018-01-16 Thread Radim Krčmář
2018-01-15 18:30+0100, Vitaly Kuznetsov: > Early RFC. I'll refer to this patchset in my DevConf/FOSDEM > presentations. > > When running nested KVM on Hyper-V it's possible to use so called > 'Enlightened VMCS' and do normal memory reads/writes instead of > doing VMWRITE/VMREAD instructions. Tests

Re: [PATCH v2] net/core: Increase default optmem_max limit

2018-01-16 Thread Björn 'besser82' Esser
With the new Linux Kernel Crypto API User Space Interface and its underlying AF_ALG socket, the current default value for `net.core.optmem_max` can be exhausted pretty quick when using asynchronous IO; on 32 bit systems it is not even enough for sending about 10 IOVECs at once to the socket interfa

Re: [PATCH v3 1/3] trace-cmd: Make read_proc() to return int status via OUT arg

2018-01-16 Thread Steven Rostedt
On Tue, 16 Jan 2018 09:47:42 +0200 "Vladislav Valtchev (VMware)" wrote: > + errno = 0; > + > + /* Read an integer from buf ignoring any non-digit trailing characters. > */ > + num = strtol(buf, NULL, 10); > + > + /* strtol() returned 0: we have to check for errors */ > + if (

[PATCH] [RESEND] vmwgfx: use monotonic event timestamps

2018-01-16 Thread Arnd Bergmann
DRM_VMW_EVENT_FENCE_SIGNALED (struct drm_vmw_event_fence) and DRM_EVENT_VBLANK (struct drm_event_vblank) pass timestamps in 32-bit seconds/microseconds format. As of commit c61eef726a78 ("drm: add support for monotonic vblank timestamps"), other DRM drivers use monotonic times for drm_event_vblank

  1   2   3   4   5   6   7   8   9   10   >