[GIT PULL 23/25] lightnvm: pblk: print instance name on instance info

2018-01-05 Thread Matias Bjørling
From: Javier González Add the instance name to the information printed out on target creation. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/lightnvm/pblk-init.c b/dr

[GIT PULL 25/25] lightnvm: pblk: refactor pblk_ppa_comp function

2018-01-05 Thread Matias Bjørling
Shorten function to simply return the value of the if statement. Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h index 8af374e..8c357fb 100644 --- a/drivers/lightn

[GIT PULL 21/25] lightnvm: pblk: ensure kthread alloc. before kicking it

2018-01-05 Thread Matias Bjørling
From: Javier González When creating the write thread, ensure that the kthread has been created before initializing the timer responsible from kicking it. Otherwise, if the kthread creation fails or gets killed from used space, we risk kicking an empty thread structure. Also, since the kthread cr

[GIT PULL 20/25] lightnvm: pblk: do not log recovery read errors

2018-01-05 Thread Matias Bjørling
From: Javier González On scan recovery, reads can fail. This happens because the first page for each line is read in order to determined if the line has been used (and thus needs to be recovered), or not. This can lead to "empty page" read errors. Since these errors are normal, do not log them,

[GIT PULL 18/25] lightnvm: set target over-provision on create ioctl

2018-01-05 Thread Matias Bjørling
From: Javier González Allow to set the over-provision percentage on target creation. In case that the value is not provided, fall back to the default value set by the target. In pblk, set the default OP to 11% of the total size of the device Signed-off-by: Javier González Signed-off-by: Hans H

Re: [PATCH 2/7] x86/enter: MACROS to set/clear IBRS

2018-01-05 Thread Thomas Gleixner
On Thu, 4 Jan 2018, Tim Chen wrote: > On 01/04/2018 02:16 PM, Peter Zijlstra wrote: > >> + movl\save_reg, %eax > >> + wrmsr > >> +10: > >> +.endm > > > > Should not all those 10 things look like .Ldone_\@ or something ? > > > > They are removed in patch 6 with .Ldone_\@ So we need to deve

[GIT PULL 12/25] lightnvm: pblk: refactor emeta consistency check

2018-01-05 Thread Matias Bjørling
From: Hans Holmberg Currently pblk_recov_get_lba list does two separate things: it checks the consistency of the emeta and extracts the lba list. This patch separates the consistency check to make the code easier to read and to prepare for version checks of the line emeta persistent data format

[GIT PULL 19/25] lightnvm: pblk: ignore high ecc errors on recovery

2018-01-05 Thread Matias Bjørling
From: Javier González On recovery, do not stop L2P recovery if reads report high ECC error as the data is still available. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-recovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

[GIT PULL 17/25] lightnvm: pblk: use exact free block counter in RL

2018-01-05 Thread Matias Bjørling
From: Javier González Until now, pblk's rate-limiter has used a heuristic to reserve space for GC I/O given that the over-provision area was fixed. In preparation for allowing to define the over-provision area on target creation, define a dedicated free_block counter in the rate-limiter to track

Re: [PATCH v4 00/14] Modernization and fixes for NuBus subsystem

2018-01-05 Thread Geert Uytterhoeven
Hi Finn, On Thu, Dec 14, 2017 at 4:16 AM, Finn Thain wrote: > This series begins with cleanups and fixes for the NuBus subsystem and > finishes with a patch to add support for the Linux Driver Model. > A separate series (which requires this one) modernizes NuBus drivers. Thanks for your series!

[GIT PULL 16/25] lightnvm: pblk: remove pblk_gc_stop

2018-01-05 Thread Matias Bjørling
From: Hans Holmberg pblk_gc_stop just sets pblk->gc->gc_active to zero, ignoring the flush parameter. This is plain confusing, so remove the function and set the gc active flag at the call points instead. Signed-off-by: Hans Holmberg Signed-off-by: Javier González Signed-off-by: Matias Bjørlin

[GIT PULL 14/25] lightnvm: pblk: clear flush point on completed writes

2018-01-05 Thread Matias Bjørling
From: Hans Holmberg Move completion of syncs and clearing of flush points to the write completion path - this ensures that the data has been comitted to the media before completing bios containing syncs. Signed-off-by: Hans Holmberg Signed-off-by: Javier González Signed-off-by: Matias Bjørling

[GIT PULL 15/25] lightnvm: pblk: prevent premature sync point resets

2018-01-05 Thread Matias Bjørling
From: Hans Holmberg Unless we protect flush pointer updates with a lock, we risk resetting new flush points before we've synced all sectors up to that point. This patch protects new flush points with the same spin lock that is being held when advancing the sync pointer and resetting completed fl

[GIT PULL 11/25] lightnvm: pblk: remove pblk_for_each_lun helper

