Re: [PATCH 0/6] USB: iowarrior: disconnect fixes and locking cleanups

2019-10-10 Thread Greg Kroah-Hartman
On Wed, Oct 09, 2019 at 12:48:40PM +0200, Johan Hovold wrote: > This series fixes a use-after-free bug introduced by a recent > disconnect-deadlock fix that was reported by syzbot. Turns out there was > already a related bug in the driver, and the first patch addresses both > issues. > > While loo

Re: [PATCH] microblaze: Include generic support for MSI irqdomains

2019-10-10 Thread Michal Simek
On 08. 10. 19 17:46, Christoph Hellwig wrote: > On Tue, Oct 08, 2019 at 12:34:47PM +0200, Michal Simek wrote: >> index e5c9170a07fc..83417105c00a 100644 >> --- a/arch/microblaze/include/asm/Kbuild >> +++ b/arch/microblaze/include/asm/Kbuild >> @@ -25,6 +25,7 @@ generic-y += local64.h >> generic-y

[PATCH] kvm: clear kvmclock MSR on reset

2019-10-10 Thread Paolo Bonzini
After resetting the vCPU, the kvmclock MSR keeps the previous value but it is not enabled. This can be confusing, so fix it. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c inde

Re: [PATCH 1/3] bpf: use check_zeroed_user() in bpf_check_uarg_tail_zero()

2019-10-10 Thread Aleksa Sarai
On 2019-10-09, Christian Brauner wrote: > In v5.4-rc2 we added a new helper (cf. [1]) check_zeroed_user() which > does what bpf_check_uarg_tail_zero() is doing generically. We're slowly > switching such codepaths over to use check_zeroed_user() instead of > using their own hand-rolled version. >

Re: [RFC v2 1/2] kvm: Mechanism to copy host timekeeping parameters into guest.

2019-10-10 Thread Paolo Bonzini
On 10/10/19 09:30, Suleiman Souhlal wrote: > kvmclock_reset(vcpu); > > + if (vcpu->arch.pv_timekeeper_enabled) > + atomic_dec(&pv_timekeepers_nr); > + Please make the new MSR systemwide, there's no need to have one copy per vCPU. Also, it has to be cleared on reset. I hav

Re: [PATCH 2/3] bpf: use copy_struct_from_user() in bpf_prog_get_info_by_fd()

2019-10-10 Thread Aleksa Sarai
On 2019-10-09, Christian Brauner wrote: > In v5.4-rc2 we added a new helper (cf. [1]) copy_struct_from_user(). > This helper is intended for all codepaths that copy structs from > userspace that are versioned by size. bpf_prog_get_info_by_fd() does > exactly what copy_struct_from_user() is doing.

[PATCH] mmc: sdhci-omap: Fix Tuning procedure for temperatures < -20C

2019-10-10 Thread Faiz Abbas
According to the App note[1] detailing the tuning algorithm, for temperatures < -20C, the initial tuning value should be min(largest value in LPW - 24, ceil(13/16 ratio of LPW)). The largest value in LPW is (max_window + 4 * (max_len - 1)) and not (max_window + 4 * max_len) itself. Fix this impleme

Re: [PATCH v2 2/3] ARM: dts: add Netronix E60K02 board common file

2019-10-10 Thread Jonathan Neuschäfer
On Thu, Oct 10, 2019 at 07:31:29AM +0200, Andreas Kemnade wrote: > Hi Jonathan, > > On Mon, 7 Oct 2019 00:38:48 +0200 > Jonathan Neuschäfer wrote: > > > Thanks for CCing me on this patchset. Nice to see more e-book reader > > related work! > > > btw. seems that we have a common target, since ou

Re: [PATCH 3/3] bpf: use copy_struct_from_user() in bpf() syscall

2019-10-10 Thread Aleksa Sarai
On 2019-10-09, Christian Brauner wrote: > In v5.4-rc2 we added a new helper (cf. [1]) copy_struct_from_user(). > This helper is intended for all codepaths that copy structs from > userspace that are versioned by size. The bpf() syscall does exactly > what copy_struct_from_user() is doing. > Note t

Re: [PATCH 1/4] media: si2168: use bits instead of bool for flags

2019-10-10 Thread Gon Solo
On Fri, Oct 04, 2019 at 10:15:22AM -0300, Mauro Carvalho Chehab wrote: > Using bool on struct is not recommended, as it wastes lots of > space. So, instead, let's use bits. Wouldn't "bool b:1;" even be better? I performed a little test: #include #include struct uints { unsigned int a0;

Re: [RFC v2 2/2] x86/kvmclock: Introduce kvm-hostclock clocksource.

2019-10-10 Thread Paolo Bonzini
On 10/10/19 09:30, Suleiman Souhlal wrote: > +kvm_hostclock_enable(struct clocksource *cs) > +{ > + pv_timekeeper_enabled = 1; > + > + old_vclock_mode = kvm_clock.archdata.vclock_mode; > + kvm_clock.archdata.vclock_mode = VCLOCK_TSC; > + return 0; > +} > + > +static void > +kvm_host

Re: [PATCH] usb: mtk-xhci: Set the XHCI_NO_64BIT_SUPPORT quirk

