[PATCH v2 4/4] HID: core: remove the absolute need of hid_have_special_driver[]

2017-10-03 Thread Benjamin Tissoires
Most HID devices behave properly when they are used with hid-generic. Since kernel v4.12, we do not poll for input reports at plug in, so hid-generic should behave properly with all HID devices. There has been a long standing list of HID devices that have a special driver. It used to be just a few

Re: [PATCH v3] crypto: s5p-sss: Add HASH support for Exynos

2017-10-03 Thread Kamil Konieczny
On 30.09.2017 21:50, Krzysztof Kozlowski wrote: > On Wed, Sep 27, 2017 at 02:25:50PM +0200, Kamil Konieczny wrote: >> Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. >> It uses the crypto framework asynchronous hash api. >> It is based on omap-sham.c driver. >> S5P has some HW diff

[PATCH v2 3/4] HID: core: move the list of ignored devices in hid-quirks.c

2017-10-03 Thread Benjamin Tissoires
Better having all the devices quirks in one place. Note that this change introduces an initial lookup for the device in hid_gets_squirk(), which should not theoretically be required, but which actually allows to not have to reparse the list of ignored devices if we call hid_lookup_quirks twice. S

Re: [PATCH v4 1/5] cramfs: direct memory access support

2017-10-03 Thread Christoph Hellwig
On Sun, Oct 01, 2017 at 06:27:11PM -0400, Nicolas Pitre wrote: > If you prefer, the physical address could be specified with a Kconfig > symbol just like the kernel link address. Personally I think it is best > to keep it along with the other root mount args. But going all the way > with a dynam

[PATCH v2 1/4] HID: core: move the dynamic quirks handling in core

2017-10-03 Thread Benjamin Tissoires
usbhid has a list of dynamic quirks in addition to a list of static quirks. There is not much USB specific in that, so move this part of the module in core so we can have one central place for quirks. Signed-off-by: Benjamin Tissoires --- changes in v2: - add missing EXPORT_SYMBOL[_GPL] for sepa

RE: [PATCH v4 1/5] cramfs: direct memory access support

2017-10-03 Thread Chris Brandt
On Tuesday, October 03, 2017 1, Rob Herring wrote: > On Sun, Oct 1, 2017 at 3:29 AM, Christoph Hellwig > wrote: > > On Wed, Sep 27, 2017 at 07:32:20PM -0400, Nicolas Pitre wrote: > >> To distinguish between both access types, the cramfs_physmem filesystem > >> type must be specified when using a m

Re: [PATCH] perf/core: Avoid freeing static PMU contexts when PMU is unregistered

