[RFC v5 0/9] CPU reclaiming for SCHED_DEADLINE

2017-03-23 Thread luca abeni
From: Luca Abeni Hi all, here is yet another version of the patchset implementing CPU reclaiming (using the GRUB algorithm[1]) for SCHED_DEADLINE. Basically, this feature allows SCHED_DEADLINE tasks to consume more than their reserved runtime, up to a maximum fraction of the CPU time (so that ot

[RFC v5 5/9] sched/deadline: do not reclaim the whole CPU bandwidth

2017-03-23 Thread luca abeni
From: Luca Abeni Original GRUB tends to reclaim 100% of the CPU time... And this allows a CPU hog to starve non-deadline tasks. To address this issue, allow the scheduler to reclaim only a specified fraction of CPU time. Signed-off-by: Luca Abeni Tested-by: Daniel Bristot de Oliveira --- kern

[RFC v5 7/9] sched/deadline: track the "total rq utilization" too

2017-03-23 Thread luca abeni
From: Luca Abeni The total rq utilization is defined as the sum of the utilisations of tasks that are "assigned" to a runqueue, independently from their state (TASK_RUNNING or blocked) Signed-off-by: Luca Abeni Signed-off-by: Claudio Scordino Tested-by: Daniel Bristot de Oliveira --- kernel/

[RFC v5 8/9] sched/deadline: base GRUB reclaiming on the inactive utilization

2017-03-23 Thread luca abeni
From: Luca Abeni Instead of decreasing the runtime as "dq = -Uact dt" (eventually divided by the maximum utilization available for deadline tasks), decrease it as "dq = -(1 - Uinact) dt", where Uinact is the "inactive utilization". In this way, the maximum fraction of CPU time that can be reclaim

[RFC v5 1/9] sched/deadline: track the active utilization

2017-03-23 Thread luca abeni
From: Luca Abeni Active utilization is defined as the total utilization of active (TASK_RUNNING) tasks queued on a runqueue. Hence, it is increased when a task wakes up and is decreased when a task blocks. When a task is migrated from CPUi to CPUj, immediately subtract the task's utilization fro

[RFC v5 4/9] sched/deadline: implement GRUB accounting

2017-03-23 Thread luca abeni
From: Luca Abeni According to the GRUB (Greedy Reclaimation of Unused Bandwidth) reclaiming algorithm, the runtime is not decreased as "dq = -dt", but as "dq = -Uact dt" (where Uact is the per-runqueue active utilization). Hence, this commit modifies the runtime accounting rule in update_curr_dl(

[RFC v5 6/9] sched/deadline: make GRUB a task's flag

2017-03-23 Thread luca abeni
From: Luca Abeni Signed-off-by: Luca Abeni Tested-by: Daniel Bristot de Oliveira --- include/uapi/linux/sched.h | 1 + kernel/sched/core.c| 3 ++- kernel/sched/deadline.c| 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/sched.h b/include/uap

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-23 Thread Dmitry Torokhov
On Thu, Mar 23, 2017 at 08:10:20PM +0100, Uwe Kleine-König wrote: > On Thu, Mar 23, 2017 at 08:44:41AM -0700, Dmitry Torokhov wrote: > > On Thu, Mar 23, 2017 at 07:43:25AM -0700, Dmitry Torokhov wrote: > > > On Thu, Mar 23, 2017 at 02:41:53PM +0100, Linus Walleij wrote: > > > > On Thu, Mar 23, 2017

Re: RAID array is gone, please help

2017-03-23 Thread Lennart Sorensen
On Thu, Mar 23, 2017 at 08:38:08PM +0100, Stephen Mueller wrote: > Apologies, I should have started this on linux-raid... > > > stephen@fred> sudo gdisk -l /dev/sdc > GPT fdisk (gdisk) version 1.0.1 > > Partition table scan: > MBR: protective > BSD: not present > APM: not present > GPT:

Re: [PATCH v4 1/4] pinctrl: rockchip: remove unnecessary locking

2017-03-23 Thread Heiko Stübner
Am Donnerstag, 23. März 2017, 13:29:10 CET schrieb Julia Cartwright: > On Thu, Mar 23, 2017 at 06:55:50PM +0100, Heiko St?bner wrote: > > Am Donnerstag, 23. März 2017, 17:51:53 CET schrieb John Keeping: > > > On Thu, 23 Mar 2017 11:10:20 -0500, Julia Cartwright wrote: > [..] > > > > > [..] > > > >

Re: [PATCH] qedf: fix wrong le16 conversion

2017-03-23 Thread Martin K. Petersen
David Miller writes: >> Dave: Since you queued the firmware patch, mind taking this fix through >> your tree? > > Ok, applied to net-next, thanks. Great, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: RAID array is gone, please help

2017-03-23 Thread Stephen Mueller
OK, I used gdisk to remove the GPT and MBR from each disk. mdadm --assemble still doesn't work... says it can't find the superblock. The mdadm --examine commands also say that no superblock is detected. I guess I'll go ahead with --create... On 3/23/2017 20:59, Lennart Sorensen wrote: On Thu,

Re: [PATCH V2] i2c: tegra-bpmp: Enable Tegra BPMP I2C adapter

2017-03-23 Thread Wolfram Sang
On Thu, Mar 23, 2017 at 11:56:56AM +, Jon Hunter wrote: > Enable the Tegra BPMP I2C adapter by default if the Tegra BPMP itself > is enabled. This adapter is used as the I2C interface for the PMIC on > the Tegra186 Jetson-TX2 platform. > > Signed-off-by: Jon Hunter > Acked-by: Thierry Reding

Re: [PATCH v1 4/8] gpio: acpi: Even more tighten up ACPI GPIO lookups

2017-03-23 Thread Dmitry Torokhov
On Thu, Mar 23, 2017 at 09:46:14PM +0200, Andy Shevchenko wrote: > The commit 10cf4899f8af ("gpiolib: tighten up ACPI legacy gpio lookups") > prevents to getting same resource twice if the driver asks twice using same s/same/different/ > connection ID. > > But the whole idea of fallback might br

Re: [PATCH v1 2/8] gpio: acpi: Align acpi_find_gpio() with DT version

2017-03-23 Thread Dmitry Torokhov
On Thu, Mar 23, 2017 at 09:46:12PM +0200, Andy Shevchenko wrote: > By some reason acpi_find_gpio() and acpi_gpio_count() have compared connection > ID to "gpios" when tries to check if suffix is needed or not. > > Don't do any assumptions about what connection ID can be and, when defined, > use >

Re: [PATCH v5 1/4] syscalls: Restore address limit after a syscall

2017-03-23 Thread Kees Cook
On Thu, Mar 23, 2017 at 10:25 AM, Thomas Garnier wrote: > This patch ensures a syscall does not return to user-mode with a kernel > address limit. If that happened, a process can corrupt kernel-mode > memory and elevate privileges. > > For example, it would mitigation this bug: > > - https://bugs.

Re: [RFT PATCH 5/6] pinctrl: meson: use gpio-ranges from DT

2017-03-23 Thread Martin Blumenstingl
Hi Neil, On Thu, Mar 23, 2017 at 5:27 PM, Neil Armstrong wrote: > When trying to add a gpio-hog, we enter a weird loop where the gpio-ranges > is needed when gpiochip_add_data() is called but in the current implementation > the ranges are added from the driver afterwards. > > A simple solution is

Re: [PATCH 3/5] i2c: i2c-stm32f7: add driver

2017-03-23 Thread Wolfram Sang
On Fri, Mar 17, 2017 at 10:58:56AM +0100, M'boumba Cedric Madianga wrote: > This patch adds initial support for the STM32F7 I2C controller. > > Signed-off-by: M'boumba Cedric Madianga So, the STM32F7 has a new I2C IP core compared to STM32F4? signature.asc Description: PGP signature

Re: [PATCH v1 3/8] gpio: acpi: Do sanity check for GpioInt in acpi_find_gpio()

2017-03-23 Thread Dmitry Torokhov
On Thu, Mar 23, 2017 at 09:46:13PM +0200, Andy Shevchenko wrote: > Check that we don't ask for output direction on GpioInt resource in cases with > or without _DSD defined. > > Signed-off-by: Andy Shevchenko Reviewed-by: Dmitry Torokhov > --- > drivers/gpio/gpiolib-acpi.c | 10 +- > 1

[PATCH] ACPI / gpio: do not fall back to parsing _CRS when we get a deferral

2017-03-23 Thread Dmitry Torokhov
If, while locating GPIOs by name, we get probe deferral, we should immediately report it to caller rather than trying to fall back to parsing unnamed GPIOs from _CRS block. Signed-off-by: Dmitry Torokhov --- drivers/gpio/gpiolib-acpi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) di

Re: [PATCH 01/46] selinux: Use kmalloc_array() in cond_init_bool_indexes()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 9:56 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 10:48:28 +0100 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function

Re: [PATCH] hwmon: asus_atk0110.c fix uninitialized data access

2017-03-23 Thread Guenter Roeck
On Thu, Mar 23, 2017 at 04:03:11PM +0100, Arnd Bergmann wrote: > The latest gcc-7 snapshot adds a warning to point out that when > atk_read_value_old or atk_read_value_new fails, we copy > uninitialized data into sensor->cached_value: > > drivers/hwmon/asus_atk0110.c: In function 'atk_input_show':

Re: [PATCH 02/46] selinux: Delete an unnecessary return statement in cond_compute_av()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 9:58 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 11:00:23 +0100 > > The script "checkpatch.pl" pointed information out like the following. > > WARNING: void function return statements are not generally useful > > Thus remove such a statemen

Re: [PATCH 00/13] Add HD44780 Character LCD support

2017-03-23 Thread Geert Uytterhoeven
Hi Willy, On Thu, Mar 23, 2017 at 8:03 PM, Willy TARREAU wrote: > On Thu, Mar 23, 2017 at 07:49:53PM +0100, Geert Uytterhoeven wrote: >> I take it you're using v1 of the patchset? >> >> v2 had this change: >> >> - Move backlight mutex initialization before call to >> charlcd_init_display(),

Re: [PATCH v1 6/8] gpio: acpi: Explain how to get GPIO descriptors in ACPI case

2017-03-23 Thread Dmitry Torokhov
On Thu, Mar 23, 2017 at 09:46:16PM +0200, Andy Shevchenko wrote: > Documentation lacks of explanation how we actually use device properties > for GPIO resources. > > Add a section to the documentation about that. > > Suggested-by: Mika Westerberg > Signed-off-by: Andy Shevchenko > --- > Docume

Re: [PATCH 03/46] selinux: Improve size determinations in four functions

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:00 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 11:22:12 +0100 > > Replace the specification of data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safe

Re: [PATCH 1/3] perf/x86: add sysfs entry to freeze counter on SMI

2017-03-23 Thread Peter Zijlstra
On Thu, Mar 23, 2017 at 11:25:49AM -0700, kan.li...@intel.com wrote: > From: Kan Liang > > When setting FREEZE_WHILE_SMM bit in IA32_DEBUGCTL, all performance > counters will be effected. There is no way to do per-counter freeze > on smi. So it should not use the per-event interface (e.g. ioctl o

[PATCH] lkdtm: add bad USER_DS test

2017-03-23 Thread Kees Cook
This adds CORRUPT_USER_DS to check that the get_fs() test on syscall return still sees USER_DS during the new VERIFY_PRE_USERMODE_STATE checks. Signed-off-by: Kees Cook --- drivers/misc/lkdtm.h | 1 + drivers/misc/lkdtm_bugs.c | 20 drivers/misc/lkdtm_core.c | 1 + 3

Re: security, hugetlbfs: write to user memory in hugetlbfs_destroy_inode

2017-03-23 Thread Mike Kravetz
On 03/23/2017 06:49 AM, Tetsuo Handa wrote: > Dmitry Vyukov wrote: >> On Thu, Mar 23, 2017 at 2:06 PM, Dmitry Vyukov wrote: >>> Hello, >>> >>> I've got the following report while running syzkaller fuzzer on >>> 093b995e3b55a0ae0670226ddfcb05bfbf0099ae. Note the preceding injected >>> kmalloc failu

Re: [PATCH v5 2/4] x86/syscalls: Specific usage of verify_pre_usermode_state

2017-03-23 Thread Thomas Garnier
On Thu, Mar 23, 2017 at 10:25 AM, Thomas Garnier wrote: > Implement specific usage of verify_pre_usermode_state for user-mode > returns for x86. Signed-off-by: Thomas Garnier Not sure why it was not there anymore. -- Thomas

Re: [PATCH v5 4/4] arm64/syscalls: Specific usage of verify_pre_usermode_state

2017-03-23 Thread Thomas Garnier
On Thu, Mar 23, 2017 at 10:25 AM, Thomas Garnier wrote: > Implement specific usage of verify_pre_usermode_state for user-mode > returns for arm64. Signed-off-by: Thomas Garnier Not sure why it was not there anymore. -- Thomas

Re: [PATCH 1/2] leds: Add driver for Qualcomm LPG

2017-03-23 Thread Pavel Machek
Hi! > The Light Pulse Generator (LPG) is a PWM-block found in a wide range of > PMICs from Qualcomm. It can operate on fixed parameters or based on a > lookup-table, altering the duty cycle over time - which provides the > means for e.g. hardware assisted transitions of LED brightness. Ok, this i

Re: [PATCH v5 3/4] arm/syscalls: Specific usage of verify_pre_usermode_state

2017-03-23 Thread Thomas Garnier
On Thu, Mar 23, 2017 at 10:25 AM, Thomas Garnier wrote: > Implement specific usage of verify_pre_usermode_state for user-mode > returns for arm. Signed-off-by: Thomas Garnier Not sure why it was not there anymore. -- Thomas

Re: [PATCH 05/46] selinux: Adjust four checks for null pointers

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:02 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 12:36:59 +0100 > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > The script "checkpatch.pl" pointed information out like the following. > >

Re: crypto: out-of-bounds write in pre_crypt

2017-03-23 Thread Eric Biggers
Hi Dmitry, On Thu, Mar 23, 2017 at 11:51:30AM +0100, Dmitry Vyukov wrote: > Hello, > > I've got the following report while running syzkaller fuzzer. > init_crypt ignores kmalloc failure, which later leads to out-of-bounds > writes in ptr_crypt. On commit > 093b995e3b55a0ae0670226ddfcb05bfbf0099ae

Re: [PATCH 04/46] selinux: Use kmalloc_array() in hashtab_create()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:01 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 12:06:13 +0100 > > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "kma

Re: [PATCH 1/3] perf/x86: add sysfs entry to freeze counter on SMI

2017-03-23 Thread Peter Zijlstra
On Thu, Mar 23, 2017 at 11:25:49AM -0700, kan.li...@intel.com wrote: > + for_each_possible_cpu(cpu) { > + rdmsrl_on_cpu(cpu, MSR_IA32_DEBUGCTLMSR, &debugctlmsr); > + if (val) > + wrmsrl_on_cpu(cpu, MSR_IA32_DEBUGCTLMSR, debugctlmsr | > DEBUGCTLMSR_FR

Re: [PATCH 3/5] i2c: i2c-stm32f7: add driver

2017-03-23 Thread M'boumba Cedric Madianga
Hi Wolfram, Yes the STM32F7 has a new I2C IP core compared to STM32F4. The engine, the machine state are very different. I tried few months ago to write a common driver but it was very very difficilcut as the 2 IP are not so much things in common. BR, Cedric 2017-03-23 21:17 GMT+01:00 Wolfram Sa

Re: [PATCH v2] staging: lustre: Replace a bit shift by a use of BIT.

2017-03-23 Thread Dilger, Andreas
On Mar 22, 2017, at 09:53, Arushi Singhal wrote: > > This patch replaces bit shifting on 1 with the BIT(x) macro. > This was done with coccinelle: > @@ > constant c; > @@ > > -1 << c > +BIT(c) > > Signed-off-by: Arushi Singhal Reviewed-by: Andreas Dilger > --- > changes in v2 > - remove th

Re: [PATCH v2 02/14] i2c: mv64xxx: simplify optional reset handling

2017-03-23 Thread Wolfram Sang
On Wed, Mar 15, 2017 at 12:31:34PM +0100, Philipp Zabel wrote: > As of commit bb475230b8e5 ("reset: make optional functions really > optional"), the reset framework API calls use NULL pointers to describe > optional, non-present reset controls. > > This allows to return errors from devm_reset_cont

Re: [PATCH 3/5] i2c: i2c-stm32f7: add driver

2017-03-23 Thread Wolfram Sang
> Yes the STM32F7 has a new I2C IP core compared to STM32F4. > The engine, the machine state are very different. > I tried few months ago to write a common driver but it was very very > difficilcut as the 2 IP are not so much things in common. Good, thanks for the heads up! signature.asc Descr

[PATCH] crypto: xts,lrw - fix out-of-bounds write after kmalloc failure

2017-03-23 Thread Eric Biggers
From: Eric Biggers In the generic XTS and LRW algorithms, for input data > 128 bytes, a temporary buffer is allocated to hold the values to be XOR'ed with the data before and after encryption or decryption. If the allocation fails, the fixed-size buffer embedded in the request buffer is meant to

Re: [PATCH v2] KVM: kvm_io_bus_unregister_dev() should never fail

2017-03-23 Thread Marcelo Tosatti
On Thu, Mar 23, 2017 at 06:24:19PM +0100, David Hildenbrand wrote: > No caller currently checks the return value of > kvm_io_bus_unregister_dev(). This is evil, as all callers silently go on > freeing their device. A stale reference will remain in the io_bus, > getting at least used again, when the

Re: [PATCH v4 1/4] pinctrl: rockchip: remove unnecessary locking

2017-03-23 Thread Julia Cartwright
On Thu, Mar 23, 2017 at 09:01:43PM +0100, Heiko St?bner wrote: > Am Donnerstag, 23. März 2017, 13:29:10 CET schrieb Julia Cartwright: > > On Thu, Mar 23, 2017 at 06:55:50PM +0100, Heiko St?bner wrote: > > > Am Donnerstag, 23. März 2017, 17:51:53 CET schrieb John Keeping: > > > > On Thu, 23 Mar 2017

Re: [PATCH] staging: lustre: Replace a bit shift by a use of BIT.

2017-03-23 Thread Dilger, Andreas
On Mar 22, 2017, at 06:12, Dilger, Andreas wrote: > > On Mar 21, 2017, at 22:39, Arushi Singhal > wrote: >> >> This patch replaces bit shifting on 1 with the BIT(x) macro. >> This was done with coccinelle: [snip] >> diff --git a/drivers/staging/lustre/lnet/lnet/net_fault.c >> b/drivers/stagin

Re: Regression in i915 for 4.11-rc1 - bisected to commit 69df05e11ab8

2017-03-23 Thread Chris Wilson
On Thu, Mar 23, 2017 at 01:19:43PM -0500, Larry Finger wrote: > Since kernel 4.11-rc1, my desktop (Plasma5/KDE) has encountered > intermittent hangs with the following information in the logs: > > linux-4v1g.suse kernel: [drm] GPU HANG: ecode 7:0:0xf3ce, in > plasmashell [1283], reason: Hang o

Re: [RESEND PATCH v2] staging:speakup: Fix alignment with parenthesis.

2017-03-23 Thread Greg Kroah-Hartman
On Thu, Mar 23, 2017 at 07:15:38PM +0530, Arushi Singhal wrote: > Fix checkpatch issues: "CHECK: Alignment should match open parenthesis". > > Signed-off-by: Arushi Singhal I can't take patches sent in html format :( please fix your email client. thanks, greg k-h

RE: [PATCH 1/3] perf/x86: add sysfs entry to freeze counter on SMI

2017-03-23 Thread Liang, Kan
> On Thu, Mar 23, 2017 at 11:25:49AM -0700, kan.li...@intel.com wrote: > > From: Kan Liang > > > > When setting FREEZE_WHILE_SMM bit in IA32_DEBUGCTL, all > performance > > counters will be effected. There is no way to do per-counter freeze on > > smi. So it should not use the per-event interface

Re: [PATCH] i2c: thunderx: ACPI support for clock settings

2017-03-23 Thread Wolfram Sang
On Thu, Mar 02, 2017 at 11:34:07AM +0100, Jan Glauber wrote: > Add support for reading the system clock and the TWSI clock > frequency from ACPI DSDT. > > TWSI clock was already covered by using device_property_read(). > > Signed-off-by: Jan Glauber Applied to for-next, thanks! signature.asc

Re: [RFC][PATCH v3 2/2] cpufreq: schedutil: Avoid reducing frequency of busy CPUs prematurely

2017-03-23 Thread Sai Gurrappadi
On 03/23/2017 12:26 PM, Sai Gurrappadi wrote: > > Hm, sorry I am a bit confused perhaps you could help me understand the > problem/solution better :) > > Say we have the this simple case of only a single periodic task running on > one CPU, wouldn't the PELT update on wakeup cause a frequency

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-23 Thread Julia Cartwright
On Thu, Mar 23, 2017 at 10:26:49AM +, Lee Jones wrote: > On Thu, 23 Mar 2017, Lionel DEBIEVE wrote: > > > On 03/22/2017 07:47 PM, Julia Cartwright wrote: > > > On Wed, Mar 22, 2017 at 01:30:12PM -0500, Grygorii Strashko wrote: > > >> On 03/22/2017 01:01 PM, Steven Rostedt wrote: > > >>> On Wed

Re: [PATCH V2] hangcheck-timer: Fix typo in comment

2017-03-23 Thread Greg Kroah-Hartman
On Thu, Mar 23, 2017 at 02:02:58PM +, Zhang, Shile (Nokia - CN/Hangzhou) wrote: > Correct patch for the typo. > Sorry for I sent first patch w/o commit log and second patch with incorrect > fix. > Thanks! > Notes like this go below the --- line, if they are above, they end up in the cha

Re: [PATCH v2 0/8] thermal: ti-soc-thermal: Migrate slope/offset data to device tree

2017-03-23 Thread Tony Lindgren
* Keerthy [170321 20:45]: > > > On Thursday 09 March 2017 01:35 PM, Keerthy wrote: > > Currently the slope and offset values for calculating the > > hot spot temperature of a particular thermal zone is part > > of driver data. Pass them here instead and obtain the values > > while of node parsin

[BUG nohz]: wrong user and system time accounting

2017-03-23 Thread Luiz Capitulino
When there are two or more tasks executing in user-space and taking 100% of a nohz_full CPU, top reports 70% system time and 30% user time utilization. Sometimes I'm even able to get 100% system time and 0% user time. This was reproduced with latest Linus tree (093b995), but I don't believe it's

Re: [RFC PATCH 0/2] Add hstate parameter to huge_pte_offset()

2017-03-23 Thread Mike Kravetz
On 03/23/2017 05:58 AM, Punit Agrawal wrote: > On architectures that support hugepages composed of contiguous pte as > well as block entries at the same level in the page table, > huge_pte_offset() is not able to determine the right offset to return > when it encounters a swap entry (which is used

Re: [PATCH] jiffies.h: Declare jiffies and jiffies_64 with ____cacheline_aligned_in_smp

2017-03-23 Thread Grant Grundler
Ping? Any feedback on this patch? Is this in someone's queue for review? thanks, grant On Tue, Mar 14, 2017 at 12:40 PM, Matthias Kaehlcke wrote: > jiffies_64 is defined in kernel/time/timer.c with > cacheline_aligned_in_smp, > however this macro is not part of the declaration of jiffies an

Re: [RFC PATCH 1/1] nbd: replace kill_bdev() with __invalidate_device()

2017-03-23 Thread Ming Lin
On Thu, Mar 23, 2017 at 10:51 AM, Josef Bacik wrote: > Yeah I think this is ok, I’ll throw it on my queue for fixes for this cycle. > Thanks, Great. Thanks. > > Josef

Re: [PATCH v2 2/4] ARM: OMAP2+ hwmod: Allow modules to disable HW_AUTO

2017-03-23 Thread Tony Lindgren
* Roger Quadros [170317 02:00]: > From fe0a37d5e53381c3f79c6b6cf7915e44789f516f Mon Sep 17 00:00:00 2001 > From: Roger Quadros > Date: Tue, 7 Feb 2017 16:52:57 +0530 > Subject: [PATCH 2/4] ARM: OMAP2+ hwmod: Allow modules to disable HW_AUTO > > Introduce HWMOD_CLKDM_NOAUTO flag that allows the h

Re: [PATCH v2 0/4] ARM: dm8168-evm: add SATA support

2017-03-23 Thread Tony Lindgren
* Bartosz Golaszewski [170314 04:16]: > This series implements support for the on-board SATA controller > on the dm8168-evm board. > > The first patch adds the clock domain and hwmod entries for the > SATA module. > > The second patch models the external reference clock used by SATA. > > The th

Re: [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash

2017-03-23 Thread Tony Lindgren
* Franklin S Cooper Jr [170307 14:01]: > This patch set adds support for the on board SPI NOR flash on TI's AM335x > Industrial Communication Engine rev 2.x board. > > Franklin S Cooper Jr (1): > ARM: dts: am335x-icev2: Add SPI based NOR > > Sekhar Nori (1): > doc: dt: mtd: add w25q64 to lis

Re: RAID array is gone, please help

2017-03-23 Thread Lennart Sorensen
On Thu, Mar 23, 2017 at 09:09:39PM +0100, Stephen Mueller wrote: > OK, I used gdisk to remove the GPT and MBR from each disk. > mdadm --assemble still doesn't work... says it can't find the > superblock. The mdadm --examine commands also say that no > superblock is detected. Yes the GPT overwrite

Re: RAID array is gone, please help

2017-03-23 Thread Stephen Mueller
Looks like it worked! Thanks! I used: sudo mdadm --create /dev/md0 --assume-clean --verbose --level-10 --raid-devices=4 /dev/sdc /dev/sdd /dev/sde /dev/sdf And I got my instructions for creating the array here, and they also don't use partitions... https://www.digitalocean.com/community/tuto

Re: [RFC PATCH v4 15/28] Add support to access persistent memory in the clear

2017-03-23 Thread Tom Lendacky
On 3/17/2017 5:58 PM, Elliott, Robert (Persistent Memory) wrote: -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- ow...@vger.kernel.org] On Behalf Of Tom Lendacky Sent: Thursday, February 16, 2017 9:45 AM Subject: [RFC PATCH v4 15/28] Add support to acc

Re: [PATCH] phy: fix build error in phy-bcm-nsp-usb3 with COMPILE_TEST

2017-03-23 Thread Jon Mason
On Tue, Mar 07, 2017 at 12:43:52PM +0100, Tobias Regnery wrote: > I see the following build error with COMPILE_TEST on randconfig builds: > > divers/built-in.o: In function `nsp_usb3_phy_init': > phy-bcm-nsp-usb3.c:(.text+0x4050): undefined reference to `mdiobus_write' > phy-bcm-nsp-usb3.c:(.text+

[PATCH V5] perf: qcom: Add L3 cache PMU driver

2017-03-23 Thread Agustin Vega-Frias
This adds a new dynamic PMU to the Perf Events framework to program and control the L3 cache PMUs in some Qualcomm Technologies SOCs. The driver supports a distributed cache architecture where the overall cache for a socket is comprised of multiple slices each with its own PMU. Access to each indi

[PATCH 3/5] firmware: google memconsole: Add coreboot support

2017-03-23 Thread Thierry Escande
Coreboot (http://www.coreboot.org) allows to save the firmware console output in a memory buffer. With this patch, the address of this memory buffer is obtained from coreboot tables on x86 chromebook devices declaring an ACPI device with name matching GOOGCB00 or BOOT. If the memconsole-corebo

[PATCH 5/5] firmware: google memconsole: Add ARM/ARM64 support

2017-03-23 Thread Thierry Escande
This patch expands the Google firmware memory console driver to also work on certain tree based platforms running coreboot, such as ARM/ARM64 Chromebooks. This patch now adds another path to find the coreboot table through the device tree. In order to find that, a second level bootloader must have

[PATCH 4/5] firmware: Add coreboot device tree binding documentation

2017-03-23 Thread Thierry Escande
From: Julius Werner This patch adds documentation describing a device tree binding for the coreboot firmware. It is meant to be dynamically added during boot and contains address definitions for the coreboot table (a list of variable-sized descriptors providing information about various compile-

[PATCH 0/5] firmware: google memconsole

2017-03-23 Thread Thierry Escande
Hi, This series extends the Google memory console driver to work on x86 and ARM platforms running coreboot. The legacy x86 memconsole driver is now named memconsole-x86-legacy and a new driver named memconsole-coreboot is added. On coreboot devices and depending on the device architecture, the d

Re: [GIT PULL] phy: for 4.11 -rc cycle

2017-03-23 Thread Greg KH
On Wed, Mar 22, 2017 at 08:30:32PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the pull request for this -rc cycle below. > > The major change is removing USB3 PHY driver for Broadcom NSP merged > during the last merge window. It is found there already exists a PHY > driver (u

Re: [PATCH] crypto: xts,lrw - fix out-of-bounds write after kmalloc failure

2017-03-23 Thread David Miller
From: Eric Biggers Date: Thu, 23 Mar 2017 13:39:46 -0700 > From: Eric Biggers > > In the generic XTS and LRW algorithms, for input data > 128 bytes, a > temporary buffer is allocated to hold the values to be XOR'ed with the > data before and after encryption or decryption. If the allocation >

[PATCH 1/5] firmware: google memconsole: Remove useless submenu in Kconfig

2017-03-23 Thread Thierry Escande
This patch removes the "Google Firmware Drivers" menu containing a menuconfig entry with the exact same name. The menuconfig is now directly under the "Firmware Drivers" entry. Signed-off-by: Thierry Escande --- drivers/firmware/google/Kconfig | 7 +++ 1 file changed, 3 insertions(+), 4 dele

[PATCH 2/5] firmware: google memconsole: Move specific EBDA parts

2017-03-23 Thread Thierry Escande
This patch splits memconsole.c in 2 parts. One containing the architecture-independent part and the other one containing the EBDA specific part. This prepares the integration of coreboot support for the memconsole. The memconsole driver is now named as memconsole-x86-legacy. Signed-off-by: Thierr

Re: RAID array is gone, please help

2017-03-23 Thread Lennart Sorensen
On Thu, Mar 23, 2017 at 10:02:23PM +0100, Stephen Mueller wrote: > Looks like it worked! Thanks! Well at least you could backup the data, just in case. > I used: > > sudo mdadm --create /dev/md0 --assume-clean --verbose --level-10 > --raid-devices=4 /dev/sdc /dev/sdd /dev/sde /dev/sdf I wonder

Re: RAID array is gone, please help

2017-03-23 Thread Stephen Mueller
First I'm getting the data off the RAID... then I'm going to delete the whole thing again... create a new RAID using partitions... follow every step carefully... then once the new RAID array is there, I'll throw a bit of data on it, and then reboot and see if it's still there... if so, I'll repo

Re: [PATCH v3 2/2] drm/panel: add innolux,p079zca panel driver

2017-03-23 Thread Stéphane Marchesin
can you add bps here too? On Tue, Mar 21, 2017 at 6:53 PM, Chris Zhong wrote: > Support Innolux P079ZCA 7.85" 768x1024 TFT LCD panel, it is a MIPI DSI > panel. > > Signed-off-by: Chris Zhong > Reviewed-by: Sean Paul > Tested-by: Brian Norris > --- > > Changes in v3: > - printk err after regula

Re: [PATCH v3 1/2] module: verify address is read-only

2017-03-23 Thread Kees Cook
On Wed, Mar 22, 2017 at 7:55 PM, Eddie Kovsky wrote: > Implement a mechanism to check if a module's address is in > the rodata or ro_after_init sections. It mimics the exsiting functions > that test if an address is inside a module's text section. > > Functions that take a module as an argument wi

Re: [PATCH] backlight: pwm_bl: Fix GPIO out for unimplemented .get_direction()

2017-03-23 Thread Peter Ujfalusi
On 03/22/2017 07:21 PM, Geert Uytterhoeven wrote: Commit 7613c922315e308a ("backlight: pwm_bl: Move the checks for initial power state to a separate function") not just moved some code, but made slight changes in semantics. If a gpiochip doesn't implement the optional .get_direction() callback,

Re: [PATCH 06/46] selinux: Use kcalloc() in policydb_index()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:03 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 13:08:59 +0100 > > Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding function "kcalloc

Re: [PATCH V8 2/3] irq: Track the interrupt timings

2017-03-23 Thread Thomas Gleixner
On Thu, 23 Mar 2017, Nicolas Pitre wrote: > Is there a need for 64 bits of relative time stamps? > And 32 bits of IRQ number? No. > I'd say that 48 bit time stamp and 16 bit IRQ number is way sufficient. > Who cares if we mispredict an IRQ after 78 hours of idle time? > > Hence: > > u64 v

[PATCH 3/3] minitty: minimal TTY support replacement for serial ports

2017-03-23 Thread Nicolas Pitre
This is a minimal TTY layer replacement for embedded systems with limited capabilities. This supports only serial ports, supports only a subset of the default line discipline, and dispense with anything that is of no use for a small embedded system. Signed-off-by: Nicolas Pitre --- drivers/tty/K

[PATCH 1/3] console: move console_init() out of tty_io.c

2017-03-23 Thread Nicolas Pitre
All the console driver handling code lives in printk.c. Move console_init() there as well so console support can still be used when the TTY code is configured out. Signed-off-by: Nicolas Pitre --- drivers/tty/tty_io.c| 24 include/linux/console.h | 2 ++ include/lin

[PATCH 0/3] minitty: a minimal TTY layer alternative for embedded systems

2017-03-23 Thread Nicolas Pitre
Many embedded systems don't need the full TTY layer support. Most of the time, the TTY layer is only a conduit for outputting debugging messages over a serial port. The TTY layer also implements many features that are very unlikely to ever be used in such a setup. There is great potential for both

[PATCH 2/3] tty: move baudrate handling code to a file of its own

2017-03-23 Thread Nicolas Pitre
To allow reuse without the rest of the tty_ioctl code. Signed-off-by: Nicolas Pitre --- drivers/tty/Makefile | 2 +- drivers/tty/tty_baudrate.c | 232 + drivers/tty/tty_ioctl.c| 222 --- 3 files chang

Re: [PATCH v3 2/2] extable: verify address is read-only

2017-03-23 Thread Kees Cook
On Wed, Mar 22, 2017 at 7:55 PM, Eddie Kovsky wrote: > Provide a mechanism to check if the address of a variable is > const or ro_after_init. It mimics the existing functions that test if an > address is inside the kernel's text section. > > Other functions inside the kernel could then use this ca

Re: [PATCH 07/46] selinux: Delete unnecessary variable assignments in policydb_index()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:04 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 13:40:25 +0100 > > The local variable "rc" was reset with an error code up to five times > before a memory allocation failure was detected. > > Add a jump target so that this assignment will

Re: [BUG] 4.11.0-rc3 xterm hung in D state on exit, wchan is tty_release_struct

2017-03-23 Thread lkml
On Thu, Mar 23, 2017 at 11:57:22AM -0500, Rob Herring wrote: > On Thu, Mar 23, 2017 at 08:46:03AM -0500, Rob Herring wrote: > > On Thu, Mar 23, 2017 at 12:30:18AM -0700, l...@pengaru.com wrote: > > > On Wed, Mar 22, 2017 at 11:44:18PM -0700, l...@pengaru.com wrote: > > > > On Wed, Mar 22, 2017 at 0

Re: [PATCH v2 2/4] mvebu: xp: Add pwm properties to .dtsi files

2017-03-23 Thread Andrew Lunn
> Also could you refresh my mind to expose why these patchse were not > apply the first time and why we should apply them now? Hi Gregory Because i got busy with other things, and never spent the time needed to address the comments. Ralph has addressed all the comments from the original posting.

Re: [PATCH 08/46] selinux: Delete an unnecessary return statement in policydb_destroy()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:06 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 14:00:02 +0100 > > The script "checkpatch.pl" pointed information out like the following. > > WARNING: void function return statements are not generally useful > > Thus remove such a stateme

Re: Regression in i915 for 4.11-rc1 - bisected to commit 69df05e11ab8

2017-03-23 Thread Larry Finger
On 03/23/2017 03:44 PM, Chris Wilson wrote: On Thu, Mar 23, 2017 at 01:19:43PM -0500, Larry Finger wrote: Since kernel 4.11-rc1, my desktop (Plasma5/KDE) has encountered intermittent hangs with the following information in the logs: linux-4v1g.suse kernel: [drm] GPU HANG: ecode 7:0:0xf3ce,

Re: [PATCH] net: phy: handle state correctly in phy_stop_machine

2017-03-23 Thread David Miller
From: Zach Brown Date: Wed, 22 Mar 2017 15:27:01 -0500 > From: Nathan Sullivan > > If the PHY is halted on stop, then do not set the state to PHY_UP. This > ensures the phy will be restarted later in phy_start when the machine is > started again. > > Signed-off-by: Nathan Sullivan > Signed-o

Re: [PATCH 09/46] selinux: Delete an error message for a failed memory allocation in policydb_read()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:07 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 14:20:41 +0100 > > Omit an extra message for a memory allocation failure in this function. > > Link: > http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSa

Re: linux-next: manual merge of the char-misc tree with the tpmdd tree

2017-03-23 Thread Jarkko Sakkinen
On Wed, Mar 22, 2017 at 01:13:19PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the char-misc tree got a conflict in: > > drivers/char/tpm/tpm-chip.c > > between commit: > > d7a97c3e6592 ("tpm: Use the right clean up after cdev_add completes") I don't think this

[net-next PATCH v2 0/8] Add busy poll support for epoll

2017-03-23 Thread Alexander Duyck
This is my second pass at trying to add support for busy polling when using epoll. It is pretty much a full rewrite as I have made serious changes to most of the patches. In the v1 series I had submitted we only allowed epoll to make use of busy poll when all NAPI IDs were the same. I gave this so

[net-next PATCH v2 2/8] tcp: Record Rx hash and NAPI ID in tcp_child_process

2017-03-23 Thread Alexander Duyck
From: Alexander Duyck While working on some recent busy poll changes we found that child sockets were being instantiated without NAPI ID being set. In our first attempt to fix it, it was suggested that we should just pull programming the NAPI ID into the function itself since all callers will ne

[net-next PATCH v2 1/8] net: Busy polling should ignore sender CPUs

2017-03-23 Thread Alexander Duyck
From: Alexander Duyck This patch is a cleanup/fix for NAPI IDs following the changes that made it so that sender_cpu and napi_id were doing a better job of sharing the same location in the sk_buff. One issue I found is that we weren't validating the napi_id as being valid before we started tryin

[net-next PATCH v2 4/8] net: Change return type of sk_busy_loop from bool to void

2017-03-23 Thread Alexander Duyck
From: Alexander Duyck >From what I can tell there is only a couple spots where we are actually checking the return value of sk_busy_loop. As there are only a few consumers of that data, and the data being checked for can be replaced with a check for !skb_queue_empty() we might as well just pull t

[net-next PATCH v2 3/8] net: Only define skb_mark_napi_id in one spot instead of two

2017-03-23 Thread Alexander Duyck
From: Alexander Duyck Instead of defining two versions of skb_mark_napi_id I think it is more readable to just match the format of the sk_mark_napi_id functions and just wrap the contents of the function instead of defining two versions of the function. This way we can save a few lines of code s

[net-next PATCH v2 5/8] net: Track start of busy loop instead of when it should end

2017-03-23 Thread Alexander Duyck
From: Alexander Duyck This patch flips the logic we were using to determine if the busy polling has timed out. The main motivation for this is that we will need to support two different possible timeout values in the future and by recording the start time rather than when we would want to end we

[net-next PATCH v2 8/8] net: Introduce SO_INCOMING_NAPI_ID

2017-03-23 Thread Alexander Duyck
From: Sridhar Samudrala This socket option returns the NAPI ID associated with the queue on which the last frame is received. This information can be used by the apps to split the incoming flows among the threads based on the Rx queue on which they are received. If the NAPI ID actually represent

<    3   4   5   6   7   8   9   10   11   >