2019-10-10 Thread Chunfeng Yun
On Thu, 2019-10-10 at 18:00 +0900, Tomasz Figa wrote: > Hi Chunfeng, > > On Thu, Oct 10, 2019 at 5:45 PM Chunfeng Yun > wrote: > > > > Hi, Tomasz, > > > > On Thu, 2019-10-10 at 16:50 +0900, Tomasz Figa wrote: > > > MediaTek XHCI host controller does not support 64-bit addressing despite > > > th

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-10 Thread Michal Hocko
On Thu 10-10-19 05:01:44, Qian Cai wrote: > > > > On Oct 9, 2019, at 12:23 PM, Michal Hocko wrote: > > > > If this was only about the memory offline code then I would agree. But > > we are talking about any printk from the zone->lock context and that is > > a bigger deal. Besides that it is qui

Re: [PATCH] phy: qcom-usb-hs: Fix extcon double register after power cycle

2019-10-10 Thread Chanwoo Choi
On 19. 10. 8. 오후 8:52, Stephan Gerhold wrote: > Commit f0b5c2c96370 ("phy: qcom-usb-hs: Replace the extcon API") > switched from extcon_register_notifier() to the resource-managed > API, i.e. devm_extcon_register_notifier(). > > This is problematic in this case, because the extcon notifier > is dy

Re: [PATCH v5 1/2] dt-bindings: soc: al-pos: Amazon's Annapurna Labs POS

2019-10-10 Thread Shenhar, Talel
Thanks for the review On 10/10/2019 2:29 AM, Rob Herring wrote: On Mon, Oct 07, 2019 at 03:47:14PM +0300, Talel Shenhar wrote: Document Amazon's Annapurna Labs POS SoC binding. Signed-off-by: Talel Shenhar --- .../bindings/edac/amazon,al-pos-edac.yaml | 40 ++

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-10 Thread Petr Mladek
On Thu 2019-10-10 17:39:08, Sergey Senozhatsky wrote: > On (10/10/19 10:21), Petr Mladek wrote: > [..] > > > > Considering that console.write is called from essentially arbitrary code > > > > path IIUC then all the locks used in this path should be pretty much > > > > tail locks or console internal

Re: [PATCH v2 0/2] extcon: axp288: Move to swnodes

2019-10-10 Thread Heikki Krogerus
On Thu, Oct 10, 2019 at 11:32:23AM +0200, Hans de Goede wrote: > Hi, > > On 10-10-2019 10:31, Heikki Krogerus wrote: > > On Tue, Oct 08, 2019 at 05:02:04PM +0300, Heikki Krogerus wrote: > > > On Tue, Oct 08, 2019 at 03:59:23PM +0200, Hans de Goede wrote: > > > > Hi, > > > > > > > > On 08-10-2019

Re: [PATCH v4 1/4] lib: introduce copy_struct_from_user() helper

2019-10-10 Thread Michael Ellerman
Hi Aleksa, Aleksa Sarai writes: > A common pattern for syscall extensions is increasing the size of a > struct passed from userspace, such that the zero-value of the new fields > result in the old kernel behaviour (allowing for a mix of userspace and > kernel vintages to operate on one another in

Re: [PATCH 1/2] Modify cpupower to schedule itself on cores it is reading MSRs from

2019-10-10 Thread Thomas Renninger
On Monday, October 7, 2019 11:11:30 PM CEST Natarajan, Janakarajan wrote: > On 10/5/2019 7:40 AM, Thomas Renninger wrote: > ... > >> > >> APERF/MPERF from CPL > 0) and avoid using the msr module (patch 2). > > > > And this one only exists on latest AMD cpus, right? > > Yes. The RDPRU instruction

Re: [PATCH net-next v2] genetlink: do not parse attributes for families with zero maxattr

2019-10-10 Thread Jiri Pirko
Thu, Oct 10, 2019 at 12:34:02PM CEST, mkube...@suse.cz wrote: >Commit c10e6cf85e7d ("net: genetlink: push attrbuf allocation and parsing >to a separate function") moved attribute buffer allocation and attribute >parsing from genl_family_rcv_msg_doit() into a separate function >genl_family_rcv_msg_a

Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe

2019-10-10 Thread Dan Carpenter
On Thu, Oct 10, 2019 at 10:51:45AM +0200, Alexander Gordeev wrote: > On Wed, Oct 09, 2019 at 09:53:23PM +0300, Dan Carpenter wrote: > > > > > + u32 *rd_flags = hw->dma_desc_table_rd.cpu_addr->flags; > > > > > + u32 *wr_flags = hw->dma_desc_table_wr.cpu_addr->flags; > > > > > + struct av

Re: [PATCH 1/4] media: si2168: use bits instead of bool for flags

2019-10-10 Thread Mauro Carvalho Chehab
Em Thu, 10 Oct 2019 12:55:44 +0200 Gon Solo escreveu: > On Fri, Oct 04, 2019 at 10:15:22AM -0300, Mauro Carvalho Chehab wrote: > > Using bool on struct is not recommended, as it wastes lots of > > space. So, instead, let's use bits. > > Wouldn't "bool b:1;" even be better? I performed a little

Re: [PATCH V9 2/2] arm64/mm: Enable memory hot remove

