Re: [Xen-devel] [PATCH 8/8] xen/privcmd: Further s/MFN/GFN/ clean-up

2015-07-28 Thread David Vrabel
On 28/07/15 16:02, Julien Grall wrote: > The privcmd code is mixing the usage of GFN and MFN within the same > functions which make the code difficult to understand when you only work > with auto-translated guests. > > The privcmd driver is only dealing with GFN so replace all the mention > of

Re: [PATCH 5/9] x86/intel_rdt: Add new cgroup and Class of service management

2015-07-28 Thread Peter Zijlstra
On Wed, Jul 01, 2015 at 03:21:06PM -0700, Vikas Shivappa wrote: > static int __init intel_rdt_late_init(void) > { > struct cpuinfo_x86 *c = _cpu_data; > + static struct clos_cbm_map *ccm; > + u32 maxid, max_cbm_len; > + size_t sizeb; Why 'sizeb' ? 'size' is still available,

Re: [RFC PATCH 03/14] kthread: Add drain_kthread_worker()

2015-07-28 Thread Tejun Heo
Hello, On Tue, Jul 28, 2015 at 04:39:20PM +0200, Petr Mladek wrote: > +/* > + * Test whether @work is being queued from another work > + * executing on the same kthread. > + */ > +static bool is_chained_work(struct kthread_worker *worker) > +{ > + struct kthread_worker *current_worker; > + >

Re: [PATCH RFC 1/1] Documentation: describe how to add a system call

2015-07-28 Thread Kees Cook
On Tue, Jul 28, 2015 at 10:13 AM, David Drysdale wrote: > On Tue, Jul 28, 2015 at 5:43 PM, Kees Cook wrote: >> On Tue, Jul 28, 2015 at 4:41 AM, David Drysdale wrote: >>> Add a document describing the process of adding a new system call, >>> including the need for a flags argument for future

Re: [Xen-devel] [PATCH 7/8] hvc/xen: Further s/MFN/GFN clean-up

2015-07-28 Thread David Vrabel
On 28/07/15 16:02, Julien Grall wrote: > HVM_PARAM_CONSOLE_PFN is used to retrieved the console PFN for HVM > guest. It returns a PFN (aka GFN) and not a MFN. > > Furthermore, use directly virt_to_gfn for both PV and HVM domain rather > than doing a special case for each of the them.

Re: [Xen-devel] [PATCH 4/8] xen: Use the correctly the Xen memory terminologies

2015-07-28 Thread David Vrabel
On 28/07/15 16:02, Julien Grall wrote: > Based on include/xen/mm.h [1], Linux is mistakenly using MFN when GFN > is meant, I suspect this is because the first support for Xen was for > PV. This brough some misimplementation of helpers on ARM and make the > developper confused the expected

Re: [Xen-devel] [PATCH 6/8] video/xen-fbfront: Further s/MFN/GFN clean-up

2015-07-28 Thread David Vrabel
On 28/07/15 16:02, Julien Grall wrote: > The PV driver xen-fbfront is only dealing with GFN and not MFN. Rename > all the occurence of MFN to GFN. > > Also take the opportunity to replace to usage of pfn_to_gfn by > page_to_pfn. Reviewed-by: David Vrabel David -- To unsubscribe from this list:

[PATCH] user_ns: use correct check for single-threadedness

2015-07-28 Thread Kees Cook
From: Ricky Zhou Checking mm_users > 1 does not mean a process is multithreaded. For example, reading /proc/PID/maps temporarily increments mm_users, allowing other processes to (accidentally) interfere with unshare() calls. This fixes observed failures of unshare(CLONE_NEWUSER) incorrectly

Re: [PATCH RFC 1/1] Documentation: describe how to add a system call

2015-07-28 Thread David Drysdale
On Tue, Jul 28, 2015 at 5:43 PM, Kees Cook wrote: > On Tue, Jul 28, 2015 at 4:41 AM, David Drysdale wrote: >> Add a document describing the process of adding a new system call, >> including the need for a flags argument for future compatibility, and >> covering 32-bit/64-bit concerns (albeit in

Re: [Xen-devel] [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-28 Thread Boris Ostrovsky
On 07/28/2015 01:07 PM, Andy Lutomirski wrote: On Tue, Jul 28, 2015 at 9:30 AM, Andrew Cooper wrote: I suspect that the set_ldt(NULL, 0) call hasn't reached Xen before xen_free_ldt() is attempting to nab back the pages which Xen still has mapped as an LDT. I just instrumented it with yet

[ANNOUNCE] Git v2.4.7

2015-07-28 Thread Junio C Hamano
The latest maintenance release Git v2.4.7 is now available at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories all have a copy of the 'v2.4.7' tag and the 'maint' branch that the tag points at: url =

Re: [RFC] Generic VME UIO

2015-07-28 Thread Martyn Welch
Hi Dmitry, On 22/07/15 19:09, Dmitry Kalinkin wrote: Linux kernel has supported VME bus since 2009. The support comes in a form of kernel driver API that is backed by a couple drivers for PCI-VME bridges. There is also a vme_user driver that provides a generic userpsace interface to do data

Re: vmemmap_verify() BUGs during memory hotplug (4.2-rc1 regression)

2015-07-28 Thread David Vrabel
On 27/07/15 16:41, Mel Gorman wrote: > On Mon, Jul 27, 2015 at 04:32:45PM +0100, David Vrabel wrote: >> Mel, >> >> As of commit 8a942fdea560d4ac0e9d9fabcd5201ad20e0c382 (mm: meminit: make >> __early_pfn_to_nid SMP-safe and introduce meminit_pfn_in_nid) >> vmemmap_verify() will BUG_ON() during

Re: [PATCH] mm: add resched points to remap_pmd_range/ioremap_pmd_range

2015-07-28 Thread Jörn Engel
On Tue, Jul 28, 2015 at 03:32:55PM +0200, Michal Hocko wrote: > > > > We have kernel preemption disabled. A lower-priority task in a system > > call will block higher-priority tasks. > > This is an inherent problem of !PREEMPT, though. There are many > loops which can take quite some time but

Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data

2015-07-28 Thread Guenter Roeck
On 07/28/2015 08:28 AM, Lee Jones wrote: On Tue, 28 Jul 2015, Guenter Roeck wrote: On 07/28/2015 08:00 AM, Lee Jones wrote: On Tue, 28 Jul 2015, Matt Fleming wrote: On Tue, 28 Jul, at 12:37:21PM, Lee Jones wrote: The driver shouldn't be called that either. You are the only one. What

Re: [PATCH 4/6] pci: altera: Add Altera PCIe MSI driver

2015-07-28 Thread Dinh Nguyen
On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan wrote: > This patch adds Altera PCIe MSI driver. This soft IP supports configurable > number of vectors, which is a dts parameter. > > Signed-off-by: Ley Foon Tan > --- > drivers/pci/host/Kconfig | 7 + > drivers/pci/host/Makefile

Re: [PATCH] Doc: x86: Fix typo in intel_mpx.txt

2015-07-28 Thread Randy Dunlap
On 07/28/15 04:00, Masanari Iida wrote: > This patch fix some spelling typos in intel_mpx.txt > > Signed-off-by: Masanari Iida > --- > Documentation/x86/intel_mpx.txt | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Documentation/x86/intel_mpx.txt

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-28 Thread Andy Lutomirski
On Tue, Jul 28, 2015 at 9:30 AM, Andrew Cooper wrote: > I suspect that the set_ldt(NULL, 0) call hasn't reached Xen before > xen_free_ldt() is attempting to nab back the pages which Xen still has > mapped as an LDT. > I just instrumented it with yet more LSL instructions. I'm pretty sure that

Re: [PATCH 5/9] x86/intel_rdt: Add new cgroup and Class of service management

2015-07-28 Thread Peter Zijlstra
On Wed, Jul 01, 2015 at 03:21:06PM -0700, Vikas Shivappa wrote: > +struct clos_cbm_map { > + unsigned long cache_mask; > + unsigned int clos_refcnt; > +}; This structure is not a map at all, its the map value. Furthermore, cache_mask seems a confusing name for the capacity bitmask (CBM).

Re: Is devm_* broken ?

2015-07-28 Thread Laurent Pinchart
On Tuesday 28 July 2015 11:22:25 Tejun Heo wrote: > On Tue, Jul 28, 2015 at 05:16:16PM +0300, Laurent Pinchart wrote: > > Using devm_kzalloc() in such a way has value though, and reverting drivers > > to the pre-devm memory allocation code would make error handling and > > cleanup code paths more

Re: [PATCH char-misc-next 10/19] lib: convert iova.c into a library

2015-07-28 Thread Sudeep Dutt
On Tue, 2015-07-28 at 15:38 +0100, David Woodhouse wrote: > On Tue, 2015-07-28 at 11:41 +0100, Robin Murphy wrote: > > On 28/07/15 11:03, Joerg Roedel wrote: > > > On Mon, Jul 27, 2015 at 04:57:32PM -0700, Ashutosh Dixit wrote: > > > > From: Harish Chegondi > > > > > > > > This patch converts

Re: [PATCH -v2 6/8] jump_label: Add a new static_key interface

2015-07-28 Thread Rabin Vincent
On Tue, Jul 28, 2015 at 03:21:01PM +0200, Peter Zijlstra wrote: > --- a/arch/arm/include/asm/jump_label.h > +++ b/arch/arm/include/asm/jump_label.h > @@ -7,20 +7,28 @@ > > #define JUMP_LABEL_NOP_SIZE 4 > > -#ifdef CONFIG_THUMB2_KERNEL > -#define JUMP_LABEL_NOP "nop.w" > -#else >

Please can I trust you?

2015-07-28 Thread Brice Adams
My Dear Friend, I am Mr. Brice Adams, staff and auditor of a Bank in Lome, Togo Republic. I am the Account Officer to (Late Mr. Daniel I. Glade) whose account is presently dormant, I advise you to keep this as a "top secret" as I am still in service and intend to retire from service after I

Re: [PATCH v5 4/4] x86/ldt: Make modify_ldt optional

2015-07-28 Thread Kees Cook
On Mon, Jul 27, 2015 at 10:29 PM, Andy Lutomirski wrote: > The modify_ldt syscall exposes a large attack surface and is > unnecessary for modern userspace. Make it optional. > > Signed-off-by: Andy Lutomirski Reviewed-by: Kees Cook > --- > arch/x86/Kconfig | 17

Please can I trust you?

2015-07-28 Thread Brice Adams
My Dear Friend, I am Mr. Brice Adams, staff and auditor of a Bank in Lome, Togo Republic. I am the Account Officer to (Late Mr. Daniel I. Glade) whose account is presently dormant, I advise you to keep this as a "top secret" as I am still in service and intend to retire from service after I

Re: [RFC 0/2] VFIO: Add virtual MSI doorbell support.

2015-07-28 Thread Marc Zyngier
Hi Alex, On 28/07/15 17:21, Alex Williamson wrote: > On Fri, 2015-07-24 at 14:33 +0530, Pranavkumar Sawargaonkar wrote: >> In current VFIO MSI/MSI-X implementation, linux host kernel >> allocates MSI/MSI-X vectors when userspace requests through vfio ioctls. >> Vfio creates irqfd mappings to

Re: [PATCH v5 3/4] selftests/x86, x86/ldt: Add a selftest for modify_ldt

2015-07-28 Thread Kees Cook
On Mon, Jul 27, 2015 at 10:29 PM, Andy Lutomirski wrote: > This tests general modify_ldt behavior (only writes, so far) as > well as synchronous updates via IPI. It fails on old kernels. > > I called this ldt_gdt because I'll add set_thread_area tests to > it at some point. > > Signed-off-by:

[3.13.y-ckt stable] Linux 3.13.11-ckt24

2015-07-28 Thread Kamal Mostafa
I am announcing the release of the Linux 3.13.11-ckt24 kernel. The updated 3.13.y-ckt tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-3.13.y and can be browsed at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.13.y The diff from v3.13.11-ckt23 is posted

Re: [3.13.y-ckt stable] Linux 3.13.11-ckt24

2015-07-28 Thread Kamal Mostafa
diff --git a/Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt b/Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt index 859a6fa..0856c9a 100644 --- a/Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt +++

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-28 Thread Dinh Nguyen
On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan wrote: > This patch adds the Altera PCIe host controller driver. > > Signed-off-by: Ley Foon Tan > --- > drivers/pci/host/Kconfig | 9 + > drivers/pci/host/Makefile | 1 + > drivers/pci/host/pcie-altera.c | 576 >

Re: X-Gene: Unhandled fault: synchronous external abort in pci_generic_config_read32

2015-07-28 Thread Bjorn Helgaas
On Fri, Jul 24, 2015 at 7:05 PM, Duc Dang wrote: > Hi Bjorn, > > On Fri, Jul 24, 2015 at 3:42 PM, Bjorn Helgaas wrote: >> >> I regularly see faults like this on an APM X-Gene: >> >> U-Boot 2013.04-mustang_sw_1.14.14 (Dec 16 2014 - 15:59:33) >> CPU0: APM ARM 64-bit Potenza Rev B0 2400MHz PCP

Re: [PATCH RFC 1/1] Documentation: describe how to add a system call

2015-07-28 Thread Kees Cook
On Tue, Jul 28, 2015 at 4:41 AM, David Drysdale wrote: > Add a document describing the process of adding a new system call, > including the need for a flags argument for future compatibility, and > covering 32-bit/64-bit concerns (albeit in an x86-centric way). > > Signed-off-by: David Drysdale

Re: [PATCH RFC 0/1] Document how to add a new syscall

2015-07-28 Thread Shuah Khan
On 07/28/2015 10:02 AM, David Drysdale wrote: > On Tue, Jul 28, 2015 at 3:19 PM, Peter Zijlstra wrote: >> On Tue, Jul 28, 2015 at 07:59:16AM -0600, Shuah Khan wrote: >>> On 07/28/2015 05:41 AM, David Drysdale wrote: Given that I've gotten some of the details wrong in the past (and I've

Re: [PATCH v6 2/2] ARM: imx: Add suspend codes for imx7D

2015-07-28 Thread Zhi Li
On Tue, Jul 28, 2015 at 9:30 AM, Shawn Guo wrote: > On Tue, Jul 28, 2015 at 02:16:20PM +, Shenwei Wang wrote: >> > The files are named with "-imx7". It's a clear sign that the build of the >> > files >> > should be controlled by something like related to "imx7". >> > Ideally, it should be

Re: [PATCH 6/9] x86/intel_rdt: Add support for cache bit mask management

2015-07-28 Thread Peter Zijlstra
On Wed, Jul 01, 2015 at 03:21:07PM -0700, Vikas Shivappa wrote: > +static int cbm_validate(struct intel_rdt *ir, unsigned long cbmvalue) > +{ > + struct cgroup_subsys_state *css; > + struct intel_rdt *par, *c; > + unsigned long *cbm_tmp; > + int err = 0; > + > + if

Re: [PATCH 6/9] x86/intel_rdt: Add support for cache bit mask management

2015-07-28 Thread Peter Zijlstra
On Wed, Jul 01, 2015 at 03:21:07PM -0700, Vikas Shivappa wrote: > +static inline bool cbm_is_contiguous(unsigned long var) > +{ > + unsigned long maxcbm = MAX_CBM_LENGTH; > + unsigned long first_bit, zero_bit; > + > + if (!var) > + return false; > + > + first_bit =

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

2015-07-28 Thread Luis R. Rodriguez
On Tue, Jul 28, 2015 at 03:33:03PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/video/fbdev/aty/atyfb_base.c: In function 'atyfb_setup_generic': >

Re: [PATCH] Input: zforce_ts - fix playload length check

2015-07-28 Thread Dmitry Torokhov
On Tue, Jul 28, 2015 at 01:28:32PM +0200, Dirk Behme wrote: > On 28.07.2015 12:23, Geert Uytterhoeven wrote: > >On Mon, Jul 27, 2015 at 11:06 PM, Dmitry Torokhov > > wrote: > >>Commit 7d01cd261c76f95913c81554a751968a1d282d3a ("Input: zforce - don't > >>overwrite the stack") attempted to add a

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-28 Thread Andrew Cooper
On 28/07/15 16:43, Andy Lutomirski wrote: > After forward-porting my virtio patches, I got this thing to run on Xen. After several tries, I got: [ 53.985707] [ cut here ] [ 53.986314] kernel BUG at arch/x86/xen/enlighten.c:496! [

Re: [PATCH 4/9] x86/intel_rdt: Add support for Cache Allocation detection

2015-07-28 Thread Peter Zijlstra
On Wed, Jul 01, 2015 at 03:21:05PM -0700, Vikas Shivappa wrote: > +static int __init intel_rdt_late_init(void) > +{ > + struct cpuinfo_x86 *c = _cpu_data; > + > + if (!cpu_has(c, X86_FEATURE_CAT_L3)) > + return -ENODEV; > + > + pr_info("Intel cache allocation enabled\n");

Re: [RFC 0/2] VFIO: Add virtual MSI doorbell support.

2015-07-28 Thread Alex Williamson
On Fri, 2015-07-24 at 14:33 +0530, Pranavkumar Sawargaonkar wrote: > In current VFIO MSI/MSI-X implementation, linux host kernel > allocates MSI/MSI-X vectors when userspace requests through vfio ioctls. > Vfio creates irqfd mappings to notify MSI/MSI-X interrupts > to the userspace when raised. >

Re: [RFC PATCH 0/3] clocksource: exynos_mct: allow mct to use 64-bit counter from coprocessor

2015-07-28 Thread Alexey Klimov
Hi Doug, On Tue, Jul 28, 2015 at 6:24 PM, Doug Anderson wrote: > Alexey, > > On Mon, Jul 27, 2015 at 2:28 PM, Alexey Klimov wrote: >> Hi all, >> >> year(s) ago it was discovered that MCT timer and ARM architectured >> timer >> are the same hardware with different interface. Here [1]. >> >> I

Re: [Intel-gfx] [PATCH 2/3] drm/i915: hide errors when probing for a reverse display port

2015-07-28 Thread Chris Wilson
On Tue, Jul 28, 2015 at 12:03:28PM -0400, Benjamin Tissoires wrote: > We check the polarity of the attached dp, so it is normal to fail. > Do not send errors to the users. if (probe) DRM_DEBUG else DRM_ERROR is fairly offensive. It strikes me that you could make each of these functions report

Re: [RFC/BUG] perf tools: static build fails

2015-07-28 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 28, 2015 at 05:13:47PM +0200, Jiri Olsa escreveu: > hi, > it's failing on perf-read-vdso32 tool.. > attached patch fixes that for me To build it statically: make -C tools/perf O=/tmp/build/perf LDFLAGS=-static install-bin Adrian, I wonder if building just these utilities

Re: [PATCH] Smack: replace capable() with ns_capable()

2015-07-28 Thread Casey Schaufler
On 7/28/2015 8:06 AM, Serge E. Hallyn wrote: > On Tue, Jul 28, 2015 at 07:36:30AM -0700, Casey Schaufler wrote: >> On 7/26/2015 6:27 PM, Sungbae Yoo wrote: >>> So, Do you agree to allow the process to change its own labels? >> No. This requires CAP_MAC_ADMIN. Smack is mandatory access control. >>

[PATCH 1/2] perf stat: Fix transaction lenght metrics

2015-07-28 Thread Arnaldo Carvalho de Melo
From: Andi Kleen The transaction length metrics in perf stat -T broke recently. It would not match the metric correctly and always print K/sec. This was caused by a incorrect update of the cycles_in_tx statistics. Update the correct variable. Also the check for zero division was reversed,

[GIT PULL 0/2] perf/urgent fixes

2015-07-28 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit 00a2916f7f82c348a2a94dbb572874173bc308a3: perf: Fix running time accounting (2015-07-27 13:52:19 +0200) are available in the git repository at:

[PATCH 2/2] perf tools: Fix test build error when bindir contains double slash

2015-07-28 Thread Arnaldo Carvalho de Melo
From: Pawel Moll When building with a prefix ending with a slash, for example: $ make prefix=/usr/local/ one of the perf tests fail to compile due to BUILD_STR macro mishandling bindir_SQ string containing with two slashes: -DBINDIR="BUILD_STR(/usr/local//bin)" with the

[PATCH v4] clk: at91: add generated clock driver

2015-07-28 Thread Nicolas Ferre
Add a new type of clocks that can be provided to a peripheral. In addition to the peripheral clock, this new clock that can use several input clocks as parents can generate divided rates. This would allow a peripheral to have finer grained clocks for generating a baud rate, clocking an

Re: [Xen-devel] [PATCH 2/8] xen: Make clear that swiotlb and biomerge are dealing with DMA address

2015-07-28 Thread Julien Grall
Hi David, On 28/07/15 16:52, David Vrabel wrote: > On 28/07/15 16:02, Julien Grall wrote: >> >> +/* Pseudo-physical <-> DMA conversion */ >> +static inline unsigned long pfn_to_dfn(unsigned long pfn) > > Use BFN for bus frame number. This is the terminology that is used in > the (proposed)

[PATCH v2] kthread: Export kthread functions

2015-07-28 Thread David Kershner
The s-Par visornic driver, currently in staging, processes a queue being serviced by the an s-Par service partition. We can get a message that something has happened with the Service Partition, when that happens, we must not access the channel until we get a message that the service partition is

Re: [PATCH v2] tools: perf: Fix test build error when bindir contains double slash

2015-07-28 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 28, 2015 at 04:46:00PM +0200, Jiri Olsa escreveu: > On Tue, Jul 28, 2015 at 03:10:13PM +0100, Pawel Moll wrote: > > When building with a prefix ending with a slash, for example: > > > > This patch works around the problem by "cleaning" the bindir string > > using make's abspath

[PATCH 0/3] drm/i915: fix USB Type-C reversed connector

2015-07-28 Thread Benjamin Tissoires
Hi, plugging a USB Type-C to HDMI adapter on a Chromebook Pixel 2015 works only if the HDMI port is in its normal (not reverted) state. Theorically, the USB chip should provide the information whether or not the lane are resversed, but I could not find anything in the Intel PRM regarding this.

[GIT PULL] Please pull NFS client bugfixes

2015-07-28 Thread Trond Myklebust
Hi Linus, The following changes since commit b4839ebe21fc5d543b933d83644981ea73e9ba36: nfs: Remove invalid tk_pid from debug message (2015-07-01 11:31:25 -0400) are available in the git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-4.2-2 for you to

[PATCH 1/3] drm/i915: add parameters to dp_start_link_train and dp_complete_link_train

2015-07-28 Thread Benjamin Tissoires
In order to detect if the Display Port is reversed or not (when connected to a USC type-C connector), we need to probe the training with one lane to check if the polarity is correct. Factor out the code that we need later on. This commit has no functional change Signed-off-by: Benjamin Tissoires

[PATCH 2/3] drm/i915: hide errors when probing for a reverse display port

2015-07-28 Thread Benjamin Tissoires
We check the polarity of the attached dp, so it is normal to fail. Do not send errors to the users. Signed-off-by: Benjamin Tissoires --- drivers/gpu/drm/i915/intel_dp.c | 74 - 1 file changed, 58 insertions(+), 16 deletions(-) diff --git

[PATCH 3/3] drm/i915: Support DDI lane reversal for DP

2015-07-28 Thread Benjamin Tissoires
The DP outputs connected through a USB Type-C port can have inverted lanes. To detect that case, we implement autodetection by training only the first lane if it doesn't work, we assume that we need to invert the lanes. Tested on a Chromebook Pixel 2015 (samus) with a USB Type-C to HDMI adapter

Re: [PATCH] of: Drop owner assignment from platform and i2c driver

2015-07-28 Thread Rob Herring
On Fri, Jul 10, 2015 at 1:26 AM, Krzysztof Kozlowski wrote: > platform_driver and i2c_driver do not need to set an owner because core > will set it. > > Signed-off-by: Krzysztof Kozlowski Applied. Thanks. Rob > > --- > > The coccinelle script which generated the patch was sent here: >

Re: [PATCH RFC 0/1] Document how to add a new syscall

2015-07-28 Thread David Drysdale
On Tue, Jul 28, 2015 at 3:19 PM, Peter Zijlstra wrote: > On Tue, Jul 28, 2015 at 07:59:16AM -0600, Shuah Khan wrote: >> On 07/28/2015 05:41 AM, David Drysdale wrote: >> > Given that I've gotten some of the details wrong in the past (and I've >> > seen others do likewise), I thought it might be

Re: [Xen-devel] [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-28 Thread Boris Ostrovsky
On 07/28/2015 11:23 AM, Andrew Cooper wrote: On 28/07/15 15:50, Boris Ostrovsky wrote: On 07/28/2015 10:35 AM, Andrew Cooper wrote: On 28/07/15 15:05, Boris Ostrovsky wrote: On 07/28/2015 06:29 AM, Andrew Cooper wrote: After forward-porting my virtio patches, I got this thing to run on Xen.

Re: [PATCH V3 RESEND 8/8] staging: rtl8712: change SupportedRates to rates

2015-07-28 Thread Dan Carpenter
On Tue, Jul 28, 2015 at 08:50:04AM -0700, Joshua Clayton wrote: > On Tuesday, July 28, 2015 05:37:16 PM Julia Lawall wrote: > > > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > > b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > > index 83d4bca..1ded691 100644 > > > ---

Re: [PATCH] of: constify drv arg of of_driver_match_device stub

2015-07-28 Thread Rob Herring
On Wed, Jul 1, 2015 at 2:10 AM, Tomeu Vizoso wrote: > With this change the stub has the same signature as the actual function, > preventing this compiler warning when building without CONFIG_OF: > >drivers/base/property.c: In function 'fwnode_driver_match_device': >>>

Re: [f2fs-dev] [PATCH 2/2] f2fs: handle error cases in commit_inmem_pages

2015-07-28 Thread Jaegeuk Kim
On Tue, Jul 28, 2015 at 06:25:26PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Sunday, July 26, 2015 8:21 AM > > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > >

Re: [PATCH] DEVICETREE: Misc fix for the AR7100 SPI controller binding

2015-07-28 Thread Rob Herring
On Fri, Jul 3, 2015 at 3:14 AM, Alban Bedel wrote: > Fix the clocks property documentation and use lower case for > hex values in the example. > > Signed-off-by: Alban Bedel Applied. Thanks. Rob > --- > Documentation/devicetree/bindings/spi/spi-ath79.txt | 6 +++--- > 1 file changed, 3

Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data

2015-07-28 Thread Lee Jones
On Tue, 28 Jul 2015, Matt Fleming wrote: > On Tue, 28 Jul, at 04:28:32PM, Lee Jones wrote: > > On Tue, 28 Jul 2015, Guenter Roeck wrote: > > > > > On 07/28/2015 08:00 AM, Lee Jones wrote: > > > >On Tue, 28 Jul 2015, Matt Fleming wrote: > > > >>On Tue, 28 Jul, at 12:37:21PM, Lee Jones wrote: > >

[GIT PULL] DeviceTree fixes for 4.2

2015-07-28 Thread Rob Herring
Hi Linus, Please pull this small set of DT fixes for 4.2. Rob The following changes since commit cbfe8fa6cd672011c755c3cd85c9ffd4e2d10a6f: Linux 4.2-rc4 (2015-07-26 12:26:21 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git

Re: [PATCH V3 RESEND 8/8] staging: rtl8712: change SupportedRates to rates

2015-07-28 Thread Julia Lawall
On Tue, 28 Jul 2015, Joshua Clayton wrote: > On Tuesday, July 28, 2015 05:37:16 PM Julia Lawall wrote: > > > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > > b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > > index 83d4bca..1ded691 100644 > > > ---

Re: [PATCH RFC 0/1] UAPI,x86: export syscall numbers for all x86 archs

2015-07-28 Thread Paul Moore
On Tue, Jul 28, 2015 at 11:32 AM, David Drysdale wrote: > On Tue, Jul 28, 2015 at 1:20 PM, Paul Moore wrote: >> On Tue, Jul 28, 2015 at 4:05 AM, David Drysdale wrote: >>> A while ago I was trying to build a seccomp-bpf filter program that would >>> survive a change of x86 architecture. This

Re: [Xen-devel] [PATCH 2/8] xen: Make clear that swiotlb and biomerge are dealing with DMA address

2015-07-28 Thread David Vrabel
On 28/07/15 16:02, Julien Grall wrote: > > +/* Pseudo-physical <-> DMA conversion */ > +static inline unsigned long pfn_to_dfn(unsigned long pfn) Use BFN for bus frame number. This is the terminology that is used in the (proposed) pv-iommu hypercall. David -- To unsubscribe from this list:

Re: [PATCH V3 RESEND 8/8] staging: rtl8712: change SupportedRates to rates

2015-07-28 Thread Joshua Clayton
On Tuesday, July 28, 2015 05:37:16 PM Julia Lawall wrote: > > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > index 83d4bca..1ded691 100644 > > --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > +++

[REGRESSION BISECTED] System hang during hibernation on EeePC 1015PE

2015-07-28 Thread Eugene Shatokhin
Hi, On ASUS EeePC 1015PE with kernel 3.18 - 4.1, there is a problem very similar to the one fixed for Lenovo by the following commit in the mainline kernel: commit ab3be73fa7b43f4c3648ce29b5fd649ea54d3adb drm/i915: gen4: work around hang during hibernation When I try to put the system

Re: [PATCH 2/2] mtd: spi-nor: Add Pm25LD020 and GD25Q41B chip ID.

2015-07-28 Thread Marek Vasut
On Tuesday, July 28, 2015 at 05:22:17 PM, Rafał Miłecki wrote: > On 28 July 2015 at 16:33, Marek Vasut wrote: > > On Tuesday, July 28, 2015 at 11:07:58 AM, Michal Suchanek wrote: > >> First chip reads Pm25LD020 or Pm25L0020. Found on some WD HDD PCB. > >> Identified as PMC Pm25LD020. > >> Flash

Re: [PATCH v5 1/4] PCI: iproc: enable arm64 support for iProc PCIe

2015-07-28 Thread Ray Jui
On 7/28/2015 6:24 AM, Olof Johansson wrote: > Hi Ray, > > I get the following when building an allmodconfig on arm64: > > drivers/pci/host/pcie-iproc-bcma.c: In function 'iproc_pcie_bcma_map_irq': > drivers/pci/host/pcie-iproc-bcma.c:37:31: error: dereferencing pointer > to incomplete type >

Re: [PATCH 1/2] mtd: spi-nor: Add GD25LQ32C 1.8V SPI NOR flash ID

2015-07-28 Thread Marek Vasut
On Tuesday, July 28, 2015 at 05:19:18 PM, Rafał Miłecki wrote: > On 28 July 2015 at 16:33, Marek Vasut wrote: > > On Tuesday, July 28, 2015 at 11:07:57 AM, Michal Suchanek wrote: > >> This 1.8V SPI NOR flash is found on ARM Chromebook XE303C and reads > >> something like 25LQ32VIG in the middle.

Re: [PATCH 05/10] mm, page_alloc: Remove unnecessary updating of GFP flags during normal operation

2015-07-28 Thread Mel Gorman
On Tue, Jul 28, 2015 at 03:36:05PM +0200, Vlastimil Babka wrote: > >--- a/mm/page_alloc.c > >+++ b/mm/page_alloc.c > >@@ -124,7 +124,9 @@ unsigned long totalcma_pages __read_mostly; > > unsigned long dirty_balance_reserve __read_mostly; > > > > int percpu_pagelist_fraction; > >-gfp_t

Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data

2015-07-28 Thread Matt Fleming
On Tue, 28 Jul, at 04:28:32PM, Lee Jones wrote: > On Tue, 28 Jul 2015, Guenter Roeck wrote: > > > On 07/28/2015 08:00 AM, Lee Jones wrote: > > >On Tue, 28 Jul 2015, Matt Fleming wrote: > > >>On Tue, 28 Jul, at 12:37:21PM, Lee Jones wrote: > > >>> > > >>>The driver shouldn't be called that either.

Re: [PATCH v4 2/2] dt: power: st: Provide bindings for ST's OPPs

2015-07-28 Thread Lee Jones
On Tue, 28 Jul 2015, Rob Herring wrote: > On Tue, Jul 28, 2015 at 9:39 AM, Lee Jones wrote: > > On Tue, 28 Jul 2015, Rob Herring wrote: > > > >> On Mon, Jul 27, 2015 at 10:20 AM, Lee Jones wrote: > >> > These OPPs are used in ST's CPUFreq implementation. > >> > > >> > Signed-off-by: Lee Jones

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-28 Thread Andy Lutomirski
On Jul 28, 2015 3:30 AM, "Andrew Cooper" wrote: > > On 28/07/15 04:16, Andy Lutomirski wrote: > > On Mon, Jul 27, 2015 at 7:20 PM, Andy Lutomirski > > wrote: > >> On Mon, Jul 27, 2015 at 9:18 AM, Boris Ostrovsky > >> wrote: > >>> On 07/27/2015 11:53 AM, Andy Lutomirski wrote: > On Mon,

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-28 Thread Boris Ostrovsky
On 07/28/2015 11:15 AM, Konrad Rzeszutek Wilk wrote: On Tue, Jul 28, 2015 at 10:50:39AM -0400, Boris Ostrovsky wrote: On 07/28/2015 10:35 AM, Andrew Cooper wrote: On 28/07/15 15:05, Boris Ostrovsky wrote: On 07/28/2015 06:29 AM, Andrew Cooper wrote: After forward-porting my virtio patches, I

Re: [PATCH V3 RESEND 8/8] staging: rtl8712: change SupportedRates to rates

2015-07-28 Thread Julia Lawall
> diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > index 83d4bca..1ded691 100644 > --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > +++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > @@ -204,13 +204,13 @@ static inline char

Re: [PATCH v8 09/21] x86/paravirt: Align paravirt thunk functions at 16-byte boundaries

2015-07-28 Thread Josh Poimboeuf
On Tue, Jul 28, 2015 at 08:23:04AM -0700, Andy Lutomirski wrote: > On Tue, Jul 28, 2015 at 7:47 AM, Josh Poimboeuf wrote: > > Paravirt thunk functions aren't aligned, which can impact performance > > and is inconsistent with gcc-generated functions. > > > > Align them at 16-byte boundaries to be

Re: [PATCH v4 2/2] dt: power: st: Provide bindings for ST's OPPs

2015-07-28 Thread Rob Herring
On Tue, Jul 28, 2015 at 9:39 AM, Lee Jones wrote: > On Tue, 28 Jul 2015, Rob Herring wrote: > >> On Mon, Jul 27, 2015 at 10:20 AM, Lee Jones wrote: >> > These OPPs are used in ST's CPUFreq implementation. >> > >> > Signed-off-by: Lee Jones >> > --- >> > >> > Changelog: >> > - None, new patch

Re: [PATCH 0/2] New NAND chip IDs

2015-07-28 Thread Hans de Goede
Hi, On 07/28/2015 05:30 PM, Boris Brezillon wrote: On Tue, 28 Jul 2015 17:19:40 +0200 Boris Brezillon wrote: Hi Hans, Here is a more appropriate answer ;-) On Tue, 28 Jul 2015 16:49:58 +0200 Hans de Goede wrote: Hi, On 07/28/2015 04:29 PM, Michal Suchanek wrote: Hello, the NAND chips

Re: [PATCH] ACPI / PM: Use target_state to set the device power state

2015-07-28 Thread Rafael J. Wysocki
On Tuesday, July 28, 2015 01:51:21 PM Mika Westerberg wrote: > Commit 20dacb71ad28 ("ACPI / PM: Rework device power management to follow > ACPI 6") changed the device power management to use D3hot if the device > in question does not have _PR3 method even if D3cold was requested by the > caller. >

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-28 Thread Andrew Cooper
On 28/07/15 15:50, Boris Ostrovsky wrote: > On 07/28/2015 10:35 AM, Andrew Cooper wrote: >> On 28/07/15 15:05, Boris Ostrovsky wrote: >>> On 07/28/2015 06:29 AM, Andrew Cooper wrote: >> After forward-porting my virtio patches, I got this thing to run on >> Xen. After several tries, I got:

Re: [PATCH RFC 0/1] UAPI,x86: export syscall numbers for all x86 archs

2015-07-28 Thread David Drysdale
On Tue, Jul 28, 2015 at 1:20 PM, Paul Moore wrote: > On Tue, Jul 28, 2015 at 4:05 AM, David Drysdale wrote: >> A while ago I was trying to build a seccomp-bpf filter program that would >> survive a change of x86 architecture. This was complicated for all sorts of >> reasons, but one of the

Re: [f2fs-dev] [PATCH 1/2] f2fs: call set_page_dirty to attach i_wb for cgroup

2015-07-28 Thread Jaegeuk Kim
On Tue, Jul 28, 2015 at 06:29:38PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Sunday, July 26, 2015 8:21 AM > > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > >

Re: [PATCH v2 04/22] of/platform: add of_platform_device_find()

2015-07-28 Thread Rob Herring
On Tue, Jul 28, 2015 at 8:54 AM, Tomeu Vizoso wrote: > On 28 July 2015 at 15:39, Rob Herring wrote: >> On Tue, Jul 28, 2015 at 8:19 AM, Tomeu Vizoso >> wrote: >>> From an arbitrary node in the tree, find the enclosing node that >>> corresponds to a platform device, as registered by >>>

Re: [PATCH 0/2] New NAND chip IDs

2015-07-28 Thread Boris Brezillon
On Tue, 28 Jul 2015 17:19:40 +0200 Boris Brezillon wrote: > Hi Hans, > > Here is a more appropriate answer ;-) > > On Tue, 28 Jul 2015 16:49:58 +0200 > Hans de Goede wrote: > > > Hi, > > > > On 07/28/2015 04:29 PM, Michal Suchanek wrote: > > > Hello, > > > > > > the NAND chips on Cubietech

Re: [linux-sunxi] [RFC] ARM: dts: sunxi: Add regulators and board-specific operating points for LeMaker BananaPi

2015-07-28 Thread Hans de Goede
Hi, On 07/28/2015 05:09 PM, Timo Sigurdsson wrote: Hi, Hans de Goede schrieb am 28.07.2015 16:24: I've no problem with Timo submitting a cleaned up version of his patch and you taking that instead. I just wanted to point out that I do have a similar patch pending. Ok, I will do that. It

Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data

2015-07-28 Thread Lee Jones
On Tue, 28 Jul 2015, Guenter Roeck wrote: > On 07/28/2015 08:00 AM, Lee Jones wrote: > >On Tue, 28 Jul 2015, Matt Fleming wrote: > >>On Tue, 28 Jul, at 12:37:21PM, Lee Jones wrote: > >>> > >>>The driver shouldn't be called that either. > >>> > >>>You are the only one. What makes iTCO 'special'?

Re: [RFC PATCH 0/3] clocksource: exynos_mct: allow mct to use 64-bit counter from coprocessor

2015-07-28 Thread Doug Anderson
Alexey, On Mon, Jul 27, 2015 at 2:28 PM, Alexey Klimov wrote: > Hi all, > > year(s) ago it was discovered that MCT timer and ARM architectured > timer > are the same hardware with different interface. Here [1]. > > I followed mail-list discussions about removing MCT and using arch > timer for

Re: [PATCH v8 09/21] x86/paravirt: Align paravirt thunk functions at 16-byte boundaries

2015-07-28 Thread Andy Lutomirski
On Tue, Jul 28, 2015 at 7:47 AM, Josh Poimboeuf wrote: > Paravirt thunk functions aren't aligned, which can impact performance > and is inconsistent with gcc-generated functions. > > Align them at 16-byte boundaries to be consistent with gcc functions. IMO stackvalidate shouldn't warn about

Re: [PATCH 02/10] cgroup: introduce cgroup_subsys->legacy_name

2015-07-28 Thread Tejun Heo
On Tue, Jul 28, 2015 at 02:39:36PM +0800, Zefan Li wrote: > > @@ -1448,7 +1451,8 @@ static int parse_cgroupfs_options(char *data, struct > > cgroup_sb_opts *opts) > > } > > > > for_each_subsys(ss, i) { > > - if (strcmp(token, ss->name)) > > +

Re: [PATCHv2 05/10] xen/balloon: rationalize memory hotplug stats

2015-07-28 Thread Daniel Kiper
On Fri, Jul 24, 2015 at 12:47:43PM +0100, David Vrabel wrote: > The stats used for memory hotplug make no sense and are fiddled with > in odd ways. Remove them and introduce total_pages to track the total > number of pages (both populated and unpopulated) including those within > hotplugged

Re: Is devm_* broken ?

2015-07-28 Thread Tejun Heo
Hello, Laurent. On Tue, Jul 28, 2015 at 05:16:16PM +0300, Laurent Pinchart wrote: > Using devm_kzalloc() in such a way has value though, and reverting drivers to > the pre-devm memory allocation code would make error handling and cleanup > code > paths more complex again. Should we introduce a

Re: [PATCH 2/2] mtd: spi-nor: Add Pm25LD020 and GD25Q41B chip ID.

2015-07-28 Thread Rafał Miłecki
On 28 July 2015 at 16:33, Marek Vasut wrote: > On Tuesday, July 28, 2015 at 11:07:58 AM, Michal Suchanek wrote: >> First chip reads Pm25LD020 or Pm25L0020. Found on some WD HDD PCB. >> Identified as PMC Pm25LD020. >> Flash read does not return consistent data which explains why the disk >> died.

[RFC/BUG] perf tools: static build fails

2015-07-28 Thread Jiri Olsa
hi, it's failing on perf-read-vdso32 tool.. attached patch fixes that for me jirka --- diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 4b58daeff881..a72f790f05e8 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -370,12 +370,12 @@ $(OUTPUT)perf-%:

Re: [PATCH 0/2] New NAND chip IDs

2015-07-28 Thread Boris Brezillon
Hi Hans, Here is a more appropriate answer ;-) On Tue, 28 Jul 2015 16:49:58 +0200 Hans de Goede wrote: > Hi, > > On 07/28/2015 04:29 PM, Michal Suchanek wrote: > > Hello, > > > > the NAND chips on Cubietech boards are not known to Linux. > > > > I used Petros Angelatos' patch from sunxi

Re: [PATCH 1/2] mtd: spi-nor: Add GD25LQ32C 1.8V SPI NOR flash ID

2015-07-28 Thread Rafał Miłecki
On 28 July 2015 at 16:33, Marek Vasut wrote: > On Tuesday, July 28, 2015 at 11:07:57 AM, Michal Suchanek wrote: >> This 1.8V SPI NOR flash is found on ARM Chromebook XE303C and reads >> something like 25LQ32VIG in the middle. >> >> Signed-off-by: Michal Suchanek >> --- >>

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