[PATCH v3 34/34] x86: mm: Convert dump_pagetables to use walk_page_range

2019-02-27 Thread Steven Price
Make use of the new functionality in walk_page_range to remove the arch page walking code and use the generic code to walk the page tables. The effective permissions are passed down the chain using new fields in struct pg_state. The KASAN optimisation is implemented by including test_p?d callback

[PATCH v3 27/34] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-02-27 Thread Steven Price
The pte_hole() callback is called at multiple levels of the page tables. Code dumping the kernel page tables needs to know what at what depth the missing entry is. Add this is an extra parameter to pte_hole(). When the depth isn't know (e.g. processing a vma) then -1 is passed. The depth that is r

[PATCH v3 32/34] x86/mm: Convert ptdump_walk_pgd_level_debugfs() to take an mm_struct

2019-02-27 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct. This means that ptdump_walk_pgd_level_core() is now always passed a valid pgd, so drop the support for pgd==NULL. Signed-off-by: Steven Price --- arch/x86/i

[PATCH v3 30/34] x86/mm: Point to struct seq_file from struct pg_state

2019-02-27 Thread Steven Price
mm/dump_pagetables.c passes both struct seq_file and struct pg_state down the chain of walk_*_level() functions to be passed to note_page(). Instead place the struct seq_file in struct pg_state and access it from struct pg_state (which is private to this file) in note_page(). Signed-off-by: Steven

[PATCH v3 26/34] mm: pagewalk: Allow walking without vma

2019-02-27 Thread Steven Price
Since 48684a65b4e3: "mm: pagewalk: fix misbehavior of walk_page_range for vma(VM_PFNMAP)", page_table_walk() will report any kernel area as a hole, because it lacks a vma. This means each arch has re-implemented page table walking when needed, for example in the per-arch ptdump walker. Remove the

Re: [PATCH 2/3] drm/virtio: implement prime pin/unpin

2019-02-27 Thread Noralf Trønnes
Den 27.02.2019 15.44, skrev Gerd Hoffmann: > virtio-gpu objects never move around, so effectively they are pinned > all the time. This makes the the implementation pretty easy ;) > > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/virtio/virtgpu_prime.c | 6 +++--- > 1 file changed, 3 i

Re: [PATCH v2 08/10] MIPS: SGI-IP27: use generic PCI driver

2019-02-27 Thread Thomas Bogendoerfer
On Fri, 22 Feb 2019 06:46:29 -0800 Christoph Hellwig wrote: > > diff --git a/arch/mips/include/asm/dma-direct.h > > b/arch/mips/include/asm/dma-direct.h > > index b5c240806e1b..bd11e7934df1 100644 > > --- a/arch/mips/include/asm/dma-direct.h > > +++ b/arch/mips/include/asm/dma-direct.h > > @@ -2

Re: [PATCH 1/3] drm/virtio: implement prime mmap

2019-02-27 Thread Noralf Trønnes
Den 27.02.2019 15.44, skrev Gerd Hoffmann: > Sync gem vm_node.start with ttm vm_node.start, > then we can just call drm_gem_prime_mmap(). > > Signed-off-by: Gerd Hoffmann > --- Acked-by: Noralf Trønnes

Re: [PATCH 3/3] drm/virtio: implement prime export

2019-02-27 Thread Noralf Trønnes
Den 27.02.2019 15.44, skrev Gerd Hoffmann: > Just run drm_prime_pages_to_sg() on the ttm pages list to get an > sg_table for export. The pages list is created at object initialization > time, so there should be no need to handle an unpopulated page list. > Add a sanity check nevertheless. > >

Re: [PATCH net] sctp: get sctphdr by offset in sctp_compute_cksum

2019-02-27 Thread Neil Horman
On Wed, Feb 27, 2019 at 08:53:26PM +0800, Xin Long wrote: > On Tue, Feb 26, 2019 at 8:29 PM Neil Horman wrote: > > > > On Tue, Feb 26, 2019 at 12:15:54AM +0800, Xin Long wrote: > > > On Mon, Feb 25, 2019 at 10:08 PM Neil Horman > > > wrote: > > > > > > > > On Mon, Feb 25, 2019 at 09:20:44PM +080

[PATCH] mm/page_ext: fix an imbalance with kmemleak

2019-02-27 Thread Qian Cai
After offlined a memory block, kmemleak scan will trigger a crash, as it encounters a page ext address that has already been freed during memory offlining. At the beginning in alloc_page_ext(), it calls kmemleak_alloc(), but it does not call kmemleak_free() in __free_page_ext(). BUG: unable to han

Re: [PATCH 1/5] x86/percpu: Differentiate this_cpu_{}() and __this_cpu_{}()

2019-02-27 Thread Linus Torvalds
On Wed, Feb 27, 2019 at 8:48 AM Peter Zijlstra wrote: > > On Wed, Feb 27, 2019 at 08:14:09AM -0800, Linus Torvalds wrote: > > In particular, making it "asm volatile" really is a big hammer > > approach. It's worth noting that the *other* this_cpu_xyz ops don't > > even do that. > > Right, this pat

Re: [PATCH] mm/page_ext: fix an imbalance with kmemleak

2019-02-27 Thread Catalin Marinas
On Wed, Feb 27, 2019 at 12:15:56PM -0500, Qian Cai wrote: > After offlined a memory block, kmemleak scan will trigger a crash, as it > encounters a page ext address that has already been freed during memory > offlining. At the beginning in alloc_page_ext(), it calls > kmemleak_alloc(), but it does

[PATCH v2] mm/page_ext: fix an imbalance with kmemleak

