Re: [PATCH v3 net-next] bpf/verifier: track liveness for pruning

2017-08-15 Thread Daniel Borkmann
On 08/15/2017 09:34 PM, Edward Cree wrote: State of a register doesn't matter if it wasn't read in reaching an exit; a write screens off all reads downstream of it from all explored_states upstream of it. This allows us to prune many more branches; here are some processed insn counts for

[PATCH net-next 1/3] VMCI: only load on VMware hypervisor

2017-08-15 Thread Dexuan Cui
Without the patch, vmw_vsock_vmci_transport.ko and vmw_vmci.ko can automatically load when an application creates an AF_VSOCK socket. This is the expected good behavior on VMware hypervisor, but as we are going to add hv_sock.ko (i.e. Hyper-V transport for AF_VSOCK), we should make sure

Re: [PATCH] loop: fix to a race condition due to the early registration of device

2017-08-15 Thread Jens Axboe
On 08/07/2017 06:37 AM, Anton Volkov wrote: > The early device registration made possible a race leading to allocations > of disks with wrong minors. > > This patch moves the device registration further down the loop_init > function to make the race infeasible. > > Found by Linux Driver

Re: possible circular locking dependency mmap_sem/cpu_hotplug_lock.rw_sem

2017-08-15 Thread Paul E. McKenney
On Mon, Aug 07, 2017 at 04:09:47PM +0200, Artem Savkov wrote: > Hello, > > After commit fc8dffd "cpu/hotplug: Convert hotplug locking to percpu rwsem" > the following lockdep splat started showing up on some systems while running > ltp's madvise06 test (right after first dirty_pages call [1]).

Re: [PATCH 2/2] Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"

2017-08-15 Thread Kees Cook
On Tue, Aug 15, 2017 at 4:55 AM, Petr Mladek wrote: > On Thu 2017-08-10 13:36:35, Kees Cook wrote: >> This reverts commit 68c4a4f8abc60c9440ede9cd123d48b78325f7a3, with >> various conflict clean-ups. >> >> With the default root directory mode set to 0750 now, the capability >>

[PATCH v4 1/3] dt-bindings: i2c: Document the IBM CCF power supply version 1

2017-08-15 Thread Eddie James
From: "Edward A. James" Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,cffps1.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/ibm,cffps1.txt diff

Inconsistency in usb_add_gadget_udc_release() interface

2017-08-15 Thread Alexey Khoroshilov
Hello, usb_add_gadget_udc_release() gets release() argument that allows to release user resources. As far as I can see, the release() is called on error paths of usb_add_gadget_udc_release() as a result of put_device(>dev); except for the only path going via err1. As a result a caller of the

Re: [PATCH] printk-formats.txt: Add examples for %pS and %pF

2017-08-15 Thread Helge Deller
On 15.08.2017 13:36, Petr Mladek wrote: > On Fri 2017-08-11 09:31:28, Helge Deller wrote: >> On 11.08.2017 02:15, Sergey Senozhatsky wrote: >>> On (08/10/17 19:35), Helge Deller wrote: Sometimes people seems unclear when to use the %pS or %pF printk format. Adding some examples may help

Re: [PATCH 2/2] mtd: spi-nor: Altera ASMI Parallel II IP Core

2017-08-15 Thread Cyrille Pitchen
Le 15/08/2017 à 19:20, matthew.gerl...@linux.intel.com a écrit : > > Hi Cyrille, > > Thanks for the great feedback. See my comments inline. > > Matthew Gerlach > > On Fri, 11 Aug 2017, Cyrille Pitchen wrote: > >> Hi Matthew, >> >> Le 06/08/2017 à 20:24, matthew.gerl...@linux.intel.com a

[PATCH] scsi: cxlflash: Fix an error handling path in 'cxlflash_disk_attach()'

2017-08-15 Thread Christophe JAILLET
'rc' is known to be 0 at this point. If 'create_context()' fails, returns -ENOMEM instead of 0 which means success. Signed-off-by: Christophe JAILLET --- drivers/scsi/cxlflash/superpipe.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [v5 4/4] mm, oom, docs: describe the cgroup-aware OOM killer

2017-08-15 Thread David Rientjes
On Tue, 15 Aug 2017, Roman Gushchin wrote: > > > diff --git a/Documentation/cgroup-v2.txt b/Documentation/cgroup-v2.txt > > > index dec5afdaa36d..22108f31e09d 100644 > > > --- a/Documentation/cgroup-v2.txt > > > +++ b/Documentation/cgroup-v2.txt > > > @@ -48,6 +48,7 @@ v1 is available under

[PATCH net-next 2/3] vsock: fix vsock_dequeue/enqueue_accept race

2017-08-15 Thread Dexuan Cui
With the current code, when vsock_dequeue_accept() is removing a sock from the list, nothing prevents vsock_enqueue_accept() from adding a new sock into the list concurrently. We should add a lock to protect the list. Signed-off-by: Dexuan Cui Cc: Andy King

Re: [PATCH] devicetree: Enable generation of __symbols__ in all dtb files