2018-01-05 Thread Matias Bjørling
From: Javier González Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h index d68a94d..1dbb0bf 100644 --- a/drivers/lightnvm/pblk.h +++ b/drivers/lig

[GIT PULL 03/25] lightnvm: use internal pblk methods

2018-01-05 Thread Matias Bjørling
Now that rrpc has been removed, the only users of the ppa helpers is pblk. However, pblk already defines similar functions. Switch pblk to use the internal ones, and remove the generic ppa helpers. Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-map.c | 2 +- drivers/lightnvm/pblk-w

[GIT PULL 09/25] lightnvm: guarantee target unique name across devs.

2018-01-05 Thread Matias Bjørling
From: Javier González Until now, target unique naming is only guaranteed per device. This is ok from a lightnvm perspective, but not from a sysfs one, since groups will collide regardless of the underlying device. Check that names are unique across all lightnvm-capable devices. Signed-off-by: J

[GIT PULL 10/25] lightnvm: pblk: compress and reorder helper functions

2018-01-05 Thread Matias Bjørling
From: Javier González Through time, we have generated some redundant helper functions. Refactor them to eliminate redundant and unnecessary code. Also, reorder them to improve readability Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-core.c | 24

[GIT PULL 08/25] lightnvm: refactor target type lookup

2018-01-05 Thread Matias Bjørling
From: Javier González Refactor target type lookup to use/not use locks explicitly instead of using a hidden parameter to make the function locking. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 30 +- 1 file changed, 17

[GIT PULL 05/25] lightnvm: remove unnecessary field from nvm_rq

2018-01-05 Thread Matias Bjørling
From: Javier González Remove the wait filed in nvm_rq. It is not used anymore, as targets rely on the functionality provided by the LightNVM subsystem when sending sync I/O. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- include/linux/lightnvm.h | 1 - 1 file changed, 1 del

[GIT PULL 04/25] lightnvm: remove hybrid ocssd 1.2 support

2018-01-05 Thread Matias Bjørling
Now that rrpc have been removed. Also remove the hybrid 1.2 support from the core. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 141 --- drivers/nvme/host/lightnvm.c | 96 - include/linux/lightnvm.h |

[GIT PULL 07/25] lightnvm: make geometry structures 2.0 ready

2018-01-05 Thread Matias Bjørling
From: Matias Bjørling Prepare for the 2.0 revision by adapting the geometry structures to coexist with the 1.2 revision. Signed-off-by: Matias Bjørling Reviewed-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 89 +++---

[GIT PULL 06/25] lightnvm: remove lower page tables

2018-01-05 Thread Matias Bjørling
The lower page table is unused. All page tables reported by 1.2 devices are all reporting a sequential 1:1 page mapping. This is also not used going forward with the 2.0 revision. Signed-off-by: Matias Bjørling Reviewed-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/co

[GIT PULL 01/25] null_blk: remove lightnvm support

2018-01-05 Thread Matias Bjørling
With rrpc to be removed, the null_blk lightnvm support is no longer functional. Remove the lightnvm implementation and maybe add it to another module in the future if someone takes on the challenge. Signed-off-by: Matias Bjørling --- drivers/block/null_blk.c | 220 +--

Re: [PATCH 12/12] power: reset: account for const type of of_device_id.data

2018-01-05 Thread Alexandre Belloni
On 02/01/2018 at 14:28:08 +0100, Julia Lawall wrote: > This driver creates a const structure that it stores in the data > field of an of_device_id array. > > Add const to the declaration of the location that receives a value > from the data field to ensure that the compiler will continue to check

Re: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Greg KH
On Thu, Jan 04, 2018 at 10:01:52PM +0100, Yves-Alexis Perez wrote: > On Thu, 2018-01-04 at 11:10 -0800, Tim Chen wrote: > > > Are there plans to make the corresponding microcode support available? > > > > > > > The microcode patches should be released soon. > > In the meantime, Lenovo has starte

Re: [PATCH] x86/acpi/cstate delete some unuseful operations

2018-01-05 Thread Rafael J. Wysocki
On Friday, December 22, 2017 12:55:04 PM CET TimGuo wrote: > Unuseful cache flush operations which will be executed by ucode when entering > C3 will > cause larger C3 enter latency. And the bus master disable operation is not > need for > centaur platforms. My attempts to make some sense of the

Re: [PATCH 7/7] x86/microcode: Recheck IBRS features on microcode reload

