Re: [RFC PATCH bpf-next v2 4/4] error-injection: Support fault injection framework

2017-12-27 Thread Masami Hiramatsu
On Tue, 26 Dec 2017 18:12:56 -0800 Alexei Starovoitov wrote: > On Tue, Dec 26, 2017 at 04:48:25PM +0900, Masami Hiramatsu wrote: > > Support in-kernel fault-injection framework via debugfs. > > This allows you to inject a conditional error to specified > > function using debugfs interfaces. > >

Re: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop

2017-12-27 Thread Dou Liyang
Hi Alexandru, At 12/24/2017 04:01 AM, Alexandru Chirvasitu wrote: On Sat, Dec 23, 2017 at 02:32:52PM +0100, Thomas Gleixner wrote: On Sat, 23 Dec 2017, Dexuan Cui wrote: From: Alexandru Chirvasitu [mailto:achirva...@gmail.com] Sent: Friday, December 22, 2017 14:29 The output of that precise

Re: [PATCH 10/11 v3] ARM: s3c24xx/s3c64xx: constify gpio_led

2017-12-27 Thread Krzysztof Kozlowski
On Tue, Dec 26, 2017 at 7:50 PM, Arvind Yadav wrote: > gpio_led are not supposed to change at runtime. > struct gpio_led_platform_data working with const gpio_led > provided by . So mark the non-const structs > as const. > > Signed-off-by: Arvind Yadav > --- > changes in v2: > The G

[PATCH] ext4: Remove repeated test in ext4_file_read_iter.

2017-12-27 Thread Sean Fu
generic_file_read_iter has done the count test. So ext4_file_read_iter don't need to test the count repeatedly. Signed-off-by: Sean Fu --- fs/ext4/file.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index a0ae27b..87ca13e 100644 --- a/fs/ext4/file.c +++ b

Re: [PATCH 1/2] MIPS: math-emu: Do not export function `srl128`

2017-12-27 Thread Mathieu Malaterre
On Tue, Dec 26, 2017 at 7:10 PM, Aleksandar Markovic wrote: >> > Fix non-fatal warning: >> > >> > arch/mips/math-emu/dp_maddf.c:19:6: warning: no previous prototype for >> > ‘srl128’ [-Wmissing-prototypes] >> > void srl128(u64 *hptr, u64 *lptr, int count) >> > >> > Signed-off-by: Mathieu Malater

Re: [PATCH v2] arm64: dts: Hi3660: Fix up psci state id

2017-12-27 Thread Vincent Guittot
Hi Leo On 25 December 2017 at 03:22, Leo Yan wrote: > Hi Vincent, > > [ + John, Kevin Wang ] > > On Fri, Dec 22, 2017 at 03:22:51PM +0100, Vincent Guittot wrote: >> Hi Leo, >> >> Sorry for jumping late in the discussion but should we also remove >> the NAP state from the property cpu-idle-states

Re: [GIT PULL] tee dynamic shm for v4.16

2017-12-27 Thread Jens Wiklander
On Mon, Dec 25, 2017 at 01:22:18PM -0800, thomas zeng wrote: > > > On 2017年12月21日 08:30, Arnd Bergmann wrote: > > On Fri, Dec 15, 2017 at 2:21 PM, Jens Wiklander > > wrote: > > > Hello arm-soc maintainers, > > > > > > Please pull these tee driver changes. This implements support for dynamic > >

Re: [PATCH 2/2] MIPS: math-emu: Declare ys variable as possibly unused

2017-12-27 Thread Mathieu Malaterre
Aleksandar, On Tue, Dec 26, 2017 at 4:12 PM, Aleksandar Markovic wrote: >> Fix non-fatal warning: >> >> arch/mips/math-emu/sp_fdp.c: In function ‘ieee754sp_fdp’: >> arch/mips/math-emu/ieee754int.h:60:31: warning: variable ‘ys’ set but not >> used [-Wunused-but-set-variable] >> unsigned int ym;

Re: [PATCH] x86/cpu, x86/pti: Do not enable PTI on AMD processors

