Re: [PATCH] s390/pci: Delete an unnecessary check before the function call "pci_dev_put"

2016-07-18 Thread Martin Schwidefsky
On Sat, 16 Jul 2016 20:40:23 +0200 SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 16 Jul 2016 20:15:17 +0200 > > The pci_dev_put() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected

Re: [RFC v2 13/13] lockdep: Add a document describing crossrelease feature

2016-07-18 Thread Byungchul Park
On Mon, Jul 18, 2016 at 10:39:19AM +0900, Byungchul Park wrote: > On Thu, Jul 07, 2016 at 06:30:03PM +0900, Byungchul Park wrote: > > Crossrelease feature introduces new concept and data structure. Thus > > the document is necessary. So added it. > > Any opinions about this suggestion? Just to be

[PATCH 06/10] iio: cros_ec_light_prox: add ChromeOS EC Light and Proximity Sensors

2016-07-18 Thread Enric Balletbo i Serra
Handle Light and Proximity sensors presented by the ChromeOS EC Sensor hub. Creates an IIO device for each functions. Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Serra --- drivers/iio/common/cros_ec_sensors/Kconfig | 9 + drivers/iio/common/cros_ec_sensors/Makefile

[PATCH 02/10] mfd: cros_ec: update MOTIONSENSE definitions and commands.

2016-07-18 Thread Enric Balletbo i Serra
Let's update the command header to include the definitions related to the sensors attached behind the ChromeOS Embedded Controller. The new commands and definitions allow us to get information from these sensors. Signed-off-by: Gwendal Grignou Signed-off-by: Enric Balletbo i Serra --- include/l

[PATCH 01/10] mfd: cros_ec: add ChromeOS EC sensor platform information.

2016-07-18 Thread Enric Balletbo i Serra
The platform information will be used for the new cros-ec sensors driver that presents sensors attached to the ChromeOS Embedded Controller. Signed-off-by: Gwendal Grignou Signed-off-by: Enric Balletbo i Serra --- include/linux/mfd/cros_ec.h | 10 ++ 1 file changed, 10 insertions(+) di

[PATCH 10/10] platform/chrome: cros_ec_dev - Register cros-ec sensors

2016-07-18 Thread Enric Balletbo i Serra
Check whether the ChromeOS Embedded Controller is a sensor hub and in such case issue a command to get the number of sensors and register them all. Signed-off-by: Gwendal Grignou Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_dev.c | 122 ++

[PATCH 00/10] Add support for cros-ec-sensors

2016-07-18 Thread Enric Balletbo i Serra
Hi, This is the first patchset to add support for the sensors behind the ChromeOS Embedded Controller. The first two patches needs to reviewed by Lee Jones as are MFD related, then there are six IIO patches for Jonathan Cameron and finally the last two patches are platform/chrome specific so are

[PATCH 07/10] iio: cros_ec_activity: add ChromeOS EC Activity Sensors

2016-07-18 Thread Enric Balletbo i Serra
Handle activity events detections presented by the ChromeOS EC Sensor hub. Activities can be simple (low/no motion) or more complex (riding train). They are being reported by physical devices or the EC itself. Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Serra --- drivers/iio/co

[PATCH 05/10] iio: cros_ec_sensors: add ChromeOS EC Contiguous Sensors driver

2016-07-18 Thread Enric Balletbo i Serra
Handle 3d contiguous sensors like Accelerometers, Gyroscope and Magnetometer that are presented by the ChromeOS EC Sensor hub. Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Serra --- drivers/iio/common/cros_ec_sensors/Kconfig | 8 + drivers/iio/common/cros_ec_sensors/Ma

[PATCH 09/10] platform/chrome: Introduce a new function to check EC features.

2016-07-18 Thread Enric Balletbo i Serra
From: Vincent Palatin Use the EC_CMD_GET_FEATURES message to check the supported features for each MCU. Signed-off-by: Vincent Palatin [tomeu: adapted to changes in mainline] Signed-off-by: Tomeu Vizoso [enric: remove references to USB PD feature and do it more generic] Signed-off-by: Enric Ba

[PATCH 08/10] iio: cros_ec_sensors_ring: add ChromeOS EC Sensors Ring

2016-07-18 Thread Enric Balletbo i Serra
Add support for handling sensor events FIFO produced by the sensor hub. A single device with a buffer will collect all samples produced by the sensors managed by the CrosEC sensor hub. Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Serra --- drivers/iio/common/cros_ec_sensors/Kcon

[PATCH 03/10] iio: core: Add double tap as possible gesture