2018-01-05 Thread Greg KH
On Thu, Jan 04, 2018 at 07:50:33PM +0100, Borislav Petkov wrote: > On Thu, Jan 04, 2018 at 07:34:30PM +0100, Andrea Arcangeli wrote: > > void spec_ctrl_rescan_cpuid(void) > > { > > int cpu; > > > > if (use_ibp_disable) > > return; > > mutex_lock(&spec_ctrl_mutex); > > i

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-05 Thread Greg Kroah-Hartman
On Fri, Jan 05, 2018 at 02:03:17PM +0100, Mike Galbraith wrote: > On Fri, 2018-01-05 at 13:17 +0100, Greg Kroah-Hartman wrote: > > On Fri, Jan 05, 2018 at 05:37:54AM +0100, Mike Galbraith wrote: > > > On Thu, 2018-01-04 at 15:45 -0800, Guenter Roeck wrote: > > > > > > > > The crash part of this pr

Re: [PATCH 3/7] x86/enter: Use IBRS on syscall and interrupts

2018-01-05 Thread Thomas Gleixner
On Thu, 4 Jan 2018, Tim Chen wrote: > Set IBRS upon kernel entrance via syscall and interrupts. Clear it > upon exit. I have no idea on which kernel this is supposed to apply. It fails on Linus tree and on tip x86/pti. Can you please finally ditch the broken and outdated version of PTI on which

Re: [PATCH] tty: fix data race in n_tty_receive_buf_common

2018-01-05 Thread Alan Cox
On Fri, 5 Jan 2018 13:15:45 +0530 "Kohli, Gaurav" wrote: > Hi Alan, > >>> > >>> Can you make that code available otherwise it's impossible to see > >>> what the problem might be. > > > > >   > https://source.codeaurora.org/quic/la/kernel/msm-4.9/tree/drivers/tty/serial?h=msm-4.9 >  As disc

Re: [PATCH 7/7] x86/microcode: Recheck IBRS features on microcode reload

2018-01-05 Thread Borislav Petkov
On Fri, Jan 05, 2018 at 02:32:17PM +0100, Greg KH wrote: > Does it really matter? Rescanning everything can't hurt here, and it > shouldn't be noticable in any boot time chart. I feel like arguing > about tiny stuff like this takes away from the obvious other problems > this whole patch series ha

Re: [RFC] selftests/x86: Add test_vsyscall

2018-01-05 Thread Borislav Petkov
On Thu, Jan 04, 2018 at 09:38:37PM -0800, Andy Lutomirski wrote: > It's RFC because I want to re-read it myself first. It's also missing > a test that will reliably make sure that vsyscall=none prevents use of > vsyscalls. With my patch ontop of 4.4 from yesterday: # ./test_vsyscall_32 Warning:

Re: [PATCH 5/7] x86: Use IBRS for firmware update path

2018-01-05 Thread Thomas Gleixner
On Thu, 4 Jan 2018, Tim Chen wrote: > #ifdef APM_ZERO_SEGS > #define APM_DO_ZERO_SEGS \ > "pushl %%ds\n\t" \ > @@ -28,6 +30,7 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, > u32 ecx_in, > u32 *eax, u32 *ebx, u32 *ecx, >

Re: [PATCH v4] gpio: winbond: add driver

2018-01-05 Thread Andy Shevchenko
On Thu, 2018-01-04 at 22:46 +0100, Maciej S. Szmigiero wrote: > This commit adds GPIO driver for Winbond Super I/Os. > > Currently, only W83627UHG model (also known as Nuvoton NCT6627UD) is > supported but in the future a support for other Winbond models, too, > can > be added to the driver. > >

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-05 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 03:45:55PM -0800, Guenter Roeck wrote: > On Wed, Jan 03, 2018 at 09:11:06PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.110 release. > > There are 37 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH 2/6] ARM64: dts: meson-axg: uart: fix address space range

2018-01-05 Thread Yixun Lan
On 01/05/2018 06:30 PM, Jerome Brunet wrote: > On Fri, 2018-01-05 at 17:56 +0800, Yixun Lan wrote: >> The address space range is actually 0x18, fixed here. > > Isn't it the same for other meson SoC ? If they are compatible, it should. > Could you please re-submit this change addressing all the req

Re: [PATCH 1/7] x86/feature: Detect the x86 feature to control Speculation

2018-01-05 Thread Andrea Arcangeli
On Fri, Jan 05, 2018 at 02:09:43PM +0100, Thomas Gleixner wrote: > On Thu, 4 Jan 2018, Tim Chen wrote: > > +#define MSR_IA32_SPEC_CTRL 0x0048 > > +#define SPEC_CTRL_FEATURE_DISABLE_IBRS (0 << 0) > > +#define SPEC_CTRL_FEATURE_ENABLE_IBRS (1 << 0) > > + > > +#define MSR_IA32_PRE

Re: [PATCH 7/7] x86/microcode: Recheck IBRS features on microcode reload

2018-01-05 Thread Greg KH
On Fri, Jan 05, 2018 at 02:37:17PM +0100, Borislav Petkov wrote: > On Fri, Jan 05, 2018 at 02:32:17PM +0100, Greg KH wrote: > > Does it really matter? Rescanning everything can't hurt here, and it > > shouldn't be noticable in any boot time chart. I feel like arguing > > about tiny stuff like thi

