Re: [PATCH v1 3/5] arm64: dts: rockchip: Add gpio-syscon10 to rk3328

2018-05-11 Thread Rob Herring
On Thu, May 10, 2018 at 10:45 PM, Levin Du wrote: > On 2018-05-10 8:50 PM, Robin Murphy wrote: >> >> On 10/05/18 10:16, d...@t-chip.com.cn wrote: >>> >>> From: Levin Du >>> >>> Adding a new gpio controller named "gpio-syscon10" to rk3328, providing >>> access to the pins defined in the syscon GRF

Re: [PATCH v3 4/6] KVM: x86: hyperv: simplistic HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE} implementation

2018-05-11 Thread Vitaly Kuznetsov
Radim Krčmář writes: > 2018-04-16 13:08+0200, Vitaly Kuznetsov: >> Implement HvFlushVirtualAddress{List,Space} hypercalls in a simplistic way: >> do full TLB flush with KVM_REQ_TLB_FLUSH and kick vCPUs which are currently >> IN_GUEST_MODE. >> >> Signed-off-by: Vitaly Kuznetsov >> --- >> diff --

Re: [PATCH] arm64: dts: stratix10: Add QSPI support for Stratix10

2018-05-11 Thread Rob Herring
On Thu, May 10, 2018 at 3:46 PM, wrote: > From: Thor Thayer > > Add qspi_clock >The qspi_clk frequency is updated by U-Boot before starting Linux. > Add QSPI interface node. > Add QSPI flash memory child node. >Setup the QSPI memory in 2 partitions. > > Signed-off-by: Thor Thayer > ---

Re: [PATCH v1 7/9] iommu/tegra: gart: Provide single domain and group for all devices

2018-05-11 Thread Robin Murphy
On 08/05/18 19:16, Dmitry Osipenko wrote: GART aperture is shared by all devices, hence there is a single IOMMU domain and group shared by these devices. Allocation of a group per device only wastes resources and allowance of having more than one domain is simply wrong because IOMMU mappings made

Re: [PATCH 1/2] serdev: add controller runtime PM support

2018-05-11 Thread Sebastian Reichel
Hi Johan, On Wed, May 09, 2018 at 11:44:18AM +0200, Johan Hovold wrote: > Add support for controller runtime power management to serdev core. This > is needed to allow slave drivers to manage the runtime PM state of the > underlying serial controller when its driver, in turn, implements more > agg

Re: [PATCH 4/6] mm, arm64: untag user addresses in mm/gup.c

2018-05-11 Thread Andrey Konovalov
On Tue, May 8, 2018 at 5:11 PM, Catalin Marinas wrote: > On Wed, May 02, 2018 at 07:25:17PM +0200, Andrey Konovalov wrote: >> On Wed, May 2, 2018 at 5:36 PM, Kirill A. Shutemov >> wrote: >> > On Wed, May 02, 2018 at 02:38:42PM +, Andrey Konovalov wrote: >> >> > Does having a tagged address he

Re: Delivery Status Notification (Failure)

2018-05-11 Thread Russell King - ARM Linux
On Fri, May 11, 2018 at 05:07:37PM +0530, Pintu Kumar wrote: > Hi, > > I need one help. > I am using i.MX7 Sabre board with kernel version 4.1.15 > > Let's say I am interested in GPIO number: 21 > I wanted to set CPU affinity for particular GPIO->IRQ number, so I > tried the below steps: > root@1

Re: [PATCH 1/2] random: Omit double-printing ratelimit messages

2018-05-11 Thread Dmitry Safonov
On Thu, 2018-05-10 at 23:51 -0400, Theodore Y. Ts'o wrote: > On Thu, May 10, 2018 at 08:50:07PM +0100, Dmitry Safonov wrote: > > random uses __ratelimit() which calls ___ratelimit() with a > > function > > name. Depending on !RATELIMIT_MSG_ON_RELEASE it prints how many > > messages were suppressed

Re: [PATCH][next] net: aquantia: fix unsigned numvecs comparison with less than zero

2018-05-11 Thread Igor Russkikh
>> Fixes: a09bd81b5413 ("net: aquantia: Limit number of vectors to actually >> allocated irqs") >> Signed-off-by: Colin Ian King > > This doesn't apply to net-next. > Colin, believe thats because you should target to net, not net-next. BR, Igor

Re: [PATCH 03/20] arc: use generic dma_noncoherent_ops

2018-05-11 Thread Alexey Brodkin
Hi Christoph, On Fri, 2018-05-11 at 09:59 +0200, Christoph Hellwig wrote: > Switch to the generic noncoherent direct mapping implementation. > > Signed-off-by: Christoph Hellwig > --- > arch/arc/Kconfig | 4 + > arch/arc/include/asm/Kbuild| 1 + > arch/arc/include/

Re: [PATCH] MIPS: VPE: fix spelling mistake: "uneeded" -> "unneeded"

