Re: [PATCH trace-cmd 2/2] trace-recorder: better error handling during copy

2016-03-23 Thread Peter Xu
On Tue, Mar 22, 2016 at 09:19:56AM -0400, Steven Rostedt wrote: > On Tue, 22 Mar 2016 09:14:33 -0400 > Peter Xu wrote: > > > Currently we have two ways to copy data, one is splice, one is read + > > write. For both, dump more information when we got errors during the > > copy. Also, when we updat

[PATCH trace-cmd v2] trace-recorder: better error handling during copy

2016-03-23 Thread Peter Xu
Currently we have two ways to copy data, one is splice, one is read + write. For both, we should make sure all bytes written, and update written bytes only. It might happen when we got, e.g., no space error, or connection error when copying data to remote sockets. In the past, we just got silence e

[PATCH] sdcardfs: fix itnull.cocci warnings

2016-03-23 Thread Julia Lawall
Remove NULL tests, as the index variable of list_for_each_entry cannot be NULL. Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- The code seems to have a lot of unnecessary braces as well. tree: https://android.googlesource.com/kernel/common android-4.4 head: f06e869f936e548fd3

[PATCH] sdcardfs: fix itnull.cocci warnings

2016-03-23 Thread Julia Lawall
Remove NULL test, as the index variable of list_for-each_entry cannot be NULL. Generated by: scripts/coccinelle/iterators/itnull.cocci Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- derived_perm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/sdcardfs/derive

Re: [PATCH v3 04/23] atari_NCR5380: Remove DMA_MIN_SIZE macro

2016-03-23 Thread Hannes Reinecke
On 03/21/2016 03:31 AM, Finn Thain wrote: > Only the atari_scsi and sun3_scsi drivers define DMA_MIN_SIZE. > Both drivers also define NCR5380_dma_xfer_len, which means > DMA_MIN_SIZE can be removed from the core driver. > > This removes another discrepancy between the two core drivers. > > Signed

Re: [PATCH v3 14/23] ncr5380: Reduce max_lun limit

2016-03-23 Thread Hannes Reinecke
On 03/21/2016 03:32 AM, Finn Thain wrote: > The driver has a limit of eight LUs because of the byte-sized bitfield > that is used for busy flags. That means the maximum LUN is 7. The default > is 8. > > Signed-off-by: Finn Thain > Tested-by: Michael Schmitz > > --- > > Changed since v1: > - Re

Re: [PATCH v3 20/23] atari_scsi: Set a reasonable default for cmd_per_lun

2016-03-23 Thread Hannes Reinecke
On 03/21/2016 03:32 AM, Finn Thain wrote: > This setting does not need to be conditional on Atari ST or TT. > > Signed-off-by: Finn Thain > Tested-by: Michael Schmitz > > --- > > Changed since v1: > - Set the default cmd_per_lun to 4 based on test results. > > Changed since v2: > - Revert the

Re: [PATCH v3 23/23] ncr5380: Call complete_cmd() for disconnected commands on bus reset

2016-03-23 Thread Hannes Reinecke
On 03/21/2016 03:32 AM, Finn Thain wrote: > I'm told that some targets are liable to disconnect a REQUEST SENSE > command. Theoretically this would cause a command undergoing autosense to > be moved onto the disconnected list. The bus reset handler must call > complete_cmd() for these commands, oth