Re: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Yves-Alexis Perez
On Fri, 2018-01-05 at 14:28 +0100, Greg KH wrote: > > iucode-tool -L -tr n10ur16w.iso |grep 2017-11 > >001/020: sig 0x000306d4, pf_mask 0xc0, 2017-11-17, rev 0x0028, size > > 18432 > > That's been out for a while now: > https://downloadcenter.intel.com/download/27337/Linux-Processor-Mi

Re: [PATCH 6/7] x86/spec_ctrl: Add sysctl knobs to enable/disable SPEC_CTRL feature

2018-01-05 Thread Thomas Gleixner
On Thu, 4 Jan 2018, Dave Hansen wrote: > On 01/04/2018 10:33 AM, Borislav Petkov wrote: > >> 2. At run time > >> echo 0 > /sys/kernel/debug/ibrs_enabled will turn off IBRS > >> echo 1 > /sys/kernel/debug/ibrs_enabled will turn on IBRS in kernel > >> echo 2 > /sys/kernel/debug/ibrs_enabl

Re: [PATCH 1/7] x86/feature: Detect the x86 feature to control Speculation

2018-01-05 Thread Thomas Gleixner
On Fri, 5 Jan 2018, Andrea Arcangeli wrote: > On Fri, Jan 05, 2018 at 02:09:43PM +0100, Thomas Gleixner wrote: > Now about the late microcode my preference is not for static_cpu_has > and forcing the early microcode, but my long term preference is to > start with this/boot_cpu_has() and then turn s

Re: [PATCH v3] arm64: v8.4: Support for new floating point multiplication instructions

2018-01-05 Thread gengdongjiu
> > > New features should not be going into 4.15-rc, that should be a > > > 4.16-rc1 thing, right? > > > > It is also great if it can be applied to 4.16-rc1. Thanks a lot! > > I will queue it for 4.16-rc1. Thanks very much to Catalin. > > -- > Catalin

Re: [PATCH] tty: fix data race in n_tty_receive_buf_common

2018-01-05 Thread Kohli, Gaurav
On 1/5/2018 7:06 PM, Alan Cox wrote: On Fri, 5 Jan 2018 13:15:45 +0530 "Kohli, Gaurav" wrote: Hi Alan, Can you make that code available otherwise it's impossible to see what the problem might be.   https://source.codeaurora.org/quic/la/kernel/msm-4.9/tree/drivers/tty/serial?h=msm-4.9

Re: [PATCH 07/12] ARM: davinci: drop unneeded newline

2018-01-05 Thread Sekhar Nori
On Wednesday 27 December 2017 08:21 PM, Julia Lawall wrote: > gpio_request uses its second argument as a label, so it doesn't seem > appropriate for it to have a newline. Done using Coccinelle. > > Signed-off-by: Julia Lawall Applied to my v4.16/soc branch Thanks, Sekhar

Re: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Greg KH
On Fri, Jan 05, 2018 at 02:47:45PM +0100, Yves-Alexis Perez wrote: > On Fri, 2018-01-05 at 14:28 +0100, Greg KH wrote: > > > iucode-tool -L -tr n10ur16w.iso |grep 2017-11 > > >001/020: sig 0x000306d4, pf_mask 0xc0, 2017-11-17, rev 0x0028, size > > > 18432 > > > > That's been out for a while no

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-05 Thread Mike Galbraith
On Fri, 2018-01-05 at 14:34 +0100, Greg Kroah-Hartman wrote: > > Ok, we found two patches that were missing in 4.4-stable that were in > the SLES12 tree (thanks to Jamie Iles), now I only have 19k more to sift > through :) As you know, in enterprise, uname -r means you might find something this o

[PATCH] x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN

2018-01-05 Thread Thomas Gleixner
Use the name associated with the attack which needs page table isolation for mitigation. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/cpufeatures.h |2 +- arch/x86/mm/pti.c |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/arch/x86/include/asm

Re: [PATCH] tty: fix data race in n_tty_receive_buf_common

2018-01-05 Thread Alan Cox
> But in above case , there we can hit another race, if we have a sequence > like this > tty_init_dev->alloc_tty_struct -> tty_ldisc_init -> this will initialize > ldisc , > but at this moment disc_data is still NULL > > And if flush_to_ldisc comes in between, it will take ldisc reference and >

RE: [PATCH] platform/x86: dell-laptop: Filter out spurious keyboard backlight change events

2018-01-05 Thread Mario.Limonciello
> -Original Message- > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > ow...@vger.kernel.org] On Behalf Of Pali Rohár > Sent: Friday, January 5, 2018 5:07 AM > To: Andy Shevchenko > Cc: Hans de Goede ; Darren Hart > ; Andy Shevchenko ; Platform > Driver ; L

