Re: [PATCH v4] virtio: new feature to detect IOMMU device quirk

2016-07-27 Thread Christoph Hellwig
Again, this is still the wrong way around. A "noiommu" feature is a quirk and should not be the default.

Re: [PATCH 1/2] sc16is7xx: fix RTS/CTS implementation

2016-07-27 Thread Pascal JEAN
Hi Greg, Here are changelog for this patch. Best Regards Le 27/07/2016 à 23:28, Greg KH a écrit : > On Wed, Jul 27, 2016 at 10:58:42PM +0200, Pascal JEAN wrote: >> Signed-off-by: Pascal JEAN >> --- >> drivers/tty/serial/sc16is7xx.c | 16 +--- >> 1 file changed, 9 insertions(+), 7 de

[no subject]

2016-07-27 Thread Shougang Group Co., Ltd
Shougang Group Co., Ltd. 11th Floor, Huaxingge, Donghua Building, Jiangmen, GuangDong, China. www.shougang.com.cn Greetings, This is an official request for Professional/consultants who will stand as our regional representative to run logistics on behalf of Shougang Group.We are looking for

Re: [PATCH V2] mm/hugetlb: Avoid soft lockup in set_max_huge_pages()

2016-07-27 Thread Naoya Horiguchi
On Thu, Jul 28, 2016 at 10:54:02AM +0800, Jia He wrote: > In powerpc servers with large memory(32TB), we watched several soft > lockups for hugepage under stress tests. > The call trace are as follows: > 1. > get_page_from_freelist+0x2d8/0xd50 > __alloc_pages_nodemask+0x180/0xc20 > alloc_fresh_

Re: [PATCH 0/5] Candidate fixes for premature OOM kills with node-lru v2

2016-07-27 Thread Joonsoo Kim
On Tue, Jul 26, 2016 at 01:50:50PM +0100, Mel Gorman wrote: > On Tue, Jul 26, 2016 at 05:11:30PM +0900, Joonsoo Kim wrote: > > > These patches did not OOM for me on a 2G 32-bit KVM instance while running > > > a stress test for an hour. Preliminary tests on a 64-bit system using a > > > parallel dd

RE: [virtio-dev] Re: [PATCH v2 repost 4/7] virtio-balloon: speed up inflate/deflate process

2016-07-27 Thread Li, Liang Z
> > > This ends up doing a 1MB kmalloc() right? That seems a _bit_ big. > > > How big was the pfn buffer before? > > > > Yes, it is if the max pfn is more than 32GB. > > The size of the pfn buffer use before is 256*4 = 1024 Bytes, it's too > > small, and it's the main reason for bad performance. >

Re: [PATCH] extable.h: add stddef.h so "NULL" definition is not implicit

2016-07-27 Thread Rusty Russell
Paul Gortmaker writes: > While not an issue now, eventually we will have independent users of > the extable.h file and we will stop sourcing it via module.h header. > > In testing that pending work, with very sparse builds, characteristic > of an "allnoconfig" on various architectures, we can some

[PATCH] raid5: fix incorrectly counter of conf->empty_inactive_list_nr

2016-07-27 Thread ZhengYuan Liu
The counter conf->empty_inactive_list_nr is only used for determine if the raid5 is congested which is deal with in function raid5_congested(). It was increased in get_free_stripe() when conf->inactive_list got to be empty and decreased in release_inactive_stripe_list() when splice temp_inactive_li

[PATCH v4 1/2] of: add J-Core SPI master bindings

2016-07-27 Thread Rich Felker
Signed-off-by: Rich Felker --- .../devicetree/bindings/spi/jcore,spi.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt diff --git a/Documentation/devicetree/bindings/spi/jcore,spi.txt b/Documentatio

[PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-07-27 Thread Rich Felker
The J-Core "spi2" device is a PIO-based SPI master controller. It differs from "bitbang" devices in that that it's clocked in hardware rather than via soft clock modulation over gpio, and performs byte-at-a-time transfers between the cpu and SPI controller. This driver will be extended to support

[PATCH v4 0/2] J-Core SPI controller support

2016-07-27 Thread Rich Felker
This driver is used with the J2, an open-source VHDL reimplementation of SH-2. I've split it out from the main J-Core support patches going upstream through my own linux-sh tree. Changes since the v3 should include everything requested by Mark Brown in previous review (mainly the chipsel changes I

Re: [PATCH] efi: capsule: allocate whole capsule into virtual memory

2016-07-27 Thread joeyli
Hi Austin, On Fri, Jul 15, 2016 at 10:41:31AM -0600, Austin Christ wrote: > According to UEFI 2.6 section 7.5.3, the capsule should be in contiguous > virtual memory and firmware may consume the capsule immediately. To > correctly implement this functionality, the kernel driver needs to vmap > the

Re: [PATCH 20/32] magic number for rscctrl file system

2016-07-27 Thread Nilay Vaish
On 12 July 2016 at 20:02, Fenghua Yu wrote: > From: Fenghua Yu > > Signed-off-by: Fenghua Yu > Reviewed-by: Tony Luck > --- > include/uapi/linux/magic.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h > index 546b388..655036a 1

Re: [BUG -next] "random: make /dev/urandom scalable for silly userspace programs" causes crash

2016-07-27 Thread Heiko Carstens
On Wed, Jul 27, 2016 at 11:46:01PM -0400, Theodore Ts'o wrote: > On Wed, Jul 27, 2016 at 09:14:00AM +0200, Heiko Carstens wrote: > > it looks like your patch "random: make /dev/urandom scalable for silly > > userspace programs" within linux-next seems to be a bit broken: > > > > It causes this all

Re: bcache super block corruption with non 4k pages

2016-07-27 Thread Kent Overstreet
On Wed, Jul 27, 2016 at 05:16:36PM +0200, Stefan Bader wrote: > So here is another attempt which does half the proposed changes. And before > you > point out that it looks still ugly, let me explain some reasons. The goal for > me > would be to have something as small as possible to be acceptable

Re: [PATCH 19/32] sched.h: Add rg_list and rdtgroup in task_struct

2016-07-27 Thread Nilay Vaish
On 12 July 2016 at 20:02, Fenghua Yu wrote: > From: Fenghua Yu > > rg_list is linked list to connect to other tasks in a rdtgroup. > > The point of rdtgroup allows the task to access its own rdtgroup directly. > > Signed-off-by: Fenghua Yu > Reviewed-by: Tony Luck > --- > include/linux/sched.h

Re: staging: lustre: One function call less in class_register_type() after error detection

2016-07-27 Thread SF Markus Elfring
> This function is called several times during lustre module insert. > Namely it's called 5 times for 5 types: > osc, mdc, lov, lmv, mgc. Will any extra memory accesses matter for the successful execution in this use case? > It's not called any more than that, so it's not exactly a super hot-pat

Re: [PATCH 1/3] Add a new field to struct shrinker

2016-07-27 Thread Dave Chinner
[line wrap text at 72 columns, please] On Tue, Jul 26, 2016 at 09:40:57AM -0700, Tony Jones wrote: > On 07/20/2016 07:54 AM, Michal Hocko wrote: > >On Wed 20-07-16 20:11:09, Janani Ravichandran wrote: > >>>On Jul 11, 2016, at 8:03 PM, Michal Hocko wrote: > >>>On Mon 11-07-16 10:12:51, Rik van Ri

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

2016-07-27 Thread Eric Dumazet
On Wed, 2016-07-27 at 14:38 -0700, Jeff Kirsher wrote: > On Tue, 2016-07-26 at 11:14 +0200, Eric Dumazet wrote: > > Could you try this ? > > > > diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c > > b/drivers/net/ethernet/intel/e1000/e1000_main.c > > index > > f42129d09e2c23ba9fdb5cde890d

Re: [PATCH 17/32] x86, intel_cacheinfo: Enable cache id in x86

2016-07-27 Thread Nilay Vaish
On 12 July 2016 at 20:02, Fenghua Yu wrote: > From: Fenghua Yu > > Enable cache id in x86. Cache id comes from APIC ID and CPUID4. > I think one of these patches on cache ids should refer to some documentation from Intel on this subject, either in the commit message or in the comments in some fi

Re: [PATCH 6/7] qemu: Implement virtio-pstore device

2016-07-27 Thread Namhyung Kim
On Thu, Jul 28, 2016 at 03:02:54AM +0300, Michael S. Tsirkin wrote: > On Thu, Jul 28, 2016 at 12:08:30AM +0900, Namhyung Kim wrote: > > Add virtio pstore device to allow kernel log files saved on the host. > > It will save the log files on the directory given by pstore device > > option. > > > >

[GIT PULL] libnvdimm for 4.8

2016-07-27 Thread Williams, Dan J
Hi Linus, please pull from:   git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-for-4.8 ...to receive the libnvdimm update for 4.8. This has been in -next with the following reported conflicts: 1/ The __pmem address space has been removed.  New usages of __pmem came in

RE: [virtio-dev] Re: [PATCH v2 repost 6/7] mm: add the related functions to get free page info

2016-07-27 Thread Li, Liang Z
> > diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 7da61ad..3ad8b10 > > 100644 > > --- a/mm/page_alloc.c > > +++ b/mm/page_alloc.c > > @@ -4523,6 +4523,52 @@ unsigned long get_max_pfn(void) } > > EXPORT_SYMBOL(get_max_pfn); > > > > +static void mark_free_pages_bitmap(struct zone *zone, unsig

[GIT PULL]: dmaengine update for 4.8-rc1

2016-07-27 Thread Vinod Koul
Hello Linus, Here is the PULL request for 4.8-rc1. Two new drivers, bunch of updates and cleanups to existing set. Nothing super exciting though. The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git rep

Re: lib/mpi: BUG: sleeping function called from invalid context on next-20160726

2016-07-27 Thread Herbert Xu
On Wed, Jul 27, 2016 at 11:05:05PM +0200, Nicolai Stange wrote: > > with linux-next-20160726, I get this: > > BUG: sleeping function called from invalid context at > /mnt/scratch/nic/linux-next/mm/slab.h:388 Does this patch help? > I would have sent a patch, but there is another point which

Re: RFC: using worker threadpool to speed up clear_huge_page() by up to 5x

2016-07-27 Thread David Miller
From: kpusukur Date: Sun, 17 Jul 2016 12:35:20 -0700 > We would welcome feedback and discussion of potential problems. > > We would also like to hear ideas for other areas in the kernel where a > similar technique could be employed. For example, we've also applied > this idea to copy on write op

linux-next: Tree for Jul 28

2016-07-27 Thread Stephen Rothwell
Hi all, Please do not add material destined for v4.9 to your linux-next included branches until after v4.8-rc1 has been released. Changes since 20160727: The powerpc tree lost its build failure. The kbuild tree gained a conflict against Linus' tree and a build failure due to an intera

[PATCH 1/2] tracing: Add latency histograms

2016-07-27 Thread Binoy Jayan
From: Carsten Emde This patch provides a recording mechanism to store data of potential sources of system latencies. The recordings separately determine the latency caused by a delayed timer expiration, by a delayed wakeup of the related user space program and by the sum of both. The histograms c

[PATCH 2/2] trace: Add missing tracer macros

2016-07-27 Thread Binoy Jayan
From: Yang Shi When building rt kernel with IRQSOFF_TRACER enabled but INTERRUPT_OFF_HIST or PREEMPT_OFF_HIST disabled, the below build failure will be triggered: | kernel/trace/trace_irqsoff.c: In function 'time_hardirqs_on': | kernel/trace/trace_irqsoff.c:453:2: error: implicit declaration of

[PATCH 0/2] *** Latency Histogram ***

2016-07-27 Thread Binoy Jayan
Hi, I was looking at these RT kernel patches and was wondering why it has not been upstreamed yet. I have made a few changes to these patches to make it compliant with upstream submission process. Also did a minimal testing on my msm board. Can some one from rt kernel team shed some light on why t

Re: [PATCH] dmaengine: device must have at least one channel

2016-07-27 Thread Viresh Kumar
On 28-07-16, 09:18, Vinod Koul wrote: > On Wed, Jul 27, 2016 at 02:32:58PM -0700, Viresh Kumar wrote: > > The DMA device can't be registered if it doesn't have any channels > > registered at all. Moreover, it leads to memory leak and is reported by > > kmemleak as (on 3.10 kernel, and same shall ha

[PATCH] mpt3sas: Ensure the connector_name string is NUL-terminated

2016-07-27 Thread Calvin Owens
We blindly trust the hardware to give us NUL-terminated strings, which is a bad idea because it doesn't always do that. For example: [ 481.184784] mpt3sas_cm0: enclosure level(0x), connector name( \x3) In this case, connector_name is four spaces. We got lucky here because the 2nd by

Re: [RFC 4/4] Restartable sequences: Add self-tests for PPC

2016-07-27 Thread Boqun Feng
On Thu, Jul 28, 2016 at 02:59:45AM +, Mathieu Desnoyers wrote: > - On Jul 27, 2016, at 11:05 AM, Boqun Feng boqun.f...@gmail.com wrote: > > > As rseq syscall is enabled on PPC, implement the self-tests on PPC to > > verify the implementation of the syscall. > > > > Please note we only sup

RE: [PATCH v2 repost 6/7] mm: add the related functions to get free page info

2016-07-27 Thread Li, Liang Z
> On 07/27/2016 03:05 PM, Michael S. Tsirkin wrote: > > On Wed, Jul 27, 2016 at 09:40:56AM -0700, Dave Hansen wrote: > >> On 07/26/2016 06:23 PM, Liang Li wrote: > >>> + for_each_migratetype_order(order, t) { > >>> + list_for_each(curr, &zone->free_area[order].free_list[t]) { > >>> +

[PATCH v3 1/2] tpm: devicetree: document properties for cr50

2016-07-27 Thread Andrey Pronin
Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. Signed-off-by: Andrey Pronin --- .../devicetree/bindings/security/tpm/cr50_spi.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/cr50_spi

[PATCH v3 2/2] tpm: add driver for cr50 on SPI

2016-07-27 Thread Andrey Pronin
Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. The firmware running on the currently supported H1 Secure Microcontroller requires a special driver to handle its specifics: - need to ensure a certain delay between spi transactions, or else the chip may miss some part

[PATCH v3 0/2] tpm: add driver for cr50 on SPI

2016-07-27 Thread Andrey Pronin
This patchset adds support for H1 Secure Microcontroller running Cr50 firmware. It implements several functions, including TPM-like functionality, and communicates over SPI using the FIFO protocol described in the PTP Spec, section 6. H1 is a proprietary chip that the Chrome OS team is investigatin

Re: [PATCH] Kbuild: Move -Wmaybe-uninitialized to W=1

2016-07-27 Thread Borislav Petkov
Hi Linus, about 6e8d666e9253 ("Disable "maybe-uninitialized" warning globally"): Good! Finally! This thing was really getting on my nerves. Btw, I tried at the time to move it to W=1 insted of completely disabling it, see below. That got nowhere though. On Mon, Jul 07, 2014 at 12:53:39PM +0200

[PATCH v3] tpm: add sysfs attributes for tpm2

2016-07-27 Thread Andrey Pronin
Add sysfs attributes in TPM2.0 case for: - TPM_PT_PERMANENT flags - TPM_PT_STARTUP_CLEAR flags - lockout-related properties v2: Dropped adding driver-specific attributes. No legacy links for TPM2 attributes. All attributes created in groups[0]. Added actual attributes for flags and

[patch-rt] scsi/fcoe: Fix get_cpu()/put_cpu_light() imbalance in fcoe_recv_frame()

2016-07-27 Thread Mike Galbraith
During master->rt merge, I stumbled across the buglet below. Fix get_cpu()/put_cpu_light() imbalance. Signed-off-by: Mike Gabraith --- drivers/scsi/fcoe/fcoe.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -1814,7 +181

Re: [GIT PULL] binfmt_misc updates for 4.7+ merge window

2016-07-27 Thread Joe Perches
On Wed, 2016-07-27 at 20:33 -0700, Linus Torvalds wrote: > On Wed, Jul 27, 2016 at 8:31 PM, Linus Torvalds > wrote: > > I'd actually prefer to make "--git" the default, if you are inside a > > git repository. Because obviously the *actual* default is too hard to > > understand ;) Well, you are i

Re: warning: calling ‘__builtin_return_address’ with a nonzero argument is unsafe

2016-07-27 Thread Steven Rostedt
On Wed, 27 Jul 2016 20:21:50 -0700 Linus Torvalds wrote: > On Wed, Jul 27, 2016 at 6:58 PM, Steven Rostedt wrote: > > On Wed, 27 Jul 2016 16:00:54 -0700 > > Linus Torvalds wrote: > >> > >> I can just add a > >> > >> KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) > > > > I lik

[PATCH v3 1/2] tpm_tis_core: add optional max xfer size check

2016-07-27 Thread Andrey Pronin
If tpm reports a bigger burstcnt than allowed by the physical protocol, set burstcnt to the max allowed value. In practice, seen in case of xfer issues (e.g. in spi interface case, lost header causing flow control issues and wrong values returned on read from TPM_STS). Without catching, causes the

[PATCH v3 2/2] tpm_tis_spi: add max xfer size

2016-07-27 Thread Andrey Pronin
Reject burstcounts larger than 64 bytes reported by tpm. SPI Hardware Protocol defined in section 6.4 of TCG PTP Spec supports up to 64 bytes of data in a transaction. Signed-off-by: Andrey Pronin --- drivers/char/tpm/tpm_tis_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char

[PATCH v3 0/2] tpm: add optional max xfer size check

2016-07-27 Thread Andrey Pronin
This patchset introduces an optional maximum transfer size that can be specified by a tpm driver. Setting the max_xfer_size helps to catch the cases when burstcnt is incorrectly reported by the device (e.g. >64 for spi - happened in practice) and gracefully handle such situations. v2: removed unne

RE: [PATCH v2 repost 4/7] virtio-balloon: speed up inflate/deflate process

2016-07-27 Thread Li, Liang Z
> > +/* > > + * VIRTIO_BALLOON_PFNS_LIMIT is used to limit the size of page bitmap > > + * to prevent a very large page bitmap, there are two reasons for this: > > + * 1) to save memory. > > + * 2) allocate a large bitmap may fail. > > + * > > + * The actual limit of pfn is determined by: > > + * p

[REGRESSION] wlcore wlcore_op_get_expected_throughput null ptr dereference

2016-07-27 Thread John Stultz
So after rebasing my HiKey tree ontop of Linus' HEAD today, I started having trouble with the wlcore wifi. The first issue was that the firmware I was using was deemed too old, but after updating to .69, I then started hitting null pointer crashes when wifi was initialized. [7.326224] wlcore

Re: [BUG -next] "random: make /dev/urandom scalable for silly userspace programs" causes crash

2016-07-27 Thread Theodore Ts'o
On Wed, Jul 27, 2016 at 09:14:00AM +0200, Heiko Carstens wrote: > it looks like your patch "random: make /dev/urandom scalable for silly > userspace programs" within linux-next seems to be a bit broken: > > It causes this allocation failure and subsequent crash on s390 with fake > NUMA enabled Th

Re: [PATCH] dmaengine: device must have at least one channel

2016-07-27 Thread Vinod Koul
On Wed, Jul 27, 2016 at 02:32:58PM -0700, Viresh Kumar wrote: > The DMA device can't be registered if it doesn't have any channels > registered at all. Moreover, it leads to memory leak and is reported by > kmemleak as (on 3.10 kernel, and same shall happen on mainline): > > unreferenced object 0x

Re: [PATCH v2 3/3] drm/mediatek: fix the wrong pixel clock when resolution is 4K

2016-07-27 Thread Bibby Hsieh
Hi, Philipp, Thanks for your comments. On Wed, 2016-07-27 at 11:23 +0200, Philipp Zabel wrote: > Am Mittwoch, den 27.07.2016, 16:31 +0800 schrieb Bibby Hsieh: > > From: Junzhi Zhao > > > > Pixel clock should be 297MHz when resolution is 4K. > > This patch does two different things, please don'

Re: [PATCH v11] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-27 Thread Fu Wei
Hi Rafael, On 28 July 2016 at 07:12, Rafael J. Wysocki wrote: > On Thursday, July 28, 2016 01:29:05 AM fu@linaro.org wrote: >> From: Tomasz Nowicki >> >> This commit provides APEI arch-specific bits for aarch64 >> >> Meanwhile, >> (1)add a new subfunction "hest_ia32_init" for >> "acpi_disabl

Re: [PATCH v2 2/3] drm/mediatek: enhance the HDMI driving current

2016-07-27 Thread Bibby Hsieh
Hi, Philipp, Thanks for your review. On Wed, 2016-07-27 at 11:25 +0200, Philipp Zabel wrote: > Am Mittwoch, den 27.07.2016, 16:31 +0800 schrieb Bibby Hsieh: > > From: Junzhi Zhao > > > > In order to improve 4K resolution performance, > > we have to enhance the HDMI driving currend >

Re: [PATCH v2 1/3] drm/mediatek: do mtk_hdmi_send_infoframe after HDMI clock enable

2016-07-27 Thread Bibby Hsieh
Hi, Philipp, Thanks for your review. On Wed, 2016-07-27 at 11:27 +0200, Philipp Zabel wrote: > Am Mittwoch, den 27.07.2016, 16:31 +0800 schrieb Bibby Hsieh: > > From: Junzhi Zhao > > > > The mtk_hdmi_send_infoframe have to > > be run after PLL and PIXEL clock of HDMI enable. > > Make sure that

Re: [GIT PULL] binfmt_misc updates for 4.7+ merge window

2016-07-27 Thread Linus Torvalds
On Wed, Jul 27, 2016 at 8:31 PM, Linus Torvalds wrote: > > I'd actually prefer to make "--git" the default, if you are inside a > git repository. Because obviously the *actual* default is too hard to > understand ;) I'd also like to make the "-f" optional. I constantly forget it, and curse it. I

Re: [GIT PULL] binfmt_misc updates for 4.7+ merge window

2016-07-27 Thread Linus Torvalds
On Wed, Jul 27, 2016 at 8:26 PM, Linus Torvalds wrote: > > Hmm. Fishy. Hmm. The exact match logic is a bit odd, and clearly doesn't mean what I thought it meant. Reading that perl code just makes me more confused. I'd actually prefer to make "--git" the default, if you are inside a git repositor

Re: [GIT PULL] binfmt_misc updates for 4.7+ merge window

2016-07-27 Thread Joe Perches
On Wed, 2016-07-27 at 20:26 -0700, Linus Torvalds wrote: > On Wed, Jul 27, 2016 at 8:21 PM, Joe Perches wrote: > > > > On Wed, 2016-07-27 at 20:12 -0700, Linus Torvalds wrote: > > > > > > Did you actually try it. > > yes. > Well, in that case the script is buggy. It self-documents as having > "-

RE: [PATCH v2 repost 4/7] virtio-balloon: speed up inflate/deflate process

2016-07-27 Thread Li, Liang Z
> Subject: Re: [PATCH v2 repost 4/7] virtio-balloon: speed up inflate/deflate > process > > On Wed, Jul 27, 2016 at 09:03:21AM -0700, Dave Hansen wrote: > > On 07/26/2016 06:23 PM, Liang Li wrote: > > > + vb->pfn_limit = VIRTIO_BALLOON_PFNS_LIMIT; > > > + vb->pfn_limit = min(vb->pfn_limit, get_max

Re: [PATCH v1 2/2] drm/bridge: analogix_dp: turn off the panel when eDP need to disable

2016-07-27 Thread Yakir Yang
Sean, Oops, sorry about miss your suggest :( On 07/22/2016 11:03 PM, Sean Paul wrote: On Thu, Jul 21, 2016 at 9:00 PM, Yakir Yang wrote: Sean, Thanks for your fast respond :-) But this patch is not the latest one, I have upgraded this to "v1.1" version to fix the eDP can't be disabled probl

Re: [GIT PULL] binfmt_misc updates for 4.7+ merge window

2016-07-27 Thread Linus Torvalds
On Wed, Jul 27, 2016 at 8:21 PM, Joe Perches wrote: > On Wed, 2016-07-27 at 20:12 -0700, Linus Torvalds wrote: >> Did you actually try it. > > yes. Well, in that case the script is buggy. It self-documents as having "--git-fallback" on by default, and I'm not seeing anybody claiming explicit main

Re: [GIT PULL] binfmt_misc updates for 4.7+ merge window

2016-07-27 Thread Joe Perches
On Wed, 2016-07-27 at 20:12 -0700, Linus Torvalds wrote: > On Wed, Jul 27, 2016 at 7:57 PM, Joe Perches wrote: > > It'll continue to list only Al Viro unless a --git cmdline option > > is specified and almost no one uses that. > Did you actually try it. Sorry about the last reply, typing with a b

Re: warning: calling ‘__builtin_return_address’ with a nonzero argument is unsafe

2016-07-27 Thread Linus Torvalds
On Wed, Jul 27, 2016 at 6:58 PM, Steven Rostedt wrote: > On Wed, 27 Jul 2016 16:00:54 -0700 > Linus Torvalds wrote: >> >> I can just add a >> >> KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) > > I like this solution. Ok. Pushed out. As long as people are aware of this, and are ho

Re: [GIT PULL] binfmt_misc updates for 4.7+ merge window

2016-07-27 Thread Joe Perches
On Wed, 2016-07-27 at 20:12 -0700, Linus Torvalds wrote: > On Wed, Jul 27, 2016 at 7:57 PM, Joe Perches wrote: > > > > > > It'll continue to list only Al Viro unless a --git cmdline option > > is specified and almost no one uses that. > Did you actually try it. yes. $ ./scripts/get_maintainer.p

Re: [RFC 3/4] Restartable sequences: Wire up powerpc system call

2016-07-27 Thread Mathieu Desnoyers
- On Jul 27, 2016, at 11:05 AM, Boqun Feng boqun.f...@gmail.com wrote: > Wire up the rseq system call on powerpc. > > This provides an ABI improving the speed of a user-space getcpu > operation on powerpc by skipping the getcpu system call on the fast > path, as well as improving the speed of

Re: [RFC 2/4] Restartable sequences: powerpc architecture support

2016-07-27 Thread Mathieu Desnoyers
- On Jul 27, 2016, at 11:05 AM, Boqun Feng boqun.f...@gmail.com wrote: > Call the rseq_handle_notify_resume() function on return to userspace if > TIF_NOTIFY_RESUME thread flag is set. > > Increment the event counter and perform fixup on the pre-signal when a > signal is delivered on top of a

Re: [GIT PULL] binfmt_misc updates for 4.7+ merge window

2016-07-27 Thread Linus Torvalds
On Wed, Jul 27, 2016 at 7:57 PM, Joe Perches wrote: > > It'll continue to list only Al Viro unless a --git cmdline option > is specified and almost no one uses that. Did you actually try it. The get_maintainer.pl script should use "--git-fallback" by default, so in the absence of a an exact matc

[PATCH] extable.h: add stddef.h so "NULL" definition is not implicit

2016-07-27 Thread Paul Gortmaker
While not an issue now, eventually we will have independent users of the extable.h file and we will stop sourcing it via module.h header. In testing that pending work, with very sparse builds, characteristic of an "allnoconfig" on various architectures, we can sometimes hit an instance where the v

RE: [PATCH] perf sched: fix wrong conversion of task state

2016-07-27 Thread Tomoki Sekiyama
On 2016/7/28 1:50, David Ahern wrote: diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 0dfe8df..eb2f7f4 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c @@ -71,6 +71,7 @@ struct sched_atom { }; #define TASK_

Re: [RFC PATCH v7 1/7] Restartable sequences system call

2016-07-27 Thread Mathieu Desnoyers
- On Jul 27, 2016, at 11:03 AM, Boqun Feng boqun.f...@gmail.com wrote: > Hi Mathieu, > > On Thu, Jul 21, 2016 at 05:14:16PM -0400, Mathieu Desnoyers wrote: >> Expose a new system call allowing each thread to register one userspace >> memory area to be used as an ABI between kernel and user-sp

Re: [RFC 1/4] rseq/param_test: Convert test_data_entry::count to intptr_t

2016-07-27 Thread Mathieu Desnoyers
- On Jul 27, 2016, at 11:05 AM, Boqun Feng boqun.f...@gmail.com wrote: > The current semantics of do_resq() is to do a intptr_t type store in > successful cases, however, in test_percpu_{inc,spinlock}, we use > test_data_entry::count as the location to store, whose type is int. > > intptr_t a

RE: [PATCH v2 repost 4/7] virtio-balloon: speed up inflate/deflate process

2016-07-27 Thread Li, Liang Z
> > + * VIRTIO_BALLOON_PFNS_LIMIT is used to limit the size of page bitmap > > + * to prevent a very large page bitmap, there are two reasons for this: > > + * 1) to save memory. > > + * 2) allocate a large bitmap may fail. > > + * > > + * The actual limit of pfn is determined by: > > + * pfn_limit

[PATCH v13 06/30] powerpc/ptrace: Adapt gpr32_get, gpr32_set functions for transaction

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch splits gpr32_get, gpr32_set functions to accommodate in transaction ptrace requests implemented in patches later in the series. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- arch/powerpc/kernel/ptrace.c | 64 ++

[PATCH v13 10/30] powerpc/ptrace: Enable support for NT_PPC_CVSX

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed VSX register set ELF core note NT_PPC_CVSX based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CVSX in powerpc corresponding to the ELF core note sectio

[PATCH v13 11/30] powerpc/ptrace: Enable support for TM SPR state

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM SPR state related ELF core note NT_PPC_TM_SPR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_TM_SPR in powerpc corresponding to the ELF core note section added.

[PATCH v13 08/30] powerpc/ptrace: Enable support for NT_PPC_CFPR

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed FPR register set ELF core note NT_PPC_CFPR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CFPR in powerpc corresponding to the ELF core note sectio

Re: [PATCH 1/3] drm: introduce share plane

2016-07-27 Thread Mark yao
Any ideas for the share planes? This function is important for our series of vop full design. The series of vop is: IP versionchipname 3.1 rk3288 3.2 rk3368 3.4 rk3366 3.5 rk3399 big 3.6 rk3399 lit 3.7

[PATCH v13 18/30] selftests/powerpc: Add ptrace tests for EBB

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for EBB/PMU specific registers. This also adds some generic ptrace interface based helper functions to be used by other patches later on in the series. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/sel

[PATCH v13 28/30] selftests/powerpc: Add ptrace tests for TM SPR registers

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TM SPR registers. This also adds ptrace interface based helper functions related to TM SPR registers access. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftests/powerpc/ptrace/Makefile| 3

[PATCH v13 17/30] selftests/powerpc: Use the new SPRN_DSCR_PRIV definiton

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual Now that the new DSCR register definitions (SPRN_DSCR_PRIV and SPRN_DSCR) are defined outside this directory, use them instead. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftests/powerpc/dscr/dscr.h | 10 -- 1 file changed, 4

[PATCH v13 27/30] selftests/powerpc: Add ptrace tests for VSX, VMX registers in suspended TM

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers inside suspended TM context. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftests/powerpc/ptrace/Makefile| 3 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c | 222

[PATCH v13 22/30] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR registers

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers. This also adds ptrace interface based helper functions related to TAR, PPR, DSCR register access. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftests/powerpc/ptrace/Ma

[PATCH v13 20/30] selftests/powerpc: Add ptrace tests for GPR/FPR registers in TM

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers inside TM context. This adds ptrace interface based helper functions related to checkpointed GPR/FPR access. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftests/powerpc/ptrace

[PATCH v13 30/30] selftests/powerpc: Fix a build issue

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual Fixes the following build failure - cp_abort.c:90:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < NUM_LOOPS; i++) { ^ cp_abort.c:90:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your cod

[PATCH v13 26/30] selftests/powerpc: Add ptrace tests for VSX, VMX registers in TM

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers inside TM context. This also adds ptrace interface based helper functions related to chckpointed VSX, VMX registers access. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftest

[PATCH v13 24/30] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in suspended TM

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers inside suspended TM context. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftests/powerpc/ptrace/Makefile| 2 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-tar.c

[PATCH v13 23/30] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in TM

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers inside TM context. This also adds ptrace interface based helper functions related to checkpointed TAR, PPR, DSCR register access. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/test

[PATCH v13 29/30] selftests/powerpc: Add .gitignore file for ptrace executables

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds a .gitignore file for all the executables in the ptrace test directory thus making invisible with git status query. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftests/powerpc/ptrace/.gitignore | 11 +++ 1 file

[PATCH v13 21/30] selftests/powerpc: Add ptrace tests for GPR/FPR registers in suspended TM

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers inside suspended TM context. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftests/powerpc/ptrace/Makefile| 2 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-gpr.c | 327

[PATCH v13 19/30] selftests/powerpc: Add ptrace tests for GPR/FPR registers

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers. This adds ptrace interface based helper functions related to GPR/FPR access and some assembly helper functions related to GPR/FPR registers. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools

[PATCH v13 25/30] selftests/powerpc: Add ptrace tests for VSX, VMX registers

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers. This also adds ptrace interface based helper functions related to VSX, VMX registers access. This also adds some assembly helper functions related to VSX and VMX registers. Signed-off-by: Anshuman Khandual Sig

[PATCH v13 15/30] powerpc/ptrace: Enable support for Performance Monitor registers

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for Performance monitor registers related ELF core note NT_PPC_PMU based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding one new register sets REGSET_PMU in powerpc corresponding to the ELF core n

[PATCH v13 16/30] selftests/powerpc: Add more SPR numbers, TM & VMX instructions to 'reg.h'

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds SPR number for TAR, PPR, DSCR special purpose registers. It also adds TM, VSX, VMX related instructions which will then be used by patches later in the series. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo --- tools/testing/selftests/powerpc

[PATCH v13 02/30] powerpc/process: Add the function flush_tmregs_to_thread

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch creates a function flush_tmregs_to_thread which will then be used by subsequent patches in this series. The function checks for self tracing ptrace interface attempts while in the TM context and logs appropriate warning message. Signed-off-by: Anshuman Khandual

Re: [RFC 4/4] Restartable sequences: Add self-tests for PPC

2016-07-27 Thread Mathieu Desnoyers
- On Jul 27, 2016, at 11:05 AM, Boqun Feng boqun.f...@gmail.com wrote: > As rseq syscall is enabled on PPC, implement the self-tests on PPC to > verify the implementation of the syscall. > > Please note we only support 32bit userspace on BE kernel. > > Signed-off-by: Boqun Feng > --- > tool

[PATCH v13 07/30] powerpc/ptrace: Enable support for NT_PPC_CGPR

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed GPR register set ELF core note NT_PPC_CGPR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CGPR in powerpc corresponding to the ELF core note sectio

[PATCH v13 05/30] powerpc/ptrace: Enable in transaction NT_PPC_VSX ptrace requests

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables in transaction NT_PPC_VSX ptrace requests. The function vsr_get which gets the running value of all VSX registers and the function vsr_set which sets the running value of of all VSX registers work on the running set of VMX registers whose location will b

[PATCH v13 13/30] powerpc/ptrace: Enable support for NT_PPPC_TAR, NT_PPC_PPR, NT_PPC_DSCR

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for running TAR, PPR, DSCR registers related ELF core notes NT_PPPC_TAR, NT_PPC_PPR, NT_PPC_DSCR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding three new register sets REGSET_TAR, REGSET_PP

[PATCH v13 12/30] powerpc/ptrace: Enable NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for all three TM checkpointed SPR states related ELF core note NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding three new register sets REGSET

[PATCH v13 01/30] elf: Add powerpc specific core note sections

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch adds twelve ELF core note sections for powerpc architecture for various registers and register sets which need to be accessed from ptrace interface and then gdb. These additions include special purpose registers like TAR, PPR, DSCR, TM running and checkpointed s

[PATCH v13 04/30] powerpc/ptrace: Enable in transaction NT_PPC_VMX ptrace requests

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables in transaction NT_PPC_VMX ptrace requests. The function vr_get which gets the running value of all VMX registers and the function vr_set which sets the running value of of all VMX registers work on the running set of VMX registers whose location will be

[PATCH v13 09/30] powerpc/ptrace: Enable support for NT_PPC_CVMX

2016-07-27 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed VMX register set ELF core note NT_PPC_CVMX based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CVMX in powerpc corresponding to the ELF core note sectio

  1   2   3   4   5   6   7   8   >