2017-08-15 Thread Rob Herring
On Tue, Aug 15, 2017 at 4:15 PM, Tom Rini wrote: > With support for stacked overlays being part of libfdt it is now > possible and likely that overlays which require __symbols__ will be > applied to the dtb files generated by the kernel. This is done by > passing -@ to dtc.

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-15 Thread Davidlohr Bueso
On Mon, 14 Aug 2017, Linus Torvalds wrote: On Mon, Aug 14, 2017 at 8:15 PM, Andi Kleen wrote: But what should we do when some other (non page) wait queue runs into the same problem? Hopefully the same: root-cause it. Or you can always use wake_qs; which exists

Re: 4.13.0-rc4 sparc64: can't allocate MSI-X affinity masks for 2 vectors

2017-08-15 Thread Bjorn Helgaas
[+cc Christoph] On Tue, Aug 15, 2017 at 05:54:27PM +0300, Meelis Roos wrote: > I noticed that in 4.13.0-rc4 there is a new error in dmesg on my sparc64 > t5120 server: can't allocate MSI-X affinity masks. > > [ 30.274284] qla2xxx [:00:00.0]-0005: : QLogic Fibre Channel HBA > Driver:

[PATCH v2 05/14] staging: typec: fusb302: Use client->irq as irq if set

2017-08-15 Thread Hans de Goede
The fusb302 is also used on x86 systems where the platform code sets the irq in client->irq and there is no gpio named fcs,int_n. Cc: "Yueyao (Nathan) Zhu" Signed-off-by: Hans de Goede --- drivers/staging/typec/fusb302/fusb302.c | 10 +++--- 1 file

Re: [PATCH v3 11/13] xen/pvcalls: implement poll command

2017-08-15 Thread Boris Ostrovsky
On 07/31/2017 06:57 PM, Stefano Stabellini wrote: > For active sockets, check the indexes and use the inflight_conn_req > waitqueue to wait. > > For passive sockets if an accept is outstanding > (PVCALLS_FLAG_ACCEPT_INFLIGHT), check if it has been answered by looking > at bedata->rsp[req_id]. If

Re: [PATCH] pciehp: Fix infinite interupt handler loop

2017-08-15 Thread Keith Busch
On Tue, Aug 15, 2017 at 01:48:25PM -0700, Bjorn Helgaas wrote: > On Mon, Aug 14, 2017 at 06:11:23PM -0400, Keith Busch wrote: > > On Mon, Aug 14, 2017 at 03:59:48PM -0500, Bjorn Helgaas wrote: > > > On Tue, Aug 01, 2017 at 03:11:52AM -0400, Keith Busch wrote: > > > > We've encountered a particular

[GIT PULL] seccomp updates for next

2017-08-15 Thread Kees Cook
Hi James, Please pull these seccomp changes for next. Thanks! -Kees The following changes since commit 520eccdfe187591a51ea9ab4c1a024ae4d0f68d9: Linux 4.13-rc2 (2017-07-23 16:15:17 -0700) are available in the git repository at:

Re: [PATCH] pciehp: Fix infinite interupt handler loop

2017-08-15 Thread Bjorn Helgaas
On Tue, Aug 15, 2017 at 03:48:25PM -0500, Bjorn Helgaas wrote: > On Mon, Aug 14, 2017 at 06:11:23PM -0400, Keith Busch wrote: > > On Mon, Aug 14, 2017 at 03:59:48PM -0500, Bjorn Helgaas wrote: > > > On Tue, Aug 01, 2017 at 03:11:52AM -0400, Keith Busch wrote: > > > > We've encountered a particular

Re: [PATCH v2] platform/x86: ideapad-laptop: Expose conservation mode switch