Re: [PATCH 4/6] ARM64: dts: meson-axg: uart: Add the pinctrl info description

2018-01-05 Thread Yixun Lan
On 01/05/2018 06:28 PM, Jerome Brunet wrote: > On Fri, 2018-01-05 at 17:56 +0800, Yixun Lan wrote: >> Describe the pinctrl info for the UART controller which . >> +uart_a_cts_rts_pins: uart_a_cts_rts { >> +mux { >> +

Re: [PATCH V2] mfd: rtsx: release IRQ during shutdown

2018-01-05 Thread Lee Jones
On Wed, 03 Jan 2018, Sinan Kaya wrote: > 'Commit cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during > shutdown")' revealed a resource leak in rtsx_pci driver during shutdown. > > Issue shows up as a warning during shutdown as follows: > > remove_proc_entry: removing non-empty directory 'i

[GIT PULL] MFD fixes for v4.15-1

2018-01-05 Thread Lee Jones
Good afternoon Linus, Enjoy! The following changes since commit 30a7acd573899fd8b8ac39236eff6468b195ac7d: Linux 4.15-rc6 (2017-12-31 14:47:43 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tags/mfd-fixes-4.15-1 for you to fetch ch

Re: [PATCH] x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN

2018-01-05 Thread Tom Lendacky
On 1/5/2018 8:10 AM, Thomas Gleixner wrote: > Use the name associated with the attack which needs page table isolation > for mitigation. > > Signed-off-by: Thomas Gleixner > --- > arch/x86/include/asm/cpufeatures.h |2 +- > arch/x86/mm/pti.c |6 +++--- > 2 files changed,

Re: [PATCH] x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN

2018-01-05 Thread Thomas Gleixner
On Fri, 5 Jan 2018, Tom Lendacky wrote: > On 1/5/2018 8:10 AM, Thomas Gleixner wrote: > > Use the name associated with the attack which needs page table isolation > > for mitigation. > > > > Signed-off-by: Thomas Gleixner > > --- > > arch/x86/include/asm/cpufeatures.h |2 +- > > arch/x86/mm

Re: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Paolo Bonzini
On 05/01/2018 15:01, Greg KH wrote: >> Obviously it lacks a *lot* of processors (especially pre-Haswell). > > I'm running Arch, but it would be nice to know where those microcode > updates came from, given that they aren't on the "official" Intel page > yet :) Those from November seem way too ear

Re: [PATCH v3 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-01-05 Thread Jani Nikula
On Thu, 04 Jan 2018, Knut Omang wrote: > On Thu, 2018-01-04 at 17:50 +0200, Jani Nikula wrote: >> On Thu, 04 Jan 2018, Knut Omang wrote: >> > Add scripts/runchecks which has generic support for running >> > checker tools in a convenient and user friendly way that >> > the author hopes can contrib

[PATCH V2] x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN

2018-01-05 Thread Thomas Gleixner
Subject: x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN From: Thomas Gleixner Date: Fri, 05 Jan 2018 15:05:27 +0100 Use the name associated with the particular attack which needs page table isolation for mitigation. Signed-off-by: Thomas Gleixner --- V2: This time quilt refreshed ... --

Re: [PATCH 0/7] IBRS patch series

2018-01-05 Thread David Woodhouse
On Fri, 2018-01-05 at 03:52 -0800, Paul Turner wrote: > > These are also mitigatable; the retpoline sequence itself will never > result in an RSB underflow. Unless an event occurs which clears the RSB between the CALL and the RET of the retpoline. > So long as the underlying binary satisfies the

[PATCH v2 6/6] ARM: configs: at91: at91_dt unselect ATMEL_PIT

2018-01-05 Thread Alexandre Belloni
The PIT is not required anymore to successfully boot and may actually harm in case preempt-rt is used because the PIT interrupt is shared. Disable it so the TCB clocksource is used. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 + 1 file changed, 1 insertion(+) dif

[PATCH v2 5/6] ARM: configs: at91: sama5: unselect ATMEL_PIT

2018-01-05 Thread Alexandre Belloni
The PIT is not required anymore to successfully boot and may actually harm in case preempt-rt is used because the PIT interrupt is shared. Disable it so the TCB clocksource is used. Signed-off-by: Alexandre Belloni --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v2 1/6] ARM: at91: add TCB registers definitions

2018-01-05 Thread Alexandre Belloni
Add registers and bits definitions for the timer counter blocks found on Atmel ARM SoCs. Signed-off-by: Alexandre Belloni --- include/soc/at91/atmel_tcb.h | 229 +++ 1 file changed, 229 insertions(+) create mode 100644 include/soc/at91/atmel_tcb.h diff -

[PATCH v2 3/6] clocksource/drivers: atmel-pit: allow unselecting ATMEL_PIT

2018-01-05 Thread Alexandre Belloni
With the new TCB clocksource driver, atmel platforms are now able to boot without the PIT driver. Allow unselecting it. Signed-off-by: Alexandre Belloni --- drivers/clocksource/Kconfig | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drive

[PATCH v2 4/6] ARM: configs: at91: use new TCB timer driver

2018-01-05 Thread Alexandre Belloni
Unselecting ATMEL_TCLIB switches the TCB timer driver from tcb_clksrc to timer-atmel-tcb. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 - arch/arm/configs/sama5_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/a

[PATCH v2 2/6] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks

2018-01-05 Thread Alexandre Belloni
Add a driver for the Atmel Timer Counter Blocks. This driver provides a clocksource and two clockevent devices. One of the clockevent device is linked to the clocksource counter and so it will run at the same frequency. This will be used when there is only on TCB channel available for timers. The

[PATCH v2 0/6] clocksource: rework Atmel TCB timer driver

2018-01-05 Thread Alexandre Belloni
Hi, This series gets back on the TCB drivers rework. It introduces a new driver to handle the clocksource and clockevent devices. As a reminder, this is necessary because: - the current tcb_clksrc driver is probed too late to be able to be used at boot and we now have SoCs that don't have a P

Re: [PATCH V2] x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN

2018-01-05 Thread Woodhouse, David
On Fri, 2018-01-05 at 15:27 +0100, Thomas Gleixner wrote: > Subject: x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN > From: Thomas Gleixner > Date: Fri, 05 Jan 2018 15:05:27 +0100 > > Use the name associated with the particular attack which needs page > table > isolation for mitigation. >

Re: [PATCH v3 01/13] x86/retpoline: Add initial retpoline support

2018-01-05 Thread Woodhouse, David
On Fri, 2018-01-05 at 13:54 +0100, Thomas Gleixner wrote: > On Thu, 4 Jan 2018, David Woodhouse wrote: > > diff --git a/arch/x86/include/asm/cpufeatures.h > > b/arch/x86/include/asm/cpufeatures.h > > index 07cdd1715705..900fa7016d3f 100644 > > --- a/arch/x86/include/asm/cpufeatures.h > > +++ b/arc

RE: [PATCH v10 12/15] platform/x86: dell-smbios: Add filtering support

2018-01-05 Thread Mario.Limonciello
> -Original Message- > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > ow...@vger.kernel.org] On Behalf Of Pali Rohár > Sent: Friday, January 5, 2018 5:13 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; Andy Shevchenko ; > LKML ; platform-driver-...

[PATCH] iio: adc: stm32: fix scan of multiple channels with DMA

2018-01-05 Thread Fabrice Gasnier
By default, watermark is set to '1'. Watermark is used to fine tune cyclic dma buffer period. In case watermark is left untouched (e.g. 1) and several channels are being scanned, buffer period is wrongly set (e.g. to 1 sample). As a consequence, data is never pushed to upper layer. Fix buffer perio

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-05 Thread Mark Rutland
On Thu, Jan 04, 2018 at 02:09:52PM -0800, Dan Williams wrote: > On Thu, Jan 4, 2018 at 3:47 AM, Mark Rutland wrote: > > Hi Dan, > > > > Thanks for these examples. > > > > On Thu, Jan 04, 2018 at 03:10:51AM +, Williams, Dan J wrote: > >> Note, the following is Elena's work, I'm just helping pok

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

2018-01-05 Thread Petr Mladek
On Fri 2018-01-05 19:25:38, Sergey Senozhatsky wrote: > On (01/05/18 19:21), Sergey Senozhatsky wrote: > > On (01/05/18 11:03), Petr Mladek wrote: > > [..] > > > Anyway, print_symbol() is an old weird API and it would be nice > > > to eventually get rid of it. I could take this patches into > > > p

RE: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Van De Ven, Arjan
> > So long as the underlying binary satisfies the precondition that it > > will not underflow its own RSB. > > > > Then we if we subsequently guarantee never to _reduce_ the number of > > entries in its RSB at any point remote to its own execution, then the > > precondition is preserved and underf

Re: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Andrea Arcangeli
On Thu, Jan 04, 2018 at 09:22:34PM +, Van De Ven, Arjan wrote: > personally I am comfortable with retpoline on Skylake, but I would >like to have IBRS as an opt in for the paranoid. I think this whole variant#2 issue has to be fixed mathematically or not at all, the reason is that it's already

Re: [PATCH v10 12/15] platform/x86: dell-smbios: Add filtering support

2018-01-05 Thread Pali Rohár
On Friday 05 January 2018 14:32:54 mario.limoncie...@dell.com wrote: > > > > -Original Message- > > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > > ow...@vger.kernel.org] On Behalf Of Pali Rohár > > Sent: Friday, January 5, 2018 5:13 AM > > To: Limonciello