Re: [PATCH v3 0/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k

2016-03-23 Thread Christoph Hellwig
Thanks Rasmus, the whole series looks good to me: Reviewed-by: Christoph Hellwig

Re: [PATCH v2 0/5] mempool based chained scatterlist alloc/free api

2016-03-23 Thread Christoph Hellwig
On Tue, Mar 22, 2016 at 03:03:11PM -0700, Ming Lin wrote: > From: Ming Lin > > The fist 4 patches make the SG related definitions/structs/functions > in SCSI code generic and the last patch move it to lib/sg_pool.c. > > I still keep the macro "SG_MEMPOOL_NR" since it's used in 3 places. I don't

Re: [PATCH] fujitsu-laptop: Support radio LED

2016-03-23 Thread Michał Kępień
> > If you could let me know how you went about > > acquiring the values on your machine I could try the exact same steps on the > > S7020 to see what we get. > > The BTNI value is printed to the kernel log buffer by > acpi_fujitsu_hotkey_add(), so all it takes to retrieve it is: > > dmesg |

Re: [PATCH v3 4/4] nmi_backtrace: generate one-line reports for idle cpus

2016-03-23 Thread Peter Zijlstra
On Wed, Mar 23, 2016 at 01:50:00AM +0100, Rafael J. Wysocki wrote: > > > Well, what about intel_idle_freeze()? Or do we not care? > > > > I argued against it; when you're suspended the NMI watchdog is stopped > > too. > > Is it also stopped for suspend-to-idle? I'm not sure about that. > > Wh

Re: [PATCH] ARM64: dts: amlogic: Clean up Vega S95 /memory nodes

2016-03-23 Thread Carlo Caione
On Thu, Mar 17, 2016 at 12:10 AM, Andreas Färber wrote: > Resolve the following warnings from new dtc by adding the unit address: > > DTC arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95-pro.dtb > Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, > but no unit nam

Re: [PATCH] zram: export the number of available comp streams

2016-03-23 Thread Sergey Senozhatsky
( was "[PATCH] zram: export the number of available comp streams" forked from http://marc.info/?l=linux-kernel&m=145860707516861 ) Hello Minchan, forked into a separate tread. On (03/22/16 09:39), Minchan Kim wrote: > > zram_bvec_write() > > { > > *get_cpu_ptr(comp->stream); > > zcom

Re: [PATCH] ARM: dts: exynos: Enable SSS on Odroid X/X2/U3 family

2016-03-23 Thread kbuild test robot
Hi Krzysztof, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.5 next-20160323] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Krzysztof-Kozlowski/ARM-dts-exynos-Enable

Re: [PATCH v2 0/6] ARM64: meson: GXBaby (S905) and Vega S95 enablement

2016-03-23 Thread Carlo Caione
On Tue, Mar 22, 2016 at 9:29 PM, Andreas Färber wrote: > Am 21.03.2016 um 23:36 schrieb Kevin Hilman: >> On Tue, Mar 1, 2016 at 6:34 PM, Andreas Färber wrote: >> >>> Note: On the Vega S95 I need to change TEXT_OFFSET as follows, >>> in order to avoid the vendor U-Boot overwriting itself (fwiu); >

Re: zram: per-cpu compression streams

2016-03-23 Thread Sergey Senozhatsky
( was "[PATCH] zram: export the number of available comp streams" forked from http://marc.info/?l=linux-kernel&m=145860707516861 ) d'oh sorry, now actually forked. Hello Minchan, forked into a separate tread. > On (03/22/16 09:39), Minchan Kim wrote: > > zram_bvec_write() > > { >

[GIT PULL 2nd] Mailbox changes for v4.6

2016-03-23 Thread Jassi Brar
Hi Linus, Due to some last minute cosmetic changes, the driver was not included in the first pull request, otherwise the driver has been reviewed twice. Could you please consider pulling it, so it doesn't get delayed for another cycle? The following changes since commit c5a9d1f30c066b7922a5f66b8

Re: [PATCHv2] fat: add config option to set UTF-8 mount option by default

2016-03-23 Thread Geert Uytterhoeven
On Tue, Mar 8, 2016 at 2:53 PM, Maciej S. Szmigiero wrote: > FAT has long supported its own default file name encoding > config setting, separate from CONFIG_NLS_DEFAULT. > > However, if UTF-8 encoded file names are desired FAT > character set should not be set to utf8 since this would > make file

Re: [PATCH V2 0/2] kexec: Make a pair of map/unmap reserved pages in error path

2016-03-23 Thread Baoquan He
On 03/23/16 at 11:32am, Xunlei Pang wrote: > On 2016/03/23 at 10:48, Baoquan He wrote: > > On 03/01/16 at 05:53pm, Xunlei Pang wrote: > >> This is a bug fix. > >> > >> After this, I will try to do a cleanup for crash_unmap/map_reserved_pages() > >> (only used by S390) to consolidate it with > >> a

Re: Suspicious error for CMA stress test

2016-03-23 Thread Vlastimil Babka
On 03/23/2016 05:44 AM, Joonsoo Kim wrote: Fixes: 3c605096d315 ("mm/page_alloc: restrict max order of merging on isolated pageblock") Link: https://lkml.org/lkml/2016/3/2/280 Reported-by: Hanjun Guo Debugged-by: Laura Abbott Debugged-by: Joonsoo Kim Signed-off-by: Vlastimil Babka Cc: # 3.1

Re: [PATCH] staging: delete STE RMI4 hackish driver

2016-03-23 Thread Linus Walleij
On Wed, Mar 23, 2016 at 3:26 AM, Greg KH wrote: > On Fri, Mar 18, 2016 at 10:12:15AM +0100, Linus Walleij wrote: >> As of commit 62d5bdf972ebcfc99f72f734ae979713e4ca6450 >> "Merge branch 'synaptics-rmi4' into next" the input subsystem >> has a proper RMI4 infrastructure and touchscreen driver. >>

Re: [PATCH -tip] x86/mce: Use atomic_inc_return barrier when starting monad sync

2016-03-23 Thread Borislav Petkov
On Mon, Mar 21, 2016 at 04:19:56PM -0700, Davidlohr Bueso wrote: > mce_start() has an explicit smp_wmb to serialize writes to > global_nwo and mce_callin. However, atomic_inc_return() implies > barriers on both sides of the call, as such simply rely on this > full smp barrier. > > Signed-off-by: D

Re: [PATCH] staging: dgnc: fix CamelCase in dgnc_driver.c

2016-03-23 Thread kbuild test robot
Hi Daeseok, [auto build test ERROR on staging/staging-testing] [also build test ERROR on next-20160323] [cannot apply to v4.5] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Daeseok-Youn

Re: Suspicious error for CMA stress test

2016-03-23 Thread Joonsoo Kim
2016-03-23 17:26 GMT+09:00 Vlastimil Babka : > On 03/23/2016 05:44 AM, Joonsoo Kim wrote: >>> >>> >>> Fixes: 3c605096d315 ("mm/page_alloc: restrict max order of merging on >>> isolated pageblock") >>> Link: https://lkml.org/lkml/2016/3/2/280 >>> Reported-by: Hanjun Guo >>> Debugged-by: Laura Abbot

Re: [PATCH 1/3] leds: triggers: add support for RGB triggers

2016-03-23 Thread Jacek Anaszewski
On 03/22/2016 11:06 PM, Heiner Kallweit wrote: Am 22.03.2016 um 17:00 schrieb Jacek Anaszewski: On 03/22/2016 12:47 PM, Heiner Kallweit wrote: Am 22.03.2016 um 09:05 schrieb Jacek Anaszewski: On 03/21/2016 06:34 PM, Heiner Kallweit wrote: Am 21.03.2016 um 16:35 schrieb Jacek Anaszewski: On 0

Re: [PATCH v3] iwlwifi: dvm: use alloc_ordered_workqueue()

2016-03-23 Thread Grumbach, Emmanuel
On 03/19/2016 07:15 AM, Eva Rachel Retuya wrote: > Use alloc_ordered_workqueue() to allocate the workqueue instead of > create_singlethread_workqueue() since the latter is deprecated and is > scheduled > for removal. > > There are work items doing related operations that shouldn't be swapped wh

Re: [PATCH v2 2/5] perf: Free aux pages in unmap path

2016-03-23 Thread Peter Zijlstra
On Thu, Mar 17, 2016 at 03:05:42PM +0200, Alexander Shishkin wrote: > > We should be able to send IPIs with rcu_read_lock() held; > Ok, so how about this one instead. Looks good, thanks!

Re: [PATCH v3] PCI: ACPI: IA64: fix IO port generic range check

2016-03-23 Thread Hanjun Guo
On 2016/3/21 19:12, Lorenzo Pieralisi wrote: The [0 - 64k] ACPI PCI IO port resource boundary check in: acpi_dev_ioresource_flags() is currently applied blindly in the ACPI resource parsing to all architectures, but only x86 suffers from that IO space limitation. On arches (ie IA64 and ARM64)

Re: [PATCH v2 16/18] dt-bindings: Add OXNAS bindings

2016-03-23 Thread Neil Armstrong
On 03/17/2016 06:27 PM, Rob Herring wrote: > On Wed, Mar 09, 2016 at 11:24:18AM +0100, Neil Armstrong wrote: >> Signed-off-by: Neil Armstrong >> --- >> Documentation/devicetree/bindings/arm/oxnas.txt | 9 + >> 1 file changed, 9 insertions(+) >> create mode 100644 Documentation/devicetree

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

2016-03-23 Thread Sergey Senozhatsky
On (03/23/16 09:37), Sergey Senozhatsky wrote: [..] > ok, I'll take a look. > > eventually (after 0003) vprintk_emit() is > > if (in_sched) { > __this_cpu_or(printk_pending, > PRINTK_PENDING_OUTPUT); > irq_work_queue(this_cpu_ptr(&wa

Re: [PATCH v4 0/2] clk: Add Artpec-6 SoC support

2016-03-23 Thread Lars Persson
Michael & Stephen, Should we resubmit this series for 4.7 ? Also to follow up on your previous request to use the platform driver framework. We have noticed recent submissions use a style that mixes early clocks registered with CLK_OF_DECLARE and the remaining clocks registered through a plat

[PATCH 3/4 v3] drm: atmel_hldc: Use generic drm_connector_register_all() helper

2016-03-23 Thread Alexey Brodkin
This driver used to have its own implementation of connector_register_all() which actually was taken as a prototype of drm_connector_register_all(). Now when drm_connector_register_all() exists reusing it here. And while at it replace atmel_hlcdc_dc_connector_unplug_all() with generic drm_connect

[PATCH 0/4 v3] drm: Introduce drm_connector_register_all() helper

2016-03-23 Thread Alexey Brodkin
As a pair to already existing drm_connector_unplug_all() (which we'll rename in this series to drm_connector_unregister_all()) we're adding generic implementation of what is already done in some drivers for registering all connectors. After implementation of that new helper we're updating 2 driver

Re: [PATCH v2 1/6] x86/mm/pat: Change PAT to support non-default PAT MSR

2016-03-23 Thread Borislav Petkov
On Tue, Mar 22, 2016 at 12:35:19PM -0600, Toshi Kani wrote: > Right.  Will change to "Add support of non-default PAT MSR setting at > handoff". Please remove this "handoff" notion from the text. Every hw register is being handed off to the OS once the kernel takes over so there's no need to make i

[PATCH 1/4 v3] drm: Rename drm_connector_unplug_all() to drm_connector_unregister_all()

2016-03-23 Thread Alexey Brodkin
Current name is a bit misleading because what that helper function really does it calls drm_connector_unregister() for all connectors. This all has nothing to do with hotplugging so let's name things properly. And while at it remove potentially dangerous locking around drm_connector_unregister()

[PATCH 4/4 v3] drm: rcar-du: Use generic drm_connector_register_all() helper

2016-03-23 Thread Alexey Brodkin
Now that a generic drm_connector_register_all() helper exists we may safely substitute it for the driver-specific implementation of connectors plugging in sysfs. Signed-off-by: Alexey Brodkin Cc: Daniel Vetter Cc: David Airlie Cc: linux-renesas-...@vger.kernel.org Acked-by: Laurent Pinchart --

[PATCH 2/4 v3] drm: Introduce drm_connector_register_all() helper

2016-03-23 Thread Alexey Brodkin
As a pair to already existing drm_connector_unregister_all() we're adding generic implementation of what is already done in some drivers. Once this helper is implemented we'll be ready to switch existing driver-specific implementations with the generic one. Signed-off-by: Alexey Brodkin Cc: Dani

Re: [PATCH v2 3/6] x86/mtrr: Fix Xorg crashes in Qemu sessions

2016-03-23 Thread Borislav Petkov
On Tue, Mar 22, 2016 at 03:53:30PM -0600, Toshi Kani wrote: > Yes. I had to remove this number since checkpatch complained that I needed > to quote the whole patch tile again.  I will ignore this checkpatch error > and add this commit number here. Actually, checkpatch is right. We do quote the com

regmap: mmio: regression in pre-v4.6-rc1

2016-03-23 Thread Alexander Stein
Hi, I'm currently trying to get PCIe working on LS1021A (little-endian ARM). For link-detection I need access to a syscon perpheral (SCFG) which is attched to CPU as big-endian. The corresponding DT part is: scfg: scfg@157 { compatible = "fsl,ls1021a-

Re: [PATCH v2 2/6] x86/mm/pat: Add pat_disable() interface

2016-03-23 Thread Borislav Petkov
On Tue, Mar 22, 2016 at 03:40:45PM -0600, Toshi Kani wrote: > Will change to "Prevent the OS from initializing the PAT MSR". > > I wanted to clarify that "disable" does not mean to disable PAT MSR. How do you "disable PAT MSR" ? I think you're overdocumenting this. pat_disable() is as clear as d

Re: Delete flush cache all in arm64 platform.

2016-03-23 Thread Chen Feng
Hi Mark & Laura On 2016/3/21 23:58, Laura Abbott wrote: > On 03/21/2016 03:08 AM, Mark Rutland wrote: >> [adding LAKML] >> >> On Mon, Mar 21, 2016 at 04:07:47PM +0800, Chen Feng wrote: >>> Hi Mark, >> >> Hi, >> >>> With 68234df4ea7939f98431aa81113fbdce10c4a84b >>> arm64: kill flush_cache_all() >>>

[PATCH v5] iio: potentiometer: add driver for Microchip MCP413X/414X/415X/416X/423X/424X/425X/426X

2016-03-23 Thread Slawomir Stepien
The following functionalities are supported: - write, read from volatile memory Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/22060b.pdf Signed-off-by: Slawomir Stepien --- Changes since v4: - Added necessary include files and sorted all includes - Added missing mutex unlock when t

[PATCH] Fixes: e490c9144cfa ("tty: Add software emulated RS485 support for 8250")

2016-03-23 Thread yegorslists
From: Yegor Yefremov When in half-duplex mode RX will be disabled before TX, but not enabled after deactivating transmitter. This patch enables UART_IER_RLSI and UART_IER_RDI interrupts after TX is over. Cc: Matwey V. Kornilov Signed-off-by: Yegor Yefremov --- drivers/tty/serial/8250/8250_por

[PATCH v5 19/20] x86, kaslr: Allow random address to be below loaded address

2016-03-23 Thread Baoquan He
Now new randomized output can only be chosen from regions above loaded address. In this case, for bootloaders like kexec which always loads kernel near the end of ram, it doesn't do randomization at all. Or kernel is loaded in a very big starting address, we should not give up that area is loaded i

Re: [PATCH 1/4 v3] drm: Rename drm_connector_unplug_all() to drm_connector_unregister_all()

2016-03-23 Thread Boris Brezillon
On Wed, 23 Mar 2016 11:42:54 +0300 Alexey Brodkin wrote: > Current name is a bit misleading because what that helper function > really does it calls drm_connector_unregister() for all connectors. > > This all has nothing to do with hotplugging so let's name things > properly. > > And while at i

[PATCH 2/2] irqchip/mbigen:Change the config option of mbigen driver to non-configurable

2016-03-23 Thread MaJun
From: Ma Jun This config is selected by CONFIG_ARCH_HISI, So we change this config to non-configurable. I also adjust the mbigen config position try to sort the configs in alphabetical order. Signed-off-by: Ma Jun --- drivers/irqchip/Kconfig | 14 ++ 1 files changed, 6 insertion

[PATCH 0/2] Change the the config option of mbigen driver.

2016-03-23 Thread MaJun
From: Ma Jun In current driver, the config of mbigen driver is a configurable option and have nothing to do with CONFIG_ARCH_HISI. As a module of Hisilicon SOC, the config of mbigen driver should be selected by CONFIG_ARCH_HISI on Hisilicon platform, but not a configurable option. This patch se

[PATCH 1/2]ARM64: Enable mbigen interrupt controller on Hisilicon platform

2016-03-23 Thread MaJun
From: Ma Jun As a interrupt controller used on some of hisilicon SOCs(660,1610 etc.), mbigen driver should be enabled when CONFIG_ARCH_HISI is enabled. Signed-off-by: Ma Jun --- arch/arm64/Kconfig.platforms |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm64/Kcon

RE: [PATCH] mpt3sas: Don't overreach ioc->reply_post[] during initialization

2016-03-23 Thread Chaitra Basappa
Hi, Please consider this patch as Ack-by: Chaitra P B Thanks, Chaitra -Original Message- From: Martin K. Petersen [mailto:martin.peter...@oracle.com] Sent: Tuesday, March 22, 2016 6:00 AM To: Calvin Owens Cc: Sathya Prakash; Chaitra P B; Suganath Prabu Subramani; James E.J. Bottomley;

Re: [PATCH 1/5] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-03-23 Thread Peter Zijlstra
On Mon, Mar 14, 2016 at 09:59:41AM +, Wang Nan wrote: > Add new ioctl() to pause/resume ring-buffer output. > > In some situations we want to read from ring buffer only when we > ensure nothing can write to the ring buffer during reading. Without > this patch we have to turn off all events att

Re: [PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-03-23 Thread Alexander Stein
On Monday 07 March 2016 11:36:22, Minghuan Lian wrote: > Some kind of NXP Layerscape SoC provides a MSI > implementation which uses two SCFG registers MSIIR and > MSIR to support 32 MSI interrupts for each PCIe controller. > The patch is to support it. > > Signed-off-by: Minghuan Lian Tested-by:

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

2016-03-23 Thread Petr Mladek
On Wed 2016-03-23 10:24:43, Sergey Senozhatsky wrote: > On (03/22/16 17:36), Petr Mladek wrote: > > > - /* cpu currently holding logbuf_lock in this function */ > > > - static unsigned int logbuf_cpu = UINT_MAX; > > > + bool in_panic = console_loglevel == CONSOLE_LOGLEVEL_MOTORMOUTH; > > > > I am

[PATCH] ARCv2: Additional trace IRQs to support locking correctness validator

2016-03-23 Thread Evgeny Voevodin
Flags should be saved in the same format in which clri instruction saves them since they are passed directly to seti instruction over arch_local_save_flags/arch_local_irq_restore calls. Trace of all clri/seti assembly calls is added to support locking correctness validator properly. With this patch

Re: [PATCH 1/5] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-03-23 Thread Wangnan (F)
On 2016/3/23 17:16, Peter Zijlstra wrote: On Mon, Mar 14, 2016 at 09:59:41AM +, Wang Nan wrote: Add new ioctl() to pause/resume ring-buffer output. In some situations we want to read from ring buffer only when we ensure nothing can write to the ring buffer during reading. Without this pat

[PATCH] mm/page_alloc: prevent merging between isolated and other pageblocks

2016-03-23 Thread Vlastimil Babka
Hanjun Guo has reported that a CMA stress test causes broken accounting of CMA and free pages: > Before the test, I got: > -bash-4.3# cat /proc/meminfo | grep Cma > CmaTotal: 204800 kB > CmaFree: 195044 kB > > > After running the test: > -bash-4.3# cat /proc/meminfo | grep Cma > C

Re: regmap: mmio: regression in pre-v4.6-rc1

2016-03-23 Thread Alexander Stein
On Wednesday 23 March 2016 09:48:42, Alexander Stein wrote: > I'm currently trying to get PCIe working on LS1021A (little-endian ARM). For > link-detection I need access to a syscon perpheral (SCFG) which is attched to > CPU as big-endian. > The corresponding DT part is: > > scfg:

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-23 Thread Peter Zijlstra
On Mon, Mar 14, 2016 at 09:59:43AM +, Wang Nan wrote: > Convert perf_output_begin to __perf_output_begin and make the later > function able to write records from the end of the ring buffer. > Following commits will utilize the 'backward' flag. > > This patch doesn't introduce any extra perform

Re: [PATCH 1/5] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-03-23 Thread Peter Zijlstra
On Wed, Mar 23, 2016 at 05:33:53PM +0800, Wangnan (F) wrote: > Glad to see you start to look at this patchset. My brain is completely fried from staring at fuzzer output for weeks, I just need to do _something_, _anything_ else for a while :-)

[PATCH] sbs-battery: fix power status when battery is dry

2016-03-23 Thread YH Huang
When the battery is dry and BATTERY_FULL_DISCHARGED is set, we should check BATTERY_DISCHARGING to decide the power status. If BATTERY_DISCHARGING is set, the power status is not charging. Or the power status should be charging. Signed-off-by: YH Huang --- drivers/power/sbs-battery.c | 22

Re: [PATCH V2 0/2] kexec: Make a pair of map/unmap reserved pages in error path

2016-03-23 Thread Xunlei Pang
On 2016/03/23 at 16:23, Baoquan He wrote: > On 03/23/16 at 11:32am, Xunlei Pang wrote: >> On 2016/03/23 at 10:48, Baoquan He wrote: >>> On 03/01/16 at 05:53pm, Xunlei Pang wrote: This is a bug fix. After this, I will try to do a cleanup for crash_unmap/map_reserved_pages() (only

[PATCH] net: ping: make ping_v6_sendmsg static

2016-03-23 Thread Haishuang Yan
As ping_v6_sendmsg is used only in this file, making it static The body of "pingv6_prot" and "pingv6_protosw" were moved at the middle of the file, to avoid having to declare some static prototypes. Signed-off-by: Haishuang Yan --- include/net/ping.h | 1 - net/ipv6/ping.c| 59

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

2016-03-23 Thread Petr Mladek
On Wed 2016-03-23 09:37:25, Sergey Senozhatsky wrote: > Hello Petr, > > On (03/22/16 14:11), Petr Mladek wrote: > > > + * Set printing_func() sleep condition early, under the @logbuf_lock. > > > + * So printing kthread (if RUNNING) will go to console_lock() and spin > > > + * on @logbuf_lock. >

Re: [PATCH 5/5] perf core: Reduce perf event output overhead by new overflow handler

2016-03-23 Thread Peter Zijlstra
On Mon, Mar 14, 2016 at 09:59:45AM +, Wang Nan wrote: > By creating onward and backward specific overflow handlers and setting > them according to event's backward setting, normal sampling events > don't need checking backward setting of an event any more. The normal antonym of backward is for

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-23 Thread Wangnan (F)
On 2016/3/23 17:50, Peter Zijlstra wrote: On Mon, Mar 14, 2016 at 09:59:43AM +, Wang Nan wrote: Convert perf_output_begin to __perf_output_begin and make the later function able to write records from the end of the ring buffer. Following commits will utilize the 'backward' flag. This patc

Re: [PATCH v12 08/29] HMM: add device page fault support v6.

2016-03-23 Thread Jerome Glisse
On Wed, Mar 23, 2016 at 12:22:23PM +0530, Aneesh Kumar K.V wrote: > Jérôme Glisse writes: > > > [ text/plain ] > > This patch add helper for device page fault. Thus helpers will fill > > the mirror page table using the CPU page table and synchronizing > > with any update to CPU page table. > > >

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-23 Thread Sebastian Frias
Hi Uwe, On 03/22/2016 08:42 PM, Uwe Kleine-König wrote: > Hello Sebastian, > > On Tue, Mar 22, 2016 at 03:34:23PM +0100, Sebastian Frias wrote: >> I think we are in a deadlock :-) >> I'm going to reply inline below, but I will also send a different email >> to Daniel with a small recap. >> I thin

[PATCH v4 02/23] ncr5380: Remove FLAG_NO_PSEUDO_DMA where possible

2016-03-23 Thread Finn Thain
Drivers that define PSEUDO_DMA also define NCR5380_dma_xfer_len. The core driver must call NCR5380_dma_xfer_len which means FLAG_NO_PSEUDO_DMA can be eradicated from the core driver. dmx3191d doesn't define PSEUDO_DMA and has no use for FLAG_NO_PSEUDO_DMA, so remove it there also. Signed-off-by:

[PATCH v4 04/23] atari_NCR5380: Remove DMA_MIN_SIZE macro

2016-03-23 Thread Finn Thain
Only the atari_scsi and sun3_scsi drivers define DMA_MIN_SIZE. Both drivers also define NCR5380_dma_xfer_len, which means DMA_MIN_SIZE can be removed from the core driver. This removes another discrepancy between the two core drivers. Signed-off-by: Finn Thain Tested-by: Michael Schmitz Reviewe

[PATCH v4 15/23] dmx3191d: Drop max_sectors limit

2016-03-23 Thread Finn Thain
The dmx3191d driver is not capable of DMA or PDMA so all transfers use PIO. Now that large slow PIO transfers periodically stop and call cond_resched(), the max_sectors limit can go away. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke --- drivers/scsi/dmx3191d.c |1 - 1 file change

[PATCH v4 20/23] atari_scsi: Set a reasonable default for cmd_per_lun

2016-03-23 Thread Finn Thain
This setting does not need to be conditional on Atari ST or TT. Signed-off-by: Finn Thain Tested-by: Michael Schmitz Reviewed-by: Hannes Reinecke --- Changed since v1: - Set the default cmd_per_lun to 4 based on test results. Changed since v2: - Revert the default cmd_per_lun to 2, like in t

[PATCH v4 17/23] ncr5380: Remove remaining register storage qualifiers

2016-03-23 Thread Finn Thain
Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz Tested-by: Ondrej Zary --- drivers/scsi/NCR5380.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: linux/drivers/scsi/NCR5380.c =

[PATCH v4 18/23] ncr5380: Remove DONT_USE_INTR and AUTOPROBE_IRQ macros

2016-03-23 Thread Finn Thain
Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz Tested-by: Ondrej Zary --- drivers/scsi/NCR5380.c | 12 +--- drivers/scsi/NCR5380.h |4 drivers/scsi/arm/oak.c |2 -- drivers/scsi/dmx3191d.c |2 -- drivers/scsi/dtc.c |

[PATCH v4 13/23] ncr5380: Remove disused atari_NCR5380.c core driver

2016-03-23 Thread Finn Thain
Now that atari_scsi and sun3_scsi have been converted to use the NCR5380.c core driver, remove atari_NCR5380.c. Also remove the last vestiges of its Tagged Command Queueing implementation from the wrapper drivers. The TCQ support in atari_NCR5380.c is abandoned by this patch. It is not merged into

[PATCH v4 22/23] mac_scsi: Fix pseudo DMA implementation

2016-03-23 Thread Finn Thain
Fix various issues: Comments about bus errors are incorrect. The PDMA asm must return the size of the memory access that faulted so the transfer count can be adjusted accordingly. A phase change may cause a bus error but should not be treated as failure. A bus error does not always imply a phase ch

Re: Question about PCI I/O space in ARM64

2016-03-23 Thread Catalin Marinas
On Wed, Mar 23, 2016 at 11:12:41AM +0800, Kefeng Wang wrote: > If no pci, the PCI I/O space(16M) is mapped into an irrelevant mem > space(right ?), No. It is not mapped at all. > not a right IO space, > that is, no one call pci_remap_iospace() to remap the memory mapped I/O > space, once driver

[PATCH v4 16/23] ncr5380: Fix register decoding for debugging

2016-03-23 Thread Finn Thain
Decode all bits in the chip registers. They are all useful at times. Fix printk severity so that this output can be suppressed along with the other debugging output. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz Tested-by: Ondrej Zary --- drivers/scsi/NCR5

[PATCH v4 12/23] sun3_scsi: Adopt NCR5380.c core driver

2016-03-23 Thread Finn Thain
Add support for the custom Sun 3 DMA logic to the NCR5380.c core driver. This code is copied from atari_NCR5380.c. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz Tested-by: Ondrej Zary --- The Sun 3 DMA code is still configured by macros. I have simplified

[PATCH v4 14/23] ncr5380: Reduce max_lun limit

2016-03-23 Thread Finn Thain
The driver has a limit of eight LUs because of the byte-sized bitfield that is used for busy flags. That means the maximum LUN is 7. The default is 8. Signed-off-by: Finn Thain Tested-by: Michael Schmitz Tested-by: Ondrej Zary Reviewed-by: Hannes Reinecke --- Changed since v1: - Reduce shost

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-23 Thread Mason
On 22/03/2016 20:42, Uwe Kleine-König wrote: > Preconditions: > - Some of the devices a given driver handles have a reset line and >others don't. > - A non-empty subset (maybe all) of the devices that have a reset line >require that this reset line is used. > > Then the way to handle th

[PATCH v4 00/23] ncr5380: Eliminate macros, reduce code duplication, fix bugs etc

2016-03-23 Thread Finn Thain
This patch series has more macro elimination and some tweaks to the DMA hooks so that all the wrapper drivers can share the same core DMA algorithm. This resolves the major discrepancies between the two core drivers, which relate to code conditional on the REAL_DMA and PSEUDO_DMA macros. After al

[PATCH v4 23/23] ncr5380: Call complete_cmd() for disconnected commands on bus reset

2016-03-23 Thread Finn Thain
I'm told that some targets are liable to disconnect a REQUEST SENSE command. Theoretically this would cause a command undergoing autosense to be moved onto the disconnected list. The bus reset handler must call complete_cmd() for these commands, otherwise the hostdata->sensing pointer will not get

[PATCH v4 11/23] atari_scsi: Adopt NCR5380.c core driver

2016-03-23 Thread Finn Thain
Add support for the Atari ST DMA chip to the NCR5380.c core driver. This code is copied from atari_NCR5380.c. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz Tested-by: Ondrej Zary --- drivers/scsi/NCR5380.c| 32 driver

[PATCH v4 19/23] ncr5380: Update usage documentation

2016-03-23 Thread Finn Thain
Update kernel parameter documentation for atari_scsi, mac_scsi and g_NCR5380 drivers. Remove duplication. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke --- Documentation/scsi/g_NCR5380.txt | 17 ++- Documentation/scsi/scsi-parameters.txt | 11 +++--- drivers/

[PATCH v4 21/23] atari_scsi: Allow can_queue to be increased for Falcon

2016-03-23 Thread Finn Thain
The benefit of limiting can_queue to 1 is that atari_scsi shares the ST DMA chip more fairly with other drivers (e.g. falcon-ide). Unfortunately, this can limit SCSI bus utilization. On systems without IDE, atari_scsi should issue SCSI commands whenever it can arbitrate for the bus. Make that poss

[PATCH v4 03/23] ncr5380: Remove REAL_DMA and REAL_DMA_POLL macros

2016-03-23 Thread Finn Thain
For the NCR5380.c core driver, these macros are never used. If REAL_DMA were to be defined, compilation would fail. For the atari_NCR5380.c core driver, REAL_DMA is always defined. Hence these macros are pointless. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmi

[PATCH v4 09/23] ncr5380: Adopt uniform DMA setup convention

2016-03-23 Thread Finn Thain
Standardize the DMA setup hooks so that the DMA implementation in atari_NCR5380.c can be reconciled with pseudo DMA implementation in NCR5380.c. Calls to NCR5380_dma_recv_setup() and NCR5380_dma_send_setup() return a negative value on failure, zero on PDMA transfer success and a positive byte coun

[PATCH v4 08/23] ncr5380: Use DMA hooks for PDMA

2016-03-23 Thread Finn Thain
Those wrapper drivers which use DMA define the REAL_DMA macro and those which use pseudo DMA define PSEUDO_DMA. These macros need to be removed for a number of reasons, not least of which is to have drivers share more code. Redefine the PDMA send and receive hooks as DMA setup hooks, so that the D

[PATCH v4 07/23] ncr5380: Remove BOARD_REQUIRES_NO_DELAY macro

2016-03-23 Thread Finn Thain
The io_recovery_delay macro is intended to insert a microsecond delay between the chip register accesses that begin a DMA operation. This is reportedly needed for some ISA boards. Reverse the sense of the macro test so that in the common case, where no delay is required, drivers need not define th

[PATCH v4 10/23] ncr5380: Merge DMA implementation from atari_NCR5380 core driver

2016-03-23 Thread Finn Thain
Adopt the DMA implementation from atari_NCR5380.c. This means that atari_scsi and sun3_scsi can make use of the NCR5380.c core driver and the atari_NCR5380.c driver fork can be made redundant. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz Tested-by: Ondrej Za

[PATCH v4 06/23] ncr5380: Remove PSEUDO_DMA macro

2016-03-23 Thread Finn Thain
For those wrapper drivers which only implement Programmed IO, have NCR5380_dma_xfer_len() evaluate to zero. That allows PDMA to be easily disabled at run-time and so the PSEUDO_DMA macro is no longer needed. Also remove the spin counters used for debugging pseudo DMA drivers. Signed-off-by: Finn

[PATCH v4 05/23] ncr5380: Disable the DMA errata workaround flag by default

2016-03-23 Thread Finn Thain
The only chip that needs the workarounds enabled is an early NMOS device. That means that the common case is to disable them. Unfortunately the sense of the flag is such that it has to be set for the common case. Rename the flag so that zero can be used to mean "no errata workarounds needed". Thi

[PATCH v4 01/23] g_ncr5380: Remove CONFIG_SCSI_GENERIC_NCR53C400

2016-03-23 Thread Finn Thain
This change brings a number of improvements: fewer macros, better test coverage, simpler code and sane Kconfig options. The downside is a small chance of incompatibility (which seems unavoidable). CONFIG_SCSI_GENERIC_NCR53C400 exists to enable or inhibit pseudo DMA transfers when the driver is use

RE: [RFC PATCH 0/4] ACPI based PCI host driver with generic ECAM

2016-03-23 Thread Gabriele Paoloni
Hi Jayachandran > -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Jayachandran C > Sent: 18 March 2016 17:48 > To: Bjorn Helgaas; Tomasz Nowicki; raf...@kernel.org > Cc: Jayachandran C; Arnd Bergmann; Will Deacon; Ca

Re: [PATCH] drivers: firmware: psci: make two helper functions static

2016-03-23 Thread Lorenzo Pieralisi
On Tue, Mar 22, 2016 at 10:31:45PM +0800, Jisheng Zhang wrote: > psci_power_state_loses_context() and psci_power_state_is_valid are only > used internally now, so make them static. > > Signed-off-by: Jisheng Zhang > --- > drivers/firmware/psci.c | 4 ++-- > include/linux/psci.h| 2 -- > 2 fi

Re: [PATCH v12 08/29] HMM: add device page fault support v6.

2016-03-23 Thread Aneesh Kumar K.V
Jerome Glisse writes: > [ text/plain ] > On Wed, Mar 23, 2016 at 12:22:23PM +0530, Aneesh Kumar K.V wrote: >> Jérôme Glisse writes: >> >> > [ text/plain ] >> > This patch add helper for device page fault. Thus helpers will fill >> > the mirror page table using the CPU page table and synchronizi

[PATCH] [media] dvb-usb: hide unused functions

2016-03-23 Thread Arnd Bergmann
A couple of data structures in the dibusb-common file are only accessed when CONFIG_DVB_DIB3000MC is enabled, otherwise we get a harmless gcc warning: usb/dvb-usb/dibusb-common.c:223:34: error: 'dib3000p_panasonic_agc_config' defined but not used usb/dvb-usb/dibusb-common.c:211:32: error: 'stk300

Re: regmap: mmio: regression in pre-v4.6-rc1

2016-03-23 Thread Mark Brown
On Wed, Mar 23, 2016 at 09:48:42AM +0100, Alexander Stein wrote: Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. > I'm currently trying to get PCIe working on LS1021A (lit

[PATCH] i40iw: avoid potential uninitialized variable use

2016-03-23 Thread Arnd Bergmann
gcc finds that the i40iw_make_cm_node() function in the recently added i40iw driver uses an uninitilized variable as an index into an array if CONFIG_IPV6 is disabled and the driver uses IPv6 mode: drivers/infiniband/hw/i40iw/i40iw_cm.c: In function 'i40iw_make_cm_node': drivers/infiniband/hw/i40i

[PATCH] mfd: syscon: include errno.h from header

2016-03-23 Thread Arnd Bergmann
The syscon header uses the ENOTSUPP error constant, but doesn't include the header that defines it. This causes a build error after the imx pinctrl driver started using syscon: include/linux/mfd/syscon.h: In function 'syscon_node_to_regmap': include/linux/mfd/syscon.h:32:18: error: 'ENOTSUPP' unde

  1   2   3   4   5   6   7   8   >