Re: [PATCH 1/3] tpm: Hold the kref during tpm_chip_find_get

2016-02-14 Thread Jarkko Sakkinen
On Sat, Feb 13, 2016 at 11:50:08PM -0700, Jason Gunthorpe wrote: > On Sun, Feb 14, 2016 at 06:55:12AM +0200, Jarkko Sakkinen wrote: > > On Fri, Feb 12, 2016 at 05:04:29PM -0700, Jason Gunthorpe wrote: > > > This was missed during the struct device conversion, we > > > need to hold a kref on the chi

Re: [PATCH 2/3] tpm: Get rid of chip->pdev

2016-02-14 Thread Jarkko Sakkinen
On Sat, Feb 13, 2016 at 11:57:24PM -0700, Jason Gunthorpe wrote: > On Sun, Feb 14, 2016 at 07:24:14AM +0200, Jarkko Sakkinen wrote: > > > This should take care of it for all drivers including vtpm. > > > > > > https://github.com/jgunthorpe/linux/commits/for-jarkko > > > > > > At the very least th

Re: [PATCH 1/2] clk: add device tree binding for artpec-6 pll1 clock

2016-02-14 Thread Lars Persson
On 02/12/2016 05:39 PM, Rob Herring wrote: On Thu, Feb 11, 2016 at 05:01:03PM +0100, Lars Persson wrote: Add device tree documentation for the main PLL in the Artpec-6 SoC. Roughly how many clocks does this SoC have? It will have 17 clocks declared in the device tree and three SoC-specific c

Re: [PATCH V3 06/10] irqchip, GICv3, ITS: Refator ITS dt init code to prepare for ACPI.

2016-02-14 Thread Hanjun Guo
On 2016/2/10 18:47, Marc Zyngier wrote: On 19/01/16 13:11, Tomasz Nowicki wrote: Similarly to GICv3 core, we need to extract common code before adding ACPI support. No functional changes. Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki --- drivers/irqchip/irq-gic-v3-its.c | 82 +++

Re: [lkp] [gpio] 3c702e9987: kmsg.user_verbs:couldn't_register_device_number

