Re: early x86 unseeded randomness

2017-08-14 Thread Borislav Petkov
On Mon, Aug 14, 2017 at 10:47:47AM -0700, Linus Torvalds wrote: > Plus on modern x86, you'll always get at least the hardware > randomness, which is fundamentally much better anyway. Right, my only intention was to get rid of those: [0.00] random: get_random_bytes called from

Re: [PATCH v2 4/7] ghes_edac: avoid multiple calls to dmi_walk()

2017-08-14 Thread Borislav Petkov
On Mon, Aug 14, 2017 at 05:52:25PM +, Kani, Toshimitsu wrote: > Yes, but this ACK is done per a GHES entry as well. So is the ghes_edac_report_mem_error() call. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

RE: [PATCH 0/5] cramfs refresh for embedded usage

2017-08-14 Thread Chris Brandt
On Monday, August 14, 2017, Nicolas Pitre wrote: > > However, now with your mkcramfs tool, I can no longer mount my cramfs > > image as the rootfs on boot. I was able to do that before (ie, 30 > minutes > > ago) when using the community mkcramfs (ie, 30 minutes ago). > > > > I get this: > > > > [

Re: [PATCH] serial: imx: Improve PIO prevention if TX DMA has been started

2017-08-14 Thread Clemens Gruber
Hello Uwe, On Mon, Aug 14, 2017 at 08:51:49AM +0200, Uwe Kleine-König wrote: > Hello Clemens, > > On Sun, Aug 13, 2017 at 12:07:56AM +0200, Clemens Gruber wrote: > > On Sat, Aug 12, 2017 at 09:54:51PM +0200, Uwe Kleine-König wrote: > > > On Sat, Aug 12, 2017 at 05:12:10PM +0200, Clemens Gruber

Re: [RESEND PATCH v5] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-08-14 Thread Peter Zijlstra
On Mon, Aug 14, 2017 at 01:01:22PM +0100, Will Deacon wrote: > Yeah, that's right, you can't use the STXR status flag to create control > dependencies. Just for my elucidation; you can't use it to create a control dependency on the store, but you can use it to create a control dependency on the

[PATCH v4 1/2] sched/clock: interface to allow timestamps early in boot

2017-08-14 Thread Pavel Tatashin
In Linux printk() can output timestamps next to every line. This is very useful for tracking regressions, and finding places that can be optimized. However, the timestamps are available only later in boot. On smaller machines it is insignificant amount of time, but on larger it can be many

[PATCH v4 2/2] x86/tsc: use tsc early

2017-08-14 Thread Pavel Tatashin
tsc_early_init(): Use verious methods to determine the availability of TSC feature and its frequency early in boot, and if that is possible initialize TSC and also call sched_clock_early_init() to be able to get timestamps early in boot. tsc_early_fini() Implement the finish part of early tsc

[PATCH v4 0/2] Early boot time stamps for x86

2017-08-14 Thread Pavel Tatashin
changelog - v3 - v4 - Fixed tsc_early_fini() call to be in the 2nd patch as reported by Dou Liyang - Improved comment before __use_sched_clock_early to explain why we need both booleans. - Simplified valid_clock logic in read_boot_clock64(). v2

Re: [PATCH] i2c: core: Make comment about I2C table requirement to reflect the code

2017-08-14 Thread Wolfram Sang
On Wed, Aug 09, 2017 at 11:21:28AM +0200, Javier Martinez Canillas wrote: > I2C drivers were required to have an I2C device ID table even if were for > devices that would only be registered using a specific firmware interface > (e.g: OF or ACPI). > > But commit da10c06a044b ("i2c: Make I2C ID

[PATCH v4 1/3] nvmet_execute_identify_ctrl: don't overwrite with 0-bytes

2017-08-14 Thread Martin Wilck
The merged version of my patch "nvmet: don't report 0-bytes in serial number" fails to remove two lines which should have been replaced, so that the space-padded strings are overwritten again with 0-bytes. Fix it. Fixes: 42de82a8b544 nvmet: don't report 0-bytes in serial number Signed-off-by:

[PATCH v4 3/3] nvmet_execute_identify_ctrl: use memcpy_and_pad()

2017-08-14 Thread Martin Wilck
This changes the earlier patch "nvmet: don't report 0-bytes in serial number" to use the memcpy_and_pad() helper introduced in a previous patch. Signed-off-by: Martin Wilck --- drivers/nvme/target/admin-cmd.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-)

[PATCH v4 0/3] Improve readbility of NVME "wwid" attribute (target side)

2017-08-14 Thread Martin Wilck
Hi Christoph, I'm reposting the target-side of my patch rebased against 4.13-rc as requested. NOTE: an error has occurred while merging the previous version of my patch. This is fixed by patch 1/3 in the series - that's an important fix for 4.13, please push forward. 2/3 and 3/3 move the

[PATCH v4 2/3] string.h: add memcpy_and_pad()

2017-08-14 Thread Martin Wilck
This helper function is useful for the nvme subsystem, and maybe others. Note: the warnings reported by the kbuild test robot for this patch are actually generated by the use of CONFIG_PROFILE_ALL_BRANCHES together with __FORTIFY_INLINE. Signed-off-by: Martin Wilck ---

[PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-08-14 Thread Hans de Goede
At least one BIOS enumerates the max17047 both through the INT33FE ACPI device (it is right there in the resources table) as well as through a separate MAX17047 device. This commit checks for the max17047 already being enumerated through a separate MAX17047 ACPI device and if so it uses the

Re: [PATCH v5 10/10] lkdtm: Add test for XPFO

2017-08-14 Thread Tycho Andersen
On Mon, Aug 14, 2017 at 12:10:47PM -0700, Kees Cook wrote: > On Wed, Aug 9, 2017 at 1:07 PM, Tycho Andersen wrote: > > From: Juerg Haefliger > > > > This test simply reads from userspace memory via the kernel's linear > > map. > > > > hugepages is only

Re: [PATCH v3] platform/x86: ideapad-laptop: Expose conservation mode switch

2017-08-14 Thread Andy Shevchenko
On Mon, Aug 14, 2017 at 7:13 PM, Hao Wei Tee wrote: > This exposes the battery conservation mode present on some (?) IdeaPads. > The mode is set by calling ACPI method SBMC with argument 3 (on) or > 5 (off). Status is reported in bit 5 of the return value of ACPI method > GBMD. >

Re: nouveau driver locks up with 4.11 kernel

2017-08-14 Thread Michal Hocko
On Mon 14-08-17 15:27:20, Ilia Mirkin wrote: > On Mon, Aug 14, 2017 at 3:18 PM, Michal Hocko wrote: [...] > > nouveau :03:00.0: fifo: channel 6 [mpv/vo[3535]] kick timeout > > nouveau: mpv/vo[3535]::906f: detach gr failed, -110 > > Are you using mpv in

[PATCH v5 4/9] mtd: nand: sharpsl: Register partitions using the parsers

2017-08-14 Thread Andrea Adami
With the introduction of sharpslpart partition parser we can now read the offsets from NAND: we specify the list of the parsers as platform data, with cmdlinepart and ofpart parsers first allowing to override the part. table written in NAND. This is done in the board files using this driver. Use

[PATCH v5 1/9] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-14 Thread Andrea Adami
The Sharp SL Series (Zaurus) PXA handhelds have 16/64/128M of NAND flash and share the same layout of the first 7M partition, managed by Sharp FTL. The purpose of this self-contained patch is to add a common parser and remove the hardcoded sizes in the board files (these devices are not yet

[PATCH v5 6/9] ARM: pxa/corgi: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
With the introduction of sharpslpart partition parser we can now read the offsets from NAND: we specify the list of the parsers as platform data, with cmdlinepart and ofpart parsers first allowing to override the part. table written in NAND. This is done here in the board file. Signed-off-by:

[PATCH v5 5/9] mtd: nand: tmio: Register partitions using the parsers

2017-08-14 Thread Andrea Adami
With the introduction of sharpslpart partition parser we can now read the offsets from NAND: we specify the list of the parsers as platform data, with cmdlinepart and ofpart parsers first allowing to override the part. table written in NAND. This is done in the board files using this driver. Use

[PATCH v5 2/9] mtd: nand: sharpsl: Add partition parsers platform data

2017-08-14 Thread Andrea Adami
With the introduction of sharpslpart partition parser we can now read the offsets from NAND: we specify the list of the parsers as platform data, with cmdlinepart and ofpart parsers first allowing to override the part. table written in NAND. This is done in the board files using this driver.

Re: [PATCH] selftests: timers: freq-step: fix compile error

2017-08-14 Thread John Stultz
On Mon, Aug 14, 2017 at 1:17 PM, Shuah Khan wrote: > On 08/14/2017 02:12 PM, John Stultz wrote: >> On Wed, Aug 9, 2017 at 3:05 PM, Shuah Khan wrote: >>> Fix compile error due to ksft_exit_skip() update to take var_args. >>> >>> freq-step.c: In

RE: [[PATCH v1] 24/37] [CIFS] SMBD: Support for SMBD keep alive protocol

2017-08-14 Thread Tom Talpey
> -Original Message- > From: linux-cifs-ow...@vger.kernel.org [mailto:linux-cifs- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Wednesday, August 2, 2017 4:11 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org;

RE: [[PATCH v1] 25/37] [CIFS] SMBD: Support SMBD idle connection timer

2017-08-14 Thread Tom Talpey
> -Original Message- > From: linux-cifs-ow...@vger.kernel.org [mailto:linux-cifs- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Wednesday, August 2, 2017 4:11 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org;

Re: [PATCH v2 01/19] perf, tools: Save max_x, max_y in xyarray

2017-08-14 Thread Jiri Olsa
On Mon, Aug 14, 2017 at 01:39:28PM -0700, Andi Kleen wrote: > On Mon, Aug 14, 2017 at 10:15:49PM +0200, Jiri Olsa wrote: > > On Fri, Aug 11, 2017 at 04:26:16PM -0700, Andi Kleen wrote: > > > From: Andi Kleen > > > > > > Save the original array dimensions in xyarrays, so

Re: [PATCH] device property: use of_graph_get_remote_endpoint() for of_fwnode

2017-08-14 Thread Rob Herring
On Thu, Aug 10, 2017 at 04:38:16AM +, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Now, we can use of_graph_get_remote_endpoint(). Let's use it. > > Signed-off-by: Kuninori Morimoto > --- > - not tested > >

Re: [PATCH v3] powerpc/mm: Implemented default_hugepagesz verification for powerpc

2017-08-14 Thread Victor Aoqui
Em 2017-08-04 15:17, Mike Kravetz escreveu: On 07/24/2017 04:52 PM, Victor Aoqui wrote: Implemented default hugepage size verification (default_hugepagesz=) in order to allow allocation of defined number of pages (hugepages=) only for supported hugepage sizes. Signed-off-by: Victor Aoqui

Re: [PATCH V2] get_maintainer: Prepare for separate MAINTAINERS files

2017-08-14 Thread Pavel Machek
Hi! On Wed 2017-08-02 11:15:09, Linus Torvalds wrote: > On Wed, Aug 2, 2017 at 11:06 AM, Randy Dunlap wrote: > > > > IMO, the parse-maintainters.pl (sorting) script makes the need for separate > > MAINTAINERS files much less important since the file can be "fixed" easily >

Re: [lkp-robot] [net] 98cd1552ea: BUG:unable_to_handle_kernel

2017-08-14 Thread Linus Torvalds
On Sun, Aug 13, 2017 at 11:10 PM, kernel test robot wrote: > FYI, we noticed the following commit: > > commit: 98cd1552ea27e512c7e99e2aa76042a26e4fb25c ("net: dsa: Mock-up driver") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > in testcase:

Re: [PATCH v2 16/18] hwmon: add support for sensors exported via ARM SCMI

2017-08-14 Thread Guenter Roeck
On Mon, Aug 14, 2017 at 04:09:18PM +0100, Sudeep Holla wrote: > Hi Guenter, > > On 07/08/17 13:25, Sudeep Holla wrote: > > > > > > On 04/08/17 20:32, Guenter Roeck wrote: > >> On Fri, Aug 04, 2017 at 03:31:42PM +0100, Sudeep Holla wrote: > > > > [...] > > > >>> + platform_set_drvdata(pdev,

Re: RGB support prototype

2017-08-14 Thread Jacek Anaszewski
Hi, On 08/13/2017 01:41 PM, Pavel Machek wrote: > Hi! > >>> You mentioned you was working on RGB support prototype. Could you post >>> copy of the patches (even if unfinished)? >> >> Unfortunately it is at the stage of unfinished proof of concept and >> I haven't managed yet to try how it fits

[v5 0/4] cgroup-aware OOM killer

2017-08-14 Thread Roman Gushchin
This patchset makes the OOM killer cgroup-aware. v5: - Rebased on top of Michal Hocko's patches, which have changed the way how OOM victims becoming an access to the memory reserves. Dropped corresponding part of this patchset - Separated the oom_kill_process() splitting into a

Re: [PATCH v5 02/10] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2017-08-14 Thread Laura Abbott
On 08/09/2017 01:07 PM, Tycho Andersen wrote: > diff --git a/mm/xpfo.c b/mm/xpfo.c > new file mode 100644 > index ..3cd45f68b5ad > --- /dev/null > +++ b/mm/xpfo.c > @@ -0,0 +1,208 @@ > +/* > + * Copyright (C) 2017 Hewlett Packard Enterprise Development, L.P. > + * Copyright (C) 2016

Re: [PATCH v2 4/7] ghes_edac: avoid multiple calls to dmi_walk()

2017-08-14 Thread Kani, Toshimitsu
On Mon, 2017-08-14 at 20:35 +0200, Borislav Petkov wrote: > On Mon, Aug 14, 2017 at 06:17:47PM +, Kani, Toshimitsu wrote: > > Right, ghes_edac_report_mem_error() gets serialized per a GHES > > entry, but not globally. > > Globally what? GHES v2's ACK is not a global lock. So, it does not

Re: [PATCH] spi: spidev: add exclusive bus access lock via ioctls

2017-08-14 Thread Mark Brown
On Sat, Aug 12, 2017 at 05:24:03PM +0530, Vikram N wrote: > else > - status = spi_sync(spi, message); > + status = spidev->bus_locked ? spi_sync_locked(spi, message) : > + spi_sync(spi, message); Please don't abuse the ternery operator,

RE: [[PATCH v1] 04/37] [CIFS] SMBD: Define per-channel SMBD transport parameters and default values

2017-08-14 Thread Tom Talpey
> -Original Message- > From: linux-cifs-ow...@vger.kernel.org [mailto:linux-cifs- > ow...@vger.kernel.org] On Behalf Of Christoph Hellwig > Sent: Sunday, August 13, 2017 6:12 AM > To: Long Li > Cc: Steve French ; linux-c...@vger.kernel.org; samba-

Re: [PATCH v6 14/17] powerpc: Add support for setting SPRN_TIDR

2017-08-14 Thread Sukadev Bhattiprolu
Benjamin Herrenschmidt [b...@au1.ibm.com] wrote: > On Mon, 2017-08-14 at 17:02 +1000, Michael Neuling wrote: > > > +/* > > > + * We need to assign an unique thread id to each thread in a process. > > > This > > > + * thread id is intended to be used with the Fast Thread-wakeup (aka > > > Core- >

Re: [PATCH v2 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-14 Thread Wolfram Sang
On Mon, Aug 14, 2017 at 09:36:56AM +0800, Jun Gao wrote: > On Sat, 2017-08-12 at 16:44 +0200, Wolfram Sang wrote: > > > +static const struct i2c_adapter_quirks mt7622_i2c_quirks = { > > > + .max_num_msgs = 255, > > > + .max_write_len = 65535, > > > + .max_read_len = 65535, > > > +

[PATCH resend] mfd: intel_soc_pmic_chtwc: Turn Kconfig option into a bool

2017-08-14 Thread Hans de Goede
Hi Lee, This one seems to have fallen through the cracks, would be nice to get this small fix into 4.14. Thanks & Regards, Hans

[PATCH resend] mfd: intel_soc_pmic_chtwc: Turn Kconfig option into a bool

2017-08-14 Thread Hans de Goede
The PMIC provides ACPI OpRegions which must be available for other drivers' PS0 / PS3 methods early-on as such it must be builtin as the Kconfig help text already states. Somehow its Kconfig option ended up being a tristate though, this fixes this. Signed-off-by: Hans de Goede

[PATCH v6] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-08-14 Thread Waiman Long
All the locking related cmpxchg's in the following functions are replaced with the _acquire variants: - pv_queued_spin_steal_lock() - trylock_clear_pending() This change should help performance on architectures that use LL/SC. The cmpxchg in pv_kick_node() is replaced with a relaxed version

Re: [PATCH v3 24/28] drm/vc4: switch to drm_*_get(), drm_*_put() helpers

2017-08-14 Thread Cihangir Akturk
On Mon, Aug 14, 2017 at 12:47:01PM -0700, Eric Anholt wrote: > Cihangir Akturk writes: > > > Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() > > and drm_*_unreference() helpers. > > > > drm_*_reference() and drm_*_unreference() functions are just > >

Re: [PATCH v4 00/06] clocksource: sh_cmt: DT binding rework V4

2017-08-14 Thread Geert Uytterhoeven
Hi Daniel, Magnus, On Thu, Aug 10, 2017 at 12:56 PM, Daniel Lezcano wrote: > On 10/08/2017 11:01, Geert Uytterhoeven wrote: >> On Tue, Jul 11, 2017 at 1:56 PM, Simon Horman wrote: >>> On Thu, Nov 24, 2016 at 11:58:43AM +0100, Simon Horman wrote:

Re: [PATCH] selftests: timers: freq-step: fix compile error

2017-08-14 Thread Shuah Khan
On 08/14/2017 02:12 PM, John Stultz wrote: > On Wed, Aug 9, 2017 at 3:05 PM, Shuah Khan wrote: >> Fix compile error due to ksft_exit_skip() update to take var_args. >> >> freq-step.c: In function ‘init_test’: >> freq-step.c:234:3: error: too few arguments to function

[PATCH v5 3/9] mfd: tmio: Add partition parsers platform data

2017-08-14 Thread Andrea Adami
With the introduction of sharpslpart partition parser we can now read the offsets from NAND: we specify the list of the parsers as platform data, with cmdlinepart and ofpart parsers first allowing to override the part. table written in NAND. This is done in the board files using this driver.

[PATCH v5 7/9] ARM: pxa/tosa: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
With the introduction of sharpslpart partition parser we can now read the offsets from NAND: we specify the list of the parsers as platform data, with cmdlinepart and ofpart parsers first allowing to override the part. table written in NAND. This is done here in the board file. Signed-off-by:

[PATCH v5 9/9] ARM: pxa/poodle: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
With the introduction of sharpslpart partition parser we can now read the offsets from NAND: we specify the list of the parsers as platform data, with cmdlinepart and ofpart parsers first allowing to override the part. table written in NAND. This is done here in the board file. Signed-off-by:

[PATCH v5 8/9] ARM: pxa/spitz: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
With the introduction of sharpslpart partition parser we can now read the offsets from NAND: we specify the list of the parsers as platform data, with cmdlinepart and ofpart parsers first allowing to override the part. table written in NAND. This is done here in the board file. Signed-off-by:

[PATCH] selftests/seccomp: Add simple seccomp overhead benchmark

2017-08-14 Thread Kees Cook
This attempts to produce a comparison between native getpid() and a RET_ALLOW-filtered getpid(), to measure the overhead cost of using seccomp(). Signed-off-by: Kees Cook --- As with the other, I'd like this to go via the seccomp tree. Getting an Ack would be great. :)

Re: [PATCH 3/3] x86/intel_rdt/cqm: Improve limbo list processing

2017-08-14 Thread Shivappa Vikas
On Mon, 14 Aug 2017, Shivappa Vikas wrote: On Mon, 14 Aug 2017, Thomas Gleixner wrote: On Wed, 9 Aug 2017, Vikas Shivappa wrote: @@ -426,6 +426,9 @@ static int domain_setup_mon_state(struct rdt_resource *r, struct rdt_domain *d) GFP_KERNEL);

[PATCH 9/9] ASoC: cygnus: Tidy up of structure access

2017-08-14 Thread Lori Hikichi
Adds copies of the frequently accessed io handles to each ports data structure, making it more convenient to access. Also, a small cleanup to the type names used in cygnus_pcm. None of this should result in a functional change to the driver. Signed-off-by: Lori Hikichi

[PATCH 8/9] ASoC: cygnus: Add EXPORT_SYMBOL for helper function

2017-08-14 Thread Lori Hikichi
The helper function cygnus_ssp_set_custom_fsync_width() is intended to be called from an ASoC machine driver, need to export symbol if using modules. Signed-off-by: Lori Hikichi --- sound/soc/bcm/cygnus-ssp.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 3/9] ASoC: cygnus: Allow each port to select its clock source

2017-08-14 Thread Lori Hikichi
Add the ability to assign which of the 3 audio PLL outputs are to be used by each port. Remove the suspend and resume handlers because the only thing they were doing was unnecessarily maintaining the clock state. Signed-off-by: Lori Hikichi ---

[PATCH 1/9] ASoC: cygnus: Add support for 384kHz frame rates

2017-08-14 Thread Lori Hikichi
Allow the audio ports to operate at 384kHz. Signed-off-by: Lori Hikichi --- sound/soc/bcm/cygnus-ssp.c | 235 +++-- 1 file changed, 55 insertions(+), 180 deletions(-) diff --git a/sound/soc/bcm/cygnus-ssp.c

[PATCH net-next] bpf/verifier: track liveness for pruning

2017-08-14 Thread Edward Cree
State of a register doesn't matter if it wasn't read in reaching an exit; a write screens off all reads downstream of it from all explored_states upstream of it. This allows us to prune many more branches; here are some processed insn counts for some Cilium programs: Program

Re: [PATCH 4/4] MIPS/ptrace: Add PTRACE_SET_SYSCALL operation

2017-08-14 Thread Kees Cook
On Mon, Aug 14, 2017 at 2:41 AM, James Hogan wrote: > On Fri, Aug 11, 2017 at 03:23:34PM -0700, Kees Cook wrote: >> On Fri, Aug 11, 2017 at 1:56 PM, James Hogan wrote: >> > Add a PTRACE_SET_SYSCALL ptrace operation to allow the system call to be >>

RE: [PATCH 0/5] cramfs refresh for embedded usage

2017-08-14 Thread Chris Brandt
On Monday, August 14, 2017, Nicolas Pitre wrote: > > I just applied the patches tried this simple test: > > - tested with a Renesas RZ/A1 (Cortex-A9...so it has an MMU). > > - I set the sticky bit for busybox before using mkcramfs > > You need the newer mkcramfs I linked to in the

Re: early x86 unseeded randomness

2017-08-14 Thread Linus Torvalds
On Mon, Aug 14, 2017 at 11:00 AM, Borislav Petkov wrote: > On Mon, Aug 14, 2017 at 10:47:47AM -0700, Linus Torvalds wrote: >> Plus on modern x86, you'll always get at least the hardware >> randomness, which is fundamentally much better anyway. > > Right, my only intention was to

RE: [PATCH 0/5] cramfs refresh for embedded usage

2017-08-14 Thread Nicolas Pitre
On Mon, 14 Aug 2017, Chris Brandt wrote: > On Monday, August 14, 2017, Nicolas Pitre wrote: > > > I just applied the patches tried this simple test: > > > - tested with a Renesas RZ/A1 (Cortex-A9...so it has an MMU). > > > - I set the sticky bit for busybox before using mkcramfs > > > > You

Re: [PATCH v2 4/7] ghes_edac: avoid multiple calls to dmi_walk()

2017-08-14 Thread Kani, Toshimitsu
On Mon, 2017-08-14 at 20:05 +0200, Borislav Petkov wrote: > On Mon, Aug 14, 2017 at 05:52:25PM +, Kani, Toshimitsu wrote: > > Yes, but this ACK is done per a GHES entry as well. > > So is the ghes_edac_report_mem_error() call. Right, ghes_edac_report_mem_error() gets serialized per a GHES

[v5 3/4] mm, oom: introduce oom_priority for memory cgroups

2017-08-14 Thread Roman Gushchin
Introduce a per-memory-cgroup oom_priority setting: an integer number within the [-1, 1] range, which defines the order in which the OOM killer selects victim memory cgroups. OOM killer prefers memory cgroups with larger priority if they are populated with elegible tasks. The

Re: [tip:perf/core] perf test shell: Install shell tests

2017-08-14 Thread Michael Petlan
Hi Arnaldo! Maybe this would be the right time to incorporate the shell-based perftool-testsuite [1] into perf-test, wouldn't it? It already contains bunch of shell-based perf tests that cover 25+ RH bugs... A little problem might be different design, since the testsuite has multiple levels of

Re: linux-next: manual merge of the akpm-current tree with the tip tree

2017-08-14 Thread Peter Zijlstra
On Mon, Aug 14, 2017 at 12:09:14PM +0900, Minchan Kim wrote: > @@ -446,9 +450,7 @@ void tlb_finish_mmu(struct mmu_gather *tlb, >* >*/ > bool force = mm_tlb_flush_nested(tlb->mm); > - > arch_tlb_finish_mmu(tlb, start, end, force); > - dec_tlb_flush_pending(tlb->mm);

[PATCH v1 3/4] clk: iproc: Allow plls to do minor rate changes without reset

2017-08-14 Thread Lori Hikichi
From: Lori Hikichi The iproc plls are capable of doing small rate changes without the need for a full reset and re-lock procedure. This feature will allow for small tweaks to the PLL rate to occur smoothly. Signed-off-by: Lori Hikichi ---

Re: early x86 unseeded randomness

2017-08-14 Thread Borislav Petkov
On Mon, Aug 14, 2017 at 11:17:37AM -0700, Linus Torvalds wrote: > Ok, guys, you ALL need to learn that blindly just trying to get rid of > warnings IS A HORRIBLE IDEA. Not blindly - I was actually suggesting/asking whether falling back to the TSC that early during boot might make more sense than

[PATCH v1 4/4] clk: iproc: Minor tidy up of iproc pll data structures

2017-08-14 Thread Lori Hikichi
From: Lori Hikichi There were a few fields in the iproc pll data structures that were holding information that was not true state information. Using stack variables is sufficient and simplifies the structure. There are not any functional changes in this commit.

[PATCH v1 1/4] clk: iproc: Allow iproc pll to runtime calculate vco parameters

2017-08-14 Thread Lori Hikichi
Add the ability for the iproc pll to calculate the pll parameters at runtime instead of only using predefined tables. This ability allows the clock users to select from the full range of vco frequencies. The old method of table based programming is retained so that existing users will retain

[PATCH v1 0/4] clk: iproc: Enable glitchless pll rate change

2017-08-14 Thread Lori Hikichi
This patchset enables the ability for the iproc plls to do small rate changes without glitching the clock. Lori Hikichi (4): clk: iproc: Allow iproc pll to runtime calculate vco parameters clk: iproc: Fix error in the pll post divider rate calculation clk: iproc: Allow plls to do minor rate

Re: [PATCH] i2c: slave-eeprom: Add an OF device ID table

2017-08-14 Thread Wolfram Sang
On Wed, Aug 09, 2017 at 12:12:56PM +0200, Javier Martinez Canillas wrote: > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees as shown in the following DT binding doc: > > Documentation/devicetree/bindings/i2c/i2c-designware.txt Uhhh,

RE: [[PATCH v1] 05/37] [CIFS] SMBD: Implement API for upper layer to create SMBD transport and establish RDMA connection

2017-08-14 Thread Tom Talpey
> -Original Message- > From: linux-cifs-ow...@vger.kernel.org [mailto:linux-cifs- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Wednesday, August 2, 2017 4:10 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org;

Re: [PATCH 2/2] of: Restrict DMA configuration

2017-08-14 Thread Rob Herring
+linuxppc-dev On Fri, Aug 11, 2017 at 11:29 AM, Robin Murphy wrote: > Moving DMA configuration to happen later at driver probe time had the > unnoticed side-effect that we now perform DMA configuration for *every* > device represented in DT, rather than only those

Re: [PATCH v1] i2c: aspeed: fixed potential null pointer dereference

2017-08-14 Thread Wolfram Sang
On Fri, Jul 28, 2017 at 06:00:12PM -0700, Brendan Higgins wrote: > Before I skipped null checks when the master is in the STOP state; this > fixes that. > > Signed-off-by: Brendan Higgins Applied to for-current, thanks! signature.asc Description: PGP signature

RE: [[PATCH v1] 07/37] [CIFS] SMBD: Implement receive buffer for handling SMBD response

2017-08-14 Thread Tom Talpey
> -Original Message- > From: linux-cifs-ow...@vger.kernel.org [mailto:linux-cifs- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Wednesday, August 2, 2017 4:10 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org;

Re: [PATCH v2 01/19] perf, tools: Save max_x, max_y in xyarray

2017-08-14 Thread Jiri Olsa
On Fri, Aug 11, 2017 at 04:26:16PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Save the original array dimensions in xyarrays, so that users can retrieve > them > later. Add some inline functions to access these fields. hi, is there a branch with this? also I recall

RE: [[PATCH v1] 15/37] [CIFS] SMBD: Post a SMBD data transfer message with data payload

2017-08-14 Thread Tom Talpey
> -Original Message- > From: linux-cifs-ow...@vger.kernel.org [mailto:linux-cifs- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Wednesday, August 2, 2017 4:10 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org;

Re: [PATCH] nokia n900: update dts with camera support

2017-08-14 Thread Tony Lindgren
* Sakari Ailus [170814 13:20]: > Hi Pavel, > > Thanks for the patch. > > I understand Tony already applied this one. I'd have a few comments below, > could you address them in another patch, please? Oops sorry about that. It looked trivial enough for me. Yes an incremental

Re: [PATCH v4 0/4] seccomp: Implement SECCOMP_RET_KILL_PROCESS action

2017-08-14 Thread Paul Moore
On Fri, Aug 11, 2017 at 6:05 PM, Kees Cook wrote: > This series is the result of Fabricio, Tyler, Will and I going around a > few times on possible solutions for finding a way to enhance RET_KILL > to kill the process group. There's a lot of ways this could be done, > but I

Re: [PATCH 0/4] SELinux: Fine-tuning for some function implementations

2017-08-14 Thread Paul Moore
On Sun, Aug 13, 2017 at 10:43 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 13 Aug 2017 16:25:43 +0200 > > A few update suggestions were taken into account > from static source code analysis. > > Markus Elfring (4):

RE: [[PATCH v1] 22/37] [CIFS] SMBD: Implement API for upper layer to receive data to page

2017-08-14 Thread Tom Talpey
> -Original Message- > From: linux-cifs-ow...@vger.kernel.org [mailto:linux-cifs- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Wednesday, August 2, 2017 4:11 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org;

Re: [PATCH] pciehp: Fix infinite interupt handler loop

2017-08-14 Thread Bjorn Helgaas
On Tue, Aug 01, 2017 at 03:11:52AM -0400, Keith Busch wrote: > We've encountered a particular platform that under some circumstances > always has the power fault detected status raised. The pciehp irq handler > would loop forever because it thinks it is handling new events when in > fact the power

Re: [PATCH v2] PCI/MSI: Improve MSI alias detection

2017-08-14 Thread Bjorn Helgaas
On Tue, Aug 01, 2017 at 06:59:08PM +0100, Robin Murphy wrote: > Currently, we handle all DMA aliases equally when calculating MSI > requester IDs for the generic infrastructure. This turns out to be the > wrong thing to do in the face of pure DMA quirks like those of Marvell > SATA cards, where in

RE: [[PATCH v1] 26/37] [CIFS] SMBD: Send an immediate packet when it's needed

2017-08-14 Thread Tom Talpey
> -Original Message- > From: linux-cifs-ow...@vger.kernel.org [mailto:linux-cifs- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Wednesday, August 2, 2017 4:11 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org;

[PATCH 6/9] ASoc: cygnus: Fix problems with multichannel transfers

2017-08-14 Thread Lori Hikichi
Problems were found with multi-channel (4+) TDM transfers. The alignment of the channels within the frame could shift when starting a new transfer. In order to implement a fix the register programming sequence needed to be revised. Signed-off-by: Lori Hikichi ---

[PATCH 5/9] ASoC: cygnus: Remove support for 8 bit audio and for mono

2017-08-14 Thread Lori Hikichi
These modes of operation were not working properly. There is little to be gained by enabling these modes and the changes required to potentially fix these modes would complicate the driver. Signed-off-by: Lori Hikichi --- sound/soc/bcm/cygnus-ssp.c | 24

[PATCH 7/9] ASoC: cygnus: Remove set_fmt from SPDIF dai ops

2017-08-14 Thread Lori Hikichi
The SPDIF port cannot modify its format so a set_fmt function is not needed. Previously, we used a generic set_fmt for all ports and returned an error code for the SPDIF port. It is cleaner to not populate the set_fmt field. Signed-off-by: Lori Hikichi ---

[PATCH 0/9] ASoC: cygnus: Various improvements and fixes

2017-08-14 Thread Lori Hikichi
This patch series contains an number of improvements and refinements to the driver. There is also a fix for a problem when transferring four or more channels in TDM mode. Lori Hikichi (9): ASoC: cygnus: Add support for 384kHz frame rates ASoC: cygnus: Update bindings for audio clock changes

Re: [PATCH] pciehp: Fix infinite interupt handler loop

2017-08-14 Thread Keith Busch
On Mon, Aug 14, 2017 at 03:59:48PM -0500, Bjorn Helgaas wrote: > On Tue, Aug 01, 2017 at 03:11:52AM -0400, Keith Busch wrote: > > We've encountered a particular platform that under some circumstances > > always has the power fault detected status raised. The pciehp irq handler > > would loop

[PATCH 2/9] ASoC: cygnus: Update bindings for audio clock changes

2017-08-14 Thread Lori Hikichi
Allow each audio port to select which clock (if any) it wants to use. Signed-off-by: Lori Hikichi --- .../bindings/sound/brcm,cygnus-audio.txt | 70 ++ 1 file changed, 45 insertions(+), 25 deletions(-) diff --git

[PATCH 4/9] ASoC: cygnus: Only enable MCLK pins when in use

2017-08-14 Thread Lori Hikichi
The MCLK pins are now only enabled when they are in use. Signed-off-by: Lori Hikichi --- sound/soc/bcm/cygnus-ssp.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/soc/bcm/cygnus-ssp.c

[PATCH v2] msleep() delays - replace with usleep_range() in TPM 1.2/2.0 generic drivers

2017-08-14 Thread Hamza Attak
The patch simply replaces all msleep function calls with usleep_range calls in the generic drivers. Tested with an Infineon TPM 1.2, using the generic tpm-tis module, for a thousand PCR extends, we see results going from 1m57s unpatched to 40s with the new patch. We obtain similar results when

Re: [PATCH 2/2] PCI: dwc: spear13xx: utilize dw_pcie_readX_dbi/dw_pcie_writeX_dbi macros

2017-08-14 Thread Bjorn Helgaas
On Fri, Jul 14, 2017 at 02:07:35PM +0200, Niklas Cassel wrote: > Signed-off-by: Niklas Cassel Pratyush, are you OK with this? > --- > drivers/pci/dwc/pcie-spear13xx.c | 22 ++ > 1 file changed, 10 insertions(+), 12 deletions(-) > > diff --git

RE: [[PATCH v1] 16/37] [CIFS] SMBD: Post a SMBD message with no payload

2017-08-14 Thread Long Li
> -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: Sunday, August 13, 2017 3:24 AM > To: Long Li > Cc: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org; linux-kernel@vger.kernel.org;

[PATCH] checkpatch: Add --strict check for ifs with unnecessary parentheses

2017-08-14 Thread Joe Perches
An if statement test like if ((foo == bar) && (baz != qux)) can arguably be better written without the parentheses as if (foo == bar && baz != qux) Add a test to find these cases. Signed-off-by: Joe Perches --- David Miller recently commented on the use of

Re: [PATCH] arm64: bcm2837 dts: enable bcm2708 frambuffer driver for the raspberry pi-3

2017-08-14 Thread Eric Anholt
VOTARY GITHUB writes: > From 3200cb6fd787390df1bccf1bb1f7a67ca04136fd Mon Sep 17 00:00:00 2001 > From: VT-Github-Raspberrypi > Date: Tue, 8 Aug 2017 16:57:15 +0530 > Subject: [PATCH] arm64: bcm2837 dts: enable bcm2708

[PATCH v2] sctp: fully initialize the IPv6 address in sctp_v6_to_addr()

2017-08-14 Thread Alexander Potapenko
KMSAN reported use of uninitialized sctp_addr->v4.sin_addr.s_addr and sctp_addr->v6.sin6_scope_id in sctp_v6_cmp_addr() (see below). Make sure all fields of an IPv6 address are initialized, which guarantees that the IPv4 fields are also initialized.

Re: [PATCH v3 0/5] ACPI: DMA ranges management

2017-08-14 Thread Feng Kan
On Thu, Aug 3, 2017 at 5:32 AM, Lorenzo Pieralisi wrote: > This patch series is v3 of a previous posting: > > v2->v3: > - Fixed DMA masks computation > - Fixed size computation overflow in acpi_dma_get_range() > > v1->v2: > - Reworked

Re: [kernel-hardening] [PATCH v5 06/10] arm64/mm: Disable section mappings if XPFO is enabled

2017-08-14 Thread Laura Abbott
On 08/14/2017 09:22 AM, Tycho Andersen wrote: > On Sat, Aug 12, 2017 at 12:17:34PM +0100, Mark Rutland wrote: >> Hi, >> >> On Fri, Aug 11, 2017 at 03:13:02PM -0600, Tycho Andersen wrote: >>> On Fri, Aug 11, 2017 at 10:25:14AM -0700, Laura Abbott wrote: On 08/09/2017 01:07 PM, Tycho Andersen

Re: [PATCH v5 10/10] lkdtm: Add test for XPFO

2017-08-14 Thread Kees Cook
On Wed, Aug 9, 2017 at 1:07 PM, Tycho Andersen wrote: > From: Juerg Haefliger > > This test simply reads from userspace memory via the kernel's linear > map. > > hugepages is only supported on x86 right now, hence the ifdef. I'd prefer that the #ifdef

Re: [PATCH v2 1/1] i2c: aspeed: add proper support fo 24xx clock params

2017-08-14 Thread Wolfram Sang
On Fri, Jul 28, 2017 at 01:45:58PM -0700, Brendan Higgins wrote: > 24xx BMCs have larger clock divider granularity which can cause problems > when trying to set them as 25xx clock dividers; this adds clock setting > code specific to 24xx. > > This also fixes a potential issue where clock dividers

  1   2   3   4   5   6   7   8   9   10   >