2017-08-15 Thread Darren Hart
On Mon, Aug 14, 2017 at 06:32:48PM +0300, Andy Shevchenko wrote: > On Mon, Aug 14, 2017 at 5:17 PM, Hao Wei Tee wrote: > > +static int method_gbmd(acpi_handle handle, unsigned long *ret) > > +{ > > + int val; > > + int result = read_method_int(handle, "GBMD", ); > >

Re: [PATCH 2/2] mm,fork: introduce MADV_WIPEONFORK

2017-08-15 Thread Andrew Morton
On Fri, 11 Aug 2017 17:28:29 -0400 r...@redhat.com wrote: > From: Rik van Riel > > Introduce MADV_WIPEONFORK semantics, which result in a VMA being > empty in the child process after fork. This differs from MADV_DONTFORK > in one important way. > > If a child process accesses

Re: [PATCH] hw: Fix permissions for OCRDMA_RESET_STATS

2017-08-15 Thread Leon Romanovsky
On Tue, Aug 08, 2017 at 06:56:37PM +0300, Anton Vasilyev wrote: > Debugfs file reset_stats is created with S_IRUSR permissions, > but ocrdma_dbgfs_ops_read() doesn't support OCRDMA_RESET_STATS, > whereas ocrdma_dbgfs_ops_write() supports only OCRDMA_RESET_STATS. > > The patch fixes misstype with

[PATCH v2 03/14] staging: typec: fusb302: Set max supply voltage to 5V

2017-08-15 Thread Hans de Goede
Anything higher then 5V may damage hardware not capable of it, so the only sane default here is 5V. If a board is able to handle a higher voltage that should come from board specific data such as device-tree and not be hard coded into the fusb302 code. Cc: "Yueyao (Nathan) Zhu"

[PATCH v2 02/14] staging: typec: tcpm: Add get_current_limit tcpc_dev callback

2017-08-15 Thread Hans de Goede
A Rp signalling the default current limit indicates that we're possibly connected to an USB2 power-source. In some cases the type-c port-controller may provide the capability to detect the current-limit in this case, through e.g. BC1.2 detection. This commit adds an optional get_current_limit

Re: [PATCH v3 3/3] Documentation: hwmon: Document the IBM CFF power supply

2017-08-15 Thread Eddie James
On 08/14/2017 05:37 PM, Guenter Roeck wrote: On Mon, Aug 14, 2017 at 02:26:20PM -0500, Eddie James wrote: On 08/14/2017 01:53 PM, Guenter Roeck wrote: On Mon, Aug 14, 2017 at 10:26:30AM -0500, Eddie James wrote: From: "Edward A. James" Signed-off-by: Edward A. James

[PATCH v4 2/3] hwmon: (pmbus): Add IBM Common Form Factor (CFF) power supply driver

2017-08-15 Thread Eddie James
From: "Edward A. James" Add the driver to monitor IBM CFF power supplies with hwmon over pmbus. Signed-off-by: Edward A. James --- drivers/hwmon/pmbus/Kconfig | 10 +++ drivers/hwmon/pmbus/Makefile| 1 + drivers/hwmon/pmbus/ibm-cffps.c | 151

[PATCH v4 3/3] Documentation: hwmon: Document the IBM CFF power supply

2017-08-15 Thread Eddie James
From: "Edward A. James" Signed-off-by: Edward A. James --- Documentation/hwmon/ibm-cffps | 54 +++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/hwmon/ibm-cffps diff --git

[PATCH v4 0/3] hwmon: (pmbus): Add IBM Common Form Factor (CFF) power supply driver

2017-08-15 Thread Eddie James
From: "Edward A. James" This series adds a hwmon pmbus driver for a POWER System power supply. The core monitoring functionality is provided by pmbus. Changes since v3: * Change "fault" to "alarm" in the documentation. Changes since v2: * Renamed the driver again... *

Re: [PATCH] printk-formats.txt: Add examples for %pS and %pF

2017-08-15 Thread Steven Rostedt
On Tue, 15 Aug 2017 21:47:27 +0200 Helge Deller wrote: > > Very interesting! > > > > This code: > > void smp_cpus_done() { > > printk("Called from %pF.\n", smp_cpus_done); > > printk("Called from %pf.\n", smp_cpus_done); > > printk("Called in %pS.\n", __func__); > >

Re: [PATCH] devicetree: Enable generation of __symbols__ in all dtb files

2017-08-15 Thread Tom Rini
On Tue, Aug 15, 2017 at 05:36:11PM -0500, Rob Herring wrote: > On Tue, Aug 15, 2017 at 4:15 PM, Tom Rini wrote: > > With support for stacked overlays being part of libfdt it is now > > possible and likely that overlays which require __symbols__ will be > > applied to the dtb

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-15 Thread Tim Chen
On 08/14/2017 08:28 PM, Linus Torvalds wrote: > On Mon, Aug 14, 2017 at 8:15 PM, Andi Kleen wrote: >> But what should we do when some other (non page) wait queue runs into the >> same problem? > > Hopefully the same: root-cause it. > > Once you have a test-case, it should

Re: [PATCH 0/5] perf script: Add support for exporting to sqlite3

2017-08-15 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 15, 2017 at 12:25:24PM +0300, Adrian Hunter escreveu: > On 03/08/17 11:31, Adrian Hunter wrote: > > Hi > > > > Here is a script for exporting to SQLite 3 the same data as the PostgreSQL > > export. The call-graph script is renamed and amended to work with both > > PostgreSQL and

Re: [PATCH] earlycon: initialise baud field of earlycon device structure

2017-08-15 Thread Rob Herring
On Tue, Aug 15, 2017 at 12:21 PM, Eugeniy Paltsev wrote: > For now baud field of earlycon structure device is't initialised at all > in of_setup_earlycon (in oppositе to register_earlycon). > > So when I use stdout-path to point earlycon device > (like stdout-path =

Re: [PATCH 2/9] ASoC: cygnus: Update bindings for audio clock changes

2017-08-15 Thread Lori Hikichi
On 8/15/2017 10:14 AM, Mark Brown wrote: > On Mon, Aug 14, 2017 at 03:06:50PM -0700, Lori Hikichi wrote: >> Allow each audio port to select which clock (if any) it wants to use. > Why is this in DT for the port and not either using standard clock > bindings to configure the clock tree or allowing

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-15 Thread Linus Torvalds
On Tue, Aug 15, 2017 at 12:41 PM, Linus Torvalds wrote: > > So if we have unnecessarily collisions because we have waiters looking > at different bits of the same page, we could just hash in the bit > number that we're waiting for too. Oh, nope, we can't do that,

Re: [PATCH] printk-formats.txt: Add examples for %pS and %pF

2017-08-15 Thread Helge Deller
On 15.08.2017 21:41, Helge Deller wrote: > On 15.08.2017 14:46, Steven Rostedt wrote: >> On Thu, 10 Aug 2017 19:35:33 +0200 >> Helge Deller wrote: >> >>> Sometimes people seems unclear when to use the %pS or %pF printk format. >>> Adding some examples may help to avoid such

[PATCH v2 04/14] staging: typec: fusb302: Get max snk mv/ma/mw from device-properties

2017-08-15 Thread Hans de Goede
This is board specific info so it should come from board config, such as devicetree. I've chosen to prefix these with "fcs," treating them as fusb302 driver specific for now. We may want to revisit this and replace these with properties which are part of a (to be written) generic type-c

[PATCH v2 07/14] staging: typec: fusb302: Export current-limit through a power_supply class dev

2017-08-15 Thread Hans de Goede
The fusb302 Type-C port-controller cannot control the current-limit directly, so we need to exported the limit so that another driver (e.g. the charger driver) can pick the limit up and configure the system accordingly. The power-supply subsys already provides infrastructure for this,

[PATCH v2 00/14] Hookup typec power-negotation to the PMIC and charger

2017-08-15 Thread Hans de Goede
Hi All, This series implements a number of typec changes discussed a while back: - It exports the negotiated voltage and max-current in the form of a power-supply class device which represents the USB Type-C power-brick (adapter/charger) - It adds a

[PATCH v2 09/14] power: supply: bq24190_charger: Export 5V boost converter as regulator

2017-08-15 Thread Hans de Goede
Register the 5V boost converter as a regulator named "usb_otg_vbus". This commit also adds support for bq24190_platform_data, through which non device-tree platforms can pass the regulator_init_data (containing mappings for the consumer amongst other things). Signed-off-by: Hans de Goede

[PATCH v2 08/14] power: supply: Add power_supply_set_input_current_limit_from_supplier helper

2017-08-15 Thread Hans de Goede
On some devices the USB Type-C port power (USB PD 2.0) negotiation is done by a separate port-controller IC, while the current limit is controlled through another (charger) IC. It has been decided to model this by modelling the external Type-C power brick (adapter/charger) as a power-supply class

[PATCH v2 10/14] power: supply: bq24190_charger: Add input_current_limit property

2017-08-15 Thread Hans de Goede
Export the input current limit of the charger as a POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT property on the charger power_supply class device. Signed-off-by: Hans de Goede --- drivers/power/supply/bq24190_charger.c | 35 ++ 1 file changed, 35

[PATCH v2 06/14] staging: typec: fusb302: Add support for USB2 charger detection through extcon

2017-08-15 Thread Hans de Goede
The fusb302 port-controller relies on an external device doing USB2 charger-type detection. The Intel Whiskey Cove PMIC with which the fusb302 is combined on some X86/ACPI platforms already has a charger-type detection driver which uses extcon to communicate the detected charger-type. This

[PATCH v2 01/14] i2c: Allow overriding dev_name through board_info

2017-08-15 Thread Hans de Goede
For devices not instantiated through ACPI the i2c-client's device-name gets set to - by default, e.g. "0-0022" this means that the device-name is dependent on the order in which the i2c-busses are enumerated. In some cases having a predictable constant device-name is desirable, for example on non

Re: [PATCH v3 12/13] xen/pvcalls: implement release command

2017-08-15 Thread Boris Ostrovsky
On 07/31/2017 06:57 PM, Stefano Stabellini wrote: > Send PVCALLS_RELEASE to the backend and wait for a reply. Take both > in_mutex and out_mutex to avoid concurrent accesses. Then, free the > socket. > > For passive sockets, check whether we have already pre-allocated an > active socket for the

Re: [PATCH] nokia n900: update dts with camera support

2017-08-15 Thread Pavel Machek
Hi! > I understand Tony already applied this one. I'd have a few comments below, > could you address them in another patch, please? Yes. > > + rear_camera: camera@0 { > > + compatible = "linux,camera"; > > + > > + module { > > + model = "TCM8341MD"; > > +

Re: [PATCH v7 3/5] irqdomain: Add irq_domain_{push,pop}_irq() functions.

2017-08-15 Thread Marc Zyngier
On Tue, Aug 15 2017 at 11:00:19 am BST, David Daney wrote: > On 08/15/2017 06:50 AM, Marc Zyngier wrote: >> Hi David, >> >> On 09/08/17 23:51, David Daney wrote: > [...] >>> diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c >>> index f1f2514..629f770 100644

Re: [PATCH v2 1/3] dt-bindings: add eeprom "size" property

2017-08-15 Thread Rob Herring
On Mon, Aug 14, 2017 at 1:41 PM, Divagar Mohandass wrote: > This adds eeprom "size" as optional property for i2c eeproms. > > "size" should be mentioned in byte and it should refer > to the eeprom size. This will be read by the driver and > used to calculating the

[PATCH 0/3] Use mm_struct and switch_mm() instead of manually

2017-08-15 Thread Sai Praneeth Prakhya
From: Sai Praneeth Presently, in x86, to invoke any efi function like efi_set_virtual_address_map() or any efi_runtime_service() the code path typically involves read_cr3() (save previous pgd), write_cr3() (write efi_pgd) and calling efi function. Likewise after

[PATCH 3/3] x86/efi: Use efi_switch_mm() rather than manually twiddling with cr3

2017-08-15 Thread Sai Praneeth Prakhya
From: Sai Praneeth Use helper function (efi_switch_mm()) to switch to/from efi_mm. We switch to efi_mm before calling 1. efi_set_virtual_address_map() and 2. Invoking any efi_runtime_service() Likewise, we need to switch back to previous mm (mm context stolen by

[PATCH 1/3] efi: Use efi_mm in x86 as well as ARM

2017-08-15 Thread Sai Praneeth Prakhya
From: Sai Praneeth Presently, only ARM uses mm_struct to manage efi page tables and efi runtime region mappings. As this is the preferred approach, let's make this data structure common across architectures. Specially, for x86, using this data structure improves

[PATCH 2/3] x86/efi: Replace efi_pgd with efi_mm.pgd

2017-08-15 Thread Sai Praneeth Prakhya
From: Sai Praneeth Since the previous patch added support for efi_mm, let's handle efi_pgd through efi_mm and remove global variable efi_pgd. Signed-off-by: Sai Praneeth Prakhya Cc: Lee, Chun-Yi Cc: Borislav Petkov

[PATCH v3 net-next] bpf/verifier: track liveness for pruning

2017-08-15 Thread Edward Cree
State of a register doesn't matter if it wasn't read in reaching an exit; a write screens off all reads downstream of it from all explored_states upstream of it. This allows us to prune many more branches; here are some processed insn counts for some Cilium programs: Program

[PATCH] crypto: inside-secure - fix an error handling path in safexcel_probe()

2017-08-15 Thread Christophe JAILLET
'ret' is known to be 0 at this point. If 'safexcel_request_ring_irq()' fails, it returns an error code. Return this value instead of 0 which means success. Signed-off-by: Christophe JAILLET --- drivers/crypto/inside-secure/safexcel.c | 5 +++-- 1 file changed, 3

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-15 Thread Linus Torvalds
On Tue, Aug 15, 2017 at 12:05 PM, Tim Chen wrote: > > We have a test case but it is a customer workload. We'll try to get > a bit more info. Ok. Being a customer workload is lovely in the sense that it is actually a real load, not just a microbecnhmark. But yeah, it

[PATCH v2] tpm_tis: fix stall after iowrite*()s

2017-08-15 Thread Haris Okanovic
ioread8() operations to TPM MMIO addresses can stall the cpu when immediately following a sequence of iowrite*()'s to the same region. For example, cyclitest measures ~400us latency spikes when a non-RT usermode application communicates with an SPI-based TPM chip (Intel Atom E3940 system,

Re: [PATCH v4 0/4] OF phandle nexus support + GPIO nexus

2017-08-15 Thread Rob Herring
On Fri, Aug 11, 2017 at 10:42 AM, Stephen Boyd wrote: > This is a continutation of my phandle remapping/nexus node series > from a while ago. I finally got around to writing the documentation > in the spec for this, but it's really rough around the edges and > could use

[PATCH] devicetree: Enable generation of __symbols__ in all dtb files

2017-08-15 Thread Tom Rini
With support for stacked overlays being part of libfdt it is now possible and likely that overlays which require __symbols__ will be applied to the dtb files generated by the kernel. This is done by passing -@ to dtc. This does increase the filesize (and resident memory usage) based on the

Re: [PATCH] ACPI/APEI: Add BERT data driver

2017-08-15 Thread Luck, Tony
On Tue, Aug 15, 2017 at 11:22:06AM +0100, Punit Agrawal wrote: > There is already a bert driver which prints the error record. Would it > make sense to integrate the character device there instead of creating a > new driver? Like this? The source code is smaller. But it doesn't offer the option

Re: [v5 2/4] mm, oom: cgroup-aware OOM killer

2017-08-15 Thread David Rientjes
On Tue, 15 Aug 2017, Roman Gushchin wrote: > > I'm curious about the decision made in this conditional and how > > oom_kill_memcg_member() ignores task->signal->oom_score_adj. It means > > that memory.oom_kill_all_tasks overrides /proc/pid/oom_score_adj if it > > should otherwise be disabled.

Re: 答复: [iscsi] Deadlock occurred when network is in error

2017-08-15 Thread Bart Van Assche
On Tue, 2017-08-15 at 02:16 +, Tangchen (UVP) wrote: > But I'm not using mq, and I run into these two problems in a non-mq system. > The patch you pointed out is fix for mq, so I don't think it can resolve this > problem. > > IIUC, mq is for SSD ? I'm not using ssd, so mq is disabled.

Re: [PATCH 3/3] x86/efi: Use efi_switch_mm() rather than manually twiddling with cr3

2017-08-15 Thread Andy Lutomirski
On Tue, Aug 15, 2017 at 12:18 PM, Sai Praneeth Prakhya wrote: > +/* > + * Makes the calling kernel thread switch to/from efi_mm context > + * Can be used from SetVirtualAddressMap() or during efi runtime calls > + * (Note: This routine is heavily inspired from

[PATCH] lib/rhashtable: fix comment on locks_mul default value

2017-08-15 Thread Davidlohr Bueso
As of 4cf0b354d92 (rhashtable: avoid large lock-array allocations), the default value for the locks multiplier was reduced from 128 to 32. Update the header file to reflect this. Signed-off-by: Davidlohr Bueso --- include/linux/rhashtable.h | 2 +- 1 file changed, 1

[PATCH net-next 0/3] add Hyper-V transport for Virtual Sockets

2017-08-15 Thread Dexuan Cui
Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It uses VMBus ringbuffer as the transportation layer. PATCH 01 and 02 are for VMCI and the common infrastructure vsock. PATCH 03 implements the necessary support in Linux guest by

Re: [tpmdd-devel] [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-15 Thread Ken Goldman
On 8/13/2017 7:53 PM, msuchanek wrote: About 500 out of 700 mainboards sold today has a PS/2 port which is probably due to prevalence of legacy devices and usbhid limitations. Similarily many boards have serial and parallel hardware ports. In all diagrams detailed enough to show these ports I

[PATCH net-next 3/3] hv_sock: implements Hyper-V transport for Virtual Sockets (AF_VSOCK)

2017-08-15 Thread Dexuan Cui
Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It uses VMBus ringbuffer as the transportation layer. With hv_sock, applications between the host (Windows 10, Windows Server 2016 or newer) and the guest can talk with each other using

Re: [PATCH v2] acpi: apei: fix the wrongly iterate generic error status block

2017-08-15 Thread Baicar, Tyler
On 8/15/2017 10:55 AM, Borislav Petkov wrote: On Wed, Aug 16, 2017 at 12:42:43AM +0800, gengdongjiu wrote: I ever discuss it with Tyler about it, as shown below link, thanks https://lkml.org/lkml/2017/8/14/355 Tyler's patch fixes ghes_do_proc() - yours cper_estatus_print(). How is that

Re: [PATCH] mm: Revert x86_64 and arm64 ELF_ET_DYN_BASE base

2017-08-15 Thread Kees Cook
ping to akpm to please pick this up for -mm... On Tue, Aug 8, 2017 at 7:00 PM, Kees Cook wrote: > On Tue, Aug 8, 2017 at 2:34 AM, Will Deacon wrote: >> On Mon, Aug 07, 2017 at 01:15:42PM -0700, Kees Cook wrote: >>> Moving the x86_64 and arm64 PIE base

[PATCH v2] ipc: optimize semget/shmget/msgget for lots of keys

2017-08-15 Thread Guillaume Knispel
ding extra paths to panic() during boot. This implies that in this v2, .tables_initialized remains. - patch now based on next-20170815 include/linux/ipc.h | 3 ++ include/linux/ipc_namespace.h | 3 ++ ipc/msg.c | 10 +++-- ipc/namespace.c |

[PATCH v2 13/14] i2c-cht-wc: Add device-properties for fusb302 integration

2017-08-15 Thread Hans de Goede
Add device-properties to make the bq24292i charger connected to the bus get its input-current-limit from the fusb302 Type-C port controller which is used on boards with the cht-wc PMIC, as well as regulator_init_data for the 5V boost converter on the bq24292i. Since this means we now hook-up the

[PATCH v2 14/14] platform/x86: intel_cht_int33fe: Update fusb302 type string, add properties

2017-08-15 Thread Hans de Goede
The fusb302 driver as merged in staging uses "typec_fusb302" as i2c-id rather then just "fusb302" and needs us to set a number of device- properties, adjust the intel_cht_int33fe driver accordingly. One of the properties set is max-snk-mv which makes the fusb302 driver negotiate up to 12V

Re: [PATCH v2 1/4] perf annotate stdio: Support --show-nr-samples option

2017-08-15 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 16, 2017 at 12:13:09AM +0900, Taeung Song escreveu: > Add --show-nr-samples option to perf-annotate > so that it corresponds with perf-report. I'll fold the second patch (2/4) with this one, thanks. - Arnaldo > Cc: Namhyung Kim > Cc: Milian Wolff

[PATCH v2 11/14] power: supply: bq24190_charger: Get input_current_limit from our supplier

2017-08-15 Thread Hans de Goede
On some devices the USB Type-C port power (USB PD 2.0) negotiation is done by a separate port-controller IC, while the current limit is controlled through another (charger) IC. It has been decided to model this by modelling the external Type-C power brick (adapter/charger) as a power-supply class

[PATCH v2 12/14] power: supply: bq24190_charger: Remove extcon handling

2017-08-15 Thread Hans de Goede
Now that drivers/i2c/busses/i2c-cht-wc.c uses "input-current-limit-from-supplier" instead of "extcon-name" the last user of the bq24190 extcon code is gone, remove it. Signed-off-by: Hans de Goede --- Changes in v2: -Move the comment with the example code for passing

Re: 4.13.0-rc4 sparc64: can't allocate MSI-X affinity masks for 2 vectors

2017-08-15 Thread Meelis Roos
> On Tue, Aug 15, 2017 at 05:54:27PM +0300, Meelis Roos wrote: > > I noticed that in 4.13.0-rc4 there is a new error in dmesg on my sparc64 > > t5120 server: can't allocate MSI-X affinity masks. > > > > [ 30.274284] qla2xxx [:00:00.0]-0005: : QLogic Fibre Channel HBA > > Driver:

Re: [PATCH] pciehp: Fix infinite interupt handler loop

2017-08-15 Thread Bjorn Helgaas
On Mon, Aug 14, 2017 at 06:11:23PM -0400, Keith Busch wrote: > On Mon, Aug 14, 2017 at 03:59:48PM -0500, Bjorn Helgaas wrote: > > On Tue, Aug 01, 2017 at 03:11:52AM -0400, Keith Busch wrote: > > > We've encountered a particular platform that under some circumstances > > > always has the power

Re: [PATCH v2] acpi: apei: fix the wrongly iterate generic error status block

2017-08-15 Thread gengdongjiu
Hi Tyler , > Hello Boris, > > His patch fixes the define for apei_estatus_for_each_section which in turn > should fix ghes_do_proc(). So my patch should no longer be needed. I'm going > to test this out just to verify if fixes the issue I found. I have verified the issue about the iteration for

Re: [PATCH] swap: choose swap device according to numa node

2017-08-15 Thread Andrew Morton
On Tue, 15 Aug 2017 13:49:45 +0800 Aaron Lu wrote: > On Mon, Aug 14, 2017 at 04:33:37PM -0700, Andrew Morton wrote: > > On Mon, 14 Aug 2017 13:31:30 +0800 Aaron Lu wrote: > > > > > --- /dev/null > > > +++ b/Documentation/vm/swap_numa.txt > > > @@ -0,0

Re: [tip:perf/core] perf test shell: Install shell tests

2017-08-15 Thread Michael Petlan
On Tue, 15 Aug 2017, Arnaldo Carvalho de Melo wrote: [...] > > > Perhaps its time, yes. Some questions: > > > > Do these tests assume that perf was built in some particular way, i.e. > > > as it is packaged for RHEL? > > > > Of course I run the testsuite most often on RHEL, but it should be > >

Re: [PATCH v4 2/3] mm: introduce MAP_VALIDATE a mechanism for adding new mmap flags

2017-08-15 Thread Dan Williams
On Tue, Aug 15, 2017 at 9:28 AM, Andy Lutomirski wrote: > On Mon, Aug 14, 2017 at 11:12 PM, Dan Williams > wrote: >> The mmap syscall suffers from the ABI anti-pattern of not validating >> unknown flags. However, proposals like MAP_SYNC and MAP_DIRECT

Re: [PATCH 0/2] PCI: dwc: convert remaining dbi read/writes to dw_pcie_readX_dbi/dw_pcie_writeX_dbi

2017-08-15 Thread Bjorn Helgaas
[+cc Kishon, Pratyush] On Fri, Jul 14, 2017 at 02:07:33PM +0200, Niklas Cassel wrote: > Since the introduction of the dw_pcie_readX_dbi/dw_pcie_writeX_dbi macros, > most dw_pcie_read(pci->dbi_base, ..)/dw_pcie_write(pci->dbi_base, ..) calls > have been converted to

Re: [PATCH v3] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Minchan Kim
On Wed, Aug 16, 2017 at 11:19:41AM +0800, Hui Zhu wrote: > After commit [1] zs_page_migrate can handle the ZS_EMPTY zspage. > > But I got some false in zs_page_isolate: > if (get_zspage_inuse(zspage) == 0) { > spin_unlock(>lock); > return false; > } > The

Re: [PATCH net-next V2 1/3] tap: use build_skb() for small packet

2017-08-15 Thread Michael S. Tsirkin
On Wed, Aug 16, 2017 at 11:57:51AM +0800, Jason Wang wrote: > > > On 2017年08月16日 11:55, Michael S. Tsirkin wrote: > > On Tue, Aug 15, 2017 at 08:45:20PM -0700, Eric Dumazet wrote: > > > On Fri, 2017-08-11 at 19:41 +0800, Jason Wang wrote: > > > > We use tun_alloc_skb() which calls

Re: [PATCH 0/5] Add clk and scpsys support for MT6755

2017-08-15 Thread Mars Cheng
Hi Rob, Stephen, Matthias gentle ping. Thanks. On Tue, 2017-08-08 at 16:13 +0800, Mars Cheng wrote: > Mars Cheng (3): > clk: mediatek: add mt6755 clock ID > clk: mediatek: add clk support for MT6755 > soc: mediatek: add MT6755 scpsys support > > wendell.lin (2): > dt-bindings:

[PATCH v3 00/14] [dt-bindings] [media] Add document file and driver for Sony CXD2880 DVB-T2/T tuner + demodulator

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Hi, This is the patch series (version 3) of Sony CXD2880 DVB-T2/T tuner + demodulator driver. The driver supports DVB-API and interfaces through SPI. We have tested the driver on Raspberry Pi 3 and got picture and sound from a media

Re: linux-next: manual merge of the akpm-current tree with the tip tree

2017-08-15 Thread Minchan Kim
On Mon, Aug 14, 2017 at 09:57:23PM +0200, Peter Zijlstra wrote: > On Mon, Aug 14, 2017 at 05:38:39PM +0900, Minchan Kim wrote: > > memory-barrier.txt always scares me. I have read it for a while > > and IIUC, it seems semantic of spin_unlock(_pte) would be > > enough without some memory-barrier

[PATCH v3 01/14] [dt-bindings] [media] Add document file for CXD2880 SPI I/F

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the document file for Sony CXD2880 DVB-T2/T tuner + demodulator. It contains the description of the SPI adapter binding. No change since version 1. I should have carried the ack forward: Acked-by: Rob Herring

[PATCH v3 04/14] [media] cxd2880: Add spi device IO routines

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Add functions for initializing, reading and writing to the SPI device for the Sony CXD2880 DVB-T2/T tuner + demodulator. [Change list] Changes in V3 drivers/media/dvb-frontends/cxd2880/cxd2880_devio_spi.c -removed unnecessary cast

Re: [PATCH v4 11/20] mtd: nand: qcom: enable BAM or ADM mode

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: 1. DM_EN is only required for EBI2 NAND controller which uses ADM 2. BAM mode will be disabled after power on reset which needs to be enabled before starting any BAM transfers. Signed-off-by: Abhishek Sahu ---

[PATCH] net: 3c509: constify pnp_device_id

2017-08-15 Thread Arvind Yadav
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/3com/3c509.c | 2 +- 1 file changed,

[PATCH 1/2] cpufreq: dt-platdev: Automatically create cpufreq device with OPP v2

2017-08-15 Thread Viresh Kumar
The initial idea of creating the cpufreq-dt-platdev.c file was to keep a list of platforms that use the "operating-points" (V1) bindings and create cpufreq device for them only, as we weren't sure which platforms would want the device to get created automatically as some had their own cpufreq

[PATCH 2/2] cpufreq: dt-platdev: Drop few entries from whitelist

2017-08-15 Thread Viresh Kumar
Drop few ARM (32 and 64 bit) platforms from the whitelist which always use "operating-points-v2" property from their DT. They should continue to work after this patch. Tested on Hikey platform (only the "hisilicon,hi6220" entry). Signed-off-by: Viresh Kumar ---

Re: [PATCH v4 14/20] mtd: nand: qcom: add command elements in BAM transaction

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: All the QPIC register read/write through BAM DMA requires command descriptor which contains the array of command elements. Reviewed-by: Archit Taneja Thanks, Archit Signed-off-by: Abhishek Sahu

Loan

2017-08-15 Thread FINANCE CAPITAL IN
UNSECURED BUSINESS/PERSONAL LOAN BY LOAN CAPITAL FINANCE - NO COLLATERAL - MINIMUM DOCUMENTATION - BUSINESS LOAN UP TO FIVE(5) MILLION US DOLLARS CONTACT US TODAY VIA EMAIL: financecapital...@mail.com

Re: [PATCH 2/2] Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"

2017-08-15 Thread Kees Cook
On Tue, Aug 15, 2017 at 5:21 PM, Steven Rostedt wrote: > On Thu, 10 Aug 2017 13:36:35 -0700 > Kees Cook wrote: > >> This reverts commit 68c4a4f8abc60c9440ede9cd123d48b78325f7a3, with >> various conflict clean-ups. >> >> With the default root directory

Re: [PATCH 0/3] extcon: Clean-up the description and indentation of functions

2017-08-15 Thread Chanwoo Choi
On 2017년 07월 17일 10:30, Chanwoo Choi wrote: > These patches just clean-up code for extcon functions. > > Firstly, patch2 modifies the description for functions/structures > in order to improve the readability and guide the role of > functions more well. > > Second, the extcon header file defines

[GIT] Networking

2017-08-15 Thread David Miller
1) Fix TCP checksum offload handling in iwlwifi driver, from Emmanuel Grumbach. 2) In ksz DSA tagging code, free SKB if skb_put_padto() fails. From Vivien Didelot. 3) Fix two regressions with bonding on wireless, from Andreas Born. 4) Fix build when busypoll is disabled, from Daniel

Re: [PATCH] f2fs: let fill_super handle roll-forward errors

2017-08-15 Thread Chao Yu
On 2017/8/16 0:42, Jaegeuk Kim wrote: > On 08/15, Chao Yu wrote: >> On 2017/8/15 11:22, Jaegeuk Kim wrote: >>> On 08/15, Chao Yu wrote: Hi Jaegeuk, On 2017/8/11 8:42, Jaegeuk Kim wrote: > If we set CP_ERROR_FLAG in roll-forward error, f2fs is no longer to > proceed >

[PATCH v5] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-15 Thread Srinivas Pandruvada
For SoC to achieve its lowest power platform idle state a set of hardware preconditions must be met. These preconditions or constraints can be obtained by issuing a device specific method (_DSM) with function "1". Refer to the document provided in the link below. Here during initialization (from

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