Re: [PATCH v10 12/15] platform/x86: dell-smbios: Add filtering support

2018-01-05 Thread Andy Shevchenko
On Fri, Jan 5, 2018 at 4:32 PM, wrote: >> I know that this patch is already applied and merged, but I spotted this >> problem: >> >> On Thursday 19 October 2017 12:50:15 Mario Limonciello wrote: >> > +/* calls that are explicitly blacklisted */ >> > +static struct smbios_call call_blacklist[] =

Re: [v3] runchecks: Generalize make C={1, 2} to support multiple checkers

2018-01-05 Thread SF Markus Elfring
> I do feel confident that the benefits of python for this outweighs the > drawbacks > compared to my initial shell script implementation, or using perl or even C. > > Further advice on this appreciated, I got further ideas around this software situation. I am curious on how they fit to your visi

RE: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Van De Ven, Arjan
> -Original Message- > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > Sent: Friday, January 05, 2018 3:32 AM > To: Van De Ven, Arjan ; Linus Torvalds > ; David Woodhouse > Cc: Tim Chen ; Thomas Gleixner > ; Andy Lutomirski ; Greg KH > ; Hansen, Dave

Re: [RFC] rpmsg: virtio rpmsg: Add RPMsg char driver support

2018-01-05 Thread Arnaud Pouliquen
Hi Wendy, Few remarks on your patch. On 01/05/2018 12:18 AM, Wendy Liang wrote: > virtio rpmsg was not implemented to use RPMsg char driver. > Each virtio ns announcement will create a new RPMsg device which > is supposed to bound to a RPMsg driver. It doesn't support > dynamic endpoints with nam