2017-12-27 Thread Dave Hansen
On 12/26/2017 09:43 PM, Tom Lendacky wrote: > --- a/arch/x86/kernel/cpu/common.c > +++ b/arch/x86/kernel/cpu/common.c > @@ -923,8 +923,8 @@ static void __init early_identify_cpu(struct cpuinfo_x86 > *c) > > setup_force_cpu_cap(X86_FEATURE_ALWAYS); > > - /* Assume for now that ALL x86

[PATCH v6 0/8] add support for relative references in special sections

2017-12-27 Thread Ard Biesheuvel
This adds support for emitting special sections such as initcall arrays, PCI fixups and tracepoints as relative references rather than absolute references. This reduces the size by 50% on 64-bit architectures, but more importantly, it removes the need for carrying relocation metadata for these sect

[PATCH] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2017-12-27 Thread Li Zhijian
On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm -g' root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64-linux-gnu/libc-2.25.so | grep inet_pton nm: /lib/x86_64-linux-gnu/libc-2.25.so: no symbols it looks libc.so has different symbol compositions at different distros Usage:

[PATCH v6 6/8] kernel/jump_label: abstract jump_entry member accessors

2017-12-27 Thread Ard Biesheuvel
In preparation of allowing architectures to use relative references in jump_label entries [which can dramatically reduce the memory footprint], introduce abstractions for references to the 'code' and 'key' members of struct jump_entry. Signed-off-by: Ard Biesheuvel --- arch/arm/include/asm/jump_

[PATCH v6 5/8] kernel: tracepoints: add support for relative references

2017-12-27 Thread Ard Biesheuvel
To avoid the need for relocating absolute references to tracepoint structures at boot time when running relocatable kernels (which may take a disproportionate amount of space), add the option to emit these tables as relative references instead. Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: A

[PATCH v6 3/8] init: allow initcall tables to be emitted using relative references

2017-12-27 Thread Ard Biesheuvel
Allow the initcall tables to be emitted using relative references that are only half the size on 64-bit architectures and don't require fixups at runtime on relocatable kernels. Cc: Petr Mladek Cc: Sergey Senozhatsky Cc: Steven Rostedt Cc: James Morris Cc: "Serge E. Hallyn" Signed-off-by: Ard

[PATCH v6 4/8] PCI: Add support for relative addressing in quirk tables

2017-12-27 Thread Ard Biesheuvel
Allow the PCI quirk tables to be emitted in a way that avoids absolute references to the hook functions. This reduces the size of the entries, and, more importantly, makes them invariant under runtime relocation (e.g., for KASLR) Acked-by: Bjorn Helgaas Signed-off-by: Ard Biesheuvel --- drivers

[PATCH v6 8/8] x86/kernel: jump_table: use relative references

2017-12-27 Thread Ard Biesheuvel
Similar to the arm64 case, 64-bit x86 can benefit from using 32-bit relative references rather than 64-bit absolute ones when emitting struct jump_entry instances. Not only does this reduce the memory footprint of the entries themselves by 50%, it also removes the need for carrying relocation metad

[PATCH v6 7/8] arm64/kernel: jump_label: use relative references

2017-12-27 Thread Ard Biesheuvel
On a randomly chosen distro kernel build for arm64, vmlinux.o shows the following sections, containing jump label entries, and the associated RELA relocation records, respectively: ... [38088] __jump_table PROGBITS 00e19f30 0002ea10 00

[GIT PULL] sound fixes for 4.15-rc6

2017-12-27 Thread Takashi Iwai
Linus, please pull sound fixes for v4.15-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.15-rc6 The topmost commit is 44be77c590f381bc629815ac789b8b15ecc4ddcf sound fixes for 4.15-rc6 It s

[PATCH v6 1/8] arch: enable relative relocations for arm64, power, x86, s390 and x86

2017-12-27 Thread Ard Biesheuvel
Before updating certain subsystems to use place relative 32-bit relocations in special sections, to save space and reduce the number of absolute relocations that need to be processed at runtime by relocatable kernels, introduce the Kconfig symbol and define it for some architectures that should be

[PATCH v6 2/8] module: use relative references for __ksymtab entries

2017-12-27 Thread Ard Biesheuvel
An ordinary arm64 defconfig build has ~64 KB worth of __ksymtab entries, each consisting of two 64-bit fields containing absolute references, to the symbol itself and to a char array containing its name, respectively. When we build the same configuration with KASLR enabled, we end up with an addit

Re: [PATCH V8 3/3] OPP: Allow "opp-hz" and "opp-microvolt" to contain magic values

2017-12-27 Thread Viresh Kumar
On 26-12-17, 14:29, Rob Herring wrote: > On Mon, Dec 18, 2017 at 03:51:30PM +0530, Viresh Kumar wrote: > > +On some platforms the exact frequency or voltage may be hidden from the OS > > by > > +the firmware and the "opp-hz" or the "opp-microvolt" properties may contain > > +magic values that rep

RE: [PATCH 2/2 v4] scsi: ufs: introduce sysfs entries exposing UFS health info

2017-12-27 Thread Avri Altman
> -Original Message- > From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- > ow...@vger.kernel.org] On Behalf Of Greg Kroah-Hartman > Sent: Thursday, December 21, 2017 10:00 AM > To: Jaegeuk Kim > Cc: linux-kernel@vger.kernel.org; linux-s...@vger.kernel.org; Jaegeuk Kim > > Subje

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-27 Thread Brice Goglin
Le 22/12/2017 à 23:53, Dan Williams a écrit : > On Thu, Dec 21, 2017 at 12:31 PM, Brice Goglin wrote: >> Le 20/12/2017 à 23:41, Ross Zwisler a écrit : > [..] >> Hello >> >> I can confirm that HPC runtimes are going to use these patches (at least >> all runtimes that use hwloc for topology discover

[PATCH] Device tree binding for Avago APDS990X light sensor

2017-12-27 Thread Pavel Machek
From: Filip Matijević This prepares binding for light sensor used in Nokia N9. Signed-off-by: Filip Matijević Signed-off-by: Pavel machek --- Patches to convert APDS990X driver to device tree and to switch to iio are available. diff --git a/Documentation/devicetree/bindings/misc/avago-apds

[PATCH v5 0/2] fs: fat: add ioctl to modify fat filesystem partion volume label

2017-12-27 Thread ChenGuanqiao
The FAT filesystem partition volume label can be read with FAT_IOCTL_GET_VOLUME_LABEL and written with FAT_IOCTL_SET_VOLUME_LABEL. FAT volume label (volume name) is exactly same stored in boot sector and root directory. Thus, the boot sector just needs to be upgrade when the label writing. v5: 1.

[PATCH v5 2/2] fs: fat: add ioctl method in fat filesystem driver

2017-12-27 Thread ChenGuanqiao
Signed-off-by: ChenGuanqiao --- fs/fat/file.c | 116 ++ 1 file changed, 116 insertions(+) diff --git a/fs/fat/file.c b/fs/fat/file.c index 4724cc9ad650..517941c7bce4 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -15,11 +15,35 @@ #inclu

[PATCH v5 1/2] fs: fat: Add fat filesystem partition volume label in local structure

2017-12-27 Thread ChenGuanqiao
1. Read volume label whe the fat system driver load. 2. Add interface to scan volume label entry. Signed-off-by: ChenGuanqiao --- fs/fat/dir.c | 29 + fs/fat/fat.h | 2 ++ fs/fat/inode.c| 15 --- include/u

[PATCH] bq24190: Simplify code in property_is_writeable

2017-12-27 Thread Pavel Machek
Simplify function that should be trivial. Signed-off-by: Pavel machek diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c index 35ff406..4ea8f0a 100644 --- a/drivers/power/supply/bq24190_charger.c +++ b/drivers/power/supply/bq24190_charger.c @@ -1193,8 +

[RFC PATCH v2 0/2] Reduce IOTLB flush when pass-through dGPU devices

2017-12-27 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit Currently, when pass-through dGPU to a guest VM, there are thousands of IOTLB flush commands sent from IOMMU to end-point-device. This cause performance issue when launching new VMs, and could cause IOTLB invalidate time-out issue on certain dGPUs. This can be avoided

[RFC PATCH v2 2/2] iommu/amd: Add support for fast IOTLB flushing

2017-12-27 Thread Suravee Suthikulpanit
Implement the newly added IOTLB flushing interface for AMD IOMMU. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd_iommu.c | 73 - drivers/iommu/amd_iommu_init.c | 7 drivers/iommu/amd_iommu_types.h | 7 3 files changed, 86 ins

[RFC PATCH v2 1/2] vfio/type1: Adopt fast IOTLB flush interface when unmap IOVAs

2017-12-27 Thread Suravee Suthikulpanit
VFIO IOMMU type1 currently upmaps IOVA pages synchronously, which requires IOTLB flushing for every unmapping. This results in large IOTLB flushing overhead when handling pass-through devices has a large number of mapped IOVAs. This can be avoided by using the new IOTLB flushing interface. Cc: Al

[PATCH] ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE

2017-12-27 Thread Gang He
If we can't get inode lock immediately in the function ocfs2_inode_lock_with_page() when reading a page, we should not return directly here, since this will lead to a softlockup problem. The method is to get a blocking lock and immediately unlock before returning, this can avoid CPU resource waste

Re: [v3,21/27] watchdog: replace devm_ioremap_nocache with devm_ioremap

2017-12-27 Thread Yisheng Xie
Hi Guenter, On 2017/12/27 1:28, Guenter Roeck wrote: > On Sat, Dec 23, 2017 at 07:01:37PM +0800, Yisheng Xie wrote: >> > Default ioremap is ioremap_nocache, so devm_ioremap has the same >> > function with devm_ioremap_nocache, which can just be killed to >> > save the size of devres.o >> > >> > T

Re: [PATCH] clk: mediatek: adjust dependency of reset.c to avoid unexpectedly being built

2017-12-27 Thread Sean Wang
On Tue, 2017-12-26 at 17:19 -0800, Stephen Boyd wrote: > On 12/26, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > commit 74cb0d6dde8 ("clk: mediatek: fixup test-building of MediaTek clock > > drivers") can let the build system looking into the directory where the > > clock drivers resi

[PATCH] PCI: exynos: remove the deprecated phy codes

2017-12-27 Thread Jaehoon Chung
pci-exynos had updated to use the PHY framework. (drivers/phy/samsung/phy-exynos-pcie.c) Removed the depreccated codes relevant to phy in pci-exynos.c. Instead, use the phy-exynos-pcie.c file. Modified the binding documentation. Signed-off-by: Jaehoon Chung --- .../bindings/pci/samsung,exynos54

Re: [PATCH 4/4] KVM: nVMX: initialize more non-shadowed fields in prepare_vmcs02_full

2017-12-27 Thread Paolo Bonzini
On 25/12/2017 04:09, Wanpeng Li wrote: > 2017-12-21 20:43 GMT+08:00 Paolo Bonzini : >> These fields are also simple copies of the data in the vmcs12 struct. >> For some of them, prepare_vmcs02 was skipping the copy when the field >> was unused. In prepare_vmcs02_full, we copy them always as long a

Re: [next] ath10k: wmi: remove redundant integer fc

2017-12-27 Thread Kalle Valo
Colin Ian King wrote: > Variable fc is being assigned but never used, so remove it. Cleans > up the clang warning: > > warning: Value stored to 'fc' is never read > > Signed-off-by: Colin Ian King > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. a0709dfd7ff8

Re: wil6210: fix build warnings without CONFIG_PM

2017-12-27 Thread Kalle Valo
Arnd Bergmann wrote: > The #ifdef checks are hard to get right, in this case some functions > should have been left inside a CONFIG_PM_SLEEP check as seen by this > message: > > drivers/net/wireless/ath/wil6210/pcie_bus.c:489:12: error: > 'wil6210_pm_resume' defined but not used [-Werror=unused

Re: [PATCH v4] hwrng: exynos - add Samsung Exynos True RNG driver

2017-12-27 Thread Łukasz Stelmach
It was <2017-12-22 pią 19:30>, when Philippe Ombredanne wrote: > On Fri, Dec 22, 2017 at 5:38 PM, Łukasz Stelmach > wrote: >> It was <2017-12-22 pią 14:34>, when Philippe Ombredanne wrote: >>> Łukasz, >>> >>> On Fri, Dec 22, 2017 at 2:23 PM, Łukasz Stelmach >>> wrote: Add support for True

Re: [Ocfs2-devel] [PATCH] ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE

2017-12-27 Thread piaojun
Hi Gang, Do you mean that too many retrys in loop cast losts of CPU-time and block page-fault interrupt? We should not add any delay in ocfs2_fault(), right? And I still feel a little confused why your method can solve this problem. thanks, Jun On 2017/12/27 17:29, Gang He wrote: > If we can't g

Re: [PATCH] backlight: otm3225a: add support for ORISE OTM3225A LCD SoC

2017-12-27 Thread Felix Brack
Hello Jingoo, Many thanks for taking the time to review my patch! Your suggestions will be implemented in v2 which I will post soon. kind regards, Felix On 22.12.2017 18:23, Jingoo Han wrote: > On Wednesday, December 20, 2017 12:58 PM, Felix Brack wrote: >> >> This patch adds a LCD driver suppor

Re: [PATCH v5 03/78] xarray: Add the xa_lock to the radix_tree_root

2017-12-27 Thread Kirill A. Shutemov
On Tue, Dec 26, 2017 at 07:43:40PM -0800, Matthew Wilcox wrote: > On Tue, Dec 26, 2017 at 07:54:40PM +0300, Kirill A. Shutemov wrote: > > On Fri, Dec 15, 2017 at 02:03:35PM -0800, Matthew Wilcox wrote: > > > From: Matthew Wilcox > > > > > > This results in no change in structure size on 64-bit x8

Re: You will definetely be interested...

2017-12-27 Thread Sra. Angel Rania
Hi Dear, Reading your profile has given me courage in search of a reasponsable and trust worthy Fellow. The past has treated me so awfully but now I am ready to move on despite of my health condition. I will like to have a sincere and important discussion with you that will be in your favor likewi

Re: [PATCH v5 03/78] xarray: Add the xa_lock to the radix_tree_root

2017-12-27 Thread Kirill A. Shutemov
On Tue, Dec 26, 2017 at 07:58:15PM -0800, Matthew Wilcox wrote: > On Tue, Dec 26, 2017 at 07:43:40PM -0800, Matthew Wilcox wrote: > > Also add the xa_lock() and xa_unlock() family of wrappers to make it > > easier to use the lock. If we could rely on -fplan9-extensions in > > the compi

[PATCH 1/4] PCI/AER: factor out error reporting from AER

2017-12-27 Thread Oza Pawandeep
This patch factors out error reporting callbacks, which are currently tightly coupled with AER. DPC should be able to call these callbacks when DPC trigger event occurs. Signed-off-by: Oza Pawandeep diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 6402f7f..fd053e5 100644 --

[PATCH 0/4] Address error and recovery for AER and DPC

2017-12-27 Thread Oza Pawandeep
This patch set brings in support for DPC and AER to co-exist and not to race for recovery. The current implementation of AER and error message broadcasting to the EP driver is tightly coupled and limited to AER service driver. It is important to factor out broadcasting and other link handling call

[PATCH 3/4] PCI/ERR: Do not do recovery if DPC service is active

2017-12-27 Thread Oza Pawandeep
If AER attempts to do recovery for any device, and DPC is active on any upstream port, AER should not do recovery, since it will be handled by DPC Change-Id: Ida507ce9145f420e35302db34e967f1b421e15c9 Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/pcie-err.c b/drivers/pci/pcie/pcie-er

Re: [PATCH v5 15/15] devicetree: bindings: Document qcom,pvs

2017-12-27 Thread Sricharan R
Hi Rob, On 12/26/2017 11:06 PM, Rob Herring wrote: > On Thu, Dec 21, 2017 at 5:53 AM, Sricharan R wrote: >> Hi Rob, >> >> On 12/21/2017 2:48 AM, Rob Herring wrote: >>> On Wed, Dec 20, 2017 at 11:55:33AM +0530, Sricharan R wrote: Hi Viresh, On 12/20/2017 8:56 AM, Viresh Kumar wrote:

[PATCH 4/4] PCI/DPC: Enumerate the devices after DPC trigger event

2017-12-27 Thread Oza Pawandeep
Implement error_resume callback in DPC, which, after DPC trigger event enumerates the devices beneath. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/pcie-dpc.c b/drivers/pci/pcie/pcie-dpc.c index e7ced58..78e557f 100644 --- a/drivers/pci/pcie/pcie-dpc.c +++ b/drivers/pci/pcie/pcie-d

[PATCH 2/4] PCI/DPC/AER: Address Concurrency between AER and DPC

2017-12-27 Thread Oza Pawandeep
This patch addresses the race condition between AER and DPC for recovery. Current DPC driver does not do recovery, e.g. calling end-point's driver's callbacks, which sanitize the device. DPC driver implements link_reset callback, and calls pci_do_recovery. Signed-off-by: Oza Pawandeep diff --gi

Re: [PATCH] backlight: otm3225a: add support for ORISE OTM3225A LCD SoC

2017-12-27 Thread Felix Brack
Hello Daniel, On 22.12.2017 18:33, Daniel Thompson wrote: > On 22/12/17 17:23, Jingoo Han wrote:>> diff --git > a/drivers/video/backlight/otm3225a.c >>> b/drivers/video/backlight/otm3225a.c >>> new file mode 100644 >>> index 000..0de75f8 >>> --- /dev/null >>> +++ b/drivers/video/backlight/otm3

Re: [PATCH v5 05/78] xarray: Replace exceptional entries

2017-12-27 Thread Kirill A. Shutemov
On Tue, Dec 26, 2017 at 07:05:34PM -0800, Matthew Wilcox wrote: > On Tue, Dec 26, 2017 at 08:15:42PM +0300, Kirill A. Shutemov wrote: > > > 28 files changed, 249 insertions(+), 240 deletions(-) > > > > Everything looks fine to me after quick scan, but hat's a lot of changes for > > one patch... >

Re: [PATCH v5 06/78] xarray: Change definition of sibling entries

2017-12-27 Thread Kirill A. Shutemov
On Tue, Dec 26, 2017 at 07:13:26PM -0800, Matthew Wilcox wrote: > On Tue, Dec 26, 2017 at 08:21:53PM +0300, Kirill A. Shutemov wrote: > > > +/** > > > + * xa_is_internal() - Is the entry an internal entry? > > > + * @entry: Entry retrieved from the XArray > > > + * > > > + * Return: %true if the en

Re: [PATCH V1 3/4] usb: serial: f81534: add output pin control

2017-12-27 Thread Johan Hovold
On Thu, Dec 21, 2017 at 05:49:45PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Hi Johan, > > Johan Hovold 於 2017/12/19 上午 12:06 寫道: > > On Thu, Nov 16, 2017 at 03:46:08PM +0800, Ji-Ze Hong (Peter Hong) wrote: > >> +static int f81534_set_port_output_pin(struct usb_serial_port *port) > >> +{ > >> + str

Re: [PATCH 4.14 108/159] kvm, mm: account kvm related kmem slabs to kmemcg

2017-12-27 Thread Paolo Bonzini
On 23/12/2017 10:24, Greg Kroah-Hartman wrote: > For many subsystems, the maintainers _never_ mark patches for stable. > Others, they catch maybe half of the things they should be applying. > > KVM is one such example of the "half" group, they mark patches as > resolving CVE issues at times, yet d

Re: [PATCH] spi: Add a sysfs interface to instantiate devices

2017-12-27 Thread Mark Brown
On Sat, Dec 23, 2017 at 09:58:51AM +0100, Geert Uytterhoeven wrote: > >> > > + struct spi_board_info bi = { > >> > > + .modalias = "spidev", > I would make it a little bit more generic and extract the modalias from the > string written. Right, that'd be much better. signature.asc Descr

Re: [PATCH 0/3] mtd: spi-nor: fix DMA-unsafe buffer issue between MTD and SPI

2017-12-27 Thread Mark Brown
On Tue, Dec 26, 2017 at 06:45:28PM +, Trent Piepho wrote: > Or, since this only fixes instances of DMA-unsafe buffers used in > access to SPI NOR flash chips, and since there are other SPI master > interface users, those chip specific fixes in some/all spi master > drivers are still needed to

Re: [Ocfs2-devel] [PATCH] ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE

2017-12-27 Thread Gang He
Hi Jun, >>> > Hi Gang, > > Do you mean that too many retrys in loop cast losts of CPU-time and > block page-fault interrupt? We should not add any delay in > ocfs2_fault(), right? And I still feel a little confused why your > method can solve this problem. You can see the related code in functi

Applied "regmap: debugfs: document why we don't create the debugfs entries" to the regmap tree

2017-12-27 Thread Mark Brown
The patch regmap: debugfs: document why we don't create the debugfs entries has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the nex

Applied "regmap: Add one flag to indicate if a hwlock should be used" to the regmap tree

2017-12-27 Thread Mark Brown
The patch regmap: Add one flag to indicate if a hwlock should be used has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 h

Re: [PATCH v6 00/11] Intel SGX Driver

2017-12-27 Thread Dr. Greg Wettstein
On Dec 12, 3:07pm, Pavel Machek wrote: } Subject: Re: [PATCH v6 00/11] Intel SGX Driver Good morning, I hope this note finds the holiday season going well for everyone. This note is a bit delayed due to the holidays, my apologies. Pretty wide swath on this e-mail but will include the copy list

Re: [PATCH] USB: serial: ftdi_sio: add id for Airbus DS P8GR

2017-12-27 Thread Johan Hovold
On Wed, Dec 20, 2017 at 08:47:44PM +0100, Max Schulze wrote: > Add AIRBUS_DS_P8GR device IDs to ftdi_sio driver. > > Signed-off-by: Max Schulze Thanks for the patch. Note that I moved the new defines to try to keep (some of) the ids sorted on VID, and dropped the comment header in the id-table b

Re: [PATCH 10/11 v3] ARM: s3c24xx/s3c64xx: constify gpio_led

2017-12-27 Thread arvindY
Hi, On Wednesday 27 December 2017 01:49 PM, Krzysztof Kozlowski wrote: On Tue, Dec 26, 2017 at 7:50 PM, Arvind Yadav wrote: gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-of

[PATCH] PCI: imx6: Add PHY reference clock source support

2017-12-27 Thread Ilya Ledvich
i.MX7D variant of the IP can use either Crystal Oscillator input or internal clock input as a Reference Clock input for PCIe PHY. Add support for an optional property 'pcie-phy-refclk-internal'. If present then an internal clock input is used as PCIe PHY reference clock source. By default an extern

[PATCH v2] MIPS: Use proper Return keyword

2017-12-27 Thread Mathieu Malaterre
For reference: * https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#function-documentation Fix non-fatal warning: arch/mips/kernel/branch.c:418: warning: Excess function parameter 'returns' description in '__compute_return_epc_for_insn' Signed-off-by: Mathieu Malaterre --- v2: A

Re: [PATCH 1/2] ARM: dts: imx6: RDU2: disable internal watchdog

2017-12-27 Thread Fabio Estevam
Hi Andrey, On Wed, Dec 27, 2017 at 1:56 AM, Andrey Smirnov wrote: > The system has an external watchdog in the environment processor > so the internal watchdog is of no use. > > Cc: Sascha Hauer > Cc: Fabio Estevam > Cc: Rob Herring > Cc: Mark Rutland > Cc: linux-arm-ker...@lists.infradead.or

Re: [PATCH 2/2] ARM: dts: imx6: RDU2: correct RTC compatible

2017-12-27 Thread Fabio Estevam
Hi Andrey, On Wed, Dec 27, 2017 at 1:56 AM, Andrey Smirnov wrote: > The RTC is manufactured by Maxim. This is a cosmetic fix, as Linux > doesn't match the vendor string for i2c devices. > > Cc: Sascha Hauer > Cc: Fabio Estevam > Cc: Rob Herring > Cc: Mark Rutland > Cc: linux-arm-ker...@lists.

Re: [PATCH v2] gpio: winbond: add driver

2017-12-27 Thread Linus Walleij
On Wed, Dec 27, 2017 at 1:24 AM, William Breathitt Gray wrote: > Here are the error messages printed on my system when I add a select > ISA_BUS_API line to the GPIO_WINBOND Kconfig option in the version 2 of > your patch: > > drivers/gpio/Kconfig:13:error: recursive dependency detected! > For a r

[PATCH] ASoC: rt5514-spi: Check the validity of drvdata pointer on resume

2017-12-27 Thread Marc Zyngier
The rt5514-spi driver seem to assume the validity of the drvdata pointer on resume, which it may not be populated, leading to a not-so-nice crash. This stems from the fact that rt5514_spi_pcm_probe() is never called on my system (a kevin Chromebook). No idea why, but if it can happen, it is worth

Re: [RESEND PATCH] blackfin: defconfig: Cleanup from old Kconfig options

2017-12-27 Thread Linus Walleij
On Tue, Dec 26, 2017 at 2:30 PM, Krzysztof Kozlowski wrote: > Remove old, dead Kconfig options (in order appearing in this commit): > - EXPERIMENTAL is gone since v3.9; > - INET_LRO: commit 7bbf3cae65b6 ("ipv4: Remove inet_lro library"); > - USB_DEVICE_CLASS: commit 007bab91324e ("USB: remove

Re: [RESEND PATCH] blackfin: defconfig: Cleanup from old Kconfig options

2017-12-27 Thread Adam Borowski
On Wed, Dec 27, 2017 at 12:29:33PM +0100, Linus Walleij wrote: > On Tue, Dec 26, 2017 at 2:30 PM, Krzysztof Kozlowski wrote: > > > Remove old, dead Kconfig options (in order appearing in this commit): > > > > Signed-off-by: Krzysztof Kozlowski > > Acked-by: Linus Walleij > > This architecture

RE: [PATCH 1/4] lockd: convert nlm_host.h_count from atomic_t to refcount_t

2017-12-27 Thread Reshetova, Elena
> On Fri, Dec 22, 2017 at 09:25:53AM -0500, J. Bruce Fields wrote: > > On Fri, Dec 22, 2017 at 09:29:15AM +, Reshetova, Elena wrote: > > > > > > On Wed, Nov 29, 2017 at 01:15:43PM +0200, Elena Reshetova wrote: > > > > atomic_t variables are currently used to implement reference > > > > counters

[PATCH] clk: qcom: Add support for controlling Fabia PLL

2017-12-27 Thread Amit Nischal
Fabia PLL is a Digital Frequency Locked Loop (DFLL) clock generator which has a wide range of frequency output. It supports dynamic updating of the output frequency ("frequency slewing") without need to turn off the PLL before configuration. Add support for initial configuration and programming seq

[PATCH IMPROVEMENT/BUGFIX 1/1] block, bfq: limit tags for writes and async I/O

2017-12-27 Thread Paolo Valente
Asynchronous I/O can easily starve synchronous I/O (both sync reads and sync writes), by consuming all request tags. Similarly, storms of synchronous writes, such as those that sync(2) may trigger, can starve synchronous reads. In their turn, these two problems may also cause BFQ to loose control o

[PATCH IMPROVEMENT/BUGFIX 0/1] block, bfq: address starvation caused by tag consumption

2017-12-27 Thread Paolo Valente
Hi Jens, all, here's the patch I anticipated in my last email. It addresses (serious) starvation problems caused by request-tag exhaustion, as explained in more detail in the commit message. I started from the solution in the function kyber_limit_depth, but then I had to define more articulate limi

Re: [PATCH] clk: mediatek: remove unnecessary include header from reset.c

2017-12-27 Thread Jean Delvare
Hi Sean, Stephen, On Wed, 27 Dec 2017 11:33:00 +0800, Sean Wang wrote: > On Tue, 2017-12-26 at 17:10 -0800, Stephen Boyd wrote: > > drivers/clk/mediatek/reset.c:64:6: warning: symbol > > 'mtk_register_reset_controller' was not declared. Should it be static? > > It cannot be static since the func

Re: [PATCH v2] x86/kexec: Exclude GART aperture from vmcore

2017-12-27 Thread Borislav Petkov
On Wed, Dec 27, 2017 at 03:44:49PM +0800, Baoquan He wrote: > > yes, instead of crashing the machine (because GART may be initialized in the > > 2nd kernel, overlapping the 1st kernel memory, which the 2nd kernel with its > > fake e820 map sees as unused). > > > > I'd say this is an improvement. >

[PATCH 0/2] Add efuse driver for Ingenic JZ4780 SoC

2017-12-27 Thread Mathieu Malaterre
This patchset bring support for read-only access to the JZ4780 efuse as found on MIPS Creator CI20. To keep the driver as simple as possible, it was not possible to re-use most of the nvmem core functionalities. This driver is not compatible with the original efuse driver as found in the custom li

[PATCH 1/2] nvmem: add driver for JZ4780 efuse

2017-12-27 Thread Mathieu Malaterre
From: PrasannaKumar Muralidharan This patch brings support for the JZ4780 efuse. Currently it only expose a read only access to the entire 8K bits efuse memory. Tested-by: Mathieu Malaterre Signed-off-by: PrasannaKumar Muralidharan --- .../ABI/testing/sysfs-driver-jz4780-efuse | 16

[PATCH 2/2] dts: Probe efuse for CI20

2017-12-27 Thread Mathieu Malaterre
Signed-off-by: Mathieu Malaterre --- arch/mips/configs/ci20_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/configs/ci20_defconfig b/arch/mips/configs/ci20_defconfig index b5f4ad8f2c45..62c63617e97a 100644 --- a/arch/mips/configs/ci20_defconfig +++ b/arch/mips/configs/ci

[RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2017-12-27 Thread Chao Fan
In sometimes users specify the memory region in immovable node in some kernel commandline, such as "kernel_core" or the "immovable_mem=" in the patchset that I have send. But users don't know the memory region. So add this interface to print it. It will show like this: "nn@ss,nn@ss,...". "nn" mean

Re: [RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2017-12-27 Thread Chao Fan
The result in my virtual machine looks like this: [root@localhost ~]# cat /sys/devices/system/memory/immovable_mem a@0,1f30@10,1f40@1f40,1f40@3e80,1f40@5dc0,1f40@7d00,1f40@9c40,480@bb80,1ac0@1,1f40@11ac0,1f40@13a00

Re: [Ocfs2-devel] [PATCH] ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE

2017-12-27 Thread Changwei Ge
Hi Gang, I like your fix. It looks good to me. On 2017/12/27 17:30, Gang He wrote: > If we can't get inode lock immediately in the function > ocfs2_inode_lock_with_page() when reading a page, we should not > return directly here, since this will lead to a softlockup problem. > The method is to get

Re: [PATCH] objtool: Fix clang enum conversion warning

2017-12-27 Thread Lukas Bulwahn
On Tue, 26 Dec 2017, Nick Desaulniers wrote: I sent a similar one recently: https://patchwork.kernel.org/patch/10131815/ (maybe Josh is just forwarding me an earlier fix?) Reviewed-by: Nick Desaulniers I actually submitted this (other) patch to LKML on 2017-12-10: https://patchwork.kernel

[PATCH] sched: cgroup: export nr_running for each cpu cgroup

2017-12-27 Thread Yafang Shao
Export the nr_running for each cpu cgroup could help us monitor the container conveniently. The total threads of cpu cgroup could be got from the tasks file, and it could also be got from pids subsystem. But we still donot know how many processes are running in a container, only if we traversal the

Re: [SIL2review] [PATCH] fixdep: free memory on second error path of do_config_file

2017-12-27 Thread Lukas Bulwahn
On Mon, 18 Dec 2017, Masahiro Yamada wrote: 2017-12-15 17:23 GMT+09:00 Nicholas Mc Guire : On Thu, Dec 14, 2017 at 08:54:10PM +0100, Lukas Bulwahn wrote: Commit dee81e988674 ("fixdep: faster CONFIG_ search") introduces the memory leak when `map = mmap(...)` was replaced with `map = malloc(...

Re: [PATCH v2] x86/kexec: Exclude GART aperture from vmcore

2017-12-27 Thread Baoquan He
On 12/27/17 at 01:25pm, Borislav Petkov wrote: > On Wed, Dec 27, 2017 at 03:44:49PM +0800, Baoquan He wrote: > > > yes, instead of crashing the machine (because GART may be initialized in > > > the > > > 2nd kernel, overlapping the 1st kernel memory, which the 2nd kernel with > > > its > > > fake

[PATCH 2/5] kasan: don't use __builtin_return_address(1)

2017-12-27 Thread Dmitry Vyukov
__builtin_return_address(1) is unreliable without frame pointers. With defconfig on kmalloc_pagealloc_invalid_free test I am getting: BUG: KASAN: double-free or invalid-free in (null) Pass caller PC from callers explicitly. Signed-off-by: Dmitry Vyukov Cc: linux...@kvack.org Cc: linux

[PATCH 1/5] kasan: detect invalid frees for large objects

2017-12-27 Thread Dmitry Vyukov
Detect frees of pointers into middle of large heap objects. I dropped const from kasan_kfree_large() because it starts propagating through a bunch of functions in kasan_report.c, slab/slub nearest_obj(), all of their local variables, fixup_red_left(), etc. Signed-off-by: Dmitry Vyukov Cc: linux.

Re: [PATCH 1/3] staging: irda: fix type from "unsigned" to "unsigned int"

2017-12-27 Thread Greg KH
On Tue, Dec 26, 2017 at 09:52:54PM -0800, JI-HUN KIM wrote: > Clean up checkpatch warning: > WARNING: Prefer 'unsigned int' to bare use of 'unsigned' > > Signed-off-by: JI-HUN KIM > --- > drivers/staging/irda/drivers/esi-sir.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Please r

[PATCH 0/5] kasan: detect invalid frees

2017-12-27 Thread Dmitry Vyukov
KASAN detects double-frees, but does not detect invalid-frees (when a pointer into a middle of heap object is passed to free). We recently had a very unpleasant case in crypto code which freed an inner object inside of a heap allocation. This left unnoticed during free, but totally corrupted heap a

[PATCH 5/5] kasan: detect invalid frees

2017-12-27 Thread Dmitry Vyukov
Detect frees of pointers into middle of heap objects. Signed-off-by: Dmitry Vyukov Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org Cc: kasan-...@googlegroups.com --- lib/test_kasan.c | 50 ++ mm/kasan/kasan.c | 6 ++ 2 files changed, 5

[PATCH 4/5] kasan: unify code between kasan_slab_free() and kasan_poison_kfree()

2017-12-27 Thread Dmitry Vyukov
Both of these functions deal with freeing of slab objects. However, kasan_poison_kfree() mishandles SLAB_TYPESAFE_BY_RCU (must also not poison such objects) and does not detect double-frees. Unify code between these functions. This solves both of the problems and allows to add more common code (e.

Re: [PATCH 2/2] dts: Probe efuse for CI20

2017-12-27 Thread Greg Kroah-Hartman
On Wed, Dec 27, 2017 at 01:27:02PM +0100, Mathieu Malaterre wrote: > Signed-off-by: Mathieu Malaterre I know i can't take patches without any changelog text at all, and really, you shouldn't ever create such a thing :) thanks, greg k-h

[PATCH 3/5] kasan: detect invalid frees for large mempool objects

2017-12-27 Thread Dmitry Vyukov
Detect frees of pointers into middle of mempool objects. I did a one-off test, but it turned out to be very tricky, so I reverted it. First, mempool does not call kasan_poison_kfree() unless allocation function fails. I stubbed an allocation function to fail on second and subsequent allocations. B

Re: [RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2017-12-27 Thread Greg KH
On Wed, Dec 27, 2017 at 08:30:12PM +0800, Chao Fan wrote: > In sometimes users specify the memory region in immovable node in > some kernel commandline, such as "kernel_core" or the "immovable_mem=" > in the patchset that I have send. But users don't know the memory > region. So add this interface

Re: BUG warnings in 4.14.9

2017-12-27 Thread Greg Kroah-Hartman
On Wed, Dec 27, 2017 at 04:25:00AM +, alexander.le...@verizon.com wrote: > On Tue, Dec 26, 2017 at 10:54:37PM +0200, Ido Schimmel wrote: > >On Tue, Dec 26, 2017 at 07:59:55PM +0100, Willy Tarreau wrote: > >> Guys, > >> > >> Chris reported the bug below and confirmed that reverting commit > >> 9

Re: [PATCH 2/2] usb: quirks: Add reset-resume quirk for Dell DW1820 QCA Rome Bluetooth

2017-12-27 Thread Greg Kroah-Hartman
On Tue, Dec 26, 2017 at 10:01:46PM +0100, Marcel Holtmann wrote: > Hi Greg, > > > Commit ("fd865802c66bc451dc515ed89360f84376ce1a56 Bluetooth: btusb: fix > > QCA Rome suspend/resume") enables reset_resume in btusb_probe(). This > > makes the device resets during btusb_open(), firmware loading gets

cancel_work_sync() can cause priority invertion

2017-12-27 Thread Nikita Yushchenko
Hi For those who care about linux RT behavior: while analyzing traces, just found priority inversion caused by RT task calling cancel_work_sync(), while work item in question is executing in non-RT kworker that was preempted for significant time. WBR, Nikita Yushchenko

Re: [PATCH 2/2 v4] scsi: ufs: introduce sysfs entries exposing UFS health info

2017-12-27 Thread Greg Kroah-Hartman
On Wed, Dec 27, 2017 at 09:00:10AM +, Avri Altman wrote: > > > > -Original Message- > > From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- > > ow...@vger.kernel.org] On Behalf Of Greg Kroah-Hartman > > Sent: Thursday, December 21, 2017 10:00 AM > > To: Jaegeuk Kim > > Cc: lin

  1   2   3   4   5   6   >