2019-10-10 Thread Catalin Marinas
Hi Anshuman, On Wed, Oct 09, 2019 at 01:51:48PM +0530, Anshuman Khandual wrote: > +static void unmap_hotplug_pmd_range(pud_t *pudp, unsigned long addr, > + unsigned long end, bool free_mapped) > +{ > + unsigned long next; > + pmd_t *pmdp, pmd; > + > + do

Re: [PATCH v4 1/4] lib: introduce copy_struct_from_user() helper

2019-10-10 Thread Aleksa Sarai
On 2019-10-10, Michael Ellerman wrote: > Aleksa Sarai writes: > > A common pattern for syscall extensions is increasing the size of a > > struct passed from userspace, such that the zero-value of the new fields > > result in the old kernel behaviour (allowing for a mix of userspace and > > kernel

[PATCH v6 0/2] Amazon's Annapurna Labs POS Driver

2019-10-10 Thread Talel Shenhar
The Amazon's Annapurna Labs SoCs includes Point Of Serialization error logging unit that reports an error in case of write error (e.g. attempt to write to a read only register). This patch series introduces the support for this unit. Changes since v5: = - added missing include to

[PATCH v6 1/2] dt-bindings: soc: al-pos: Amazon's Annapurna Labs POS

2019-10-10 Thread Talel Shenhar
Document Amazon's Annapurna Labs POS SoC binding. Signed-off-by: Talel Shenhar --- .../bindings/edac/amazon,al-pos-edac.yaml | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-pos-edac.yaml diff --git a/Do

Re: [PATCH 1/4] media: si2168: use bits instead of bool for flags

2019-10-10 Thread Mauro Carvalho Chehab
Em Thu, 10 Oct 2019 08:34:23 -0300 Mauro Carvalho Chehab escreveu: > Em Thu, 10 Oct 2019 12:55:44 +0200 > Gon Solo escreveu: > > > On Fri, Oct 04, 2019 at 10:15:22AM -0300, Mauro Carvalho Chehab wrote: > > > Using bool on struct is not recommended, as it wastes lots of > > > space. So, instea

Re: wake_q memory ordering

2019-10-10 Thread Peter Zijlstra
On Thu, Oct 10, 2019 at 12:41:11PM +0200, Manfred Spraul wrote: > Hi, > > Waiman Long noticed that the memory barriers in sem_lock() are not really > documented, and while adding documentation, I ended up with one case where > I'm not certain about the wake_q code: > > Questions: > - Does smp_mb_

Re: [PATCH 4/4] Add support for Logilink VG0022A.

2019-10-10 Thread Gon Solo
Hi! > "When the [...] firmware that came with the device is replaced > by a new one, any I2C data received from the tuner will be > replaced by 0xff. > > Probably, the vendor firmware has some patch specifically > designed for this device. So, we can't replace by the generic > firmware. > > The

[PATCH v6 2/2] soc: amazon: al-pos-edac: Introduce Amazon's Annapurna Labs POS EDAC driver

2019-10-10 Thread Talel Shenhar
The Amazon's Annapurna Labs SoCs includes Point Of Serialization error logging unit that reports an error in case write error (e.g . Attempt to write to a read only register). This error shall be reported to EDAC subsystem as uncorrectable-error. Signed-off-by: Talel Shenhar --- MAINTAINERS

Re: [PATCH] ARM: configs: at91: unselect PIT

2019-10-10 Thread Alexander Dahl
Am Mittwoch, 9. Oktober 2019, 21:48:14 CEST schrieb Alexandre Belloni: > The PIT is not required anymore to successfully boot and may actually harm > in case preempt-rt is used because the PIT interrupt is shared. > Disable it so the TCB clocksource is used. > > Signed-off-by: Alexandre Belloni

[PATCH v4 0/2] Amazon's Annapurna Labs Memory Controller EDAC

2019-10-10 Thread Talel Shenhar
This series introduces support for Amazon's Annapurna Labs Memory Controller EDAC driver. Changes since v3: = - removed quotation marks and hyphen from compatible - added interrupts and interrupt-names description - added missing include to dt binding Changes since v2: ===

[PATCH v4 1/2] dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC

2019-10-10 Thread Talel Shenhar
Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding. Signed-off-by: Talel Shenhar --- .../bindings/edac/amazon,al-mc-edac.yaml | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yam

Re: [PATCH v2 0/2] extcon: axp288: Move to swnodes

2019-10-10 Thread Heikki Krogerus
On Thu, Oct 10, 2019 at 02:16:23PM +0300, Heikki Krogerus wrote: > In any case, do we leave this series as it is now, or should I add two > patches to it - one that just removes device_connection_add/remove > functions without any other changes, and another patch that removes > that device_connecti

Re: [PATCH v2 2/3] pinctrl: meson-a1: add pinctrl driver for Meson A1 Soc

2019-10-10 Thread Qianggui Song
Hi,Neil On 2019/10/8 21:07, Neil Armstrong wrote: > Hi, > > On 08/10/2019 13:09, Qianggui Song wrote: >> Add pinctrl driver for Meson A1 Soc which share the same register layout of >> pinmux with previous Meson-G12A, however there is difference for gpio >> and pin config register in A1.The main d

[PATCH v4 2/2] EDAC: al-mc-edac: Introduce Amazon's Annapurna Labs Memory Controller EDAC

2019-10-10 Thread Talel Shenhar
The Amazon's Annapurna Labs Memory Controller EDAC supports ECC capability for error detection and correction (Single bit error correction, Double detection). This driver introduces EDAC driver for that capability. Signed-off-by: Talel Shenhar --- MAINTAINERS | 7 + drivers/edac/

Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-10-10 Thread Charles Keepax
On Thu, Oct 10, 2019 at 09:50:22AM +0100, Srinivas Kandagatla wrote: > On 09/10/2019 19:53, Pierre-Louis Bossart wrote: > >On 10/9/19 11:01 AM, Srinivas Kandagatla wrote: > >>On 09/10/2019 15:29, Pierre-Louis Bossart wrote: > >>>On 10/9/19 3:32 AM, Srinivas Kandagatla wrote: > On 14/08/2019 15:

Re: [PATCH v2 0/2] extcon: axp288: Move to swnodes

2019-10-10 Thread Hans de Goede
Hi, On 10-10-2019 13:58, Heikki Krogerus wrote: On Thu, Oct 10, 2019 at 02:16:23PM +0300, Heikki Krogerus wrote: In any case, do we leave this series as it is now, or should I add two patches to it - one that just removes device_connection_add/remove functions without any other changes, and ano

Re: [PATCH v3 1/2] lib: devres: add a helper function for ioremap_uc

2019-10-10 Thread Luis Chamberlain
On Wed, Oct 09, 2019 at 09:03:34PM -0600, Tuowen Zhao wrote: > Implement a resource managed strongly uncachable ioremap function. > > Tested-by: AceLan Kao > Signed-off-by: Tuowen Zhao > Acked-by: Mika Westerberg > Acked-by: Andy Shevchenko Acked-by: Luis Chamberlain Luis

Re: [PATCH v3 2/2] mfd: intel-lpss: use devm_ioremap_uc for MMIO

2019-10-10 Thread Luis Chamberlain
On Wed, Oct 09, 2019 at 09:03:35PM -0600, Tuowen Zhao wrote: > Some BIOS erroneously specifies write-combining BAR for intel-lpss-pci > in MTRR. This will cause the system to hang during boot. If possible, > this bug could be corrected with a firmware update. > > This patch use devm_ioremap_uc to

Re: wake_q memory ordering

2019-10-10 Thread Manfred Spraul
Hi Peter, On 10/10/19 1:42 PM, Peter Zijlstra wrote: On Thu, Oct 10, 2019 at 12:41:11PM +0200, Manfred Spraul wrote: Hi, Waiman Long noticed that the memory barriers in sem_lock() are not really documented, and while adding documentation, I ended up with one case where I'm not certain about th

Re: "reuse mergeable anon_vma as parent when fork" causes a crash on s390

2019-10-10 Thread Wei Yang
On Thu, Oct 10, 2019 at 11:29:44AM +0300, Konstantin Khlebnikov wrote: >On 10/10/2019 06.15, Wei Yang wrote: >> On Thu, Oct 10, 2019 at 10:36:01AM +0800, Wei Yang wrote: >> > Hi, Qian, Shakeel >> > >> > Thanks for testing. >> > >> > Sounds I missed some case to handle. anon_vma_clone() now would

Re: [PATCH v2] HID: core: check whether usage page item is after usage id item

2019-10-10 Thread Benjamin Tissoires
On Thu, Oct 10, 2019 at 5:19 AM Candle Sun wrote: > > On Thu, Oct 10, 2019 at 2:00 AM Jiri Kosina wrote: > > > > On Wed, 9 Oct 2019, Nicolas Saenz Julienne wrote: > > > > > > diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c > > > > index 3eaee2c..3394222 100644 > > > > --- a/drivers/h

Re: [PATCH v2] HID: core: check whether usage page item is after usage id item

2019-10-10 Thread Benjamin Tissoires
On Wed, Oct 9, 2019 at 2:54 PM Candle Sun wrote: > > From: Candle Sun > > Upstream commit 58e75155009c ("HID: core: move Usage Page concatenation > to Main item") adds support for Usage Page item after Usage ID items > (such as keyboards manufactured by Primax). > > Usage Page concatenation in Ma

Re: [PATCH] ftrace/module: Allow ftrace to make only loaded module text read-write

2019-10-10 Thread Peter Zijlstra
On Thu, Oct 10, 2019 at 11:36:50AM +0200, Peter Zijlstra wrote: > On Thu, Oct 10, 2019 at 11:33:29AM +0200, Peter Zijlstra wrote: > > I don't see any reason what so ever.. > > > > load_module() > > ... > > complete_formation() > > mutex_lock(&module_mutex); > > ... > > module_enab

Re: [PATCH v3] perf tools: avoid sample_reg_masks being const + weak

2019-10-10 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 09, 2019 at 04:07:37PM -0700, Ian Rogers escreveu: > On Tue, Oct 8, 2019 at 5:31 AM Jiri Olsa wrote: > > On Mon, Sep 30, 2019 at 05:36:23PM -0700, Ian Rogers wrote: > > > Being const + weak breaks with some compilers that constant-propagate > > > from the weak symbol. This behavior is

Re: wake_q memory ordering

2019-10-10 Thread Peter Zijlstra
On Thu, Oct 10, 2019 at 02:13:47PM +0200, Manfred Spraul wrote: > Hi Peter, > > On 10/10/19 1:42 PM, Peter Zijlstra wrote: > > On Thu, Oct 10, 2019 at 12:41:11PM +0200, Manfred Spraul wrote: > > > Hi, > > > > > > Waiman Long noticed that the memory barriers in sem_lock() are not really > > > docu

Re: [RESEND PATCH v4 2/2] uacce: add uacce driver

2019-10-10 Thread Greg Kroah-Hartman
On Wed, Oct 09, 2019 at 11:21:42PM +0800, Zhangfei Gao wrote: > From: Kenneth Lee > > Uacce (Unified/User-space-access-intended Accelerator Framework) targets to > provide Shared Virtual Addressing (SVA) between accelerators and processes. > So accelerator can access any data structure of the mai

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-10-10 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 10, 2019 at 04:33:57PM +0800, Jin, Yao escreveu: > > > On 10/10/2019 4:00 PM, Jiri Olsa wrote: > > On Thu, Oct 10, 2019 at 02:46:36PM +0800, Jin, Yao wrote: > > > > > > > > > On 10/1/2019 10:17 AM, Andi Kleen wrote: > > > > > > I think it's useful. Makes it easy to do kernel/user br

[PATCH v4] x86/hyperv: make vapic support x2apic mode

2019-10-10 Thread Roman Kagan
Now that there's Hyper-V IOMMU driver, Linux can switch to x2apic mode when supported by the vcpus. However, the apic access functions for Hyper-V enlightened apic assume xapic mode only. As a result, Linux fails to bring up secondary cpus when run as a guest in QEMU/KVM with both hv_apic and x2a

[PATCH v5 4/8] mm: Add write-protect and clean utilities for address space ranges

2019-10-10 Thread VMware
From: Thomas Hellstrom Add two utilities to 1) write-protect and 2) clean all ptes pointing into a range of an address space. The utilities are intended to aid in tracking dirty pages (either driver-allocated system memory or pci device memory). The write-protect utility should be used in conjunc