RE: [PATCH v10 12/15] platform/x86: dell-smbios: Add filtering support

2018-01-05 Thread Mario.Limonciello
> -Original Message- > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > ow...@vger.kernel.org] On Behalf Of Pali Rohár > Sent: Friday, January 5, 2018 8:44 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; andy.shevche...@gmail.com; linux- > ker...@vge

[tip:x86/pti] x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN

2018-01-05 Thread tip-bot for Thomas Gleixner
Commit-ID: de791821c295cc61419a06fe5562288417d1bc58 Gitweb: https://git.kernel.org/tip/de791821c295cc61419a06fe5562288417d1bc58 Author: Thomas Gleixner AuthorDate: Fri, 5 Jan 2018 15:27:34 +0100 Committer: Thomas Gleixner CommitDate: Fri, 5 Jan 2018 15:34:43 +0100 x86/pti: Rename BUG_C

Re: [PATCH v2 11/11] arm64: Implement branch predictor hardening for affected Cortex-A CPUs

2018-01-05 Thread James Morse
Hi Marc, Will, (SOB-chain suggests a missing From: tag on this and patch 7) On 05/01/18 13:12, Will Deacon wrote: > Cortex-A57, A72, A73 and A75 are susceptible to branch predictor aliasing > and can theoretically be attacked by malicious code. > > This patch implements a PSCI-based mitigation f

RE: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Van De Ven, Arjan
> > Doing a huge amount of work with reptoline and then you find SMM is > called reproducibly somehow and a new PoC could exist for it, not fun. retpoline we want for broadwell and earlier anyway.. I'm sorry but your whole statement reeks a little bit of "perfect is the enemy of good"

Re: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Yves-Alexis Perez
On Fri, 2018-01-05 at 15:26 +0100, Paolo Bonzini wrote: > Those from November seem way too early to include IBRS/IBPB. Maybe the > two from December 3rd, but I wouldn't be 100% sure. So, for my CPU with updated microcode: processor : 0 vendor_id : GenuineIntel cpu family : 6 mod

Re: [PATCH 0/7] IBRS patch series

2018-01-05 Thread Thomas Gleixner
On Fri, 5 Jan 2018, Andrea Arcangeli wrote: > On Thu, Jan 04, 2018 at 09:22:34PM +, Van De Ven, Arjan wrote: > > personally I am comfortable with retpoline on Skylake, but I would > >like to have IBRS as an opt in for the paranoid. > > I think this whole variant#2 issue has to be fixed mathema

Linux 4.4.110

2018-01-05 Thread Greg KH
I'm announcing the release of the 4.4.110 kernel. All users of the 4.4 kernel series must upgrade. But be careful, there have been some reports of problems with this release during the -rc review cycle. Hopefully all of those issues are now resolved. So please test, as of right now, it should b

Re: [PATCH net-next 06/20] net: hns3: Modify the update period of packet statistics