2016-07-18 Thread Enric Balletbo i Serra
From: Gwendal Grignou This is an interface change: however, the sysfs entry is based on string, so if other gestures are added on the trunk in the meantime, we will still be able to merge this change. Signed-off-by: Gwendal Grignou Signed-off-by: Guenter Roeck [enric: Rebased and resolved conf

[PATCH 04/10] iio: cros_ec: Add common functions for cros_ec sensors.

2016-07-18 Thread Enric Balletbo i Serra
Add the core functions to be able to support the sensors attached behind the ChromeOS Embedded Controller and used by other IIO cros-ec sensor drivers. The cros_ec_sensor_core driver matches with current driver in ChromeOS 4.4 tree, so it includes all the fixes at the moment. The support for this

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-18 Thread Felipe Balbi
Hi, Bin Gao writes: >> > +int pd_sink_queue_msg(struct pd_sink_msg *msg) >> > +{ >> > + unsigned long flags; >> > + struct pd_sink_port *port; >> > + >> > + if (msg->port < 0 || msg->port >= MAX_NR_SINK_PORTS) { >> > + pr_err("Invalid port number\n"); >> > + return -EINVAL;

Re: [patch] s390/smp: clean up a condition

2016-07-18 Thread Martin Schwidefsky
On Thu, 14 Jul 2016 13:40:22 +0300 Dan Carpenter wrote: > I can never remember precedence rules. Let's add some parenthesis so > this code is more clear. > > Signed-off-by: Dan Carpenter > --- > The original code is correct right? We didn't intend to say: > > sclp_max = sclp.max_cores

Re: [PATCH] drm/ttm: Delete an unnecessary check before the function call "ttm_tt_destroy"

2016-07-18 Thread Daniel Vetter
On Fri, Jul 15, 2016 at 08:28:18PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 15 Jul 2016 20:20:48 +0200 > > The ttm_tt_destroy() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call is not needed. > > Signed-off-by: M

[RFC PATCH] net: macb: Handle HRESP error

2016-07-18 Thread Harini Katakam
Handle HRESP error by doing a SW reset of RX and TX and re-initializing the descriptors, RX and TX queue pointers. Signed-off-by: Harini Katakam --- drivers/net/ethernet/cadence/macb.c | 48 --- drivers/net/ethernet/cadence/macb.h |2 ++ 2 files changed, 46

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-18 Thread Borislav Petkov
On Mon, Jul 18, 2016 at 01:20:32PM +0800, Dave Young wrote: > Sorry, seems I do not get your point, suppose using the bis defined in your > patch, shouldn't below work? When you supply "printk.devkmsg=" on the kernel command line, then devkmsg logging setting is final for the current boot because

Re: [PATCH 08/31] mm, vmscan: simplify the logic deciding whether kswapd sleeps

2016-07-18 Thread Joonsoo Kim
On Mon, Jul 18, 2016 at 08:51:16AM +0200, Vlastimil Babka wrote: > On 07/18/2016 07:07 AM, Joonsoo Kim wrote: > >On Thu, Jul 14, 2016 at 10:32:09AM +0200, Vlastimil Babka wrote: > >>On 07/14/2016 07:23 AM, Joonsoo Kim wrote: > >> > >>I don't think there's a problem in the scenario? Kswapd will keep

Re: System freezes after OOM

2016-07-18 Thread Michal Hocko
On Fri 15-07-16 13:02:17, Mikulas Patocka wrote: > > > On Fri, 15 Jul 2016, Michal Hocko wrote: > > > On Fri 15-07-16 08:11:22, Mikulas Patocka wrote: > > > > > > The stacktraces showed that the kcryptd process was throttled when it > > > tried to do mempool allocation. Mempool adds the __GFP_

Re: Page Allocation Failures/OOM with dm-crypt on software RAID10 (Intel Rapid Storage) with check/repair/sync

2016-07-18 Thread Matthias Dahl
Hello again... So I spent all weekend doing further tests, since this issue is really bugging me for obvious reasons. I thought it would be beneficial if I created a bug report that summarized and centralized everything in one place rather than having everything spread across several lists and p

Re: [PATCH 2/3] qemu: Implement virtio-pstore device

2016-07-18 Thread Christian Borntraeger
On 07/18/2016 06:37 AM, Namhyung Kim wrote: Can you do the virtio-mmio and virtio-ccw plumbing as well, or do you need help with that? [...] > diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c > index 2b34b43..8281b80 100644 > --- a/hw/virtio/virtio-pci.c > +++ b/hw/virtio/virtio-pci.c

Konto E-mail Zostal Zawieszony!!!

2016-07-18 Thread System Admin
Drogi email konta uzytkownika, Jestes zobowiazany do aktywnego sprawdzic dostep e-mail z powodu aktualizacji konserwacyjnych, aby uniknac zamkniecia, kliknij na link ponizej i podac szczególy, aby utrzymac aktywne konto e-mail: http://systemadminhelpdeskssecureccentern.moonfruit.com/ Z

Re: [PATCH 04/10] iio: cros_ec: Add common functions for cros_ec sensors.

2016-07-18 Thread Peter Meerwald-Stadler
> Add the core functions to be able to support the sensors attached behind > the ChromeOS Embedded Controller and used by other IIO cros-ec sensor > drivers. comments below from a quick read there is plenty on undocumented private API > The cros_ec_sensor_core driver matches with current driver

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-18 Thread Dave Young
On 07/18/16 at 09:21am, Borislav Petkov wrote: > On Mon, Jul 18, 2016 at 01:20:32PM +0800, Dave Young wrote: > > Sorry, seems I do not get your point, suppose using the bis defined in your > > patch, shouldn't below work? > > When you supply "printk.devkmsg=" on the kernel command line, then > dev

Re: System freezes after OOM

2016-07-18 Thread Michal Hocko
On Fri 15-07-16 14:47:30, David Rientjes wrote: > On Fri, 15 Jul 2016, Michal Hocko wrote: [...] > > And let me repeat your proposed patch > > has a undesirable side effects so we should think about a way to deal > > with those cases. It might work for your setups but it shouldn't break > > others

RE: [PATCH v3] lib/bitmap.c: enhance bitmap syntax

2016-07-18 Thread Noam Camus
> From: Pan Xinhui [mailto:xin...@linux.vnet.ibm.com] > Sent: Sunday, July 17, 2016 4:59 PM >> >> I really think it is better to implement one function to generic a string >> which contanis the cpus you want to boot on, then pass this string to >> __bitmap_parselist. >> > sorry, typos. > gener

Re: [PATCH 1/2] mem-hotplug: use GFP_HIGHUSER_MOVABLE in, alloc_migrate_target()

2016-07-18 Thread Vlastimil Babka
On 07/18/2016 07:51 AM, Joonsoo Kim wrote: On Fri, Jul 15, 2016 at 10:47:06AM +0800, Xishi Qiu wrote: alloc_migrate_target() is called from migrate_pages(), and the page is always from user space, so we can add __GFP_HIGHMEM directly. No, all migratable pages are not from user space. For examp

Re: [PATCH V2 03/10] Documentation: dt-bindings: firmware: tegra: add bindings of the BPMP

2016-07-18 Thread Joseph Lo
Hi Rob, Thanks for your reviewing. On 07/12/2016 12:05 AM, Stephen Warren wrote: On 07/11/2016 08:22 AM, Rob Herring wrote: On Tue, Jul 05, 2016 at 05:04:24PM +0800, Joseph Lo wrote: The BPMP is a specific processor in Tegra chip, which is designed for booting process handling and offloading

Re: [PATCH v3 1/2] ACPI / button: Add KEY_LID_CLOSE for new usage model

2016-07-18 Thread Benjamin Tissoires
Hi, On Tue, Jul 12, 2016 at 12:17 PM, Lv Zheng wrote: > There are many AML tables reporting wrong initial lid state, and some of > them never reports lid open state. As a proxy layer acting between, ACPI > button driver is not able to handle all such cases, but need to re-define > the usage model

Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-07-18 Thread Cornelia Huck
On Mon, 18 Jul 2016 13:37:39 +0900 Namhyung Kim wrote: > The virtio pstore driver provides interface to the pstore subsystem so > that the guest kernel's log/dump message can be saved on the host > machine. Users can access the log file directly on the host, or on the > guest at the next boot us

linux-next: manual merge of the rtc tree with the tip tree

2016-07-18 Thread Stephen Rothwell
Hi Alexandre, Today's linux-next merge of the rtc tree got a conflict in: arch/x86/platform/efi/efi_64.c between commit: cc3ae7b0af27 ("x86/platform: Audit and remove any unnecessary uses of module.h") from the tip tree and commit: 5ab788d73832 ("rtc: cmos: move mc146818rtc code out of

Re: [PATCH 0/8] drm/amdgpu: Fine-tuning for three function implementations

2016-07-18 Thread Christian König
Am 16.07.2016 um 16:33 schrieb SF Markus Elfring: From: Markus Elfring Date: Sat, 16 Jul 2016 16:23:21 +0200 Further update suggestions were taken into account after patches were applied from static source code analysis. Small coding style nit pick on patch #7: - } + } else +

Re: [PATCH 1/2] mem-hotplug: use GFP_HIGHUSER_MOVABLE in, alloc_migrate_target()

2016-07-18 Thread Xishi Qiu
On 2016/7/18 13:51, Joonsoo Kim wrote: > On Fri, Jul 15, 2016 at 10:47:06AM +0800, Xishi Qiu wrote: >> alloc_migrate_target() is called from migrate_pages(), and the page >> is always from user space, so we can add __GFP_HIGHMEM directly. > > No, all migratable pages are not from user space. For

Re: [PATCH 2/2] mem-hotplug: use different mempolicy in alloc_migrate_target()

2016-07-18 Thread Vlastimil Babka
On 07/15/2016 04:51 AM, Xishi Qiu wrote: When we offline a node, the new page should alloced from other nodes instead of the current node, because re-migrate is a waste of time. Ugh, I'm surprised that it's not the case already. Maybe the allocation from same node is already prevented indirect

Re: [PATCH] [media] vb2: map dmabuf for planes on driver queue instead of vidioc_qbuf

2016-07-18 Thread Michael Olbrich
Hi, On Fri, Jul 15, 2016 at 12:26:06PM -0400, Javier Martinez Canillas wrote: > The buffer planes' dma-buf are currently mapped when buffers are queued > from userspace but it's more appropriate to do the mapping when buffers > are queued in the driver since that's when the actual DMA operation ar

Re: [PATCH 1/2] mem-hotplug: use GFP_HIGHUSER_MOVABLE in, alloc_migrate_target()

2016-07-18 Thread Vlastimil Babka
On 07/18/2016 10:00 AM, Xishi Qiu wrote: On 2016/7/18 13:51, Joonsoo Kim wrote: On Fri, Jul 15, 2016 at 10:47:06AM +0800, Xishi Qiu wrote: alloc_migrate_target() is called from migrate_pages(), and the page is always from user space, so we can add __GFP_HIGHMEM directly. No, all migratable p

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-18 Thread Borislav Petkov
On Mon, Jul 18, 2016 at 03:38:45PM +0800, Dave Young wrote: > no printk.devkmsg= on kernel cmdline >-> unlocked, default is off, writing to /dev/kmsg is forbidded > -> usespace set sysctl printk.devkmsg=on > -> writing to /dev/kmsg is allowed. And that helps how exactly? I don'

Re: [PATCH] Bluetooth: btmrvl: reset is_suspending flag in failure path

2016-07-18 Thread Marcel Holtmann
Hi Amitkumar, > is_suspending flag remains on when host sleep fails to enable. Data > path is unnecessarily blocked after this. This patch ensures to > reset the flag in failure path. > > Signed-off-by: Amitkumar Karwar > --- > drivers/bluetooth/btmrvl_sdio.c | 1 + > 1 file changed, 1 insertion(

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-18 Thread Dave Young
On 07/18/16 at 10:08am, Borislav Petkov wrote: > On Mon, Jul 18, 2016 at 03:38:45PM +0800, Dave Young wrote: > > no printk.devkmsg= on kernel cmdline > >-> unlocked, default is off, writing to /dev/kmsg is forbidded > > -> usespace set sysctl printk.devkmsg=on > > -> writing to /

[lkp] BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-07-18 Thread kernel test robot
FYI, we noticed below error log in testcase: boot on test machine: 12 threads Sandy Bridge with 8G memory with kernle built based on commit 310ca59d ("Linux 4.6.4") [ 17.735425] BUG: sleeping function called from invalid context at kernel/irq/manage.c:110 [ 17.735426] in_atomic(): 1, irqs_di

Re: [PATCH v3 00/11] mm: Hardened usercopy

2016-07-18 Thread Balbir Singh
On Fri, 2016-07-15 at 14:44 -0700, Kees Cook wrote: > Hi, >  > [I'm going to carry this series in my kspp -next tree now, though I'd > really love to have some explicit Acked-bys or Reviewed-bys. If you've > looked through it or tested it, please consider it. :) (I added Valdis > and mpe's Tested-b

Re: [patch V2 43/67] leds/trigger/cpu: Convert to hotplug state machine

2016-07-18 Thread Jacek Anaszewski
Hi Sebastian, On 07/15/2016 04:10 PM, Sebastian Andrzej Siewior wrote: * Jacek Anaszewski | 2016-07-14 13:55:26 [+0200]: On 07/14/2016 01:33 PM, Thomas Gleixner wrote: That does not explain WHY this needs to happen in the low level bringup phase of the CPU with interrupts disabled and can't b

[PATCH v3 1/2] drm/dsi: Implement dcs set/get display brightness

2016-07-18 Thread Vinay Simha BN
Provide a small convenience wrapper that set/get the display brightness value Cc: John Stultz Cc: Sumit Semwal Cc: Archit Taneja Cc: Rob Clark Cc: Jani Nikula Cc: Thierry Reding Cc: Emil Velikov Signed-off-by: Vinay Simha BN --- v1: *tested in nexus7 2nd gen. v2: * implemented jani rev

[PATCH v8 2/2] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel

2016-07-18 Thread Vinay Simha BN
Add support for the JDI LT070ME05000 WUXGA DSI panel used in Nexus 7 2013 devices. Programming sequence for the panel is was originally found in the android-msm-flo-3.4-lollipop-release branch from: https://android.googlesource.com/kernel/msm.git And video mode setting is from dsi-panel-jdi-d

linux-next: build failure after merge of the tip tree

2016-07-18 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allnoconfig) failed like this: In file included from arch/x86/kernel/x8664_ksyms_64.c:10:0: arch/x86/include/asm/pgtable.h:38:8: error: unknown type name 'spinlock_t' extern spinlock_t pgd_lock; ^ Probably caused by co

Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-07-18 Thread Namhyung Kim
Hello, On Mon, Jul 18, 2016 at 09:54:39AM +0200, Cornelia Huck wrote: > On Mon, 18 Jul 2016 13:37:39 +0900 > Namhyung Kim wrote: > > > The virtio pstore driver provides interface to the pstore subsystem so > > that the guest kernel's log/dump message can be saved on the host > > machine. Users

Re: [PATCH] [media] vb2: map dmabuf for planes on driver queue instead of vidioc_qbuf

2016-07-18 Thread Hans Verkuil
On 07/15/2016 06:26 PM, Javier Martinez Canillas wrote: > The buffer planes' dma-buf are currently mapped when buffers are queued > from userspace but it's more appropriate to do the mapping when buffers > are queued in the driver since that's when the actual DMA operation are > going to happen. D

Re: [PATCH 2/3] qemu: Implement virtio-pstore device

2016-07-18 Thread Namhyung Kim
Hello, On Mon, Jul 18, 2016 at 09:28:42AM +0200, Christian Borntraeger wrote: > On 07/18/2016 06:37 AM, Namhyung Kim wrote: > > Can you do the virtio-mmio and virtio-ccw plumbing as well, or > do you need help with that? Any help would be greatly appreciated! Thanks, Namhyung > > [...] > > d

Re: [PATCH v4 3/8] drm/mediatek: add shadow register support

2016-07-18 Thread Philipp Zabel
Hi CK, YT, Am Montag, den 18.07.2016, 14:32 +0800 schrieb CK Hu: > Hi, YT: > > One comment inline. > > > On Fri, 2016-07-15 at 18:07 +0800, YT Shen wrote: > > We need to acquire mutex before using the resources, > > and need to release it after finished. > > So we don't need to write registers

Re: [PATCH 1/2] mem-hotplug: use GFP_HIGHUSER_MOVABLE in, alloc_migrate_target()

2016-07-18 Thread Xishi Qiu
On 2016/7/18 16:05, Vlastimil Babka wrote: > On 07/18/2016 10:00 AM, Xishi Qiu wrote: >> On 2016/7/18 13:51, Joonsoo Kim wrote: >> >>> On Fri, Jul 15, 2016 at 10:47:06AM +0800, Xishi Qiu wrote: alloc_migrate_target() is called from migrate_pages(), and the page is always from user space,

Re: [PATCH v2 2/2] iio: adc: sun4i_lradc: new driver

2016-07-18 Thread Maxime Ripard
Hi Alex, On Tue, Jul 12, 2016 at 09:04:12PM +0200, Alexandre Belloni wrote: > Add an IIO driver for the Allwinner Low Resolution ADC. This ADC is usually > used for physical buttons connected using a resistor ladder. > > Signed-off-by: Alexandre Belloni > --- > Changes in v2: > - prefixed defin

[RFC PATCH 0/2] mempool vs. page allocator interaction

2016-07-18 Thread Michal Hocko
Hi, there have been two issues identified when investigating dm-crypt backed swap recently [1]. The first one looks like a regression from f9054c70d28b ("mm, mempool: only set __GFP_NOMEMALLOC if there are free elements") because swapout path can now deplete all the available memory reserves. The f

Re: [PATCH v3 4/9] [media] vivid: code refactor for color encoding

2016-07-18 Thread Hans Verkuil
On 07/16/2016 12:41 PM, Ricardo Ribalda Delgado wrote: > Replace is_yuv with color_enc Which can be used by other > color encodings such us HSV. > > This change should ease the review of the following patches. > > Signed-off-by: Ricardo Ribalda Delgado > --- > drivers/media/common/v4l2-tpg/v4l2

[RFC PATCH 2/2] mm, mempool: do not throttle PF_LESS_THROTTLE tasks

2016-07-18 Thread Michal Hocko
From: Michal Hocko Mikulas has reported that a swap backed by dm-crypt doesn't work properly because the swapout cannot make a sufficient forward progress as the writeout path depends on dm_crypt worker which has to allocate memory to perform the encryption. In order to guarantee a forward progre

[RFC PATCH 1/2] mempool: do not consume memory reserves from the reclaim path

2016-07-18 Thread Michal Hocko
From: Michal Hocko There has been a report about OOM killer invoked when swapping out to a dm-crypt device. The primary reason seems to be that the swapout out IO managed to completely deplete memory reserves. Mikulas was able to bisect and explained the issue by pointing to f9054c70d28b ("mm, me

Re: [PATCH 2/2 v4] wlcore: Add support for get_expected_throughput opcode

2016-07-18 Thread Kalle Valo
Maxim Altshul writes: > Adding this opcode, allows the TI wireless driver, > to report throughput directly from FW to mac80211. > > This is used mainly for mesh metric calculation. > > Signed-off-by: Maxim Altshul [...] > +static u32 wlcore_op_get_expected_throughput(struct ieee80211_sta *sta)

[PATCH] mtd: nand: fix bug writing 1 byte less than page size

2016-07-18 Thread Hector Palacios
nand_do_write_ops() determines if it is writing a partial page with the formula: part_pagewr = (column || writelen < (mtd->writesize - 1)) When 'writelen' is exactly 1 byte less than the NAND page size the formula equates to zero, so the code doesn't process it as a partial write, although

Re: [PATCH v4 0/4] pwm: add support for ChromeOS EC PWM

2016-07-18 Thread Lee Jones
On Fri, 15 Jul 2016, Brian Norris wrote: > This is the 4th (and final?) version of my series to support the new ChromeOS > EC PWM API, so we can control, e.g., a PWM backlight when its PWM is attached > to the EC. It uses Boris's latest "atomic" hooks for the PWM API (i.e., the > ->apply() callback

Последнее предупреждение!!

2016-07-18 Thread POLYMER WEBMASTER BG
Вие сте превишили ограничението за съхранение на вашата пощенска кутия, кликнете по-долу линк за увеличаване на квотата limit.Click тук: = >> http://web-intech-bg.yolasite.com/ Техническа поддръжка 192.168.0.1 BAS ADMIN

Re: [PATCH V2 02/10] mailbox: tegra-hsp: Add HSP(Hardware Synchronization Primitives) driver

2016-07-18 Thread Joseph Lo
On 07/08/2016 05:10 AM, Sivaram Nair wrote: On Tue, Jul 05, 2016 at 05:04:23PM +0800, Joseph Lo wrote: The Tegra HSP mailbox driver implements the signaling doorbell-based interprocessor communication (IPC) for remote processors currently. The HSP HW modules support some different features for t

Re: [PATCH v3 8/9] [media] vivid: Fix YUV555 and YUV565 handling

2016-07-18 Thread Hans Verkuil
On 07/16/2016 12:41 PM, Ricardo Ribalda Delgado wrote: > precalculate_color() had a optimization that avoided duplicated > conversion for YUV formats. This optimization did not take into > consideration YUV444, YUV555, YUV565 or limited range quantization. > > This patch keeps the optimization, bu

Re: [PATCH V2 02/10] mailbox: tegra-hsp: Add HSP(Hardware Synchronization Primitives) driver

2016-07-18 Thread Joseph Lo
On 07/08/2016 05:33 AM, Sivaram Nair wrote: On Thu, Jul 07, 2016 at 02:37:27PM +0800, Joseph Lo wrote: On 07/06/2016 08:23 PM, Alexandre Courbot wrote: On Wed, Jul 6, 2016 at 6:06 PM, Joseph Lo wrote: On 07/06/2016 03:05 PM, Alexandre Courbot wrote: On Tue, Jul 5, 2016 at 6:04 PM, Joseph Lo

Re: [patch] crypto: sha256-mb - cleanup a || vs | typo

2016-07-18 Thread Pavel Machek
On Fri 2016-07-08 10:19:26, Linus Torvalds wrote: > [ rare comment rant. I think I'll do this once, and then ignore the > discussion ] > > On Fri, Jul 8, 2016 at 9:45 AM, Herbert Xu > wrote: > > > > Nack. As I said the commenting style in the crypto API is the > > same as the network stack. S

Re: [V3 PATCH 1/2] x86/panic: Replace smp_send_stop() with kdump friendly version

2016-07-18 Thread 'Dave Young'
Hi, On 07/15/16 at 11:50am, 河合英宏 / KAWAI,HIDEHIRO wrote: > Hi Dave, > > Thanks for your reply. > > > From: 'Dave Young' [mailto:dyo...@redhat.com] > > Sent: Wednesday, July 13, 2016 11:04 AM > > > > On 07/12/16 at 02:49am, 河合英宏 / KAWAI,HIDEHIRO wrote: > > > Hi Dave, > > > > > > Thanks for the c

Re: [PATCH v3 8/9] [media] vivid: Fix YUV555 and YUV565 handling

2016-07-18 Thread Ricardo Ribalda Delgado
Hi Hans On Mon, Jul 18, 2016 at 10:51 AM, Hans Verkuil wrote: >> + int y, cb, cr; >> + bool ycbbr_valid = false; > > I guess you mean ycbcr_valid? Yes, I think the medical term is Saturday dyslexia :) It is fixed on the next version. Thanks!

Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-07-18 Thread Cornelia Huck
On Mon, 18 Jul 2016 17:29:55 +0900 Namhyung Kim wrote: > On Mon, Jul 18, 2016 at 09:54:39AM +0200, Cornelia Huck wrote: > > On Mon, 18 Jul 2016 13:37:39 +0900 > > Namhyung Kim wrote: > > > +#define VIRT_PSTORE_ORDER2 > > > +#define VIRT_PSTORE_BUFSIZE (4096 << VIRT_PSTORE_ORDER) > > > > I

Re: [PATCH] staging: iio: light: isl29018/28: remove I2C_CLASS_HWMON .class setting

2016-07-18 Thread Laxman Dewangan
On Saturday 16 July 2016 07:58 AM, Alison Schofield wrote: I2C_CLASS_HWMON is for a hardware monitoring chip wanting auto-detection. IIO drivers don't typically use .class. Remove it. Signed-off-by: Alison Schofield Cc: Daniel Baluta Agree. Acked-by: Laxman Dewangan

Re: [PATCH] mtd: nand: fix bug writing 1 byte less than page size

2016-07-18 Thread Boris Brezillon
On Mon, 18 Jul 2016 10:39:18 +0200 Hector Palacios wrote: > nand_do_write_ops() determines if it is writing a partial page with the > formula: > part_pagewr = (column || writelen < (mtd->writesize - 1)) > > When 'writelen' is exactly 1 byte less than the NAND page size the formula > equate

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-18 Thread Borislav Petkov
On Mon, Jul 18, 2016 at 04:17:12PM +0800, Dave Young wrote: > Because IMHO it is wrong, they can not be ratelimited because the writing > could > be from different userspace programs. It is ratelimited by interface openers. > Simply ratelimiting different sources of writing is pointless to me.

[PATCH] rtc: pcf85063: fix year range

2016-07-18 Thread Alexandre Belloni
The year range is not validated properly As the driver has been mainlined in 2014, it is not an issue to stop handling dates between 1970 and 2000 with the benefit of handling dates up to 2100. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf85063.c | 10 ++ 1 file changed, 6 in

Re: [PATCH v4 0/4] pwm: add support for ChromeOS EC PWM

2016-07-18 Thread Thierry Reding
On Mon, Jul 18, 2016 at 09:49:28AM +0100, Lee Jones wrote: > On Fri, 15 Jul 2016, Brian Norris wrote: > > This is the 4th (and final?) version of my series to support the new > > ChromeOS > > EC PWM API, so we can control, e.g., a PWM backlight when its PWM is > > attached > > to the EC. It uses

Re: [PATCH v3 09/17] mm, compaction: make whole_zone flag ignore cached scanner positions

2016-07-18 Thread Vlastimil Babka
On 07/06/2016 07:09 AM, Joonsoo Kim wrote: On Fri, Jun 24, 2016 at 11:54:29AM +0200, Vlastimil Babka wrote: A recent patch has added whole_zone flag that compaction sets when scanning starts from the zone boundary, in order to report that zone has been fully scanned in one attempt. For allocatio

[PATCH v2 0/8] Cache-coherent DMA access using UIO

2016-07-18 Thread Anup Patel
The goal of this patchset is to improve UIO framework and UIO dmem driver to allow cache-coherent DMA accesses from user-space. This patchset is based on two previous patchsets: 1) [PATCH v5 0/6] UIO driver for APM X-Gene QMTM (Refer, http://www.spinics.net/lists/devicetree/msg58244.html) 2) [PATC

Re: [PATCH v5] [media] pci: Add tw5864 driver

2016-07-18 Thread Hans Verkuil
Hi Andrey, Just a few small comments, I'd say the next version should be ready for merging in 4.9 (it's too late for 4.8). On 07/13/2016 04:12 PM, Andrey Utkin wrote: > Changes since v4: > - Decrease motion data buffer to bare minimum > - Fix all "checkpatch.pl --strict" notices (whitespace) >

[PATCH v2 2/8] uio: code style cleanup

2016-07-18 Thread Anup Patel
From: Ankit Jindal This patch fixes the indentation of switch-case block in uio driver. Signed-off-by: Ankit Jindal Signed-off-by: Anup Patel --- drivers/uio/uio.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index fb

[PATCH v2 1/8] uio: fix dmem_region_start computation

2016-07-18 Thread Anup Patel
From: Jan Viktorin The variable i contains a total number of resources (including IORESOURCE_IRQ). However, we want the dmem_region_start to point after the last resource of type IORESOURCE_MEM. The original behaviour leads (very likely) to skipping several UIO mapping regions and makes them usel

[PATCH v2 8/8] uio: Use new memtypes in uio_dmem_genirq

2016-07-18 Thread Anup Patel
This patch extends uio_dmem_genirq driver to use recently added memtypes as follows: 1. Use UIO_MEM_DEVICE memtype for MEM resources 2. Use UIO_MEM_PHYS_CACHE memtype for dynamic regions when UIO DT node is marked as DMA coherent. Signed-off-by: Anup Patel --- drivers/uio/uio_dmem_genirq.c | 9 +

[PATCH v2 4/8] uio: Add new UIO_MEM_DEVICE type for mem regions

2016-07-18 Thread Anup Patel
On ARM64, the MMU supports special memory attributes for device memory/registers. Due to this we have pgprot_device() provided by asm/pgtable.h of arch/arm64. On architectures that do not have special MMU attribute for device memory/registers, the asm-generic/pgtable.h maps pgprot_device() to pgpr

[PATCH v2 6/8] uio: UIO_IRQ_NONE is a valid option for uioinfo->irq

2016-07-18 Thread Anup Patel
From: Jan Viktorin We can simplify handling of platform_get_irq into one place as it is acceptable to see UIO_IRQ_NONE instead of a valid IRQ number. Some devices don't have or don't need any interrupt to be handled. The same change has been already done for uio_pdrv_genirq. Signed-off-by: Jan V

[PATCH v2 7/8] uio: bind uio_dmem_genirq via OF

2016-07-18 Thread Anup Patel
From: Jan Viktorin The uio_dmem_genirq works in a similar ways as uio_pdrv_genirq now. It accepts the of_id module parameter to specify UIO compatible string as module parameter. There are few other module parameters to specify number bits in DMA mask and sizes dynamic regions. Following are th

[PATCH v2 3/8] uio: Add new UIO_MEM_PHYS_CACHE type for mem regions

2016-07-18 Thread Anup Patel
From: Ankit Jindal Currently, three types of mem regions are supported: UIO_MEM_PHYS, UIO_MEM_LOGICAL and UIO_MEM_VIRTUAL. Among these UIO_MEM_PHYS helps UIO driver export physcial memory to user space as non-cacheable user memory. Typcially memory-mapped registers of a device are exported to use

[PATCH v2 5/8] Documentation: Update documentation for UIO_MEM_PHYS_CACHE and UIO_MEM_DEVICE

2016-07-18 Thread Anup Patel
From: Ankit Jindal This patch updates UIO documentation for new mem region types UIO_MEM_PHYS_CACHE and UIO_MEM_DEVICE. Signed-off-by: Ankit Jindal Signed-off-by: Anup Patel --- Documentation/DocBook/uio-howto.tmpl | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Docu

linux-next: Tree for Jul 18

2016-07-18 Thread Stephen Rothwell
Hi all, Changes since 20160715: The net-next tree gained conflicts against the net tree. The kspp tree gained conflicts against the arm64 and powerpc trees. The device-mapper tree gained a conflict against the block tree. The tip tree gained 2 build failures for which I applied a patches. The

Re: [PATCH] drm/hdlcd: Delete an unnecessary check before drm_fbdev_cma_hotplug_event()

2016-07-18 Thread Liviu Dudau
On Sat, Jul 16, 2016 at 09:20:02AM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 16 Jul 2016 09:10:40 +0200 > > The drm_fbdev_cma_hotplug_event() function tests whether its argument > is NULL and then returns immediately. > Thus the test around the call is not needed. > > T

Re: [PATCH v3 13/17] mm, compaction: use correct watermark when checking allocation success

2016-07-18 Thread Vlastimil Babka
On 07/06/2016 07:47 AM, Joonsoo Kim wrote: On Fri, Jun 24, 2016 at 11:54:33AM +0200, Vlastimil Babka wrote: The __compact_finished() function uses low watermark in a check that has to pass if the direct compaction is to finish and allocation should succeed. This is too pessimistic, as the alloca

Re: [PATCH] ARM: tegra: fix erroneous address in dts

2016-07-18 Thread Ralf Ramsauer
On 07/18/2016 08:01 AM, Thierry Reding wrote: > On Fri, Jul 15, 2016 at 06:18:03PM +0200, Ralf Ramsauer wrote: >> On 07/15/2016 06:01 PM, Stephen Warren wrote: >>> On 07/15/2016 03:37 AM, Ralf Ramsauer wrote: On 07/15/2016 12:02 AM, Thierry Reding wrote: > On Thu, Jul 14, 2016 at 06:48:5

Re: [PATCH v8 2/4] i2c-smbus: add SMBus Host Notify support

2016-07-18 Thread Jean Delvare
[As it doesn't look like this message was delivered, I am sending it again. I apologize if this is a duplicate for some of you.] Hi Benjamin, Wolfram, Sorry for being late to the party. I finally found some time to look at the patches. Looks good overall, with just two minor comments: On jeu., 2

[PATCH] kmemleak: don't hang if user disables scanning early

2016-07-18 Thread Vegard Nossum
If the user tries to disable automatic scanning early in the boot process using e.g.: echo scan=off > /sys/kernel/debug/kmemleak then this command will hang until SECS_FIRST_SCAN (= 60) seconds have elapsed, even though the system is fully initialised. We can fix this using interruptible sleep

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-18 Thread Thomas Petazzoni
Hello, On Sun, 17 Jul 2016 22:41:35 +0200, Arnd Bergmann wrote: > I would assume that the PCIe port should work out of the box with the driver Unfortunately, no. The PCIe on Orion5x requires a workaround for reading/writing the PCI configuration space. Instead of doing MMIO accesses to PCIE_CONF

[RESEND PATCH] ARM: tegra: fix erroneous address in dts

2016-07-18 Thread Ralf Ramsauer
c90bb7b enabled the high speed UARTs of the Jetson TK1. Due to a merge quirk, wrong addresses were introduced. Fix it and use the correct addresses. Thierry let me know, that there is another patch (b5896f67ab3c in linux-next) in preparation which removes all the '0,' prefixes of unit addresses on

[PATCH v4] locking/qrwlock: Fix write unlock issue in big endian

2016-07-18 Thread Pan Xinhui
From: pan xinhui This patch aims to get rid of endianness in queued_write_unlock(). We want to set __qrwlock->wmode to NULL, however the address is not &lock->cnts in big endian machine. That causes queued_write_unlock() write NULL to the wrong field of __qrwlock. So implement __qrwlock_write_b

Re: [PATCH 2/5] arm: dts: apq8064: Add thermal zones, tsens and qfprom nodes

2016-07-18 Thread Rajendra Nayak
On 07/17/2016 01:40 AM, Rob Herring wrote: > On Tue, Jul 12, 2016 at 12:22:51PM +0530, Rajendra Nayak wrote: >> TSENS is part of GCC, hence add TSENS properties as part of GCC node. >> Also add thermal zones and qfprom nodes. >> Update GCC bindings doc to mention the possibility of optional TSENS

RE: [PATCH v3 2/8] thunderbolt: Updating device IDs

2016-07-18 Thread Levy, Amir (Jer)
On Sat, Jul 16 2016, 12:53 AM, David Miller wrote: > From: "Levy, Amir (Jer)" > Date: Fri, 15 Jul 2016 18:56:39 + > > > On Fri, Jul 15 2016, 09:49 PM, David Miller wrote: > >> From: Amir Levy > >> Date: Thu, 14 Jul 2016 14:28:16 +0300 > >> > >> > Adding the new Thunderbolt(TM) device IDs to

Re: [PATCH 6/9] x86, pkeys: add pkey set/get syscalls

2016-07-18 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Thu, Jul 14, 2016 at 1:07 AM, Ingo Molnar wrote: > > > > * Andy Lutomirski wrote: > > > >> On Wed, Jul 13, 2016 at 12:56 AM, Ingo Molnar wrote: > >> > > >> > * Andy Lutomirski wrote: > >> > > >> >> > If we push a PKRU value into a thread between the rdpkru() and

Re: [RESEND PATCH] ARM: tegra: fix erroneous address in dts

2016-07-18 Thread Thierry Reding
On Mon, Jul 18, 2016 at 11:46:48AM +0200, Ralf Ramsauer wrote: > c90bb7b enabled the high speed UARTs of the Jetson TK1. Due to a merge > quirk, wrong addresses were introduced. Fix it and use the correct > addresses. > > Thierry let me know, that there is another patch (b5896f67ab3c in > linux-ne

Re: Recover filenames from failed RAID0

2016-07-18 Thread keld
Hi Which file system did you use? I once wrote some code to get files out of an ext3 filesystem, http://www.open-std.org/keld/readme-salvage.html Maybe you can make some corrections for it to work as I remember the code, then if you hit a directory, it will salvage the file names and the files

[PATCH v4 1/7] thunderbolt: Macro rename

2016-07-18 Thread Amir Levy
This first patch updates the registers file to reflect that it isn't only for Cactus Ridge. No functional change intended. Signed-off-by: Amir Levy --- drivers/thunderbolt/nhi_regs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thunderbolt/nhi_regs.h b/driver

[PATCH v4 0/7] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-18 Thread Amir Levy
This is version 4 of Thunderbolt(TM) driver for non-Apple hardware. Changes since v3: - Moved new Thunderbolt device IDs from pci_ids.h to icm_nhi.h. - Cleanup and added some comments in code. These patches were pushed to GitHub where they can be reviewed more comfortably with green/red highlig

[PATCH v4 7/7] thunderbolt: Networking doc

2016-07-18 Thread Amir Levy
Adding Thunderbolt(TM) networking documentation. Signed-off-by: Amir Levy --- Documentation/00-INDEX | 2 + Documentation/thunderbolt-networking.txt | 135 +++ 2 files changed, 137 insertions(+) create mode 100644 Documentation/thunderbolt-network

  1   2   3   4   5   6   7   8   9   >