[PATCH v5 8/8] drm/vmwgfx: Add surface dirty-tracking callbacks

2019-10-10 Thread VMware
From: Thomas Hellstrom Add the callbacks necessary to implement emulated coherent memory for surfaces. Add a flag to the gb_surface_create ioctl to indicate that surface memory should be coherent. Also bump the drm minor version to signal the availability of coherent surfaces. Cc: Andrew Morton

[PATCH v5 0/8] Emulated coherent graphics memory take 2

2019-10-10 Thread VMware
From: Thomas Hellström Graphics APIs like OpenGL 4.4 and Vulkan require the graphics driver to provide coherent graphics memory, meaning that the GPU sees any content written to the coherent memory on the next GPU operation that touches that memory, and the CPU sees any content written by the GPU

[PATCH v5 6/8] drm/vmwgfx: Use an RBtree instead of linked list for MOB resources

2019-10-10 Thread VMware
From: Thomas Hellstrom With emulated coherent memory we need to be able to quickly look up a resource from the MOB offset. Instead of traversing a linked list with O(n) worst case, use an RBtree with O(log n) worst case complexity. Cc: Andrew Morton Cc: Matthew Wilcox Cc: Will Deacon Cc: Pete

[PATCH v5 7/8] drm/vmwgfx: Implement an infrastructure for read-coherent resources