2019-02-27 Thread Qian Cai
After offlined a memory block, kmemleak scan will trigger a crash, as it encounters a page ext address that has already been freed during memory offlining. At the beginning in alloc_page_ext(), it calls kmemleak_alloc(), but it does not call kmemleak_free() in free_page_ext(). BUG: unable to handl

[PATCHv2 2/5] Documentation: dt: edac: Add Stratix10 Peripheral bindings

2019-02-27 Thread thor . thayer
From: Thor Thayer Add peripheral bindings for Stratix10 EDAC to capture the differences between the ARM64 and ARM32 architecture. Signed-off-by: Thor Thayer --- v2 No change --- .../devicetree/bindings/edac/socfpga-eccmgr.txt| 106 + 1 file changed, 106 insertions(+) d

[PATCHv2 5/5] EDAC, altera: Remove Stratix10 Machine compatible check

2019-02-27 Thread thor . thayer
From: Thor Thayer Replace the Stratix10 Machine compatible check with specific ECC block compatible tests. Signed-off-by: Thor Thayer --- v2 New patch --- drivers/edac/altera_edac.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/edac/altera_edac

[PATCHv2 4/5] arm64: dts: stratix10: Use new Stratix10 EDAC bindings

2019-02-27 Thread thor . thayer
From: Thor Thayer Use the new Stratix10 binding format for EDAC nodes. Signed-off-by: Thor Thayer --- v2 No change --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 25 --- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/altera/socf

Re: linux-next: Tree for Feb 27 (mshyperv)

2019-02-27 Thread Randy Dunlap
On 2/26/19 10:44 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190226: > on i386: ../arch/x86/kernel/cpu/mshyperv.c: In function ‘ms_hyperv_init_platform’: ../arch/x86/kernel/cpu/mshyperv.c:339:3: error: ‘x2apic_phys’ undeclared (first use in this function) x2apic_phys = 1; ^

[PATCHv2 3/5] EDAC, altera: Skip DB IRQ for Stratix10

2019-02-27 Thread thor . thayer
From: Thor Thayer Stratix10 Double Bit errors are configured as SErrors so skip the Double Bit IRQ initialization if Stratix10. Since all the ECC peripherals are handled in this routine, the machine compatible device tree test is used here instead of multiple ECC block device tree compatible tes

[PATCHv2 1/5] Documentation: dt: edac: Fix Stratix10 IRQ bindings

2019-02-27 Thread thor . thayer
From: Thor Thayer Fix Stratix10 ECC bindings to specify only the single bit error. On Stratix10 double bit errors are handled as SErrors instead of interrupts. Indicate the differences between the ARM64 and ARM32 EDAC architecture in the bindings. Signed-off-by: Thor Thayer --- v2 No change ---

[PATCHv2 0/5] Update Stratix10 EDAC Bindings

2019-02-27 Thread thor . thayer
From: Thor Thayer Instead of using the Arria10 (ARM32) EDAC bindings for Stratix10 (ARM64), create Stratix10 specific EDAC bindings to capture architecture differences between ARM32 and ARM64. This requires fixing the previous Stratix10 bindings. Also add the peripheral bindings for the Stratix10

Re: [PATCH v2] mm/page_ext: fix an imbalance with kmemleak

2019-02-27 Thread Catalin Marinas
On Wed, Feb 27, 2019 at 12:24:45PM -0500, Qian Cai wrote: > After offlined a memory block, kmemleak scan will trigger a crash, as it > encounters a page ext address that has already been freed during memory > offlining. At the beginning in alloc_page_ext(), it calls > kmemleak_alloc(), but it does

Re: [PATCH 5/6] objtool: Add UACCESS validation

2019-02-27 Thread Peter Zijlstra
On Wed, Feb 27, 2019 at 04:40:28PM +0100, Dmitry Vyukov wrote: > On Wed, Feb 27, 2019 at 3:33 PM Peter Zijlstra wrote: > > Urgh, kasan_report() is definitely unsafe. Now, admitedly we should > > 'never' hit that, but it does leave us up a creek without a paddle. > If SMAP detects additional bugs

Re: [PATCH v4 perf,bpf 07/15] perf, bpf: save bpf_prog_info information as headers to perf.data