2017-10-03 Thread Mark Rutland
On Tue, Oct 03, 2017 at 03:20:50PM +0100, Will Deacon wrote: > Since commit 1fd7e4169954 ("perf/core: Remove perf_cpu_context::unique_pmu"), > when a PMU is unregistered then its associated ->pmu_cpu_context is > unconditionally freed. Whilst this is fine for dynamically allocated > context types (

Re: Fix a typo in Documentation/sysctl/vm.txt

2017-10-03 Thread Randy Dunlap
On 10/03/17 00:56, Kangmin Park wrote: > --- linux/Documentation/sysctl/vm.txt.orig 2017-09-07 00:19:43.260477784 +0900 > +++ linux/Documentation/sysctl/vm.txt 2017-09-07 00:19:56.498431846 +0900 > @@ -793,7 +793,7 @@ with no ill effects: errors and warnings > swappiness > > This control is used

Re: [PATCH] nvme-pci: Use PCI bus address for data/queues in CMB

2017-10-03 Thread Keith Busch
On Sat, Sep 30, 2017 at 02:30:16PM +0530, Abhishek Shah wrote: > > On a similar note, we also break CMB usage in virutalization with direct > > assigned devices: the guest doesn't know the host physical bus address, > > so it sets the CMB queue address incorrectly there, too. I don't know of > > a

Re: [PATCH] lightnvm: pblk: use vfree_atomic when freeing line metadata

2017-10-03 Thread Hans Holmberg
Thanks for the review Andrey, i'll send a new patch removing the lock.

Re: [PATCH] DT/arm,gic-v3: Update the ITS size in the examples

2017-10-03 Thread Marc Zyngier
On 03/10/17 15:53, Mark Rutland wrote: > On Tue, Oct 03, 2017 at 03:20:27PM +0100, Julien Grall wrote: >> Currently, the examples are using 2MB for the ITS size. Per the >> specification (section 8.18 in ARM IHI 0069D), the ITS address map is >> 128KB. >> >> Update the examples to match the specifi

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-03 Thread Josh Poimboeuf
On Tue, Oct 03, 2017 at 09:41:36AM -0500, Josh Poimboeuf wrote: > On Tue, Oct 03, 2017 at 09:31:47AM -0500, Josh Poimboeuf wrote: > > On Tue, Oct 03, 2017 at 10:06:34PM +0800, Fengguang Wu wrote: > > > Hi Byungchul, > > > > > > This patch triggers a NULL-dereference bug at update_stack_state(). >

Re: [PATCH v4 1/5] cramfs: direct memory access support

2017-10-03 Thread Nicolas Pitre
On Tue, 3 Oct 2017, Christoph Hellwig wrote: > On Sun, Oct 01, 2017 at 06:27:11PM -0400, Nicolas Pitre wrote: > > If you prefer, the physical address could be specified with a Kconfig > > symbol just like the kernel link address. Personally I think it is best > > to keep it along with the other

Re: [PATCH v9 09/12] mm/kasan: kasan specific map populate function

2017-10-03 Thread Pasha Tatashin
Hi Mark, I considered using a new *populate() function for shadow without using vmemmap_populate(), but that makes things unnecessary complicated: vmemmap_populate() has builtin: 1. large page support 2. device memory support 3. node locality support 4. several config based variants on diffe

Re: [PATCH 1/2] security/apparmor: Replace homebrew use of write_can_lock with lockdep

2017-10-03 Thread Peter Zijlstra
On Tue, Oct 03, 2017 at 03:32:45PM +0100, Will Deacon wrote: > The lockdep subsystem provides a robust way to assert that a lock is > held, so use that instead of write_can_lock, which can give incorrect > results for qrwlocks. > > Cc: John Johansen > Cc: Peter Zijlstra > Signed-off-by: Will Dea

Re: [PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

2017-10-03 Thread Chen-Yu Tsai
On Tue, Oct 3, 2017 at 10:47 PM, Maxime Ripard wrote: > Hi Linus, > > On Tue, Oct 03, 2017 at 09:27:17AM +, Linus Walleij wrote: >> On Mon, Oct 2, 2017 at 2:08 PM, Quentin Schulz >> wrote: >> >> > On AXP813/818, GPIO0 and GPIO1 can be used as LDO as (respectively) >> > ldo_io0 and ldo_io1. >>

Re: [PATCH v9 01/12] x86/mm: setting fields in deferred pages

2017-10-03 Thread Pasha Tatashin
Hi Michal, I hope I haven't missed anything but it looks good to me. Acked-by: Michal Hocko Thank you for your review. one nit below --- arch/x86/mm/init_64.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c in

RE: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-10-03 Thread Mario.Limonciello
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: Tuesday, October 3, 2017 4:23 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; Andy Shevchenko ; > LKML ; platform-driver-...@vger.kernel.org; > Andy Lutomirski ; quasi...@google.com; > pali.ro...@gmail.com > Subje

Re: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-10-03 Thread Darren Hart
On Tue, Oct 03, 2017 at 11:23:23AM +0200, Greg KH wrote: > On Wed, Sep 27, 2017 at 11:02:16PM -0500, Mario Limonciello wrote: > > For WMI operations that are only Set or Query read or write sysfs > > attributes created by WMI vendor drivers make sense. > > > > For other WMI operations that are run

Re: [4.14-rc1 x86] WARNING: kernel stack regs at f60bbb12 in swapper:1 has bad 'bp' value 0ba00000

2017-10-03 Thread Tetsuo Handa
Josh Poimboeuf wrote: > On Tue, Oct 03, 2017 at 10:44:13PM +0900, Tetsuo Handa wrote: > > Josh Poimboeuf wrote: > > > > > On Tue, Oct 03, 2017 at 12:37:44PM +0200, Borislav Petkov wrote: > > > > On Tue, Oct 03, 2017 at 07:29:36PM +0900, Tetsuo Handa wrote: > > > > > Tetsuo Handa wrote: > > > > > >

Re: [PATCH v9 02/12] sparc64/mm: setting fields in deferred pages

2017-10-03 Thread Pasha Tatashin
As you separated x86 and sparc patches doing essentially the same I assume David is going to take this patch? Correct, I noticed that usually platform specific changes are done in separate patches even if they are small. Dave already Acked this patch. So, I do not think it should be separated

[Question]: Tail latency problem in scheduler

2017-10-03 Thread Afshin Jamshidi
According to https://research.google.com/pubs/pub40801.html article, tail delay is problematic in enterprise service providers. According to https://dl.acm.org/citation.cfm?id=2670988 article, FIFO scheduling works best and LIFO is worst for tail latency. As we test Linux scheduler called CFS, beha

RE: [PATCH v3 5/8] platform/x86: dell-wmi-smbios: introduce character device for userspace

2017-10-03 Thread Mario.Limonciello
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: Tuesday, October 3, 2017 4:26 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; Andy Shevchenko ; > LKML ; platform-driver-...@vger.kernel.org; > Andy Lutomirski ; quasi...@google.com; > pali.ro...@gmail.com > Subje

[PATCH trivial] Fix a typo in Documentation/sysctl/vm.txt

2017-10-03 Thread Kangmin Park
Fix a typo in Documentation/sysctl/vm.txt Signed-off-by: Kangmin Park Cc: Jiri Kosina --- linux/Documentation/sysctl/vm.txt.orig 2017-09-07 00:19:43.260477784 +0900 +++ linux/Documentation/sysctl/vm.txt 2017-09-07 00:19:56.498431846 +0900 @@ -793,7 +793,7 @@ with no ill effects: errors and warn

Re: [4.14-rc1 x86] WARNING: kernel stack regs at f60bbb12 inswapper:1 has bad 'bp' value 0ba00000

2017-10-03 Thread Josh Poimboeuf
On Tue, Oct 03, 2017 at 09:35:18AM -0500, Josh Poimboeuf wrote: > On Tue, Oct 03, 2017 at 10:44:13PM +0900, Tetsuo Handa wrote: > > Josh Poimboeuf wrote: > > > > > On Tue, Oct 03, 2017 at 12:37:44PM +0200, Borislav Petkov wrote: > > > > On Tue, Oct 03, 2017 at 07:29:36PM +0900, Tetsuo Handa wrote:

[PATCH 0/2] writeback: start-all allocation elimination

2017-10-03 Thread Jens Axboe
This is on top of the parts of the previous series that have been queued up. I've posted the first patch in a reply to Jan last week, this is a more official posting. No changes, it works for me. Last patch is just a cleanup, finally killing off nr_pdflush_threads, 8 years after we deprecated it.

[PATCH 1/2] writeback: eliminate work item allocation in bd_start_writeback()

2017-10-03 Thread Jens Axboe
Handle start-all writeback like we do periodic or kupdate style writeback - by marking the bdi_writeback as needing a full flush, and simply waking the thread. This eliminates the need to allocate and queue a specific work item just for this purpose. After this change, we truly only ever have one

[PATCH 2/2] sysctl: remove /proc/sys/vm/nr_pdflush_threads

2017-10-03 Thread Jens Axboe
This tunable has been obsolete since 2.6.32, and writes to the file have been failing and complaining in dmesg since then: nr_pdflush_threads exported in /proc is scheduled for removal That was 8 years ago. Remove the file ABI obsolete notice, and the sysfs file. Signed-off-by: Jens Axboe ---

Re: [PATCH v4 2/2] memory: ti-emif-sram: introduce relocatable suspend/resume handlers

2017-10-03 Thread Dave Gerlach
On 10/02/2017 10:34 AM, Dave Gerlach wrote: > Russell, > On 09/28/2017 03:38 AM, Russell King - ARM Linux wrote: >> On Tue, Sep 26, 2017 at 07:03:55PM -0500, Dave Gerlach wrote: >>> diff --git a/drivers/memory/emif-asm-offsets.c >>> b/drivers/memory/emif-asm-offsets.c >>> new file mode 100644 >>>

Re: [PATCH v9 03/12] mm: deferred_init_memmap improvements

2017-10-03 Thread Pasha Tatashin
Hi Michal, Please be explicit that this is possible only because we discard memblock data later after 3010f876500f ("mm: discard memblock data later"). Also be more explicit how the new code works. OK I like how the resulting code is more compact and smaller. That was the goal :) for_e

RE: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-10-03 Thread Mario.Limonciello
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: Tuesday, October 3, 2017 4:24 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; Andy Shevchenko ; > LKML ; platform-driver-...@vger.kernel.org; > Andy Lutomirski ; quasi...@google.com; > pali.ro...@gmail.com > Subje

Re: [PATCH v3 5/8] platform/x86: dell-wmi-smbios: introduce character device for userspace

2017-10-03 Thread Darren Hart
On Tue, Oct 03, 2017 at 11:26:11AM +0200, Greg KH wrote: > On Wed, Sep 27, 2017 at 11:02:17PM -0500, Mario Limonciello wrote: > > +static int dell_wmi_smbios_open(struct inode *inode, struct file *file) > > +{ > > + return nonseekable_open(inode, file); > > +} > > + > > +static int dell_wmi_smbio

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-03 Thread Dmitry Vyukov
On Mon, Oct 2, 2017 at 4:42 PM, 'Eric Dumazet' via syzkaller wrote: > On Mon, Oct 2, 2017 at 7:21 AM, Mark Rutland wrote: >> Hi Eric, >> >> On Mon, Oct 02, 2017 at 06:36:32AM -0700, Eric Dumazet wrote: >>> On Mon, Oct 2, 2017 at 3:49 AM, Mark Rutland wrote: >>> > I hit the below splat at net/cor

Re: [PATCH v9 04/12] sparc64: simplify vmemmap_populate

2017-10-03 Thread Pasha Tatashin
Acked-by: Michal Hocko Thank you, Pasha

Re: [4.14-rc1 x86] WARNING: kernel stack regs at f60bbb12 in swapper:1 has bad 'bp' value 0ba00000

2017-10-03 Thread Tetsuo Handa
Josh Poimboeuf wrote: > On Tue, Oct 03, 2017 at 09:35:18AM -0500, Josh Poimboeuf wrote: > > On Tue, Oct 03, 2017 at 10:44:13PM +0900, Tetsuo Handa wrote: > > > Josh Poimboeuf wrote: > > > > > > > On Tue, Oct 03, 2017 at 12:37:44PM +0200, Borislav Petkov wrote: > > > > > On Tue, Oct 03, 2017 at 07:

[PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-03 Thread Geert Uytterhoeven
If CONFIG_DEBUG_LOCK_ALLOC=y, the kernel log is spammed with a few hundred identical messages: unwind: Unknown symbol address c0800300 unwind: Index not found c0800300 c0800300 is the return address from the last subroutine call (to __memzero()) in __mmap_switched(). Apparently having th

[PATCH] mm: remove unused pgdat->inactive_ratio

2017-10-03 Thread Andrey Ryabinin
Since commit 59dc76b0d4df ("mm: vmscan: reduce size of inactive file list") 'pgdat->inactive_ratio' is not used, except for printing "node_inactive_ratio: 0" in /proc/zoneinfo output. Remove it. Signed-off-by: Andrey Ryabinin --- include/linux/mmzone.h | 6 -- mm/vmscan.c| 2 +-

Re: [PATCH v9 06/12] mm: zero struct pages during initialization

2017-10-03 Thread Pasha Tatashin
On 10/03/2017 09:08 AM, Michal Hocko wrote: On Wed 20-09-17 16:17:08, Pavel Tatashin wrote: Add struct page zeroing as a part of initialization of other fields in __init_single_page(). This single thread performance collected on: Intel(R) Xeon(R) CPU E7-8895 v3 @ 2.60GHz with 1T of memory (26

Re: [PATCH] mm: remove unused pgdat->inactive_ratio

2017-10-03 Thread Rik van Riel
On Tue, 2017-10-03 at 18:26 +0300, Andrey Ryabinin wrote: > Since commit 59dc76b0d4df ("mm: vmscan: reduce size of inactive file > list") > 'pgdat->inactive_ratio' is not used, except for printing > "node_inactive_ratio: 0" in /proc/zoneinfo output. > > Remove it. > > Signed-off-by: Andrey Ryabin

Re: [BUGFIX PATCH] kprobes/x86: Remove IRQ disabling from jprobe handlers

2017-10-03 Thread Masami Hiramatsu
On Tue, 3 Oct 2017 11:33:44 +0200 Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > > > Jprobe actually doesn't need to disable IRQs while calling > > handlers, because Documentation/kprobes.txt says: > > > > - > > Probe handlers are run with preemption disabled. Depending on the > >

[PATCH v2 1/2] ARM64: dts: meson-gxl: Take eMMC data strobe out of eMMC pins

2017-10-03 Thread Neil Armstrong
Since the Data Strobe pin is optional, take it out of the default eMMC pins and add a separate entry. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi| 2 +- arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 2 +- arch/arm64/boot/

[PATCH v2 2/2] ARM64: dts: meson-gxm: Add support for Khadas VIM2

2017-10-03 Thread Neil Armstrong
The Khadas VIM2 is a Single Board Computer, respin of the origin Khadas VIM board, using an Amlogic S912 SoC and more server oriented. It provides the same external connectors and header pinout, plus a SPI NOR Flash, a reprogrammable STM8S003 MCU, FPC Connector, Cooling FAN header and Pogo Pads Ar

[PATCH v2 0/2] ARM64: meson-gxm: Add support for Khadas VIM2

2017-10-03 Thread Neil Armstrong
The Khadas VIM2 is a Single Board Computer, respin of the origin Khadas VIM board, using an Amlogic S912 SoC and more server oriented. It provides the same external connectors and header pinout, plus a SPI NOR Flash, a reprogrammable STM8S003 MCU, FPC Connector, Cooling FAN header and Pogo Pad

[PATCH v2 4/4] scsi: ufs: Remove unused UFS_BIT() macro

2017-10-03 Thread Alim Akhtar
Since we have converted all the user of UFS_BIT() macro with the actual bit position, let remove unused UFS_BIT()macro. Signed-off-by: Alim Akhtar --- drivers/scsi/ufs/ufshci.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h index dec042

[PATCH v2 1/4] scsi: ufs: Change HCI macro to actual bit position

2017-10-03 Thread Alim Akhtar
Currently UFS HCI uses UFS_BIT() macro to get various bit position for the hardware registers status bits. Which makes code longer instead of shorter. This macro does not improve code readability as well. Lets re-write these macro definition with the actual bit position. Suggested-by: Bart Van Ass

[PATCH v2 3/4] scsi: ufs: Remove unused #defines

2017-10-03 Thread Alim Akhtar
HOST_ERROR_INDICATOR and DEVICE_ERROR_INDICATOR are not used anywhere. Also as per JESD223C specification, bit[7:4] are reserved. Lets remove these #defines. Signed-off-by: Alim Akhtar --- drivers/scsi/ufs/ufshci.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshci.h b/

[PATCH v2 0/2] ARM64: Add Vega S96 board support

2017-10-03 Thread Neil Armstrong
This patchset adds support for the Tronsmart Vega S96 TV Box based on the Q200 Amlogic Reference design. Changes since v1 at [1] : - Add acks - Cleanup external_phy node [1] https://lkml.kernel.org/r/1505822748-23431-1-git-send-email-narmstr...@baylibre.com Neil Armstrong (2): ARM64: dts:

[PATCH v2 1/2] ARM64: dts: meson-gxm: Add Vega S96 board

2017-10-03 Thread Neil Armstrong
The Tronsmart Vega S96 is a TV box derived from Amlogic q200 reference design. Cc: supp...@tronsmart.com Acked-by: Jerome Brunet Signed-off-by: Oleg Ivanov Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 1 + arch/arm64/boot/dts/amlogic/meson-gxm-vega-s9

[PATCH v2 2/2] dt-bindings: arm: amlogic: Add Tronsmart Vega S96 binding

2017-10-03 Thread Neil Armstrong
Cc: supp...@tronsmart.com Acked-by: Jerome Brunet Signed-off-by: Oleg Ivanov Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/arm/amlogic.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.txt b/Documentation/devicetree/bind

Re: [PATCH v4 4/5] cramfs: add mmap support

2017-10-03 Thread Nicolas Pitre
On Tue, 3 Oct 2017, Christoph Hellwig wrote: > On Mon, Oct 02, 2017 at 07:33:29PM -0400, Nicolas Pitre wrote: > > On Tue, 3 Oct 2017, Richard Weinberger wrote: > > > > > On Mon, Oct 2, 2017 at 12:29 AM, Nicolas Pitre > > > wrote: > > > > On Sun, 1 Oct 2017, Christoph Hellwig wrote: > > > > > >

[PATCH v2 v2 2/4] scsi: ufs-qcom: Remove uses of UFS_BIT() macro

2017-10-03 Thread Alim Akhtar
Use actual bit position instead of UFS_BIT() macro. This patch also changes bit-17 to meaningful #define. This change is as per discussion here [1] [1] -> https://lkml.org/lkml/2017/8/28/786 Signed-off-by: Alim Akhtar Cc: Subhash Jadavani --- drivers/scsi/ufs/ufs-qcom.c | 4 ++-- drivers/scsi/

Re: [PATCH v9 08/12] mm: zero reserved and unavailable struct pages

2017-10-03 Thread Pasha Tatashin
On 10/03/2017 09:18 AM, Michal Hocko wrote: On Wed 20-09-17 16:17:10, Pavel Tatashin wrote: Some memory is reserved but unavailable: not present in memblock.memory (because not backed by physical pages), but present in memblock.reserved. Such memory has backing struct pages, but they are not ini

Re: [PATCH 1/2] security/apparmor: Replace homebrew use of write_can_lock with lockdep

2017-10-03 Thread John Johansen
On 10/03/2017 07:32 AM, Will Deacon wrote: > The lockdep subsystem provides a robust way to assert that a lock is > held, so use that instead of write_can_lock, which can give incorrect > results for qrwlocks. > > Cc: John Johansen > Cc: Peter Zijlstra > Signed-off-by: Will Deacon oh nice, Ac

Re: [PATCH v9 12/12] mm: stop zeroing memory during allocation in vmemmap

2017-10-03 Thread Pasha Tatashin
On 10/03/2017 09:19 AM, Michal Hocko wrote: On Wed 20-09-17 16:17:14, Pavel Tatashin wrote: vmemmap_alloc_block() will no longer zero the block, so zero memory at its call sites for everything except struct pages. Struct page memory is zero'd by struct page initialization. Replace allocators i

Re: [PATCH v4 4/5] cramfs: add mmap support

2017-10-03 Thread Christoph Hellwig
On Tue, Oct 03, 2017 at 11:30:50AM -0400, Nicolas Pitre wrote: > Unless you have a better scheme altogether to suggest of course, given > the existing constraints. I still can't understand why this convoluted fault path that finds vma, attempts with all kinds of races and then tries to update th

Re: [PATCH] x86/kprobes: Set up frame pointer in kprobe trampoline

2017-10-03 Thread Masami Hiramatsu
On Tue, 3 Oct 2017 08:51:43 -0500 Josh Poimboeuf wrote: > Richard Weinberger saw an unwinder warning when running bcc's opensnoop: > > WARNING: kernel stack frame pointer at 99ef4076bea0 in opensnoop:2008 > has bad value 0008 > unwind stack type:0 next_sp: (null) m

Re: [PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-03 Thread Nicolas Pitre
On Tue, 3 Oct 2017, Geert Uytterhoeven wrote: > If CONFIG_DEBUG_LOCK_ALLOC=y, the kernel log is spammed with a few > hundred identical messages: > > unwind: Unknown symbol address c0800300 > unwind: Index not found c0800300 > > c0800300 is the return address from the last subroutine call

Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB DMA controller

2017-10-03 Thread Stephen Warren
On 10/03/2017 04:32 AM, Jon Hunter wrote: On 03/10/17 00:02, Dmitry Osipenko wrote: On 02.10.2017 20:05, Stephen Warren wrote: On 09/29/2017 09:11 PM, Dmitry Osipenko wrote: On 29.09.2017 22:30, Stephen Warren wrote: On 09/27/2017 02:34 AM, Jon Hunter wrote: On 27/09/17 02:57, Dmitry Osip

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-03 Thread Eric Dumazet
On Tue, Oct 3, 2017 at 8:19 AM, Dmitry Vyukov wrote: > On Mon, Oct 2, 2017 at 4:42 PM, 'Eric Dumazet' via syzkaller > wrote: >> On Mon, Oct 2, 2017 at 7:21 AM, Mark Rutland wrote: >>> Hi Eric, >>> >>> On Mon, Oct 02, 2017 at 06:36:32AM -0700, Eric Dumazet wrote: On Mon, Oct 2, 2017 at 3:49

Re: [PATCH v2 1/4] scsi: ufs: Change HCI macro to actual bit position

2017-10-03 Thread Bart Van Assche
On Tue, 2017-10-03 at 20:51 +0530, Alim Akhtar wrote: > Currently UFS HCI uses UFS_BIT() macro to get various bit > position for the hardware registers status bits. Which makes > code longer instead of shorter. This macro does not improve > code readability as well. > Lets re-write these macro defi

Re: [PATCH v2 v2 2/4] scsi: ufs-qcom: Remove uses of UFS_BIT() macro

2017-10-03 Thread Bart Van Assche
On Tue, 2017-10-03 at 20:51 +0530, Alim Akhtar wrote: > Use actual bit position instead of UFS_BIT() macro. This > patch also changes bit-17 to meaningful #define. Reviewed-by: Bart Van Assche

Re: [PATCH v2 3/4] scsi: ufs: Remove unused #defines

2017-10-03 Thread Bart Van Assche
On Tue, 2017-10-03 at 20:51 +0530, Alim Akhtar wrote: > HOST_ERROR_INDICATOR and DEVICE_ERROR_INDICATOR are not used > anywhere. Also as per JESD223C specification, bit[7:4] are reserved. > Lets remove these #defines. Reviewed-by: Bart Van Assche

Re: [PATCH v4 4/5] cramfs: add mmap support

2017-10-03 Thread Nicolas Pitre
On Tue, 3 Oct 2017, Christoph Hellwig wrote: > On Tue, Oct 03, 2017 at 11:30:50AM -0400, Nicolas Pitre wrote: > > Unless you have a better scheme altogether to suggest of course, given > > the existing constraints. > > I still can't understand why this convoluted fault path that finds > vma, at

Re: [PATCH v2 4/4] scsi: ufs: Remove unused UFS_BIT() macro

2017-10-03 Thread Bart Van Assche
On Tue, 2017-10-03 at 20:51 +0530, Alim Akhtar wrote: > Since we have converted all the user of UFS_BIT() macro > with the actual bit position, let remove unused UFS_BIT()macro. Reviewed-by: Bart Van Assche

Re: [PATCH v2 0/2] ARM64: meson-gxm: Add support for Khadas VIM2

2017-10-03 Thread Jerome Brunet
On Tue, 2017-10-03 at 17:24 +0200, Neil Armstrong wrote: > The Khadas VIM2 is a Single Board Computer, respin of the origin > Khadas VIM board, using an Amlogic S912 SoC and more server oriented. > > It provides the same external connectors and header pinout, plus a SPI > NOR Flash, a reprogra

Re: usb/sound/bcd2000: warning in bcd2000_init_device

2017-10-03 Thread Takashi Iwai
On Tue, 03 Oct 2017 16:21:57 +0200, Alan Stern wrote: > > On Tue, 3 Oct 2017, Takashi Iwai wrote: > > > On Mon, 25 Sep 2017 14:39:51 +0200, > > Andrey Konovalov wrote: > > > > > > Hi! > > > > > > I've got the following report while fuzzing the kernel with syzkaller. > > > > > > On commit e19b2

RE: [PATCH v3 5/8] platform/x86: dell-wmi-smbios: introduce character device for userspace

2017-10-03 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Tuesday, October 3, 2017 10:20 AM > To: Greg KH > Cc: Limonciello, Mario ; Andy Shevchenko > ; LKML ; > platform-driver-...@vger.kernel.org; Andy Lutomirski ; > quasi...@google.com; pali.ro...@gmail.com > Subjec

[PATCH 2/2] IB/hfi1: Handle packets in the theaded handler only

2017-10-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The hfi1 driver calls request_threaded_irq with two parameters: handler = receive_context_interrupt; thread = receive_context_thread; request_threaded_irq(me->msix.vector, handler, thread, 0, me->name, arg); And tries to process packets on the ha

[PATCH 1/2] IB/hfi1: Use preempt_{dis,en}able_nort()

2017-10-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo sc_buffer_alloc() disables preemption that will be reenabled by either pio_copy() or seg_pio_copy_end(). But before disabling preemption it grabs a spin lock that will be dropped after it disables preemption, which ends up triggering a warning in migrate_disable() l

[GIT PULL 0/2] infiniband hfi1 PREEMPT_RT_FULL changes

2017-10-03 Thread Arnaldo Carvalho de Melo
Hi, Please consider pulling into the linux-4.11.y-rt branch, It was tested with a simple netperf script found below (that I intercepted from PeterZ :-)), systems with default kernel tunables, with the following results: # Both machines: [root@opa0-qa-06 ~]# getconf _NPROCESSORS_O

Re: [kernel-hardening] [PATCH 0/3] Makefile: Introduce CONFIG_CC_STACKPROTECTOR_AUTO

2017-10-03 Thread Kees Cook
On Tue, Oct 3, 2017 at 3:04 AM, Mark Rutland wrote: > Hi Kees, > > On Mon, Oct 02, 2017 at 12:20:04PM -0700, Kees Cook wrote: >> As described in the final patch: >> >> Nearly all modern compilers support a stack-protector option, and nearly >> all modern distributions enable the kernel stack-prote

Re: [PATCH 02/12] buffer: grow_dev_page() should use __GFP_NOFAIL for all cases

2017-10-03 Thread Jan Kara
On Tue 03-10-17 08:36:16, Jens Axboe wrote: > On 10/03/2017 06:25 AM, Jan Kara wrote: > > On Tue 03-10-17 14:10:49, Jan Kara wrote: > >> On Wed 27-09-17 14:13:49, Jens Axboe wrote: > >>> We currently it it for find_or_create_page(), which means that it > >>> cannot fail. Ensure we also pass in 'ret

Re: + pid-delete-reserved_pids.patch added to -mm tree

2017-10-03 Thread Oleg Nesterov
Hi Alexey, On 10/02, Andrew Morton wrote: > > From: Alexey Dobriyan > Subject: pid: delete RESERVED_PIDS > > RESERVED_PIDS had a noble goal: to protect root from PID exhaustion since > at least ~2.5.40 I am just curious, where did you find the change which documents this goal? > except it never

[PATCH] Documentation: Improve softlockup_panic= description text

2017-10-03 Thread Borislav Petkov
From: Borislav Petkov It should say what that range is and what that integer value means. I had to look at the code... Signed-off-by: Borislav Petkov Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org --- Documentation/admin-guide/kernel-parameters.txt | 6 ++ 1 file changed, 6 insertions

Re: [PATCH 1/1] xdp: Sample xdp program implementing ip forward

2017-10-03 Thread Daniel Borkmann
On 10/03/2017 09:37 AM, cjacob wrote: Implements port to port forwarding with route table and arp table lookup for ipv4 packets using bpf_redirect helper function and lpm_trie map. Signed-off-by: cjacob Thanks for the patch, just few minor comments below! Note, should be full name, e.g.:

RE: [PATCH 02/11] x86: make dma_cache_sync a no-op

2017-10-03 Thread David Laight
From: Christoph Hellwig > Sent: 03 October 2017 11:43 > x86 does not implement DMA_ATTR_NON_CONSISTENT allocations, so it doesn't > make any sense to do any work in dma_cache_sync given that it must be a > no-op when dma_alloc_attrs returns coherent memory. I believe it is just about possible to r

Re: [PATCH v9 03/12] mm: deferred_init_memmap improvements

2017-10-03 Thread Pasha Tatashin
Hi Michal, Are you OK, if I replace DEFERRED_FREE() macro with a function like this: /* * Helper for deferred_init_range, free the given range, and reset the * counters */ static inline unsigned long __def_free(unsigned long *nr_free, unsigned long *free

Re: sysbench throughput degradation in 4.13+

2017-10-03 Thread Rik van Riel
On Tue, 2017-10-03 at 10:39 +0200, Peter Zijlstra wrote: > On Mon, Oct 02, 2017 at 11:53:12PM +0100, Matt Fleming wrote: > > On Wed, 27 Sep, at 01:58:20PM, Rik van Riel wrote: > > > > > > I like the simplicity of your approach!  I hope it does not break > > > stuff like netperf... > > > > > > I h

Re: [Tee-dev] [PATCH v1 00/14] tee: optee: add dynamic shared memory support

2017-10-03 Thread Stuart Yoder
On 9/28/17 1:03 PM, Volodymyr Babchuk wrote: From: Volodymyr Babchuk This patch series enables dynamic shared memory support in the TEE subsystem as a whole and in OP-TEE in particular. Global Platform TEE specification [1] allows client applications to register part of own memory as a share

Re: [Devel] [PATCH 15/18] acpi: use ARRAY_SIZE

2017-10-03 Thread Rafael J. Wysocki
On Tue, Oct 3, 2017 at 2:34 PM, Colin Ian King wrote: > On 03/10/17 12:39, Rafael J. Wysocki wrote: >> On Tuesday, October 3, 2017 3:16:22 AM CEST Jérémy Lefaure wrote: >>> On Mon, 02 Oct 2017 14:27:52 +0200 >>> "Rafael J. Wysocki" wrote: >>> ACPICA is soewhat special code, though and I'm no

Re: [Tee-dev] [PATCH v1 12/14] tee: optee: enable dynamic SHM support

2017-10-03 Thread Stuart Yoder
On 9/28/17 1:04 PM, Volodymyr Babchuk wrote: From: Volodymyr Babchuk Previous patches added various features that are needed for dynamic SHM. Dynamic SHM allows Normal World to share any buffers with OP-TEE. While original design suggested to use pre-allocated region (usually of 1M to 2M of s

Re: [PATCH 2/2] perf, tools: Don't force MetricExprs to lower case

2017-10-03 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 12, 2017 at 12:56:43PM -0700, Andi Kleen escreveu: > From: Andi Kleen > > There are still problems with BPF misinterpreting some events > that include .c. An earlier fix made it work for stand alone > aliases, but it still fails for more complex constructs. Hi Wang, Jiri, Ca

Re: [PATCH 10/12] writeback: only allow one inflight and pending full flush

2017-10-03 Thread Matthew Wilcox
On Fri, Sep 29, 2017 at 02:17:32AM +0200, Jens Axboe wrote: > On 09/28/2017 11:44 PM, Linus Torvalds wrote: > > On Thu, Sep 28, 2017 at 2:41 PM, Andrew Morton > > wrote: > >> > >> test_and_set_bit()? > > > > If there aren't any atomicity concerns (either because of higher-level > > locking, or be

[ANNOUNCE] util-linux v2.31-rc2

2017-10-03 Thread Karel Zak
The util-linux release v2.31-rc2 is available at http://www.kernel.org/pub/linux/utils/util-linux/v2.31/ Feedback and bug reports, as always, are welcomed. Karel Util-linux 2.31 Release Notes = The package build-system follows GNU Coding Standards and uses

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-03 Thread Dmitry Vyukov
On Tue, Oct 3, 2017 at 5:38 PM, 'Eric Dumazet' via syzkaller wrote: > On Tue, Oct 3, 2017 at 8:19 AM, Dmitry Vyukov wrote: >> On Mon, Oct 2, 2017 at 4:42 PM, 'Eric Dumazet' via syzkaller >> wrote: >>> On Mon, Oct 2, 2017 at 7:21 AM, Mark Rutland wrote: Hi Eric, On Mon, Oct 02, 20

ERROR: "boot_cpu_physical_apicid" [arch/x86/kvm/kvm-intel.ko] undefined!

2017-10-03 Thread kbuild test robot
Hi Paolo, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9e66317d3c92ddaab330c125dfe9d06eee268aff commit: c0a1666bcb2a33e84187a15eabdcd54056be9a97 KVM: VMX: use cmpxchg64 date: 5 days ago config: i386-randconfig

Re: [RESEND PATCH] prctl: add PR_[GS]ET_PDEATHSIG_PROC

2017-10-03 Thread Linus Torvalds
On Tue, Oct 3, 2017 at 7:46 AM, Eric W. Biederman wrote: > > The process that requests the signal be sent is the process that is > receiving the signal. I can see a theoretical need for a permission > check in there somewhere (especially as this persists over fork). Note that it also persists ov

[PATCH] checkpatch: printks always need a KERN_

2017-10-03 Thread Joe Perches
There was code in checkpatch that allowed continuation printks to be used without KERN_CONT. Remove the continuation check and always require a KERN_. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 26 -- 1 file changed, 4 insertions(+), 22 deletions(-) diff --g

Re: [PATCH 10/12] writeback: only allow one inflight and pending full flush

2017-10-03 Thread Jens Axboe
On 10/03/2017 10:06 AM, Matthew Wilcox wrote: > On Fri, Sep 29, 2017 at 02:17:32AM +0200, Jens Axboe wrote: >> On 09/28/2017 11:44 PM, Linus Torvalds wrote: >>> On Thu, Sep 28, 2017 at 2:41 PM, Andrew Morton >>> wrote: test_and_set_bit()? >>> >>> If there aren't any atomicity concerns (e

Re: [PATCH 0/6] Replace container_of with list_entry

2017-10-03 Thread Greg KH
On Sat, Sep 30, 2017 at 12:49:00PM +0530, Srishti Sharma wrote: > Replaces instances of container_of with list_entry to > access current list element. > > Srishti Sharma (6): > Staging: rtl8188eu: core: Use list_entry instead of container_of > Staging: rtl8188eu: core: Use list_entry instead

Re: + pid-delete-struct-pidmap-nr_free.patch added to -mm tree

2017-10-03 Thread Oleg Nesterov
On 10/02, Andrew Morton wrote: > > From: Alexey Dobriyan > Subject: pid: delete struct pidmap::nr_free > > There is a check in pid allocation code to skip a full page: > > if (likely(atomic_read(&map->nr_free))) { > ... > > In practice it doesn't do anything. To skip a pidm

[RESEND PATCH] gpio: omap: Fix lost edge interrupts

2017-10-03 Thread Grygorii Strashko
Now acking of edge irqs happens the following way: - omap_gpio_irq_handler - "isr" = read irq status - omap_clear_gpio_irqbank(bank, isr_saved & ~level_mask); ^ clear edge status, so irq can be accepted - loop while "isr" generic_handle_irq() - handle_edge_irq()

Re: [Part2 PATCH v4 05/29] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-10-03 Thread Borislav Petkov
On Sun, Oct 01, 2017 at 03:05:11PM -0500, Brijesh Singh wrote: > I think theoretically a 32-bit host OS can invoke a PSP commands but > currently PSP interface is exposing only the SEV FW command. And SEV Let's cross that bridge when we get to it. > feature is available when we are in 64-bit mode

[PATCH 1/2] vfs: factor sb iteration out of do_emergency_remount

2017-10-03 Thread Mateusz Guzik
The intent is to reduce code duplication with other code iterating the list. No functional changes. Signed-off-by: Mateusz Guzik --- fs/super.c | 61 - 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/fs/super.c b/fs/sup

[PATCH 2/2] buffer.c: call thaw_super during emergency thaw

2017-10-03 Thread Mateusz Guzik
There are 2 distinct freezing mechanisms - one operates on block devices and another one directly on super blocks. Both end up with the same result, but thaw of only one of these does not thaw the other. In particular fsfreeze --freeze uses the ioctl variant going to the super block. Since prior t

[PATCH 0/2] fix emergency unfreezing

2017-10-03 Thread Mateusz Guzik
Filesystems frozen with fsfreeze --freeze are not getting thawed with sysrq j (or echo j > /proc/sysrq-trigger). Thawing only deals with bdev part, does not do anything about fsfreeze. I went for the easiest fix possible: just thaw the super block. Doing it requires a little bit of refactoring in

[PATCH 2/2] of/fdt: skip unflattening of disabled nodes

2017-10-03 Thread Rob Herring
For static DT usecases, we don't need the disabled nodes and can skip unflattening. This saves a significant amount of RAM in memory constrained cases. In one example on STM32F469, the RAM usage goes from 118K to 26K. There are a few cases in the kernel that modify the status property dynamically.

[PATCH 1/2] of/fdt: add of_fdt_device_is_available function

2017-10-03 Thread Rob Herring
Add an equivalent function to of_device_is_available for flattened DT, and convert the one existing open coded occurrence. Cc: Nicolas Pitre Cc: Frank Rowand Signed-off-by: Rob Herring --- drivers/of/fdt.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/d

Re: [Part2 PATCH v4 05/29] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-10-03 Thread Brijesh Singh
On 10/03/2017 11:17 AM, Borislav Petkov wrote: ... No, please add my patch below to your set for the CRYPTO_DEV_CCP_DD dependency as it is a separate thing. Your patch should concentrate only on adding the PSP and its dependencies. Sure, I will include your patch in my series. thanks --

Re: [PATCH] block: drop "sending ioctl to a partition" message

2017-10-03 Thread Paolo Bonzini
On 21/09/2017 16:49, Paolo Bonzini wrote: > After the first few months, the message has not led to many bug reports. > It's been almost five years now, and in practice the main source of > it seems to be MTIOCGET that someone is using to detect tape devices. > While we could whitelist it just like

<    3   4   5   6   7   8   9   10   11   >