[PATCH RFC 0/3] Improve stability of system clock

2017-05-17 Thread Miroslav Lichvar
This is an attempt to improve stability and accuracy of the system clock with very accurate time sources like the new PTP KVM clock or NTP/PTP using hardware timestamping. It affects mainly kernels running with NOHZ. It requires updating of the old ia64 and powerpc vsyscalls. The main problem is t

[PATCH RFC 2/3] timekeeping: Don't align frequency adjustments to ticks

2017-05-17 Thread Miroslav Lichvar
When the timekeeping multiplier is adjusted, the NTP error is adjusted to correct the clock for the misalignment of the update to the start of the tick. This error is corrected in later updates and the clock appears as if the frequency was changed exactly on the tick. Remove this correction to kee

[PATCH RFC 1/3] timekeeping: Remove support for old vsyscalls

2017-05-17 Thread Miroslav Lichvar
As the last users of CONFIG_GENERIC_TIME_VSYSCALL_OLD have been updated, the support can be removed from the timekeeping code. Cc: John Stultz Cc: Prarit Bhargava Cc: Richard Cochran Signed-off-by: Miroslav Lichvar --- include/linux/timekeeper_internal.h | 7 -- kernel/time/Kconfig

Re: [PATCH] mm,oom: fix oom invocation issues

2017-05-17 Thread Michal Hocko
On Wed 17-05-17 16:26:20, Roman Gushchin wrote: [...] > [ 25.781882] Out of memory: Kill process 492 (allocate) score 899 or > sacrifice child > [ 25.783874] Killed process 492 (allocate) total-vm:2052368kB, > anon-rss:1894576kB, file-rss:4kB, shmem-rss:0kB Are there any oom_reaper messages?

Re: [RFC/RFT PATCH v2 3/3] PCI/ACPI: Add ACPI pci_bus_find_numa_node() implementation

2017-05-17 Thread Robert Richter
On 17.05.17 17:04:24, Lorenzo Pieralisi wrote: > On Wed, May 17, 2017 at 04:35:58PM +0200, Robert Richter wrote: > > On 17.05.17 14:46:54, Lorenzo Pieralisi wrote: > > > > > More explicitly, I think the whole series should work also with the diff > > > below applied on top of it. Side note: for co

[PATCH v2] jbd2: preserve original nofs flag during journal restart

2017-05-17 Thread Tahsin Erdogan
When a transaction starts, start_this_handle() saves current PF_MEMALLOC_NOFS value so that it can be restored at journal stop time. Journal restart is a special case that calls start_this_handle() without stopping the transaction. start_this_handle() isn't aware that the original value is already

Re: [PATCH v5 1/2] selinux: add brief info to policydb

2017-05-17 Thread William Roberts
On Wed, May 17, 2017 at 9:04 AM, William Roberts wrote: > On Wed, May 17, 2017 at 8:43 AM, Sebastien Buisson > wrote: >> 2017-05-17 17:34 GMT+02:00 William Roberts : >>> Is there a particular reason to not just return policybrief_len here as >>> well, for consistency in the interface? Ho

[PATCH] ssb: Delete an error message for a failed memory allocation in ssb_devices_register()

2017-05-17 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 17 May 2017 18:12:16 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

Re: [PATCH v2 0/6] cpuset/mempolicies related fixes and cleanups

2017-05-17 Thread Michal Hocko
On Wed 17-05-17 10:11:34, Vlastimil Babka wrote: > Changes since RFC v1 [3]: > > - Reworked patch 2 after discussion with Christoph Lameter. > - Fix bug in patch 5 spotted by Hillf Danton. > - Rebased to mmotm-2017-05-12-15-53 > > I would like to stress that this patchset aims to fix issues and c

Re: [Linux-ima-devel] [PATCH 0/7] IMA: new parser for ima_restore_measurement_list()

2017-05-17 Thread Ken Goldman
On 5/17/2017 3:25 AM, Roberto Sassu wrote: The format of digestN is: :\0, the same used for the file digest. Since the format is changing from the SHA-1 log format anyway ... How do people feel about the colon and null terminated string format for algorithm identifiers? The TCG standard en

Re: [PATCH RFC 0/3] Improve stability of system clock

2017-05-17 Thread John Stultz
On Wed, May 17, 2017 at 9:13 AM, Miroslav Lichvar wrote: > This is an attempt to improve stability and accuracy of the system clock > with very accurate time sources like the new PTP KVM clock or NTP/PTP > using hardware timestamping. It affects mainly kernels running with > NOHZ. It requires upda

Re: [PATCH v1 1/3] of: base: Provide of_graph_get_port_parent()

2017-05-17 Thread Rob Herring
On Wed, May 17, 2017 at 10:03 AM, Kieran Bingham wrote: > From: Kieran Bingham > > When handling endpoints, the v4l2 async framework needs to identify the > parent device of a port endpoint. > > Adapt the existing of_graph_get_remote_port_parent() such that a caller > can obtain the parent of a p

Re: [PATCH] of: fdt: add missing allocation-failure check

