[PATCH v2 1/2] arm64/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT

2018-05-03 Thread Ganesh Mahendran
Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT for arm64. This enables Speculative Page Fault handler. Signed-off-by: Ganesh Mahendran --- v2: remove "if SMP" --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index eb2cf49..b3ca29d 10064

[PATCH v2 2/2] arm64/mm: add speculative page fault

2018-05-03 Thread Ganesh Mahendran
This patch enables the speculative page fault on the arm64 architecture. I completed spf porting in 4.9. From the test result, we can see app launching time improved by about 10% in average. For the apps which have more than 50 threads, 15% or even more improvement can be got. Signed-off-by: Gane

Re: [PATCH v5 12/14] cpufreq: Add Kryo CPU scaling driver

2018-05-03 Thread Viresh Kumar
On 04-05-18, 09:44, ilia...@codeaurora.org wrote: > > > > -Original Message- > > From: Viresh Kumar > > Sent: Friday, May 4, 2018 09:08 > > To: Ilia Lin > > Cc: mturque...@baylibre.com; sb...@kernel.org; r...@kernel.org; > > mark.rutl...@arm.com; r...@rjwysocki.net; lgirdw...@gmail.com;

v4.4-stable: GPMI nand controller broken

2018-05-03 Thread Sascha Hauer
The following went into v4.4.120: 197190bc5c48 mtd: nand: gpmi: Fix failure when a erased page has a bitflip at BBM This patch was backported to far for the stable tree. It only makes sense (and only works) together with: bd2e778c9ee3 gpmi-nand: Handle ECC Errors in erased pages which first ap

[BUG] i2c-hid: ELAN Touchpad does not work on ASUS X580GD

2018-05-03 Thread Jian-Hong Pan
Hi, We have an ASUS X580GD (Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz) laptop equipped with ELAN1200 touchpad which does not work totally, but the external mouse works fine. We have checked the input devices by "cat /proc/bus/input/devices", and the touchpad does not appear in the list. According

Re: [PATCH] i2c: core-smbus: fix a potential uninitialization bug

2018-05-03 Thread Peter Rosin
On 2018-05-04 07:28, Wenwen Wang wrote: > On Fri, May 4, 2018 at 12:04 AM, Peter Rosin wrote: >> On 2018-05-04 06:08, Wenwen Wang wrote: >>> On Thu, May 3, 2018 at 3:34 PM, Peter Rosin wrote: On 2018-05-03 00:36, Wenwen Wang wrote: > In i2c_smbus_xfer_emulated(), there are two buffers: m

RE: [PATCH v4 08/14] dt: qcom: Add opp and thermal to the msm8996

2018-05-03 Thread ilialin
Kryo has single clock per cluster. I define here a shared OPP table per cluster. > -Original Message- > From: Viresh Kumar > Sent: Friday, May 4, 2018 09:04 > To: Ilia Lin > Cc: Michael Turquette ; Stephen Boyd > ; Rob Herring ; Mark Rutland > ; Rafael J. Wysocki ; Liam > Girdwood ; Mark

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

2018-05-03 Thread poza
On 2018-05-03 10:33, Oza Pawandeep wrote: This patch factors out error reporting callbacks, which are currently tightly coupled with AER. DPC should be able to register callbacks and attempt recovery when DPC trigger event occurs. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/Mak

RE: [PATCH v5 13/14] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu

2018-05-03 Thread ilialin
> -Original Message- > From: Viresh Kumar > Sent: Friday, May 4, 2018 09:11 > To: Ilia Lin > Cc: mturque...@baylibre.com; sb...@kernel.org; r...@kernel.org; > mark.rutl...@arm.com; r...@rjwysocki.net; lgirdw...@gmail.com; > broo...@kernel.org; andy.gr...@linaro.org; david.br...@lina