2019-02-27 Thread Song Liu
> On Feb 27, 2019, at 5:21 AM, Jiri Olsa wrote: > > On Mon, Feb 25, 2019 at 04:20:11PM -0800, Song Liu wrote: > > SNIP > >> +if (info_len > sizeof(struct bpf_prog_info)) { >> +pr_warning("detected invalid bpf_prog_info\n"); >> +goto out; >>

Re: Support sample context in perf report

2019-02-27 Thread Andi Kleen
On Wed, Feb 27, 2019 at 05:16:59PM +0100, Jiri Olsa wrote: > On Wed, Feb 27, 2019 at 08:01:35AM -0800, Andi Kleen wrote: > > > > Also available in > > > > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git > > > > perf/streams-2 > > > > > > your post is missing this patch, it's only

Re: [PATCH v3 23/34] xtensa: mm: Add p?d_large() definitions

2019-02-27 Thread Max Filippov
On Wed, Feb 27, 2019 at 9:07 AM Steven Price wrote: > > walk_page_range() is going to be allowed to walk page tables other than > those of user space. For this it needs to know when it has reached a > 'leaf' entry in the page tables. This information is provided by the > p?d_large() functions/macr

Re: [PATCH 5/6] objtool: Add UACCESS validation

2019-02-27 Thread Peter Zijlstra
On Wed, Feb 27, 2019 at 08:18:21AM -0800, Linus Torvalds wrote: > So the whole "run with AC on" thing isn't a big deal, apart from the > scheduling case. > > And we know how to fix the scheduling case by just doing the > save/restore thing.. Right, but I was hoping to avoid having to do that; an

RE: [PATCH V6 1/3] x86/Hyper-V: Set x2apic destination mode to physical when x2apic is available

2019-02-27 Thread Michael Kelley
From: Tianyu Lan Sent: Wednesday, February 27, 2019 6:54 AM > > Hyper-V doesn't provide irq remapping for IO-APIC. To enable x2apic, > set x2apic destination mode to physcial mode when x2apic is available > and Hyper-V IOMMU driver makes sure cpus assigned with IO-APIC irqs have > 8-bit APIC id.

RE: [PATCH V6 2/3] IOMMU/Hyper-V: Add Hyper-V stub IOMMU driver

2019-02-27 Thread Michael Kelley
From: lantianyu1...@gmail.com Sent: Wednesday, February 27, 2019 6:54 AM > > On the bare metal, enabling X2APIC mode requires interrupt remapping > function which helps to deliver irq to cpu with 32-bit APIC ID. > Hyper-V doesn't provide interrupt remapping function so far and Hyper-V > MSI prot

Re: [PATCH AUTOSEL 4.20 06/77] ASoC: soc-core: defer card probe until all component is added to list

2019-02-27 Thread Sasha Levin
On Fri, Feb 15, 2019 at 11:57:12AM +, Mark Brown wrote: On Thu, Feb 14, 2019 at 09:07:44PM -0500, Sasha Levin wrote: From: Ajit Pandey [ Upstream commit 8780cf1142a59568a3aa77959cbd76b2edb6fd81 ] DAI component probe is not called if it is not present in component list during sound card re

[PATCH v3] mm/page_ext: fix an imbalance with kmemleak

2019-02-27 Thread Qian Cai
After offlined a memory block, kmemleak scan will trigger a crash, as it encounters a page ext address that has already been freed during memory offlining. At the beginning in alloc_page_ext(), it calls kmemleak_alloc(), but it does not call kmemleak_free() in free_page_ext(). BUG: unable to handl

Re: [PATCH AUTOSEL 4.20 10/77] ASoC: soc-core: Hold client_mutex around soc_init_dai_link()

2019-02-27 Thread Sasha Levin
On Fri, Feb 15, 2019 at 11:57:56AM +, Mark Brown wrote: On Thu, Feb 14, 2019 at 09:07:48PM -0500, Sasha Levin wrote: Fixes: 8780cf1142a5 ("ASoC: soc-core: defer card probe until all component is added to list") Reported-by: Kuninori Morimoto I just suggested not backporting the above fi

Re: [PATCH 1/5] x86/percpu: Differentiate this_cpu_{}() and __this_cpu_{}()

2019-02-27 Thread Peter Zijlstra
On Wed, Feb 27, 2019 at 09:17:42AM -0800, Linus Torvalds wrote: > It all seems pretty ad-hoc, and we already _know_ that "asm volatile" is bad. Ah, all I wanted was the ONCE thing and my inline asm foo sucks. If +m gets us that, awesome. But the ONCE thing defeats CSE (on purpose!) so for code-ge

Re: [PATCH AUTOSEL 4.20 16/77] ASoC: soc-core: fix init platform memory handling

2019-02-27 Thread Sasha Levin
On Fri, Feb 15, 2019 at 11:58:18AM +, Mark Brown wrote: On Thu, Feb 14, 2019 at 09:07:54PM -0500, Sasha Levin wrote: From: Curtis Malainey [ Upstream commit 09ac6a817bd687e7f5dac00470262efdd72f9319 ] snd_soc_init_platform initializes pointers to snd_soc_dai_link which is statically alloca

[PATCH v2 1/2] dt-bindings: vendor-prefix: add prefix for Czech Technical University in Prague.

2019-02-27 Thread pisa
From: Pavel Pisa Signed-off-by: Pavel Pisa --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 389508584f48..07de8df03c5

[PATCH v2 2/2] dt-bindings: net: can: binding for CTU CAN FD open-source IP core.

2019-02-27 Thread pisa
From: Pavel Pisa Signed-off-by: Pavel Pisa --- .../devicetree/bindings/net/can/ctu,ctucanfd.txt | 108 + 1 file changed, 108 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/can/ctu,ctucanfd.txt diff --git a/Documentation/devicetree/bindings/net/can

[PATCH v2 0/2] dt-bindings: net: can: binding for CTU CAN FD open-source IP core.

2019-02-27 Thread pisa
From: Pavel Pisa The patch update, added separate patch to add Czech Technical University to the vendors list. Change ctu_can_fd_0 instance string to lowercase (originally uppercase because build from official abbreviations). Clarify that clock-names are not used for now but can be used in future

Re: [PATCH 5/6] objtool: Add UACCESS validation

2019-02-27 Thread Linus Torvalds
On Wed, Feb 27, 2019 at 9:30 AM Peter Zijlstra wrote: > > Right, but I was hoping to avoid having to do that; and I think we can > do that if we push all of kasan_report into an exception, like that > 'patch' I just posted. > > If I'm not mistaken the regular kasan house-keeping crud just prods at

Re: [PATCH v5 1/3] PCI: altera: Add Stratix 10 PCIe support

2019-02-27 Thread Lorenzo Pieralisi
On Tue, Feb 26, 2019 at 05:15:46PM +0800, Ley Foon Tan wrote: > Add PCIe Root Port support for Stratix 10 device. > > Main differences compare with PCIe Root Port IP on Cyclone V > and Arria 10 devices: > > - HIP interface to access Root Port configuration register. > - TLP programming flow: >

Re: [PATCH 1/5] x86/percpu: Differentiate this_cpu_{}() and __this_cpu_{}()

2019-02-27 Thread Linus Torvalds
On Wed, Feb 27, 2019 at 9:34 AM Peter Zijlstra wrote: > > But the ONCE thing defeats CSE (on purpose!) so for code-gen that > likes/wants that we then have to use the __this_cpu crud. Right. But I do think that if you want CSE on a percpu access, you might want to write it as such (ie load the va

hello dear

2019-02-27 Thread Asha Gaddafi
Assalamu Alaikum Wa Rahmatullahi Wa Barakatuh, hello dear I came across your contact during my private search. Mrs Aisha Al- Qaddafi is my name, the only daughter of late Libyan president, am a single Mother and a Widow with three Children.I have funds the sum of $27.5 million USD for investmen

Re: [PATCH AUTOSEL 4.20 42/77] dm: fix clone_bio() to trigger blk_recount_segments()

2019-02-27 Thread Sasha Levin
On Thu, Feb 14, 2019 at 10:49:09PM -0500, Mike Snitzer wrote: On Thu, Feb 14 2019 at 9:08pm -0500, Sasha Levin wrote: From: Mike Snitzer [ Upstream commit 57c36519e4b949f89381053f7283f5d605595b42 ] DM's clone_bio() now benefits from using bio_trim() by fixing the fact that clone_bio() wasn

Re: [PATCH v3 27/34] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-02-27 Thread Dave Hansen
On 2/27/19 9:06 AM, Steven Price wrote: > #ifdef CONFIG_SHMEM > static int smaps_pte_hole(unsigned long addr, unsigned long end, > - struct mm_walk *walk) > + __always_unused int depth, struct mm_walk *walk) > { I think this 'depth' argument is a mistake. It's

Re: [PATCH v3] mm/page_ext: fix an imbalance with kmemleak

2019-02-27 Thread Catalin Marinas
On Wed, Feb 27, 2019 at 12:31:47PM -0500, Qian Cai wrote: > After offlined a memory block, kmemleak scan will trigger a crash, as it > encounters a page ext address that has already been freed during memory > offlining. At the beginning in alloc_page_ext(), it calls > kmemleak_alloc(), but it does

Re: [PATCH AUTOSEL 4.20 49/77] block: cover another queue enter recursion via BIO_QUEUE_ENTERED

2019-02-27 Thread Sasha Levin
On Fri, Feb 15, 2019 at 10:28:08AM +0800, Ming Lei wrote: On Thu, Feb 14, 2019 at 09:08:27PM -0500, Sasha Levin wrote: From: Ming Lei [ Upstream commit 698cef173983b086977e633e46476e0f925ca01e ] Except for blk_queue_split(), bio_split() is used for splitting bio too, then the remained bio is

Re: [PATCH v4 perf,bpf 06/15] perf, bpf: save bpf_prog_info in a rbtree in perf_env

2019-02-27 Thread Song Liu
> On Feb 27, 2019, at 5:21 AM, Jiri Olsa wrote: > > On Mon, Feb 25, 2019 at 04:20:10PM -0800, Song Liu wrote: >> bpf_prog_info contains information necessary to annotate bpf programs. >> This patch saves bpf_prog_info for bpf programs loaded in the system. >> >> Signed-off-by: Song Liu >> --

Re: [PATCH v3 18/34] s390: mm: Add p?d_large() definitions

2019-02-27 Thread Martin Schwidefsky
On Wed, 27 Feb 2019 17:05:52 + Steven Price wrote: > walk_page_range() is going to be allowed to walk page tables other than > those of user space. For this it needs to know when it has reached a > 'leaf' entry in the page tables. This information is provided by the > p?d_large() functions/ma

Re: Support sample context in perf report

2019-02-27 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 27, 2019 at 09:29:54AM -0800, Andi Kleen escreveu: > On Wed, Feb 27, 2019 at 05:16:59PM +0100, Jiri Olsa wrote: > > On Wed, Feb 27, 2019 at 08:01:35AM -0800, Andi Kleen wrote: > > > > > Also available in > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git > > > >

Re: [PATCH v4 perf,bpf 15/15] perf, bpf: save information about short living bpf programs

2019-02-27 Thread Song Liu
> On Feb 27, 2019, at 5:21 AM, Jiri Olsa wrote: > > On Mon, Feb 25, 2019 at 04:20:19PM -0800, Song Liu wrote: > > SNIP > >> +btf_id = info_linear->info.btf_id; >> + >> +info_node = malloc(sizeof(struct bpf_prog_info_node)); >> +if (info_node) { >> +info_node->info_lin

[net: PATCH] net: mvpp2: disable link IRQ waiting for IDLE frames

2019-02-27 Thread Marcin Wojtas
Current version of the driver was configuring XLG MAC in a way to wait 3 IDLE frames before allowing for the link-up interrupt to be triggered. This resulted in an issue, preventing to detect the link change during RX traffic on the interface. Fix that. Fixes: 4bb043262878 ("net: mvpp2: phylink su

Re: [PATCH] nvme-pci: Prevent mmio reads if pci channel offline

2019-02-27 Thread Keith Busch
On Wed, Feb 27, 2019 at 04:42:05PM +, alex_gagn...@dellteam.com wrote: > On 2/26/19 7:02 PM, Linus Torvalds wrote: > > On Tue, Feb 26, 2019 at 2:37 PM wrote: > >> > >> Then nobody gets the (error) message. You can go a bit further and try > >> 'pcie_ports=native". Again, nobody gets the memo.

Re: [PATCH v4 perf,bpf 14/15] perf: introduce side band thread

2019-02-27 Thread Song Liu
> On Feb 27, 2019, at 5:21 AM, Jiri Olsa wrote: > > On Mon, Feb 25, 2019 at 04:20:18PM -0800, Song Liu wrote: > > SNIP > >> diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c >> index 8c902276d4b4..61b87c8111e6 100644 >> --- a/tools/perf/util/evlist.c >> +++ b/tools/perf/util/e

Re: [PATCH AUTOSEL 4.20 65/77] CIFS: Do not assume one credit for async responses

2019-02-27 Thread Sasha Levin
On Fri, Feb 15, 2019 at 08:10:47PM +, Pavel Shilovskiy wrote: чт, 14 февр. 2019 г. в 18:40, Sasha Levin : From: Pavel Shilovsky [ Upstream commit 0fd1d37b0501efc6e295f56ab55cdaff784aa50c ] If we don't receive a response we can't assume that the server granted one credit. Assume zero cred

Re: [PATCH] nvme-pci: Prevent mmio reads if pci channel offline

2019-02-27 Thread Austin.Bolen
On 2/27/2019 10:42 AM, Gagniuc, Alexandru - Dell Team wrote: > > [EXTERNAL EMAIL] > > On 2/26/19 7:02 PM, Linus Torvalds wrote: >> On Tue, Feb 26, 2019 at 2:37 PM wrote: >>> >>> Then nobody gets the (error) message. You can go a bit further and try >>> 'pcie_ports=native". Again, nobody gets the

Re: Support sample context in perf report

2019-02-27 Thread Jiri Olsa
On Wed, Feb 27, 2019 at 02:41:20PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Feb 27, 2019 at 09:29:54AM -0800, Andi Kleen escreveu: > > On Wed, Feb 27, 2019 at 05:16:59PM +0100, Jiri Olsa wrote: > > > On Wed, Feb 27, 2019 at 08:01:35AM -0800, Andi Kleen wrote: > > > > > > Also available in >

Re: [PATCH 1/5] x86/percpu: Differentiate this_cpu_{}() and __this_cpu_{}()

2019-02-27 Thread Nadav Amit
> On Feb 27, 2019, at 8:14 AM, Linus Torvalds > wrote: > > On Wed, Feb 27, 2019 at 2:16 AM Peter Zijlstra wrote: >> Nadav Amit reported that commit: >> >> b59167ac7baf ("x86/percpu: Fix this_cpu_read()") >> >> added a bunch of constraints to all sorts of code; and while some of >> that was c

Re: [PATCH v4 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-02-27 Thread Tony Krowiak
On 2/27/19 3:09 AM, Pierre Morel wrote: On 26/02/2019 16:47, Tony Krowiak wrote: On 2/26/19 6:47 AM, Pierre Morel wrote: On 25/02/2019 19:36, Tony Krowiak wrote: On 2/22/19 10:29 AM, Pierre Morel wrote: We prepare the interception of the PQAP/AQIC instruction for the case the AQIC facility is

Re: [PATCH] dt-bindings: display: rockchip: add document for rk3066 hdmi

2019-02-27 Thread Johan Jonker
Thanks for your advice. On 2/25/19 5:59 PM, Rob Herring wrote:> On Fri, Feb 01, 2019 at 01:32:35PM +0100, Johan Jonker wrote: >> This patch adds a binding that describes the HDMI controller for >> rk3066. > > This is not using the DW block like other Rockchip SoCs (IIRC)? As outsider it's a littl

Re: [PATCH v4] net: phy: Micrel KSZ8061: link failure after cable connect

2019-02-27 Thread David Miller
From: Rajasingh Thavamani Date: Wed, 27 Feb 2019 17:43:19 +0530 > With Micrel KSZ8061 PHY, the link may occasionally not come up after > Ethernet cable connect. The vendor's (Microchip, former Micrel) errata > sheet 8688A.pdf descripes the problem and possible workarounds in > detail, see bel

RE: [PATCH v7 00/13] selftests/resctrl: Add resctrl selftest

2019-02-27 Thread Moger, Babu
Patches look good. Tested v7 again on AMD system. Thanks > -Original Message- > From: Fenghua Yu > Sent: Saturday, February 9, 2019 8:50 PM > To: Thomas Gleixner ; Ingo Molnar > ; Borislav Petkov ; H Peter Anvin > ; Tony Luck ; Reinette Chatre > ; Ravi V Shankar ; > Xiaochen Shen ; Arshi

Re: [PATCH] nvme-pci: Prevent mmio reads if pci channel offline

2019-02-27 Thread Alex_Gagniuc
On 2/27/19 11:51 AM, Keith Busch wrote: > I can't tell where you're going with this. It doesn't sound like you're > talking about hotplug anymore, at least. We're trying to fix an issue related to hotplug. However, the proposed fixes may have unintended consequences and side-effects. I want to ma

Re: [PATCH] cros_ec: instantiate properly Intel ISH MCU device

2019-02-27 Thread Enric Balletbo i Serra
Hi Jett, Many thanks for the explanation. On 27/2/19 16:13, Jett Rink wrote: > The diagram you provided is correct. > > The ISH device is a MCU that can run general purpose code that is > located on the SoC. Typically the ISH collects sensor data and > processes it before giving it to the AP. Th

Re: [PATCH] phy: qcom: qmp: Add SDM845 PCIe QMP PHY support

2019-02-27 Thread Bjorn Andersson
On Wed 27 Feb 01:27 PST 2019, Marc Gonzalez wrote: > On 26/02/2019 07:59, Bjorn Andersson wrote: > > > qcom_qmp_phy_init() is extended to support the additional register > > writes needed in PCS MISC and the appropriate sequences and resources > > are defined for SDM845. > > > > Signed-off-by: B

Re: [PATCH] appletalk: Fix use-after-free in atalk_proc_exit

2019-02-27 Thread David Miller
From: Yue Haibing Date: Wed, 27 Feb 2019 22:59:00 +0800 > @@ -1925,7 +1925,10 @@ static int __init atalk_init(void) > > register_netdevice_notifier(&ddp_notifier); > aarp_proto_init(); > - atalk_proc_init(); > + rc = atalk_proc_init(); > + if (rc) > + goto ou

Re: find_get_entries_tag regression bisected

2019-02-27 Thread Dan Williams
On Sat, Feb 16, 2019 at 9:29 AM Matthew Wilcox wrote: > > On Sat, Feb 16, 2019 at 07:35:11AM -0800, Matthew Wilcox wrote: > > Another way to fix this would be to mask the address in dax_entry_mkclean(), > > but I think this is cleaner. > > That's clearly rubbish, dax_entry_mkclean() can't possibly

Re: [PATCH v4 5/7] s390: ap: implement PAPQ AQIC interception in kernel

2019-02-27 Thread Tony Krowiak
On 2/27/19 4:54 AM, Pierre Morel wrote: On 26/02/2019 19:23, Tony Krowiak wrote: On 2/22/19 10:29 AM, Pierre Morel wrote: We register the AP PQAP instruction hook during the open of the mediated device. And unregister it on release. In the AP PQAP instruction hook, if we receive a demand to en

Re: [PATCH v4 5/7] s390: ap: implement PAPQ AQIC interception in kernel

2019-02-27 Thread Tony Krowiak
On 2/22/19 10:29 AM, Pierre Morel wrote: We register the AP PQAP instruction hook during the open of the mediated device. And unregister it on release. In the AP PQAP instruction hook, if we receive a demand to enable IRQs, - we retrieve the vfio_ap_queue based on the APQN we receive in REG1,

Re: [PATCH v3 02/34] arc: mm: Add p?d_large() definitions

2019-02-27 Thread Vineet Gupta
On 2/27/19 9:06 AM, Steven Price wrote: > walk_page_range() is going to be allowed to walk page tables other than > those of user space. For this it needs to know when it has reached a > 'leaf' entry in the page tables. This information will be provided by the > p?d_large() functions/macros. > > Fo

[PATCH] netfilter: xt_IDLETIMER: fix sysfs callback function type

2019-02-27 Thread Sami Tolvanen
Use struct device_attribute instead of struct idletimer_tg_attr, and the correct callback function type to avoid indirect call mismatches with Control Flow Integrity checking. Signed-off-by: Sami Tolvanen --- net/netfilter/xt_IDLETIMER.c | 14 -- 1 file changed, 4 insertions(+), 10 d

Re: [RFC] percpu: decrease pcpu_nr_slots by 1

2019-02-27 Thread Dennis Zhou
On Wed, Feb 27, 2019 at 01:33:15PM +, Peng Fan wrote: > Hi Dennis, > > > -Original Message- > > From: Dennis Zhou [mailto:den...@kernel.org] > > Sent: 2019年2月27日 1:33 > > To: Peng Fan > > Cc: den...@kernel.org; t...@kernel.org; c...@linux.com; linux...@kvack.org; > > linux-kernel@vger

[PATCH] i2c: imx: add support for I2C_M_STOP flag

2019-02-27 Thread Mans Rullgard
Add support for the I2C_M_STOP flag to the i2c-imx driver. This allows devices requiring a stop between messages to work with this controller. Signed-off-by: Mans Rullgard --- drivers/i2c/busses/i2c-imx.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --

Re: [PATCH v2] btrfs: zstd ensure reclaim timer is properly cleaned up

2019-02-27 Thread Dennis Zhou
On Wed, Feb 27, 2019 at 05:44:41PM +0100, David Sterba wrote: > On Fri, Feb 22, 2019 at 02:53:48PM -0500, Dennis Zhou wrote: > > The timer function, zstd_reclaim_timer_fn(), reschedules itself under > > certain conditions. When cleaning up, take the lock and remove all > > workspaces. This prevents

Re: [PATCH -next] appletalk: use remove_proc_subtree to simplify procfs code

2019-02-27 Thread kbuild test robot
Hi YueHaibing, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20190227] url: https://github.com/0day-ci/linux/commits/Yue-Haibing/appletalk-use-remove_proc_subtree-to-simplify-procfs-code/20190228-014856 config: xtensa-allyesconfig (attached as

Re: [PATCH] cros_ec: instantiate properly Intel ISH MCU device

2019-02-27 Thread Gwendal Grignou
On Wed, Feb 27, 2019 at 10:08 AM Enric Balletbo i Serra wrote: > > Hi Jett, > > Many thanks for the explanation. > > On 27/2/19 16:13, Jett Rink wrote: > > The diagram you provided is correct. > > > > The ISH device is a MCU that can run general purpose code that is > > located on the SoC. Typical

Re: [PATCH v2] btrfs: zstd ensure reclaim timer is properly cleaned up

2019-02-27 Thread David Sterba
On Wed, Feb 27, 2019 at 01:29:16PM -0500, Dennis Zhou wrote: > > I've noticed while reading the code, why do you use the indirect call > > here? The wsm.ops points to btrfs_zstd_compress so free_workspace is > > always zstd_free_workspace. > > > > The compiler is usually smart to replace such thin

Re: [PATCH v2 5/5] selftests/ima: loading kernel modules

2019-02-27 Thread Mimi Zohar
> >>> +get_secureboot_mode > >>> +if [ $? -eq 0 ]; then > >>> + log_skip "secure boot not enabled" > >>> +fi > >>> + > >>> +# get the kernel config > >>> +get_kconfig > >>> + > >> > >> get_kconfig() will be good candidate as a kselftest common > >> function. Is that possible? > > > > Sure, where

Re: [PATCH v3 20/34] sparc: mm: Add p?d_large() definitions

2019-02-27 Thread David Miller
From: Steven Price Date: Wed, 27 Feb 2019 17:05:54 + > walk_page_range() is going to be allowed to walk page tables other than > those of user space. For this it needs to know when it has reached a > 'leaf' entry in the page tables. This information is provided by the > p?d_large() functions/

Re: Request for suggestion on net device re-naming/re-ordering based on DT alias

2019-02-27 Thread Stephen Hemminger
On Wed, 27 Feb 2019 17:24:03 +0530 Harini Katakam wrote: > Hi, > > We've had some users requesting control over net device name order > when multiple ethernet devices are present on a system. I've tried a > few solutions to this and looked it up on forums. But I apologize if > I have missed some

Re: Request for suggestion on net device re-naming/re-ordering based on DT alias

2019-02-27 Thread Florian Fainelli
On 2/27/19 10:40 AM, Stephen Hemminger wrote: > On Wed, 27 Feb 2019 17:24:03 +0530 > Harini Katakam wrote: > >> Hi, >> >> We've had some users requesting control over net device name order >> when multiple ethernet devices are present on a system. I've tried a >> few solutions to this and looked

Re: [PATCH AUTOSEL 4.20 42/77] dm: fix clone_bio() to trigger blk_recount_segments()

2019-02-27 Thread Mike Snitzer
On Wed, Feb 27 2019 at 12:38pm -0500, Sasha Levin wrote: > On Thu, Feb 14, 2019 at 10:49:09PM -0500, Mike Snitzer wrote: > >On Thu, Feb 14 2019 at 9:08pm -0500, > >Sasha Levin wrote: > > > >>From: Mike Snitzer > >> > >>[ Upstream commit 57c36519e4b949f89381053f7283f5d605595b42 ] > >> > >>DM's

Re: linux-next: build warning after merge of the iommu tree

2019-02-27 Thread sathyanarayanan kuppuswamy
Hi, On 2/26/19 6:20 PM, Stephen Rothwell wrote: Hi Joerg, After merging the iommu tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: In file included from drivers/pci/pci.c:32: include/linux/pci-ats.h:70:12: warning: 'pci_prg_resp_pasid_required' defined but not us

RE: linux-next: Tree for Feb 27 (mshyperv)

2019-02-27 Thread Michael Kelley
From: Randy Dunlap Sent: Wednesday, February 27, 2019 9:25 AM > > on i386: > > ../arch/x86/kernel/cpu/mshyperv.c: In function 'ms_hyperv_init_platform': > ../arch/x86/kernel/cpu/mshyperv.c:339:3: error: 'x2apic_phys' undeclared > (first use in this > function) >x2apic_phys = 1; >^ FYI,

Re: [PATCH v3 15/34] parisc: mm: Add p?d_large() definitions

2019-02-27 Thread Helge Deller
On 27.02.19 18:05, Steven Price wrote: > walk_page_range() is going to be allowed to walk page tables other than > those of user space. For this it needs to know when it has reached a > 'leaf' entry in the page tables. This information is provided by the > p?d_large() functions/macros. > > For par

Re: [PATCH 1/5] x86/percpu: Differentiate this_cpu_{}() and __this_cpu_{}()

2019-02-27 Thread Nadav Amit
> On Feb 27, 2019, at 9:57 AM, Nadav Amit wrote: > >> On Feb 27, 2019, at 8:14 AM, Linus Torvalds >> wrote: >> >> On Wed, Feb 27, 2019 at 2:16 AM Peter Zijlstra wrote: >>> Nadav Amit reported that commit: >>> >>> b59167ac7baf ("x86/percpu: Fix this_cpu_read()") >>> >>> added a bunch of cons

Re: Banana Pi-R1 stabil

2019-02-27 Thread Gerhard Wiesinger
On 27.02.2019 10:20, Maxime Ripard wrote: On Sun, Feb 24, 2019 at 09:04:57AM +0100, Gerhard Wiesinger wrote: Hello, I've 3 Banana Pi R1, one running with self compiled kernel 4.7.4-200.BPiR1.fc24.armv7hl and old Fedora 25 which is VERY STABLE, the 2 others are running with Fedora 29 latest, ker

Re: [PATCH] dt-bindings: display: rockchip: add document for rk3066 hdmi

2019-02-27 Thread Rob Herring
On Wed, Feb 27, 2019 at 12:04 PM Johan Jonker wrote: > > Thanks for your advice. > > On 2/25/19 5:59 PM, Rob Herring wrote:> On Fri, Feb 01, 2019 at > 01:32:35PM +0100, Johan Jonker wrote: > >> This patch adds a binding that describes the HDMI controller for > >> rk3066. > > > > This is not using

Re: [RESEND PATCH 0/7] Add FOLL_LONGTERM to GUP fast and use it

2019-02-27 Thread Ira Weiny
On Tue, Feb 19, 2019 at 09:30:33PM -0800, 'Ira Weiny' wrote: > From: Ira Weiny > > Resending these as I had only 1 minor comment which I believe we have covered > in this series. I was anticipating these going through the mm tree as they > depend on a cleanup patch there and the IB changes are v

Re: [PATCH v3 09/34] m68k: mm: Add p?d_large() definitions

2019-02-27 Thread Geert Uytterhoeven
Hi Steven, On Wed, Feb 27, 2019 at 6:07 PM Steven Price wrote: > walk_page_range() is going to be allowed to walk page tables other than > those of user space. For this it needs to know when it has reached a > 'leaf' entry in the page tables. This information is provided by the > p?d_large() func

[PATCH v1 1/1] PCI/ATS: Add inline to pci_prg_resp_pasid_required()

2019-02-27 Thread Kuppuswamy Sathyanarayanan
Fix unused function warning when compiled with CONFIG_PCI_PASID disabled. Fixes: e5567f5f6762 ("PCI/ATS: Add pci_prg_resp_pasid_required() interface.") Signed-off-by: Kuppuswamy Sathyanarayanan --- include/linux/pci-ats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inclu

Re: [PATCH 04/13] iommu/mediatek: Add device_link between the consumer and the larb devices

2019-02-27 Thread Robin Murphy
On 01/01/2019 04:51, Yong Wu wrote: MediaTek IOMMU don't have its power-domain. all the consumer connect with smi-larb, then connect with smi-common. M4U | smi-common | - | |... | | larb1 larb2 | | vdec

[PATCH v3 2/2] Add selftests for module build using in-kernel headers

2019-02-27 Thread Joel Fernandes (Google)
This test tries to build a module successfully using the in-kernel headers found in /proc/kheaders.tar.xz. Verified pass and fail scenarios by running: make -C tools/testing/selftests TARGETS=kheaders run_tests Signed-off-by: Joel Fernandes (Google) --- tools/testing/selftests/Makefile

[PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-02-27 Thread Joel Fernandes (Google)
Introduce in-kernel headers and other artifacts which are made available as an archive through proc (/proc/kheaders.tar.xz file). This archive makes it possible to build kernel modules, run eBPF programs, and other tracing programs that need to extend the kernel for tracing purposes without any dep

Re: [PATCH AUTOSEL 4.20 65/77] CIFS: Do not assume one credit for async responses

2019-02-27 Thread Pavel Shilovsky
ср, 27 февр. 2019 г. в 09:54, Sasha Levin : > > On Fri, Feb 15, 2019 at 08:10:47PM +, Pavel Shilovskiy wrote: > >чт, 14 февр. 2019 г. в 18:40, Sasha Levin : > >> > >> From: Pavel Shilovsky > >> > >> [ Upstream commit 0fd1d37b0501efc6e295f56ab55cdaff784aa50c ] > >> > >> If we don't receive a re

Re: [PATCH 1/5] x86/percpu: Differentiate this_cpu_{}() and __this_cpu_{}()

2019-02-27 Thread Linus Torvalds
On Wed, Feb 27, 2019 at 9:57 AM Nadav Amit wrote: > > I’ll have a look at some specific function assembly, but overall, the “+m” > approach might prevent even more code optimizations than the “volatile” one. Ok, that being the case, let's forget that patch. I still wonder about the added volatil

Re: [PATCH] regulator: axp20x: Get rid of AXP20X_xxx_START/END/STEPS defines

2019-02-27 Thread Olliver Schinagl
On 25-02-2019 18:25, Mark Brown wrote: > On Sat, Feb 23, 2019 at 09:37:01PM +0100, Olliver Schinagl wrote: > >> In any case, you seem like a smart person that reads and writes hex and >> bits often enough. This is not true for everyone. I can just as easily >> reverse your arguments of course, for

Re: [PATCH v2] HID: quirks: use correct format chars in dbg_hid

2019-02-27 Thread Nick Desaulniers
On Wed, Feb 27, 2019 at 3:08 AM Louis Taylor wrote: > > When building with -Wformat, clang warns: > > drivers/hid/hid-quirks.c:1075:27: warning: format specifies type > 'unsigned short' but the argument has type '__u32' (aka 'unsigned int') > [-Wformat] > bl_entry->driver_data, b

[PATCH net-next v3 3/8] net: dsa: Handle SWITCHDEV_PORT_ATTR_SET

2019-02-27 Thread Florian Fainelli
Following patches will change the way we communicate setting a port's attribute and use notifiers towards that goal. Prepare DSA to support receiving notifier events targeting SWITCHDEV_PORT_ATTR_SET from both atomic and process context and use a small helper to translate the event notifier into s

[PATCH net-next v3 4/8] mlxsw: spectrum_switchdev: Handle SWITCHDEV_PORT_ATTR_SET

2019-02-27 Thread Florian Fainelli
Following patches will change the way we communicate setting a port's attribute and use a notifier to perform those tasks. Prepare mlxsw to support receiving notifier events targeting SWITCHDEV_PORT_ATTR_SET and utilize the switchdev_handle_port_attr_set() to handle stacking of devices. Reviewed-

[PATCH net-next v3 0/8] net: Remove switchdev_ops

2019-02-27 Thread Florian Fainelli
Hi all, This patch series completes the removal of the switchdev_ops by converting switchdev_port_attr_set() to use either the blocking (process) or non-blocking (atomic) notifier since we typically need to deal with both depending on where in the bridge code we get called from. This was tested w

Re: [PATCH 1/3] x86/asm: Pin sensitive CR0 bits

2019-02-27 Thread Kees Cook
On Wed, Feb 27, 2019 at 2:44 AM Solar Designer wrote: > > On Tue, Feb 26, 2019 at 03:36:45PM -0800, Kees Cook wrote: > > static inline void native_write_cr0(unsigned long val) > > { > > - asm volatile("mov %0,%%cr0": : "r" (val), "m" (__force_order)); > > + bool warn = false; > > + > > +

<    3   4   5   6   7   8   9   >