2017-05-17 Thread Rob Herring
On Wed, May 17, 2017 at 05:29:09PM +0200, Johan Hovold wrote: > The memory allocator passed to __unflatten_device_tree() (e.g. a wrapped > kzalloc) can fail so add the missing sanity check to avoid dereferencing > a NULL pointer. > > Fixes: fe14042358fa ("of/flattree: Refactor unflatten_device_tre

Re: [PATCH 0/3] staging: android: ion: Minor clean ups and fixes

2017-05-17 Thread Laura Abbott
On 05/17/2017 01:15 AM, Archit Taneja wrote: > The recent ION clean ups introduced some leftover code that can be > removed, and a bug that comes up if the call to dma_buf_map_attachment() > from an importer fails. Fix these. > > Archit Taneja (3): > staging: android: ion: Remove unused members

Re: next-20170515: WARNING: CPU: 0 PID: 1 at arch/x86/mm/dump_pagetables.c:236 note_page+0x630/0x7e0

2017-05-17 Thread Luis R. Rodriguez
On Mon, May 15, 2017 at 05:12:18PM -0700, Kees Cook wrote: > On Mon, May 15, 2017 at 4:45 PM, Luis R. Rodriguez wrote: > > On Mon, May 15, 2017 at 3:57 PM, Kees Cook wrote: > >> On Mon, May 15, 2017 at 3:15 PM, Luis R. Rodriguez > >> wrote: > >>> On Tue, May 16, 2017 at 12:06:50AM +0200, Luis R

Re: [PATCH] scripts: check.c fix compile error

2017-05-17 Thread Rob Herring
On Tue, May 16, 2017 at 10:39 AM, Shuah Khan wrote: > On 05/16/2017 06:52 AM, Rob Herring wrote: >> On Mon, May 15, 2017 at 2:10 PM, Shuah Khan wrote: >>> Fix the following compile error: >> >> On what host? 32-bit I guess. > > Saw this on Odroid-xu4. > >> >> I'll take this, but can you also send

[PATCH -next] dma: bcm-sba-raid: fix build errors and dependencies

2017-05-17 Thread Randy Dunlap
Cc: Vinod Koul Cc: dmaeng...@vger.kernel.org --- drivers/dma/Kconfig |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-next-20170517.orig/drivers/dma/Kconfig +++ linux-next-20170517/drivers/dma/Kconfig @@ -101,7 +101,8 @@ config AXI_DMAC config BCM_SBA_RAID tristat

Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-17 Thread Alan Cox
> If we're adjusting applications, they should be made to avoid TIOSCTI > completely. This looks to me a lot like the symlink restrictions: yes, > userspace should be fixed to the do the right thing, but why not > provide support to userspace to avoid the problem entirely? We do it's called pty/tt

[RFC PATCH 00/11] Support for H3 Composite Output support

2017-05-17 Thread Icenowy Zheng
This patchset depends on the DE2 patchset, version 8 of that patchset is available at [1]. Allwinner H3 SoC features a TV Encoder like the one in Allwinner A13, which can only output TV Composite signal. The display pipeline of H3 is also special -- it has two mixers and two TCONs, of which the c

[RFC PATCH 01/11] dt-bindings: update the binding for Allwinner H3 TVE support

2017-05-17 Thread Icenowy Zheng
Allwinner H3 features a "DE2.0" and a TV Encoder. Add device tree bindings for the following parts: - H3 TCONs - H3 Mixers - The connection between H3 TCONs and H3 Mixers - H3 TV Encoder - H3 Display engine Signed-off-by: Icenowy Zheng --- .../bindings/display/sunxi/sun4i-drm.txt | 47

Re: [RFC][PATCH 1/5] tracing: Make sure RCU is watching before calling a stack trace

2017-05-17 Thread Steven Rostedt
On Fri, 12 May 2017 13:31:45 -0700 "Paul E. McKenney" wrote: > On Fri, May 12, 2017 at 04:05:32PM -0400, Steven Rostedt wrote: > > On Fri, 12 May 2017 11:50:03 -0700 > > "Paul E. McKenney" wrote: > > > > > On Fri, May 12, 2017 at 02:36:19PM -0400, Steven Rostedt wrote: > > > > On Fri, 12 Ma

[RFC PATCH 11/11] [DO NOT MERGE] ARM: sun8i: h3: enable TV output on Orange Pi PC

2017-05-17 Thread Icenowy Zheng
Orange Pi PC features a 3.5mm jack with TV output in it. Enable the TV output. As it currently do not have jack detection feature, do not merge this patch. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 12 1 file changed, 12 insertions(+) diff --gi

[RFC PATCH 05/11] drm: sun4i: add compatible for H3 display engine

2017-05-17 Thread Icenowy Zheng
Add a compatible string for H3 display engine in sun4i_drv code. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index 29bf1325ded6..c0de0741c923 100644 -

[RFC PATCH 03/11] drm: sun4i: ignore swapped mixer<->tcon connection for DE2

2017-05-17 Thread Icenowy Zheng
Some SoC's DE2 has two mixers. Defaultly the mixer0 is connected to tcon0 and mixer1 is connected to tcon1; however by setting a bit the connection can be swapped. As we now hardcode the default connection, ignore the bonus endpoint for the mixer's output and the TCON's input, as they stands for t

[RFC PATCH 04/11] drm: sun4i: add support for H3's TCON0/1

2017-05-17 Thread Icenowy Zheng
From: Icenowy Zheng Allwinner H3 has two special TCONs, both come without channel0. And the TCON1 of H3 has no special clocks even for the channel1. Add support for these kinds of TCON. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 78 --

Re: [PATCH v2 43/53] docs: update old references for DocBook from the documentation

2017-05-17 Thread Bjorn Helgaas
On Tue, May 16, 2017 at 09:16:35AM -0300, Mauro Carvalho Chehab wrote: > DocBook is mentioned several times at the documentation. Update > the obsolete references from it at the DocBook. > > Acked-by: SeongJae Park > Signed-off-by: Mauro Carvalho Chehab Acked-by: Bjorn Helgaas# for PCI/MSI-

Re: Kernel modules under new copyleft licence : (was Re: [PATCH v2] module.h: add copyleft-next >= 0.3.1 as GPL compatible)

2017-05-17 Thread Theodore Ts'o
On Wed, May 17, 2017 at 01:27:02AM +0200, Luis R. Rodriguez wrote: > > I have done the work though, however I can understand this might mean others > down the chain might need to burn some ink on this. Even if our position is: > > "we rather avoid any attorneys burning any ink and we prefer to ju

Re: [PATCH RFC 0/3] Improve stability of system clock

2017-05-17 Thread Miroslav Lichvar
On Wed, May 17, 2017 at 09:30:31AM -0700, John Stultz wrote: > So thanks for sending these out. I still need to look them over in > depth, but can I make another ask here? :) > > Could you submit your linux-tktest infrastructure to the kselftests dir? I can, but it's a mess that breaks frequentl