2019-10-10 Thread VMware
From: Thomas Hellstrom Similar to write-coherent resources, make sure that from the user-space point of view, GPU rendered contents is automatically available for reading by the CPU. Cc: Andrew Morton Cc: Matthew Wilcox Cc: Will Deacon Cc: Peter Zijlstra Cc: Rik van Riel Cc: Minchan Kim Cc

[PATCH v5 1/8] mm: Remove BUG_ON mmap_sem not held from xxx_trans_huge_lock()

2019-10-10 Thread VMware
From: Thomas Hellstrom The caller needs to make sure that the vma is not torn down during the lock operation and can also use the i_mmap_rwsem for file-backed vmas. Remove the BUG_ON. We could, as an alternative, add a test that either vma->vm_mm->mmap_sem or vma->vm_file->f_mapping->i_mmap_rwsem

[PATCH v5 3/8] mm: Add a walk_page_mapping() function to the pagewalk code

2019-10-10 Thread VMware
From: Thomas Hellstrom For users that want to travers all page table entries pointing into a region of a struct address_space mapping, introduce a walk_page_mapping() function. The walk_page_mapping() function will be initially be used for dirty- tracking in virtual graphics drivers. Cc: Andrew

[PATCH v5 5/8] drm/vmwgfx: Implement an infrastructure for write-coherent resources

2019-10-10 Thread VMware
From: Thomas Hellstrom This infrastructure will, for coherent resources, make sure that from the user-space point of view, data written by the CPU is immediately automatically available to the GPU at resource validation time. Cc: Andrew Morton Cc: Matthew Wilcox Cc: Will Deacon Cc: Peter Zijl

[PATCH v5 2/8] mm: pagewalk: Take the pagetable lock in walk_pte_range()

2019-10-10 Thread VMware
From: Thomas Hellstrom Without the lock, anybody modifying a pte from within this function might have it concurrently modified by someone else. Cc: Matthew Wilcox Cc: Will Deacon Cc: Peter Zijlstra Cc: Rik van Riel Cc: Minchan Kim Cc: Michal Hocko Cc: Huang Ying Cc: Jérôme Glisse Cc: Kir

Re: [PATCH v2] dt-bindings: riscv: Fix CPU schema errors

2019-10-10 Thread Rob Herring
On Wed, Oct 9, 2019 at 7:08 PM Paul Walmsley wrote: > > On Wed, 9 Oct 2019, Rob Herring wrote: > > > Fix the errors in the RiscV CPU DT schema: > > > > Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@0: > > 'timebase-frequency' is a required property > > Documentation/devicetree

[PATCH 1/1] PCI/ASPM: Remove pcie_aspm_enabled() unnecessary locking

2019-10-10 Thread Bjorn Helgaas
From: Bjorn Helgaas The lifetime of the link_state structure (bridge->link_state) is not the same as the lifetime of "bridge" itself. The link_state is allocated by pcie_aspm_init_link_state() after children of the bridge have been enumerated, and it is deallocated by pcie_aspm_exit_link_state()

[PATCH 0/1] PCI/ASPM: Remove locking