2018-01-05 Thread Andrew Lunn
> --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c > +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c > @@ -1126,6 +1126,7 @@ static int hns3_nic_set_features(struct net_device > *netdev, > { > struct hns3_nic_priv *priv = netdev_priv(netdev); > int queue_num = priv->ae_hand

Re: Linux 4.4.110

2018-01-05 Thread Greg KH
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index b4a83a490212..5977c4d71356 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -2523,6 +2523,8 @@ bytes respectively. Such letter suffixes can also be entirely om

Linux 4.9.75

2018-01-05 Thread Greg KH
I'm announcing the release of the 4.9.75 kernel. All users of the 4.9 kernel series must upgrade. As with the 4.4.110 release, please test. This -rc cycle was much calmer than 4.4.y, but that doesn't mean the same issues are not still there. Again, if you have problems, please let me know. The

Re: Linux 4.9.75

2018-01-05 Thread Greg KH
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 152ec4e87b57..5d2676d043de 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -2763,6 +2763,8 @@ bytes respectively. Such letter suffixes can also be entirely om

Linux 4.14.12

2018-01-05 Thread Greg KH
I'm announcing the release of the 4.14.12 kernel. All users of the 4.14 kernel series must upgrade. There are a few minor issues still known with this release that people have run into. Hopefully they will be resolved this weekend, as the patches have not landed in Linus's tree. For now, as alw

Re: [PATCH v2 11/11] arm64: Implement branch predictor hardening for affected Cortex-A CPUs

2018-01-05 Thread Marc Zyngier
On 05/01/18 14:46, James Morse wrote: > Hi Marc, Will, > > (SOB-chain suggests a missing From: tag on this and patch 7) > > On 05/01/18 13:12, Will Deacon wrote: >> Cortex-A57, A72, A73 and A75 are susceptible to branch predictor aliasing >> and can theoretically be attacked by malicious code. >>

[PATCH] platform/x86: dell-smbios: Correct notation for filtering

2018-01-05 Thread Mario Limonciello
The class/select were mistakingly put into octal notation but intended to be in decimal notation. Suggest-by: Pali Rohar Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/dell-

[RFCv2 1/4] asm-generic/barrier: add generic nospec helpers

2018-01-05 Thread Mark Rutland
Under speculation, CPUs may mis-predict branches in bounds checks. Thus, memory accesses under a bounds check may be speculated even if the bounds check fails, providing a primitive for building a side channel. This patch adds helpers which can be used to inhibit the use of out-of-bounds pointers

[RFCv2 0/4] API for inhibiting speculative arbitrary read primitives

2018-01-05 Thread Mark Rutland
Recently, Google Project Zero discovered several classes of attack against speculative execution. One of these, known as variant-1, allows explicit bounds checks to be bypassed under speculation, providing an arbitrary read gadget. Further details can be found on the GPZ blog [1] and the Documentat

[RFCv2 2/4] Documentation: document nospec helpers

2018-01-05 Thread Mark Rutland
Document the rationale and usage of the new nospec*() helpers. Signed-off-by: Mark Rutland Signed-off-by: Will Deacon Cc: Dan Williams Cc: Jonathan Corbet Cc: Peter Zijlstra --- Documentation/speculation.txt | 166 ++ 1 file changed, 166 insertions(+)

[RFCv2 3/4] arm64: implement nospec_ptr()

2018-01-05 Thread Mark Rutland
This patch implements nospec_ptr() for arm64, following the recommended architectural sequence. Signed-off-by: Mark Rutland Signed-off-by: Will Deacon Cc: Dan Williams Cc: Peter Zijlstra --- arch/arm64/include/asm/barrier.h | 55 1 file changed, 55 ins

[RFCv2 4/4] bpf: inhibit speculated out-of-bounds pointers

2018-01-05 Thread Mark Rutland
Note: this patch is an *example* use of the nospec API. It is understood that this is incomplete, etc. Under speculation, CPUs may mis-predict branches in bounds checks. Thus, memory accesses under a bounds check may be speculated even if the bounds check fails, providing a primitive for building

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-05 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 08:38:23PM +0100, Thomas Voegtle wrote: > > When I start 4.4.110-rc1 on a virtual machine (qemu) init throws a > segfault and the kernel panics (attempted to kill init). > The VM host is a Haswell system. > > The same kernel binary boots fine on a (other) Haswell system. >

Re: [PATCH v3 0/6] arm: sunxi: IR support for A83T

2018-01-05 Thread Maxime Ripard
Hi, On Fri, Jan 05, 2018 at 12:02:53PM +, Sean Young wrote: > On Tue, Dec 19, 2017 at 09:07:41AM +0100, Philipp Rossak wrote: > > This patch series adds support for the sunxi A83T ir module and enhances > > the sunxi-ir driver. Right now the base clock frequency for the ir driver > > is a har

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

2018-01-05 Thread Sergey Senozhatsky
On (01/05/18 15:42), Petr Mladek wrote: [..] > > oh, one more thing. one extra patch, which gets rid of > > print_symbol()/__print_symbol(). > > 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 th

<    1   2   3   4   5   6   7   8   >