Re: [PATCH v5 1/2] selinux: add brief info to policydb

2017-05-17 Thread Sebastien Buisson
2017-05-17 18:04 GMT+02:00 William Roberts : > I'm assuming in the Lustre code you're going to call security_policy_brief(), > how would the caller know how big that buffer is going to be? We can determine it at configure time for instance, given that len as an output parameter would give the size

Re: [PATCH 09/22] scsi: hisi_sas: retrieve SAS address for pci-based controller

2017-05-17 Thread John Garry
On 17/05/2017 15:13, Arnd Bergmann wrote: On Wed, May 17, 2017 at 3:37 PM, John Garry wrote: On 17/05/2017 13:37, Arnd Bergmann wrote: Since this uses the _DSD information that was introduced for compatibility between device tree and ACPI based data, why not write the code so that it can wor

[RFC PATCH 06/11] drm: sun4i: add color space correction support for DE2 mixer

2017-05-17 Thread Icenowy Zheng
The DE2 mixer can do color space correction needed by TV Encoder with its DCSC sub-engine. Add support for it. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 35 +++ drivers/gpu/drm/sun4i/sun8i_mixer.h | 6 +- 2 files changed, 40 inse

Re: [PATCH RFC 0/3] Improve stability of system clock

2017-05-17 Thread John Stultz
On Wed, May 17, 2017 at 9:57 AM, Miroslav Lichvar wrote: > On Wed, May 17, 2017 at 09:30:31AM -0700, John Stultz wrote: >> So thanks for sending these out. I still need to look them over in >> depth, but can I make another ask here? :) >> >> Could you submit your linux-tktest infrastructure to th

[RFC PATCH 07/11] drm: sun4i: add support for the TV encoder in H3 SoC

2017-05-17 Thread Icenowy Zheng
Allwinner H3 features a TV encoder similar to the one in earlier SoCs, but with some different points about clocks: - It has a mod clock and a bus clock. - The mod clock must be at a fixed rate to generate signal. Add support for it. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/sun4i/sun4i_

[RFC PATCH 08/11] clk: sunxi-ng: allow CLK_DE to set CLK_PLL_DE for H3

2017-05-17 Thread Icenowy Zheng
Allwinner H3 features a PLL named CLK_PLL_DE, and a mod clock for the "Display Engine 2.0" named CLK_DE. As the name indicated, the CLK_PLL_DE is a PLL for CLK_DE. Only CLK_DE and CLK_TVE have a parent of CLK_PLL_DE, and CLK_TVE is also one part of the display clocks. So allow CLK_DE to set CLK_P

[RFC PATCH 09/11] clk: sunxi-ng: export CLK_PLL_DE for H3

2017-05-17 Thread Icenowy Zheng
The CLK_PLL_DE is needed to be referenced in device tree for H3, for both forcing the parent of PLL_DE. So export it to the device tree binding header. Signed-off-by: Icenowy Zheng --- drivers/clk/sunxi-ng/ccu-sun8i-h3.h | 3 +-- include/dt-bindings/clock/sun8i-h3-ccu.h | 2 ++ 2 files cha

[RFC PATCH 10/11] ARM: sun8i: h3: add display engine pipeline for TVE

2017-05-17 Thread Icenowy Zheng
As we have already the support for the TV encoder on Allwinner H3, add the display engine pipeline device tree nodes to its DTSI file. The H5 pipeline has some differences and will be enabled later. The currently-unused mixer0 and tcon0 are also needed, for the completement of the pipeline. Sign

Re: [PATCH 1/3] iommu: of: Fix check for returning EPROBE_DEFER

2017-05-17 Thread Bjorn Helgaas
On Wed, May 17, 2017 at 05:00:07PM +0530, Sricharan R wrote: > Now with iommu probe deferral, we return -EPROBE_DEFER > for master's that are connected to an iommu which is not s/master's/masters/ s/iommu/IOMMU/ in your English text (changelogs and comments). That seems to be the convention, bas

[RFC PATCH 02/11] drm: sun4i: add support for H3 mixers

2017-05-17 Thread Icenowy Zheng
From: Icenowy Zheng Allwinner H3 SoC has two mixers, one has 1 VI channel and 3 UI channels, and the other has 1 VI and 1 UI. Add support for these two variants. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 18 ++ 1 file changed, 18 insertions(+) dif

[PATCH v6 1/2] selinux: add brief info to policydb

