Re: [PATCH v3 1/1] w1: Add subsystem kernel public interface

2017-06-08 Thread Sebastian Reichel
Hi, On Mon, Jun 05, 2017 at 08:04:45PM +0300, Evgeniy Polyakov wrote: > 05.06.2017, 16:52, "Andrew F. Davis" : > > Like other subsystems we should be able to define slave devices outside > > of the w1 directory. To do this we move public facing interface > > definitions to include/linux/w1.h and r

Re: [PATCH 2/3] mm/page_ref: Ensure page_ref_unfreeze is ordered against prior accesses

2017-06-08 Thread Peter Zijlstra
On Thu, Jun 08, 2017 at 02:16:41PM +0200, Peter Zijlstra wrote: > On Thu, Jun 08, 2017 at 12:24:33PM +0100, Will Deacon wrote: > > The horribly out-of-date atomic_ops.txt isn't so useful: > > > > | If a caller requires memory barrier semantics around an atomic_t > > | operation which does not ret

[PATCH] mm, memory_hotplug: support movable_node for hotplugable nodes

2017-06-08 Thread Michal Hocko
From: Michal Hocko movable_node kernel parameter allows to make hotplugable NUMA nodes to put all the hotplugable memory into movable zone which allows more or less reliable memory hotremove. At least this is the case for the NUMA nodes present during the boot (see find_zone_movable_pfns_for_nod

[PATCH v2 3/3] pwm: meson: improve pwm calculation precision.

2017-06-08 Thread Jerome Brunet
When using input clocks with high rates, such as clk81 (166MHz), the fin_ns = NSEC_PER_SEC / fin_freq can introduce a significant error. Ex: fin_freq = 16667, NSEC_PER_SEC = 10 fin_ns = 5,999 which is, of course, rounded down to 5. This introduce an error of ~20% on the period

[PATCH v2 1/3] dt-bindings: pwm: meson: add comptabible for gxbb ao pwms

2017-06-08 Thread Jerome Brunet
Add compatible string to properly handle the PWMs found in the AO domain of the gxbb (and gxl) family Acked-by: Neil Armstrong Signed-off-by: Jerome Brunet --- Documentation/devicetree/bindings/pwm/pwm-meson.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentatio

[PATCH v2 2/3] pwm: meson: add compatible for the gxbb ao pwms

2017-06-08 Thread Jerome Brunet
On the gxbb (and gxl) family, the PWMs of the AO domain require a specific compatible because the possible input clocks are different from the EE PWMs input clocks. Since the number of possible input clocks is also different, the 'num_parents' field is added to all the meson pwm data. Acked-by: N

[PATCH v2 0/3] pwm: add pwm AO on meson gx

2017-06-08 Thread Jerome Brunet
The pwms found in the AO domain of the meson gx family have different clock sources than the ones found in the EE domain. The AO pwms only have 2 connected clock input which are clk81 and the crytal. This patchset adds the necessary compatible and the clock data for it. Changes since v1: [0] * Co

Re: [PATCH 2/7] scsi/scsi_transport_iscsi: Update ep_connect to include iface.

2017-06-08 Thread kbuild test robot
Hi Robert, [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on v4.12-rc4 next-20170608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Robert-LeBlanc/Enable-iSCSI-offload

Re: [PATCH 2/3] w1: MAX1721x Stanalone Fuel Gauge - add 1-Wire slave drivers

2017-06-08 Thread Sebastian Reichel
Hi, On Fri, Jun 02, 2017 at 10:06:28AM +0300, Alex A. Mihaylov wrote: > Add support for Maxim Semiconductor MAX17211/MAX17215 > Standlone Fuel Gauge chips (1-Wire family 0x26) I think this is pretty pointless after the w1 subsystem is available publically [0]. We can just instantiate the w1 devic

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-06-08 Thread Fabien Lahoudere
Hi Peter I have a look at your patches (http://www.spinics.net/lists/linux-usb/msg157134.html) and I wonder if power sequence is applicable only on hub node? hub are probed too late (after ci_ulpi_init). Do you think it is possible to read a power sequence in dts from ci_ulpi_init? Thanks Fabi

[PATCH blktests] loop/002: Regression testing for loop device flush

2017-06-08 Thread James Wang
Add a regression testing for loop device. when an unbound device be close that take too long time. kernel will consume serveral orders of magnitude more wall time than it does for a mounted device. Signed-off-by: James Wang --- tests/loop/002 | 77

[PATCH cleanups/resubmit 2/4] random: squelch sh compiler warning and ensure safe optimization

2017-06-08 Thread Jason A. Donenfeld
Odd versions of gcc for the sh4 architecture will actually warn about flags being used while uninitialized, so we set them to zero. Non crazy gccs will optimize that out again, so it doesn't make a difference. Next, over aggressive gccs could inline the expression that defines use_lock, which coul

[PATCH cleanups/resubmit 1/4] security/keys: ensure RNG is seeded before use

2017-06-08 Thread Jason A. Donenfeld
Otherwise, we might use bad random numbers which, particularly in the case of IV generation, could be quite bad. It makes sense to use the synchronous API here, because we're always in process context (as the code is littered with GFP_KERNEL and the like). However, we can't change to using a blocki

[PATCH cleanups/resubmit 0/4] Cleanups & Resubmissions for Random-dev

2017-06-08 Thread Jason A. Donenfeld
Hi Ted, I'm not super sure what your workflow is like, but yesterday you picked up my v4 instead of my v5, and as you applied the wrong commits, I sent you several emails notifying you, along with quick fixes to various issues, which you also did not see. I assume you have complicated email filter

[PATCH cleanups/resubmit 4/4] crypto/rng: ensure that the RNG is ready before using

2017-06-08 Thread Jason A. Donenfeld
Otherwise, we might be seeding the RNG using bad randomness, which is dangerous. The one use of this function from within the kernel -- not from userspace -- is being removed (keys/big_key), so that call site isn't relevant in assessing this. Cc: Herbert Xu Signed-off-by: Jason A. Donenfeld ---

[PATCH cleanups/resubmit 3/4] bluetooth/smp: ensure RNG is properly seeded before ECDH use

2017-06-08 Thread Jason A. Donenfeld
This protocol uses lots of complex cryptography that relies on securely generated random numbers. Thus, it's important that the RNG is actually seeded before use. Fortuantely, it appears we're always operating in process context (there are many GFP_KERNEL allocations and other sleeping operations),

Re: [PATCH 1/7] scsi/scsi_transport_iscsi: Add iface struct to kernel.

2017-06-08 Thread kbuild test robot
Hi Robert, [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on v4.12-rc4 next-20170608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Robert-LeBlanc/Enable-iSCSI-offload

Re: [PATCH 3/3] bitmap: Use memcmp optimisation in more situations

2017-06-08 Thread Andy Shevchenko
On Thu, Jun 8, 2017 at 5:55 AM, Matthew Wilcox wrote: > On Thu, Jun 08, 2017 at 04:48:04AM +0300, Andy Shevchenko wrote: >> > Commit 7dd968163f ("bitmap: bitmap_equal memcmp optimization") was >> > rather more restrictive than necessary; we can use memcmp() to implement >> > bitmap_equal() as long

Re: [PATCH V2 2/3] watchdog: uniphier: add UniPhier watchdog driver

2017-06-08 Thread Guenter Roeck
On 06/06/2017 02:11 AM, Keiji Hayashibara wrote: Add a watchdog driver for Socionext UniPhier series SoC. Note that the timeout value for this device must be a power of 2 because of the specification. Signed-off-by: Keiji Hayashibara --- Documentation/watchdog/watchdog-parameters.txt | 6 +

Re: [PATCH 2/7] scsi: ibmvscsi_tgt: remove use of class_attrs

2017-06-08 Thread Bryant G. Ly
The class_attrs pointer is going away and it's not even being used in this driver, so just remove it entirely. Cc: "Bryant G. Ly" Cc: Michael Cyr Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: Cc: Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c |

Re: [PATCH RFC] KVM: async_pf: fix async_pf exception injection

2017-06-08 Thread Wanpeng Li
2017-06-08 19:52 GMT+08:00 Paolo Bonzini : > > > On 08/06/2017 11:30, Wanpeng Li wrote: >> However, I found that "nr == PF_VECTOR && vmx->apf_reason != 0" never be true >> in nested_vmx_check_exception(). SVM depends on the similar stuff in >> nested_svm_intercept() which makes me confusing how it

Re: [PATCH] configfs: Fix race between create_link and configfs_rmdir

2017-06-08 Thread Bryant G. Ly
Thanks Nic, applied to the configfs-for-next tree. I'm not entirely sure if we should bother adding this to 4.12 or if it hits rarely enough? It hits for us pretty often when we have a GPFS setup with 10 hosts and 1k+ vms. That is how we discovered the bug in the first place. -Bryant

Re: [PATCH v2 3/3] pwm: meson: improve pwm calculation precision.

2017-06-08 Thread Neil Armstrong
On 06/08/2017 02:24 PM, Jerome Brunet wrote: > When using input clocks with high rates, such as clk81 (166MHz), the > fin_ns = NSEC_PER_SEC / fin_freq can introduce a significant error. > > Ex: fin_freq = 16667, NSEC_PER_SEC = 10 > fin_ns = 5,999 > > which is, of course, round

Re: [PATCH v3] hwmon: Add support for MAX31785 intelligent fan controller

2017-06-08 Thread Guenter Roeck
On 06/08/2017 12:53 AM, Andrew Jeffery wrote: On Wed, 2017-06-07 at 08:55 -0700, Guenter Roeck wrote: On Tue, Jun 06, 2017 at 04:32:30PM +0930, Andrew Jeffery wrote: Add a basic driver for the MAX31785, focusing on the fan control features but ignoring the temperature and voltage monitoring fea

Re: [PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Andy Shevchenko
On Thu, Jun 8, 2017 at 2:17 PM, Bhumika Goyal wrote: > Add const to rfkill_ops structures that are only passed as an argument > to the functions rfkill_alloc or samsung_new_rfkill. These arguments are > of type const, so such structures can be annotated with const. Change is fine by me, but pleas

Re: [PATCH v3] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-08 Thread Jarkko Sakkinen
On Thu, Jun 08, 2017 at 01:11:43AM +, Shaikh, Azhar wrote: > > > > -Original Message- > > From: Alan Cox [mailto:gno...@lxorguk.ukuu.org.uk] > > Sent: Wednesday, June 7, 2017 2:45 PM > > To: Shaikh, Azhar > > Cc: jarkko.sakki...@linux.intel.com; jguntho...@obsidianresearch.com; > > t

[PATCH v2 2/8] config: android-recommended: enable CONFIG_ARM64_SW_TTBR0_PAN

2017-06-08 Thread Amit Pundir
From: Sami Tolvanen Enable PAN emulation using TTBR0_EL1 switching. Reviewed-at: https://android-review.googlesource.com/#/c/325997/ Signed-off-by: Sami Tolvanen [AmitP: cherry-picked this change from Android common kernel and updated the commit message] Signed-off-by: Amit Pundir ---

[PATCH v2 1/8] config: android-recommended: enable fstack-protector-strong

2017-06-08 Thread Amit Pundir
From: Jeff Vander Stoep If compiler has stack protector support, set CONFIG_CC_STACKPROTECTOR_STRONG. Reviewed-at: https://android-review.googlesource.com/#/c/238388/ Signed-off-by: Jeff Vander Stoep [AmitP: cherry-picked this change from Android common kernel] Signed-off-by: Amit Pundir ---

[PATCH v2 0/8] kernel/configs: Android config fragment updates

2017-06-08 Thread Amit Pundir
Hi, Following are the Android config fragment changes cherry-picked from Android common kernel for your consideration. Config fragments are folded or re-placed in sorted order wherever required. Changes since v1: Dropped that one patch adding non-existent config. Regards, Amit Pundir Chenb

[PATCH v2 5/8] config: android-base: add CONFIG_IKCONFIG option

2017-06-08 Thread Amit Pundir
From: Greg Kroah-Hartman This adds CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC options, which are a requirement for the O release. Reviewed-at: https://android-review.googlesource.com/#/c/364553/ Signed-off-by: Greg Kroah-Hartman [AmitP: cherry-picked this change from Android common kernel] Signe

[PATCH v2 8/8] config: android-base: disable CONFIG_NFSD and CONFIG_NFS_FS

2017-06-08 Thread Amit Pundir
From: Roberto Pereira Disable Network file system support. Reviewed-at: https://android-review.googlesource.com/#/c/409559/ Signed-off-by: Roberto Pereira [AmitP: cherry-picked this change from Android common kernel and updated commit message] Signed-off-by: Amit Pundir --- kernel/co

[PATCH v2 7/8] config: android-base: add CGROUP_BPF

2017-06-08 Thread Amit Pundir
From: Chenbo Feng Add CONFIG_CGROUP_BPF as a default configuration in android base config since it is used to replace XT_QTAGUID in future. Reviewed-at: https://android-review.googlesource.com/#/c/400374/ Signed-off-by: Chenbo Feng [AmitP: cherry-picked this change from Android common kernel]

[PATCH RESEND] ARM64: dts: meson-gx: use specific compatible for the AO pwms

2017-06-08 Thread Jerome Brunet
Use the specific compatible for AO pwms so the pwms input can be correctly set FDIV4 is not present on the pwm A0, so change kadhas vim input clocks to xtal. Signed-off-by: Jerome Brunet --- This patch depends on the pwm patchset available here [0] On the Khadas Vim I chose to replace FDIV4 wit

[PATCH v2 6/8] config: android-base: add CONFIG_MODULES option

2017-06-08 Thread Amit Pundir
From: Greg Kroah-Hartman This adds CONFIG_MODULES, CONFIG_MODULE_UNLOAD, and CONFIG_MODVERSIONS which are required by the O release. Reviewed-at: https://android-review.googlesource.com/#/c/364554/ Signed-off-by: Greg Kroah-Hartman [AmitP: cherry-picked this change from Android common kernel]

Re: [PATCH] x86/efi: fix boot panic because of invalid bgrt image address

2017-06-08 Thread Maniaxx
On 08.06.2017 at 07:38 wrote Dave Young: > Maniaxx, can you verify it on your machine? It passed my test with > an emulation of your wrong address. Works. Bails out properly on 4.12.0-rc4-gb29794ec95c6. [0.00] efi_bgrt: Ignoring BGRT: invalid image address

[PATCH v2 3/8] config: android-base: disable CONFIG_USELIB and CONFIG_FHANDLE

2017-06-08 Thread Amit Pundir
From: Max Shi Turn off the two kernel configs to disable related system ABI. Reviewed-at: https://android-review.googlesource.com/#/c/264976/ Signed-off-by: Max Shi [AmitP: cherry-picked this change from Android common kernel] Signed-off-by: Amit Pundir --- kernel/configs/android-base.config

Re: [PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
On Thu, Jun 8, 2017 at 6:08 PM, Andy Shevchenko wrote: > On Thu, Jun 8, 2017 at 2:17 PM, Bhumika Goyal wrote: >> Add const to rfkill_ops structures that are only passed as an argument >> to the functions rfkill_alloc or samsung_new_rfkill. These arguments are >> of type const, so such structures

[PATCH v2 4/8] config: android-recommended: enable CONFIG_CPU_SW_DOMAIN_PAN

2017-06-08 Thread Amit Pundir
From: Sami Tolvanen Enable CPU domain PAN to ensure that normal kernel accesses are unable to access userspace addresses. Reviewed-at: https://android-review.googlesource.com/#/c/334035/ Signed-off-by: Sami Tolvanen [AmitP: cherry-picked this change from Android common kernel, updated

Re: [PATCH] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH

2017-06-08 Thread Murilo Opsfelder Araújo
On 06/08/2017 08:41 AM, Michael Ellerman wrote: > Alexey Kardashevskiy writes: > >> Hi, >> >> How did you manage to have CONFIG_EEH=y and CONFIG_VFIO_SPAPR_EEH=n? "make >> oldconfig" fixes this to CONFIG_VFIO_SPAPR_EEH=y. > > Hmm, Murilo did you confirm the bug still happens on upstream with tha

Re: [RFC][PATCH 5/5] powerpc: Remove SYNC from _switch

2017-06-08 Thread Peter Zijlstra
On Thu, Jun 08, 2017 at 08:00:15PM +1000, Nicholas Piggin wrote: > I have those, I just also would like one in the core scheduler's use > of smp_mb__after_spinlock(), because it would be easy for core scheduler > change to miss that quirk. Sure we can say that Peter and scheduler > maintainers kno

Re: linux-next: build failure after merge of the wireless-drivers-next tree

2017-06-08 Thread Stephen Rothwell
Hi Kalle, On Thu, 08 Jun 2017 15:07:00 +0300 Kalle Valo wrote: > > Stephen Rothwell writes: > > > On Wed, 7 Jun 2017 19:43:18 -0700 Igor Mitsyanko > > wrote: > >> > >> thanks. As I understand, you've applied this patch during a merge and no > >> further actions are required, correct? > >

Re: [PATCH RFC] KVM: async_pf: fix async_pf exception injection

2017-06-08 Thread Paolo Bonzini
On 08/06/2017 14:32, Wanpeng Li wrote: >>> I change the >>> condition to "nr == PF_VECTOR && error_code == 0" to intercept async_pf, >>> however, >>> the below bug will be splatted: >> Right, because error_code == 0 is a valid error code. >> >> For stable releases, this should be enough: > > We

Re: [xfstests PATCH v3 5/5] btrfs: allow it to use $SCRATCH_LOGDEV

2017-06-08 Thread Jeff Layton
On Tue, 2017-06-06 at 17:19 +0800, Eryu Guan wrote: > On Wed, May 31, 2017 at 09:08:20AM -0400, Jeff Layton wrote: > > With btrfs, we can't really put the log on a separate device. What we > > can do however is mirror the metadata across two devices and make the > > data striped across all devices.

RE: [PATCH v2 4/4] net: macb: Add hardware PTP support

2017-06-08 Thread Rafal Ozieblo
> From: Richard Cochran [mailto:richardcoch...@gmail.com] > Sent: 7 czerwca 2017 15:28 > To: Rafal Ozieblo > Cc: David Miller ; nicolas.fe...@atmel.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > harini.kata...@xili

Re: [PATCH 3/3] power: supply: Add support MAX1721x battery monitor

2017-06-08 Thread Sebastian Reichel
Hi Alex, On Fri, Jun 02, 2017 at 10:06:29AM +0300, Alex A. Mihaylov wrote: > Add support for battery monitor MAX1721x (power_supply class). > Maxim Semiconductor MAX1721x Standalone Fuel Gauge battery monitor. > MAX17211 used for singlecell, MAX17215 for multicell batteryes. > --- > drivers/power

Re: [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver

2017-06-08 Thread Maxime Ripard
On Thu, Jun 08, 2017 at 10:42:22AM +0200, Corentin Labbe wrote: > On Thu, Jun 08, 2017 at 10:34:28AM +0200, Maxime Ripard wrote: > > On Wed, Jun 07, 2017 at 07:33:45PM +0200, Corentin Labbe wrote: > > > The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 > > > speed. > > > This pa

Re: [PATCH] Revert "[media] et8ek8: Export OF device ID as module aliases"

2017-06-08 Thread Sakari Ailus
On Thu, Jun 08, 2017 at 11:01:37AM +0200, Arnd Bergmann wrote: > This one got applied twice, causing a build error with clang: > > drivers/media/i2c/et8ek8/et8ek8_driver.c:1499:1: error: redefinition of > '__mod_of__et8ek8_of_table_device_table' > > Fixes: 9ae05fd1e791 ("[media] et8ek8: Export O

Re: [PATCH] drbd: rename "usermode_helper" to "drbd_usermode_helper"

2017-06-08 Thread Lars Ellenberg
On Mon, Jun 05, 2017 at 11:26:23AM +0200, Greg KH wrote: > From: Greg Kroah-Hartman > > Nothing like having a very generic global variable in a tiny driver > subsystem to make a mess of the global namespace... > > Note, there are many other "generic" named global variables in the drbd > subsyste

Re: [PATCH 2/3] mm/page_ref: Ensure page_ref_unfreeze is ordered against prior accesses

2017-06-08 Thread Peter Zijlstra
On Thu, Jun 08, 2017 at 12:24:33PM +0100, Will Deacon wrote: > [+ PeterZ] > > On Thu, Jun 08, 2017 at 01:07:02PM +0200, Vlastimil Babka wrote: > > On 06/08/2017 12:40 PM, Kirill A. Shutemov wrote: > > > On Thu, Jun 08, 2017 at 11:38:21AM +0200, Vlastimil Babka wrote: > > >> On 06/06/2017 07:58 PM,

Re: [PATCH 1/3] regmap: Add 1-Wire bus support

2017-06-08 Thread Sebastian Reichel
Hi, On Fri, Jun 02, 2017 at 10:06:27AM +0300, Alex A. Mihaylov wrote: > Add basic support regmap (register map access) API for 1-Wire bus Thanks :) > diff --git a/drivers/base/regmap/regmap-w1.c b/drivers/base/regmap/regmap-w1.c > new file mode 100644 > index 00..5f04e7bf06 > --- /dev/nu

Re: [PATCH 2/7] scsi/scsi_transport_iscsi: Update ep_connect to include iface.

2017-06-08 Thread kbuild test robot
Hi Robert, [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on v4.12-rc4 next-20170608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Robert-LeBlanc/Enable-iSCSI-offload

Re: [PATCH 1/3] regmap: Add 1-Wire bus support

2017-06-08 Thread Mark Brown
On Thu, Jun 08, 2017 at 02:53:50PM +0200, Sebastian Reichel wrote: > On Fri, Jun 02, 2017 at 10:06:27AM +0300, Alex A. Mihaylov wrote: > > Add basic support regmap (register map access) API for 1-Wire bus > > +#include > > +#include "../../w1/w1.h" > This conflicts with the following patch: > h

Re: [PATCH v5 10/23] mtd: nand: denali: rework interrupt handling

2017-06-08 Thread Masahiro Yamada
Hi Boris, 2017-06-08 20:26 GMT+09:00 Boris Brezillon : > On Thu, 8 Jun 2017 19:41:39 +0900 > Masahiro Yamada wrote: > >> Hi Boris, >> >> >> 2017-06-08 16:12 GMT+09:00 Boris Brezillon >> : >> > Le Thu, 8 Jun 2017 15:10:18 +0900, >> > Masahiro Yamada a écrit : >> > >> >> Hi Boris, >> >> >> >> >>

Re: [PATCH] perf, tools, script: Allow adding and removing fields

2017-06-08 Thread Milian Wolff
On Friday, June 2, 2017 5:48:10 PM CEST Andi Kleen wrote: > From: Andi Kleen > > With perf script it is common that we just want to add or remove a field. > Currently this requires figuring out the long list of default fields and > specifying them first, and then adding/removing the new field. >

Re: uuid-types branch now stable

2017-06-08 Thread Christoph Hellwig
On Wed, Jun 07, 2017 at 08:06:36PM +0300, Andy Shevchenko wrote: > On Wed, 2017-06-07 at 17:50 +0200, Christoph Hellwig wrote: > > Hi all, > > > > The uuid-types branch of git://git.infradead.org/users/hch/uuid.git > > will > > be immutable from now on, feel free to pull it into your trees. > > >

Re: [PATCH 1/5] rbtree: Cache leftmost node internally

2017-06-08 Thread Peter Zijlstra
On Mon, May 29, 2017 at 07:09:36PM -0700, Davidlohr Bueso wrote: > diff --git a/include/linux/rbtree_augmented.h > b/include/linux/rbtree_augmented.h > index 9702b6e183bc..b84ee26c19d9 100644 > --- a/include/linux/rbtree_augmented.h > +++ b/include/linux/rbtree_augmented.h > @@ -41,7 +41,9 @@ stru

Re: [PATCH] vfio/pci: Add Intel XXV710 to hidden INTx devices

2017-06-08 Thread Alex Williamson
[+linux-pci] On Thu, 8 Jun 2017 01:00:17 -0700 Christoph Hellwig wrote: > On Wed, Jun 07, 2017 at 01:01:46PM -0600, Alex Williamson wrote: > > XXV710 has the same broken INTx behavior as the rest of the X/XL710 > > series, the interrupt status register is not wired to report pending > > INTx int

[PATCH] irqchip/mips-gic: mark count and compare accessors notrace

2017-06-08 Thread Marcin Nowakowski
gic_read_count(), gic_write_compare() and gic_write_cpu_compare() are often used in a sequence to update the compare register with a count value increased by a small offset. With small delta values used to update the compare register, the time to update function trace for these operations may be lo

[PATCH] pinctrl: meson-gxl: add tsin_a pins

2017-06-08 Thread Jerome Brunet
Add Tsin A pins to bank DV and X. We don't have a driver for the tsin yet but since the tsin A pinmux is enabled by default at boot time, declaring this pinmux is required to properly operate on GPIOX. Without this change, GPIOX 8, 9, 10 and 11 can't be driven as GPIO output as the tsin A seems to

Re: [PATCH] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH

2017-06-08 Thread Alexey Kardashevskiy
On 08/06/17 22:45, Murilo Opsfelder Araújo wrote: > On 06/08/2017 08:41 AM, Michael Ellerman wrote: >> Alexey Kardashevskiy writes: >> >>> Hi, >>> >>> How did you manage to have CONFIG_EEH=y and CONFIG_VFIO_SPAPR_EEH=n? "make >>> oldconfig" fixes this to CONFIG_VFIO_SPAPR_EEH=y. >> >> Hmm, Murilo

Re: [PATCH 11/16] powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type

2017-06-08 Thread Michael Ellerman
Greg Kroah-Hartman writes: > The dev_attrs field has long been "depreciated" and is finally being > removed, so move the driver to use the "correct" dev_groups field > instead for struct bus_type. > > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: Vineet Gupta >

Re: [PATCH 1/3] regmap: Add 1-Wire bus support

2017-06-08 Thread Sebastian Reichel
Hi, On Thu, Jun 08, 2017 at 01:57:04PM +0100, Mark Brown wrote: > On Thu, Jun 08, 2017 at 02:53:50PM +0200, Sebastian Reichel wrote: > > On Fri, Jun 02, 2017 at 10:06:27AM +0300, Alex A. Mihaylov wrote: > > > Add basic support regmap (register map access) API for 1-Wire bus > > > > +#include > >

Re: [PATCH] IB/qib: remove duplicate code

2017-06-08 Thread Dennis Dalessandro
On 6/7/2017 4:42 PM, Gustavo A. R. Silva wrote: Remove duplicate code. Addresses-Coverity-ID: 1226951 Signed-off-by: Gustavo A. R. Silva --- drivers/infiniband/hw/qib/qib_mad.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_mad.c b/drivers/infiniband/hw/q

Re: [GIT PULL 0/7] perf/urgent callchain fixes

2017-06-08 Thread Milian Wolff
On Wednesday, May 24, 2017 8:21:22 AM CEST Namhyung Kim wrote: > Hi Ingo, > > Please consider pulling the perf tooling changes below. Build tested > on Ubuntu, Fedora and Archlinux. I found a problem during `perf test` > but it seems unrelated to this series. Will take a look it later. Hey guy

Re: [PATCH 4/4] mfd: tps65217: Instantiate sub-devices from device tree

2017-06-08 Thread Enric Balletbo Serra
2017-06-07 18:05 GMT+02:00 Grygorii Strashko : > > > On 06/07/2017 05:32 AM, Enric Balletbo i Serra wrote: >> The driver boots only via device tree but currently all the MFD sub-devices >> are instatiated independently of the device tree configuration, i.e >> although tps65217-charger is disabled b

Re: [PATCH] clk: meson-gxbb: Add const to some parent name arrays

2017-06-08 Thread Jerome Brunet
On Fri, 2017-06-02 at 15:40 -0700, Stephen Boyd wrote: > On 06/02, Stephen Boyd wrote: > > These can be marked as const * const. > > > > Cc: Neil Armstrong > > Cc: Jerome Brunet > > Signed-off-by: Stephen Boyd > > --- > > Applied to clk-next > Thx Stephen. Neil And I were discussing this par

Re: [PATCH RFC 0/2] KVM: s390: avoid having to enable vm.alloc_pgste

2017-06-08 Thread Heiko Carstens
On Thu, Jun 08, 2017 at 01:24:01PM +0200, Martin Schwidefsky wrote: > On Thu, 8 Jun 2017 08:25:31 +0200 > Heiko Carstens wrote: > > It would be more consistent, since right now a 32-bit ELF file with > > PT_S390_REQUEST_PGSTE will be exectuted, but the page tables won't have any > > pgstes. That's

Re: [RFC][PATCH 5/5] powerpc: Remove SYNC from _switch

2017-06-08 Thread Nicholas Piggin
On Thu, 8 Jun 2017 14:45:40 +0200 Peter Zijlstra wrote: > On Thu, Jun 08, 2017 at 08:00:15PM +1000, Nicholas Piggin wrote: > > > I have those, I just also would like one in the core scheduler's use > > of smp_mb__after_spinlock(), because it would be easy for core scheduler > > change to miss th

Re: [PATCH] macintosh: move mac_hid driver to input/mouse.

2017-06-08 Thread Michal Suchánek
On Thu, 8 Jun 2017 09:13:03 +1000 Peter Hutterer wrote: > On Wed, Jun 07, 2017 at 09:17:37PM +0200, Michal Suchánek wrote: > > On Wed, 7 Jun 2017 10:16:22 -0700 > > Dmitry Torokhov wrote: > > > > > On Wed, Jun 07, 2017 at 06:53:51PM +0200, Michal Suchánek wrote: > > > > On Sun, 28 May 2017

[PATCH 04/44] drm/exynos: don't use DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE already isn't a valid API to user for drivers and will go away soon. exynos_drm_fb_dma_addr uses it a an error return when the passed in index is invalid, but the callers never check for it but instead pass the address straight to the hardware. Add a WARN_ON instead and just return

[PATCH 02/44] ibmveth: properly unwind on init errors

2017-06-08 Thread Christoph Hellwig
That way the driver doesn't have to rely on DMA_ERROR_CODE, which is not a public API and going away. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/ibm/ibmveth.c | 159 + 1 file changed, 74 insertions(+), 85 deletions(-) diff --git a/drivers/net/e

[PATCH 07/44] xen-swiotlb: consolidate xen_swiotlb_dma_ops

2017-06-08 Thread Christoph Hellwig
ARM and x86 had duplicated versions of the dma_ops structure, the only difference is that x86 hasn't wired up the set_dma_mask, mmap, and get_sgtable ops yet. On x86 all of them are identical to the generic version, so they aren't needed but harmless. All the symbols used only for xen_swiotlb_dma

[PATCH 18/44] iommu/amd: implement ->mapping_error

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is going to go away, so don't rely on it. Signed-off-by: Christoph Hellwig --- drivers/iommu/amd_iommu.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 63cacf5d6cf2..d41280e869de 1

[PATCH 17/44] hexagon: switch to use ->mapping_error for error reporting

2017-06-08 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- arch/hexagon/include/asm/dma-mapping.h | 2 -- arch/hexagon/kernel/dma.c | 12 +--- arch/hexagon/kernel/hexagon_ksyms.c| 1 - 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/hexagon/include/asm/dma-mapping.h b/ar

[PATCH 31/44] hexagon: remove arch-specific dma_supported implementation

2017-06-08 Thread Christoph Hellwig
This implementation is simply bogus - hexagon only has a simple direct mapped DMA implementation and thus doesn't care about the address. Signed-off-by: Christoph Hellwig --- arch/hexagon/include/asm/dma-mapping.h | 2 -- arch/hexagon/kernel/dma.c | 9 - 2 files changed, 11

[PATCH 28/44] sparc: remove arch specific dma_supported implementations

2017-06-08 Thread Christoph Hellwig
Usually dma_supported decisions are done by the dma_map_ops instance. Switch sparc to that model by providing a ->dma_supported instance for sbus that always returns false, and implementations tailored to the sun4u and sun4v cases for sparc64, and leave it unimplemented for PCI on sparc32, which me

[PATCH 36/44] dma-mapping: remove HAVE_ARCH_DMA_SUPPORTED

2017-06-08 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/linux/dma-mapping.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index a57875309bfd..3e5908656226 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -549,7 +54

[PATCH 38/44] arm: implement ->dma_supported instead of ->set_dma_mask

2017-06-08 Thread Christoph Hellwig
Same behavior, less code duplication. Signed-off-by: Christoph Hellwig --- arch/arm/common/dmabounce.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c index 4aabf117e136..d89a0b56b245 100644 --- a/arch/arm/commo

[PATCH 41/44] powerpc/cell: clean up fixed mapping dma_ops initialization

2017-06-08 Thread Christoph Hellwig
By the time cell_pci_dma_dev_setup calls cell_dma_dev_setup no device can have the fixed map_ops set yet as it's only set by the set_dma_mask method. So move the setup for the fixed case to be only called in that place instead of indirecting through cell_dma_dev_setup. Signed-off-by: Christoph He

[PATCH 44/44] powerpc: merge __dma_set_mask into dma_set_mask

2017-06-08 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/dma-mapping.h | 1 - arch/powerpc/kernel/dma.c | 13 - 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/include/asm/dma-mapping.h b/arch/powerpc/include/asm/dma-mapping.h index 73a

[PATCH 43/44] dma-mapping: remove the set_dma_mask method

2017-06-08 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- arch/powerpc/kernel/dma.c | 4 include/linux/dma-mapping.h | 6 -- 2 files changed, 10 deletions(-) diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c index 41c749586bd2..466c9f07b288 100644 --- a/arch/powerpc/kernel/dma.c +++ b/arc

[PATCH 42/44] powerpc/cell: use the dma_supported method for ops switching

2017-06-08 Thread Christoph Hellwig
Besides removing the last instance of the set_dma_mask method this also reduced the code duplication. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/cell/iommu.c | 25 + 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/platforms/cel

[PATCH 40/44] tile: remove dma_supported and mapping_error methods

2017-06-08 Thread Christoph Hellwig
These just duplicate the default behavior if no method is provided. Signed-off-by: Christoph Hellwig --- arch/tile/kernel/pci-dma.c | 30 -- 1 file changed, 30 deletions(-) diff --git a/arch/tile/kernel/pci-dma.c b/arch/tile/kernel/pci-dma.c index 569bb6dd154a..f2abe

[PATCH 37/44] mips/loongson64: implement ->dma_supported instead of ->set_dma_mask

2017-06-08 Thread Christoph Hellwig
Same behavior, less code duplication. Signed-off-by: Christoph Hellwig --- arch/mips/loongson64/common/dma-swiotlb.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/arch/mips/loongson64/common/dma-swiotlb.c b/arch/mips/loongson64/common/dma-swiotlb.c ind

[PATCH 39/44] xen-swiotlb: remove xen_swiotlb_set_dma_mask

2017-06-08 Thread Christoph Hellwig
This just duplicates the generic implementation. Signed-off-by: Christoph Hellwig --- drivers/xen/swiotlb-xen.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index c3a04b2d7532..82fc54f8eb77 100644 --- a/drivers/xen/swiotlb

[PATCH 35/44] x86: remove arch specific dma_supported implementation

2017-06-08 Thread Christoph Hellwig
And instead wire it up as method for all the dma_map_ops instances. Note that this also means the arch specific check will be fully instead of partially applied in the AMD iommu driver. Signed-off-by: Christoph Hellwig --- arch/x86/include/asm/dma-mapping.h | 3 --- arch/x86/include/asm/iommu.h

[PATCH 32/44] hexagon: remove the unused dma_is_consistent prototype

2017-06-08 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- arch/hexagon/include/asm/dma-mapping.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/hexagon/include/asm/dma-mapping.h b/arch/hexagon/include/asm/dma-mapping.h index 9c15cb5271a6..463dbc18f853 100644 --- a/arch/hexagon/include/asm/dma-mapping.h +++

Re: [PATCH v2] mfd: tps65217: Introduce dependency on CONFIG_OF

2017-06-08 Thread Enric Balletbo Serra
Hi Keerthy: 2017-06-08 12:46 GMT+02:00 Keerthy : > Currently the driver boots only via device tree hence add a > dependency on CONFIG_OF. This leaves with a bunch of unused code > so clean that up. > > Signed-off-by: Keerthy nit: I think will be good if you can also mention the change to the pro

[PATCH 33/44] openrisc: remove arch-specific dma_supported implementation

2017-06-08 Thread Christoph Hellwig
This implementation is simply bogus - hexagon only has a simple direct mapped DMA implementation and thus doesn't care about the address. Signed-off-by: Christoph Hellwig --- arch/openrisc/include/asm/dma-mapping.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/openrisc/include/a

[PATCH 34/44] arm: remove arch specific dma_supported implementation

2017-06-08 Thread Christoph Hellwig
And instead wire it up as method for all the dma_map_ops instances. Note that the code seems a little fishy for dmabounce and iommu, but for now I'd like to preserve the existing behavior 1:1. Signed-off-by: Christoph Hellwig --- arch/arm/common/dmabounce.c| 1 + arch/arm/include/asm/dm

[PATCH 30/44] dma-virt: remove dma_supported and mapping_error methods

2017-06-08 Thread Christoph Hellwig
These just duplicate the default behavior if no method is provided. Signed-off-by: Christoph Hellwig --- lib/dma-virt.c | 12 1 file changed, 12 deletions(-) diff --git a/lib/dma-virt.c b/lib/dma-virt.c index dcd4df1f7174..5c4f11329721 100644 --- a/lib/dma-virt.c +++ b/lib/dma-virt

[PATCH 26/44] dma-mapping: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
And update the documentation - dma_mapping_error has been supported everywhere for a long time. Signed-off-by: Christoph Hellwig --- Documentation/DMA-API-HOWTO.txt | 31 +-- include/linux/dma-mapping.h | 5 - 2 files changed, 5 insertions(+), 31 deletions(-)

[PATCH 29/44] dma-noop: remove dma_supported and mapping_error methods

2017-06-08 Thread Christoph Hellwig
These just duplicate the default behavior if no method is provided. Signed-off-by: Christoph Hellwig --- lib/dma-noop.c | 12 1 file changed, 12 deletions(-) diff --git a/lib/dma-noop.c b/lib/dma-noop.c index de26c8b68f34..643a074f139d 100644 --- a/lib/dma-noop.c +++ b/lib/dma-noop

[PATCH 27/44] sparc: remove leon_dma_ops

2017-06-08 Thread Christoph Hellwig
We can just use pci32_dma_ops. Btw, given that leon is 32-bit and appears to be PCI based, do even need the special case for it in get_arch_dma_ops at all? Signed-off-by: Christoph Hellwig --- arch/sparc/include/asm/dma-mapping.h | 3 +-- arch/sparc/kernel/ioport.c | 5 + 2 files

Re: [PATCH] irqchip/mips-gic: mark count and compare accessors notrace

2017-06-08 Thread Marcin Nowakowski
Hi Marc, On 08.06.2017 15:26, Marc Zyngier wrote: On Thu, Jun 08 2017 at 3:06:23 pm BST, Marcin Nowakowski wrote: gic_read_count(), gic_write_compare() and gic_write_cpu_compare() are often used in a sequence to update the compare register with a count value increased by a small offset. With

[PATCH 25/44] arm: implement ->mapping_error

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is going to go away, so don't rely on it. Signed-off-by: Christoph Hellwig --- arch/arm/common/dmabounce.c| 16 --- arch/arm/include/asm/dma-iommu.h | 2 ++ arch/arm/include/asm/dma-mapping.h | 1 - arch/arm/mm/dma-mapping.c | 41 ++

Re: [PATCH v2] ASoC: sgtl5000: add avc enable control

2017-06-08 Thread Mark Brown
On Tue, May 30, 2017 at 02:00:16PM +0200, Richard Leitner wrote: > + SOC_SINGLE("AVC Enable Switch", SGTL5000_DAP_AVC_CTRL, 0, 1, 0), This should just be AVC Switch. signature.asc Description: PGP signature

[PATCH 24/44] x86: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
All dma_map_ops instances now handle their errors through ->mapping_error. Signed-off-by: Christoph Hellwig --- arch/x86/include/asm/dma-mapping.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/include/asm/dma-mapping.h b/arch/x86/include/asm/dma-mapping.h index 08a0838b83fb..c35

Re: [PATCH 01/10] sched/deadline: track the active utilization

2017-06-08 Thread Steven Rostedt
On Thu, 8 Jun 2017 10:05:55 +0100 Juri Lelli wrote: > On 08/06/17 10:43, Luca Abeni wrote: > > On Thu, 8 Jun 2017 10:31:25 +0200 > > Ingo Molnar wrote: > > > > > * luca abeni wrote: > > > > > > > From: Luca Abeni > > > > > > > > Active utilization is defined as the total utilization of

[PATCH 22/44] x86/pci-nommu: implement ->mapping_error

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is going to go away, so don't rely on it. Signed-off-by: Christoph Hellwig --- arch/x86/kernel/pci-nommu.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/pci-nommu.c b/arch/x86/kernel/pci-nommu.c index a88952ef371c..085fe6ce4049 10064

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