[PATCH 22/71] ncr5380: Eliminate selecting state

2015-11-18 Thread Finn Thain
Linux v2.1.105 changed the algorithm for polling for the BSY signal in NCR5380_select() and NCR5380_main(). Presently, this code has a bug. Back then, NCR5380_set_timer(hostdata, 1) meant reschedule main() after sleeping for 10 ms. Repeated 25 times this provided the recommended 250 ms selection t

[PATCH 21/71] ncr5380: Sleep when polling, if possible

2015-11-18 Thread Finn Thain
When in process context, sleep during polling if doing so won't add significant latency. In interrupt context or if the lock is held, poll briefly then give up. Keep both core drivers in sync. Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.c | 73 +---

[PATCH 20/71] ncr5380: Introduce unbound workqueue

2015-11-18 Thread Finn Thain
Allocate a work queue that will permit busy waiting and sleeping. This means NCR5380_init() can potentially fail, so add this error path. Signed-off-by: Finn Thain --- In subsequent patches, the work function adopts this work queue so it can sleep while polling, which allows the removal of some

[PATCH 18/71] ncr5380: Eliminate USLEEP_WAITLONG delay

2015-11-18 Thread Finn Thain
Linux 2.1.105 introduced the USLEEP_WAITLONG delay, apparently "needed for Mustek scanners". It is intended to stall the issue queue for 5 seconds. There are a number of problems with this. 1. Only g_NCR5380 enables the delay, which implies that the other five drivers using the NCR5380.c core d

[PATCH 17/71] ncr5380: Keep BSY asserted when entering SELECTION phase

2015-11-18 Thread Finn Thain
NCR5380.c is not compliant with the SCSI-2 standard (at least, not with the draft revision 10L that I have to refer to). The selection algorithm in atari_NCR5380.c is correct, so use that. Signed-off-by: Finn Thain --- The NCR 5380 Family datasheet has a flow chart to support this. Please see h

Re: [PATCH 07/10] KVM: x86: MMU: Encapsulate the type of rmap-chain head in a new struct