2017-05-17 Thread Sebastien Buisson
Add policybrief field to struct policydb. It holds a brief info of the policydb, made of colon separated name and value pairs that give information about how the policy is applied in the security module(s). Note that the ordering of the fields in the string may change. Policy brief is computed eve

Re: [PATCH v6 1/3] of/pci/dma: fix DMA configuration for PCI masters

2017-05-17 Thread Bjorn Helgaas
On Tue, May 16, 2017 at 10:52:05AM +0530, Oza Pawandeep wrote: > current device framework and OF framework integration assumes s/current/The current/ > dma-ranges in a way where memory-mapped devices define their > dma-ranges. (child-bus-address, parent-bus-address, length). > > of_dma_configure

[PATCH v6 2/2] selinux: expose policy brief via selinuxfs

2017-05-17 Thread Sebastien Buisson
Expose policy brief via selinuxfs. Signed-off-by: Sebastien Buisson --- security/selinux/selinuxfs.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index e8fe914..2561f96 100644 --- a/security/selinux/se

Re: [PATCH v6 2/3] iommu/pci: reserve IOVA for PCI masters

2017-05-17 Thread Bjorn Helgaas
On Tue, May 16, 2017 at 10:52:06AM +0530, Oza Pawandeep wrote: > this patch reserves the IOVA for PCI masters. > ARM64 based SOCs may have scattered memory banks. > such as iproc based SOC has > > <0x 0x8000 0x0 0x8000>, /* 2G @ 2G */ > <0x0008 0x8000 0x3 0x8000>, /* 14

[PATCH] staging: netlogic: Delete an error message for a failed memory allocation in xlr_config_spill()

2017-05-17 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 17 May 2017 19:01:10 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

[PATCH v3 1/6] um: Use printk instead of printf in make_uml_dir

2017-05-17 Thread Masami Hiramatsu
Since this function will be called after printk buffer initialized, use printk as other functions do. Signed-off-by: Masami Hiramatsu --- Changes in v2: - Use "%s", __func__ according to checkpatches.pl --- arch/um/os-Linux/umid.c | 11 +++ 1 file changed, 7 insertions(+), 4 delet

[PATCH v3 0/6] um: Output messages to stderr and support quiet option

2017-05-17 Thread Masami Hiramatsu
Hello, Here is version 3 of um-quiet series. In this version I just fixed some printf format issues. V2 is here. https://lkml.org/lkml/2017/5/8/35 This series fixes some boot time printf output to stderr by adding os_info() and os_warn(). The information-level messages via os_info() are suppre

[PATCH 1/2] mm: avoid spurious 'bad pmd' warning messages

2017-05-17 Thread Ross Zwisler
When the pmd_devmap() checks were added by: commit 5c7fb56e5e3f ("mm, dax: dax-pmd vs thp-pmd vs hugetlbfs-pmd") to add better support for DAX huge pages, they were all added to the end of if() statements after existing pmd_trans_huge() checks. So, things like: - if (pmd_trans_huge(*pmd))

[PATCH v3 4/6] um: Add os_warn() for pre-boot warning/error messages

2017-05-17 Thread Masami Hiramatsu
Add os_warn() for printing out pre-boot warning/error messages in stderr. The messages via os_warn() are not suppressed by quiet option. Signed-off-by: Masami Hiramatsu --- arch/um/include/shared/os.h |2 ++ arch/um/os-Linux/util.c |9 + 2 files changed, 11 insertions(+) dif

[PATCH 2/2] dax: Fix race between colliding PMD & PTE entries

2017-05-17 Thread Ross Zwisler
We currently have two related PMD vs PTE races in the DAX code. These can both be easily triggered by having two threads reading and writing simultaneously to the same private mapping, with the key being that private mapping reads can be handled with PMDs but private mapping writes are always hand

[PATCH v3 5/6] um: Use os_warn to print out pre-boot warning/error messages

2017-05-17 Thread Masami Hiramatsu
Use os_warn() instead of printf/fprintf to print out pre-boot warning/error messages to stderr. Note that the help message and version message are kept to print out to stdout, because user explicitly specifies those options to get such information. Signed-off-by: Masami Hiramatsu --- Changes in

[PATCH] generic: add regression test for DAX PTE/PMD races

2017-05-17 Thread Ross Zwisler
This adds a regression test for the following kernel patches: mm: avoid spurious 'bad pmd' warning messages dax: Fix race between colliding PMD & PTE entries The above patches fix two related PMD vs PTE races in the DAX code. These can both be easily triggered by having two threads reading a

[PATCH v3 2/6] um: Add os_info() for pre-boot information messages

2017-05-17 Thread Masami Hiramatsu
Add os_info() for printing out pre-boot information level messages in stderr. The messages via os_info() are suppressed by "quiet" kernel command line. Signed-off-by: Masami Hiramatsu --- arch/um/include/shared/os.h |2 ++ arch/um/os-Linux/util.c | 25 + 2 files

[PATCH v3 3/6] um: Use os_info for the messages on normal path

2017-05-17 Thread Masami Hiramatsu
Use os_info() for printing out the messages on the normal execution path. Signed-off-by: Masami Hiramatsu --- Changes in v3: - Cast rlim_min/max to unsigned long long explicitly for avoiding printf-format warning. --- arch/um/kernel/um_arch.c|8 arch/um/os-Linux/main.c

[PATCH v3 6/6] um: console: Ignore console= option

2017-05-17 Thread Masami Hiramatsu
Ignore linux kernel's console= option at uml's console option handler. Since uml's con= option is only for setting up new console, and Linux kernel's console= option specify to which console kernel output its message, we can use both option for different purpose. Signed-off-by: Masami Hiramatsu -

Re: [PATCH RFC 0/3] Improve stability of system clock

2017-05-17 Thread Miroslav Lichvar
On Wed, May 17, 2017 at 10:02:00AM -0700, John Stultz wrote: > On Wed, May 17, 2017 at 9:57 AM, Miroslav Lichvar wrote: > > On Wed, May 17, 2017 at 09:30:31AM -0700, John Stultz wrote: > >> Could you submit your linux-tktest infrastructure to the kselftests dir? > > > > I can, but it's a mess that

Re: [PATCH v2] kbuild: skip install/check of headers right under uapi directories

2017-05-17 Thread Masahiro Yamada
2017-05-16 16:40 GMT+09:00 Nicolas Dichtel : > Le 16/05/2017 à 07:15, Masahiro Yamada a écrit : >> Since commit 61562f981e92 ("uapi: export all arch specifics >> directories"), "make INSTALL_HDR_PATH=$root/usr headers_install" >> deletes standard glibc headers and others in $root/usr/include. >> >>

Re: [PATCH] edac: thunderx: Replace pci_alloc_msix_exact

2017-05-17 Thread Jan Glauber
On Wed, May 17, 2017 at 06:35:05PM +0300, Sergei Temerkhanov wrote: > CIL... > > On Tue, May 16, 2017 at 12:54 PM, Jan Glauber wrote: > > Replace the deprecated pci_alloc_msix_exact() with > > pci_alloc_irq_vectors(). > > > > Avoid the container_of usage in the interrupt handler > > by simply pas

Re: [PATCH linux-next v2 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-05-17 Thread Leonard Crestez
On Mon, 2017-05-01 at 03:31 -0700, jiada_w...@mentor.com wrote: > From: Jiada Wang > > previously burst length (BURST_LENGTH) is always set to equal > to bits_per_word, causes a 10us gap between each word in > transfer, which significantly affects performance. > > This patch uses 32 bits transfe

Re: [PATCH] ARM: sun8i: v3s: enable SPI

2017-05-17 Thread Maxime Ripard
On Wed, May 17, 2017 at 09:52:57PM +0800, Icenowy Zheng wrote: > Allwinner V3s SoC has a SPI controller, muxed with the MMC2 controller > at PC bank. The controller itself is identical to the one in H3 SoC. > > Add device tree node and the only pinmux node for it. > > Tested with a Winbond W25Q12

Re: [PATCH 1/2] mm: avoid spurious 'bad pmd' warning messages

2017-05-17 Thread Dave Hansen
On 05/17/2017 10:16 AM, Ross Zwisler wrote: > @@ -3061,7 +3061,7 @@ static int pte_alloc_one_map(struct vm_fault *vmf) >* through an atomic read in C, which is what pmd_trans_unstable() >* provides. >*/ > - if (pmd_trans_unstable(vmf->pmd) || pmd_devmap(*vmf->pmd)) > +