2016-02-14 Thread Michael Welling
On Sun, Feb 14, 2016 at 02:59:06PM +0800, kernel test robot wrote: > FYI, we noticed the below changes on > > https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git chardev > commit 3c702e9987e261042a07e43460a8148be254412e ("gpio: add a userspace > chardev ABI for GPIOs") > > > [

Re: [PATCH v3 3/7] debugfs: add support for self-protecting attribute file fops

2016-02-14 Thread Nicolai Stange
Julia Lawall writes: > On Sun, 14 Feb 2016, Nicolai Stange wrote: > >> In order to protect them against file removal issues, debugfs_create_file() >> creates a lifetime managing proxy around each struct file_operations >> handed in. >> >> In cases where this struct file_operations is able to man

Re: [PATCH v2] ARM: dts: vfxxx: Add iio_hwmon node for ADC temperature channel

2016-02-14 Thread Shawn Guo
On Fri, Feb 12, 2016 at 05:53:00PM +0530, Sanchayan Maity wrote: > Add iio_hwmon node to expose the temperature channel on Vybrid as > hardware monitor device using the iio_hwmon driver. > > Signed-off-by: Sanchayan Maity > --- > > Hello, > > The first version of the patch was send quite a whil

Re: [PATCH] ARM: dts: ls2080a: Add quirk for Erratum A009116

2016-02-14 Thread Shawn Guo
On Tue, Feb 09, 2016 at 05:08:07PM -0600, Lijun Pan wrote: > Add "snps,quirk-frame-length-adjustment" property to > USB3 node for erratum A009116. This property provides > value of GFLADJ_30MHZ for post silicon frame length > adjustment. > > Signed-off-by: Lijun Pan > --- > arch/arm64/boot/dts/f

Re: Another proposal for DAX fault locking

2016-02-14 Thread Boaz Harrosh
On 02/11/2016 12:38 PM, Jan Kara wrote: > On Wed 10-02-16 19:38:21, Boaz Harrosh wrote: >> On 02/09/2016 07:24 PM, Jan Kara wrote: >>> Hello, >>> <> >>> >>> DAX will have an array of mutexes (the array can be made per device but >>> initially a global one should be OK). We will use mutexes in the a

Re: [PATCH] ARM: exynos: clarify KEYBOARD_SAMSUNG selection

2016-02-14 Thread Krzysztof Kozlowski
W dniu 12.02.2016 o 00:30, Arnd Bergmann pisze: > The samsung-keypad driver is implicitly selected by ARCH_EXYNOS4 (why?), > but this fails if CONFIG_INPUT is a loadable module: How about removing the select entirely and adding it in defconfigs? It was introduced by 49b999711ee7 ("ARM: EXYNOS: cha

[PATCH RFC] Introduce atomic and per-cpu add-max and sub-min operations

2016-02-14 Thread Konstantin Khlebnikov
bool atomic_add_max(atomic_t *var, int add, int max); bool atomic_sub_min(atomic_t *var, int sub, int min); bool this_cpu_add_max(var, add, max); bool this_cpu_sub_min(var, sub, min); They add/subtract only if result will be not bigger than max/lower that min. Returns true if operation was done a

[GIT pull] x86 updates for 4.5

2016-02-14 Thread Thomas Gleixner
Linus, please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus Two small fixlets for x86: - Prevent a KASAN false positive in thread_saved_pc() - Fix a 32-bit truncation problem in the x86 numa code Thanks

[PATCH v7] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-02-14 Thread Jiancheng Xue
Add hisilicon spi-nor flash controller driver Signed-off-by: Binquan Peng Signed-off-by: Jiancheng Xue Acked-by: Rob Herring Reviewed-by: Ezequiel Garcia --- change log v7: Rebased to v4.5-rc3. Fixed issues pointed by Ezequiel Garcia. v6: Based on v4.5-rc2 Fixed issues pointed by Ezequiel Gar

Re: [PATCH v11 3/4] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi

2016-02-14 Thread Fu Wei
Hi Suravee, On 11 February 2016 at 04:56, Suravee Suthikulpanit wrote: > Hi Fu Wei, > > On 2/10/16 00:00, fu@linaro.org wrote: >> >> From: Fu Wei >> >> This can be a example of adding SBSA Generic Watchdog device node >> into some dts files for the Soc which contains SBSA Generic Watchdog. >

[GIT pull] irq updates for 4.5

2016-02-14 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus Another set of ARM SoC related irqchip fixes: - Plug a memory leak in gicv3-its - Limit features to the root gic interrupt controller - Add a

[GIT pull] timer updates for 4.5

2016-02-14 Thread Thomas Gleixner
Linus, please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus A single fix preventing a 32bit overflow in timespec/val to cputime conversions on 32bit machines. Thanks, tglx --

Re: [RFC PATCH] SPI/ACPI: DesignWare: Add ACPI support for Designware SPI driver

2016-02-14 Thread Jiang Qiu
Hi Mark, Many thanks for your review, I'm so sorry for late reply because The Chinese new year holiday. See my replies below. Best Regards Jiang 在 2016/2/5 19:09, Mark Brown 写道: On Fri, Feb 05, 2016 at 03:11:20PM +0800, qiujiang wrote: This patch added ACPI support for DesignWare SPI mmio

[GIT pull] locking updates for 4.5

2016-02-14 Thread Thomas Gleixner
Linus, please pull the latest locking-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-for-linus A single fix for the stack trace caching logic in lockdep, where the duplicate avoidance managed to store no back trace at all. Thanks,

[GIT pull] perf updates for 4.5

2016-02-14 Thread Thomas Gleixner
Linus, please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus Another round of fixes for the perf tooling side: - Prevent a NULL pointer dereference in tracepoint error handling - Fix a thread handling

Re: [RFC PATCH] SPI/ACPI: DesignWare: Add ACPI support for Designware SPI driver

2016-02-14 Thread Jiang Qiu
Hi Andy, Sorry for late relpy because Chinese new year holiday. See my replies below. Best Regards Jiang 在 2016/2/5 23:55, Andy Shevchenko 写道: On Fri, Feb 5, 2016 at 9:11 AM, qiujiang wrote: This patch added ACPI support for DesignWare SPI mmio driver. It was based the corresponding DT driv

Re: [PATCH v2 3/3] mm/compaction: speed up pageblock_pfn_to_page() when zone is contiguous

2016-02-14 Thread zhong jiang
On 2016/2/6 0:11, Joonsoo Kim wrote: > 2016-02-05 9:49 GMT+09:00 Andrew Morton : >> On Thu, 4 Feb 2016 15:19:35 +0900 Joonsoo Kim wrote: >> >>> There is a performance drop report due to hugepage allocation and in there >>> half of cpu time are spent on pageblock_pfn_to_page() in compaction [1]. >

[PATCH 1/7] f2fs: introduce f2fs_journal struct to wrap journal info

2016-02-14 Thread Chao Yu
Introduce a new structure f2fs_journal to wrap journal info in struct f2fs_summary_block for readability. struct f2fs_journal { union { __le16 n_nats; __le16 n_sits; }; union { struct nat_journal nat_j; struct

[PATCH 2/7] f2fs: split journal cache from curseg cache

2016-02-14 Thread Chao Yu
In curseg cache, f2fs cached two different parts: - datas of current summay block - journal info consist of sparse nat/sit entries And we use the same curseg_mutex lock to protect these two caches. With this approach, on the one hand, it may cause higher lock contention when accessing/updating o

[PATCH 3/7] f2fs: reorder nat cache lock in cache_nat_entry

2016-02-14 Thread Chao Yu
In cache_nat_entry, if we fail to hit nat cache, we try to load nat entries from journal of current segment cache or NAT pages for updating, during the whole updating process, write lock of nat_tree_lock will be held to avoid inconsistent condition. But this way may cause low efficient when updati

[PATCH 4/7] f2fs: enhance IO path with block plug

2016-02-14 Thread Chao Yu
Try to use block plug in more place as below to let process cache bios as much as possbile, in order to reduce lock overhead of queue in IO scheduler. 1) sync_meta_pages 2) ra_meta_pages 3) f2fs_balance_fs_bg Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c | 12 fs/f2fs/segment.c

[PATCH 5/7] f2fs crypto: set up encryption info for new inodes in f2fs_inherit_context()

2016-02-14 Thread Chao Yu
This patch syncs f2fs with commit 70295532 ("ext4 crypto: set up encryption info for new inodes in ext4_inherit_context()") from ext4. Set up the encryption information for newly created inodes immediately after they inherit their encryption context from their parent directories. Signed-off-b

[PATCH 6/7] f2fs crypto: make sure the encryption info is initialized on opendir(2)

2016-02-14 Thread Chao Yu
This patch syncs f2fs with commit 6bc445e0ff44 ("ext4 crypto: make sure the encryption info is initialized on opendir(2)") from ext4. Signed-off-by: Theodore Ts'o Signed-off-by: Chao Yu --- fs/f2fs/dir.c | 8 1 file changed, 8 insertions(+) diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c i

Re: [BUG] ODEBUG: assert_init not available (active state 0)

2016-02-14 Thread Chris Bainbridge
On 5 February 2016 at 02:52, Zheng, Lv wrote: > > So you could wait for just several days to test it again. > And report here if you can still see issues. I didn't notice any revert last week, is there something specific that I should test? I just noticed that there are graphical glitches in Fire

[PATCH 7/7] f2fs crypto: handle unexpected lack of encryption keys

2016-02-14 Thread Chao Yu
This patch syncs f2fs with commit abdd438b26b4 ("ext4 crypto: handle unexpected lack of encryption keys") from ext4. Fix up attempts by users to try to write to a file when they don't have access to the encryption key. Signed-off-by: Theodore Ts'o Signed-off-by: Chao Yu --- fs/f2fs/crypto_poli

Regard of thermal power allocator's coefficients

2016-02-14 Thread Leo Yan
Hi there, I'm trying to upstreaming IPA patches for 96board Hikey, but so far there have no standard DT binding for passing IPA coefficients for power modeling. So want to firstly to confirm if should we pass coefficients by using device tree? Is someone working on related work for this? Here ha

Re: [PATCH v6 00/12] arm-cci: PMU driver updates

2016-02-14 Thread Suzuki K. Poulose
On 25/01/16 11:21, Suzuki K. Poulose wrote: This series includes: - Simplified sysfs attribute handling for CCI PMU (Patch 1) - Work around for writing to CCI-500/550(introduced later) PMU counters (Patches 2-10) - Support for CCI-550 PMU (11-12) with Acked-bys. Gentle ping Cheers

[PATCH v3 09/11] KVM: MMU: simplify mmu_need_write_protect

2016-02-14 Thread Xiao Guangrong
Now, all non-leaf shadow page are page tracked, if gfn is not tracked there is no non-leaf shadow page of gfn is existed, we can directly make the shadow page of gfn to unsync Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 29 +++-- 1 file changed, 7 insertions(+)

[PATCH v3 02/11] KVM: MMU: introduce kvm_mmu_gfn_{allow,disallow}_lpage

2016-02-14 Thread Xiao Guangrong
Abstract the common operations from account_shadowed() and unaccount_shadowed(), then introduce kvm_mmu_gfn_disallow_lpage() and kvm_mmu_gfn_allow_lpage() These two functions will be used by page tracking in the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 38 +

[PATCH v3 03/11] KVM: MMU: introduce kvm_mmu_slot_gfn_write_protect

2016-02-14 Thread Xiao Guangrong
Split rmap_write_protect() and introduce the function to abstract the write protection based on the slot This function will be used in the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 16 +++- arch/x86/kvm/mmu.h | 2 ++ 2 files changed, 13 insertions(+), 5 del

[PATCH v3 00/11] KVM: x86: track guest page access

2016-02-14 Thread Xiao Guangrong
Changelong in v3: - refine the code of mmu_need_write_protect() based on Huang Kai's suggestion - rebase the patchset against current code Changelog in v2: - fix a issue that the track memory of memslot is freed if we only move the memslot or change the flags of memslot - do not track the gfn wh

[PATCH v3 11/11] KVM: MMU: apply page track notifier

2016-02-14 Thread Xiao Guangrong
Register the notifier to receive write track event so that we can update our shadow page table It makes kvm_mmu_pte_write() be the callback of the notifier, no function is changed Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h | 5 +++-- arch/x86/kvm/mmu.c | 19

[PATCH v3 10/11] KVM: MMU: clear write-flooding on the fast path of tracked page

2016-02-14 Thread Xiao Guangrong
If the page fault is caused by write access on write tracked page, the real shadow page walking is skipped, we lost the chance to clear write flooding for the page structure current vcpu is using Fix it by locklessly waking shadow page table to clear write flooding on the shadow page structure out

[PATCH v3 05/11] KVM: page track: introduce kvm_page_track_{add,remove}_page

2016-02-14 Thread Xiao Guangrong
These two functions are the user APIs: - kvm_page_track_add_page(): add the page to the tracking pool after that later specified access on that page will be tracked - kvm_page_track_remove_page(): remove the page from the tracking pool, the specified access on the page is not tracked after the

[PATCH v3 08/11] KVM: MMU: use page track for non-leaf shadow pages

2016-02-14 Thread Xiao Guangrong
non-leaf shadow pages are always write protected, it can be the user of page track Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index bd9c278..e9dbd85 1

[PATCH v3 04/11] KVM: page track: add the framework of guest page tracking

2016-02-14 Thread Xiao Guangrong
The array, gfn_track[mode][gfn], is introduced in memory slot for every guest page, this is the tracking count for the gust page on different modes. If the page is tracked then the count is increased, the page is not tracked after the count reaches zero We use 'unsigned short' as the tracking coun

[PATCH v3 06/11] KVM: MMU: let page fault handler be aware tracked page

2016-02-14 Thread Xiao Guangrong
The page fault caused by write access on the write tracked page can not be fixed, it always need to be emulated. page_fault_handle_page_track() is the fast path we introduce here to skip holding mmu-lock and shadow page table walking However, if the page table is not present, it is worth making th

[PATCH v3 07/11] KVM: page track: add notifier support

2016-02-14 Thread Xiao Guangrong
Notifier list is introduced so that any node wants to receive the track event can register to the list Two APIs are introduced here: - kvm_page_track_register_notifier(): register the notifier to receive track event - kvm_page_track_unregister_notifier(): stop receiving track event by unregis

[PATCH v3 01/11] KVM: MMU: rename has_wrprotected_page to mmu_gfn_lpage_is_disallowed

2016-02-14 Thread Xiao Guangrong
kvm_lpage_info->write_count is used to detect if the large page mapping for the gfn on the specified level is allowed, rename it to disallow_lpage to reflect its purpose, also we rename has_wrprotected_page() to mmu_gfn_lpage_is_disallowed() to make the code more clearer Later we will extend this

Re: Kernel docs: muddying the waters a bit

2016-02-14 Thread Daniel Vetter
On Sun, Feb 14, 2016 at 1:57 AM, Keith Packard wrote: > Jonathan Corbet writes: > >> Asciidoc is a credible solution to the formatted documentation problem, >> but it's not the only such; I'd like to be sure that we pick the right >> one. I worry that asciidoc seems to be aimed mostly at small d

[PATCH] x86/boot: remove unused is_big_kernel variable

2016-02-14 Thread Nicolas Iooss
Variable is_big_kernel is defined in arch/x86/boot/tools/build.c but never used anywhere. Signed-off-by: Nicolas Iooss --- arch/x86/boot/tools/build.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/boot/tools/build.c b/arch/x86/boot/tools/build.c index a7661c430cd9..0702d2531bc7 100

[PATCH] mfd: stmpe: add the proper PWM resources

2016-02-14 Thread Linus Walleij
This adds the PWM resources to the STMPE MFD driver, so that it can properly grab and use them. Cc: linux-...@vger.kernel.org Cc: Thierry Reding Signed-off-by: Linus Walleij --- ChangeLog: split this patch off from the PWM driver and sent separately. This can be merged separately too so we need

Re: [PATCH v4 1/2] ARM: dts: imx6: Add support for Toradex Apalis iMX6Q/D SoM

2016-02-14 Thread Linus Walleij
On Thu, Feb 4, 2016 at 12:02 AM, Marcel Ziswiler wrote: > On Wed, 2016-02-03 at 23:55 +0100, Marcel Ziswiler wrote: >> On Mon, 2016-02-01 at 21:29 +0800, Shawn Guo wrote: >> >> [snip] >> >> > + /* STMPE811 touch screen controller */ >> > > + stmpe811@41 { >> > > + compatible = "st,stmpe8

next: sparc64 crashes due to 'blk-mq: dynamic h/w context count'

2016-02-14 Thread Guenter Roeck
Hi, my runtime tests of linux-next crash for sparc64 due to commit 'blk-mq: dynamic h/w context count'. Reverting the patch fixes the problem. Bisect log is attached below. Full crash log is available at http://kerneltests.org/builders, in the table with qemu test results. Guenter --- crash log:

Re: [PATCH v2] gpio: Add driver for TI TPIC2810

2016-02-14 Thread Linus Walleij
On Wed, Feb 10, 2016 at 3:29 PM, Andy Shevchenko wrote: > On Wed, Feb 10, 2016 at 4:21 PM, Linus Walleij > wrote: >> On Sun, Jan 31, 2016 at 11:52 PM, Andy Shevchenko >> wrote: >> >>> It reminds me how 12 channel PWM chip is used on Intel Galileo Gen 2. >>> Half pins are PWM, the other half is

Re: About support XZ-compressed kernel on x86

2016-02-14 Thread Baoquan He
On 02/13/16 at 08:57pm, Lasse Collin wrote: > On 2016-02-12 Baoquan He wrote: > > Now I have a question about the commit from you: > > > > commit 303148045aac34b70db722a54e5ad94a3a6625c6 > > Author: Lasse Collin > > Date: Wed Jan 12 17:01:24 2011 -0800 > > > > x86: support XZ-compressed ke

[PATCH] irqchip/ts4800: Make ts4800_ic_ops static const

2016-02-14 Thread Axel Lin
ts4800_ic_ops is only referenced in this driver, so make it static. In additional, it's never get modified thus also make it const. Signed-off-by: Axel Lin --- drivers/irqchip/irq-ts4800.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-ts4800.c b/drivers/

Re: [PATCH] x86/boot: remove unused is_big_kernel variable

2016-02-14 Thread Borislav Petkov
On Sun, Feb 14, 2016 at 01:35:58PM +0100, Nicolas Iooss wrote: > Variable is_big_kernel is defined in arch/x86/boot/tools/build.c but > never used anywhere. > > Signed-off-by: Nicolas Iooss > --- > arch/x86/boot/tools/build.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/x86/boot

Re: [PATCH v2] x86/kernel: use pr_() and dev_

2016-02-14 Thread Borislav Petkov
On Sun, Feb 14, 2016 at 12:10:47PM +0800, Chen Yucong wrote: > arch/x86/kernel/* use a mixture of printk(KERN_ ) and pr_(). > This patch converts the bulk of printk(KERN_ ) to pr_() and > uses dev_dbg() instead of the dev_printk(KERN_DEBUG,). All pr_warning() > calls have been replaced with pr_warn

Re: [PATCH v42 5/6] clk: clk_put WARNs if user has not disabled clk

2016-02-14 Thread Geert Uytterhoeven
Hi Stephen, Mike, On Sat, Feb 13, 2016 at 2:18 AM, Stephen Boyd wrote: > On 02/11, Michael Turquette wrote: >> >From the clk_put kerneldoc in include/linux/clk.h: >> >> """ >> Note: drivers must ensure that all clk_enable calls made on this clock >> source are balanced by clk_disable calls prior

Re: next: sparc64 crashes due to 'blk-mq: dynamic h/w context count'

2016-02-14 Thread Ming Lei
On Sun, Feb 14, 2016 at 9:17 PM, Guenter Roeck wrote: > Hi, > > my runtime tests of linux-next crash for sparc64 due to commit 'blk-mq: > dynamic > h/w context count'. Reverting the patch fixes the problem. Bisect log is > attached below. Full crash log is available at > http://kerneltests.org/b

[PATCH 0/5] perf tools: Store CPU cache details under perf data

2016-02-14 Thread Jiri Olsa
hi, adding support to store CPU cache details under perf data. $ perf report --header-only -I ... # cache info: # L1 Data 32K [0-1] # L1 Instruction 32K [0-1] # L1 Data 32K [2-3] # L1 Instruction 32K [2-3] # L2 Unified 256K [0-1] # L2 Unified 256K [2-3] # L3 Unified 409

[PATCH 5/5] perf tools: Add perf data cache feature

2016-02-14 Thread Jiri Olsa
Storing CPU cache details under perf data. It's stored as new HEADER_CACHE feature and it's displayed under header info with -I option: $ perf report --header-only -I ... # cache info: # L1 Data 32K [0-1] # L1 Instruction 32K [0-1] # L1 Data 32K [2-3] # L1 Instruction 32K [2-3]

[PATCH 4/5] perf tools: Initialize libapi debug output

2016-02-14 Thread Jiri Olsa
Setting libapi debug output functions to use perf functions. Link: http://lkml.kernel.org/n/tip-apyen6qfzzwkqjhi1tzv7...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/perf.c | 2 ++ tools/perf/util/debug.c | 21 + tools/perf/util/debug.h | 1 + 3 files change

[PATCH 3/5] tools lib api fs: Add sysfs__read_str function

2016-02-14 Thread Jiri Olsa
Adding sysfs__read_str function to ease up reading string files from sysfs. New interface is: int sysfs__read_str(const char *entry, char **buf, size_t *sizep); Link: http://lkml.kernel.org/n/tip-em9nb2r0dnbggdxrnyf6w...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/lib/api/fs/fs.c | 13 +

[PATCH 2/5] tools lib api fs: Move filename__read_str into api/fs/fs.c

2016-02-14 Thread Jiri Olsa
We already moved similar functions in here, also it'll be useful for sysfs__read_str addition in following patch. Link: http://lkml.kernel.org/n/tip-azxqdrdsw6fpfpk9ycmyp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/lib/api/fs/fs.c | 51 +++

[PATCH 1/5] tools lib api: Add debug output support

2016-02-14 Thread Jiri Olsa
Adding support for warning/info/debug output within libapi code. Adding following macros: pr_warning(fmt, ...) pr_info(fmt, ...) pr_debug(fmt, ...) Also adding libapi_set_print function to set above functions. This will be used in perf to set standard debug handlers for libapi. Adding 2 hea

Re: Kernel docs: muddying the waters a bit

2016-02-14 Thread Keith Packard
Daniel Vetter writes: > The other one is graphs - Keith showed me some neat stuff that > asciidoc can do, and I definitely wanted to integrate something like > that as a follow-up into the kerneldoc toolchain. Often a diagram is a > lot more helpful than lots of words. Can sphinx gives us that to

Re: [PATCH v3 3/7] debugfs: add support for self-protecting attribute file fops

2016-02-14 Thread Julia Lawall
> >> diff --git a/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci > >> b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci > >> new file mode 100644 > >> index 000..bdc418d > >> --- /dev/null > >> +++ b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci > >> @@ -0,0 +1,68

Re: [lkp] [ppdev] 138e9d20e6: kernel BUG at drivers/base/driver.c:153!

2016-02-14 Thread Sudip Mukherjee
On Sun, Feb 14, 2016 at 02:24:27PM +0800, kernel test robot wrote: > FYI, we noticed the below changes on > > https://github.com/0day-ci/linux > Sudip-Mukherjee/ppdev-space-prohibited-between-function-name-and-parenthesis/20160212-210833 > commit 138e9d20e69c0d682f584ee1ef0151338eef7499 ("ppdev:

Re: [PATCH 2/2] tracing/rcu: don't trace rcu_callback on offline CPUs

2016-02-14 Thread Steven Rostedt
On Sat, 13 Feb 2016 21:22:53 +0300 Denis Kirjanov wrote: > > diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h > index ef72c4a..5470f2f 100644 > --- a/include/trace/events/rcu.h > +++ b/include/trace/events/rcu.h > @@ -435,6 +435,8 @@ TRACE_EVENT(rcu_callback, > > TP_A

Re: [PATCH 1/2] tracing/mm: don't trace kfree on offline CPUs

2016-02-14 Thread Steven Rostedt
On Sat, 13 Feb 2016 21:22:52 +0300 Denis Kirjanov wrote: > -DEFINE_EVENT(kmem_free, kfree, > +DEFINE_EVENT_CONDITION(kmem_free, kfree, > > TP_PROTO(unsigned long call_site, const void *ptr), > > - TP_ARGS(call_site, ptr) > + TP_ARGS(call_site, ptr), > + > + /* > + * Thi

arm qemu test failures due to 'driver-core: platform: probe of-devices only using list of compatibles'

2016-02-14 Thread Guenter Roeck
Uwe, Your patch 'driver-core: platform: probe of-devices only using list of compatibles' causes the following qemu tests to crash in -next. arm:vexpress-a9:vexpress_defconfig:vexpress-v2p-ca9 arm:vexpress-a15:vexpress_defconfig:vexpress-v2p-ca15-tc1 arm:vexpress-a9:multi_v7_defconfig:vexpress-v2p

Re: [PATCH] [media] zl10353: use div_u64 instead of do_div

2016-02-14 Thread Nicolas Pitre
On Sun, 14 Feb 2016, Ard Biesheuvel wrote: > On 13 February 2016 at 22:57, Nicolas Pitre wrote: > > On Sat, 13 Feb 2016, Ard Biesheuvel wrote: > > > >> On 12 February 2016 at 22:01, Arnd Bergmann wrote: > >> > However, I did stumble over an older patch I did now, which I could > >> > not remembe

Re: [PATCH RFC] Introduce atomic and per-cpu add-max and sub-min operations

2016-02-14 Thread Tejun Heo
Hello, Konstantin. On Sun, Feb 14, 2016 at 12:09:00PM +0300, Konstantin Khlebnikov wrote: > bool atomic_add_max(atomic_t *var, int add, int max); > bool atomic_sub_min(atomic_t *var, int sub, int min); > > bool this_cpu_add_max(var, add, max); > bool this_cpu_sub_min(var, sub, min); > > They add

Re: [PATCH V2] AHCI: Workaround for ThunderX Errata#22536

2016-02-14 Thread Tejun Heo
Hello, On Fri, Feb 12, 2016 at 03:20:30PM -0800, tchalama...@caviumnetworks.com wrote: > diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c > index 546a369..76e310e 100644 > --- a/drivers/ata/ahci.c > +++ b/drivers/ata/ahci.c > @@ -1560,6 +1560,9 @@ static int ahci_init_one(struct pci_dev *pdev,

Re: Regard of thermal power allocator's coefficients

2016-02-14 Thread Eduardo Valentin
Hello Leo, On Sun, Feb 14, 2016 at 07:00:41PM +0800, Leo Yan wrote: > Hi there, > > I'm trying to upstreaming IPA patches for 96board Hikey, but so far > there have no standard DT binding for passing IPA coefficients for > power modeling. Thanks for your effort. > > So want to firstly to confi

[PATCH] drivers/hwtracing: make coresight-* explicitly non-modular

2016-02-14 Thread Paul Gortmaker
None of the Kconfig currently controlling compilation of any of the files here are tristate, meaning that none of it currently is being built as a module by anyone. We need not be concerned about .remove functions and blocking the unbind sysfs operations, since that was already done in a recent co

Re: [PATCH 1/2] tracing/mm: don't trace kfree on offline CPUs

2016-02-14 Thread Denis Kirjanov
On 2/14/16, Steven Rostedt wrote: > On Sat, 13 Feb 2016 21:22:52 +0300 > Denis Kirjanov wrote: > >> -DEFINE_EVENT(kmem_free, kfree, >> +DEFINE_EVENT_CONDITION(kmem_free, kfree, >> >> TP_PROTO(unsigned long call_site, const void *ptr), >> >> -TP_ARGS(call_site, ptr) >> +TP_ARGS(call_s

Re: [PATCH 2/2] tracing/rcu: don't trace rcu_callback on offline CPUs

2016-02-14 Thread Denis Kirjanov
On 2/14/16, Steven Rostedt wrote: > On Sat, 13 Feb 2016 21:22:53 +0300 > Denis Kirjanov wrote: > >> >> diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h >> index ef72c4a..5470f2f 100644 >> --- a/include/trace/events/rcu.h >> +++ b/include/trace/events/rcu.h >> @@ -435,6 +435,8

Re: [PATCH RFC] Introduce atomic and per-cpu add-max and sub-min operations

2016-02-14 Thread Konstantin Khlebnikov
On Sun, Feb 14, 2016 at 7:51 PM, Tejun Heo wrote: > Hello, Konstantin. > > On Sun, Feb 14, 2016 at 12:09:00PM +0300, Konstantin Khlebnikov wrote: >> bool atomic_add_max(atomic_t *var, int add, int max); >> bool atomic_sub_min(atomic_t *var, int sub, int min); >> >> bool this_cpu_add_max(var, add,

Re: [lkp] [gpio] 3c702e9987: kmsg.user_verbs:couldn't_register_device_number

2016-02-14 Thread Linus Walleij
Greg, heads-up on this... you'd know if this happened before. On Sun, Feb 14, 2016 at 9:06 AM, Michael Welling wrote: > On Sun, Feb 14, 2016 at 02:59:06PM +0800, kernel test robot wrote: >> FYI, we noticed the below changes on >> >> https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpi

Re: [lkp] [gpio] 3c702e9987: kmsg.user_verbs:couldn't_register_device_number

2016-02-14 Thread Linus Walleij
On Sun, Feb 14, 2016 at 9:06 AM, Michael Welling wrote: > enum { > IB_UVERBS_MAJOR = 231, > IB_UVERBS_BASE_MINOR = 192, > IB_UVERBS_MAX_DEVICES = 32 > }; > > #define IB_UVERBS_BASE_DEV MKDEV(IB_UVERBS_MAJOR, IB_UVERBS_BASE_MINOR) > > Something tells me that a n

Re: [lkp] [gpio] 3c702e9987: kmsg.user_verbs:couldn't_register_device_number

2016-02-14 Thread Greg KH
On Sun, Feb 14, 2016 at 06:42:11PM +0100, Linus Walleij wrote: > Greg, heads-up on this... you'd know if this happened > before. > > On Sun, Feb 14, 2016 at 9:06 AM, Michael Welling wrote: > > On Sun, Feb 14, 2016 at 02:59:06PM +0800, kernel test robot wrote: > >> FYI, we noticed the below change

Re: [lkp] [gpio] 3c702e9987: kmsg.user_verbs:couldn't_register_device_number

2016-02-14 Thread Linus Walleij
On Sun, Feb 14, 2016 at 6:49 PM, Greg KH wrote: > On Sun, Feb 14, 2016 at 06:42:11PM +0100, Linus Walleij wrote: >> Greg, heads-up on this... you'd know if this happened >> before. >> >> On Sun, Feb 14, 2016 at 9:06 AM, Michael Welling wrote: >> > On Sun, Feb 14, 2016 at 02:59:06PM +0800, kernel

tty: deadlock between tty_buffer_flush/n_tracesink_open

2016-02-14 Thread Dmitry Vyukov
Hello, I've finally got the tty deadlock report with lockdep stack collection bug fixed. This is on commit 388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95 (4.5-rc3). == [ INFO: possible circular locking dependency detected ] 4.5.0-rc3+ #326 Not tainted

Re: [PATCH] Revert "net: phy: turn carrier off on phy attach"

2016-02-14 Thread Clemens Gruber
On Fri, Feb 12, 2016 at 10:56:04AM -0800, Florian Fainelli wrote: > On 12/02/16 10:01, Clemens Gruber wrote: > > Commit 113c74d83eef ("net: phy: turn carrier off on phy attach") breaks > > the eth0 link coming up on all my i.MX6Q boards with a Marvell 88E1510. > > If I then do a ifconfig eth0 down/

Re: tty: deadlock between tty_buffer_flush/n_tracesink_open

2016-02-14 Thread Dmitry Vyukov
On Sun, Feb 14, 2016 at 7:20 PM, Dmitry Vyukov wrote: > Hello, > > I've finally got the tty deadlock report with lockdep stack collection > bug fixed. This is on commit 388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95 > (4.5-rc3). The following report is probably the same issue detected at different sta

Re: [PATCH] Revert "net: phy: turn carrier off on phy attach"

2016-02-14 Thread Florian Fainelli
On February 14, 2016 10:25:30 AM PST, Clemens Gruber wrote: >On Fri, Feb 12, 2016 at 10:56:04AM -0800, Florian Fainelli wrote: >> On 12/02/16 10:01, Clemens Gruber wrote: >> > Commit 113c74d83eef ("net: phy: turn carrier off on phy attach") >breaks >> > the eth0 link coming up on all my i.MX6Q bo

[GIT PULL] USB driver fixes for 4.5-rc4

2016-02-14 Thread Greg KH
The following changes since commit 36f90b0a2ddd60823fe193a85e60ff1906c2a9b3: Linux 4.5-rc2 (2016-01-31 18:12:16 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.5-rc4 for you to fetch changes up to 6b44d1e9bf3b850b433694

[GIT PULL] TTY/Serial fixes for 4.5-rc4

2016-02-14 Thread Greg KH
The following changes since commit 36f90b0a2ddd60823fe193a85e60ff1906c2a9b3: Linux 4.5-rc2 (2016-01-31 18:12:16 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-4.5-rc4 for you to fetch changes up to c8053b58762745d9393082

[GIT PULL] Driver core fix for 4.5-rc4

2016-02-14 Thread Greg KH
The following changes since commit 388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95: Linux 4.5-rc3 (2016-02-07 15:38:30 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/ tags/driver-core-4.5-rc4 for you to fetch changes up to 00cd2

[GIT PULL] char/misc driver fixes for 4.5-rc4

2016-02-14 Thread Greg KH
The following changes since commit 92e963f50fc74041b5e9e744c330dca48e04f08d: Linux 4.5-rc1 (2016-01-24 13:06:47 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-4.5-rc4 for you to fetch changes up to 3b2b9ead3

Re: [lkp] [gpio] 3c702e9987: kmsg.user_verbs:couldn't_register_device_number

2016-02-14 Thread Greg KH
On Sun, Feb 14, 2016 at 06:56:20PM +0100, Linus Walleij wrote: > On Sun, Feb 14, 2016 at 6:49 PM, Greg KH wrote: > > On Sun, Feb 14, 2016 at 06:42:11PM +0100, Linus Walleij wrote: > >> Greg, heads-up on this... you'd know if this happened > >> before. > >> > >> On Sun, Feb 14, 2016 at 9:06 AM, Mic

Re: [PATCH] [media] zl10353: use div_u64 instead of do_div

2016-02-14 Thread Ard Biesheuvel
On 14 February 2016 at 17:52, Nicolas Pitre wrote: > On Sun, 14 Feb 2016, Ard Biesheuvel wrote: > >> On 13 February 2016 at 22:57, Nicolas Pitre wrote: >> > On Sat, 13 Feb 2016, Ard Biesheuvel wrote: >> > >> >> On 12 February 2016 at 22:01, Arnd Bergmann wrote: >> >> > However, I did stumble ove

[PATCH] MIPS: Use CPHYSADDR to implement mips32 __pa

2016-02-14 Thread Paul Burton
Use CPHYSADDR to implement the __pa macro converting from a virtual to a physical address for MIPS32, much as is already done for MIPS64 (though without the complication of having both compatibility & XKPHYS segments). This allows for __pa to work regardless of whether the address being translated

Re: [PATCH] Documentation: Chinese translation of arm64/silicon-errata.txt

2016-02-14 Thread Weiwei Jia
2016-02-14 3:40 GMT+08:00 : > From: Fu Wei > > This is a Chinese translated version of Documentation/arm64/silicon-errata.txt > > Signed-off-by: Fu Wei Reviewed-by: Weiwei Jia > --- > Documentation/zh_CN/arm64/silicon-errata.txt | 74 > > 1 file changed, 74 inse

Re: [lkp] [gpio] 3c702e9987: kmsg.user_verbs:couldn't_register_device_number

2016-02-14 Thread Michael Welling
On Sun, Feb 14, 2016 at 11:05:15AM -0800, Greg KH wrote: > On Sun, Feb 14, 2016 at 06:56:20PM +0100, Linus Walleij wrote: > > On Sun, Feb 14, 2016 at 6:49 PM, Greg KH wrote: > > > On Sun, Feb 14, 2016 at 06:42:11PM +0100, Linus Walleij wrote: > > >> Greg, heads-up on this... you'd know if this hap

Re: arm qemu test failures due to 'driver-core: platform: probe of-devices only using list of compatibles'

2016-02-14 Thread Uwe Kleine-König
[adding lakml and rmk to Cc] Hello Guenter, On Sun, Feb 14, 2016 at 08:50:10AM -0800, Guenter Roeck wrote: > Uwe, > > Your patch 'driver-core: platform: probe of-devices only using list of > compatibles' causes the following qemu tests to crash in -next. > > arm:vexpress-a9:vexpress_defconfig:v

[PATCH] drivers/platform: make x86/intel_scu_ipc.c explicitly non-modular

2016-02-14 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/platform/x86/Kconfig:config INTEL_SCU_IPC drivers/platform/x86/Kconfig: bool "Intel SCU IPC Support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially or

Re: [PATCH 2/2] iio: ina2xx: Remove trace_printk debug statments

2016-02-14 Thread Andrew F. Davis
On 02/13/2016 07:21 AM, Jonathan Cameron wrote: On 12/02/16 18:34, Andrew F. Davis wrote: These are generally for devlopment use only, remove these from performance-critical code, convert to dev_dbg elswhere. Signed-off-by: Andrew F. Davis Hm... Tracepoints are also somewhat considered to be

Re: next: sparc64 crashes due to 'blk-mq: dynamic h/w context count'

2016-02-14 Thread Guenter Roeck
On 02/14/2016 07:14 AM, Ming Lei wrote: On Sun, Feb 14, 2016 at 9:17 PM, Guenter Roeck wrote: Hi, my runtime tests of linux-next crash for sparc64 due to commit 'blk-mq: dynamic h/w context count'. Reverting the patch fixes the problem. Bisect log is attached below. Full crash log is available

[PATCH] drivers/rtc: make class.c explicitly non-modular

2016-02-14 Thread Paul Gortmaker
The Makefile/Kconfig currently controlling compilation of this code is: obj-$(CONFIG_RTC_CLASS) += rtc-core.o rtc-core-y := class.o interface.o drivers/rtc/Kconfig:menuconfig RTC_CLASS drivers/rtc/Kconfig:bool "Real Time Clock" ...meaning that it currently is not

Re: arm qemu test failures due to 'driver-core: platform: probe of-devices only using list of compatibles'

2016-02-14 Thread Russell King - ARM Linux
On Sun, Feb 14, 2016 at 08:55:01PM +0100, Uwe Kleine-König wrote: > So the unexpected abnormality here is that even though this device is > instantiated by dt, the driver doesn't provide any compatibles. > Either my expectation is wrong, then 67d02a1bbb33455 should be reverted Your expectation is

Re: Computer fails to resume from suspend unless I rmmod jme before initiating the suspend

2016-02-14 Thread Diego Viola
On Sat, Feb 13, 2016 at 6:38 PM, Diego Viola wrote: > On Fri, Feb 12, 2016 at 6:17 AM, Diego Viola wrote: >> On Wed, Feb 10, 2016 at 7:36 PM, Diego Viola wrote: >>> On Wed, Feb 10, 2016 at 2:19 AM, Diego Viola wrote: Hi Guo, I have an x86 computer with this network card: >>>

Re: [PATCH 1/2] tracing/mm: don't trace kfree on offline CPUs

2016-02-14 Thread Denis Kirjanov
On 2/14/16, Steven Rostedt wrote: > On Sat, 13 Feb 2016 21:22:52 +0300 > Denis Kirjanov wrote: > >> -DEFINE_EVENT(kmem_free, kfree, >> +DEFINE_EVENT_CONDITION(kmem_free, kfree, >> >> TP_PROTO(unsigned long call_site, const void *ptr), >> >> -TP_ARGS(call_site, ptr) >> +TP_ARGS(call_s

  1   2   3   4   5   6   7   8   >