Re: [PATCHv7 00/29] THP-enabled tmpfs/shmem using compound pages

2016-04-23 Thread Wincy Van
On Wed, Apr 20, 2016 at 1:07 AM, Andres Lagar-Cavilla wrote: > Andrea, we provide the, ahem, adjustments to > transparent_hugepage_adjust. Rest assured we aggressively use mmu > notifiers with no further changes required. > > As in: zero changes have been required in the lifetime (years) of > kvm+

Re: [PATCH v8 1/4] gadget: Introduce the usb charger framework

2016-04-23 Thread Baolin Wang
Hi Pavel, On 24 April 2016 at 03:53, Pavel Machek wrote: > Hi! > >> +/* >> + * Sysfs attributes: >> + * >> + * These sysfs attributes are used for showing and setting different type >> + * (SDP/DCP/CDP/ACA) chargers' current limitation. >> + */ >> +static ssize_t sdp_limit_show(struct device *dev

Re: [PATCH RFC 4/8] mtd: spi-nor: fix support of Dual (x-y-2) and Quad (x-y-4) SPI protocols

2016-04-23 Thread R, Vignesh
Hi Cyrille, On 4/13/2016 10:53 PM, Cyrille Pitchen wrote: [...] > + > +static int spi_nor_setup(struct spi_nor *nor, const struct flash_info *info, > + const struct spi_nor_basic_flash_parameter *params, > + const struct spi_nor_modes *modes) > +{ > +

Re: [RFC][PATCH v6 0/2] printk: Make printk() completely async

2016-04-23 Thread Sergey Senozhatsky
On (04/23/16 21:40), Pavel Machek wrote: [..] > > > The patch set is against next-20160321 > > > > > > the series in total has 3 patches: > > > - printk: Make printk() completely async > > > - printk: Make wake_up_klogd_work_func() async > > > - printk: make console_unlock() async > > > > > > per

[PATCH v2] mm: fix incorrect pfn passed to untrack_pfn() in remap_pfn_range()

2016-04-23 Thread Yongji Xie
We use generic hooks in remap_pfn_range() to help archs to track pfnmap regions. The code is something like: int remap_pfn_range() { ... track_pfn_remap(vma, &prot, pfn, addr, PAGE_ALIGN(size)); ... pfn -= addr >> PAGE_SHIFT; ... untrack_pfn(vma, pfn

Re: [RFC][PATCH v4 0/2] printk: Make printk() completely async

2016-04-23 Thread Sergey Senozhatsky
Hi, On (04/23/16 21:36), Pavel Machek wrote: > > The patch set is based on slightly updated Jan Kara's patches. > > > > This patch set makes printk() completely asynchronous: new messages > > are getting upended to the kernel printk buffer, but instead of 'direct' > > printing the actual print j

Re: [PATCH] mm: Fix incorrect pfn passed to untrack_pfn in remap_pfn_range

2016-04-23 Thread Yongji Xie
On 2016/4/23 2:38, Andrew Morton wrote: On Fri, 22 Apr 2016 18:31:28 +0800 Yongji Xie wrote: We used generic hooks in remap_pfn_range to help archs to track pfnmap regions. The code is something like: int remap_pfn_range() { ... track_pfn_remap(vma, &prot, pfn, addr, PAGE_ALIG

Re: [PATCH v6 10/10] clocksource: arm_arch_timer: Remove arch_timer_get_timecounter

2016-04-23 Thread Shanker Donthineni
On 04/11/2016 10:33 AM, Julien Grall wrote: > The only call of arch_timer_get_timecounter (in KVM) has been removed. > > Signed-off-by: Julien Grall > Acked-by: Christoffer Dall Tested-by: Shanker Donthineni Using the Qualcomm Technologies QDF2XXX server. -- Shanker Donthineni Qualcomm Tec

Re: [PATCH v6 09/10] KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables

2016-04-23 Thread Shanker Donthineni
Hi Julien, On 04/11/2016 10:32 AM, Julien Grall wrote: > Currently, the firmware tables are parsed 2 times: once in the GIC > drivers, the other time when initializing the vGIC. It means code > duplication and make more tedious to add the support for another > firmware table (like ACPI). > > Use

Re: [PATCH v2] lib: make sg_pool tristate instead of bool

2016-04-23 Thread Ming Lin
On Sat, Apr 23, 2016 at 7:44 PM, Paul Gortmaker wrote: > The recently added Kconfig controlling compilation of this code is: > > lib/Kconfig:config SG_POOL > lib/Kconfig:def_bool n > > ...meaning that it currently is not being built as a module by anyone, > and that tripped my audit looking fo

Re: [PATCH v6 08/10] KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables

2016-04-23 Thread Shanker Donthineni
On 04/11/2016 10:32 AM, Julien Grall wrote: > The firmware table is currently parsed by the virtual timer code in > order to retrieve the virtual timer interrupt. However, this is already > done by the arch timer driver. > > To avoid code duplication, use the newly function > arch_timer_get_kvm_i

Re: [PATCH v6 07/10] irqchip/gic-v3: Parse and export virtual GIC information

2016-04-23 Thread Shanker Donthineni
On 04/11/2016 10:32 AM, Julien Grall wrote: > Fill up the recently introduced gic_kvm_info with the hardware > information used for virtualization. > > Signed-off-by: Julien Grall > Cc: Thomas Gleixner > Cc: Jason Cooper > Cc: Marc Zyngier > Tested-by: Shanker Donthineni Using the Qualcomm

Re: [PATCH v6 06/10] irqchip/gic-v3: Gather all ACPI specific data in a single structure

2016-04-23 Thread Shanker Donthineni
On 04/11/2016 10:32 AM, Julien Grall wrote: > The ACPI code requires to use global variables in order to collect > information from the tables. > > To make clear those variables are ACPI specific, gather all of them in a > single structure. > > Furthermore, even if some of the variables are not m

Re: [PATCH v6 04/10] irqchip/gic-v2: Parse and export virtual GIC information

2016-04-23 Thread Shanker Donthineni
On 04/11/2016 10:32 AM, Julien Grall wrote: > For now, the firmware tables are parsed 2 times: once in the GIC > drivers, the other timer when initializing the vGIC. It means code > duplication and make more tedious to add the support for another > firmware table (like ACPI). > > Introduce a new

Re: [PATCH v6 03/10] irqchip/gic-v2: Gather ACPI specific data in a single structure

2016-04-23 Thread Shanker Donthineni
On 04/11/2016 10:32 AM, Julien Grall wrote: > The ACPI code requires to use global variables in order to collect > information from the tables. > > For now, a single global variable is used, but more will be added in a > subsequent patch. To make clear they are ACPI specific, gather all the > inf

Re: [PATCH v6 02/10] clocksource: arm_arch_timer: Extend arch_timer_kvm_info to get the virtual IRQ

2016-04-23 Thread Shanker Donthineni
On 04/11/2016 10:32 AM, Julien Grall wrote: > Currently, the firmware table is parsed by the virtual timer code in > order to retrieve the virtual timer interrupt. However, this is already > done by the arch timer driver. > > To avoid code duplication, extend arch_timer_kvm_info to get the virtua

Re: [PATCH v6 01/10] clocksource: arm_arch_timer: Gather KVM specific information in a structure

2016-04-23 Thread Shanker Donthineni
On 04/11/2016 10:32 AM, Julien Grall wrote: > Introduce a structure which are filled up by the arch timer driver and > used by the virtual timer in KVM. > > The first member of this structure will be the timecounter. More members > will be added later. > > A stub for the new helper isn't introduc

[PATCH v2] lib: make sg_pool tristate instead of bool

2016-04-23 Thread Paul Gortmaker
The recently added Kconfig controlling compilation of this code is: lib/Kconfig:config SG_POOL lib/Kconfig:def_bool n ...meaning that it currently is not being built as a module by anyone, and that tripped my audit looking for modular code that is essentially orphaned (i.e. module_exit, and .

Re: random(4) changes

2016-04-23 Thread Theodore Ts'o
On Fri, Apr 22, 2016 at 06:27:48PM -0400, Sandy Harris wrote: > > I really like Stephan's idea of simplifying the interrupt handling, > replacing the multiple entropy-gathering calls in the current driver > with one routine called for all interrupts. See section 1.2 of his > doc. That seems to me

[PATCH] ALSA: intel_hda - Add dock support for ThinkPad X260

2016-04-23 Thread Conrad Kostecki
Hi! My shiny new ThinkPad X260 is the same way affected, as older ThinkPad (X*40, X*50) generations. That means, I am unable to get sound output, when I am using the Lenovo CES 2013 docking station series (basic, pro, ultra). It can be fixed the same way, as it was already done for X240 and X2

Re: [RFC] The Linux Scheduler: a Decade of Wasted Cores Report

2016-04-23 Thread Brendan Gregg
On Sat, Apr 23, 2016 at 11:20 AM, Jeff Merkey wrote: > > Interesting read. > > http://www.ece.ubc.ca/~sasha/papers/eurosys16-final29.pdf > > "... The Linux kernel scheduler has deficiencies that prevent a > multicore system from making proper use of all cores for heavily > multithreaded loads, acc

Re: [PATCH net-next 0/9] netlink: align attributes when needed (patchset #1)

2016-04-23 Thread David Miller
From: Nicolas Dichtel Date: Fri, 22 Apr 2016 17:31:15 +0200 > This is the continuation of the work done to align netlink attributes > when these attributes contain some 64-bit fields. > > David, if the third patch is too big (or maybe the series), I can split it. > Just tell me what you prefer.

Re: [PATCH] unicore32: mm: Add missing parameter to arch_vma_access_permitted

2016-04-23 Thread Guenter Roeck
ping ... still not upstream. On 03/21/2016 04:20 AM, Guenter Roeck wrote: unicore32 fails to compile with the following errors. mm/memory.c: In function ‘__handle_mm_fault’: mm/memory.c:3381: error: too many arguments to function ‘arch_vma_access_permitted’ mm/gup.c: In function ‘check_

Re: Major KVM issues with kernel 4.5 on the host

2016-04-23 Thread Borislav Petkov
On Sat, Apr 23, 2016 at 08:43:41PM +0200, Marc Haber wrote: > Uncorrectable errors would still be identified by the ECC hardware, Not if the hardware decides to syncflood so that we don't even get to run the #MC handler... > and the box wouldn't be perfectly fine with an "old" kernel. Maybe the

Re: [PATCH v5 00/10] Support for Cortex-M Prototyping System

2016-04-23 Thread Arnd Bergmann
On Friday 01 April 2016, Vladimir Murzin wrote: > Hi, > > This patch series provides the basic support for running ucLinux on V2M-MPS2 > platform. > > With these patches applied ucLinux can be run on both HW and FVP models > with Cortex-M3/M4/M7 configurations. > > Board description: > > http:/

[RFC PATCH 01/11] thermal: prevent zones with no types to be registered

2016-04-23 Thread Eduardo Valentin
There are APIs that rely on tz->type. This patch prevent thermal zones without it to be registered. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 16 1 file changed, 8 insertions(

[RFC PATCH 03/11] thermal: group device_create_file() calls that are always created

2016-04-23 Thread Eduardo Valentin
Simple code reorganization to group files that are always created when registering a thermal zone. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 24 1 file changed, 12 ins

[RFC PATCH 06/11] thermal: move mode attribute to tz->device.groups

2016-04-23 Thread Eduardo Valentin
Moving mode attribute to tz->device.groups requires the implementation of a .is_visible() callback. The condition returned by .is_visible() of the mode attribute group is kept the same, we allow the attribute to be visible only if ops->get_mode() is set by the thermal driver. Cc: Zhang Rui Cc: li

[RFC PATCH 05/11] thermal: move emul_temp creation to tz->device.groups

2016-04-23 Thread Eduardo Valentin
emul_temp creation is dependent on a compile time condition. Moving to tz->device.groups. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions

[RFC PATCH 08/11] thermal: move power actor code out of sysfs I/F section

2016-04-23 Thread Eduardo Valentin
Simply reorganize code to keep only functions of sysfs interface of thermal zone device together. Therefore, move the power actor code out of the sysfs I/F section. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/th

[RFC PATCH 07/11] thermal: move passive attr to tz->device.groups

2016-04-23 Thread Eduardo Valentin
This patch moves the passive attribute to tz->device.groups. Moving the passive attribute also requires a .is_visible() callback implementation for its attribute group. The logic behind the visibility of passive attribute is kept the same. We only expose the passive attribute if the thermal driver

[RFC PATCH 10/11] thermal: create tz->device.groups dynamically

2016-04-23 Thread Eduardo Valentin
This is a patch to allow adding groups created dynamically. For now we create only the existing group. However, this is a preparation to allow creating trip groups, which are determined only when the number of trips are known at runtime. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel

[RFC PATCH 09/11] thermal: move the trip attrs to the tz sysfs I/F section

2016-04-23 Thread Eduardo Valentin
Code reorganization to keep all the sysfs I/F of a thermal zone in the same section. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 218 - 1 file changed, 10

[RFC PATCH 11/11] thermal: move trips attributes to tz->device.groups

2016-04-23 Thread Eduardo Valentin
Finally, move the last thermal zone sysfs attributes to tz->device.groups: trips attributes. This requires adding a attribute_group to thermal_zone_device, creating it dynamically, and then setting all trips attributes in it. The trips attribute is then added to the tz->device.groups. As the remov

[RFC PATCH 04/11] thermal: use dev.groups to manage always present tz attributes

2016-04-23 Thread Eduardo Valentin
Thermal zones attributes are all being created using device_create_file(). This has the disadvantage of making the code complicated and sometimes we may miss the cleanup of them. This patch starts to move the thermal zone sysfs attributes to the dev.groups, so Linux device core manage them for us.

[RFC PATCH 00/11] thermal: sysfs rework

2016-04-23 Thread Eduardo Valentin
Hello Linux PM, Rui, This is a series of patches for review. In this series I am proposing to rework how we do sysfs, mainly for thermal zone attributes. Currently, as many features have been added recently, there are more than one way of attribute handling. This series is an attempt to standardi

[RFC PATCH 02/11] thermal: group thermal_zone DEVICE_ATTR's declarations

2016-04-23 Thread Eduardo Valentin
Simply reorganize the code to have all DEVICE_ATTR's in one point in the file. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions

Re: [PATCH v2] ARM: dts: artpec: update clock bindings in artpec6.dtsi

2016-04-23 Thread Arnd Bergmann
On Monday 14 March 2016, Lars Persson wrote: > The clock binding for the main clock controller was changed to an > indexed controller style binding on request of the clk > maintainers. This updates the dtsi to use the new bindings. > > Signed-off-by: Lars Persson > --- > v2: Use numerical clock i

[PATCH] RAID Cleanup for bio-split

2016-04-23 Thread Shaun Tancheff
It looks like some minor changes slipped through on the RAID. A couple of checks for REQ_PREFLUSH flag should also check for bi_op matching REQ_OP_FLUSH. Wrappers for sync_page_io() are passed READ/WRITE but need to be passed REQ_OP_READ and REQ_OP_WRITE. Signed-off-by: Shaun Tancheff --- driv

Re: [PATCHv5 2/3] x86/vdso: add mremap hook to vm_special_mapping

2016-04-23 Thread kbuild test robot
Hi, [auto build test ERROR on v4.6-rc4] [cannot apply to tip/x86/core tip/x86/vdso next-20160422] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Dmitry-Safonov/x86-rename-is_-ia32-x32-_task-to

[GIT PULL] Thermal management updates for v4.6-rc5

2016-04-23 Thread Eduardo Valentin
Hello Linus, Here are a set of fixes on thermal subsystem. Please consider pulling from git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal fixes to receive Thermal Management updates for v4.6-rc5 with top-most a6f4850dbca66e46a73b8774e85aaf9fc0caf265: thermal: fix Me

Re: [PATCH] kvm: x86: make lapic hrtimer pinned

2016-04-23 Thread Wanpeng Li
2016-04-22 21:12 GMT+08:00 Luiz Capitulino : > On Fri, 22 Apr 2016 07:12:51 +0800 > Wanpeng Li wrote: > >> 2016-04-05 20:40 GMT+08:00 Luiz Capitulino : >> > On Tue, 5 Apr 2016 14:18:01 +0800 >> > Yang Zhang wrote: >> > >> >> On 2016/4/5 5:00, Rik van Riel wrote: >> >> > On Mon, 2016-04-04 at 16:4

4.5.x drm/i915/ + drm/drm_irq + drm/radeon & ACPI problems doing vga_switcheroo switching & getting EDID modes for laptop hybrid graphics with Intel IGC & Radeon Neptune 8970M

2016-04-23 Thread Jason Vas Dias
I have not so far been able to get my Radeon 8970M discrete graphics card with GPU to go into graphics mode under Linux 4.4.0+ ( tried 4.4.0, 4.5.0, 4.5.1, ...) on my Clevo KAPOK laptop x86_64 LFS system , which has : CPU : Intel(R) Core(TM) i7-4910MQ CPU @ 2.90GHz RAM: 16GB ; Disk: 1TB SATA +

Re: [PATCH v3] KVM: remove buggy vcpu id check on vcpu creation

2016-04-23 Thread Wanpeng Li
2016-04-22 21:07 GMT+08:00 Radim Krčmář : > 2016-04-22 09:40+0800, Wanpeng Li: >> 2016-04-21 23:29 GMT+08:00 Radim Krčmář : >>> x86 vcpu_id encodes APIC ID and APIC ID encodes CPU topology by >>> reserving blocks of bits for socket/core/thread, so if core or thread >>> count isn't a power of two, t

Re: WARNING: CPU: 1 PID: 1 at kernel/events/core.c:7825 perf_pmu_register+0x385/0x390

2016-04-23 Thread Peter Zijlstra
On Sat, Apr 23, 2016 at 03:03:22PM +0200, Borislav Petkov wrote: > Yo, > > did the fix for this go anywhere? I'm still seeing it on rc4+tip/master: > > [0.760493] AMD Power PMU detected > [0.760689] LVT offset 0 assigned for vector 0x400 > [0.761072] perf: AMD IBS detected (0x07ff

Re: [PATCH] kvm: x86: do not leak guest xcr0 into host interrupt handlers

2016-04-23 Thread Wanpeng Li
2016-04-23 1:21 GMT+08:00 David Matlack : > On Fri, Apr 22, 2016 at 12:30 AM, Wanpeng Li wrote: >> Hi Paolo and David, >> 2016-03-31 3:24 GMT+08:00 David Matlack : >>> >>> kernel_fpu_begin() saves the current fpu context. If this uses >>> XSAVE[OPT], it may leave the xsave area in an undesirable s

KREDIT

2016-04-23 Thread Metro Cash Loan
Willkommen bei ,Metro Cash Loan Das Unternehmen möchte Sie darüber informieren, die wir anbieten, alle Arten von Darlehen Zinssatz von 2.5% und diese Firma hat geholfen so viele Menschen mit Darlehen, also wenn Sie wissen, dass eine oder Sie finanzielle Hilfe brauchen Sie uns schicken eine

Re: [PATCH] generic syscalls: wire up preadv2 and pwritev2 syscalls

2016-04-23 Thread Arnd Bergmann
On Monday 11 April 2016 10:17:46 Andre Przywara wrote: > These new syscalls are implemented as generic code, so enable them for > architectures like arm64 which use the generic syscall table. > > Signed-off-by: Andre Przywara > I've forwarded it now as a pull request. Generally speaking, I'd mu

Re: [PATCH] iio: st_gyro: Add lsm9ds0-gyro support

2016-04-23 Thread Jonathan Cameron
On 19/04/16 13:02, Crestez Dan Leonard wrote: > This device has an identical interface to other supported sensors and the > patch > only adds IDs. > > Signed-off-by: Crestez Dan Leonard Applied to the togreg branch of iio.git - initially pushed out as testing for the autobuilders to play with it

Re: [RFC PATCH 3/3] Documentation: iio: Add IIO software devices docs

2016-04-23 Thread Jonathan Cameron
On 20/04/16 16:51, Daniel Baluta wrote: > On Wed, Apr 20, 2016 at 6:44 PM, Lars-Peter Clausen wrote: >> On 04/20/2016 05:45 PM, Daniel Baluta wrote: >> >>> + >>> +What:/config/iio/triggers/dummy >> >> s/triggers/devices > > :D, will fix in v2. Obviously, one problem of this RFC is

Re: [PATCH 8/8] writeback: throttle buffered writeback

2016-04-23 Thread Jens Axboe
On 04/23/2016 02:21 AM, xiakaixu wrote: diff --git a/block/blk-core.c b/block/blk-core.c index 40b57bf4852c..d941f69dfb4b 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -39,6 +39,7 @@ #include "blk.h" #include "blk-mq.h" +#include "blk-wb.h" EXPORT_TRACEPOINT_SYMBOL_GPL(block_bio

[GIT PULL] asm-generic: add new syscalls for 4.6

2016-04-23 Thread Arnd Bergmann
The following changes since commit c3b46c73264b03000d1e18b22f5caf63332547c9: Linux 4.6-rc4 (2016-04-17 19:13:32 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git tags/asm-generic-4.6 for you to fetch changes up to 987aedb5d6f6

Re: [PATCH] iio: inv_mpu6050: Add support for auxiliary I2C master

2016-04-23 Thread Jonathan Cameron
On 20/04/16 18:17, Crestez Dan Leonard wrote: > The MPU has an auxiliary I2C bus for connecting external > sensors. This bus has two operating modes: > * pass-through, which connects the primary and auxiliary busses > together. This is already supported via an i2c mux. > * I2C master mode, where th

Re: [patch] iio: light: apds9960: silence uninitialized variable warning

2016-04-23 Thread Jonathan Cameron
On 22/04/16 11:04, Dan Carpenter wrote: > It causes a static checker warning if we use "buf" on the failure path > so move that inside the if statement. > > Signed-off-by: Dan Carpenter Applied to the togreg branch of iio.git, Thanks, Jonathan > > diff --git a/drivers/iio/light/apds9960.c b/dr

uas: order 7 page allocation failure in init_tag_map()

2016-04-23 Thread Johannes Stezenbach
Hi, I bought a new backup disk which turned out to be UAS capable, but when I plugged it in I got an order 7 page allocation failure. My hunch is that the .can_queue = 65536 in drivers/usb/storage/uas.c is much too large. Maybe 256 would be a pratical value that matches the capabilities of existi

Re: sound: deadlock involving snd_hrtimer_callback

2016-04-23 Thread Takashi Iwai
On Sat, 23 Apr 2016 15:40:21 +0200, Dmitry Vyukov wrote: > > Hi Takashi, > > I've incorporated your hrtimer fixes (but also updated to > ddce192106e4f984123884f8e878f66ace94b573) and now I am seeing lots of > the following deadlock messages: > > > [ INFO: possible circular locking dependency de

Re: [PATCH 1/2] arm64: dts: uniphier: fix I2C nodes of PH1-LD20

2016-04-23 Thread Arnd Bergmann
On Friday 15 April 2016 19:30:46 Masahiro Yamada wrote: > The I2C hardware blocks on this SoC are connected as follows: > > I2C0: external connection > I2C1: external connection > I2C2: internal connection > I2C3: external connection > I2C4: external connection > I2C5: internal connect

Re: [PATCH v8 1/4] gadget: Introduce the usb charger framework

2016-04-23 Thread Pavel Machek
Hi! > +/* > + * Sysfs attributes: > + * > + * These sysfs attributes are used for showing and setting different type > + * (SDP/DCP/CDP/ACA) chargers' current limitation. > + */ > +static ssize_t sdp_limit_show(struct device *dev, > + struct device_attribute *attr, > +

Re: Proposal for Anti-Keystroke Fingerprinting at the Input Driver Level

2016-04-23 Thread Pavel Machek
On Wed 2016-03-23 23:40:49, ban...@openmailbox.org wrote: > == Attack Description == > > Keystroke fingerprinting works by measuring how long keys are pressed and > the time between presses. Its very high accuracy poses a serious threat to > anonymous users.[1] > > This tracking technology has be

Re: [PATCH] x86/boot: Rename overlapping memcpy() to memmove()

2016-04-23 Thread Kees Cook
On Sat, Apr 23, 2016 at 4:08 AM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> --- a/arch/x86/boot/compressed/string.c >> +++ b/arch/x86/boot/compressed/string.c >> @@ -1,7 +1,13 @@ >> +/* >> + * This provides an optimized implementation of memcpy, and a simplified >> + * implementation of memse

Re: qemu:beagle no longer booting with omap2plus_defconfig in -next

2016-04-23 Thread Boris Brezillon
Hi Guenter, On Sat, 23 Apr 2016 10:53:06 -0700 Guenter Roeck wrote: > Hi, > > since next-20160421, I get the following error and hang when trying to boot > an omap2plus_defconfig image with qemu, machine 'beagle' and omap3-beagle.dtb. > multi_v7_defconfig still works, as does machine 'beaglexm'

Re: [PATCH v1 00/23] ata: sata_dwc_460ex: make it working again

2016-04-23 Thread Christian Lamparter
On Saturday, April 23, 2016 11:44:09 AM Julian Margetson wrote: > On 4/23/2016 8:02 AM, Julian Margetson wrote: > > On 4/22/2016 7:06 AM, Christian Lamparter wrote: > >> On Friday, April 22, 2016 06:50:44 AM Julian Margetson wrote: > >>> On 4/21/2016 4:25 PM, Christian Lamparter wrote: > On Th

Re: [RFC][PATCH v6 0/2] printk: Make printk() completely async

2016-04-23 Thread Pavel Machek
On Tue 2016-03-22 07:49:48, Jan Kara wrote: > Hi, > > On Tue 22-03-16 02:25:28, Sergey Senozhatsky wrote: > > The patch set is based on slightly updated Jan Kara's patches. > > > > This patch set makes printk() completely asynchronous: new messages > > are getting upended to the kernel printk bu

Re: [RFC][PATCH v4 0/2] printk: Make printk() completely async

2016-04-23 Thread Pavel Machek
On Mon 2016-03-14 23:13:38, Sergey Senozhatsky wrote: > Hello, > > RFC > > The patch set is based on slightly updated Jan Kara's patches. > > This patch set makes printk() completely asynchronous: new messages > are getting upended to the kernel printk buffer, but instead of 'direct' > printin

[PATCH v3 1/7] block, dax: pass blk_dax_ctl through to drivers

2016-04-23 Thread Vishal Verma
From: Dan Williams This is in preparation for doing badblocks checking against the requested sector range in the driver. Currently we opportunistically return as much data that can be "dax'd" starting at the given sector. When errors are present we want to limit that range to the first encounter

[PATCH v3 2/7] dax: fallback from pmd to pte on error

2016-04-23 Thread Vishal Verma
From: Dan Williams In preparation for consulting a badblocks list in pmem_direct_access(), teach dax_pmd_fault() to fallback rather than fail immediately upon encountering an error. The thought being that reducing the span of the dax request may avoid the error region. Signed-off-by: Dan Willia

[PATCH v3 5/7] dax: handle media errors in dax_do_io

2016-04-23 Thread Vishal Verma
dax_do_io (called for read() or write() for a dax file system) may fail in the presence of bad blocks or media errors. Since we expect that a write should clear media errors on nvdimms, make dax_do_io fall back to the direct_IO path, which will send down a bio to the driver, which can then attempt

[PATCH v3 4/7] dax: use sb_issue_zerout instead of calling dax_clear_sectors

2016-04-23 Thread Vishal Verma
From: Matthew Wilcox dax_clear_sectors() cannot handle poisoned blocks. These must be zeroed using the BIO interface instead. Convert ext2 and XFS to use only sb_issue_zerout(). Signed-off-by: Matthew Wilcox [vishal: Also remove the dax_clear_sectors function entirely] Signed-off-by: Vishal V

[PATCH v3 7/7] dax: fix a comment in dax_zero_page_range and dax_truncate_page

2016-04-23 Thread Vishal Verma
The distinction between PAGE_SIZE and PAGE_CACHE_SIZE was removed in 09cbfea mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros The comments for the above functions described a distinction between those, that is now redundant, so remove those paragraphs Cc: Matthew Wilcox Cc: K

[PATCH v3 6/7] dax: for truncate/hole-punch, do zeroing through the driver if possible

2016-04-23 Thread Vishal Verma
In the truncate or hole-punch path in dax, we clear out sub-page ranges. If these sub-page ranges are sector aligned and sized, we can do the zeroing through the driver instead so that error-clearing is handled automatically. For sub-sector ranges, we still have to rely on clear_pmem and have the

[PATCH v3 3/7] dax: enable dax in the presence of known media errors (badblocks)

2016-04-23 Thread Vishal Verma
From: Dan Williams 1/ If a mapping overlaps a bad sector fail the request. 2/ Do not opportunistically report more dax-capable capacity than is requested when errors present. [vishal: fix a conflict with system RAM collision patches] Signed-off-by: Dan Williams --- block/ioctl.c |

[PATCH v3 0/7] dax: handling media errors

2016-04-23 Thread Vishal Verma
Until now, dax has been disabled if media errors were found on any device. This series attempts to address that. The first three patches from Dan re-enable dax even when media errors are present. The fourth patch from Matthew removes the zeroout path from dax entirely, making zeroout operations a

Re: Major KVM issues with kernel 4.5 on the host

2016-04-23 Thread Dr. David Alan Gilbert
* Marc Haber (mh+linux-ker...@zugschlus.de) wrote: > On Sat, Apr 23, 2016 at 06:04:29PM +0200, Borislav Petkov wrote: > > On Thu, Apr 21, 2016 at 10:04:33PM +0200, Marc Haber wrote: > > > Yes, but there are two symptoms. The VM either suffers file system > > > issues (garbage read from files, or an

[PATCH] scripts/decode_stacktrace.sh: handle symbols in modules

2016-04-23 Thread Konstantin Khlebnikov
Add third argument: path where script looks for file module.ko when decode module symbol "func+0x0ff/0x5153 [module]" into something like "func (foo/bar.c:123) module". Without argument or if file isn't found script prints such symbols as is without decoding. Signed-off-by: Konstantin Khlebnikov

[PATCH 3/3] module: Disable MODULE_FORCE_LOAD when MODULE_SIG_FORCE is enabled

2016-04-23 Thread Ben Hutchings
Force-loading now fails if signature enforcement is enabled, so if signature enforcement is statically enabled then we may as well disable it completely. Signed-off-by: Ben Hutchings --- init/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/init/Kconfig b/init/Kconfig index e0d2616243

[PATCH 1/3] module: Invalidate signatures on force-loaded modules

2016-04-23 Thread Ben Hutchings
Signing a module should only make it trusted by the specific kernel it was built for, not anything else. Loading a signed module meant for a kernel with a different ABI could have interesting effects. Therefore, treat all signatures as invalid when a module is force-loaded. Signed-off-by: Ben Hut

[PATCH 2/3] Documentation/module-signing.txt: Note need for version info if reusing a key

2016-04-23 Thread Ben Hutchings
Signing a module should only make it trusted by the specific kernel it was built for, not anything else. If a module signing key is used for multiple ABI-incompatible kernels, the modules need to include enough version information to distinguish them. Signed-off-by: Ben Hutchings Cc: sta...@vger

[PATCH 0/3] Module signing and version info

2016-04-23 Thread Ben Hutchings
If a module signing key is used for multiple kernel builds, it is critical that the modules for each build can be distinguished. This series makes force-loading invalidate module signatures and documents the importance of module version info when reusing a key for multiple builds. Ben. Ben Hutchi

Re: Major KVM issues with kernel 4.5 on the host

2016-04-23 Thread Marc Haber
On Sat, Apr 23, 2016 at 06:04:29PM +0200, Borislav Petkov wrote: > On Thu, Apr 21, 2016 at 10:04:33PM +0200, Marc Haber wrote: > > Yes, but there are two symptoms. The VM either suffers file system > > issues (garbage read from files, or an aborted ext4 journal and > > following ro remount) or it s

[RFC] The Linux Scheduler: a Decade of Wasted Cores Report

2016-04-23 Thread Jeff Merkey
Interesting read. http://www.ece.ubc.ca/~sasha/papers/eurosys16-final29.pdf "... The Linux kernel scheduler has deficiencies that prevent a multicore system from making proper use of all cores for heavily multithreaded loads, according to a lecture and paper delivered earlier this month at the Eu

Re: [PATCH v2 5/5] dax: handle media errors in dax_do_io

2016-04-23 Thread Verma, Vishal L
On Wed, 2016-04-20 at 13:59 -0700, Christoph Hellwig wrote: > On Fri, Apr 15, 2016 at 12:11:36PM -0400, Jeff Moyer wrote: > > > > > > > > + if (IS_DAX(inode)) { > > > + ret = dax_do_io(iocb, inode, iter, offset, > > > blkdev_get_block, > > >   NULL, DIO_SKIP_DIO_CO

Re: [PATCH] of: iommu: make of_iommu_init() postcore_initcall_sync

2016-04-23 Thread Rich Felker
On Sat, Apr 23, 2016 at 05:33:07PM +0800, Kefeng Wang wrote: > The of_iommu_init() is called multiple times by arch code, > make it postcore_initcall_sync, then we can drop relevant > calls fully. > > Note, the IOMMUs should have a chance to perform some basic > initialisation before we start addi

qemu:beagle no longer booting with omap2plus_defconfig in -next

2016-04-23 Thread Guenter Roeck
Hi, since next-20160421, I get the following error and hang when trying to boot an omap2plus_defconfig image with qemu, machine 'beagle' and omap3-beagle.dtb. multi_v7_defconfig still works, as does machine 'beaglexm' with omap3-beagle-xm.dtb and omap2plus_defconfig. This is with Linaro's versio

Re: [PATCH 1/8] dt/bindings: firmware: Add Qualcomm SCM binding

2016-04-23 Thread Andy Gross
On Sat, Apr 23, 2016 at 11:56:50AM -0500, Rob Herring wrote: > On Fri, Apr 22, 2016 at 5:17 PM, Andy Gross wrote: > > This patch adds the device tree support for the Qualcomm SCM firmware. > > > > Signed-off-by: Andy Gross > > --- > > .../devicetree/bindings/firmware/qcom,scm.txt | 31 > >

Re: [PATCH net-next 2/9] libnl: nla_put_le64(): align on a 64-bit area

2016-04-23 Thread Alexander Aring
Hi, On 04/23/2016 07:05 PM, Alexander Aring wrote: ... > > if this is really needed, then nla_put_u64/be64/etc need to be changed also, Okay, I found PATCH 3/9 do it for be64, but what's about u64? - Alex

[PATCH v2] Enhance kvmconfig

2016-04-23 Thread Andrey Utkin
Dropped BALLOON entries as suggested by Borislav Petkov. Tested. This was tested only on Hetzner CX10 VPS. I don't know how recent KVM server stuff they use. Tests & reports from anybody else are appreciated. I guess some of added options may be not strictly necessary or make not that lot of sense

Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data

2016-04-23 Thread Frank Rowand
On 4/21/2016 1:42 PM, Andy Shevchenko wrote: > On Thu, Apr 21, 2016 at 4:00 AM, Frank Rowand wrote: >> On 4/20/2016 9:48 AM, Frank Rowand wrote: < snip > >> I'm not sure if the driver was in DMA or PIO mode, both >> before the change and after. This seems like a rather >> important question to

[PATCH 2/2] tty: serial: msm_serial add info message

2016-04-23 Thread Frank Rowand
From: Frank Rowand Failure to enable DMA by the msm_serial driver is silent. Add a message to report the failure. Signed-off-by: Frank Rowand --- drivers/tty/serial/msm_serial.c |1 + 1 file changed, 1 insertion(+) Index: b/drivers/tty/serial/msm_serial.c =

Re: [PATCH 8/8] cpufreq: hisilicon: Use generic platdev driver

2016-04-23 Thread Leo Yan
On Thu, Apr 21, 2016 at 02:13:54PM +0530, Viresh Kumar wrote: > The cpufreq-dt-platdev driver supports creation of cpufreq-dt platform > device now, reuse that and remove similar code from platform code. > > Cc: Leo Yan > Signed-off-by: Viresh Kumar Have tested this patch on Hikey, it works wel

[PATCH 1/2] tty: serial: msm_serial regression fix data corruption

2016-04-23 Thread Frank Rowand
From: Frank Rowand Commit 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") regression. The calculation of tx_count was moved from the old msm_handle_tx(), now renamed msm_handle_tx_pio(), to the new msm_handle_tx(). The move left out one size test. The regression seen on the qcom-apq8074-d

[PATCH 0/2] tty: serial: msm_serial regression and add info message

2016-04-23 Thread Frank Rowand
Commit 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") resulted in dropped characters and invalid characters in pio mode. Fix the problem and add an additional information message that was important in diagnosing the problem (reporting that DMA mode was not enabled).

Re: 3.5.0: BUG: Bad page state in process Compositor pfn:16834f

2016-04-23 Thread Frederik Himpe
On za, 2016-04-16 at 16:29 -0400, Michal Hocko wrote: > On Sat 16-04-16 18:37:53, Frederik Himpe wrote: > > > >  > > Apr 16 20:21:53 piranha kernel: [27926.414148] BUG: Bad page state > > in process Compositor  pfn:16834f > > Apr 16 20:21:53 piranha kernel: [27926.414153] > > page:ea0005a0d3c0

Re: [PATCH net-next 2/9] libnl: nla_put_le64(): align on a 64-bit area

2016-04-23 Thread Alexander Aring
Hi, On 04/22/2016 06:51 PM, Eric Dumazet wrote: > On Fri, 2016-04-22 at 17:31 +0200, Nicolas Dichtel wrote: >> nla_data() is now aligned on a 64-bit area. >> >> Signed-off-by: Nicolas Dichtel >> --- >> include/net/netlink.h | 8 +--- >> include/net/nl802154.h| 6 ++ >> net/iee

Re: [PATCH 1/8] dt/bindings: firmware: Add Qualcomm SCM binding

2016-04-23 Thread Rob Herring
On Fri, Apr 22, 2016 at 5:17 PM, Andy Gross wrote: > This patch adds the device tree support for the Qualcomm SCM firmware. > > Signed-off-by: Andy Gross > --- > .../devicetree/bindings/firmware/qcom,scm.txt | 31 > ++ > 1 file changed, 31 insertions(+) > create mode 1

Re: [PATCH v2 2/2] hwmon: Add support for INA3221 Triple Current/Voltage Monitors

2016-04-23 Thread Guenter Roeck
On 04/19/2016 11:28 AM, Andrew F. Davis wrote: Add support for the the INA3221 26v capable, Triple channel, Bi-Directional, Zero-Drift, Low-/High-Side, Current/Voltage Monitor with I2C interface. Signed-off-by: Andrew F. Davis --- Documentation/hwmon/ina3221 | 35 drivers/hwmon/Kconfig

Re: [PATCH] Enhance kvmconfig

2016-04-23 Thread Borislav Petkov
On Sat, Apr 23, 2016 at 06:51:49PM +0300, Andrey Utkin wrote: > This was tested only on Hetzner CX10 VPS. > I don't know how recent KVM server stuff they use. > Tests & reports from anybody else are appreciated. > I guess some of added options may be not strictly necessary or make not > that lot of

Re: Major KVM issues with kernel 4.5 on the host

2016-04-23 Thread Borislav Petkov
On Thu, Apr 21, 2016 at 10:04:33PM +0200, Marc Haber wrote: > Yes, but there are two symptoms. The VM either suffers file system > issues (garbage read from files, or an aborted ext4 journal and > following ro remount) or it stops dead in its tracks. Stops dead? What does that mean exactly? Box is

[PATCH] Enhance kvmconfig

2016-04-23 Thread Andrey Utkin
This was tested only on Hetzner CX10 VPS. I don't know how recent KVM server stuff they use. Tests & reports from anybody else are appreciated. I guess some of added options may be not strictly necessary or make not that lot of sense as enabled by default, feel free to ask me to drop some and test

Re: [PATCH V6 09/13] pci, acpi: Support for ACPI based generic PCI host controller

2016-04-23 Thread Jon Masters
On 04/22/2016 10:40 AM, Jon Masters wrote: > On 04/21/2016 05:06 AM, Tomasz Nowicki wrote: >> On 20.04.2016 21:12, Jayachandran C wrote: >>> On Fri, Apr 15, 2016 at 10:36 PM, Tomasz Nowicki wrote: > This patch is heavily based on the updated version from Jayachandran C: https://lkml.org

Re: [PATCH 1/4] pnp: pnpbios: Add explicit X86_32 dependency to PNPBIOS

2016-04-23 Thread William Breathitt Gray
On Sat, Apr 23, 2016 at 01:51:19AM +0200, Rafael J. Wysocki wrote: >On 4/11/2016 3:25 PM, William Breathitt Gray wrote: >> The PNPBIOS driver requires preprocessor defines (located in >> include/asm/segment.h) only declared if the architecture is set to >> X86_32. If the architecture is set to X86_

  1   2   >