Re: [PATCH v2 3/3] arm: dts: rk322x: add watchdog device node.

2017-05-17 Thread Heiko Stuebner
Am Mittwoch, 17. Mai 2017, 17:52:26 CEST schrieb Frank Wang: > Add watchdog device node for rk322x SoC. > > Signed-off-by: Frank Wang applied for 4.13, after fixing the subject up a bit (ARM: dts: rockchip: ...) Thanks Heiko

Re: [PATCH V2 6/6] tty: serial: lpuart: add a more accurate baud rate calculation method

2017-05-17 Thread Stefan Agner
On 2017-05-16 20:47, Dong Aisheng wrote: > On Mon, May 15, 2017 at 10:06:41AM -0700, Stefan Agner wrote: >> On 2017-05-15 00:48, Dong Aisheng wrote: >> > On new LPUART versions, the oversampling ratio for the receiver can be >> > changed from 4x (00011) to 32x (1) which could help us get a more

commit cfafcd117 "futex: Rework futex_lock_pi() to use rt_mutex_*_proxy_lock()" causes glibc nptl/tst-robustpi8 failure

2017-05-17 Thread Markus Trippelsdorf
Since: commit cfafcd117da0216520568c195cb2f6cd1980c4bb Author: Peter Zijlstra Date: Wed Mar 22 11:35:58 2017 +0100 futex: Rework futex_lock_pi() to use rt_mutex_*_proxy_lock() glibc's nptl/tst-robustpi8 testcase fails: glibc-build % ./nptl/tst-robustpi8 tst-robustpi8: ../nptl/pthread_mute

Re: [PATCH v8 0/9] Initial Allwinner Display Engine 2.0 Support

2017-05-17 Thread Maxime Ripard
On Wed, May 17, 2017 at 10:47:16PM +0800, Icenowy Zheng wrote: > This patchset is the initial patchset for Allwinner DE2 support. > > As the DE2 CCU support is already applied, this patchset now contains > only DRM changes and device tree changes. > > The SoC used to develop this patchset is V3s

Re: [PATCH v8 0/9] Initial Allwinner Display Engine 2.0 Support

2017-05-17 Thread Icenowy Zheng
于 2017年5月18日 GMT+08:00 上午1:37:39, Maxime Ripard 写到: >On Wed, May 17, 2017 at 10:47:16PM +0800, Icenowy Zheng wrote: >> This patchset is the initial patchset for Allwinner DE2 support. >> >> As the DE2 CCU support is already applied, this patchset now contains >> only DRM changes and device tre