[PATCH v10 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2018-05-03 Thread Yong Deng
Add binding documentation for Allwinner V3s CSI. Acked-by: Maxime Ripard Acked-by: Sakari Ailus Reviewed-by: Rob Herring Signed-off-by: Yong Deng --- .../devicetree/bindings/media/sun6i-csi.txt| 59 ++ 1 file changed, 59 insertions(+) create mode 100644 Documentat

[PATCH v10 0/2] Initial Allwinner V3s CSI Support

2018-05-03 Thread Yong Deng
This patchset add initial support for Allwinner V3s CSI. Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 interface and CSI1 is used for parallel interface. This is not documented in datasheet but by test and guess. This patchset implement a v4l2 framework driver and add a b

RE: [PATCH v5 12/14] cpufreq: Add Kryo CPU scaling driver

2018-05-03 Thread ilialin
> -Original Message- > From: Viresh Kumar > Sent: Friday, May 4, 2018 09:08 > To: Ilia Lin > Cc: mturque...@baylibre.com; sb...@kernel.org; r...@kernel.org; > mark.rutl...@arm.com; r...@rjwysocki.net; lgirdw...@gmail.com; > broo...@kernel.org; andy.gr...@linaro.org; david.br...@linaro.o

Re: pciehp 0000:00:1c.0:pcie004: Timeout on hotplug command 0x1038 (issued 65284 msec ago)

2018-05-03 Thread okaya
On 2018-05-04 03:45, Bjorn Helgaas wrote: On Thu, May 03, 2018 at 10:49:24AM +0200, Paul Menzel wrote: On 04/27/18 21:22, Bjorn Helgaas wrote: > [+cc Lukas, Sinan] > On Thu, Apr 26, 2018 at 12:17:53PM +0200, Paul Menzel wrote: > > On the Lenovo X60t, during resume from ACPI suspend and during

Re: [PATCH 2/2] arm64/mm: add speculative page fault

2018-05-03 Thread Ganesh Mahendran
2018-05-02 22:46 GMT+08:00 Punit Agrawal : > Hi Ganesh, > > I was looking at evaluating speculative page fault handling on arm64 and > noticed your patch. > > Some comments below - Thanks for your review. > > Ganesh Mahendran writes: > >> This patch enables the speculative page fault on the arm6

Re: [PATCH 2/2] arm64/mm: add speculative page fault

2018-05-03 Thread Ganesh Mahendran
2018-05-02 17:07 GMT+08:00 Laurent Dufour : > On 02/05/2018 09:54, Ganesh Mahendran wrote: >> This patch enables the speculative page fault on the arm64 >> architecture. >> >> I completed spf porting in 4.9. From the test result, >> we can see app launching time improved by about 10% in average. >>

Re: [PATCH 2/2] MIPS: Convert update_persistent_clock() to update_persistent_clock64()

2018-05-03 Thread Baolin Wang
On 4 May 2018 at 06:31, Arnd Bergmann wrote: > On Wed, May 2, 2018 at 10:53 PM, Baolin Wang wrote: >> diff --git a/arch/mips/include/asm/time.h b/arch/mips/include/asm/time.h >> index 17d4cd2..c4e2a1a 100644 >> --- a/arch/mips/include/asm/time.h >> +++ b/arch/mips/include/asm/time.h >> @@ -27,8 +

[patch-rt] sched,fair: Fix CFS bandwidth control lockdep DEADLOCK report

2018-05-03 Thread Mike Galbraith
CFS bandwidth control yields the inversion gripe below, moving handling quells it. WARNING: possible irq lock inversion dependency detected 4.16.7-rt1-rt #2 Tainted: GE

Re: [PATCH v5 13/14] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu

2018-05-03 Thread Viresh Kumar
On 03-05-18, 14:52, Ilia Lin wrote: > In Certain Qualcomm Technologies, Inc. SoCs like apq8096 and msm8996 > that have KRYO processors, the CPU ferequencies subset and voltage value > of each OPP varies based on the silicon variant in use. > Qualcomm Technologies, Inc. Process Voltage Scaling Table

Re: [PATCH] drm/bridge: adv7511: fix spelling of driver name in Kconfig

2018-05-03 Thread Archit Taneja
On Friday 27 April 2018 03:11 AM, Laurent Pinchart wrote: Hi Peter, Thank you for the patch. On Friday, 27 April 2018 00:36:44 EEST Peter Rosin wrote: Could perhaps prevent some confusion. queued to drm-misc-next Thanks, Archit Signed-off-by: Peter Rosin Reviewed-by: Laurent Pinchar

[PATCH V2 4/5] X86: Hyper-V: Consolidate code for converting cpumask to vpset

2018-05-03 Thread kys
From: "K. Y. Srinivasan" Consolidate code for converting cpumask to vpset. Signed-off-by: K. Y. Srinivasan --- arch/x86/hyperv/mmu.c | 43 ++- 1 file changed, 2 insertions(+), 41 deletions(-) diff --git a/arch/x86/hyperv/mmu.c b/arch/x86/hyperv/mmu.c in

[PATCH V2 3/5] X86: Hyper-V: Enhanced IPI enlightenment

2018-05-03 Thread kys
From: "K. Y. Srinivasan" Support enhanced IPI enlightenments (to target more than 64 CPUs). Signed-off-by: K. Y. Srinivasan --- arch/x86/hyperv/hv_apic.c | 42 +- arch/x86/hyperv/mmu.c | 2 +- arch/x86/include/asm/hyperv-tlfs.h | 15 ++

[PATCH V2 1/5] X86: Hyper-V: Enlighten APIC access

2018-05-03 Thread kys
From: "K. Y. Srinivasan" Hyper-V supports MSR based APIC access; implement the enlightenment. Signed-off-by: K. Y. Srinivasan --- arch/x86/hyperv/Makefile| 2 +- arch/x86/hyperv/hv_apic.c | 101 arch/x86/hyperv/hv_init.c | 5 +-

[PATCH V2 5/5] X86: Hyper-V: Consolidate the allocation of the hypercall input page

2018-05-03 Thread kys
From: "K. Y. Srinivasan" Consolidate the allocation of the hypercall input page. Signed-off-by: K. Y. Srinivasan --- arch/x86/hyperv/hv_init.c | 2 -- arch/x86/hyperv/mmu.c | 30 ++ arch/x86/include/asm/mshyperv.h | 1 - 3 files changed, 6 insertio

[PATCH V2 2/5] X86: Hyper-V: Enable IPI enlightenments

2018-05-03 Thread kys
From: "K. Y. Srinivasan" Hyper-V supports hypercalls to implement IPI; use them. Signed-off-by: K. Y. Srinivasan --- arch/x86/hyperv/hv_apic.c | 118 + arch/x86/hyperv/hv_init.c | 27 + arch/x86/include/asm/hyperv-tlfs.h | 15

Re: [PATCH] gpu: drm: bridge: adv7511: Replace mdelay with usleep_range in adv7511_probe

2018-05-03 Thread Archit Taneja
On Friday 27 April 2018 03:46 AM, Laurent Pinchart wrote: Hi Jia-Ju, Thank you for the patch. On Wednesday, 11 April 2018 11:33:42 EEST Jia-Ju Bai wrote: adv7511_probe() is never called in atomic context. This function is only set as ".probe" in struct i2c_driver. Despite never getting call

Re: [PATCH v5 12/14] cpufreq: Add Kryo CPU scaling driver

2018-05-03 Thread Viresh Kumar
On 03-05-18, 14:52, Ilia Lin wrote: > In Certain QCOM SoCs like apq8096 and msm8996 that have KRYO processors, > the CPU ferequencies subset and voltage value of each OPP varies > based on the silicon variant in use. Qualcomm Process Voltage Scaling Tables > defines the voltage and frequency value

[PATCH V2 0/5] X86: Hyper-V: APIC enlightenments

2018-05-03 Thread kys
From: "K. Y. Srinivasan" Implement APIC related enlightenments. V2: Addressed comments from Thomas Gleixner and Michael Kelley (EOSG) . K. Y. Srinivasan (5): X86: Hyper-V: Enlighten APIC access X86: Hyper-V: Enable IPI enlightenments X86: Hyper-V: Enhanced IPI enlightenment X86: Hyper-

Re: [PATCH v5 00/14] CPU scaling support for msm8996

2018-05-03 Thread Viresh Kumar
On 03-05-18, 14:52, Ilia Lin wrote: > [v5] > * Rebased > * Adressed comments from Bjorn > * Adressed comments from Viresh > * Adressed comments from Sricharan > * Adressed comments from Nicolas > * Adressed comments from Rob > * Adressed comments from Mark s/Adressed/Addressed/ And that's

[PATCH 01/17] x86/xen/efi: Initialize UEFI secure boot state during dom0 boot

2018-05-03 Thread Ard Biesheuvel
From: Daniel Kiper Initialize UEFI secure boot state during dom0 boot. Otherwise the kernel may not even know that it runs on secure boot enabled platform. Note that part of drivers/firmware/efi/libstub/secureboot.c is duplicated by this patch, only in this case, it runs in the context of the ke

[PATCH v3] watchdog: sp805: add restart handler

2018-05-03 Thread Jongsung Kim
Add restart handler for SP805 watchdog so that the driver can be used to reboot the system. Signed-off-by: Jongsung Kim Cc: Guenter Roeck --- drivers/watchdog/sp805_wdt.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wd

[PATCH 04/17] efi: Decode IA32/X64 Processor Error Section

2018-05-03 Thread Ard Biesheuvel
From: Yazen Ghannam Recognize the IA32/X64 Processor Error Section. Do the section decoding in a new "cper-x86.c" file and add this to the Makefile depending on a new "UEFI_CPER_X86" config option. Print the Local APIC ID and CPUID info from the Processor Error Record. The "Processor Error Inf

Re: [PATCH 1/2] arm64/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT

2018-05-03 Thread Ganesh Mahendran
2018-05-02 20:23 GMT+08:00 Will Deacon : > On Wed, May 02, 2018 at 03:53:21PM +0800, Ganesh Mahendran wrote: >> Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT for arm64. This >> enables Speculative Page Fault handler. > > Are there are tests for this? I'm really nervous about enabling it... Hi, Will I

[PATCH 03/17] efi: Fix IA32/X64 Processor Error Record definition

2018-05-03 Thread Ard Biesheuvel
From: Yazen Ghannam Based on UEFI 2.7 Table 255. Processor Error Record, the "Local APIC_ID" field is 8 bytes but Linux defines this field as 1 byte. Fix this in the struct cper_sec_proc_ia definition. Signed-off-by: Yazen Ghannam Signed-off-by: Ard Biesheuvel --- include/linux/cper.h | 2 +-

[PATCH 06/17] efi: Decode UEFI-defined IA32/X64 Error Structure GUIDs

2018-05-03 Thread Ard Biesheuvel
From: Yazen Ghannam For easier handling, match the known IA32/X64 error structure GUIDs to enums. Also, print out the name of the matching Error Structure Type. Only print the GUID for unknown types. GUIDs taken from UEFI 2.7 section N.2.4.2.1 IA32/X64 Processor Error Information Structure. S

[PATCH 05/17] efi: Decode IA32/X64 Processor Error Info Structure

2018-05-03 Thread Ard Biesheuvel
From: Yazen Ghannam Print the fields in the IA32/X64 Processor Error Info Structure. Based on UEFI 2.7 Table 253. IA32/X64 Processor Error Information Structure. Signed-off-by: Yazen Ghannam Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/cper-x86.c | 48 ++

[PATCH 02/17] efi/cper: Remove the INDENT_SP silliness

2018-05-03 Thread Ard Biesheuvel
From: Borislav Petkov A separate define just to print a space character is silly and completely unneeded. Remove it. Signed-off-by: Borislav Petkov Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/cper-arm.c | 6 ++ drivers/firmware/efi/cper.c | 6 ++ 2 files changed, 4 inse

Re: [PATCH v4 08/14] dt: qcom: Add opp and thermal to the msm8996

2018-05-03 Thread Viresh Kumar
On 2 April 2018 at 14:46, Viresh Kumar wrote: >> + cluster0_opp: opp_table0 { >> + compatible = "operating-points-v2"; >> + opp-shared; > > Is Kryo like krait where CPUs do DVFS independently ? If yes, then opp-shared > thing should be dropped. Have you ever replied t

[PATCH 10/17] efi: Decode IA32/X64 Context Info structure

2018-05-03 Thread Ard Biesheuvel
From: Yazen Ghannam Print the fields of the IA32/X64 Context Information structure. Print the "Register Array" as raw values. Some context types are defined in the UEFI spec, so more detailed decoded may be added in the future. Based on UEFI 2.7 section N.2.4.2.2 IA32/X64 Processor Context Info

[PATCH 07/17] efi: Decode IA32/X64 Cache, TLB, and Bus Check structures

2018-05-03 Thread Ard Biesheuvel
From: Yazen Ghannam Print the common fields of the Cache, TLB, and Bus check structures.The fields of these three check types are the same except for a few more fields in the Bus check structure. The remaining Bus check structure fields will be decoded in a following patch. Based on UEFI 2.7, Ta

[PATCH 08/17] efi: Decode additional IA32/X64 Bus Check fields

2018-05-03 Thread Ard Biesheuvel
From: Yazen Ghannam The "Participation Type", "Time Out", and "Address Space" fields are unique to the IA32/X64 Bus Check structure. Print these fields. Based on UEFI 2.7 Table 256. IA32/X64 Bus Check Structure Signed-off-by: Yazen Ghannam Signed-off-by: Ard Biesheuvel --- drivers/firmware/e

[PATCH 12/17] efi: fix efi_pci_io_protocol32 prototype for mixed mode

2018-05-03 Thread Ard Biesheuvel
Mixed mode allows a kernel built for x86_64 to interact with 32-bit EFI firmware, but requires us to define all struct definitions carefully when it comes to pointer sizes. efi_pci_io_protocol32 currently uses a void* for the 'romimage' field, which will be interpreted as a 64-bit field on such ker

[PATCH 13/17] efi: align efi_pci_io_protocol typedefs to type naming convention

2018-05-03 Thread Ard Biesheuvel
In order to use the helper macros that perform type mangling with the EFI PCI I/O protocol struct typedefs, align their Linux typenames with the convention we use for definitionns that originate in the UEFI spec, and add the trailing _t to each. Tested-by: Hans de Goede Signed-off-by: Ard Biesheu

[PATCH 15/17] efi/x86: Ignore unrealistically large option roms

2018-05-03 Thread Ard Biesheuvel
From: Hans de Goede setup_efi_pci() tries to save a copy of each PCI option ROM as this may be necessary for the device driver for the PCI device to have access too. On some systems the efi_pci_io_protocol's romimage and romsize fields contain invalid data, which looks a bit like pointers pointi

[PATCH 09/17] efi: Decode IA32/X64 MS Check structure

2018-05-03 Thread Ard Biesheuvel
From: Yazen Ghannam The IA32/X64 MS Check structure varies from the other Check structures in the the bit positions of its fields, and it includes an additional "Error Type" field. Decode the MS Check structure in a separate function. Based on UEFI 2.7 Table 257. IA32/X64 MS Check Field Descrip

[PATCH 11/17] efi/libstub/tpm: Make function efi_retrieve_tpm2_eventlog_1_2() static

2018-05-03 Thread Ard Biesheuvel
From: Wei Yongjun Fixes the following sparse warning: drivers/firmware/efi/libstub/tpm.c:62:6: warning: symbol 'efi_retrieve_tpm2_eventlog_1_2' was not declared. Should it be static? Signed-off-by: Wei Yongjun Reviewed-by: Jarkko Sakkinen Signed-off-by: Ard Biesheuvel --- drivers/firmware/

[PATCH 16/17] efi/capsule-loader: Don't output reset log when reset flags are not set

2018-05-03 Thread Ard Biesheuvel
From: Shunyong Yang When reset flags in capsule header are not set, it means firmware attempts to immediately process or launch the capsule. Moreover, reset is not needed in this case. The current code will output log to indicate reset. This patch adds a branch to avoid reset log output when the

[PATCH 17/17] efi/libstub/arm64: handle randomized TEXT_OFFSET

2018-05-03 Thread Ard Biesheuvel
From: Mark Rutland When CONFIG_RANDOMIZE_TEXT_OFFSET is selected, TEXT_OFFSET is an arbitrary multiple of PAGE_SIZE in the interval [0, 2MB). The EFI stub does not account for the potential misalignment of TEXT_OFFSET relative to EFI_KIMG_ALIGN, and produces a randomized physical offset which is

[PATCH 14/17] efi/x86: fold __setup_efi_pci32 and __setup_efi_pci64 into one

2018-05-03 Thread Ard Biesheuvel
As suggested by Lukas, use his efi_call_proto() and efi_table_attr() macros to merge __setup_efi_pci32() and __setup_efi_pci64() into a single function, removing the need to duplicate changes made in subsequent patches across both. Cc: Lukas Wunner Tested-by: Hans de Goede Signed-off-by: Ard Bie

[GIT PULL 00/17] EFI updates for v4.18

2018-05-03 Thread Ard Biesheuvel
The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-next for you to fetch changes up to a0e781fedc0e975d2f33fda94e26

Re: [PATCH v7 3/9] PCI: endpoint: functions/pci-epf-test: Add second entry

2018-05-03 Thread Kishon Vijay Abraham I
Hi Lorenzo, On Thursday 03 May 2018 07:46 PM, Lorenzo Pieralisi wrote: > On Thu, May 03, 2018 at 12:03:15PM +0530, Kishon Vijay Abraham I wrote: > > [...] > Since the linkup notifier and BAR index (where auxiliary registers are located) may be configurable and is something platform dep

Re: [PATCH v2] mm/ksm: ignore STABLE_FLAG of rmap_item->address in rmap_walk_ksm

2018-05-03 Thread Jia He
[+Hugh Dickins] Cheers, Jia On 5/4/2018 11:11 AM, Jia He Wrote: In our armv8a server(QDF2400), I noticed lots of WARN_ON caused by PAGE_SIZE unaligned for rmap_item->address under memory pressure tests(start 20 guests and run memhog in the host). --begin-

Re: [PATCH v5 2/5] efi: Add embedded peripheral firmware support

2018-05-03 Thread Ard Biesheuvel
Hi Hans, One comment below, which I missed in review before. On 29 April 2018 at 11:35, Hans de Goede wrote: > Just like with PCI options ROMs, which we save in the setup_efi_pci* > functions from arch/x86/boot/compressed/eboot.c, the EFI code / ROM itself > sometimes may contain data which is u

Re: [PATCH v2 2/2] mm: vmalloc: Pass proper vm_start into debugobjects

2018-05-03 Thread Chintan Pandya
On 5/4/2018 3:12 AM, Andrew Morton wrote: On Tue, 17 Apr 2018 16:13:48 +0530 Chintan Pandya wrote: Client can call vunmap with some intermediate 'addr' which may not be the start of the VM area. Entire unmap code works with vm->vm_start which is proper but debug object API is called with 'a

Re: [PATCH v5 2/5] efi: Add embedded peripheral firmware support

2018-05-03 Thread Ard Biesheuvel
On 4 May 2018 at 01:29, Luis R. Rodriguez wrote: > On Sun, Apr 29, 2018 at 11:35:55AM +0200, Hans de Goede wrote: [...] >> diff --git a/Documentation/driver-api/firmware/request_firmware.rst >> b/Documentation/driver-api/firmware/request_firmware.rst >> index c8bddbdcfd10..560dfed76e38 100644 >>

[PATCH v7 2/2] PCI: mediatek: Using chained IRQ to setup IRQ handle

2018-05-03 Thread honghui.zhang
From: Honghui Zhang Using irq_chip solution to setup IRQs in order to consist with IRQ framework. Signed-off-by: Honghui Zhang Acked-by: Ryder Lee --- drivers/pci/host/pcie-mediatek.c | 206 ++- 1 file changed, 115 insertions(+), 91 deletions(-) diff --git

[PATCH v7 0/2] PCI: mediatek: Fixups for the IRQ handle routine and MT7622's class code

2018-05-03 Thread honghui.zhang
From: Honghui Zhang Two fixups for mediatek's host bridge: The first patch fixup class type and vendor ID for MT7622. The second patch fixup the IRQ handle routine by using irq_chip solution to avoid IRQ reentry which may exist for both MT2712 and MT7622. Change since v6: - Remove the irq_mask,

[PATCH v7 1/2] PCI: mediatek: Set up vendor ID and class type for MT7622

2018-05-03 Thread honghui.zhang
From: Honghui Zhang MT7622's hardware default value of vendor ID and class type is not correct, fix that by setup the correct values before linkup with Endpoint. Signed-off-by: Honghui Zhang Acked-by: Ryder Lee --- drivers/pci/host/pcie-mediatek.c | 30 +++--- include/

Re: KASAN: use-after-free Read in process_preds

2018-05-03 Thread Dmitry Vyukov
On Fri, Apr 27, 2018 at 5:19 PM, Dmitry Vyukov wrote: > On Fri, Apr 27, 2018 at 7:30 AM, syzbot > wrote: >> Hello, >> >> syzbot hit the following crash on bpf-next commit >> 5d1365940a68dd57b031b6e3c07d7d451cd69daf (Thu Apr 12 18:09:05 2018 +) >> Merge git://git.kernel.org/pub/scm/linux/kerne

Re: [PATCH 04/15] powerpc/powernv: opal-kmsg use flush fallback from console code

2018-05-03 Thread Nicholas Piggin
On Fri, 04 May 2018 15:16:37 +1000 Michael Ellerman wrote: > Nicholas Piggin writes: > > > Use the more refined and tested event polling loop from opal_put_chars > > as the fallback console flush in the opal-kmsg path. This loop is used > > by the console driver today, whereas the opal-kmsg fal

Re: KASAN: use-after-free Write in process_preds

2018-05-03 Thread Dmitry Vyukov
On Fri, May 4, 2018 at 7:30 AM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:03f5781be2c7 bpf, x86_32: add eBPF JIT compiler for ia32 > git tree: bpf-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1362723780 > kernel config: https

Re: [PATCH v2] staging: lustre: llite: fix potential missing-check bug when copying lumv

2018-05-03 Thread Wenwen Wang
On Fri, May 4, 2018 at 12:27 AM, Dan Carpenter wrote: > There is no security problem here. The user is allowed to choose either > v1 or v3. Using a double read race condition to choose v1 is not > going to cause problems. It's slightly more complicated than just > choosing it directly but that

KASAN: use-after-free Write in process_preds

2018-05-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:03f5781be2c7 bpf, x86_32: add eBPF JIT compiler for ia32 git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=1362723780 kernel config: https://syzkaller.appspot.com/x/.config?x=3d356c2d908b7293 dashbo

Re: [PATCH] i2c: core-smbus: fix a potential uninitialization bug

2018-05-03 Thread Wenwen Wang
On Fri, May 4, 2018 at 12:04 AM, Peter Rosin wrote: > On 2018-05-04 06:08, Wenwen Wang wrote: >> On Thu, May 3, 2018 at 3:34 PM, Peter Rosin wrote: >>> On 2018-05-03 00:36, Wenwen Wang wrote: In i2c_smbus_xfer_emulated(), there are two buffers: msgbuf0 and msgbuf1, which are used to sav

Re: [PATCH v2] staging: lustre: llite: fix potential missing-check bug when copying lumv

2018-05-03 Thread Dan Carpenter
There is no security problem here. The user is allowed to choose either v1 or v3. Using a double read race condition to choose v1 is not going to cause problems. It's slightly more complicated than just choosing it directly but that doesn't make it a security issue. It's a bit like typing with

[PATCH 0/4] iommu/vt-d: Several cleanup patches

2018-05-03 Thread Lu Baolu
Hi, This includes several cleanup patches which aim to make the code more concise and easier for reading. There aren't any functionality changes. Best regards, Lu Baolu Lu Baolu (4): iommu: Clean up the comments for iommu_group_alloc iommu/vt-d: Clean up unused variable in find_or_alloc_doma

[PATCH 2/4] iommu/vt-d: Clean up unused variable in find_or_alloc_domain

2018-05-03 Thread Lu Baolu
Remove it to make the code more concise. Signed-off-by: Lu Baolu --- drivers/iommu/intel-iommu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 749d8f2..9064607 100644 --- a/drivers/iommu/intel-iommu.c +++ b/

[PATCH 4/4] iommu/vt-d: Remove unnecessary parentheses

2018-05-03 Thread Lu Baolu
Remove unnecessary parentheses to comply with preferred coding style. Signed-off-by: Lu Baolu --- drivers/iommu/intel-svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c index e8cd984..45f6e58 100644 --- a/drivers/iommu/

[PATCH 3/4] iommu/vt-d: Clean up pasid quirk for pre-production devices

2018-05-03 Thread Lu Baolu
The pasid28 quirk is needed only for some pre-production devices. Remove it to make the code concise. Signed-off-by: Ashok Raj Signed-off-by: Lu Baolu --- drivers/iommu/intel-iommu.c | 32 ++-- include/linux/intel-iommu.h | 1 - 2 files changed, 2 insertions(+), 31

[PATCH 1/4] iommu: Clean up the comments for iommu_group_alloc

2018-05-03 Thread Lu Baolu
@name parameter has been removed. Signed-off-by: Lu Baolu --- drivers/iommu/iommu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index d2aa2320..d87e7c2 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -322,7 +322,6 @@ static s

Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding

2018-05-03 Thread H. Nikolaus Schaller
Hi Andreas, > Am 03.05.2018 um 20:50 schrieb Andreas Kemnade : > > On Thu, 3 May 2018 11:35:21 +0200 > H. Nikolaus Schaller wrote: > > >> I have realized that the w2sg0004 is an exception (although a Sirf chip) >> that it does not provide a WAKEUP signal. And another significant >> difference

Re: [PATCH 04/15] powerpc/powernv: opal-kmsg use flush fallback from console code

2018-05-03 Thread Michael Ellerman
Nicholas Piggin writes: > Use the more refined and tested event polling loop from opal_put_chars > as the fallback console flush in the opal-kmsg path. This loop is used > by the console driver today, whereas the opal-kmsg fallback is not > likely to have been used for years. > > Use WARN_ONCE ra

general protection fault in perf_tp_event

2018-05-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:c15f6d8d4715 Merge tag 'dma-mapping-4.17-4' of git://git.i.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=128d955b80 kernel config: https://syzkaller.appspot.com/x/.config?x=5a1dc06635c10d27 da

Re: [PATCH] i2c: core-smbus: fix a potential uninitialization bug

2018-05-03 Thread Peter Rosin
On 2018-05-04 06:08, Wenwen Wang wrote: > On Thu, May 3, 2018 at 3:34 PM, Peter Rosin wrote: >> On 2018-05-03 00:36, Wenwen Wang wrote: >>> In i2c_smbus_xfer_emulated(), there are two buffers: msgbuf0 and msgbuf1, >>> which are used to save a series of messages, as mentioned in the comment. >>> Ac

[PATCH 6/8] staging: mt7621-pci: remove unnecessary resource details.

2018-05-03 Thread NeilBrown
These resources are extracted from devicetree, so they aren't needed here. Signed-off-by: NeilBrown --- drivers/staging/mt7621-pci/pci-mt7621.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt

[PATCH 7/8] staging: mt7621-pci: remove some dead code.

2018-05-03 Thread NeilBrown
Some code is dead because it is commented out. Some is dead because it is uninteresting printks. Some is dead because it declares unused functions. Remove it all. Signed-off-by: NeilBrown --- drivers/staging/mt7621-pci/pci-mt7621.c | 14 -- 1 file changed, 14 deletions(-) diff --

[PATCH 2/8] staging: mt7621-spi: remove unused lock.

2018-05-03 Thread NeilBrown
This lock is never initialized, locked once, and never unlocked. Clearly it is pointless - so remove it. Signed-off-by: NeilBrown --- drivers/staging/mt7621-spi/spi-mt7621.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621

[PATCH 1/8] staging: mt7621-eth: Lock is never unlocked.

2018-05-03 Thread NeilBrown
mtk_phy_link_adjust takes a spinlock and disables interrupts, but never unlocks. This can leave interrupts disabled on one CPU and various things stop working. Signed-off-by: NeilBrown --- drivers/staging/mt7621-eth/mdio.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/mt

Re: [PATCH 3/3] xen: share start flags between PV and PVH

2018-05-03 Thread kbuild test robot
Hi Roger, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17-rc3 next-20180503] [cannot apply to xen-tip/linux-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

[PATCH 3/8] staging: mt7621-pci: improve interrupt mapping

2018-05-03 Thread NeilBrown
As the Interrupts for the PCI adapters are listed in devicetree we shouldn't need to have them explicit in the code. The simplest way to do this is to use of_irq_parse_and_map_pci() and specify an interrupt-map which identifies the different PCI hosts by bus/slot numbers. This has the advantage th

[PATCH 8/8] staging: mt7621-dts: update nor-flash info for gnubee1

2018-05-03 Thread NeilBrown
The GNUBEE has 32MB flash, so set partitions accordingly. Also remove "m25p,chunked-io" which isn't documented or used anywhere (outside of freewrt). Signed-off-by: NeilBrown --- drivers/staging/mt7621-dts/gbpc1.dts |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH 4/8] staging: mt7621-pci: white-space cleanups.

2018-05-03 Thread NeilBrown
- remove white space at end of line. - no more than 2 blank line at a time - remove spaces before tabs - use tabs to line things up - re-indent some #define do{}while(0) Signed-off-by: NeilBrown --- drivers/staging/mt7621-pci/pci-mt7621.c | 291 +++ 1 file changed, 1

linux-next: Tree for May 4

2018-05-03 Thread Stephen Rothwell
Hi all, Changes since 20180503: Non-merge commits (relative to Linus' tree): 3965 3776 files changed, 154371 insertions(+), 67944 deletions(-) I have created today's linux-next tree at git://git.kernel.o

[PATCH 5/8] staging: mt7621-pci: remove conditional compilation.

2018-05-03 Thread NeilBrown
Code currently defines: #define CONFIG_PCIE_PORT0 #define CONFIG_PCIE_PORT1 #define CONFIG_PCIE_PORT2 #define GPIO_PERST and then compiles code only if they are defined. We might want to disable some of these via devicetree one day, but for now just remove the #defines and the conditions - all th

[PATCH 0/8] staging: various mt7621 fixes

2018-05-03 Thread NeilBrown
Highlights here are a bugfix for the ethernet driver, and proper handling of irq assignments in the PCI driver. We also make the full 32M of the gnubee flash available and start cleaning up the mt7621-pci code. --- NeilBrown (8): staging: mt7621-eth: Lock is never unlocked. staging:

Re: [RFC][PATCH] memcg: Replace mm->owner with mm->memcg

2018-05-03 Thread Balbir Singh
On Fri, May 4, 2018 at 1:11 AM, Eric W. Biederman wrote: > Balbir Singh writes: > >> On Tue, 01 May 2018 12:35:16 -0500 >> ebied...@xmission.com (Eric W. Biederman) wrote: >> >>> Recently it was reported that mm_update_next_owner could get into >>> cases where it was executing it's fallback for_e

[PATCH v1] virtio: support VIRTIO_F_IO_BARRIER

2018-05-03 Thread Tiwei Bie
This patch introduces the support for VIRTIO_F_IO_BARRIER. When this feature is negotiated, driver will use the barriers suitable for hardware devices. Signed-off-by: Tiwei Bie --- This patch depends on below proposal for virtio-spec: https://lists.oasis-open.org/archives/virtio-dev/201805/msg000

Re: [PATCH v3 6/9] trace_uprobe: Support SDT markers having reference count (semaphore)

2018-05-03 Thread Masami Hiramatsu
Hi Ravi, I have some comments, please see below. On Tue, 17 Apr 2018 10:02:41 +0530 Ravi Bangoria wrote:\ > diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h > index 7bd2760..2db3ed1 100644 > --- a/include/linux/uprobes.h > +++ b/include/linux/uprobes.h > @@ -122,6 +122,8 @@ struct

Re: [PATCH v4 05/22] iommu: introduce iommu invalidate API function

2018-05-03 Thread Jacob Pan
On Wed, 2 May 2018 10:31:50 +0100 Jean-Philippe Brucker wrote: > On 01/05/18 23:58, Jacob Pan wrote: > Maybe this should be called "NG_PAGE_PASID", > >>> Sure. I was thinking page range already implies non-global > >>> pages. > and "DOMAIN_PAGE" should > instead be "PAGE_PA

Re: [PATCH v1] lib/string_helpers: Add missed declaration of struct task_struct

2018-05-03 Thread Kees Cook
On Thu, May 3, 2018 at 6:13 PM, Andy Shevchenko wrote: > Starting from the commit 0d0443288f22 the new function has been > introduced which takes struct task_struct as a parameter. Though, > compiler doesn't know where to get information about it at this stage. > > Add missed declaration of struct

Re: [PATCH V3 10/10] ASoC: amd: dma driver changes for bt i2s instance

2018-05-03 Thread Agrawal, Akshu
On 5/3/2018 10:10 PM, Daniel Kurtz wrote: On Thu, May 3, 2018 at 1:33 AM Mukunda,Vijendar wrote: On Thursday 03 May 2018 11:13 AM, Daniel Kurtz wrote: Some checkpatch nits below... On Tue, May 1, 2018 at 2:53 PM Vijendar Mukunda < vijendar.muku...@amd.com> wrote: With in ACP, There a

[PATCH] mm/page_alloc: use ac->high_zoneidx for classzone_idx

2018-05-03 Thread js1304
From: Joonsoo Kim Currently, we use the zone index of preferred_zone which represents the best matching zone for allocation, as classzone_idx. It has a problem on NUMA system with ZONE_MOVABLE. In NUMA system, it can be possible that each node has different populated zones. For example, node 0 c

Re: serial: start_tx & buffer handling

2018-05-03 Thread Muni Sekhar
On Fri, May 4, 2018 at 12:04 AM, Greg KH wrote: > On Thu, May 03, 2018 at 08:08:48PM +0530, Muni Sekhar wrote: >> Hi All, >> >> I’m trying to understand how user mode buffer is written to low level >> serial hardware registers. >> >> For this I read the kernel code and I came to know that from use

Re: [PATCH 1/9] R3Di and SBZ quirk entires + alt firmware loading

2018-05-03 Thread Connor McAdams
Sorry for sending these twice, I made a formatting mistake in the first series, and they would not apply properly. Hopefully these do not show up as spam because of this. I went through and fixed them all individually and re-committed them, but kept the same commit messages. I still have a lot to

Re: [PATCH] memcg, hugetlb: pages allocated for hugetlb's overcommit will be charged to memcg

2018-05-03 Thread Mike Kravetz
On 05/03/2018 05:09 PM, TSUKADA Koutaro wrote: > On 2018/05/03 11:33, Mike Kravetz wrote: >> On 05/01/2018 11:54 PM, TSUKADA Koutaro wrote: >>> On 2018/05/02 13:41, Mike Kravetz wrote: What is the reason for not charging pages at allocation/reserve time? I am not an expert in memcg accou

[PATCH 1/9] R3Di and SBZ quirk entires + alt firmware loading

2018-05-03 Thread Connor McAdams
This patch adds PCI quirk ID's for the Sound Blaster Z and Recon3Di. Only the currently tested ID's have been added. This patch also adds the ability to load alternative firmwares for each card, the firmwares can be obtained from within the Windows driver. The Recon3Di uses "ctefx-r3di.bin" and th

[PATCH 2/9] Add pincfg for SBZ + R3Di, add fp hp auto-detect

2018-05-03 Thread Connor McAdams
This patch adds an unsolicited response tag for the front headphone panel which uses the same hp_callback as the rear headphone detection. This patch also adds pincfgs for the R3Di and SBZ which were taken from the Windows driver. The pins are also defined in the function ca0132_config. Both the R

[PATCH 4/9] Add extra exit functions for R3Di and SBZ

2018-05-03 Thread Connor McAdams
This patch adds extra functions for shutdown on the Sound Blaster Z and Recon3Di. The Recon3Di only has one specific functions, which sets the GPIO data pins to 0 to prevent a popping noise. The Sound Blaster Z exit sequence was taken from Windows. Without this exit function, the card will not rel

[PATCH 5/9] add/change helper functions for R3Di and SBZ

2018-05-03 Thread Connor McAdams
Edit core functions to support the Sound Blaster Z and Recon3Di for startup and loading of the DSP, as well as setting effects. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 1070 -- 1 file changed, 1018 insertions(+), 52 deletions(-) d

[PATCH 6/9] add alt_select_in/out for R3Di + SBZ

2018-05-03 Thread Connor McAdams
Add functions ca0132_alt_select_out and ca0132_alt_select_in for switching outputs and inputs for r3di and sbz. Also, add enumerated controls for selecting output and input source. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 597 +-- 1

[PATCH 8/9] add ca0132_alt_set_vipsource

2018-05-03 Thread Connor McAdams
Add function to set vipsource on cards that use_alt_controls. Different sequence. Also, add cvoice_switch_set at end of ca0132_select_in so that when switching between inputs cvoice state is maintained. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 71 +

  1   2   3   4   5   6   7   8   9   10   >