[PATCH v4 0/2] sched/fair: update scale invariance of PELT

2018-10-19 Thread Vincent Guittot
This 4th version of the scale invariance patchset adds an important change compare to previous ones. It still scales the time to reflect the amount of work that has been done during the elapsed running time but this is now done at rq level instead of per entity and rt/dl/cfs_rq. The main advantage

[PATCH 1/2] sched/fair: move rq_of helper function

2018-10-19 Thread Vincent Guittot
Move rq_of() helper function so it can be used in pelt.c Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 13 - kernel/sched/sched.h | 16 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 6bd142

[PATCH v4 2/2] sched/fair: update scale invariance of PELT

2018-10-19 Thread Vincent Guittot
The current implementation of load tracking invariance scales the contribution with current frequency and uarch performance (only for utilization) of the CPU. One main result of this formula is that the figures are capped by current capacity of CPU. Another one is that the load_avg is not invariant

Re: [PATCH] ARM: dts: imx6ul: ccimx6ulsom: Add support for wireless SOM variant

2018-10-19 Thread Fabio Estevam
Hi Alex, On Fri, Oct 19, 2018 at 12:17 PM Alex Gonzalez wrote: > +/* USDHC1 (Wireless) */ > +&usdhc1 { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_wifibt_ctrl>; > + pinctrl-1 = <&pinctrl_usdhc1_sleep &pinctrl_wifibt_ctrl_sleep>; > + n

Re: linux-next: Tree for Oct 19

2018-10-19 Thread Guenter Roeck
On Fri, Oct 19, 2018 at 06:16:53PM +1100, Stephen Rothwell wrote: > Hi all, > > News: I will not be doing linux-next releases next week. Unfortunately > this will probably be the first week of the merge window. :-( > > Changes since 20181018: > > The net-next tree gained a conflict against the

Re: [Patch v3 00/13] Provide process property based options to enable Spectre v2 userspace-userspace protection

2018-10-19 Thread Tim Chen
On 10/19/2018 12:57 AM, Peter Zijlstra wrote: > On Wed, Oct 17, 2018 at 10:59:28AM -0700, Tim Chen wrote: >> Application to application exploit is in general difficult due to address >> space layout randomization in applications and the need to know an > > Does the BTB attack on KASLR not work for

Re: [PATCH] x86/kvm/nVMX: tweak shadow fields

2018-10-19 Thread Paolo Bonzini
On 19/10/2018 16:16, Vitaly Kuznetsov wrote: > It seems we have some leftovers from times when 'unrestricted guest' > wasn't exposed to L1. Stop shadowing GUEST_CS_{BASE,LIMIT,AR_SELECTOR} > and GUEST_ES_BASE, shadow GUEST_SS_AR_BYTES as it was found that some > hypervisors (e.g. Hyper-V without En

Re: [PATCH 1/2] dt-bindings: serial: add documentation for the SiFive UART driver

2018-10-19 Thread Palmer Dabbelt
On Thu, 18 Oct 2018 16:43:53 PDT (-0700), Paul Walmsley wrote: Add DT binding documentation for the Linux driver for the SiFive asynchronous serial IP block. Nothing too exotic. Cc: linux-ser...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-ri...@lists.infradead.org Cc: linux-kernel@

Re: [PATCH 05/11] x86/fpu: set PKRU state for kernel threads

2018-10-19 Thread Andy Lutomirski
> On Oct 19, 2018, at 12:44 AM, Paolo Bonzini wrote: > > On 18/10/2018 22:46, Andy Lutomirski wrote: >>> [0] drivers/usb/gadget/function/f_fs.c::ffs_user_copy_worker() >>> >>> Sebastian >> I think we need an entirely new API: >> >> user_mm_ctx_t ctx = user_mm_ctx_get(); >> >> ... >> >> use

[PATCH] sched/fair : modify comment of fbq_type description

2018-10-19 Thread Peng Hao
From: Peng Hao for type 'all', the comment 'there is no distinction' is vague. make it clearer. Signed-off-by: Peng Hao --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index f808ddf..3a0543f 100644 --- a/ke

Re: [PATCH 05/11] x86/fpu: set PKRU state for kernel threads

2018-10-19 Thread Dave Hansen
On 10/19/2018 09:59 AM, Andy Lutomirski wrote: >> That looks like a good API in general. The ffs_user_copy_worker that >> Sebastian mentioned seems to be used by AIO, in which case of course it >> has to happen in a kernel thread. >> >> But while the API is good, deciding on the desired semantics

[GIT PULL] USB driver fixes for 4.19-final

2018-10-19 Thread Greg KH
The following changes since commit 0238df646e6224016a45505d2c111a24669ebe21: Linux 4.19-rc7 (2018-10-07 17:26:02 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-4.19-final for you to fetch changes up to 9ae24af3669111d418

[PATCH 1/2] perf/x86/intel/uncore: Add more IMC PCI IDs for KabyLake and CoffeeLake

2018-10-19 Thread kan . liang
From: Kan Liang KabyLake and CoffeeLake has the same client uncore events as SkyLake. Add the PCI IDs for KabyLake Y, U, S processor line and CoffeeLake U, H, S processor line. Signed-off-by: Kan Liang --- arch/x86/events/intel/uncore_snb.c | 115 - 1 file changed,

[PATCH 2/2] perf/x86/intel/uncore: Support CoffeeLake 8th CBOX

2018-10-19 Thread kan . liang
From: Kan Liang Coffee Lake has 8 core product which has 8 Cboxes. The 8th CBOX is mapped into different MSR space. Increase the num_boxes to 8 to handle the new products. It will not impact the previous platforms, SkyLake, KabyLake and earlier CoffeeLake. Because the num_boxes will be recalcula

[PATCH v2 3/3] pinctrl: upboard: Add UP2 pinctrl and gpio driver

2018-10-19 Thread Dan O'Donovan
From: Javier Arteaga The UP2 board features a Raspberry Pi compatible pin header (HAT) and a board-specific expansion connector (EXHAT). Both expose assorted functions from either the SoC (such as GPIO, I2C, SPI, UART...) or other on-board devices (ADC, FPGA IP blocks...). These lines are routed

[PATCH v2 2/3] leds: upboard: Add LED support

2018-10-19 Thread Dan O'Donovan
From: Javier Arteaga Allow userspace to use the on-board LEDs as "upboard::". Acked-by: Pavel Machek Signed-off-by: Javier Arteaga Signed-off-by: Dan O'Donovan --- drivers/leds/Kconfig| 10 + drivers/leds/Makefile | 1 + drivers/leds/leds-upboard.c | 104

[PATCH v2 1/3] mfd: upboard: Add UP2 platform controller driver

2018-10-19 Thread Dan O'Donovan
From: Javier Arteaga UP Squared (UP2) is a x86 SBC from AAEON based on Intel Apollo Lake. It features a MAX 10 FPGA that routes lines from both SoC and on-board devices to two I/O headers: ++ | 40-pin RPi-lik

Re: [PATCH RFC] doc: rcu: remove obsolete (non-)requirement about disabling preemption

2018-10-19 Thread Joel Fernandes
On Fri, Oct 19, 2018 at 05:07:58AM -0700, Paul E. McKenney wrote: > On Thu, Oct 18, 2018 at 08:58:44PM -0700, Joel Fernandes wrote: > > On Thu, Oct 18, 2018 at 10:52:23PM -0400, Steven Rostedt wrote: > > > On Thu, 18 Oct 2018 19:25:29 -0700 > > > Joel Fernandes wrote: > > > > > > > On Thu, Oct 18

[PATCH v2 0/3] UP Squared board drivers

2018-10-19 Thread Dan O'Donovan
Hi all, This series adds platform support for AAEON's UP Squared, a x86 SBC based on Apollo Lake [1]. Specifically, it enables control for the board pin headers and for the LEDs, as both of these features are only available behind a FPGA-based platform controller. This is structured around a MFD

Re: [PATCH 2/2] tty: serial: add driver for the SiFive UART (fwd)

2018-10-19 Thread Julia Lawall
, linux-ri...@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley Hi Paul, I love your patch! Perhaps something to improve: [auto build test WARNING on tty/tty-testing] [also build test WARNING on v4.19-rc8 next-20181019] [if your patch is applied to the wrong git tree, please drop us a

Re: [PATCH v2 2/5] uapi: deprecate STATX_ALL

2018-10-19 Thread Miklos Szeredi
On Fri, Oct 19, 2018 at 5:47 PM, David Howells wrote: > Miklos Szeredi wrote: > >> What is misleading about this? > > The manpage says: > >STATX_ALL [All currently available fields] Ah, the manpage needs to be fixed, obviously. > >> If you feel confused by this comment, th

Re: [PATCH v3 1/2] mm: Add an F_SEAL_FUTURE_WRITE seal to memfd

2018-10-19 Thread valdis . kletnieks
On Wed, 17 Oct 2018 23:59:07 -0700, "Joel Fernandes (Google)" said: > This usecase cannot be implemented with the existing F_SEAL_WRITE seal. > To support the usecase, this patch adds a new F_SEAL_FUTURE_WRITE seal > which prevents any future mmap and write syscalls from succeeding while > keeping

[RFC PATCH 0/2] improve vmalloc allocation

2018-10-19 Thread Uladzislau Rezki (Sony)
Objective - Initiative of improving vmalloc allocator comes from getting many issues related to allocation time, i.e. sometimes it is terribly slow. As a result many workloads which are sensitive for long (more than 1 millisecond) preemption off scenario are affected by that slowness(test c

Re: [PATCH 03/34] teach move_mount(2) to work with OPEN_TREE_CLONE [ver #12]

2018-10-19 Thread Alan Jenkins
On 19/10/2018 14:37, David Howells wrote: Alan Jenkins wrote: If I close() the mount FD "mfd", and then do "mount --move . /mnt", my printk() shows MNT_UMOUNT has been set. ( I guess fchdir() works more like openat(... , O_PATH) than dup() ). Then unmounting /mnt hangs, as I would expect from

[RFC PATCH 1/2] mm/vmalloc: keep track of free blocks for allocation

2018-10-19 Thread Uladzislau Rezki (Sony)
Currently an allocation of the new VA area is done over busy list iteration until a suitable hole is found between two busy areas. Therefore each new allocation causes the list being grown. Due to long list and different permissive parameters an allocation can take a long time on embedded devices(m

[RFC PATCH 2/2] mm: add priority threshold to __purge_vmap_area_lazy()

2018-10-19 Thread Uladzislau Rezki (Sony)
commit 763b218ddfaf ("mm: add preempt points into __purge_vmap_area_lazy()") introduced some preempt points, one of those is making an allocation more prioritized. Prioritizing an allocation over freeing does not work well all the time, i.e. it should be rather a compromise. 1) Number of lazy pa

Re: [PATCH 05/11] x86/fpu: set PKRU state for kernel threads

2018-10-19 Thread Andy Lutomirski
> On Oct 19, 2018, at 10:01 AM, Dave Hansen wrote: > > On 10/19/2018 09:59 AM, Andy Lutomirski wrote: >>> That looks like a good API in general. The ffs_user_copy_worker that >>> Sebastian mentioned seems to be used by AIO, in which case of course it >>> has to happen in a kernel thread. >>>

Re: [RFC] i2c: qup: Use the interconnect API

2018-10-19 Thread Evan Green
On Thu, Sep 20, 2018 at 11:29 AM Georgi Djakov wrote: > > The interconnect API provides an interface for consumer drivers to express > their bandwidth needs in the SoC. This data is aggregated and the on-chip > interconnect hardware is configured to the appropriate power/performance > profile. > >

Re: [PATCH v2 6/5] statx: add STATX_RESULT_MASK flag

2018-10-19 Thread Miklos Szeredi
On Fri, Oct 19, 2018 at 5:59 PM, David Howells wrote: > Miklos Szeredi wrote: > >> FUSE needs this, because it uses legacy inode initialization, that doesn't >> return a result_mask, so needs a refresh when caller asks for it with >> statx(). > > Can't you just make it up in fuse? Presumably, fu

[git pull] Input updates for v4.19-rc8

2018-10-19 Thread Dmitry Torokhov
Hi Greg, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. Just an addition to elan touchpad driver ACPI table. Changelog: - Mikhail Nikiforov (1): Input: elan_i2c - add ACPI ID for Lenovo

Re: [PATCH v2 5/5] nfs: don't clear STATX_ATIME from result_mask

2018-10-19 Thread Miklos Szeredi
On Fri, Oct 19, 2018 at 5:52 PM, Trond Myklebust wrote: > On Fri, 2018-10-19 at 14:20 +0200, Miklos Szeredi wrote: >> As per statx(2) man page only clear out flags that are unsupported by >> the >> fs or have an unrepresentable value. Atime is supported by NFS as >> long as >> it's supported on t

Re: [PATCH v3 1/2] mm: Add an F_SEAL_FUTURE_WRITE seal to memfd

2018-10-19 Thread Joel Fernandes
On Fri, Oct 19, 2018 at 10:32 AM, wrote: > On Wed, 17 Oct 2018 23:59:07 -0700, "Joel Fernandes (Google)" said: >> This usecase cannot be implemented with the existing F_SEAL_WRITE seal. >> To support the usecase, this patch adds a new F_SEAL_FUTURE_WRITE seal >> which prevents any future mmap and

[GIT PULL] arm64 updated for 4.20

2018-10-19 Thread Catalin Marinas
Hi Linus, Greg, I'm sending the pull request for 4.20 slightly earlier as I'm on holiday next week (not in Edinburgh). Apart from some new arm64 features and clean-ups, this request also contains the core mmu_gather changes for tracking the levels of the page table being cleared and a minor update

Re: [PATCH v5 3/3] clk: meson: add sub MMC clock controller driver

2018-10-19 Thread Stephen Boyd
Quoting Jianxin Pan (2018-10-19 09:12:53) > On 2018/10/19 1:13, Stephen Boyd wrote: > > Quoting Jianxin Pan (2018-10-17 22:07:25) > >> diff --git a/drivers/clk/meson/clk-regmap.c > >> b/drivers/clk/meson/clk-regmap.c > >> index 305ee30..f96314d 100644 > >> --- a/drivers/clk/meson/clk-regmap.c > >>

Re: [PATCH v5 2/3] clk: meson: add DT documentation for emmc clock controller

2018-10-19 Thread Stephen Boyd
Quoting Jianxin Pan (2018-10-19 08:50:08) > On 2018/10/19 1:08, Stephen Boyd wrote: > > Quoting Jianxin Pan (2018-10-17 22:07:24) > >> diff --git a/Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt > >> b/Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt > >> new file mode 10

[PATCH] vfio-mdev/samples: Use u8 instead of char for handle functions

2018-10-19 Thread Nathan Chancellor
Clang warns: samples/vfio-mdev/mtty.c:592:39: warning: implicit conversion from 'int' to 'char' changes value from 162 to -94 [-Wconstant-conversion] *buf = UART_MSR_DSR | UART_MSR_DDSR | UART_MSR_DCD; ~ ~^~ 1 warning gen

Re: [PATCH v3 1/5] mfd: lochnagar: Add initial binding documentation

2018-10-19 Thread Stephen Boyd
Quoting Charles Keepax (2018-10-19 02:49:59) > Lochnagar is an evaluation and development board for Cirrus > Logic Smart CODEC and Amp devices. It allows the connection of > most Cirrus Logic devices on mini-cards, as well as allowing > connection of various application processor systems to provide

[PATCH] spi: Allow building SPI_BCM63XX_HSSPI on ARM-based SoCs

2018-10-19 Thread Florian Fainelli
ARM-based 63xx DSL platforms have the spi-bcm63xx-hsspi controller present, allow using this driver there as well. Signed-off-by: Florian Fainelli --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 671d07834

Re: [PATCH v2 5/5] nfs: don't clear STATX_ATIME from result_mask

2018-10-19 Thread Trond Myklebust
On Fri, 2018-10-19 at 19:46 +0200, Miklos Szeredi wrote: > On Fri, Oct 19, 2018 at 5:52 PM, Trond Myklebust > wrote: > > On Fri, 2018-10-19 at 14:20 +0200, Miklos Szeredi wrote: > > > As per statx(2) man page only clear out flags that are > > > unsupported by > > > the > > > fs or have an unrepres

Re: [PATCH 05/11] x86/fpu: set PKRU state for kernel threads

2018-10-19 Thread Dave Hansen
On 10/19/2018 10:37 AM, Andy Lutomirski wrote: >> I think it's much more straightforward to just not enforce pkeys. >> Having this "phantom" value could cause a very odd, nearly >> undebuggable I/O failure. > But now we have the reverse. The IO can work if it’s truly async but, > if the kernel dec

[PATCH v7 05/21] tpm: add tpm_calc_ordinal_duration() wrapper

2018-10-19 Thread Tomas Winkler
Add convenient wrapper for ordinal duration computation to remove boiler plate if else statement over TPM2. if (chip->flags & TPM_CHIP_FLAG_TPM2) tpm2_calc_ordinal_duration(chip, ordinal); else tpm1_calc_ordinal_duration(chip, ordinal); Signed-off-by: Tomas Winkler Reviewed-by: J

[PATCH] bpf/test_run: Add braces to initialization in bpf_prog_test_run_skb

2018-10-19 Thread Nathan Chancellor
Clang warns: net/bpf/test_run.c:120:20: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] struct sock sk = {0}; ^ {} Add the braces to properly initialize all subobjects. Fixes: 75079847e9d0 ("bpf: add

[PATCH v7 00/21] tpm: separate tpm 1.x and tpm 2.x commands

2018-10-19 Thread Tomas Winkler
This patch series provides initial separation of tpm 1.x and tpm 2.x commands, in foresight that the tpm 1.x chips will eventually phase out and can be compiled out for modern systems. A new file is added tpm1-cmd.c that contains tpm 1.x specific commands. In addition, tpm 1.x commands are now imp

[PATCH v7 04/21] tpm: factor out tpm 1.x duration calculation to tpm1-cmd.c

2018-10-19 Thread Tomas Winkler
Factor out TPM 1.x commands calculation into tpm1-cmd.c file. and change the prefix from tpm_ to tpm1_. No functional change is done here. Signed-off-by: Tomas Winkler Tested-by: Jarkko Sakkinen --- V2-V3: Rebase V4: 1. Remove the licence statement it's already covered by SPDX. 2. Add kdoc t

[PATCH v7 06/21] tpm: factor out tpm_get_timeouts()

2018-10-19 Thread Tomas Winkler
Factor out tpm_get_timeouts() into tpm2_get_timeouts() and tpm1_get_timeouts() Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen --- V2-V3: Rebase V4: Fix the commit message. V5: Resend. V6: Remove tpm1_auto_startup() declaration. V7: Resend. drivers/char/t

[PATCH v7 09/21] tpm: factor out tpm1_get_random into tpm1-cmd.c

2018-10-19 Thread Tomas Winkler
Factor out get random implementation from tpm-interface.c into tpm1_get_random function in tpm1-cmd.c. No functional changes. Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkine --- V2-V3: Rebase V4-V7: Resend drivers/char/tpm/tpm-interface.c | 58 +---

[PATCH v7 10/21] tpm: move tpm 1.x selftest code from tpm-interface.c tpm1-cmd.c

2018-10-19 Thread Tomas Winkler
Move the tpm1 selftest code functions to tpm1-cmd.c and adjust callers to use the new function names. 1. tpm_pcr_read_dev() to tpm1_pcr_read_dev(). 2. tpm_continue_selftest() to tpm1_continue_selftest(). 3. tpm_do_selftest() to tpm1_do_selftest() Signed-off-by: Tomas Winkler Tested-by: Jarkko

[PATCH v7 08/21] tpm: move tpm_getcap to tpm1-cmd.c

2018-10-19 Thread Tomas Winkler
1. Move tpm_getcap to tpm1-cmd. Rename the function to tpm1_getcap. 2. Remove unused tpm_getcap_header with unused constant as this functionality is already implemented using tpm_buf construct. Fixes warning: drivers/char/tpm/tpm-interface.c:452:38: warning: ‘tpm_getcap_header’ defined but not us

[PATCH v7 07/21] tpm: move tpm1_pcr_extend to tpm1-cmd.c

2018-10-19 Thread Tomas Winkler
Move tpm1_pcr_extend to tpm1-cmd.c and remove unused pcrextend_header structure and EXTEND_PCR_RESULT_SIZE and EXTEND_PCR_RESULT_BODY_SIZE defines. Fixes warning: drivers/char/tpm/tpm-interface.c:609:38: warning: ‘pcrextend_header’ defined but not used [-Wunused-const-variable=] static const str

[PATCH v7 01/21] tpm: tpm_i2c_nuvoton: use correct command duration for TPM 2.x

2018-10-19 Thread Tomas Winkler
tpm_i2c_nuvoton calculated commands duration using TPM 1.x values via tpm_calc_ordinal_duration() also for TPM 2.x chips. Call tpm2_calc_ordinal_duration() for retrieving ordinal duration for TPM 2.X chips. Cc: sta...@vger.kernel.org Cc: Nayna Jain Signed-off-by: Tomas Winkler Reviewed-by: Nayna

[PATCH v7 15/21] tpm: tpm-space.c remove unneeded semicolon

2018-10-19 Thread Tomas Winkler
Remove unneeded semicolon in tpm2_map_response_header() Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkinen --- V3: New in the series. V4-V7: Resend. drivers/char/tpm/tpm2-space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm2-space.c b/drivers/

[PATCH v7 19/21] tpm1: reimplement SAVESTATE using tpm_buf

2018-10-19 Thread Tomas Winkler
In tpm1_pm_suspend() function reimplement, TPM_ORD_SAVESTATE comamnd using tpm_buf. Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen --- V3: New in the series. V4-V7: Resend drivers/char/tpm/tpm1-cmd.c | 22 -- 1 file changed, 12 inserti

[PATCH v7 18/21] tpm1: rename tpm1_pcr_read_dev to tpm1_pcr_read()

2018-10-19 Thread Tomas Winkler
Rename tpm1_pcr_read_dev to tpm1_pcr_read() to match the counterpart tpm2_pcr_read(). Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkinen --- V4: New in the series V5: Resend. V6: Resend. V7: Fix typo tmp->tpm drivers/char/tpm/tpm-interface.c | 2 +- drivers/char/tpm/tpm-sysfs.c | 2

[PATCH v7 16/21] tpm: tpm1: rewrite tpm1_get_random() using tpm_buf structure

2018-10-19 Thread Tomas Winkler
1. Use tpm_buf in tpm1_get_random() 2. Fix comment in tpm_get_random() so it is clear that the function is expected to return number of random bytes. Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen --- V3: New in the series. V4: Resend. V5: A small adjustmen

[PATCH v7 12/21] tpm: factor out tpm_startup function

2018-10-19 Thread Tomas Winkler
TPM manual startup is used only from within TPM 1.x or TPM 2.x code, hence remove tpm_startup() function from tpm-interface.c and add two static functions implementations tpm1_startup() and tpm2_startup() into to tpm1-cmd.c and tpm2-cmd.c respectively. Signed-off-by: Tomas Winkler Tested-by: Jark

Re: [RFC PATCH v2 04/12] crypto: chacha - add XChaCha12 support

2018-10-19 Thread Eric Biggers
Hi Ard, On Fri, Oct 19, 2018 at 10:34:41PM +0800, Ard Biesheuvel wrote: > > diff --git a/include/crypto/chacha.h b/include/crypto/chacha.h > > index ae79e9983c72f..3d261f5cd156d 100644 > > --- a/include/crypto/chacha.h > > +++ b/include/crypto/chacha.h > > @@ -5,6 +5,11 @@ > > * XChaCha extends

[PATCH v7 14/21] tpm: tpm-interface.c drop unused macros

2018-10-19 Thread Tomas Winkler
The commit: "tpm_tis: further simplify calculation of ordinal duration" left unused macros, we can drop them now. Fixes compilation warnings: tpm-interface.c:37:0: warning: macro "TPM_PROTECTED_COMMAND" is not used [-Wunused-macros] tpm-interface.c:36:0: warning: macro "TSC_MAX_ORDINAL" is not us

[PATCH v7 17/21] tpm1: implement tpm1_pcr_read_dev() using tpm_buf structure

2018-10-19 Thread Tomas Winkler
Implement tpm1_pcr_read_dev() using tpm_buf and remove now unneeded structures from tpm.h Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen --- V3: New in the series. V4-V7: Resend. drivers/char/tpm/tpm.h | 18 ++ drivers/char/tpm/tpm1-c

[PATCH v7 11/21] tpm: factor out tpm 1.x pm suspend flow into tpm1-cmd.c

2018-10-19 Thread Tomas Winkler
Factor out TPM 1.x suspend flow from tpm-interface.c into a new function tpm1_pm_suspend() in tpm1-cmd.c Signed-off-by: Tomas Winkler --- V2-V3: Rebase. V4: 1. Add kdoc for tpm1_pm_suspend(). 2. Fix commit message. V5: Adjust the kdoc to the new standard. V6: Rebase. V7: Resend. drivers/cha

[PATCH v7 13/21] tpm: add tpm_auto_startup() into tpm-interface.c

2018-10-19 Thread Tomas Winkler
Add wrapper tpm_auto_startup() to tpm-interface.c instead of open coded decision between TPM 1.x and TPM 2.x in tpm-chip.c Signed-off-by: Tomas Winkler Tested-by: Jarkko Sakkinen --- V3: New in the series. V4: Fix the commit message. V5-7: Resend. drivers/char/tpm/tpm-chip.c | 11 +++-

[PATCH v7 21/21] tpm: use u32 instead of int for PCR index

2018-10-19 Thread Tomas Winkler
The TPM specs defines PCR index as a positive number, and there is no reason to use a signed number. It is also a possible security issue as currently no functions check for a negative index, which may become a large number when converted to u32. Adjust the API to use u32 instead of int in all PCR

[PATCH v7 20/21] tpm1: reimplement tpm1_continue_selftest() using tpm_buf

2018-10-19 Thread Tomas Winkler
Reimplement tpm1_continue_selftest() using tpm_buf structure. This is the last command using the old tpm_cmd_t structure and now the structure can be removed. Cc: Nayna Jain Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen --- V3: New in the series. V4: Rese

[PATCH v7 02/21] tpm2: add new tpm2 commands according to TCG 1.36

2018-10-19 Thread Tomas Winkler
1. TPM2_CC_LAST has moved from 182 to 193 2. Convert tpm2_ordinal_duration from an array into a switch statement, as there are not so many commands that require special duration relative to a number of commands, the switch statement function is called tpm2_ordinal_duration_index(). 3. Fix

[PATCH v7 03/21] tpm: sort objects in the Makefile

2018-10-19 Thread Tomas Winkler
Make the tpm Makefile a bit more in order by putting objects in one column. Signed-off-by: Tomas Winkler Tested-by: Jarkko Sakkinen Reviewed-by: Jarkko Sakkinen --- V2: 1. back to tpm-y notation 2. Partially sort files alphanumerically. V3: Rebase V4: Remove redunant sentence in commit mess

Re: [PATCH] sched/fair : modify comment of fbq_type description

2018-10-19 Thread Peter Zijlstra
On Fri, Oct 19, 2018 at 12:44:54PM -0400, Peng Hao wrote: > > From: Peng Hao > > for type 'all', the comment 'there is no distinction' is vague. > make it clearer. > > Signed-off-by: Peng Hao > --- > kernel/sched/fair.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a

Re: [PATCH v5 0/5] Add coredump support for Q6v5 Modem remoteproc

2018-10-19 Thread Bjorn Andersson
On Wed 17 Oct 06:55 PDT 2018, Sibi Sankar wrote: > This patch series add coredump support for modem on SDM845, MSM8996 > and MSM8916 SoCs. Modem requires the mba to be loaded before a > coredump can be performed and this is achieved using a custom per > segment dump function. > > V5: > Add soft

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 8:25 AM, Thomas Gleixner wrote: > Christopher, > > Please Cc LKML on such issues in the future. > > On Mon, 15 Oct 2018, Christopher Hall wrote: > > Leaving context around for new readers: > >> Problem Statement: >> >> The TSC clocksource mult/shift values are derived from

Re: TSC to Mono-raw Drift

2018-10-19 Thread Thomas Gleixner
On Fri, 19 Oct 2018, Thomas Gleixner wrote: > On Mon, 15 Oct 2018, Christopher Hall wrote: > > TSC kHz used to calculate mult/shift value: 3312000 > > Now the most interesting information here would be the resulting mult/shift > value which the kernel uses. Can you please provide that? But aside

[PATCH] pstore: Fix annotation on declaration of pstore_exit_fs

2018-10-19 Thread Nathan Chancellor
Clang warns (trimmed for brevity): fs/pstore/inode.c:504:6: error: section does not match previous declaration [-Werror,-Wsection] void __exit pstore_exit_fs(void) ^ fs/pstore/internal.h:42:6: note: previous attribute is here void __init pstore_exit_fs(void); ^ Fixes: a4fb3d2fefd2 (

Re: [Patch v3 00/13] Provide process property based options to enable Spectre v2 userspace-userspace protection

2018-10-19 Thread Peter Zijlstra
On Fri, Oct 19, 2018 at 09:43:35AM -0700, Tim Chen wrote: > On 10/19/2018 12:57 AM, Peter Zijlstra wrote: > > On Wed, Oct 17, 2018 at 10:59:28AM -0700, Tim Chen wrote: > >> Application to application exploit is in general difficult due to address > >> space layout randomization in applications and

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 11:34 AM, John Stultz wrote: > On Fri, Oct 19, 2018 at 8:25 AM, Thomas Gleixner wrote: >> Christopher, >> >> Please Cc LKML on such issues in the future. >> >> On Mon, 15 Oct 2018, Christopher Hall wrote: >> >> Leaving context around for new readers: >> >>> Problem Stateme

Re: [PATCH] pstore: Fix annotation on declaration of pstore_exit_fs

2018-10-19 Thread Kees Cook
On Fri, Oct 19, 2018 at 11:37 AM, Nathan Chancellor wrote: > Clang warns (trimmed for brevity): > > fs/pstore/inode.c:504:6: error: section does not match previous > declaration [-Werror,-Wsection] > void __exit pstore_exit_fs(void) > ^ > fs/pstore/internal.h:42:6: note: previous attribute is

RE: [tip:irq/core] genirq: Fix race on spurious interrupt detection

2018-10-19 Thread Thomas Gleixner
David, On Fri, 19 Oct 2018, David Laight wrote: > From: Lukas Wunner > > Sent: 19 October 2018 16:34 > > > > genirq: Fix race on spurious interrupt detection > > > > Commit 1e77d0a1ed74 ("genirq: Sanitize spurious interrupt detection of > > threaded irqs") made detection of spurious interrupts w

[PATCH v2 0/2] tty: serial: add DT bindings and serial driver for the SiFive FU540 UART

2018-10-19 Thread Paul Walmsley
This series adds a serial driver, with console support, for the UART IP block present on the SiFive FU540 SoC. The programming model is straightforward, but unique. Boot-tested on a SiFive FU540 HiFive-U board (with appropriate patches to the DT data). The patches in this series can also be foun

[PATCH v2 1/2] dt-bindings: serial: add documentation for the SiFive UART driver

2018-10-19 Thread Paul Walmsley
Add DT binding documentation for the Linux driver for the SiFive asynchronous serial IP block. Nothing too exotic. Cc: linux-ser...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-ri...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark

[PATCH v2 2/2] tty: serial: add driver for the SiFive UART

2018-10-19 Thread Paul Walmsley
Add a serial driver for the SiFive UART, found on SiFive FU540 devices (among others). The underlying serial IP block is relatively basic, and currently does not support serial break detection. Further information on the IP block can be found in the documentation and Chisel sources: https://stat

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 11:37 AM, Thomas Gleixner wrote: > On Fri, 19 Oct 2018, Thomas Gleixner wrote: >> On Mon, 15 Oct 2018, Christopher Hall wrote: >> > TSC kHz used to calculate mult/shift value: 3312000 >> >> Now the most interesting information here would be the resulting mult/shift >> value

Re: [PATCH v3 1/2] mm: Add an F_SEAL_FUTURE_WRITE seal to memfd

2018-10-19 Thread valdis . kletnieks
On Fri, 19 Oct 2018 10:57:31 -0700, Joel Fernandes said: > On Fri, Oct 19, 2018 at 10:32 AM, wrote: > > What is supposed to happen if some other process has an already existing R/W > > mmap of the region? (For that matter, the test program doesn't seem to > > actually test that the existing mmap

Re: TSC to Mono-raw Drift

2018-10-19 Thread Thomas Gleixner
On Fri, 19 Oct 2018, John Stultz wrote: > On Fri, Oct 19, 2018 at 11:37 AM, Thomas Gleixner wrote: > > On Fri, 19 Oct 2018, Thomas Gleixner wrote: > >> On Mon, 15 Oct 2018, Christopher Hall wrote: > >> > TSC kHz used to calculate mult/shift value: 3312000 > >> > >> Now the most interesting informa

Re: [RFC 00/60] Coscheduling for Linux

2018-10-19 Thread Jan H . Schönherr
On 19/10/2018 17.45, Rik van Riel wrote: > On Fri, 2018-10-19 at 17:33 +0200, Frederic Weisbecker wrote: >> On Fri, Oct 19, 2018 at 11:16:49AM -0400, Rik van Riel wrote: >>> On Fri, 2018-10-19 at 13:40 +0200, Jan H. Schönherr wrote: Now, it would be possible to "invent" relocatable cpuse

Re: [Patch v3 07/13] x86/process Add arch_set_dumpable

2018-10-19 Thread Thomas Gleixner
On Thu, 18 Oct 2018, Tim Chen wrote: > On 10/18/2018 06:28 AM, Thomas Gleixner wrote: > > > > So now the obvious question. set_dumpable() operates on tsk->mm. i.e. it's > > a process wide operation. But arch_set_dumpable() operates on the task > > itself. What about the other tasks of that process

Re: [PATCH 3/3] staging: gasket: page_table: add mapping flags

2018-10-19 Thread Greg Kroah-Hartman
On Tue, Oct 16, 2018 at 05:03:09AM -0700, Todd Poynor wrote: > From: Nick Ewalt > > This allows for more precise dma_direction in the dma_map_page requests. > Also leaves room for adding more flags later. Why are you adding new features to this code? It needs to have stuff cleaned up and remove

[PATCH net-next 3/7] net: hns3: Add support to enable and disable hw errors

2018-10-19 Thread Salil Mehta
From: Shiju Jose This patch adds functions to enable and disable hw errors. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 22 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h | 2 ++ .../ethernet/hisilic

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 11:57 AM, Thomas Gleixner wrote: > On Fri, 19 Oct 2018, John Stultz wrote: >> On Fri, Oct 19, 2018 at 11:37 AM, Thomas Gleixner wrote: >> > On Fri, 19 Oct 2018, Thomas Gleixner wrote: >> >> On Mon, 15 Oct 2018, Christopher Hall wrote: >> >> > TSC kHz used to calculate mult

Re: [PATCH 2/3] objtool: move libelf check out of top Makefile

2018-10-19 Thread Josh Poimboeuf
On Fri, Oct 19, 2018 at 03:04:22PM +0900, Masahiro Yamada wrote: > Hi Josh, > > > On Wed, Oct 17, 2018 at 1:16 AM Josh Poimboeuf wrote: > > > > On Wed, Oct 17, 2018 at 12:51:40AM +0900, Masahiro Yamada wrote: > > > > ifdef CONFIG_UNWINDER_ORC > > > > > > > > chk_unwinder_orc = echo "int main() {

Re: [PATCH v3 1/2] mm: Add an F_SEAL_FUTURE_WRITE seal to memfd

2018-10-19 Thread Joel Fernandes
On Fri, Oct 19, 2018 at 02:49:11PM -0400, valdis.kletni...@vt.edu wrote: > On Fri, 19 Oct 2018 10:57:31 -0700, Joel Fernandes said: > > On Fri, Oct 19, 2018 at 10:32 AM, wrote: > > > What is supposed to happen if some other process has an already existing > > > R/W > > > mmap of the region? (Fo

Re: [PATCH] rcu: Benefit from expedited grace period in __wait_rcu_gp

2018-10-19 Thread Raslan, KarimAllah
On Fri, 2018-10-19 at 05:31 -0700, Paul E. McKenney wrote: > On Fri, Oct 19, 2018 at 02:49:05AM +0200, KarimAllah Ahmed wrote: > > > > When expedited grace-period is set, both synchronize_sched > > synchronize_rcu_bh can be optimized to have a significantly lower latency. > > > > Improve wait_rcu

Re: [PATCH RFC 1/1] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-10-19 Thread Lina Iyer
On Fri, Oct 19 2018 at 09:53 -0600, Marc Zyngier wrote: Hi Lina, On 19/10/18 16:32, Lina Iyer wrote: Hi folks, On Wed, Oct 10 2018 at 18:30 -0600, Lina Iyer wrote: [...] +static irqreturn_t wake_irq_gpio_handler(int irq, void *data) +{ + struct irq_data *irqd = data; + struct i

Re: [PATCH] rtc: s35390a: Make buf an unsigned char in s35390a_init

2018-10-19 Thread Alexandre Belloni
Hello, On 18/10/2018 14:42:07-0700, Nathan Chancellor wrote: > Clang warns: > > drivers/rtc/rtc-s35390a.c:124:27: warning: implicit conversion from > 'int' to 'char' changes value from 192 to -64 [-Wconstant-conversion] > buf = S35390A_FLAG_RESET | S35390A_FLAG_24H; > ~ ~~

Re: [PATCH] arm64: dts: sdm845: Add PSCI cpuidle low power states

2018-10-19 Thread Lina Iyer
On Mon, Oct 15 2018 at 11:02 -0600, Raju P.L.S.S.S.N wrote: Add device bindings for cpuidle states for cpu devices. Cc: Signed-off-by: Raju P.L.S.S.S.N --- Reviewed-by: Lina Iyer arch/arm64/boot/dts/qcom/sdm845.dtsi | 62 1 file changed, 62 insertions(+)

Re: [PATCH 4.4 00/48] 4.4.162-stable review

2018-10-19 Thread Guenter Roeck
On Thu, Oct 18, 2018 at 07:54:35PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.162 release. > There are 48 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [Patch v3 06/13] mm: Pass task instead of task->mm as argument to set_dumpable

2018-10-19 Thread Peter Zijlstra
On Wed, Oct 17, 2018 at 10:59:34AM -0700, Tim Chen wrote: > Change the argument to set_dumpable from task->mm to task. This allows us > to later add hooks to modify a task's property according to whether it is > a non-dumpable task. Non dumpable tasks demand a higher level of security. > Changes t

Re: [Patch v3 07/13] x86/process Add arch_set_dumpable

2018-10-19 Thread Thomas Gleixner
On Fri, 19 Oct 2018, Thomas Gleixner wrote: > On Thu, 18 Oct 2018, Tim Chen wrote: > > On 10/18/2018 06:28 AM, Thomas Gleixner wrote: > > > > > > So now the obvious question. set_dumpable() operates on tsk->mm. i.e. it's > > > a process wide operation. But arch_set_dumpable() operates on the task

Re: [PATCH] rcu: Benefit from expedited grace period in __wait_rcu_gp

2018-10-19 Thread Paul E. McKenney
On Fri, Oct 19, 2018 at 07:45:51PM +, Raslan, KarimAllah wrote: > On Fri, 2018-10-19 at 05:31 -0700, Paul E. McKenney wrote: > > On Fri, Oct 19, 2018 at 02:49:05AM +0200, KarimAllah Ahmed wrote: > > > > > > When expedited grace-period is set, both synchronize_sched > > > synchronize_rcu_bh can

RE: [tip:irq/core] genirq: Fix race on spurious interrupt detection

2018-10-19 Thread Thomas Gleixner
David, On Fri, 19 Oct 2018, Thomas Gleixner wrote: > On Fri, 19 Oct 2018, David Laight wrote: > > From: Lukas Wunner > > > Sent: 19 October 2018 16:34 > > > > > > genirq: Fix race on spurious interrupt detection > > > > > > Commit 1e77d0a1ed74 ("genirq: Sanitize spurious interrupt detection of >

[PATCH net-next] net: ethernet: ti: cpsw: unsync mcast entries while switch promisc mode

2018-10-19 Thread Ivan Khoronzhuk
After flushing all mcast entries from the table, the ones contained in mc list of ndev are not restored when promisc mode is toggled off, because they are considered as synched with ALE, thus, in order to restore them after promisc mode - reset syncing info. This fix touches only switch mode device

Re: [PATCH 4.18 00/53] 4.18.16-stable review

2018-10-19 Thread Shuah Khan
On 10/18/2018 11:53 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.18.16 release. > There are 53 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

Re: [PATCH 4.14 00/41] 4.14.78-stable review

2018-10-19 Thread Shuah Khan
On 10/18/2018 11:54 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.78 release. > There are 41 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

[PATCH v2] rtc: s35390a: Change buf's type to u8 in s35390a_init

2018-10-19 Thread Nathan Chancellor
Clang warns: drivers/rtc/rtc-s35390a.c:124:27: warning: implicit conversion from 'int' to 'char' changes value from 192 to -64 [-Wconstant-conversion] buf = S35390A_FLAG_RESET | S35390A_FLAG_24H; ~ ~~~^~ 1 warning generated. Update buf to be an

Re: [PATCH v2 1/2] dt-bindings: serial: add documentation for the SiFive UART driver

2018-10-19 Thread Rob Herring
On Fri, Oct 19, 2018 at 1:48 PM Paul Walmsley wrote: > > Add DT binding documentation for the Linux driver for the SiFive > asynchronous serial IP block. Nothing too exotic. > > Cc: linux-ser...@vger.kernel.org > Cc: devicet...@vger.kernel.org > Cc: linux-ri...@lists.infradead.org > Cc: linux-ker

<    1   2   3   4   5   >