Re: [copyleft-next] Re: Kernel modules under new copyleft licence : (was Re: [PATCH v2] module.h: add copyleft-next >= 0.3.1 as GPL compatible)

2017-05-17 Thread Luis R. Rodriguez
On Wed, May 17, 2017 at 12:55:02PM -0400, Theodore Ts'o wrote: > On Wed, May 17, 2017 at 01:27:02AM +0200, Luis R. Rodriguez wrote: > > > > I have done the work though, however I can understand this might mean others > > down the chain might need to burn some ink on this. Even if our position is:

Re: commit cfafcd117 "futex: Rework futex_lock_pi() to use rt_mutex_*_proxy_lock()" causes glibc nptl/tst-robustpi8 failure

2017-05-17 Thread Florian Weimer
On 05/17/2017 07:36 PM, Markus Trippelsdorf wrote: > Since: > commit cfafcd117da0216520568c195cb2f6cd1980c4bb > Author: Peter Zijlstra > Date: Wed Mar 22 11:35:58 2017 +0100 > > futex: Rework futex_lock_pi() to use rt_mutex_*_proxy_lock() > > glibc's nptl/tst-robustpi8 testcase fails: > >

Re: [PATCH v2] Added "Preserve Boot Time Support"

2017-05-17 Thread Sascha Hauer
On Wed, May 17, 2017 at 02:42:24PM +, Mirea, Bogdan-Stefan wrote: > Hello Sascha, > > On Wednesday, May 17, 2017 2:30 PM Sascha Hauer wrote: > > As John already said, there's the read_boot_clock64() interface which > > should be used here. > > By using the read_boot_clock64() interface you can

Re: [RFC][PATCH 3/5] kprobes: Take get_online_cpus() before taking jump_label_lock()

2017-05-17 Thread Masami Hiramatsu
On Fri, 12 May 2017 13:15:47 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > jump_label_lock() is taken under get_online_cpus(). Make sure that kprobes > follows suit. BTW, register_aggr_kprobe() is called under kprobe_mutex locked. Is that OK? Thank you, > > Signed-off-b

Re: next-20170515: WARNING: CPU: 0 PID: 1 at arch/x86/mm/dump_pagetables.c:236 note_page+0x630/0x7e0

2017-05-17 Thread Kees Cook
On Wed, May 17, 2017 at 9:40 AM, Luis R. Rodriguez wrote: > Yes, but I had killed that boot session again, so upon my next boot > I had a different layout, the ASLR gap was much larger: > > ---[ Modules ]--- > 0xc000-0xc01b1728K >pte

Re: [PATCH V2 1/2] clk: rockchip: add ids for camera

2017-05-17 Thread Heiko Stuebner
Am Dienstag, 25. April 2017, 14:41:09 CEST schrieb Eddie Cai: > we use SCLK_TESTCLKOUT1 and SCLK_TESTCLKOUT2 for camera, so add those ids. > > Signed-off-by: Eddie Cai applied for 4.13 Thanks Heiko

Re: [PATCH V2 2/2] clk: rockchip: fix the incorrect ids

2017-05-17 Thread Heiko Stuebner
Am Dienstag, 25. April 2017, 14:41:10 CEST schrieb Eddie Cai: > the ids of clk_testout1 and clk_testout2 is incorrect now. let's correct it > > Signed-off-by: Eddie Cai applied for 4.13, after fixing the subject up a bit [the old ids are not incorrect, there simply weren't any assigned to the te

Re: [PATCH v2 1/3] clk: rockchip: fix up the RK3228 clk cpu setting table

2017-05-17 Thread Heiko Stuebner
Am Freitag, 28. April 2017, 15:02:45 CEST schrieb Elaine Zhang: > support more cpu freq, and add armcore div setting. > > Signed-off-by: Elaine Zhang applied for 4.13, after fixing the indentations of the defines to match the previous style (and other rockchip socs). Thanks Heiko

Re: [PATCH v2 2/3] clk: rockchip: add clock-ids for rk3228 clocks

2017-05-17 Thread Heiko Stuebner
Am Freitag, 28. April 2017, 15:02:46 CEST schrieb Elaine Zhang: > This patch exports related BUS/VPU/RGA/HDCP/IEP/TSP/WIFI/ > VIO/USB/EFUSE/GPU/CRYPTO clocks for dts reference. > > Signed-off-by: Elaine Zhang applied for 4.13 Thanks Heiko

Re: [PATCH v2 3/3] clk: rockchip: export rk3228 clocks ID

2017-05-17 Thread Heiko Stuebner
Am Freitag, 28. April 2017, 15:02:47 CEST schrieb Elaine Zhang: > This patch exports related BUS/VPU/RGA/HDCP/IEP/TSP/WIFI/ > VIO/USB/EFUSE/GPU/CRYPTO clocks for dts reference. > > Signed-off-by: Elaine Zhang applied for 4.13 Thanks Heiko

Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers

2017-05-17 Thread Badhri Jagan Sridharan
For non-pd case, Should I instead say that the low level driver might optionally choose to perform a best case effort of performing a role swap by disconnect and reconnect ? Does the following description look better ? Description: The supported power roles. This attribute can be

Re: [PATCH v2] hwspinlock: sprd: Add hardware spinlock driver

2017-05-17 Thread Bjorn Andersson
On Tue 16 May 22:59 PDT 2017, Baolin Wang wrote: > The Spreadtrum hardware spinlock device can provide hardware assistance > for synchronization between the multiple subsystems. > > Signed-off-by: Baolin Wang > --- > Changes since v1: > - Remove some unused macros and functions. > - Convert re