2015-11-18 Thread Paolo Bonzini
On 18/11/2015 04:21, Xiao Guangrong wrote: > > > On 11/12/2015 07:55 PM, Takuya Yoshikawa wrote: >> @@ -1720,7 +1724,7 @@ static struct kvm_mmu_page >> *kvm_mmu_alloc_page(struct kvm_vcpu *vcpu, >>* this feature. See the comments in kvm_zap_obsolete_pages(). >>*/ >> list_a

[PATCH 13/71] ncr5380: Remove redundant register writes

2015-11-18 Thread Finn Thain
Remove the duplicate write to the Select Enable Register that appeared in v1.1.38. Also remove the redundant write to Initiator Command Register prior to calling do_abort(). Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.c |2 -- drivers/scsi/atari_NCR5380.c |3 --- 2 files c

[PATCH 14/71] ncr5380: Use return instead of goto in NCR5380_select()

2015-11-18 Thread Finn Thain
The "failed" label in NCR5380_select() is not helpful. Some failures return 0, others -1. Use return instead of goto to improve clarity and brevity, like atari_NCR5380.c does. Fix the relevant comments. Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.c | 30 --

[PATCH 15/71] ncr5380: Always escalate bad target time-out in NCR5380_select()

2015-11-18 Thread Finn Thain
Remove the restart_select and targets_present variables introduced in Linux v1.1.38. The former was used only for a questionable debug printk and the latter "so we can call a select failure a retryable condition". Well, retrying select failure in general is a different problem to a target that does

Re: [PATCH 2/2] mm: do not loop over ALLOC_NO_WATERMARKS without triggering reclaim

2015-11-18 Thread Michal Hocko
On Tue 17-11-15 19:58:09, Tetsuo Handa wrote: > Michal Hocko wrote: > > __alloc_pages_slowpath is looping over ALLOC_NO_WATERMARKS requests if > > __GFP_NOFAIL is requested. This is fragile because we are basically > > relying on somebody else to make the reclaim (be it the direct reclaim > > or OO

Re: [PATCH 3/3] dl2k: Implement suspend

2015-11-18 Thread Ondrej Zary
On Tuesday 17 November 2015, Francois Romieu wrote: > Ondrej Zary : > [...] > > > diff --git a/drivers/net/ethernet/dlink/dl2k.c > > b/drivers/net/ethernet/dlink/dl2k.c index 9e9baa0..b53dfa7 100644 > > --- a/drivers/net/ethernet/dlink/dl2k.c > > +++ b/drivers/net/ethernet/dlink/dl2k.c > > @@ -182

Re: [BUG REPORT] perf tools: x86_64: Broken calllchain when sampling taken at 'callq' instruction

2015-11-18 Thread Wangnan (F)
On 2015/11/18 16:48, Jiri Olsa wrote: On Wed, Nov 18, 2015 at 03:20:36PM +0800, Wangnan (F) wrote: SNIP Then use perf to trace it: # ./pref record -g -F 9 --call-graph dwarf ./test_dwarf_unwind # ./perf report --no-children --stdio ... 1.23% test_dwarf_unwi test_dwarf_unwind

[PATCH 16/71] ncr5380: Proceed with next command after NCR5380_select() calls scsi_done

2015-11-18 Thread Finn Thain
If a target disappears from the SCSI bus, NCR5380_select() may subsequently fail with a time-out. In this situation, scsi_done is called and NCR5380_select() returns 0. Both hostdata->connected and hostdata->selecting are NULL and the main loop should proceed with the next command in the issue queu

[PATCH 10/71] atari_NCR5380: Remove RESET_BOOT, CONFIG_ATARI_SCSI_TOSHIBA_DELAY and CONFIG_ATARI_SCSI_RESET_BOOT

2015-11-18 Thread Finn Thain
The atari_NCR5380.c core driver now takes care of bus reset upon driver initialization if required (same as NCR5380.c). Move the Toshiba CD-ROM support into the core driver, enabled with a host flag, so that all NCR5380 drivers can make use of it. Drop the RESET_BOOT macros and the ATARI_SCSI_RESE

Re: [PATCH v2 2/4] scripts/kernel-doc: Replacing highlights hash by an array

2015-11-18 Thread Mauro Carvalho Chehab
Em Tue, 17 Nov 2015 17:21:32 -0700 Jonathan Corbet escreveu: > On Tue, 17 Nov 2015 13:29:49 -0200 > Mauro Carvalho Chehab wrote: > > > The enclosed patch should do the trick. I tested it with perl 5.10 and > > perl 5.22 it worked fine with both versions. > > Indeed it seems to work - thanks!

[PATCH 11/71] ncr5380: Simplify bus reset handlers

2015-11-18 Thread Finn Thain
Make use of do_reset() in the bus reset handler in atari_NCR5380.c. The version in NCR5380.c already does so. Keep them in sync. Signed-off-by: Finn Thain --- Bus reset handlers in both core drivers still have serious problems for EH purposes. Those problems are addressed later in this series.

Re: [PATCH 4/9] srpt: chain RDMA READ/WRITE requests

2015-11-18 Thread Sagi Grimberg
On 18/11/2015 03:17, Bart Van Assche wrote: On 11/13/2015 05:46 AM, Christoph Hellwig wrote: -ret = ib_post_send(ch->qp, &wr.wr, &bad_wr); -if (ret) -break; +if (i == n_rdma - 1) { +/* only get completion event for the last rdma read */ +

[PATCH 09/71] atari_NCR5380: Reset bus on driver initialization if required

2015-11-18 Thread Finn Thain
Merge the bus reset code from NCR5380.c into atari_NCR5380.c. This allows for removal of a lot of duplicated code conditional on the RESET_BOOT macro (in the next patch). The atari_NCR5380.c fork lacks the do_reset() and NCR5380_poll_politely() routines from NCR5380.c, so introduce them. They are

[PATCH 12/71] ncr5380: Remove unused hostdata->aborted flag

2015-11-18 Thread Finn Thain
The aborted flag was introduced in v1.1.38 but never used. Remove it. Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.c |2 -- drivers/scsi/NCR5380.h |1 - drivers/scsi/atari_NCR5380.c |2 -- 3 files changed, 5 deletions(-) Index: linux/drivers/scsi/NCR5380.c ===

[PATCH 07/71] ncr5380: Split NCR5380_init() into two functions

2015-11-18 Thread Finn Thain
This patch splits the NCR5380_init() function into two parts, similar to the scheme used with atari_NCR5380.c. This avoids two problems. Firstly, NCR5380_init() may perform a bus reset, which would cause the chip to assert IRQ. The chip is unable to mask its bus reset interrupt. Drivers can't call

[PATCH 08/71] ncr5380: Move NCR53C400-specific code

2015-11-18 Thread Finn Thain
Move board-specific code like this, NCR5380_write(C400_CONTROL_STATUS_REG, CSR_BASE); from the core driver to the board driver. Eliminate the NCR53C400 macro from the core driver. Removal of all macros like this one will be necessary in order to have one core driver that can support all kin

[PATCH 05/71] ncr5380: Remove NCR5380_local_declare and NCR5380_setup macros

2015-11-18 Thread Finn Thain
The NCR5380_local_declare and NCR5380_setup macros exist to define and initialize a particular local variable, to provide the address of the chip registers needed for the driver's implementation of its NCR5380_read/write register access macros. In cumana_1 and macscsi, these macros generate pointl

[PATCH 03/71] ncr5380: Eliminate PDEBUG*, TDEBUG* and DTCDEBUG* macros

2015-11-18 Thread Finn Thain
Replace {P,T,DTC}DEBUG_INIT with NDEBUG_INIT. Remove dead debugging code, including code that's conditional upon *DEBUG_TRANSFER. Signed-off-by: Finn Thain --- drivers/scsi/dtc.c | 18 ++ drivers/scsi/dtc.h | 27 --- drivers/scsi/pas16.c | 21 ++

[PATCH 06/71] ncr5380: Remove NCR5380_instance_name macro

2015-11-18 Thread Finn Thain
This macro makes the code cryptic. Remove it. Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.c |2 +- drivers/scsi/g_NCR5380.c |7 --- drivers/scsi/g_NCR5380.h |2 -- 3 files changed, 5 insertions(+), 6 deletions(-) Index: linux/drivers/scsi/g_NCR5380.c ==

[PATCH 02/71] ncr5380: Remove redundant static variable initializers

2015-11-18 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.c |2 +- drivers/scsi/dtc.c |4 ++-- drivers/scsi/g_NCR5380.c |4 ++-- drivers/scsi/pas16.c | 10 +- drivers/scsi/sun3_scsi.c |8 drivers/scsi/t128.c |4 ++-- 6 files changed, 16 insertions

kernel BUG at drivers/scsi/scsi_lib.c:1096!

2015-11-18 Thread Michael Ellerman
Hi folks, I'm intermittently seeing the following oops on at least one powerpc box. The BUG_ON() is from: static int scsi_init_sgtable(struct request *req, struct scsi_data_buffer *sdb) { ... count = blk_rq_map_sg(req->q, req, sdb->table.sgl); BUG_ON(count > sdb->table.ne

[PATCH 04/71] ncr5380: Remove more pointless macros

2015-11-18 Thread Finn Thain
ASM macro is never defined. rtrc in pas16.c is not used. NCR5380_map_config, do_NCR5380_intr, do_t128_intr and do_pas16_intr are unused. NCR_NOT_SET harms readability. Remove them. Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.h |3 --- drivers/scsi/g_NCR5380.c | 29 ++-

[PATCH v2] mtd: spi-nor: fsl-quadspi: add big-endian support

2015-11-18 Thread Yuan Yao
Add R/W functions for big- or little-endian registers: The qSPI controller's endian is independent of the CPU core's endian. So far, the qSPI have two versions for big-endian and little-endian. Signed-off-by: Yuan Yao --- Changed in v2: Rebase to the lastest code. --- drivers/mtd/spi-nor/fsl-qua

[PATCH] mtd: spi-nor: fsl-quadspi: add support for ls1021a

2015-11-18 Thread Yuan Yao
LS1021a also support Freescale Quad SPI controller. Add fsl-quadspi support for ls1021a chip and make SPI_FSL_QUADSPI selectable for LS1021A SOC hardwares. Signed-off-by: Yuan Yao --- drivers/mtd/spi-nor/Kconfig | 2 +- drivers/mtd/spi-nor/fsl-quadspi.c | 10 ++ 2 files changed, 1

Re: [PATCH 2/2] mm: do not loop over ALLOC_NO_WATERMARKS without triggering reclaim

2015-11-18 Thread Michal Hocko
On Wed 18-11-15 10:11:01, Michal Hocko wrote: > Besides that I fail to see why a work item would ever > want to set PF_MEMALLOC for legitimate reasons. I have done a quick git > grep over the tree and there doesn't seem to be any user. OK, I have missed one case. xfs_btree_split_worker is really s

Re: [PATCH 1/2] Remove EFI memmap quirk for UV

2015-11-18 Thread Borislav Petkov
On Wed, Nov 18, 2015 at 09:00:47AM +0100, Ingo Molnar wrote: > We should at least check the BIOS version via a DMI quirk and panic in some > nicely > informative 'upgrade your BIOS!' way to ease the transition ... Or since we're touching BIOS anyway, maybe stick a bit somewhere which says "EFI i

Re: [PATCH 2/3] perf tools: Add callchain order support for libunwind DWARF unwinder

2015-11-18 Thread Namhyung Kim
On November 18, 2015 5:25:25 PM GMT+09:00, Jiri Olsa wrote: >On Wed, Nov 18, 2015 at 02:41:14PM +0900, Namhyung Kim wrote: > >SNIP > >> > I'm not sure whether we can regard this behavior changing as a >bugfix? I >> > think >> > there may be some reason the original code explicitly avoid >creating

[PATCH 4/5] mtd: spi-nor: fsl-quadspi: add support for layerscape

2015-11-18 Thread Yuan Yao
LS1043a and LS2080A in the Layerscape family also support Freescale Quad SPI, make Quad SPI selectable for these hardwares. Signed-off-by: Yuan Yao --- drivers/mtd/spi-nor/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-no

[PATCH] Documentation: fsl-quadspi: Add fsl, ls1021-qspi compatible string

2015-11-18 Thread Yuan Yao
new compatible string: "fsl,ls1021-qspi". Signed-off-by: Yuan Yao --- Documentation/devicetree/bindings/mtd/fsl-quadspi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/fsl-quadspi.txt b/Documentation/devicetree/bindings/mtd/fsl-qua

[PATCH v2] kasan: fix kmemleak false-positive in kasan_module_alloc()

2015-11-18 Thread Andrey Ryabinin
Kmemleak reports the following leak: unreferenced object 0xfbfff41ea000 (size 20480): comm "modprobe", pid 65199, jiffies 4298875551 (age 542.568s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0

Re: [PATCH v6 15/19] arm64: ilp32: force IPC_64 in msgctl, shmctl, semctl

2015-11-18 Thread Arnd Bergmann
On Wednesday 18 November 2015 09:25:40 Andreas Schwab wrote: > Arnd Bergmann writes: > > > On Wednesday 18 November 2015 00:16:55 Yury Norov wrote: > >> > >> +/* IPC_64 */ > >> +asmlinkage long ilp32_sys_msgctl(int first, int second, void __user *uptr) > >> +{ > >> + return compat_sys_msgc

Re: CGroup Namespaces (v4)

2015-11-18 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > On Mon, Nov 16, 2015 at 04:24:27PM -0600, Eric W. Biederman wrote: >> Similary have you considered what it required to be able to safely set >> FS_USERNS_MOUNT? > > I pushed the one patch which I feel is needed to my branch (it's also > included in another reply). Adi

[PATCH v5 1/6] mm, documentation: clarify /proc/pid/status VmSwap limitations for shmem

2015-11-18 Thread Vlastimil Babka
The documentation for /proc/pid/status does not mention that the value of VmSwap counts only swapped out anonymous private pages, and not swapped out pages of the underlying shmem objects (for shmem mappings). This is not obvious, so document this limitation. Signed-off-by: Vlastimil Babka Acked-

[PATCH v5 6/6] mm, procfs: breakdown RSS for anon, shmem and file in /proc/pid/status

2015-11-18 Thread Vlastimil Babka
From: Jerome Marchand There are several shortcomings with the accounting of shared memory (SysV shm, shared anonymous mapping, mapping of a tmpfs file). The values in /proc//status and <...>/statm don't allow to distinguish between shmem memory and a shared mapping to a regular file, even though

Re: [PATCH v2 1/1] i2c: taos-evm: replace simple_strtoul by kstrtou8

2015-11-18 Thread Jean Delvare
Hi Corentin, On Wed, 18 Nov 2015 09:00:53 +0100, LABBE Corentin wrote: > The simple_strtoul function is marked as obsolete. > This patch replace it by kstrtou8. > > Signed-off-by: LABBE Corentin > --- > drivers/i2c/busses/i2c-taos-evm.c | 10 +- > 1 file changed, 9 insertions(+), 1 dele

[PATCH v5 5/6] mm, shmem: add internal shmem resident memory accounting

2015-11-18 Thread Vlastimil Babka
From: Jerome Marchand Currently looking at /proc//status or statm, there is no way to distinguish shmem pages from pages mapped to a regular file (shmem pages are mapped to /dev/zero), even though their implication in actual memory use is quite different. The internal accounting currently counts

[PATCH v5 0/6] enhance shmem process and swap accounting

2015-11-18 Thread Vlastimil Babka
Changes since v4: o Rebase on next-20151118 o Hugh pointed out a problem with private mappings of tmpfs files where smaps would show a sum of shmem object's swapped out pages and swapped out COWed pages. Fixed this by falling back to the find_get_page() approach. Patches are now layer

[PATCH v5 3/6] mm, proc: reduce cost of /proc/pid/smaps for shmem mappings

2015-11-18 Thread Vlastimil Babka
The previous patch has improved swap accounting for shmem mapping, which however made /proc/pid/smaps more expensive for shmem mappings, as we consult the radix tree for each pte_none entry, so the overal complexity is O(n*log(n)). We can reduce this significantly for mappings that cannot contain

Re: [PATCHv2 3/3] ASoC: samsung: pass filter function as pointer

2015-11-18 Thread Arnd Bergmann
On Wednesday 18 November 2015 11:13:18 Krzysztof Kozlowski wrote: > > I also tested entire patchset on Exynos4412/Trats2 board (custom kernel > with audio working) for regressions and it worked fine. However, since > this was not a S3C24xx/S3C64xx board, I don't find that testing > sufficient for

Re: [PATCH] usb: gadget: Add the console support for usb-to-serial port

2015-11-18 Thread Andy Shevchenko
On Wed, Nov 18, 2015 at 4:15 AM, Baolin Wang wrote: > On 17 November 2015 at 21:34, Andy Shevchenko > wrote: >> On Mon, Nov 16, 2015 at 9:05 AM, Baolin Wang wrote: >>> It dose not work when we want to use the usb-to-serial port based >>> on one usb gadget as a console. Thus this patch adds the

[PATCH v5 2/6] mm, proc: account for shmem swap in /proc/pid/smaps

2015-11-18 Thread Vlastimil Babka
Currently, /proc/pid/smaps will always show "Swap: 0 kB" for shmem-backed mappings, even if the mapped portion does contain pages that were swapped out. This is because unlike private anonymous mappings, shmem does not change pte to swap entry, but pte_none when swapping the page out. In the smaps

[PATCH v5 4/6] mm, proc: reduce cost of /proc/pid/smaps for unpopulated shmem mappings

2015-11-18 Thread Vlastimil Babka
Following the previous patch, further reduction of /proc/pid/smaps cost is possible for private writable shmem mappings with unpopulated areas where the page walk invokes the .pte_hole function. We can use radix tree iterator for each such area instead of calling find_get_entry() in a loop. This is

Re: [PATCH v3 net-next] net: hisilicon: fix binding document of mdio

2015-11-18 Thread Arnd Bergmann
On Wednesday 18 November 2015 10:08:00 huangdaode wrote: > This patch explains the occasion of "hisilcon,mdio" and > "hisilicon,hns-mdio" according to Arnd's comments. > and reformat it according to comments from Rob. > > Signed-off-by: huangdaode > Thanks a lot for addressing this! Reviewed-b

Re: [PATCH] mmc: dw_mmc: use resource_size_t to store physical address

2015-11-18 Thread Andy Shevchenko
On Fri, Nov 13, 2015 at 11:35 AM, Arnd Bergmann wrote: > On Friday 13 November 2015 03:10:13 Andy Shevchenko wrote: >> On Thu, Nov 12, 2015 at 4:14 PM, Arnd Bergmann wrote: >> > The dw_mmc driver stores the physical address of the MMIO registers >> > in a pointer, which requires the use of type c

Re: [PATCH] USB: USB_OTG does not depend on PM

2015-11-18 Thread Arnd Bergmann
On Wednesday 18 November 2015 11:17:50 Peter Chen wrote: > From 3a6918dae038aadc200dcf0263f4440acc2353d4 Mon Sep 17 00:00:00 2001 > From: Peter Chen > Date: Wed, 18 Nov 2015 11:06:34 +0800 > Subject: [PATCH 1/1] usb: kconfig: fix warning of select USB_OTG > > When choose randconfig for kernel bui

[PATCH] PCI: hisi: Add support for HiSilicon Hip06 PCIe host bridge controllers

2015-11-18 Thread Gabriele Paoloni
From: gabriele paoloni This patch adds support for HiSilicon Hip06 SoC that implements v2 HW IP of the PCIe Host Bridge controller. Hip05 SoC references have been replaced with v1-Hip05 and references to v2-Hip06 have been added. Documentation has been updated to include Hip06 and the DT example

Re: [PATCH v3 6/6] gpio: tps65086: Add GPIO driver for the TPS65086 PMIC

2015-11-18 Thread Linus Walleij
On Tue, Nov 17, 2015 at 5:11 PM, Andrew F. Davis wrote: > On 11/17/2015 03:17 AM, Linus Walleij wrote: >> >> On Wed, Nov 4, 2015 at 6:12 PM, Andrew F. Davis wrote: >> >>> Add support for the TPS65086 PMIC GPOs. >>> >>> TPS65086 has four configurable GPOs that can be used for several >>> purposes.

Re: [PATCHv2 2/3] perf tools: Add callchain order support for libunwind DWARF unwinder

2015-11-18 Thread Wangnan (F)
On 2015/11/18 15:52, Jiri Olsa wrote: On Wed, Nov 18, 2015 at 12:13:08PM +0800, Wangnan (F) wrote: On 2015/11/17 23:05, Jiri Olsa wrote: From: Jiri Olsa As reported by Milian, currently for DWARF unwind (both libdw and libunwind) we display callchain in callee order only. Adding the suppo

Re: [PATCH] tools: ffs-aio-example: free memory upon failure

2015-11-18 Thread Robert Baldyga
Hi Wei, On 11/18/2015 07:13 AM, Wei, Jiangang wrote: > To whom it may concern: > > Sorry to bother again, > But any comment about this patch? > Reviewed-by: Robert Baldyga It looks good to me. By the way, maybe we should also close file descriptors in error path? Thanks, Robert Baldyga > On

[PATCH] fpga manager: Fix firmware resource leak on error

2015-11-18 Thread Tobias Klauser
If fpga_mgr_buf_load() fails, the firmware resource previously allocated by request_firmware() is leaked. Fix it by calling release_firmware() regardless of the return value of fpga_mgr_buf_load(). Found by the Coverity scanner (CID 1339653). Fixes: 6a8c3be7ec8e ("add FPGA manager core") Signed-o

Re: [PATCH v2 1/1] i2c: taos-evm: replace simple_strtoul by kstrtou8

2015-11-18 Thread LABBE Corentin
On Wed, Nov 18, 2015 at 10:29:54AM +0100, Jean Delvare wrote: > Hi Corentin, > > On Wed, 18 Nov 2015 09:00:53 +0100, LABBE Corentin wrote: > > The simple_strtoul function is marked as obsolete. > > This patch replace it by kstrtou8. > > > > Signed-off-by: LABBE Corentin > > --- > > drivers/i2c/

Re: [PATCH v5 5/5] Add ioctls to enable and disable local controls on an instrument

2015-11-18 Thread Andy Shevchenko
On Wed, Nov 18, 2015 at 10:38 AM, Dave Penkler wrote: > These ioctls provide support for the USBTMC-USB488 control requests > for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT Couple of comments below. > diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c > index 2358991..d416a5f 1

[PATCH v3 0/5] Add reboot notifier driver for rockchip platform

2015-11-18 Thread Andy Yan
rockchip platform have a protocol to pass the kernel reboot mode to bootloader by some special registers when system reboot. By this way the bootloader can take different action according to the different kernel reboot mode, for example, command "reboot loader" will reboot the board to rockusb mod

Re: [PATCH 4/5] PCI: iproc: Add iProc PCIe MSI support

2015-11-18 Thread Arnd Bergmann
On Wednesday 18 November 2015 08:48:45 Marc Zyngier wrote: > > +static inline u32 iproc_msi_read_reg(struct iproc_msi *msi, > > +enum iproc_msi_reg reg, > > +unsigned int eq) > > +{ > > + struct iproc_pcie *pcie = msi->pcie; > > + >

[PATCH 1/1] HID: multitouch: enable palm rejection if device implements confidence usage

2015-11-18 Thread Allen Hung
The usage Confidence is mandary to Windows Precision Touchpad devices. The appearance of this usage is checked in hidinput_connect but the quirk MT_QUIRK_VALID_IS_CONFIDENCE is not applied to the device accordingly. Apply this quirk and also remove quirk MT_QUIRK_ALWAYS_VALID to enable the palm rej

Re: [lkp] [panic] [ BUG: bad unlock balance detected! ]

2015-11-18 Thread Vitaly Kuznetsov
Andrew Morton writes: > On Mon, 16 Nov 2015 11:12:50 +0800 kernel test robot > wrote: > >> FYI, we noticed the below changes on >> >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >> commit 08d78658f393fefaa2e6507ea052c6f8ef4002a2 ("panic: release stale >> console

[PATCH v3 1/5] ARM: dts: rockchip: rk3288-veyron: rename pinctrl node reboot to reset

2015-11-18 Thread Andy Yan
rename pinctrl node reboot to reset to match it's lable name Signed-off-by: Andy Yan --- Changes in v3: - rename a pinctrl node in rk3288-veyron, the original name will be used in the incoming reboot notifier driver Changes in v2: None arch/arm/boot/dts/rk3288-veyron.dtsi | 2 +- 1 file

Re: [PATCH] writeback: initialize m_dirty to avoid compile warning

2015-11-18 Thread Arnd Bergmann
On Tuesday 17 November 2015 15:38:55 Andrew Morton wrote: > On Fri, 13 Nov 2015 10:26:41 -0800 Yang Shi wrote: > > > When building kernel with gcc 5.2, the below warning is raised: > > > > mm/page-writeback.c: In function 'balance_dirty_pages.isra.10': > > mm/page-writeback.c:1545:17: warning: '

[PATCH v3 2/5] dt-bindings: soc: add document for rockchip reboot notifier driver

2015-11-18 Thread Andy Yan
Add devicetree binding document for rockchip reboot nofifier driver Signed-off-by: Andy Yan --- Changes in v3: - add dt binding Changes in v2: None .../bindings/soc/rockchip/rockchip-reboot.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documenta

Re: [PATCH 2/3 v7] livepatch: add sympos as disambiguator field to klp_reloc

2015-11-18 Thread Miroslav Benes
On Mon, 16 Nov 2015, Chris J Arges wrote: > @@ -281,29 +243,26 @@ static int klp_write_object_relocations(struct module > *pmod, > return -EINVAL; > > for (reloc = obj->relocs; reloc->name; reloc++) { > - if (!klp_is_module(obj)) { > - ret = k

Re: [PATCH v5 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-18 Thread Andy Shevchenko
On Wed, Nov 18, 2015 at 10:37 AM, Dave Penkler wrote: > Background: > When performing a read on an instrument that is executing a function > that runs longer than the USB timeout the instrument may hang and > require a device reset to recover. The READ_STATUS_BYTE operation > always returns even w

Re: [PATCH] USB: USB_OTG does not depend on PM

2015-11-18 Thread Peter Chen
On Wed, Nov 18, 2015 at 10:38:18AM +0100, Arnd Bergmann wrote: > On Wednesday 18 November 2015 11:17:50 Peter Chen wrote: > > From 3a6918dae038aadc200dcf0263f4440acc2353d4 Mon Sep 17 00:00:00 2001 > > From: Peter Chen > > Date: Wed, 18 Nov 2015 11:06:34 +0800 > > Subject: [PATCH 1/1] usb: kconfig:

[PATCH v3 3/5] soc: rockchip: add reboot notifier driver

2015-11-18 Thread Andy Yan
rockchip platform have a protocol to pass the kernel reboot mode to bootloader by some special registers when system reboot. By this way the bootloader can take different action according to the different kernel reboot mode, for example, command "reboot loader" will reboot the board to rockusb mode

[PATCH v3 4/5] ARM: dts: rockchip: add reboot node

2015-11-18 Thread Andy Yan
Add reboot notifier driver DT node for rk3xxx,rk3288 platform Signed-off-by: Andy Yan --- Changes in v3: - add DT node Changes in v2: None arch/arm/boot/dts/rk3288.dtsi | 6 ++ arch/arm/boot/dts/rk3xxx.dtsi | 6 ++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/rk

[PATCH v3 5/5] ARM64: dts: rockchip: add reboot node

2015-11-18 Thread Andy Yan
Add reboot notifier driver DT node for rk3368 platform Signed-off-by: Andy Yan --- Changes in v3: - add DT node Changes in v2: None arch/arm64/boot/dts/rockchip/rk3368.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/

Re: [PATCH v6 15/19] arm64: ilp32: force IPC_64 in msgctl, shmctl, semctl

2015-11-18 Thread Geert Uytterhoeven
On Wed, Nov 18, 2015 at 10:23 AM, Arnd Bergmann wrote: > On Wednesday 18 November 2015 09:25:40 Andreas Schwab wrote: >> Arnd Bergmann writes: >> >> > On Wednesday 18 November 2015 00:16:55 Yury Norov wrote: >> >> >> >> +/* IPC_64 */ >> >> +asmlinkage long ilp32_sys_msgctl(int first, int second,

[PATCH 1/2] can: m_can: Increase delay to ensure written INIT accepted

2015-11-18 Thread Wenyou Yang
Increase the delay time until the value written to INIT can be read back to ensure that the previous value written to INIT has been accepted. Signed-off-by: Wenyou Yang --- drivers/net/can/m_can/m_can.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/m_can

[PATCH] Staging: comedi: fix block comments coding style issue in comedi.h

2015-11-18 Thread maomao xu
Fix up block comments to make a trailing */ on a separate line Signed-off-by: maomao xu --- drivers/staging/comedi/comedi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 66edda1..ec5e59c 100644 --- a/

[PATCH 0/2] can: m_can: Add CAN clock generated by UPLLCK support

2015-11-18 Thread Wenyou Yang
This patch set is to make M_CAN work on SAMA5D2. The orignal delay is not enough for M_CAN on SAMA5D2 to syschronize the two clock domains. Increase the delay time to ensure the value written to INIT can be read back. Add CAN clock generated by UPLLCK(480 MHz) support, the implementation doesn't

Re: [PATCH 1/1] HID: multitouch: enable palm rejection if device implements confidence usage

2015-11-18 Thread Benjamin Tissoires
On Wed, Nov 18, 2015 at 10:41 AM, Allen Hung wrote: > The usage Confidence is mandary to Windows Precision Touchpad devices. The > appearance of this usage is checked in hidinput_connect but the quirk > MT_QUIRK_VALID_IS_CONFIDENCE is not applied to the device accordingly. > Apply this quirk and a

[3.16.y-ckt stable] Linux 3.16.7-ckt20

2015-11-18 Thread Luis Henriques
I am announcing the release of the Linux 3.16.7-ckt20 kernel. The updated 3.16.y-ckt tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-3.16.y and can be browsed at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.16.y The diff from v3.16.7-ckt19 is posted as

Re: ptrace and pseudoterminals

2015-11-18 Thread Pavel Labath
On 5 November 2015 at 20:29, Peter Hurley wrote: > On 11/05/2015 01:35 PM, Pavel Labath wrote: >> That said, it seems to me that this could be a generally useful >> feature. For the test suite, I can insert a sleep (even a large one, >> to be sure), but this seems like a sub-optimal solution for g

Re: [3.16.y-ckt stable] Linux 3.16.7-ckt20

2015-11-18 Thread Luis Henriques
diff --git a/Makefile b/Makefile index 9e830d34f4ef..e306fdd87baa 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = 3 PATCHLEVEL = 16 SUBLEVEL = 7 -EXTRAVERSION =-ckt19 +EXTRAVERSION =-ckt20 NAME = Museum of Fishiegoodies # *DOCUMENTATION* diff --git a/arch/arm/plat-orion/common

[PATCH 2/2] can: m_can: Add CAN clock generated by UPLLCK support

2015-11-18 Thread Wenyou Yang
As said SAMA5D2 datasheet, it is recommended to use the CAN clock at frequencies of 20, 40 or 80 MHz. To achieve these frequencies, PMC GCK3 must select the UPLLCK(480 MHz) as source clock and divide by 24, 12 or 6. In this patch the CAN clock at 20 MHz. As it is configured through DT, it doesn't

Re: [PATCH v2] drm: support hotspot for universal plane cursors

2015-11-18 Thread John Keeping
On Tue, 17 Nov 2015 20:11:23 +0100, Daniel Vetter wrote: > On Tue, Nov 17, 2015 at 06:47:28PM +, John Keeping wrote: > > On Tue, 17 Nov 2015 19:31:32 +0100, Daniel Vetter wrote: > > > > > On Tue, Nov 17, 2015 at 12:07:24PM -0500, Alex Deucher wrote: > > > > On Tue, Nov 17, 2015 at 11:29 A

Re: next build: 235 warnings 3 failures (next/next-20151117)

2015-11-18 Thread Will Deacon
On Tue, Nov 17, 2015 at 08:17:17PM +0100, Arnd Bergmann wrote: > On Tuesday 17 November 2015 17:12:37 Will Deacon wrote: > > On Tue, Nov 17, 2015 at 06:03:40PM +0100, Arnd Bergmann wrote: > > > On Tuesday 17 November 2015 16:44:53 Will Deacon wrote: > > > > > 8< > > > > > Subject: ARM64: make s

Re: [PATCH v2] kasan: fix kmemleak false-positive in kasan_module_alloc()

2015-11-18 Thread Catalin Marinas
On 18 November 2015 at 09:26, Andrey Ryabinin wrote: > Kmemleak reports the following leak: > unreferenced object 0xfbfff41ea000 (size 20480): > comm "modprobe", pid 65199, jiffies 4298875551 (age 542.568s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 0

Re: [PATCH 2/2] can: m_can: Add CAN clock generated by UPLLCK support

2015-11-18 Thread Marc Kleine-Budde
On 11/18/2015 11:04 AM, Wenyou Yang wrote: > As said SAMA5D2 datasheet, it is recommended to use the CAN clock > at frequencies of 20, 40 or 80 MHz. To achieve these frequencies, > PMC GCK3 must select the UPLLCK(480 MHz) as source clock and > divide by 24, 12 or 6. In this patch the CAN clock at 2

RE: next build: 235 warnings 3 failures (next/next-20151117)

2015-11-18 Thread David Laight
From: Arnd Bergmann > Sent: 17 November 2015 19:17 > On Tuesday 17 November 2015 17:12:37 Will Deacon wrote: > > On Tue, Nov 17, 2015 at 06:03:40PM +0100, Arnd Bergmann wrote: > > > On Tuesday 17 November 2015 16:44:53 Will Deacon wrote: > > > > > 8< > > > > > Subject: ARM64: make smp_load_acqu

Re: [PATCH 1/2] can: m_can: Increase delay to ensure written INIT accepted

2015-11-18 Thread Marc Kleine-Budde
On 11/18/2015 11:04 AM, Wenyou Yang wrote: > Increase the delay time until the value written to INIT can be > read back to ensure that the previous value written to INIT has > been accepted. > > Signed-off-by: Wenyou Yang The patch looks ok, can you please add to your commit message which SoCs a

Re: [PATCH v3 1/4] wait.[ch]: Introduce the simple waitqueue (swait) implementation

2015-11-18 Thread Peter Zijlstra
On Wed, Nov 04, 2015 at 11:33:51AM +0100, Thomas Gleixner wrote: > On Tue, 20 Oct 2015, Daniel Wagner wrote: > > + > > +extern void swake_up(struct swait_queue_head *q); > > +extern void swake_up_all(struct swait_queue_head *q); > > +extern void swake_up_locked(struct swait_queue_head *q); > > I i

Re: [PATCH 3/4] sched: introduce synchronized idle injection

2015-11-18 Thread Peter Zijlstra
On Wed, Nov 18, 2015 at 09:36:22AM +0100, Ingo Molnar wrote: > What will such throttling do to latencies, as observed by user-space tasks? > What's > the typical expected frequency of the throttling frequency that you are > targeting? The default has 5ms (iirc) of forced idle, so depending on w

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-18 Thread Jan Kara
On Mon 16-11-15 13:09:50, Ross Zwisler wrote: > On Fri, Nov 13, 2015 at 06:32:40PM -0800, Dan Williams wrote: > > On Fri, Nov 13, 2015 at 4:43 PM, Andreas Dilger wrote: > > > On Nov 13, 2015, at 5:20 PM, Dan Williams > > > wrote: > > >> > > >> On Fri, Nov 13, 2015 at 4:06 PM, Ross Zwisler > > >>

Re: [PATCH] usb: gadget: Add the console support for usb-to-serial port

2015-11-18 Thread Baolin Wang
On 18 November 2015 at 17:32, Andy Shevchenko wrote: > On Wed, Nov 18, 2015 at 4:15 AM, Baolin Wang wrote: >> On 17 November 2015 at 21:34, Andy Shevchenko >> wrote: >>> On Mon, Nov 16, 2015 at 9:05 AM, Baolin Wang wrote: It dose not work when we want to use the usb-to-serial port based >

[PATCH] of: Fix comparison of reserved memory regions

2015-11-18 Thread Michael Ellerman
In order to check for overlapping reserved memory regions, we first need to sort the array of memory regions. This is implemented using sort(), and a custom comparison function __rmem_cmp(). Unfortunatley __rmem_cmp() doesn't work in all cases. Because the two base values are phys_addr_t, they may

Re: [PATCH] KVM-async_pf: Delete an unnecessary check before the function call "kmem_cache_destroy"

2015-11-18 Thread Paolo Bonzini
On 15/11/2015 10:45, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 15 Nov 2015 10:40:36 +0100 > > The kmem_cache_destroy() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call is not needed. > > This issue was detected by usin

Re: [PATCH] KVM: powerpc: kvmppc_visible_gpa can be boolean

2015-11-18 Thread Paolo Bonzini
On 16/11/2015 04:10, Yaowei Bai wrote: > In another patch kvm_is_visible_gfn is maken return bool due to this > function only returns zero or one as its return value, let's also make > kvmppc_visible_gpa return bool to keep consistent. > > No functional change. > > Signed-off-by: Yaowei Bai >

Re: [PATCH v2] drm: support hotspot for universal plane cursors

2015-11-18 Thread Daniel Vetter
On Wed, Nov 18, 2015 at 10:12:16AM +, John Keeping wrote: > On Tue, 17 Nov 2015 20:11:23 +0100, Daniel Vetter wrote: > > > On Tue, Nov 17, 2015 at 06:47:28PM +, John Keeping wrote: > > > On Tue, 17 Nov 2015 19:31:32 +0100, Daniel Vetter wrote: > > > > > > > On Tue, Nov 17, 2015 at 12:07

Re: [RFC PATCH 1/3] x86/cpu: Unify CPU family, model, stepping calculation

2015-11-18 Thread Paolo Bonzini
On 14/11/2015 11:37, Borislav Petkov wrote: > vendor = x86_vendor(); > - family = x86_family(); > + family = x86_family_cpuid(); What about renaming x86_vendor() so that this looks like - vendor = x86_vendor(); - family = x86_family(); + vendor = x86_cpuid_vendor

Re: [RFC PATCH 2/3] kvm: Add accessors for guest CPU's family, model, stepping

2015-11-18 Thread Paolo Bonzini
On 14/11/2015 11:37, Borislav Petkov wrote: > From: Borislav Petkov > > Those give the family, model and stepping of the guest vcpu. > > Signed-off-by: Borislav Petkov > Cc: Paolo Bonzini > --- > arch/x86/kvm/cpuid.h | 34 ++ > 1 file changed, 34 insertions(+

Re: [PATCH v3 04/12] usb: xhci: dbc: add support for Intel xHCI dbc quirk

2015-11-18 Thread Lu Baolu
Hi, On 11/17/2015 06:28 PM, Dmitry Malkin wrote: On Mon, 16 Nov 2015 10:18:42 +0800, Lu Baolu wrote: This quirk works as well if debug host doesn't have DBC. I didn't try a DBC-capable debug host yet. Hi, I went through it again, with your v3 patch series on top of vanilla v4.3.0. Two target

Re: [RFC PATCH 3/3] x86/cpu/amd, kvm: Satisfy guest kernel reads of IC_CFG MSR

2015-11-18 Thread Paolo Bonzini
On 14/11/2015 11:37, Borislav Petkov wrote: > From: Borislav Petkov > > The kernel accesses IC_CFG MSR (0xc0011021) on AMD because it checks > whether the way access filter is enabled on some F15h models, and, if > so, disables it. > > kvm doesn't handle that MSR access and complains about it,

Re: [Xen-devel] [PATCH] xen/events: Always allocate legacy interrupts on PV guests

2015-11-18 Thread Vitaly Kuznetsov
Boris Ostrovsky writes: > After commit 8c058b0b9c34 ("x86/irq: Probe for PIC presence before > allocating descs for legacy IRQs") early_irq_init() will no longer > preallocate descriptors for legacy interrupts if PIT does not > exist. PIC? > > Therefore we need to allocate those descriptors for

[PATCH] drm/qxl: fix cursor position with non-zero hotspot

2015-11-18 Thread John Keeping
The SPICE protocol considers the position of a cursor to be the location of its active pixel on the display, so the cursor is drawn with its top-left corner at "(x - hot_spot_x, y - hot_spot_y)" but the DRM cursor position gives the location where the top-left corner should be drawn, with the hotsp

RE: REPLY

2015-11-18 Thread Casy
I write to seek your assistance for safe keeping of two military trunk boxes valuable that will be of great benefit to both of us,i will explain further when you respond to my direct Email: captcaseythoree...@r7.com I would appreciate your urgent response. Capt.Casey Thoreen( US ARMY OFFICER C

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