2019-10-10 Thread Bjorn Helgaas
From: Bjorn Helgaas In reference to this thread: https://lore.kernel.org/r/20191007223428.ga72...@google.com This removes locking from pcie_aspm_enabled() because the reference count held by the driver should provide all the locking we need. Bjorn Helgaas (1): PCI/ASPM: Remove pcie_aspm_ena

Re: [PATCH] ftrace/module: Allow ftrace to make only loaded module text read-write

2019-10-10 Thread Steven Rostedt
On Thu, 10 Oct 2019 11:36:50 +0200 Peter Zijlstra wrote: > > > > The reason is that ftrace_module_enable() is called after the module > > > > has set its text to read-only. There's subtle reasons that this needs > > > > to be called afterward, and we need to continue to do so. > > > > > > Plea

Re: [RFC PATCH 10/13] vsock: add multi-transports support

2019-10-10 Thread Stefano Garzarella
On Wed, Oct 09, 2019 at 02:11:23PM +0100, Stefan Hajnoczi wrote: > On Fri, Sep 27, 2019 at 01:27:00PM +0200, Stefano Garzarella wrote: > > RFC: > > - I'd like to move MODULE_ALIAS_NETPROTO(PF_VSOCK) to af_vsock.c. > > @Jorgen could this break the VMware products? > > What will cause the vmw_vsoc

[PATCH 2/2] USB: legousbtower: fix memleak on disconnect

2019-10-10 Thread Johan Hovold
If disconnect() races with release() after a process has been interrupted, release() could end up returning early and the driver would fail to free its driver data. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable Signed-off-by: Johan Hovold --- drivers/usb/misc/legousbtower.c | 5 + 1 f

[PATCH 0/2] USB: misc: more disconnect fixes

2019-10-10 Thread Johan Hovold
Turns out we have more gems in these old drivers. Johan Johan Hovold (2): USB: ldusb: fix memleak on disconnect USB: legousbtower: fix memleak on disconnect drivers/usb/misc/ldusb.c| 5 + drivers/usb/misc/legousbtower.c | 5 + 2 files changed, 2 insertions(+), 8 deletions(-

[PATCH 1/2] USB: ldusb: fix memleak on disconnect

2019-10-10 Thread Johan Hovold
If disconnect() races with release() after a process has been interrupted, release() could end up returning early and the driver would fail to free its driver data. Fixes: 2824bd250f0b ("[PATCH] USB: add ldusb driver") Cc: stable # 2.6.13 Signed-off-by: Johan Hovold --- drivers/usb/misc/ldu

Re: [PATCH] ftrace/module: Allow ftrace to make only loaded module text read-write

2019-10-10 Thread Steven Rostedt
On Wed, 9 Oct 2019 22:36:38 -0400 Steven Rostedt wrote: > --- a/kernel/module.c > +++ b/kernel/module.c > @@ -2029,6 +2029,37 @@ static void module_enable_nx(const struct module *mod) > frob_writable_data(&mod->init_layout, set_memory_nx); > } > Also, if you are worried about these bein

Re: [PATCH] MIPS: add support for SGI Octane (IP30)

2019-10-10 Thread Thomas Bogendoerfer
On Wed, 9 Oct 2019 11:43:11 -0700 Christoph Hellwig wrote: > > +++ b/arch/mips/sgi-ip30/ip30-pci.c > > @@ -0,0 +1,19 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * ip30-pci.c: misc PCI related helper code for IP30 architecture > > + */ > > + > > +#include > > + > > +dma_addr_t __phy

[PATCH] ARM: dts: stm32: add hdmi audio support to stm32mp157a-dk1 board

2019-10-10 Thread Olivier Moysan
Add HDMI audio support through Sil9022 HDMI transceiver on stm32mp157a-dk1 board. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157a-dk1.dts | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts b/arch/

Re: [RFC PATCH 11/13] vsock: add 'transport_hg' to handle g2h\h2g transports

2019-10-10 Thread Stefano Garzarella
On Wed, Oct 09, 2019 at 02:16:43PM +0100, Stefan Hajnoczi wrote: > On Fri, Sep 27, 2019 at 01:27:01PM +0200, Stefano Garzarella wrote: > > VMCI transport provides both g2h and h2g behaviors in a single > > transport. > > We are able to set (or not) the g2h behavior, detecting if we > > are in a VMw

Sub: Payment Reference - HFC901810A/$1.5M USD.

2019-10-10 Thread Clement Lee
Attention: Beneficiary. Sub: Payment Reference - HFC901810A/$1.5M USD. Your fund worth $1.5M USD is ready for release, Contact now for details and also reconfirm your updated info directly to my desk. Thank you. Mr. Clement Lee E-mail: info_...@mail.com

Re: [PATCH v5 4/8] mm: Add write-protect and clean utilities for address space ranges