Re: [PATCH v3] fscrypt: Add support for AES-128-CBC

2017-05-17 Thread Eric Biggers
Hi David, thanks for the update! On Wed, May 17, 2017 at 01:21:04PM +0200, David Gstir wrote: > From: Daniel Walter > > fscrypt provides facilities to use different encryption algorithms which > are selectable by userspace when setting the encryption policy. Currently, > only AES-256-XTS for fil

Re: [PATCH 3/3] EDAC: mv64x60: replace in_le32/out_le32 with ioread32/iowrite32

2017-05-17 Thread Borislav Petkov
Top-posting so that the PPC list can see the whole patch below. Since I don't know PPC, let me add PPC ML to CC for a confirmation this change is correct. Which brings me to the tangential: this driver is from 2006-ish and is for some "Marvell MV64x60 Memory Controller kernel module for PPC platf

Re: [PATCH -next] dma: bcm-sba-raid: fix build errors and dependencies

2017-05-17 Thread Bjorn Andersson
On Wed, May 17, 2017 at 9:40 AM, Randy Dunlap wrote: > From: Randy Dunlap > > Fix build errors when COMPILE_TEST is enabled but RAID6_PQ is not > enabled (seen on x86_64). > > drivers/built-in.o: In function `sba_prep_dma_pq_req': > (.text+0x16132): undefined reference to `raid6_gflog' > drivers/

Re: [PATCH v2 1/3] arm: dts: rk322x: fix i2s1 pinctrl error

2017-05-17 Thread Heiko Stuebner
Am Mittwoch, 17. Mai 2017, 17:52:24 CEST schrieb Frank Wang: > From: Sugar Zhang > > Refer to Chapter 5.3.2 of rk3229 TRM, we can see that GPIO1A[2,4,5] > using RK_FUNC_2 not RK_FUNC_1. This patch fixes it. > > Signed-off-by: Sugar Zhang > Signed-off-by: Frank Wang applied for 4.13, after fix

[PATCH] drm/amd/powerplay: ensure loop does not wraparound on decrement

2017-05-17 Thread Colin King
From: Colin Ian King The current for loop decrements i when it is zero and this causes a wrap-around back to ~0 because i is unsigned. In the unlikely event that mask is 0, the loop will run forever. Fix this so we can't loop forever. Detected by CoverityScan, CID#1435469 ("Unsigned compared aga

Re: [PATCH net-next] net: dsa: store CPU port pointer in the tree

2017-05-17 Thread David Miller
From: Vivien Didelot Date: Tue, 16 May 2017 14:10:33 -0400 > A dsa_switch_tree instance holds a dsa_switch pointer and a port index > to identify the switch port to which the CPU is attached. > > Now that the DSA layer has a dsa_port structure to hold this data, use > it to point the switch CPU

Re: [RESEND PATCH v3] UBI: add debugfs file for tracking PEB state

2017-05-17 Thread Zach Brown
On Wed, May 17, 2017 at 12:36:35PM +0200, Honza Petrouš wrote: > 2017-05-16 20:22 GMT+02:00 Richard Weinberger : > > Zach, > > > > Am 16.05.2017 um 19:58 schrieb Zach Brown: > >> From: Ben Shelton > >> > >> Add a file under debugfs to allow easy access to the erase count for > >> each physical era

Re: [RFC V1 1/1] net: cdc_ncm: Reduce memory use when kernel memory low

2017-05-17 Thread David Miller
From: Bjørn Mork Date: Tue, 16 May 2017 20:24:10 +0200 > Jim Baxter writes: > >> The CDC-NCM driver can require large amounts of memory to create >> skb's and this can be a problem when the memory becomes fragmented. >> >> This especially affects embedded systems that have constrained >> resour

Re: [PATCH 1/2] mm: avoid spurious 'bad pmd' warning messages

2017-05-17 Thread Ross Zwisler
On Wed, May 17, 2017 at 10:33:58AM -0700, Dave Hansen wrote: > On 05/17/2017 10:16 AM, Ross Zwisler wrote: > > @@ -3061,7 +3061,7 @@ static int pte_alloc_one_map(struct vm_fault *vmf) > > * through an atomic read in C, which is what pmd_trans_unstable() > > * provides. > > */ > > -

[PATCH v10 2/3] fpga manager: Add altera-ps-spi driver for Altera FPGAs

2017-05-17 Thread Anatolij Gustschin
From: Joshua Clayton altera-ps-spi loads FPGA firmware over SPI, using the "passive serial" interface on Altera Arria 10, Cyclone V or Stratix V FPGAs. This is one of the simpler ways to set up an FPGA at runtime. The signal interface is close to unidirectional SPI with lsb first. Signed-off-by

[PATCH v10 1/3] doc: dt: add altera-ps-spi binding document

2017-05-17 Thread Anatolij Gustschin
From: Joshua Clayton Describe an altera-ps-spi devicetree entry, required features Signed-off-by: Joshua Clayton Acked-by: Rob Herring Signed-off-by: Anatolij Gustschin --- Changes in v10: - fix compatible string in example - add Arria 10 compatible - s/spi/SPI/ - reword to remove entries

[PATCH] CIFS: check if pages is null rather than bv for a failed allocation

