Re: [PATCH v4 2/2] x86/amd: Fixup cpu_core_id for family17h downcore configuration

2017-07-24 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 09:14:18PM +0700, Suravee Suthikulpanit wrote: > Actually, this is not totally accurate. My apology. This patch is > mainly fix to incorrect core ID in /proc/cpuinfo. So you're "fixing" only some numbering thing. Because core_id doesn't have any influence on anything. Here'

Re: [PATCH v2] KVM: LAPIC: Fix cancel preemption timer repeatedly due to preemption

2017-07-24 Thread Paolo Bonzini
On 24/07/2017 10:57, Wanpeng Li wrote: > From: Wanpeng Li > > Preemption can occur in the preemption timer expiration handler: > > CPU0CPU1 > > preemption timer vmexit > handle_preemption_timer(vCPU0) > kvm_lapic_expired_hv_timer > hv_timer_is_use ==

Re: [RFC/RFT PATCH] KVM: nVMX: fixes to nested virt interrupt injection

2017-07-24 Thread Wanpeng Li
2017-07-24 22:44 GMT+08:00 Paolo Bonzini : > On 24/07/2017 16:44, Wanpeng Li wrote: >>> Wanpeng, can you test this on the testcases you had for commit >>> d4912215d103 ("KVM: nVMX: Fix exception injection", 2017-06-05)? >> Yeah, I will try it tomorrow. :) >> >>> Also, do you

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-24 Thread Kani, Toshimitsu
On Sat, 2017-07-22 at 08:28 +0200, Borislav Petkov wrote: > On Fri, Jul 21, 2017 at 06:38:52PM +, Kani, Toshimitsu wrote: > > Enterprise platforms have very different model (I do not say it's > > better for everyone from the cost perspective).  Typically, such > > But you do tell your customer

Re: [PATCH v2 6/6] perf: ARM DynamIQ Shared Unit PMU support

2017-07-24 Thread Jonathan Cameron
On Mon, 24 Jul 2017 11:29:21 +0100 Suzuki K Poulose wrote: > Add support for the Cluster PMU part of the ARM DynamIQ Shared Unit (DSU). > The DSU integrates one or more cores with an L3 memory system, control > logic, and external interfaces to form a multicore cluster. The PMU > allows counting

Re: [PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-07-24 Thread Kirill A. Shutemov
On Mon, Jul 24, 2017 at 04:15:26PM +0200, Michal Hocko wrote: > On Mon 24-07-17 17:00:08, Kirill A. Shutemov wrote: > > On Mon, Jul 24, 2017 at 09:23:32AM +0200, Michal Hocko wrote: > > > From: Michal Hocko > > > > > > David has noticed that the oom killer might kill additional tasks while > > >

[PATCH 1/2] drm/edid: Add helper to detect whether EDID changed

2017-07-24 Thread Paul Kocialkowski
This adds a common drm helper to detect whether the EDID changed from the last known cached one. This is useful help detect that a monitor was changed during a suspend/resume cycle. When that happens (a monitor is replaced by another one during suspend), no hotplug event will be triggered so the c

[PATCH 2/2] drm/i915: Detect monitor change from EDID change after resume

2017-07-24 Thread Paul Kocialkowski
This introduces a dedicated work and related helpers to detect whether a monitor was replaced by another one during suspend. This detection is based on EDID change detection, using the associated generic drm helper. This requires storing more information to the intel_connector structure, such as t

[PATCH 4/4] gpio: tegra: Use unsigned int where possible

2017-07-24 Thread Thierry Reding
From: Thierry Reding In most of the cases, integers in this file can't be negative, so the type can be more restricted for clarity. Signed-off-by: Thierry Reding --- drivers/gpio/gpio-tegra.c | 57 --- 1 file changed, 24 insertions(+), 33 deletions(-

[PATCH 3/4] gpio: tegra: Fix checkpatch warnings

2017-07-24 Thread Thierry Reding
From: Thierry Reding Fix a couple of checkpatch warnings, such as complaints about bare unsigned being used (instead of unsigned int) and missing blank lines after declarations. Signed-off-by: Thierry Reding --- drivers/gpio/gpio-tegra.c | 32 1 file changed, 2

[PATCH 1/4] gpio: tegra: Remove unnecessary check

2017-07-24 Thread Thierry Reding
From: Thierry Reding of_device_get_match_data() can never return NULL, therefore the check for NULL values is unnecessary. Signed-off-by: Thierry Reding --- drivers/gpio/gpio-tegra.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/gpio/gpio-tegra.c b/dri

[PATCH 2/4] gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies

2017-07-24 Thread Thierry Reding
From: Thierry Reding Rather than manually compute the size of an array, pass the number and element size to kcalloc(). Signed-off-by: Thierry Reding --- drivers/gpio/gpio-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gp

[PATCH 1/7] gpio: Cleanup kerneldoc

2017-07-24 Thread Thierry Reding
From: Thierry Reding Some kerneldoc has become stale or wasn't quite correct from the outset. Fix up the most serious issues to silence warnings when building the documentation. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib.c | 82 + in

[PATCH 3/7] gpio: devres: Improve kerneldoc

2017-07-24 Thread Thierry Reding
From: Thierry Reding Add missing descriptions for some parameters to match the code. Signed-off-by: Thierry Reding --- drivers/gpio/devres.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpio/devres.c b/drivers/gpio/devres.c index a75511d1ea5d..afbff155a0ba 100644 --- a/driver

[PATCH 4/7] gpio: acpi: Fixup kerneldoc

2017-07-24 Thread Thierry Reding
From: Thierry Reding Fix up a parameter description to match the code and fix markup for a constant to prettify output. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib-acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gp

[PATCH 2/7] gpio: of: Improve kerneldoc

2017-07-24 Thread Thierry Reding
From: Thierry Reding Add descriptions for missing fields and fix up some parameter references to match the code. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib-of.c | 7 +++ include/linux/gpio/driver.h | 19 +++ 2 files changed, 22 insertions(+), 4 deletions(-)

[PATCH 5/7] gpio: sysfs: Fixup kerneldoc

2017-07-24 Thread Thierry Reding
From: Thierry Reding Fix up some references to parameters to match the code. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib-sysfs.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c index 16fe9742597b

[PATCH 6/7] docs: driver-api: Add GPIO section

2017-07-24 Thread Thierry Reding
From: Thierry Reding This adds a section about the various parts of the GPIO subsystem to the driver API documentation. Note that this isn't exhaustive documentation, but rather focusses on pulling in the kerneldoc from various sources, in order to improve coverage of kerneldoc processing. Signe

[PATCH 7/7] gpio: Use unsigned int for of_gpio_n_cells

2017-07-24 Thread Thierry Reding
From: Thierry Reding The cell count for GPIO specifiers can never be negative, so make the field unsigned. Signed-off-by: Thierry Reding --- include/linux/gpio/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h

Re: [PATCH 1/3] iio: adc: stm32: fix common clock rate

2017-07-24 Thread Jonathan Cameron
On Mon, 24 Jul 2017 09:43:18 +0200 Fabrice Gasnier wrote: > On 07/23/2017 12:51 PM, Jonathan Cameron wrote: > > On Tue, 18 Jul 2017 14:35:30 +0200 > > Fabrice Gasnier wrote: > > > >> Fixes commit 95e339b6e85d ("iio: adc: stm32: add support for STM32H7") > >> > >> Fix common clock rate used th

Re: [linux-sunxi] [PATCH 02/10] regulator: add support for SY8106A regulator

2017-07-24 Thread Mark Brown
On Mon, Jul 24, 2017 at 11:03:24AM +0800, Chen-Yu Tsai wrote: > On Sun, Jul 23, 2017 at 6:27 PM, Icenowy Zheng wrote: > > From: Ondrej Jirman > > > > SY8106A is an I2C attached single output regulator made by Silergy Corp, > > which is used on several Allwinner H3/H5 SBCs to control the power > >

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-24 Thread Josh Poimboeuf
On Fri, Jul 21, 2017 at 09:55:59AM -0400, Joe Lawrence wrote: > >>> I would do WARN() in klp_shadow_attach() when the variable > >>> already existed are return NULL. Of course it might be inoncent > >>> duplication. But it might mean that someone else is using another > >>> variable of the same nam

Re: [PATCH 2/3] dt-bindings: iio: adc: stm32: add optional min-sample-time

2017-07-24 Thread Jonathan Cameron
On Mon, 24 Jul 2017 09:55:37 +0200 Fabrice Gasnier wrote: > On 07/23/2017 12:53 PM, Jonathan Cameron wrote: > > On Tue, 18 Jul 2017 14:35:31 +0200 > > Fabrice Gasnier wrote: > > > >> STM32 ADC allows each channel to be sampled with a different sampling > >> time. There's an application note t

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-24 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 02:49:30PM +, Kani, Toshimitsu wrote: > We do not tell the error counts to customers. Please read what I said: do you tell your customers that the error counts they're seeing (or are *not* seeing) is bogus because the BIOS is hiding them? Not the *actual* numbers! > We

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-07-24 Thread Alex Williamson
On Sat, 22 Jul 2017 12:19:38 +0800 Ding Tianhong wrote: > Hi Sinan, Bjorn: > > On 2017/7/14 21:54, Sinan Kaya wrote: > > On 7/13/2017 9:26 PM, Ding Tianhong wrote: > >> There is no code to enable the PCIe Relaxed Ordering bit in the > >> configuration space, > >> it is only be enable by defau

Re: [PATCH 3/3] iio: adc: stm32: add optional min-sample-time

2017-07-24 Thread Jonathan Cameron
On Mon, 24 Jul 2017 10:16:00 +0200 Fabrice Gasnier wrote: > On 07/23/2017 01:00 PM, Jonathan Cameron wrote: > > On Tue, 18 Jul 2017 14:35:32 +0200 > > Fabrice Gasnier wrote: > > > >> STM32 ADC allows each channel to be sampled with a different sampling time, > >> by setting SMPR registers. Ba

Re: [PATCH v2] KVM: LAPIC: Fix cancel preemption timer repeatedly due to preemption

2017-07-24 Thread Wanpeng Li
2017-07-24 22:45 GMT+08:00 Paolo Bonzini : > On 24/07/2017 10:57, Wanpeng Li wrote: >> From: Wanpeng Li >> >> Preemption can occur in the preemption timer expiration handler: >> >> CPU0CPU1 >> >> preemption timer vmexit >> handle_preemption_timer(vCPU0) >> kvm

[PATCH v3 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices

2017-07-24 Thread Andrey Smirnov
Cc: cphe...@gmail.com Cc: Lucas Stach Cc: Nikita Yushchenko Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org Acked-for-MFD-by: Lee Jones Signed-off-by: Andrey Smirnov --- .../devicetree/bindings/mfd/zii,rave-sp.txt| 39 ++ 1 file changed, 39 inserti

[PATCH v3 0/2] ZII RAVE platform driver

2017-07-24 Thread Andrey Smirnov
Hi everyone, This patch series is v3 of the driver for supervisory processor found on RAVE series of devices from ZII. Supervisory processor is a PIC microcontroller connected to various electrical subsystems on RAVE devices whose firmware implements protocol to command/qery them. Changes since [

[PATCH v3 1/2] platform: Add driver for RAVE Supervisory Processor

2017-07-24 Thread Andrey Smirnov
Add a driver for RAVE Supervisory Processor, an MCU implementing varoius bits of housekeeping functionality (watchdoging, backlight control, LED control, etc) on RAVE family of products by Zodiac Inflight Innovations. This driver implementes core MFD/serdev device as well as communication subrouti

Re: [PATCH] MAINTAINERS: Remove dead greybus/timesync entry

2017-07-24 Thread Bryan O'Donoghue
On 24/07/17 12:27, Johan Hovold wrote: On Mon, Jul 24, 2017 at 11:05:49AM +0100, Bryan O'Donoghue wrote: commit bdfb95c4baab ("staging: greybus: remove timesync protocol support") commit 1e029b836108 ("staging: greybus: arche: remove timesync remains") Subtract timesync from greybus/staging but

Re: [PATCH v4 1/5] mm: add mkwrite param to vm_insert_mixed()

2017-07-24 Thread Ross Zwisler
On Mon, Jul 24, 2017 at 01:15:31PM +0200, Jan Kara wrote: > On Sat 22-07-17 09:21:31, Dan Williams wrote: > > On Fri, Jul 21, 2017 at 3:39 PM, Ross Zwisler > > wrote: > > > To be able to use the common 4k zero page in DAX we need to have our PTE > > > fault path look more like our PMD fault path w

Re: [PATCH v4 1/5] pwm-backlight: enable/disable the PWM before/after LCD enable toggle.

2017-07-24 Thread Daniel Thompson
On 21/07/17 11:48, Enric Balletbo i Serra wrote: Before this patch the enable signal was set before the PWM signal and vice-versa on power off. This sequence is wrong, at least, it is on the different panels datasheets that I checked, so I inverted the sequence to follow the specs. For reference

[PATCH] net: dsa: fixup fail to get tag in mtk_get_tag_protocol

2017-07-24 Thread sean.wang
From: Sean Wang dsa_is_cpu_port() checking ds->cpu_port_mask is not available in ds->ops->get_tag_protocol Since commit 14be36c2c96c ("net: dsa: Initialize all CPU and enabled ports masks in dsa_ds_parse()") So force returning DSA_TAG_PROTO_MTK inside mtk_get_tag_protocol call after that. Cc: F

Re: [PATCH v2 2/6] of: Add helper for mapping device node to logical CPU number

2017-07-24 Thread Suzuki K Poulose
Hi Marc, On 24/07/17 14:14, Marc Zyngier wrote: On 24/07/17 11:29, Suzuki K Poulose wrote: Add a helper to map a device node to a logical CPU number to avoid duplication. Currently this is open coded in different places (e.g gic-v3, coresight). The helper tries to map device node to a "possibl

Re: [PATCH 4/7] gpio: acpi: Fixup kerneldoc

2017-07-24 Thread Andy Shevchenko
On Mon, 2017-07-24 at 16:57 +0200, Thierry Reding wrote: > From: Thierry Reding > > Fix up a parameter description to match the code and fix markup for a > constant to prettify output. > Acked-by: Andy Shevchenko > Signed-off-by: Thierry Reding > --- >  drivers/gpio/gpiolib-acpi.c | 4 ++-- >

[PATCH] of/device: use of_property_for_each_string to parse compatible strings

2017-07-24 Thread Rob Herring
Instead of directly parsing the compatible property, use the of_property_for_each_string() helper to iterate over each compatible string. This reduces the LoC and makes the functions easier to understand. Signed-off-by: Rob Herring --- drivers/of/device.c | 66 +++

[PATCH] of/irq: use of_property_read_u32_index to parse interrupts property

2017-07-24 Thread Rob Herring
Convert the interrupts property parsing to use the OF property API instead of open coding the parsing of the raw property value. This saves a number of LoC, and the result is easier to read. Signed-off-by: Rob Herring --- drivers/of/irq.c | 34 +- 1 file changed,

Re: [PATCH] MAINTAINERS: Remove dead greybus/timesync entry

2017-07-24 Thread Joe Perches
On Mon, 2017-07-24 at 16:19 +0100, Bryan O'Donoghue wrote: > On 24/07/17 12:27, Johan Hovold wrote: > > On Mon, Jul 24, 2017 at 11:05:49AM +0100, Bryan O'Donoghue wrote: > > > commit bdfb95c4baab ("staging: greybus: remove timesync protocol support") > > > commit 1e029b836108 ("staging: greybus: ar

Re: [PATCH 2/2] ARM64: dts: marvell: add NAND support on the CP110 master

2017-07-24 Thread Gregory CLEMENT
Hi, On mer., juil. 19 2017, Gregory CLEMENT wrote: > The NAND controller used in A7K/A8K is present on the CP110 master > part. It is compatible with the pxa-nand driver. > > Unlike most of the controller on the CP110 this one is only present on > the master for the Armada 8K SoCs. Actually

Re: [PATCH] USB: musb: fix external abort on suspend

2017-07-24 Thread Johan Hovold
On Mon, Jul 24, 2017 at 10:38:41AM -0400, Alan Stern wrote: > On Mon, 24 Jul 2017, Johan Hovold wrote: > > > Make sure that the controller is runtime resumed when system suspending > > to avoid an external abort when accessing the interrupt registers: > > > > Unhandled fault: external abort on

Re: [PATCH v4 3/5] pwm-backlight: add support for PWM delays proprieties.

2017-07-24 Thread Daniel Thompson
On 21/07/17 11:48, Enric Balletbo i Serra wrote: Some panels (i.e. N116BGE-L41), in their power sequence specifications, request a delay between set the PWM signal and enable the backlight and between clear the PWM signal and disable the backlight. Add support for the new post-pwm-on-delay-ms and

Re: [PATCH v4 2/5] dt-bindings: pwm-backlight: add PWM delay proprieties.

2017-07-24 Thread Daniel Thompson
On 21/07/17 11:48, Enric Balletbo i Serra wrote: Hardware needs a delay between setting an initial (non-zero) PWM and enabling the backlight using GPIO. The post-pwm-on-delay-ms specifies this delay in milli seconds. Hardware also needs a delay between disabing the backlight using GPIO and settin

[PATCH] x86/mm/dump_pagetables: Speed up page tables dump for CONFIG_KASAN=y

2017-07-24 Thread Andrey Ryabinin
KASAN fills kernel page tables with repeated values to map several TBs of the virtual memory to the single kasan_zero_page: kasan_zero_p4d -> kasan_zero_pud -> kasan_zero_pmd-> kasan_zero_pte-> kasan_zero_page Walking the whole KASAN shadow range takes a l

Re: [PATCH v4 1/5] mm: add mkwrite param to vm_insert_mixed()

2017-07-24 Thread Ross Zwisler
On Mon, Jul 24, 2017 at 01:25:30PM +0200, Jan Kara wrote: > > @@ -1658,14 +1658,28 @@ static int insert_pfn(struct vm_area_struct *vma, > > unsigned long addr, > > if (!pte) > > goto out; > > retval = -EBUSY; > > - if (!pte_none(*pte)) > > - goto out_unlock; > > +

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-24 Thread Kani, Toshimitsu
On Mon, 2017-07-24 at 17:04 +0200, Borislav Petkov wrote: > On Mon, Jul 24, 2017 at 02:49:30PM +, Kani, Toshimitsu wrote: > > We do not tell the error counts to customers. > > Please read what I said: do you tell your customers that the error > counts they're seeing (or are *not* seeing) is bo

Re: [PATCH] tile: array underflow in setup_maxnodemem()

2017-07-24 Thread Chris Metcalf
On 7/22/2017 3:33 AM, Dan Carpenter wrote: My static checker correctly complains that we should have a lower bound on "node" to prevent an array underflow. Fixes: 867e359b97c9 ("arch/tile: core support for Tilera 32-bit chips.") Signed-off-by: Dan Carpenter Thanks, taken into the tile tree. -

Re: [PATCH] MAINTAINERS: Remove dead greybus/timesync entry

2017-07-24 Thread Bryan O'Donoghue
On 24/07/17 16:16, Joe Perches wrote: On Mon, 2017-07-24 at 16:19 +0100, Bryan O'Donoghue wrote: On 24/07/17 12:27, Johan Hovold wrote: On Mon, Jul 24, 2017 at 11:05:49AM +0100, Bryan O'Donoghue wrote: commit bdfb95c4baab ("staging: greybus: remove timesync protocol support") commit 1e029b8361

Re: [PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-07-24 Thread Michal Hocko
Dohh, the full conflict resolution didn't make it into the commit. The full patch is below --- >From be69b355a56649167dce901d24c2296ef3a3f7ec Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Mon, 24 Jul 2017 09:23:32 +0200 Subject: [PATCH] mm, oom: allow oom reaper to race with exit_mmap David h

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-07-24 Thread Thomas Gleixner
On Mon, 24 Jul 2017, Martin Peres wrote: > > I am contacting you because your patch "bf22ff45b genirq: Avoid unnecessary > low level irq function calls" broke suspend/resume on an old Intel platform. > > This was not caught in linux-next and only got introduced in linux 4.13-rc1. > > Here is the

Re: [PATCH] MAINTAINERS: Remove dead greybus/timesync entry

2017-07-24 Thread Joe Perches
On Mon, 2017-07-24 at 16:32 +0100, Bryan O'Donoghue wrote: > Ah yes I remember now, those are two separate patches. Anyway my greybus > filter caught your mail which is what prompted me to send this out, I > wasn't sure if you wanted others to clean up their own crap, or if you > wanted to yours

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-24 Thread Vivek Gautam
Hi, On Mon, Jul 17, 2017 at 5:58 PM, Sricharan R wrote: > Hi, > > On 7/17/2017 5:16 PM, Sricharan R wrote: >> Hi, >> >> On 7/15/2017 1:09 AM, Rob Clark wrote: >>> On Fri, Jul 14, 2017 at 3:36 PM, Will Deacon wrote: On Fri, Jul 14, 2017 at 03:34:42PM -0400, Rob Clark wrote: > On Fri, Jul

RE: [PATCH] cpufreq: intel_pstate: Fix cpuinfo_cur_freq after performance governor changes

2017-07-24 Thread Huaisheng HS1 Ye
Hi Rafael, Thanks for your reply. > On Monday, July 24, 2017 05:43:14 AM Huaisheng HS1 Ye wrote: > > After commit 82b4e03e01bc (intel_pstate: skip scheduler hook when in > > "performance" mode) Software P-state control modes couldn't get > > dynamic value during performance mode, > > Please expla

[PATCH] kbuild: Update example for ccflags-y usage

2017-07-24 Thread Sedat Dilek
From: Sedat Dilek The old example to describe ccflags-y usage is no more valid. Signed-off-by: Sedat Dilek --- Documentation/kbuild/makefiles.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt i

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-24 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 03:25:34PM +, Kani, Toshimitsu wrote: > Customers do not see error counts.  I do not think it's bogus. Not showing the real error error counts but something contrived is the definition of bogus numbers. But you're not showing anything - only when some thresholds are bei

Re: [PATCH] x86/mm/dump_pagetables: Speed up page tables dump for CONFIG_KASAN=y

2017-07-24 Thread Kirill A. Shutemov
On Mon, Jul 24, 2017 at 06:25:58PM +0300, Andrey Ryabinin wrote: > KASAN fills kernel page tables with repeated values to map several > TBs of the virtual memory to the single kasan_zero_page: > kasan_zero_p4d -> > kasan_zero_pud -> > kasan_zero_pmd-> > kasan_zero_pte-> >

Re: [PATCH v2] KVM: LAPIC: Fix cancel preemption timer repeatedly due to preemption

2017-07-24 Thread Paolo Bonzini
On 24/07/2017 17:08, Wanpeng Li wrote: > 2017-07-24 22:45 GMT+08:00 Paolo Bonzini : >> On 24/07/2017 10:57, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> Preemption can occur in the preemption timer expiration handler: >>> >>> CPU0CPU1 >>> >>> preemption timer vmex

[PATCH 0/3] lib/int_sqrt: Fix, optimize and document

2017-07-24 Thread Peter Zijlstra
Hi, Here are a few patches that should improve things lib/int_sqrt. As stated elsewhere; I'm looking at using int_sqrt() to calculate the stdev on a normal distribution and am expecting the input values to be smallish. In any case, these optimizations should work fine for large numbers too. And i

[PATCH 2/3] lib/int_sqrt: Optimize initial value compute

2017-07-24 Thread Peter Zijlstra
The initial value (@m) compute is: m = 1UL << (BITS_PER_LONG - 2); while (m > x) m >>= 2; Which is a linear search for the highest even bit smaller or equal to @x We can implement this using a binary search using __fls() (or better when its hardware implemented).

[PATCH 3/3] lib/int_sqrt: Adjust comments

2017-07-24 Thread Peter Zijlstra
Our current int_sqrt() is not rough nor any approximation; it calculates the exact value of: floor(sqrt()). Document this. Signed-off-by: Peter Zijlstra (Intel) --- lib/int_sqrt.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/lib/int_sqrt.c +++ b/lib/int_sqrt.c @@ -10,10 +1

[PATCH 1/3] lib/int_sqrt: Optimize small argument

2017-07-24 Thread Peter Zijlstra
The current int_sqrt() computation is sub-optimal for the case of small @x. In this case, the compute loop: while (m != 0) { b = y + m; y >>= 1; if (x >= b) { x -= b; y += m; }

Re: [PATCH v4 0/5] selftests: ftrace: ftracetest improvements

2017-07-24 Thread Shuah Khan
On 07/06/2017 06:58 PM, Masami Hiramatsu wrote: > Hello, > > Here is v4 of ftracetest improvements, including test > return code change and immediate logging features. > > This version just fixes a bug in [4/5] so that remove > unneeded backslash. > > Thank you, > > --- > > Masami Hiramatsu (5

Re: [PATCH] HID: ortek: add one more buggy device

2017-07-24 Thread Jiri Kosina
On Tue, 18 Jul 2017, Benjamin Tissoires wrote: > The iHome keypad also requires the same tweak we are doing for other > Ortek devices. Applied to for-4.13/upstream-fixes. Thanks, -- Jiri Kosina SUSE Labs

[PATCH 00/13] net: dsa: lan9303: unicast offload, fdb,mdb,STP

2017-07-24 Thread Egil Hjelmeland
This series extends the LAN9303 3 port switch DSA driver. Highlights: - Make the MDIO interface work - Bridging: Unicast offload - Bridging: Added fdb/mdb handling - Bridging: STP support - Documentation The last three patches are workarounds due to current kernel limitations. This is my fir

Re: [PATCH 3/9] firmware: arm_scmi: add basic driver infrastructure for SCMI

2017-07-24 Thread Jassi Brar
On Mon, Jul 24, 2017 at 3:20 PM, Sudeep Holla wrote: > > > On 08/07/17 06:32, Jassi Brar wrote: >> Hi Roy, Matt, Nishant, Harb Abdulhamid, Loc, >> >> I have a gut feeling you guys were part of the SCMI spec committee. If >> so, could you please chime in? >> > > I take complete silence as no object

[PATCH 01/13] net: dsa: lan9303: Fixed MDIO interface

2017-07-24 Thread Egil Hjelmeland
Fixes after testing on actual HW: - lan9303_mdio_write()/_read() must multiply register number by 4 to get offset - Indirect access (PMI) to phy register only work in I2C mode. In MDIO mode phy registers must be accessed directly. Introduced struct lan9303_phy_ops to handle the two modes. R

[PATCH 02/13] net: dsa: lan9303: Do not disable/enable switch fabric port 0 at startup

2017-07-24 Thread Egil Hjelmeland
For some mysterious reason enable switch fabric port 0 TX fails to work, when the TX has previous been disabled. Resolved by not disable/enable switch fabric port 0 at startup. Port 1 and 2 are still disabled in early init. Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 7 --

[PATCH 03/13] net: dsa: lan9303: Refactor lan9303_enable_packet_processing()

2017-07-24 Thread Egil Hjelmeland
lan9303_enable_packet_processing, lan9303_disable_packet_processing() Pass port number (0,1,2) as parameter instead of port offset. Simplify accordingly. Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 66 -- 1 file changed, 32 insertio

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-07-24 Thread Martin Peres
On 24/07/17 18:28, Thomas Gleixner wrote: On Mon, 24 Jul 2017, Martin Peres wrote: I am contacting you because your patch "bf22ff45b genirq: Avoid unnecessary low level irq function calls" broke suspend/resume on an old Intel platform. This was not caught in linux-next and only got introduced

Re: [PATCH 0/3] lib/int_sqrt: Fix, optimize and document

2017-07-24 Thread Joe Perches
On Mon, 2017-07-24 at 17:16 +0200, Peter Zijlstra wrote: > Here are a few patches that should improve things lib/int_sqrt. Thanks Peter.

[PATCH 05/13] net: dsa: added dsa_net_device_to_dsa_port()

2017-07-24 Thread Egil Hjelmeland
Allowing dsa drivers to attach sysfs nodes. Signed-off-by: Egil Hjelmeland --- include/net/dsa.h | 1 + net/dsa/slave.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/include/net/dsa.h b/include/net/dsa.h index 88da272d20d0..a71c0a2401ee 100644 --- a/include/net/dsa.h +++ b/

[PATCH 06/13] net: dsa: lan9303: added sysfs node swe_bcst_throt

2017-07-24 Thread Egil Hjelmeland
Allowing per-port access to Switch Engine Broadcast Throttling Register Also added lan9303_write_switch_reg_mask() Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 83 ++ 1 file changed, 83 insertions(+) diff --git a/drivers/net/dsa/la

[PATCH 07/13] net: dsa: lan9303: Added basic offloading of unicast traffic

2017-07-24 Thread Egil Hjelmeland
When both user ports are joined to the same bridge, the normal HW MAC learning is enabled. This means that unicast traffic is forwarded in HW. Support for STP is also added. If one of the user ports leave the bridge, the ports goes back to the initial separated operation. Added brigde methods por

[PATCH 09/13] net: dsa: lan9303: Added Documentation/networking/dsa/lan9303.txt

2017-07-24 Thread Egil Hjelmeland
Signed-off-by: Egil Hjelmeland --- Documentation/networking/dsa/lan9303.txt | 48 1 file changed, 48 insertions(+) create mode 100644 Documentation/networking/dsa/lan9303.txt diff --git a/Documentation/networking/dsa/lan9303.txt b/Documentation/networking/dsa/l

[PATCH 10/13] net: dsa: lan9303: Only allocate 3 ports

2017-07-24 Thread Egil Hjelmeland
Saving 2628 bytes. Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/lan9303-core.c index dc95973d62ed..ad7a4c72e1fb 100644 --- a/drivers/net/dsa/lan9303-core.c

Re: [PATCH v2 6/6] perf: ARM DynamIQ Shared Unit PMU support

2017-07-24 Thread Suzuki K Poulose
Hi Jonathan, On 24/07/17 15:50, Jonathan Cameron wrote: On Mon, 24 Jul 2017 11:29:21 +0100 Suzuki K Poulose wrote: Add support for the Cluster PMU part of the ARM DynamIQ Shared Unit (DSU). The DSU integrates one or more cores with an L3 memory system, control logic, and external interfaces

Re: [PATCH] MAINTAINERS: Remove dead greybus/timesync entry

2017-07-24 Thread Bryan O'Donoghue
On 24/07/17 16:31, Joe Perches wrote: On Mon, 2017-07-24 at 16:32 +0100, Bryan O'Donoghue wrote: Ah yes I remember now, those are two separate patches. Anyway my greybus filter caught your mail which is what prompted me to send this out, I wasn't sure if you wanted others to clean up their own c

[PATCH 12/13] net: dsa: lan9303: Added "stp_enable" sysfs attribute

2017-07-24 Thread Egil Hjelmeland
Must be set to 1 by user space when STP is used on the lan9303. If bridging without local STP, leave at 0, so external STP BPDUs are forwarded. Hopefully the kernel can be improved so the driver can handle this without user intervention, and this control can be removed. Signed-off-by: Egil Hjelme

[PATCH 13/13] net: dsa: lan9303: lan9303_port_mdb_del remove port 0

2017-07-24 Thread Egil Hjelmeland
Workaround for dsa_switch_mdb_add adding CPU port to group, but forgetting to remove it: Remove port 0 if only port 0 is only port left. Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/dsa/lan9303-cor

Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function

2017-07-24 Thread Harry Wentland
On 2017-07-24 10:06 AM, Ricardo Ribalda Delgado wrote: > Hi Harry > On Mon, Jul 24, 2017 at 4:01 PM, Harry Wentland > wrote: > >> >> This is used and needed by the DC display driver. See >> display/amdgpu_dm/amdgpu_dm_services.c:193 in Alex's amd-staging-4.11 tree: >> >> https://cgit.freedesktop

[PATCH 08/13] net: dsa: lan9303: Added ALR/fdb/mdb handling

2017-07-24 Thread Egil Hjelmeland
Added functions for accessing / managing the lan9303 ALR (Address Logic Resolution). Implemented DSA methods: set_addr, port_fast_age, port_fdb_prepare, port_fdb_add, port_fdb_del, port_fdb_dump, port_mdb_prepare, port_mdb_add and port_mdb_del. Since the lan9303 do not offer reading specific ALR

[PATCH 11/13] net: dsa: lan9303: Added "alr_dump" sysfs port attribute

2017-07-24 Thread Egil Hjelmeland
Added read only file /sys/class/net//lan9303/alr_dump, that output 168 first ALR entires. Currently "bridge fdb show" does not include the CPU port, while "alr_dump" list all three ports per entry. Example output: 9c:57:ad:79:d0:84 1 l 01:80:c2:00:00:00 0 s 00:13:cb:0d:01:95 0 s 10:f3:11:f

[PATCH 04/13] net: dsa: lan9303: Added adjust_link() method

2017-07-24 Thread Egil Hjelmeland
This makes the driver react to device tree "fixed-link" declaration on CPU port. - turn off autonegotiation - force speed 10 or 100 mb/s - force duplex mode Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 33 + 1 file changed, 33 insertions(+)

Re: [PATCH v5] printk: Add pr_info_show_time

2017-07-24 Thread Mark Salyzyn
On 07/22/2017 02:40 AM, Pavel Machek wrote: For example, the persistent clock that is used to report "Suspended for" message, although very useful, is not present on all platforms. It is currently standardized for millisecond precision. Fix that on your platforms, instead?

Re: [PATCH] gpio: mvebu: Fix cause computation in irq handler

2017-07-24 Thread Gregory CLEMENT
Hi Linus, On mer., juil. 12 2017, Gregory CLEMENT wrote: > When switching to regmap, the way to compute the irq cause was > reorganized. However while doing it, a typo was introduced: a 'xor' > replaced a 'and'. > > This lead to wrong behavior in the interrupt handler ans one of the > symptom

Re: [PATCH 2/3] thunderbold: use uuid_t instead of uuid_be

2017-07-24 Thread Christoph Hellwig
On Mon, Jul 24, 2017 at 12:28:59PM +0300, Mika Westerberg wrote: > On Thu, Jul 20, 2017 at 09:56:23AM +0200, Christoph Hellwig wrote: > > Switch thunderbolt to the new uuid type. > > > > Signed-off-by: Christoph Hellwig > > You have a typo in $subject: thunderbold -> thunderbolt. > > Otherwise

Re: [PATCH v1 4/6] vmbus: Switch to use new generic UUID API

2017-07-24 Thread Christoph Hellwig
On Wed, Jul 19, 2017 at 09:28:55PM +0300, Andy Shevchenko wrote: > There are new types and helpers that are supposed to be used in new code. > > As a preparation to get rid of legacy types and API functions do > the conversion here. Can you split the uapi changes into a separate patch? I'd love

Re: [PATCH v2 3/4] fs/dcache: Enable automatic pruning of negative dentries

2017-07-24 Thread Waiman Long
On 07/21/2017 07:07 PM, James Bottomley wrote: > On Fri, 2017-07-21 at 16:17 -0400, Waiman Long wrote: >> On 07/21/2017 03:30 PM, James Bottomley wrote: >>> On Fri, 2017-07-21 at 09:43 -0400, Waiman Long wrote: Having a limit for the number of negative dentries does have an undesirable si

Re: [PATCH v1 5/6] uuid: Kill uapi/uuid.h

2017-07-24 Thread Christoph Hellwig
> diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c > index 29d6699d5a06..1c68709123aa 100644 > --- a/scripts/mod/file2alias.c > +++ b/scripts/mod/file2alias.c > @@ -36,7 +36,7 @@ typedef uint16_t__u16; > typedef unsigned char__u8; > typedef struct { > __u8 b[16];

Re: [PATCH] x86/mm/dump_pagetables: Speed up page tables dump for CONFIG_KASAN=y

2017-07-24 Thread Andrey Ryabinin
On 07/24/2017 06:37 PM, Kirill A. Shutemov wrote: > On Mon, Jul 24, 2017 at 06:25:58PM +0300, Andrey Ryabinin wrote: >> KASAN fills kernel page tables with repeated values to map several >> TBs of the virtual memory to the single kasan_zero_page: >> kasan_zero_p4d -> >> kasan_zero_pud -> >>

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-24 Thread Kani, Toshimitsu
On Mon, 2017-07-24 at 17:37 +0200, Borislav Petkov wrote: > On Mon, Jul 24, 2017 at 03:25:34PM +, Kani, Toshimitsu wrote: : > > > We've been providing this model for many years now. > > Dude, relax, I'm only trying to point out to you that there are > customers who want to see *every* error

Re: [PATCH v3 0/4] A fix and a few new tests for kprobe tracer

2017-07-24 Thread Shuah Khan
On 07/09/2017 05:48 AM, Steven Rostedt wrote: > On Sat, 8 Jul 2017 00:27:29 +0530 > "Naveen N. Rao" wrote: > >> v2: >> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1434048.html >> >> Changes since v2: >> - Update tests to include additional scenarios and better error >> che

Re: [PATCH v4 1/5] mm: add mkwrite param to vm_insert_mixed()

2017-07-24 Thread Jan Kara
On Mon 24-07-17 09:23:57, Ross Zwisler wrote: > On Mon, Jul 24, 2017 at 01:25:30PM +0200, Jan Kara wrote: > > > @@ -1658,14 +1658,28 @@ static int insert_pfn(struct vm_area_struct *vma, > > > unsigned long addr, > > > if (!pte) > > > goto out; > > > retval = -EBUSY; > > > - if (!pte_

Re: [PATCH] of: return of_get_cpu_node from of_cpu_device_node_get if CPUs are not registered

2017-07-24 Thread Rob Herring
On Mon, Jul 24, 2017 at 8:55 AM, Sudeep Holla wrote: > Instead of the callsites choosing between of_cpu_device_node_get if the > CPUs are registered as of_node is populated by then and of_get_cpu_node > when the CPUs are not yet registered as CPU of_nodes are not yet stashed > thereby needing to p

Re: [PATCH 1/2] drm/edid: Add helper to detect whether EDID changed

2017-07-24 Thread Harry Wentland
On 2017-07-24 10:54 AM, Paul Kocialkowski wrote: > This adds a common drm helper to detect whether the EDID changed from > the last known cached one. This is useful help detect that a monitor was > changed during a suspend/resume cycle. > > When that happens (a monitor is replaced by another one d

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-24 Thread Mauro Carvalho Chehab
Em Mon, 24 Jul 2017 17:37:16 +0200 Borislav Petkov escreveu: > > Customers do not see error counts.  I do not think it's bogus. > > I am just trying to enable OS error reporting with ghes_edac. > > I know, you don't have to state the obvious constantly. The problem I see is that, currently,

Re: [PATCH v6] MIPS: NI 169445 board support

2017-07-24 Thread Rob Herring
On Tue, Jul 18, 2017 at 01:29:09PM -0500, Nathan Sullivan wrote: > Support the National Instruments 169445 board. > > Signed-off-by: Nathan Sullivan > --- > Changes since v5: > > - make device tree addresses on the internal bus relative, and compile with > W=2 to be sure they are in the right

[tip:x86/asm 8/13] arch/x86/kernel/alternative.o: warning: objtool: optimize_nops()+0x3a: unreachable instruction

2017-07-24 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/asm head: 9683a64fc3cb67e663859a6bb2e0db5dcee9ed32 commit: 76846bf3cb09e98881cb4908385a0e899716b01f [8/13] x86/asm: Add unwind hint annotations to sync_core() config: x86_64-randconfig-in0-07242041 (attached as .config) comp

Re: [PATCH] ARM64: meson-gxl: disable broken eee

2017-07-24 Thread Jerome Brunet
On Mon, 2017-07-24 at 14:26 +0200, Neil Armstrong wrote: > On 07/24/2017 02:06 PM, Neil Armstrong wrote: > > On 07/23/2017 07:03 PM, Joseph Kogut wrote: > > > Hi Kevin, > > > > > > I tested on a P212 reference board, which is currently the only GXL > > > based board I have. > > > > > > Before app

Re: [PATCH V2 2/2] pinctrl: qcom: spmi-gpio: Add dtest route for digital input

2017-07-24 Thread Rob Herring
On Wed, Jul 19, 2017 at 02:30:46PM +0800, fengl...@codeaurora.org wrote: > From: Fenglin Wu > > Add property "qcom,dtest-buffer" to specify which dtest rail to feed > when the pin is configured as a digital input. > > Signed-off-by: Fenglin Wu > --- > .../devicetree/bindings/pinctrl/qcom,pmic-

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