2019-10-10 Thread Peter Zijlstra
On Thu, Oct 10, 2019 at 02:43:10PM +0200, Thomas Hellström (VMware) wrote: > +/** > + * struct wp_walk - Private struct for pagetable walk callbacks > + * @range: Range for mmu notifiers > + * @tlbflush_start: Address of first modified pte > + * @tlbflush_end: Address of last modified pte + 1 > +

Re: [PATCH v8 4/4] ftrace: Add an option for tracing console latencies

2019-10-10 Thread Steven Rostedt
On Thu, 10 Oct 2019 09:57:31 +0200 Viktor Rosendahl wrote: > Sounds good to me. I will try to adjust the patch accordingly within a few > days. OK, Also, I may hold off on patch 3. I want to make sure that adding a new directory to tools is OK, and see if there's not other things we can add th

Re: [PATCH] arm64: defconfig: Enable Qualcomm remoteproc dependencies

2019-10-10 Thread Alex Elder
On 10/8/19 7:14 PM, Bjorn Andersson wrote: > Enable the the power domains, reset controllers and remote block device > memory access drivers necessary to boot the Audio, Compute and Modem > DSPs on Qualcomm SDM845. > > None of the power domains are system critical, but needs to be builtin > as the

[PATCH] quota: minor code cleanup for v1_format_ops

2019-10-10 Thread Chengguang Xu
It's not a functinal change, it's just for keeping consistent coding style. Signed-off-by: Chengguang Xu --- fs/quota/quota_v1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/quota/quota_v1.c b/fs/quota/quota_v1.c index c740e5572eb8..cd92e5fa0062 100644 --- a/fs/quota/quota_v1.c +++ b/fs

Re: [PATCH 07/36] libperf: Add perf_mmap__put() function

2019-10-10 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 07, 2019 at 02:53:15PM +0200, Jiri Olsa escreveu: > +++ b/tools/perf/lib/mmap.c > @@ -3,10 +3,12 @@ > #include > #include > > -void perf_mmap__init(struct perf_mmap *map, bool overwrite) > +void perf_mmap__init(struct perf_mmap *map, bool overwrite, > + libperf_un

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-10 Thread Qian Cai
On Thu, 2019-10-10 at 12:59 +0200, Michal Hocko wrote: > On Thu 10-10-19 05:01:44, Qian Cai wrote: > > > > > > > On Oct 9, 2019, at 12:23 PM, Michal Hocko wrote: > > > > > > If this was only about the memory offline code then I would agree. But > > > we are talking about any printk from the zon

Re: [PATCH v17 01/14] bitops: Introduce the for_each_set_clump8 macro

2019-10-10 Thread William Breathitt Gray
On Thu, Oct 10, 2019 at 10:21:45AM +0200, Geert Uytterhoeven wrote: > Hi Andy, > > On Thu, Oct 10, 2019 at 10:08 AM Andy Shevchenko > wrote: > > On Thu, Oct 10, 2019 at 09:49:51AM +0200, Geert Uytterhoeven wrote: > > > On Thu, Oct 10, 2019 at 9:42 AM Andy Shevchenko > > > wrote: > > > > On Thu,

Re: [PATCH 0/3] ftrace: Introduce PERMANENT ftrace_ops flag

2019-10-10 Thread Steven Rostedt
On Thu, 10 Oct 2019 10:50:35 +0200 Petr Mladek wrote: > It will make the flag unusable for other ftrace users. But it > will be already be the case when it can't be disabled. Honestly, I hate that flag. Most people don't even know about it. It was added in the beginning of ftrace as a way to sto

[PATCH v3 0/4] staging: rtl8723bs: Style clean-up in rtw_mlme.c

2019-10-10 Thread Wambui Karuga
This patchset addresses multiple style and formatting issues reported by checkpatch.pl in drivers/staging/rtl8723bs/core/rtw_mlme.c PATCH v2 of the series corrects the "patchest" mispelling in the original cover letter and provides a clearer subject line. PATCH v3 of the series incorporates newer

[PATCH v3 1/4] staging: rtl8723bs: Remove comparisons to NULL in conditionals

2019-10-10 Thread Wambui Karuga
Remove most comparisons to NULL in conditionals in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Comparison to NULL could be written Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 50 +++ 1 file changed, 25

[PATCH v3 2/4] staging: rtl8723bs: Remove unnecessary braces for single statements

2019-10-10 Thread Wambui Karuga
Clean up multiple unnecessary braces around single statement blocks in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: WARNING: braces {} are not necessary for single statement blocks or WARNING: braces {} are not necessary for any arm of this statement Signed-off-by

[PATCH v3 4/4] staging: rtl8723bs: Remove unnecessary blank lines

2019-10-10 Thread Wambui Karuga
Remove multiple blank lines in drivers/staging/rtl8723bs/core/rtw_mlme.c. Issues reported by checkpatch.pl as: CHECK: Please don't use multiple blank lines Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 47 --- 1 file changed, 47 deletions(-) di

Re: [PATCH v18 10/14] gpio: 74x164: Utilize the for_each_set_clump8 macro

2019-10-10 Thread Andy Shevchenko
On Wed, Oct 09, 2019 at 01:14:46PM -0400, William Breathitt Gray wrote: > Replace verbose implementation in set_multiple callback with > for_each_set_clump8 macro to simplify code and improve clarity. > Tested-by: Andy Shevchenko > Suggested-by: Andy Shevchenko > Cc: Geert Uytterhoeven > Cc:

[PATCH v3 3/4] staging: rtl8723bs: Remove comparisons to booleans in conditionals.

2019-10-10 Thread Wambui Karuga
Remove comparisons to true and false in multiple if statements in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723

Re: [PATCH v18 14/14] gpio: pca953x: Utilize the for_each_set_clump8 macro

2019-10-10 Thread Andy Shevchenko
On Wed, Oct 09, 2019 at 01:14:50PM -0400, William Breathitt Gray wrote: > Replace verbose implementation in set_multiple callback with > for_each_set_clump8 macro to simplify code and improve clarity. Tested-by: Andy Shevchenko > Cc: Phil Reid > Signed-off-by: William Breathitt Gray > --- > d

Apply For Financial investment at a lower rate 2%

2019-10-10 Thread Valentina Yurina
-- Hello, We are private lenders based in UK. Do you need a loan (credit) as soon as possible. Are you in search of money to solve your personal needs or finance your business venture, then get Your desired loan today! Consult us at Sunrise Funding Ltd. * We offer personal loan & huge capital l

Re: [PATCH v18 01/14] bitops: Introduce the for_each_set_clump8 macro

2019-10-10 Thread Andy Shevchenko
On Wed, Oct 09, 2019 at 02:18:55PM -0700, Andrew Morton wrote: > On Wed, 9 Oct 2019 13:14:37 -0400 William Breathitt Gray > wrote: > > > This macro iterates for each 8-bit group of bits (clump) with set bits, > > within a bitmap memory region. For each iteration, "start" is set to the > > bit o

Re: [PATCH v2] serdev: Add ACPI devices by ResourceSource field

2019-10-10 Thread Maximilian Luz
Hi, On 10/10/19 12:22 PM, Hans de Goede wrote: This patch looks good to me and it works on my test hw with serial attached BT HCI: Reviewed-by: Hans de Goede Tested-by: Hans de Goede Regards, Hans Awesome, thank you! Regards, Maximilian

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-10 Thread Steven Rostedt
On Thu, 10 Oct 2019 11:20:54 +0200 Peter Zijlstra wrote: > On Wed, Oct 09, 2019 at 10:41:35PM -0400, Steven Rostedt wrote: > > On Tue, 8 Oct 2019 10:43:35 -0400 > > Steven Rostedt wrote: > > > > > > > BTW, I'd really like to take this patch series through my tree. That > > > way I can really

[PATCH] MAINTAINERS: Remove Simon as Renesas SoC Co-Maintainer

2019-10-10 Thread Geert Uytterhoeven
At the end of the v5.3 upstream kernel development cycle, Simon stepped down from his role as Renesas SoC maintainer. Remove his maintainership, git repository, and branch from the MAINTAINERS file, and add an entry to the CREDITS file to honor his work. Signed-off-by: Geert Uytterhoeven --- CR

[PATCH] rtl8723bs: Remove comparison to NULL

2019-10-10 Thread Wambui Karuga
Remove comparison to NULL in drivers/staging/rtl8723bs/core/rtw_ap.c:1449. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/

Re: [PATCH v7 2/2] ASoC: codecs: add wsa881x amplifier support

2019-10-10 Thread Mark Brown
On Thu, Oct 10, 2019 at 10:28:04AM +0100, Srinivas Kandagatla wrote: > On 09/10/2019 17:35, Mark Brown wrote: > > On Wed, Oct 09, 2019 at 09:51:08AM +0100, Srinivas Kandagatla wrote: > > > +static const u8 wsa881x_reg_readable[WSA881X_CACHE_SIZE] = { > > > +static bool wsa881x_readable_register(st

Re: [PATCH v5 4/8] mm: Add write-protect and clean utilities for address space ranges

2019-10-10 Thread VMware
On 10/10/19 3:05 PM, Peter Zijlstra wrote: On Thu, Oct 10, 2019 at 02:43:10PM +0200, Thomas Hellström (VMware) wrote: +/** + * struct wp_walk - Private struct for pagetable walk callbacks + * @range: Range for mmu notifiers + * @tlbflush_start: Address of first modified pte + * @tlbflush_end: A

Re: [PATCH net-next v7 08/17] ethtool: move string arrays into common file

2019-10-10 Thread Jiri Pirko
Wed, Oct 09, 2019 at 10:59:24PM CEST, mkube...@suse.cz wrote: >Introduce file net/ethtool/common.c for code shared by ioctl and netlink >ethtool interface. Move name tables of features, RSS hash functions, >tunables and PHY tunables into this file. > >Signed-off-by: Michal Kubecek Reviewed-by: Ji

Re: [PATCH 4.14 00/61] 4.14.149-stable review

2019-10-10 Thread Naresh Kamboju
On Thu, 10 Oct 2019 at 14:20, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.149 release. > There are 61 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Re

Re: [PATCH v2] mtd: maps: l440gx: Avoid printing address to dmesg

2019-10-10 Thread Boris Brezillon
On Thu, 10 Oct 2019 16:40:19 +0800 Fuqian Huang wrote: > Avoid printing the address of l440gx_map.virt every time l440gx init. > > Signed-off-by: Fuqian Huang > --- > drivers/mtd/maps/l440gx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/maps/l440gx.c b

[RFC PATCH 3/3] arm64: topology: Use PPTT to determine if PE is a thread

2019-10-10 Thread John Garry
From: Jeremy Linton Commit 98dc19902a0b2e5348e43d6a2c39a0a7d0fc639e upstream. ACPI 6.3 adds a thread flag to represent if a CPU/PE is actually a thread. Given that the MPIDR_MT bit may not represent this information consistently on homogeneous machines we should prefer the PPTT flag if its avail

[RFC PATCH 2/3] ACPI/PPTT: Add support for ACPI 6.3 thread flag

2019-10-10 Thread John Garry
From: Jeremy Linton Commit bbd1b70639f785a970d998f35155c713f975e3ac upstream. ACPI 6.3 adds a flag to the CPU node to indicate whether the given PE is a thread. Add a function to return that information for a given linux logical CPU. Signed-off-by: Jeremy Linton Reviewed-by: Sudeep Holla Revi

<    1   2   3   4   5   6   7   8   9   10   >