2017-05-17 Thread Colin King
From: Colin Ian King pages is being allocated however a null check on bv is being used to see if the allocation failed. Fix this by checking if pages is null. Detected by CoverityScan, CID#1432974 ("Logically dead code") Fixes: ccf7f4088af2dd ("CIFS: Add asynchronous context to support kernel A

[PATCH v10 3/3] ARM: dts: imx6q-evi: support cyclone-ps-spi

2017-05-17 Thread Anatolij Gustschin
From: Joshua Clayton Add support for Altera cyclone V FPGA connected to an spi port to the evi devicetree file Signed-off-by: Joshua Clayton --- Changes in v10: - none arch/arm/boot/dts/imx6q-evi.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx6

Re: [PATCH v6 1/2] selinux: add brief info to policydb

2017-05-17 Thread Stephen Smalley
On Thu, 2017-05-18 at 02:09 +0900, Sebastien Buisson wrote: > Add policybrief field to struct policydb. It holds a brief info > of the policydb, made of colon separated name and value pairs > that give information about how the policy is applied in the > security module(s). > Note that the ordering

Re: [kernel-hardening] Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-17 Thread Daniel Micay
On Wed, 2017-05-17 at 17:41 +0100, Alan Cox wrote: > > If we're adjusting applications, they should be made to avoid > > TIOSCTI > > completely. This looks to me a lot like the symlink restrictions: > > yes, > > userspace should be fixed to the do the right thing, but why not > > provide support to

Re: [PATCH v2 2/3] arm: dts: rk322x: correct uart2 pinctrl and add another sets

2017-05-17 Thread Heiko Stuebner
Am Mittwoch, 17. Mai 2017, 17:52:25 CEST schrieb Frank Wang: > Correct UART2 PINCTRL flag and add another PINCTRL sets for UART2 > in case of confict with SDMMC. > > Signed-off-by: Frank Wang I've split that into 2 patches: - pull-up fix - addition of alternative pinctrl (also moved the uart21

Re: [PATCH v5 1/2] selinux: add brief info to policydb

2017-05-17 Thread William Roberts
On Wed, May 17, 2017 at 10:00 AM, Sebastien Buisson wrote: > 2017-05-17 18:04 GMT+02:00 William Roberts : >> I'm assuming in the Lustre code you're going to call security_policy_brief(), >> how would the caller know how big that buffer is going to be? > > We can determine it at configure time for

Re: [PATCH v7 00/26] x86: Enable User-Mode Instruction Prevention

2017-05-17 Thread Ricardo Neri
Hi Ingo, Thomas, On Fri, 2017-05-05 at 11:16 -0700, Ricardo Neri wrote: > This is v7 of this series. The six previous submissions can be found > here [1], here [2], here[3], here[4], here[5] and here[6]. This > version > addresses the comments received in v6 plus improvements of the > handling > o

Re: [PATCH 2/2] kbuild: clang: Disable the 'duplicate-decl-specifier' warning

2017-05-17 Thread Matthias Kaehlcke
El Wed, May 17, 2017 at 09:35:57AM +0200 Arnd Bergmann ha dit: > On Tue, May 16, 2017 at 11:41 PM, Doug Anderson wrote: > > Hi > > > > On Fri, Apr 21, 2017 at 2:39 PM, Matthias Kaehlcke > > wrote: > >> clang generates plenty of these warnings in different parts of the code. > >> They are mostly

Re: [PATCH v5 17/32] x86/mm: Add support to access boot related data in the clear

2017-05-17 Thread Tom Lendacky
On 5/15/2017 1:35 PM, Borislav Petkov wrote: On Tue, Apr 18, 2017 at 04:19:21PM -0500, Tom Lendacky wrote: Boot data (such as EFI related data) is not encrypted when the system is booted because UEFI/BIOS does not run with SME active. In order to access this data properly it needs to be mapped d

Re: [PATCH] sparc64: Fix mapping of 64k pages with MAP_FIXED

2017-05-17 Thread David Miller
From: Nitin Gupta Date: Mon, 15 May 2017 16:28:17 -0700 > An incorrect huge page alignment check caused > mmap failure for 64K pages when MAP_FIXED is used > with address not aligned to HPAGE_SIZE. > > Orabug: 25885991 > > Signed-off-by: Nitin Gupta Applied, but I had to add an appropriate "F

Re: [PATCH v6 1/2] selinux: add brief info to policydb

2017-05-17 Thread William Roberts
On Wed, May 17, 2017 at 11:30 AM, Stephen Smalley wrote: > On Thu, 2017-05-18 at 02:09 +0900, Sebastien Buisson wrote: >> Add policybrief field to struct policydb. It holds a brief info >> of the policydb, made of colon separated name and value pairs >> that give information about how the policy i

Re: [PATCH] dmaengine: remove redundant null check on req

2017-05-17 Thread Dan Williams
On Wed, May 17, 2017 at 6:35 AM, Colin King wrote: > From: Colin Ian King > > Req is never null on at the point of the null check, so > remove this redundant check and just return &req->tx. > > Detected by CoverityScan, CID#1436147 ("Logically dead code") > > Signed-off-by: Colin Ian King Hi Co

Re: races between blk-cgroup operations and I/O scheds in blk-mq (?)

2017-05-17 Thread Tejun Heo
Hello, On Mon, May 15, 2017 at 09:49:13PM +0200, Paolo Valente wrote: > So, unless you tell me that there are other races I haven't seen, or, > even worse, that I'm just talking nonsense, I have thought of a simple > solution to address this issue without resorting to the request_queue > lock: fur

<    2   3   4   5   6   7   8   9   10   >