2018-05-11 Thread James Hogan
On Thu, May 10, 2018 at 05:59:00PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in pr_warn message text > > Signed-off-by: Colin Ian King > - pr_warn("VPE loader: elf size too big. Perhaps strip uneeded > symbols\n"); > + pr_warn(

Re: [PATCH IB/core 2/2] IB/cm: Send authentic pkey in REQ msg and check eligibility of the pkeys

2018-05-11 Thread Hal Rosenstock
On 5/11/2018 6:55 AM, Håkon Bugge wrote: > > >> On 10 May 2018, at 18:54, Hal Rosenstock wrote: >> >> On 5/10/2018 11:16 AM, Håkon Bugge wrote: >>> >>> On 10 May 2018, at 16:01, Hal Rosenstock wrote: On 5/10/2018 5:16 AM, Håkon Bugge wrote: > > >> On 9 May 2018, at 13

Re: [PATCH V5 1/3] mmc: sdhci: Add support for O2 eMMC HS200 mode

2018-05-11 Thread Adrian Hunter
On 20/04/18 19:37, ernest.zhang wrote: > When use eMMC as boot device, the eMMC signaling voltage is tied to 1.8v > fixed output voltage, bios can set o2 sd host controller PCI configuration > register 0x308 bit4 to 1 to let driver skip 3.3v signaling voltage and > direct use 1.8v singling voltage

Re: [PATCH 1/2] serdev: add controller runtime PM support

2018-05-11 Thread Tony Lindgren
* Johan Hovold [180511 08:09]: > On Thu, May 10, 2018 at 09:48:31AM -0700, Tony Lindgren wrote: > > If this solution works for GPS then this should also work for modems > > that might produce data. And as long as the serdev consumer driver > > can wake up the UART with pm_runtime_get(&serdev->ctrl

Re: [PATCH] rcu: Report a quiescent state when it's exactly in the state

2018-05-11 Thread Byungchul Park
Hello folks, I think I wrote the title in a misleading way. Please change the title to something else such as, "rcu: Report a quiescent state when it's in the state" or, "rcu: Add points reporting quiescent states where proper" or so on. On 2018-05-11 오후 5:30, Byungchul Park wrote: We expect a

Re: Revert "dmaengine: pl330: add DMA_PAUSE feature"

2018-05-11 Thread Marek Szyprowski
Hi Frank, On 2018-05-10 18:04, Frank Mori Hess wrote: > On Thu, May 10, 2018 at 4:31 AM, Marek Szyprowski > wrote: >> On 2018-05-09 19:48, Frank Mori Hess wrote: >>> On Wed, May 9, 2018 at 9:19 AM, Marek Szyprowski >>> wrote: I understand that pl330 doesn't support real PAUSE, but as it has

Re: [PATCH v16 5/9] PCI/AER: Factor out error reporting from AER

2018-05-11 Thread Lukas Wunner
On Fri, May 11, 2018 at 06:43:24AM -0400, Oza Pawandeep wrote: > +void pcie_do_fatal_recovery(struct pci_dev *dev) > +{ > + struct pci_dev *udev; > + struct pci_bus *parent; > + struct pci_dev *pdev, *temp; > + pci_ers_result_t result = PCI_ERS_RESULT_RECOVERED; > + struct aer_b

Re: [PATCH v1 8/9] iommu: Introduce iotlb_sync_map callback

2018-05-11 Thread Robin Murphy
On 08/05/18 19:16, Dmitry Osipenko wrote: Introduce iotlb_sync_map() callback that is invoked in the end of iommu_map(). This new callback allows IOMMU drivers to avoid syncing on mapping of each contiguous chunk and sync only when whole mapping is completed, optimizing performance of the mapping

Re: Delivery Status Notification (Failure)

2018-05-11 Thread Lucas Stach
Am Freitag, den 11.05.2018, 13:39 +0100 schrieb Russell King - ARM Linux: > On Fri, May 11, 2018 at 05:07:37PM +0530, Pintu Kumar wrote: > > Hi, > > > > I need one help. > > I am using i.MX7 Sabre board with kernel version 4.1.15 > > > > Let's say I am interested in GPIO number: 21 > > I wanted t

[PATCH v3 2/2] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-05-11 Thread Baolin Wang
From: Eric Long This patch adds the 'device_config' and 'device_prep_slave_sg' interfaces for users to configure DMA, as well as adding one 'struct sprd_dma_config' structure to save Spreadtrum DMA configuration for each DMA channel. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- Chan

[PATCH v3 1/2] dmaengine: sprd: Optimize the sprd_dma_prep_dma_memcpy()

2018-05-11 Thread Baolin Wang
From: Eric Long This is one preparation patch, we can use default DMA configuration to implement the device_prep_dma_memcpy() interface instead of issuing sprd_dma_config(). We will implement one new sprd_dma_config() function with introducing device_prep_slave_sg() interface in following patch.

Re: [PATCH 1/2] serdev: add controller runtime PM support

2018-05-11 Thread Johan Hovold
On Fri, May 11, 2018 at 05:56:27AM -0700, Tony Lindgren wrote: > * Johan Hovold [180511 08:09]: > > On Thu, May 10, 2018 at 09:48:31AM -0700, Tony Lindgren wrote: > > > If this solution works for GPS then this should also work for modems > > > that might produce data. And as long as the serdev con

Re: [PATCH] tracing/x86/xen: Remove zero data size trace events trace_xen_mmu_flush_tlb{_all}

2018-05-11 Thread Steven Rostedt
On Fri, 11 May 2018 06:14:07 +0200 Juergen Gross wrote: > Any reason not sending this patch to the Xen maintainers? Nope, I guess I should have run the patch through "get_maintainer.pl". > > I can take it through the Xen tree. :-) Thanks! > > Reviewed-by: Juergen Gross Note, I'm going to

Re: [PATCH 14/32] net/tcp: convert to ->poll_mask

2018-05-11 Thread Eric Dumazet
On 05/11/2018 04:07 AM, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig > --- > include/net/tcp.h | 4 ++-- > net/ipv4/af_inet.c | 3 ++- > net/ipv4/tcp.c | 31 ++- > net/ipv6/af_inet6.c | 3 ++- > 4 files changed, 20 insertions(+), 21 deletion

Re: [PATCH 6/9] NTB: ntb_hw_idt: fix typo 'can by' to 'can be'

2018-05-11 Thread Serge Semin
On Sun, May 06, 2018 at 01:23:50PM +0200, Wolfram Sang wrote: > Signed-off-by: Wolfram Sang > --- > drivers/ntb/hw/idt/ntb_hw_idt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ntb/hw/idt/ntb_hw_idt.c b/drivers/ntb/hw/idt/ntb_hw_idt.c > index 8d98872d0983b7.

[PATCH v2 0/3] Improve schedutil integration for FAIR tasks

2018-05-11 Thread Patrick Bellasi
Here is an update of: https://lkml.org/lkml/2018/5/10/346 Where, apart from some minor clean-ups, I've added a cpufreq_enqueue() wrapper function for cpufreq_update_util() to be used in enqueue_task_fair(). That's because: - it helps to keep more clean the enqueue_task_fair() by collecting

[PATCH v2 1/3] sched/cpufreq: always consider blocked FAIR utilization

2018-05-11 Thread Patrick Bellasi
Since the refactoring introduced by: commit 8f111bc357aa ("cpufreq/schedutil: Rewrite CPUFREQ_RT support") we aggregate FAIR utilization only if this class has runnable tasks. This was mainly due to avoid the risk to stay on an high frequency just because of the blocked utilization of a CPU no

[PATCH v2 3/3] sched/fair: schedutil: explicit update only when required

2018-05-11 Thread Patrick Bellasi
Schedutil updates for FAIR tasks are triggered implicitly each time a cfs_rq's utilization is updated via cfs_rq_util_change(), currently called by update_cfs_rq_load_avg(), when the utilization of a cfs_rq has changed, and {attach,detach}_entity_load_avg(). This design is based on the idea that "

[PATCH v2 2/3] sched/fair: util_est: update before schedutil

2018-05-11 Thread Patrick Bellasi
When a task is enqueue the estimated utilization of a CPU is updated to better support the selection of the required frequency. However, schedutil is (implicitly) updated by update_load_avg() which always happens before util_est_{en,de}queue(), thus potentially introducing a latency between estimat

[RFC PATCH v3 1/5] usb: typec: mux: Get the mux identifier from function parameter

2018-05-11 Thread Heikki Krogerus
In order for the muxes to be usable with alternate modes, the alternate mode devices will need also to be able to get a handle to the muxes on top of the port devices. To make that possible, the muxes need to be possible to request with an identifier. This will change the API so that the mux ident

[RFC PATCH v3 5/5] usb: typec: tcpm: Support for Alternate Modes

2018-05-11 Thread Heikki Krogerus
This adds more complete handling of VDMs and registration of partner alternate modes, and introduces callbacks for alternate mode operations. Only DFP role is supported for now. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/tcpm.c | 156 +++ include/li

[RFC PATCH v3 4/5] usb: typec: pi3usb30532: Start using generic state values

2018-05-11 Thread Heikki Krogerus
Instead of the tcpm specific mux states, using the generic USB type-c connector state values. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/mux/pi3usb30532.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/usb/typec/mux/pi3usb30532.c b/drivers/usb/

[RFC PATCH v3 2/5] usb: typec: Register a device for every mode

2018-05-11 Thread Heikki Krogerus
Before a device was created for every discovered SVID, but this will create a device for every discovered mode of every SVID. The idea is to make it easier to create mode specific drivers once a bus for the alternate mode is added. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/class.c | 1

[RFC PATCH v3 3/5] usb: typec: Bus type for alternate modes

2018-05-11 Thread Heikki Krogerus
Introducing a simple bus for the alternate modes. Bus allows binding drivers to the discovered alternate modes the partners support. Signed-off-by: Heikki Krogerus --- Documentation/ABI/obsolete/sysfs-class-typec | 48 +++ Documentation/ABI/testing/sysfs-bus-typec| 51 +++ Documentation/AB

[RFC PATCH v3 0/5] usb: typec: Support for Alternate Modes

2018-05-11 Thread Heikki Krogerus
Hi, This is the third version of my proposal for more complete alternate mode support. In this version I'm including a proposal for the mux handling. Basically, I'm proposing that every supported alternate will have its own mux handle. That should allow us to support multiple alternate modes at th

Re: [External] Re: [PATCH v1] include/linux/gfp.h: getting rid of GFP_ZONE_TABLE/BAD

2018-05-11 Thread Matthew Wilcox
On Fri, May 11, 2018 at 03:24:34AM +, Huaisheng HS1 Ye wrote: > > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On Behalf > > Of Matthew > > Wilcox > > On Fri, May 11, 2018 at 12:10:25AM +0800, Huaisheng Ye wrote: > > > -#define __GFP_DMA((__force gfp_t)___GFP_DMA) >

[PATCH] ASoC: hisilicon: fix spelling mistake: "uknown" -> "unknown"

2018-05-11 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_err message text Signed-off-by: Colin Ian King --- sound/soc/hisilicon/hi6210-i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/hisilicon/hi6210-i2s.c b/sound/soc/hisilicon/hi6210-i2s.c index 07a57209

Re: [PATCH] [stable 4.14] arm64: Add work around for Arm Cortex-A55 Erratum 1024718

2018-05-11 Thread Greg KH
On Fri, May 11, 2018 at 12:23:22PM +0100, Suzuki K Poulose wrote: > commit ece1397cbc89c51914fae1aec729539cfd8bd62b upstream > > Some variants of the Arm Cortex-55 cores (r0p0, r0p1, r1p0) suffer > from an erratum 1024718, which causes incorrect updates when DBM/AP > bits in a page table entry is

Re: [PATCH 1/3] dt-bindings: media: rcar-vin: Add R8A77995 support

2018-05-11 Thread Simon Horman
On Fri, May 11, 2018 at 12:00:00PM +0200, Jacopo Mondi wrote: > Add compatible string for R-Car D3 R8A7795 to list of SoCs supported by > rcar-vin driver. > > Signed-off-by: Jacopo Mondi Reviewed-by: Simon Horman

Re: [RFC PATCH 1/3] arcnet: com20020: Add memory map of com20020

2018-05-11 Thread Rob Herring
On Fri, May 11, 2018 at 5:50 AM, Andrea Greco wrote: > On 05/08/2018 06:16 PM, Rob Herring wrote: >> On Sat, May 05, 2018 at 11:34:45PM +0200, Andrea Greco wrote: >>> From: Andrea Greco >>> >>> Add support for com20022I/com20020, memory mapped chip version. >>> Support bus: Intel 80xx and Motorol

Re: printk feature for syzbot?

2018-05-11 Thread Steven Rostedt
On Fri, 11 May 2018 18:50:04 +0900 Sergey Senozhatsky wrote: > On (05/11/18 11:17), Dmitry Vyukov wrote: > > > > From what I see, it seems that interrupts can be nested: > > Hm, I thought that in general IRQ handlers run with local IRQs > disabled on CPU. So, generally, IRQs don't nest. Was I

[PATCH RFC v2 3/5] KVM: nVMX: add enlightened VMCS state

2018-05-11 Thread Vitaly Kuznetsov
Adds hv_evmcs pointer and implement copy_enlightened_to_vmcs12() and copy_enlightened_to_vmcs12(). prepare_vmcs02()/prepare_vmcs02_full() separation is not valid for Enlightened VMCS, do full sync for now. Suggested-by: Ladi Prosek Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/vmx.c | 428 +

[PATCH RFC v2 5/5] KVM: nVMX: optimize prepare_vmcs02{,_full} for Enlightened VMCS case

2018-05-11 Thread Vitaly Kuznetsov
When Enlightened VMCS is in use by L1 hypervisor we can avoid vmwriting VMCS fields which did not change. Our first goal is to achieve minimal impact on traditional VMCS case so we're not wrapping each vmwrite() with an if-changed checker. We also can't utilize static keys as Enlightened VMCS usag

[PATCH RFC v2 0/5] KVM: nVMX: Enlightened VMCS for Hyper-V on KVM

2018-05-11 Thread Vitaly Kuznetsov
It's been a while since RFCv1 (https://lwn.net/Articles/741846/). After the initial submission I decided to implement Enlightened VMCS for KVM on Hyper-V first and this is now fully merged. Time to resume this work. This is an initial implementation of Enlightened VMCS for nested Hyper-V on KVM. U

[PATCH RFC v2 4/5] KVM: nVMX: implement enlightened VMPTRLD and VMCLEAR

2018-05-11 Thread Vitaly Kuznetsov
Per Hyper-V TLFS 5.0b: "The L1 hypervisor may choose to use enlightened VMCSs by writing 1 to the corresponding field in the VP assist page (see section 7.8.7). Another field in the VP assist page controls the currently active enlightened VMCS. Each enlightened VMCS is exactly one page (4 KB) in s

[PATCH RFC v2 1/5] KVM: hyperv: define VP assist page helpers

2018-05-11 Thread Vitaly Kuznetsov
From: Ladi Prosek The state related to the VP assist page is still managed by the LAPIC code in the pv_eoi field. Signed-off-by: Ladi Prosek Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 23 +-- arch/x86/kvm/hyperv.h | 4 arch/x86/kvm/lapic.c | 4 ++--

[PATCH RFC v2 2/5] KVM: nVMX: add KVM_CAP_HYPERV_ENLIGHTENED_VMCS capability

2018-05-11 Thread Vitaly Kuznetsov
Enlightened VMCS is opt-in. The current version does not contain all fields supported by nested VMX so we must not advertise the corresponding VMX features if enlightened VMCS is enabled. Userspace is given the enlightened VMCS version supported by KVM as part of enabling KVM_CAP_HYPERV_ENLIGHTENE

include/linux/mlx5/driver.h:1299:13: error: 'struct irq_desc' has no member named 'affinity_hint'

2018-05-11 Thread kbuild test robot
Hi Israel, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 94d7dbf108813ea45a91e27e9a8bd231d5a23fa7 commit: 6082d9c9c94a408d7409b5f2e4e42ac9e8b16d0d net/mlx5: Fix mlx5_get_vector_affinity function date: 2 weeks ag

[PATCH] staging: lustre: fix spelling mistake: "req_ulinked" -> "req_unlinked"

2018-05-11 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in DEBUG_REQ message text Signed-off-by: Colin Ian King --- drivers/staging/lustre/lustre/ptlrpc/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c b/drivers/staging/lu

Re: [PATCH] KVM: arm/arm64: fix unaligned hva start and end in handle_hva_to_gpa

2018-05-11 Thread Suzuki K Poulose
Marc Thanks for looping me in. Comments below. On 03/05/18 03:02, Jia He wrote: Hi Marc Thanks for the review On 5/2/2018 10:26 PM, Marc Zyngier Wrote: [+ Suzuki] On 02/05/18 08:08, Jia He wrote: From: Jia He In our armv8a server (QDF2400), I noticed a WARN_ON as follows: [  800.20285

[GIT PULL] Please pull powerpc/linux.git powerpc-4.17-5 tag

2018-05-11 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 4.17: The following changes since commit b2d7ecbe355698010a6b7a15eb179e09eb3d6a34: powerpc/kvm/booke: Fix altivec related build break (2018-04-27 16:36:03 +1000) are available in the git reposit

Re: [PATCH 2/3] arm64: dts: renesas: r8a77995: Add VIN4

2018-05-11 Thread Simon Horman
On Fri, May 11, 2018 at 01:25:23PM +0200, Niklas Söderlund wrote: > Hi Jacopo, > > Thanks for your work. > > On 2018-05-11 12:00:01 +0200, Jacopo Mondi wrote: > > Describe VIN4 interface for R-Car D3 R8A77995 SoC. > > > > Signed-off-by: Jacopo Mondi > > Acked-by: Niklas Söderlund > > > --- >

[GIT PULL] Power management fixes for v4.17-rc5

2018-05-11 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.17-rc5 with top-most commit ef050374e1eedec45bd260e0ac9eb98f699267d2 Merge branches 'pm-pci' and 'pm-docs' on top of commit 75bc37fefc4471e718ba8e651aa74673d4e0a9eb Linux 4.17-rc4

[PATCH] sh: switch to NO_BOOTMEM

2018-05-11 Thread Rob Herring
Commit 0fa1c579349f ("of/fdt: use memblock_virt_alloc for early alloc") inadvertently switched the DT unflattening allocations from memblock to bootmem which doesn't work because the unflattening happens before bootmem is initialized. Swapping the order of bootmem init and unflattening could also f

Re: [PATCH] lib/test_bitmap.c: Fix bitmap optimisation tests to report errors correctly

2018-05-11 Thread Michael Ellerman
Kees Cook writes: > On Wed, May 9, 2018 at 4:43 AM, Michael Ellerman wrote: >> From: Matthew Wilcox >> >> I had neglected to increment the error counter when the tests failed, >> which made the tests noisy when they fail, but not actually return an >> error code. >> >> Reported-by: Michael Elle

Re: [PATCH RESEND v2 1/2] perf cs-etm: Support unknown_thread in cs_etm_auxtrace

2018-05-11 Thread Arnaldo Carvalho de Melo
Em Thu, May 10, 2018 at 12:01:59PM +0800, Leo Yan escreveu: > CoreSight doesn't allocate thread structure for unknown_thread in etm > auxtrace, so unknown_thread is NULL pointer. If the perf data doesn't > contain valid tid and then cs_etm__mem_access() uses unknown_thread > instead as thread hand

Re: [PATCH] lib/test_bitmap.c: Fix bitmap optimisation tests to report errors correctly

2018-05-11 Thread Michael Ellerman
Andrew Morton writes: > On Wed, 9 May 2018 21:43:28 +1000 Michael Ellerman > wrote: >> From: Matthew Wilcox >> >> I had neglected to increment the error counter when the tests failed, >> which made the tests noisy when they fail, but not actually return an >> error code. >> >> Reported-by: M

Re: [PATCH v5 1/7] proc: add proc_fs_info struct to store proc information

2018-05-11 Thread Jann Horn
On Fri, May 11, 2018 at 11:34 AM, Alexey Gladkov wrote: > From: Djalal Harouni > > This is a preparation patch that adds proc_fs_info to be able to store > different procfs options and informations. Right now some mount options > are stored inside the pid namespace which makes it hard to change o

[PATCH] mfd: arizona: Don't use regmap_read_poll_timeout

2018-05-11 Thread Charles Keepax
Some Arizona CODECs have a small timing window where they will NAK an I2C transaction if it happens before the boot done bit is set. This can cause the read of the register containing the boot done bit to fail until it is set. Since regmap_read_poll_timeout will abort polling if a read fails it can

[PATCH] [stable 4.9] arm64: Add work around for Arm Cortex-A55 Erratum 1024718

2018-05-11 Thread Suzuki K Poulose
commit ece1397cbc89c51914fae1aec729539cfd8bd62b upstream Some variants of the Arm Cortex-55 cores (r0p0, r0p1, r1p0) suffer from an erratum 1024718, which causes incorrect updates when DBM/AP bits in a page table entry is modified without a break-before-make sequence. The work around is to disable

Re: KASAN: slab-out-of-bounds Write in process_preds

2018-05-11 Thread Dmitry Vyukov
On Thu, May 10, 2018 at 4:23 PM, Steven Rostedt wrote: > On Thu, 10 May 2018 07:14:26 +0200 > Dmitry Vyukov wrote: > >> > IMPORTANT: if you fix the bug, please add the following tag to the commit: >> > Reported-by: syzbot+5702a7e6d4a13b3ac...@syzkaller.appspotmail.com >> > It will help syzbot und

Re: [PATCH 04/20] arm-nommu: use generic dma_noncoherent_ops

2018-05-11 Thread John Garry
On 11/05/2018 08:59, Christoph Hellwig wrote: Switch to the generic noncoherent direct mapping implementation for the nommu dma map implementation. Signed-off-by: Christoph Hellwig --- arch/arc/Kconfig| 1 + arch/arm/Kconfig| 4 + arch/arm/mm/dma-mapping-nom

Re: [PATCH v5 7/7] proc: add option to mount only a pids subset

2018-05-11 Thread Jann Horn
On Fri, May 11, 2018 at 11:37 AM, Alexey Gladkov wrote: > This allows to hide all files and directories in the procfs that are not > related to tasks. /proc/$pid/net and /proc/$pid/task/$tid/net aren't in scope for this protection, even though they contain information about the whole network name

Re: [PATCH 0/3] HiSilicon LPC defconfig and DT patches

2018-05-11 Thread Wei Xu
Hi John, On 2018/4/30 16:15, John Garry wrote: > This series introduces 3 patches, to enable the > HISILICON_LPC config in the arm64 defconfig > and also add the relevant LPC DT entries. > > For hip06 UART support, we depend on this patch: > https://lkml.org/lkml/2018/4/27/258 > > John Garry (3)

Re: [PATCH v2 0/3] HISI LPC ACPI UART support

2018-05-11 Thread Wei Xu
Hi John, On 2018/5/9 15:48, John Garry wrote: > On 08/05/2018 12:17, Andy Shevchenko wrote: >> On Tue, 2018-05-08 at 18:27 +0800, John Garry wrote: >>> This patchset adds ACPI FW support for the UART on >>> the LPC bus on the Huawei D03 development board. >>> >>> It also drops MFD API usage. It's

[PATCH][ocfs2-next] ocfs2: remove redundant check that tmp_oh is not null

2018-05-11 Thread Colin King
From: Colin Ian King There is an earlier check and return if tmp_oh is null, hence the finaly check to see if it is not null is redundant and can be replaced with return 1 instead. Detected by CoverityScan, CIK#1468855 ("Logically dead code") Signed-off-by: Colin Ian King --- fs/ocfs2/dlmglue

Re: [PATCH 5/5] hisi: Consolidate the Kconfigs for the CLOCK_STUB and the MAILBOX

2018-05-11 Thread Wei Xu
Hi Leo, On 2018/5/9 5:02, Leo Yan wrote: > On Wed, May 09, 2018 at 09:19:13AM +0530, Jassi Brar wrote: >> On Wed, Apr 4, 2018 at 8:44 AM, Leo Yan wrote: >>> From: Daniel Lezcano >>> >>> The current defconfig is inconsistent as it selects the mailbox and >>> the clock for the hi6220 and the hi366

Re: [RFC v2 4/4] btrfs: verify symlinks with append/immutable flags

2018-05-11 Thread David Sterba
On Thu, May 10, 2018 at 04:13:59PM -0700, Luis R. Rodriguez wrote: > The Linux VFS does not allow a way to set append/immuttable ^^ Typo, in all 3 patches. > attributes to symlinks, this is just not possible. If this is > detected inform

Re: [rds-devel] KASAN: null-ptr-deref Read in rds_ib_get_mr

2018-05-11 Thread Yanjun Zhu
On 2018/5/11 18:46, Sowmini Varadhan wrote: On (05/11/18 15:48), Yanjun Zhu wrote: diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c index e678699..2228b50 100644 --- a/net/rds/ib_rdma.c +++ b/net/rds/ib_rdma.c @@ -539,11 +539,17 @@ void rds_ib_flush_mrs(void) void *rds_ib_get_mr(struct s

Re: [PATCH v3 2/2] arm64: dts: hi3660: Add pcie msi interrupt attribute

2018-05-11 Thread Wei Xu
Hi Yao, On 2018/5/11 10:15, Yao Chen wrote: > Add pcie msi interrupt attribute for hi3660 SOC. > > Signed-off-by: Yao Chen Applied patch 2 into the hisilicon dt tree. Thanks! BR, Wei > --- > arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a

Re: WARNING in compat_copy_entries (2)

2018-05-11 Thread Dmitry Vyukov
On Tue, Mar 6, 2018 at 5:59 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > ce380619fab99036f5e745c7a865b21c59f005f6 (Tue Mar 6 04:31:14 2018 +) > Merge tag 'please-pull-ia64_misc' of > git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux > > So far this

[PATCH] media: dvb_frontends: fix spelling mistake: "unexpcted" -> "unexpected"

2018-05-11 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dprintk message text Signed-off-by: Colin Ian King --- drivers/media/dvb-frontends/l64781.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/l64781.c b/drivers/media/dvb-frontends/l64781

Re: [PATCH v2] mm: allow deferred page init for vmemmap only

2018-05-11 Thread Pavel Tatashin
> Thanks that helped me to see the problem. On the other hand isn't this a > bit of an overkill? AFAICS this affects only NEED_PER_CPU_KM which is !SMP > and DEFERRED_STRUCT_PAGE_INIT makes only very limited sense on UP, > right? > Or do we have more such places? I do not know other places, but m

Re: [PATCH] pci: endpoint: Replace mdelay with usleep_range in pci_epf_test_write

2018-05-11 Thread Lorenzo Pieralisi
On Tue, Apr 10, 2018 at 09:04:06PM +0800, Jia-Ju Bai wrote: > pci_epf_test_write() is never called in atomic context. > > The call chain ending up at pci_epf_test_write() is: > [1] pci_epf_test_write() <- pci_epf_test_cmd_handler() > > pci_epf_test_cmd_handler() is set as a parameter of INIT_DELA

[PATCH v3] Input: add bu21029 touch driver

2018-05-11 Thread Mark Jonas
From: Zhu Yi Add Rohm BU21029 resistive touch panel controller support with I2C interface. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher Reviewed-by: Rob Herring --- Changes in v3: - reviewed by Rob Herring --- Changes in v2: - make ABS_PRESSURE proportionally

[PATCH 3/3] perf/arm-cci: Allow building as a module

2018-05-11 Thread Robin Murphy
Fill in the few extra bits and annotations needed to make the driver work properly as a module, and jiggle the Kconfig to expose the driver-level ARM_CCI_PMU option. Signed-off-by: Robin Murphy --- Preserving the current level of configurability does end up allowing a rather pointless module con

[PATCH 1/3] perf/arm-cc*: Fix MODULE_LICENSE() tags

2018-05-11 Thread Robin Murphy
The CCI/CCN drivers are licensed under GPLv2, but the MODULE_LICENSE() tags are using the bare "GPL" string implying GPLv2 or later. Fix them to match their actual file license. Acked-by: Pawel Moll Acked-by: Suzuki K Poulose Signed-off-by: Robin Murphy --- drivers/perf/arm-cci.c | 2 +- drive

[PATCH 0/3] perf: make Arm CCI driver modular

2018-05-11 Thread Robin Murphy
Now that it has been surgically removed from the MCPM port-control code, we can let the CCI PMU driver be modular. Probing the PMU in the first place still depends on the bus driver stub being built-in, but it's a small price to pay compared to the major upheaval of completely reworking the DT-hand

[PATCH 2/3] perf/arm-cci: Remove pointless PMU disabling

2018-05-11 Thread Robin Murphy
The CCI PMU driver bears some legacy remnants of the arm_pmu framework from when it was split in c6f85cb4305b ("bus: cci: move away from arm_pmu framework"). In particular this perf_pmu_{dis,en}able() dance around pmu->add which was fixed for arm_pmu in a9e469d1c89b ("drivers/perf: arm_pmu: remove

Re: [PATCH v2] selftests/cgroup: memory controller self-tests

2018-05-11 Thread Tejun Heo
Hello, Shuah. On Thu, May 10, 2018 at 01:29:07PM -0600, Shuah Khan wrote: > Don't pull them yet. If Roman can redo the patches on linux-kselftest next, > he can pick up the SKIP changes. So, what we can do is either fix that up during / after the merge window or creating a separate branch which p

[PATCH v6 0/2] Base enablement of IOMMU debugfs support

2018-05-11 Thread Gary R Hook
These patches create a top-level function, called at IOMMU initialization, to create a debugfs directory for the IOMMU. Under this directory drivers may create and populate-specific directories for their device internals. Patch 1: general IOMMU enablement Patch 2: basic AMD enablement to demonstra

[PATCH v6 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU

2018-05-11 Thread Gary R Hook
Implement a skeleton framework for debugfs support in the AMD IOMMU. Signed-off-by: Gary R Hook --- drivers/iommu/Makefile|5 + drivers/iommu/amd_iommu_debugfs.c | 39 + drivers/iommu/amd_iommu_init.c|6 -- drivers/iommu/amd_

[PATCH v6 1/2] iommu - Enable debugfs exposure of IOMMU driver internals

2018-05-11 Thread Gary R Hook
Provide base enablement for using debugfs to expose internal data of an IOMMU driver. When called, create the /sys/kernel/debug/iommu directory. Emit a strong warning at boot time to indicate that this feature is enabled. This function is called from iommu_init, and creates the initial DebugFS di

Re: [PATCH v2 1/4] drm/rockchip: add transfer function for cdn-dp

2018-05-11 Thread Sean Paul
On Wed, May 09, 2018 at 06:22:41PM +0800, Lin Huang wrote: > From: Chris Zhong > > We may support training outside firmware, so we need support > dpcd read/write to get the message or do some setting with > display. > > Signed-off-by: Chris Zhong > Signed-off-by: Lin Huang FTR, I've already d

Re: [PATCH v4 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet

2018-05-11 Thread Maxime Ripard
On Tue, May 08, 2018 at 12:04:13AM +0200, Paul Kocialkowski wrote: > +++ b/arch/arm/boot/dts/sun7i-a20-ainol-aw1.dts > @@ -0,0 +1,297 @@ > +/* > + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) This really should be the first line, and with a C++ style comment, as in: // SPDX-License-Identifier: (G

Re: Delivery Status Notification (Failure)

2018-05-11 Thread Pintu Kumar
On Fri, May 11, 2018 at 6:34 PM, Lucas Stach wrote: > Am Freitag, den 11.05.2018, 13:39 +0100 schrieb Russell King - ARM Linux: >> On Fri, May 11, 2018 at 05:07:37PM +0530, Pintu Kumar wrote: >> > Hi, >> > >> > I need one help. >> > I am using i.MX7 Sabre board with kernel version 4.1.15 >> > >> >

Re: [PATCH 2/3] perf/arm-cci: Remove pointless PMU disabling

2018-05-11 Thread Mark Rutland
On Fri, May 11, 2018 at 03:29:13PM +0100, Robin Murphy wrote: > The CCI PMU driver bears some legacy remnants of the arm_pmu framework > from when it was split in c6f85cb4305b ("bus: cci: move away from > arm_pmu framework"). In particular this perf_pmu_{dis,en}able() dance > around pmu->add which

Re: [PATCH v2 2/4] phy: rockchip-typec: support variable phy config value

2018-05-11 Thread Sean Paul
On Wed, May 09, 2018 at 06:22:42PM +0800, Lin Huang wrote: > the phy config values used to fix in dp firmware, but some boards > need change these values to do training and get the better eye diagram > result. So support that in phy driver. > FTR, I've previously reviewed this at https://chromium-

[RFC PATCH v4 0/5] ima: Namespacing IMA

2018-05-11 Thread Stefan Berger
This patch set implements an IMA namespace data structure that gets created by first writing a '1' into IMA's securityfs unshare file at /sys/kernel/security/ima/unshare and then by clone(). This patch set lays down the foundation for namespacing the different aspects of IMA (eg. IMA-audit, IMA-mea

[RFC PATCH v4 5/5] ima: namespace audit status flags

2018-05-11 Thread Stefan Berger
From: Mehmet Kayaalp The iint cache stores whether the file is measured, appraised, audited etc. This patch moves the IMA_AUDITED flag into the per-namespace ns_status, enabling IMA audit mechanism to audit the same file each time it is accessed in a new namespace. The ns_status is not looked up

Re: [PATCH v2 3/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY

2018-05-11 Thread Sean Paul
On Wed, May 09, 2018 at 06:22:43PM +0800, Lin Huang wrote: > If want to do training outside DP Firmware, need phy voltage swing > and pre_emphasis value. > > Signed-off-by: Lin Huang Adding Rob Herring so he has a hope of seeing this. > --- > Changes in v2: > - rebase > > Documentation/device

[RFC PATCH v4 1/5] ima: Add IMA namespace support

2018-05-11 Thread Stefan Berger
From: Yuqiong Sun Add a new CONFIG_IMA_NS config option that enables one to create a new IMA namespace. We do this by writing a file into IMA's new securityfs 'unshare' file, which will have a new child process get the IMA namespace. We create the IMA namespace when a user writes a boolean '1' in

[RFC PATCH v4 2/5] ima: Add ns_status for storing namespaced iint data

2018-05-11 Thread Stefan Berger
From: Mehmet Kayaalp This patch adds an rbtree to the IMA namespace structure that stores a namespaced version of iint->flags in ns_status struct. Similar to the integrity_iint_cache, both the iint ns_struct are looked up using the inode pointer value. The lookup, allocate, and insertion code is

[RFC PATCH v4 3/5] ima: differentiate auditing policy rules from "audit" actions

2018-05-11 Thread Stefan Berger
From: Mimi Zohar The AUDIT_INTEGRITY_RULE is used for auditing IMA policy rules and the IMA "audit" policy action. This patch defines AUDIT_INTEGRITY_POLICY to reflect the IMA policy rules. Signed-off-by: Mimi Zohar --- include/uapi/linux/audit.h | 3 ++- security/integrity/ima/ima_p

[RFC PATCH v4 4/5] ima: extend IMA audit policy rules with attribute to audit namespaces

2018-05-11 Thread Stefan Berger
Introduce a policy rule attribute called 'ns' that indicates that a rule is supposed to apply to child namespaces of an IMA namespace. We support this 'ns' attribute only for IMA-audit for now. IMA-measurement will get support for this in a future version. If 'uid=...' appears in a policy rule tha

Re: [PATCH RFC 07/19] perf tools: Workaround missing maps for x86_64 KPTI entry trampolines

2018-05-11 Thread Arnaldo Carvalho de Melo
Em Fri, May 11, 2018 at 02:18:01PM +0300, Adrian Hunter escreveu: > On 10/05/18 23:47, Arnaldo Carvalho de Melo wrote: > > Em Thu, May 10, 2018 at 05:19:22PM -0300, Arnaldo Carvalho de Melo escreveu: > >> Em Thu, May 10, 2018 at 05:15:42PM -0300, Arnaldo Carvalho de Melo > >> escreveu: > >>> Em Th

Re: [PATCH v3 5/8] MIPS: jz4740: dts: Add bindings for the jz4740-wdt driver

2018-05-11 Thread James Hogan
On Thu, May 10, 2018 at 08:47:48PM +0200, Paul Cercueil wrote: > Also remove the watchdog platform_device from platform.c, since it > wasn't used anywhere anyway. Nit: it'd be slightly nicer IMO if the patch body was a superset of the subject line. It's fine to repeat what the subject says since t

Re: [PATCH v2] selftests/cgroup: memory controller self-tests

2018-05-11 Thread Shuah Khan
On 05/11/2018 08:32 AM, Tejun Heo wrote: > Hello, Shuah. > > On Thu, May 10, 2018 at 01:29:07PM -0600, Shuah Khan wrote: >> Don't pull them yet. If Roman can redo the patches on linux-kselftest next, >> he can pick up the SKIP changes. > > So, what we can do is either fix that up during / after t

Re: [PATCH v2] arm64: allwinner: a64: Add Amarula A64 Relic initial support

2018-05-11 Thread Maxime Ripard
On Fri, May 11, 2018 at 11:37:04AM +0530, Jagan Teki wrote: > On Fri, May 11, 2018 at 11:20 AM, Chen-Yu Tsai wrote: > > On Thu, May 10, 2018 at 10:43 PM, Jagan Teki > > wrote: > >> Amarula A64 Relic is Allwinner A64 based IoT device, which support > >> - Allwinner A64 Cortex-A53 > >> - Mali-400M

Re: [PATCH v2 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-11 Thread Sean Paul
On Wed, May 09, 2018 at 06:22:44PM +0800, Lin Huang wrote: > DP firmware uses fixed phy config values to do training, but some > boards need to adjust these values to fit for their unique hardware > design. So if the phy is using custom config values, do software > link training instead of relying

<    1   2   3   4   5   6   7   >