Re: [PATCH 0/3 v3] mmu_notifier: Allow to manage CPU external TLBs

2014-09-12 Thread Jerome Glisse
On Fri, Sep 12, 2014 at 12:19:37PM -0700, Andrew Morton wrote: > On Fri, 12 Sep 2014 20:47:39 +0200 Joerg Roedel wrote: > > > thanks for your review, I tried to answer your questions below. > > You'd be amazed how helpful that was ;) > > > Fair enough, I hope I clarified a few things with my

[Patch v9 0/3] DWC3 USB support for Qualcomm platform

2014-09-12 Thread Andy Gross
These patches add basic support for USB3.0 controllers found on MSM platforms. USB3.0 core is based on Synopsys DesignWare SuperSpeed IP. This work was started by Ivan Ivanov and went through a number of iterations. I picked these patches up and did a little rework to get them working. Changes

[Patch v9 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-12 Thread Andy Gross
This patch adds a new driver for the Qualcomm USB 3.0 PHY that exists on some Qualcomm platforms. This driver uses the generic PHY framework and will interact with the DWC3 controller. Signed-off-by: Andy Gross --- drivers/phy/Kconfig | 11 + drivers/phy/Makefile|1 +

[Patch v9 2/3] usb: dwc3: Add Qualcomm DWC3 glue layer driver

2014-09-12 Thread Andy Gross
From: "Ivan T. Ivanov" DWC3 glue layer is hardware layer around Synopsys DesignWare USB3 core. Its purpose is to supply Synopsys IP with required clocks, voltages and interface it with the rest of the SoC. Signed-off-by: Ivan T. Ivanov Signed-off-by: Andy Gross --- drivers/usb/dwc3/Kconfig

Re: [PATCH 0/3 v3] mmu_notifier: Allow to manage CPU external TLBs

2014-09-12 Thread Andrew Morton
On Fri, 12 Sep 2014 15:21:01 -0400 Jerome Glisse wrote: > > > I think this sumup all motivation behind this patchset and also behind > > > my other patchset. As usual i am happy to discuss alternative way to do > > > things but i think that the path of least disruption from current code > > > is

Re: [rcu] BUG: unable to handle kernel NULL pointer dereference at 000000da

2014-09-12 Thread Paul E. McKenney
On Fri, Sep 12, 2014 at 02:19:57PM -0500, Christoph Lameter wrote: > On Fri, 12 Sep 2014, Paul E. McKenney wrote: > > > So, I am not seeing this failure in my testing, but my best guess is > > that the problem is due to the fact that force_quiescent_state() is > > sometimes invoked with

Re: [rcu] BUG: unable to handle kernel NULL pointer dereference at 000000da

2014-09-12 Thread Christoph Lameter
On Fri, 12 Sep 2014, Paul E. McKenney wrote: > So, I am not seeing this failure in my testing, but my best guess is > that the problem is due to the fact that force_quiescent_state() is > sometimes invoked with preemption enabled, which breaks __this_cpu_read() > though perhaps with very low

Re: [PATCH 1/5] x86, mm, pat: Set WT to PA4 slot of PAT MSR

2014-09-12 Thread Konrad Rzeszutek Wilk
On Thu, Sep 04, 2014 at 04:34:43PM -0700, Andy Lutomirski wrote: > On Thu, Sep 4, 2014 at 4:19 PM, Henrique de Moraes Holschuh > wrote: > > On Thu, 04 Sep 2014, H. Peter Anvin wrote: > >> On 09/04/2014 01:11 PM, Henrique de Moraes Holschuh wrote: > >> > I am worried of uncharted territory, here.

Re: [PATCH] xen/blkback: unmap all persistent grants when frontend gets disconnected

2014-09-12 Thread Konrad Rzeszutek Wilk
On Mon, Sep 08, 2014 at 03:21:33PM +0200, Vitaly Kuznetsov wrote: > blkback does not unmap persistent grants when frontend goes to Closed > state (e.g. when blkfront module is being removed). This leads to the > following in guest's dmesg: > > [ 343.243825] xen:grant_table: WARNING: g.e. 0x445

Re: [PATCH v8 00/10] Intel MPX support

2014-09-12 Thread Thomas Gleixner
On Thu, 11 Sep 2014, Dave Hansen wrote: > On 09/11/2014 01:46 AM, Qiaowei Ren wrote: > > MPX kernel code, namely this patchset, has mainly the 2 responsibilities: > > provide handlers for bounds faults (#BR), and manage bounds memory. > > Qiaowei, We probably need to mention here what "bounds

Re: [PATCH 0/3 v3] mmu_notifier: Allow to manage CPU external TLBs

2014-09-12 Thread Jerome Glisse
On Fri, Sep 12, 2014 at 12:10:36PM -0700, Andrew Morton wrote: > On Wed, 10 Sep 2014 20:02:12 -0400 Jerome Glisse wrote: > > > On Wed, Sep 10, 2014 at 03:01:25PM -0700, Andrew Morton wrote: > > > On Tue, 9 Sep 2014 17:43:51 +0200 Joerg Roedel wrote: > > > > > > > here is a patch-set to extend

Re: [PATCH 0/3 v3] mmu_notifier: Allow to manage CPU external TLBs

2014-09-12 Thread Andrew Morton
On Fri, 12 Sep 2014 20:47:39 +0200 Joerg Roedel wrote: > thanks for your review, I tried to answer your questions below. You'd be amazed how helpful that was ;) > Fair enough, I hope I clarified a few things with my explanations > above. I will also update the description of the patch-set when

[GIT PULL] Block updates for 3.17-rc

2014-09-12 Thread Jens Axboe
Hi Linus, A small collection of fixes for the current rc series. It contains: - Two small blk-mq patches from Rob Elliott, cleaning up error case at init time. - A fix from Ming Lei, fixing SG merging for blk-mq where QUEUE_FLAG_SG_NO_MERGE is the default. - A dev_t minor lifetime fix from

Re: [PATCH v3 0/5] Initial support for XPowers AXP288 PMIC

2014-09-12 Thread Maxime Ripard
On Thu, Sep 11, 2014 at 04:15:52PM -0700, Jacob Pan wrote: > XPowers AXP288 is a customized PMIC found on some Intel Baytrail-CR platforms. > It comes with sub-functions such as USB charging, fuel gauge, ADC, and many > LDO > and BUCK channels. > > By extending the existing AXP20x driver, this

Re: [PATCH V3 3/3] Support Xen pv-domains using PAT

2014-09-12 Thread Konrad Rzeszutek Wilk
On Fri, Sep 12, 2014 at 12:35:12PM +0200, Juergen Gross wrote: > With the dynamical mapping between cache modes and pgprot values it is > now possible to use all cache modes via the Xen hypervisor PAT settings > in a pv domain. > > All to be done is to read the PAT configuration MSR and set up

Re: [PATCH V3 1/3] x86: Make page cache mode a real type

2014-09-12 Thread Konrad Rzeszutek Wilk
On Fri, Sep 12, 2014 at 12:35:10PM +0200, Juergen Gross wrote: > At the moment there are a lot of places that handle setting or getting > the page cache mode by treating the pgprot bits equal to the cache mode. > This is only true because there are a lot of assumptions about the setup > of the PAT

Re: [PATCH 3/9] locktorture: Support mutexes

2014-09-12 Thread Paul E. McKenney
On Fri, Sep 12, 2014 at 11:56:31AM -0700, Davidlohr Bueso wrote: > On Fri, 2014-09-12 at 11:02 -0700, Paul E. McKenney wrote: > > On Thu, Sep 11, 2014 at 08:40:18PM -0700, Davidlohr Bueso wrote: > > > +static void torture_mutex_delay(struct torture_random_state *trsp) > > > +{ > > > + const

Re: [PATCH] [REGRESSION] i2c-acpi: Fix NULL Pointer dereference

2014-09-12 Thread Peter Hüwe
Am Freitag, 12. September 2014, 21:09:47 schrieb Peter Huewe: > If adapter->dev.parent == NULL there is a NULL pointer dereference in > acpi_i2c_install_space_handler and acpi_i2c_remove_space_handler. > > This is present since introduction of this code: > 366047515c6e "i2c: rework kernel config

Re: [PATCH 0/3 v3] mmu_notifier: Allow to manage CPU external TLBs

2014-09-12 Thread Andrew Morton
On Wed, 10 Sep 2014 20:02:12 -0400 Jerome Glisse wrote: > On Wed, Sep 10, 2014 at 03:01:25PM -0700, Andrew Morton wrote: > > On Tue, 9 Sep 2014 17:43:51 +0200 Joerg Roedel wrote: > > > > > here is a patch-set to extend the mmu_notifiers in the Linux > > > kernel to allow managing CPU external

[PATCH] [REGRESSION] i2c-acpi: Fix NULL Pointer dereference

2014-09-12 Thread Peter Huewe
If adapter->dev.parent == NULL there is a NULL pointer dereference in acpi_i2c_install_space_handler and acpi_i2c_remove_space_handler. This is present since introduction of this code: 366047515c6e "i2c: rework kernel config I2C_ACPI" or even da3c6647ee08 "I2C/ACPI: Clean up I2C ACPI code and Add

[PATCH 0/9] KEYS: Improve asymmetric key and PKCS#7 handling

2014-09-12 Thread David Howells
Here are some patches to improve the matching of asymmetric keys and to improve the handling of PKCS#7 certificates: (1) Provide a method to preparse the data supplied for matching a key. This permits they key type to extract out the bits it needs for matching once only.

Re: [PATCH v8 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-09-12 Thread H. Peter Anvin
On 09/12/2014 10:52 AM, Thomas Gleixner wrote: > > Well, I did not see the trainwreck which tried to use the generic > decoder, but as I explained in the other mail, there is no reason not > to use it and I can't see any complexity in retrieving the data beyond > calling insn_get_length(insn); >

[PATCH 3/9] KEYS: Remove key_type::def_lookup_type

2014-09-12 Thread David Howells
Remove key_type::def_lookup_type as it's no longer used. The information now defaults to KEYRING_SEARCH_LOOKUP_DIRECT but may be overridden by type->match_preparse(). Signed-off-by: David Howells --- crypto/asymmetric_keys/asymmetric_type.c |1 - crypto/asymmetric_keys/pkcs7_key_type.c |

[PATCH 2/9] KEYS: Preparse match data

2014-09-12 Thread David Howells
Preparse the match data. This provides several advantages: (1) The preparser can reject invalid criteria up front. (2) The preparser can convert the criteria to binary data if necessary (the asymmetric key type really wants to do binary comparison of the key IDs). (3) The preparser can

[PATCH 6/9] KEYS: Implement binary asymmetric key ID handling

2014-09-12 Thread David Howells
Implement the first step in using binary key IDs for asymmetric keys rather than hex string keys. The previously added match data preparsing will be able to convert hex criterion strings into binary which can then be compared more rapidly. Further, we actually want more then one ID string per

[PATCH 9/9] PKCS#7: Handle PKCS#7 messages that contain no X.509 certs

2014-09-12 Thread David Howells
The X.509 certificate list in a PKCS#7 message is optional. To save space, we can omit the inclusion of any X.509 certificates if we are sure that we can look the relevant public key up by the serial number and issuer given in a signed info block. This also supports use of a signed info block

[PATCH 8/9] PKCS#7: Better handling of unsupported crypto

2014-09-12 Thread David Howells
Provide better handling of unsupported crypto when verifying a PKCS#7 message. If we can't bridge the gap between a pair of X.509 certs or between a signed info block and an X.509 cert because it involves some crypto we don't support, that's not necessarily the end of the world as there may be

[PATCH 5/9] KEYS: Make the key matching functions return bool

2014-09-12 Thread David Howells
Make the key matching functions pointed to by key_match_data::cmp return bool rather than int. Signed-off-by: David Howells --- crypto/asymmetric_keys/asymmetric_type.c |4 ++-- include/linux/key-type.h | 10 ++ net/dns_resolver/dns_key.c |4 ++--

[PATCH 4/9] KEYS: Remove key_type::match in favour of overriding default by match_preparse

2014-09-12 Thread David Howells
A previous patch added a ->match_preparse() method to the key type. This is allowed to override the function called by the iteration algorithm. Therefore, we can just set a default that simply checks for an exact match of the key description with the original criterion data and allow

[PATCH 7/9] KEYS: Overhaul key identification when searching for asymmetric keys

2014-09-12 Thread David Howells
Make use of the new match string preparsing to overhaul key identification when searching for asymmetric keys. The following changes are made: (1) Use the previously created asymmetric_key_id struct to hold the following key IDs derived from the X.509 certificate or PKCS#7 message:

[PATCH 1/9] Provide a binary to hex conversion function

2014-09-12 Thread David Howells
Provide a function to convert a buffer of binary data into an unterminated ascii hex string representation of that data. Signed-off-by: David Howells --- include/linux/kernel.h |1 + lib/hexdump.c | 18 ++ 2 files changed, 19 insertions(+) diff --git

Re: [PATCH V3 2/3] x86: Enable PAT to use cache mode translation tables

2014-09-12 Thread Konrad Rzeszutek Wilk
On Fri, Sep 12, 2014 at 12:35:11PM +0200, Juergen Gross wrote: > Update the translation tables from cache mode to pgprot values > according to the PAT settings. This enables changing the cache > attributes of a PAT index in just one place without having to change > at the users side. > > With

Re: [PATCH v8 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-12 Thread Stephen Boyd
Yay nitpicks! On 09/12/14 10:29, Andy Gross wrote: > + > +struct qcom_dwc3_usb_phy { > + void __iomem*base; > + struct device *dev; > + struct phy *phy; Align with other members? > > + > +static int wait_for_latch(void __iomem *addr) > +{ > + u32 retry =

Re: [PATCH 6/9] torture: Address race in module cleanup

2014-09-12 Thread Paul E. McKenney
On Fri, Sep 12, 2014 at 11:28:36AM -0700, Davidlohr Bueso wrote: > On Fri, 2014-09-12 at 11:04 -0700, Paul E. McKenney wrote: > > On Thu, Sep 11, 2014 at 08:40:21PM -0700, Davidlohr Bueso wrote: > > > When performing module cleanups by calling torture_cleanup() the > > > 'torture_type' string in

Re: [rcu] BUG: unable to handle kernel NULL pointer dereference at 000000da

2014-09-12 Thread Paul E. McKenney
On Mon, Sep 01, 2014 at 04:44:04PM +0800, Fengguang Wu wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit d860d40327dde251d508a234fa00bd0d90fbb656 > Author:

Re: [PATCH 0/8] nohz: Fix nohz kick irq work on tick v2

2014-09-12 Thread Peter Zijlstra
On Fri, Sep 12, 2014 at 08:05:49PM +0200, Frederic Weisbecker wrote: > > Acked-by: Peter Zijlstra (Intel) > > Intel? :-) Wow. Yeah, moved about a month ago :-) > Note, I fear I'll have to turn the static_cpu_has into cpu_has. The > alternatives code which initialize all static_cpu_has() things

Re: [PATCH v2] clocksource: arch_timer: Allow the device tree to specify the physical timer

2014-09-12 Thread Stephen Boyd
On 09/12/14 05:14, Marc Zyngier wrote: > Hi Christopher, > > On 12/09/14 12:43, Christopher Covington wrote: >> Hi Marc, >> >> On 09/11/2014 01:43 PM, Marc Zyngier wrote: >>> On 11/09/14 18:29, Doug Anderson wrote: >>> I did this in the past (again, see Sonny's thread), but didn't

Re: [PATCH 2/2] leds: trigger: gpio: make ledtrig-gpio useable with GPIO drivers requiring threaded irqs

2014-09-12 Thread Bryan Wu
On Fri, Sep 12, 2014 at 12:09 AM, Lothar Waßmann wrote: > Hi, > > Bryan Wu wrote: >> On Tue, Sep 9, 2014 at 12:40 AM, Lothar Waßmann >> wrote: >> > When trying to use the LED GPIO trigger with e.g. the PCA953x GPIO >> > driver, request_irq() fails with -EINVAL, because the GPIO driver >> >

Re: [PATCH v8 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-12 Thread Andy Gross
On Fri, Sep 12, 2014 at 12:50:23PM -0500, Josh Cartwright wrote: > Hey Andy- > > Mostly cosmetic things below: > > On Fri, Sep 12, 2014 at 12:29:46PM -0500, Andy Gross wrote: > > This patch adds a new driver for the Qualcomm USB 3.0 PHY that exists on > > some > > Qualcomm platforms. This

Re: [PATCH 3/9] locktorture: Support mutexes

2014-09-12 Thread Davidlohr Bueso
On Fri, 2014-09-12 at 11:02 -0700, Paul E. McKenney wrote: > On Thu, Sep 11, 2014 at 08:40:18PM -0700, Davidlohr Bueso wrote: > > +static void torture_mutex_delay(struct torture_random_state *trsp) > > +{ > > + const unsigned long longdelay_ms = 100; > > + > > + /* We want a long delay

Re: [PATCH v8 2/3] usb: dwc3: Add Qualcomm DWC3 glue layer driver

2014-09-12 Thread Andy Gross
On Fri, Sep 12, 2014 at 12:47:04PM -0500, Felipe Balbi wrote: > Hi, > > On Fri, Sep 12, 2014 at 12:29:45PM -0500, Andy Gross wrote: > > From: "Ivan T. Ivanov" > > > > DWC3 glue layer is hardware layer around Synopsys DesignWare > > USB3 core. Its purpose is to supply Synopsys IP with required >

Re: [PATCH v1 00/13] PCI: Device configuration cleanup

2014-09-12 Thread Linus Torvalds
On Fri, Sep 12, 2014 at 11:02 AM, Bjorn Helgaas wrote: > > Finally, it tweaks several _HPP/_HPX things where we do things not > required by the spec and I haven't seen any other good reason for them: Looks ok to me, although, as always, resource management changes just makes me worry that things

Re: [PATCH/RFC 1/2] lib: string: Remove duplicated function

2014-09-12 Thread Tejun Heo
Hello, On Fri, Sep 12, 2014 at 11:01:17AM +0200, Rasmus Villemoes wrote: > On Fri, Sep 12 2014, Andrew Morton wrote: > > > On Wed, 27 Aug 2014 09:36:01 +0200 Rasmus Villemoes > > wrote: > >> strncasecmp is the POSIX name for this functionality. So rename the > >> non-broken function to the

Re: [PATCH 0/3 v3] mmu_notifier: Allow to manage CPU external TLBs

2014-09-12 Thread Joerg Roedel
Hi Andrew, thanks for your review, I tried to answer your questions below. On Wed, Sep 10, 2014 at 03:01:25PM -0700, Andrew Morton wrote: > On Tue, 9 Sep 2014 17:43:51 +0200 Joerg Roedel wrote: > > So both call-backs can't be used to safely flush any non-CPU > > TLB because _start() is called

Re: [PATCH 01/11 v6] coresight: add CoreSight core layer framework

2014-09-12 Thread Russell King - ARM Linux
Further to Greg's comments... On Thu, Sep 11, 2014 at 09:49:08AM -0600, mathieu.poir...@linaro.org wrote: > +int coresight_enable(struct coresight_device *csdev) > +{ > + int ret = 0; > + LIST_HEAD(path); > + > + WARN_ON(IS_ERR_OR_NULL(csdev)); Please don't do this kind of checking,

Re: [PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-09-12 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Thomas Gleixner wrote: > On Fri, 12 Sep 2014, Dave Hansen wrote: > The proper solution to this problem is: > > do_bounds() > bd_addr = get_bd_addr_from_xsave(); > bd_entry = bndstatus & ADDR_MASK: Just for clarification. You CANNOT avoid the xsave here

Re: [PATCH 0/3 v3] mmu_notifier: Allow to manage CPU external TLBs

2014-09-12 Thread Jerome Glisse
On Wed, Sep 10, 2014 at 08:02:12PM -0400, Jerome Glisse wrote: > On Wed, Sep 10, 2014 at 03:01:25PM -0700, Andrew Morton wrote: > > On Tue, 9 Sep 2014 17:43:51 +0200 Joerg Roedel wrote: > > > > > here is a patch-set to extend the mmu_notifiers in the Linux > > > kernel to allow managing CPU

Re: [PATCH V2] MIPS: bugfix of coherentio variable default setup

2014-09-12 Thread Sergei Shtylyov
Hello. On 9/8/2014 10:10 PM, Leonid Yegoshin wrote: Patch commit b6d92b4a6bdb880b39789c677b952c53a437028d Just commit. MIPS: Add option to disable software I/O coherency. It's enough to just cite the summary in parens after SHA1 ID. Some MIPS controllers have hardware

Re: [PATCH V3] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-12 Thread Nicolin Chen
On Fri, Sep 12, 2014 at 06:35:15PM +0800, Shengjiu Wang wrote: > Check if ipg clock is in clock-names property, then we can move the > ipg clock enable and disable operation to startup and shutdown, that > is only enable ipg clock when ssi is working and keep clock is disabled > when ssi is in

[PATCH 2/2] pstore-ram: Allow optional mapping with pgprot_noncached

2014-09-12 Thread Tony Lindgren
On some ARMs at least the memory can be mapped pgprot_noncached() and still be working for atomic operations. As pointed out by Colin Cross , in some cases you do want to use pgprot_noncached() if the SoC supports it to see a debug printk just before a write hanging the system. On ARMs, the

[PATCH 1/2] pstore-ram: Fix hangs by using write-combine mappings

2014-09-12 Thread Tony Lindgren
From: Rob Herring Currently trying to use pstore on at least ARMs can hang as we're mapping the peristent RAM with pgprot_noncached(). On ARMs, pgprot_noncached() will actually make the memory strongly ordered, and as the atomic operations pstore uses are implementation defined for strongly

Re: [PATCH 6/9] torture: Address race in module cleanup

2014-09-12 Thread Davidlohr Bueso
On Fri, 2014-09-12 at 11:04 -0700, Paul E. McKenney wrote: > On Thu, Sep 11, 2014 at 08:40:21PM -0700, Davidlohr Bueso wrote: > > When performing module cleanups by calling torture_cleanup() the > > 'torture_type' string in nullified However, callers are not necessarily > > done, and might still

[GIT PULL] char/misc driver fixes for 3.17-rc5

2014-09-12 Thread Greg KH
The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-3.17-rc5 for you to fetch changes up to

Re: [PATCH] staging: unisys: uislib: uislib.c: sparse warning of context imbalance

2014-09-12 Thread Ben Romer
Sudip Mukherjee wrote: > fixed sparse warning : context imbalance in 'destroy_device' > unexpected unlock > this patch will generate warning from checkpatch for > lines over 80 character , but since those are user-visible strings > so it was not modified. > >

[GIT PULL] Staging driver fixes for 3.17-rc5

2014-09-12 Thread Greg KH
The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-3.17-rc5 for you to fetch changes up to

[GIT PULL] TTY/Serial patches for 3.17-rc5

2014-09-12 Thread Greg KH
The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-3.17-rc5 for you to fetch changes up to

[GIT PULL] USB driver fixes for 3.17-rc5

2014-09-12 Thread Greg KH
The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-3.17-rc5 for you to fetch changes up to

Re: [PATCH 01/11 v6] coresight: add CoreSight core layer framework

2014-09-12 Thread Greg KH
On Fri, Sep 12, 2014 at 11:41:44AM -0600, Mathieu Poirier wrote: > Good morning and thanks for the review. Pls see comments below. > > Mathieu > > On 11 September 2014 14:33, Greg KH wrote: > > Some first impressions in glancing at the code, not a complete review at > > all: > > > > On Thu,

Re: [PATCH 1/4] usb: hub: convert khubd into workqueue

2014-09-12 Thread Tejun Heo
On Fri, Sep 12, 2014 at 02:21:05PM +0200, Petr Mladek wrote: > There is no need to have separate kthread for handling USB hub events. > It is more elegant to use the workqueue framework. > > The workqueue is allocated as unbound, cpu intensive, and freezable. I'd just go with WQ_FREEZABLE. As a

Re: [PATCH 8/9] locktorture: Support rwsems

2014-09-12 Thread Paul E. McKenney
On Thu, Sep 11, 2014 at 09:41:30PM -0700, Davidlohr Bueso wrote: > We can easily do so with our new reader lock support. Just an arbitrary > design default: readers have higher (5x) critical region latencies than > writers: 50 ms and 10 ms, respectively. Except in the massive contention case,

[PATCH v1 07/13] ACPI / hotplug / PCI: Remove pci_configure_slot() usage

2014-09-12 Thread Bjorn Helgaas
We now configure each PCI device as it is enumerated, in pci_device_add(), so remove the configuration done in acpiphp. That configuration, in pci_configure_device(), does not include the MPS/MRRS configuration done by pcie_bus_configure_settings(), so keep that here. Signed-off-by: Bjorn

[PATCH v1 12/13] PCI: Preserve MPS and MRRS when applying _HPX settings

2014-09-12 Thread Bjorn Helgaas
Linux manages MPS and MRRS settings to keep them consistent across the PCIe fabric. BIOS doesn't participate in Linux scheme, so ignore that part of any _HPX settings it supplies. Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 10 ++ 1 file changed, 10 insertions(+) diff

[PATCH v1 10/13] PCI: Preserve BIOS PCI_COMMAND_SERR and PCI_COMMAND_PARITY settings

2014-09-12 Thread Bjorn Helgaas
Do not clear PCI_COMMAND_SERR or PCI_COMMAND_PARITY based on _HPP. The spec (ACPI rev 5.0, sec 6.2.7) says that when "Enable SERR" is set to 1, we should enable SERR in the command register. It says nothing about *disabling* SERR or PERR; in fact, the example in 6.2.7.1 says we should leave PERR

Re: [PATCH 0/8] nohz: Fix nohz kick irq work on tick v2

2014-09-12 Thread Frederic Weisbecker
On Thu, Sep 11, 2014 at 10:28:12AM +0200, Peter Zijlstra wrote: > On Wed, Sep 10, 2014 at 11:33:20PM +0200, Frederic Weisbecker wrote: > > > Frederic Weisbecker (7): > > nohz: Move nohz full init call to tick init > > irq_work: Force raised irq work to run on irq work interrupt > >

Re: [PATCH 6/9] torture: Address race in module cleanup

2014-09-12 Thread Paul E. McKenney
On Thu, Sep 11, 2014 at 08:40:21PM -0700, Davidlohr Bueso wrote: > When performing module cleanups by calling torture_cleanup() the > 'torture_type' string in nullified However, callers are not necessarily > done, and might still need to reference the variable. This impacts > both rcutorture and

[PATCH v1 08/13] PCI: Remove unused pci_configure_slot()

2014-09-12 Thread Bjorn Helgaas
All pci_configure_slot() uses have been removed, so remove the definition as well. Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 27 --- include/linux/pci_hotplug.h |2 -- 2 files changed, 29 deletions(-) diff --git a/drivers/pci/probe.c

[PATCH v1 11/13] PCI: Apply _HPP settings to all hot-added PCI devices

2014-09-12 Thread Bjorn Helgaas
We currently apply _HPP settings only to: - non-bridge devices, and - PCI-to-PCI bridges i.e., we do not apply them to PCI-to-ISA bridges and the like. It has been that way since _HPP support was added by 40abb96c51bb ("pciehp: Fix programming hotplug parameters"), but I don't think

Re: [PATCH 7/9] locktorture: Add infrastructure for torturing read locks

2014-09-12 Thread Davidlohr Bueso
On Fri, 2014-09-12 at 09:06 -0700, Paul E. McKenney wrote: > On Thu, Sep 11, 2014 at 09:40:41PM -0700, Davidlohr Bueso wrote: > > In addition, introduce a new nreaders_stress module parameter. The > > default number of readers will be the same number of writers threads. > > Writer threads are

[PATCH v1 13/13] PCI: Configure *all* devices, not just hot-added ones

2014-09-12 Thread Bjorn Helgaas
There's not really a good way to determine whether firmware has already configured a device with _HPP/_HPX settings. On legacy systems, the BIOS has probably configured everything, but on UEFI systems it is not required to do so. Per the PCI Firmware Specification, rev 3.1, sec 3.5, if

[PATCH v1 09/13] PCI: Apply _HPP settings to PCIe devices as well as PCI and PCI-X

2014-09-12 Thread Bjorn Helgaas
The ACPI _HPP method was defined before PCIe existed, so its documentation only mentions PCI. The _HPX Type 0 setting record is essentially identical to _HPP, but the spec (ACPI rev 5.0, sec 6.2.8.1) says it should be applied to PCI, PCI-X, and PCIe devices, with settings being ignored if they

[PATCH v1 06/13] PCI: shpchp: Remove pci_configure_slot() usage

2014-09-12 Thread Bjorn Helgaas
We now configure each PCI device as it is enumerated, in pci_device_add(), so remove the configuration done in shpchp. That configuration, in pci_configure_device(), does not include the MPS/MRRS configuration done by pcie_bus_configure_settings(), so keep that here. Signed-off-by: Bjorn Helgaas

[PATCH v1 01/13] PCI: Remove "no hotplug settings from platform" warning

2014-09-12 Thread Bjorn Helgaas
We print way too many messages like this: pci :00:00.0: no hotplug settings from platform pci :00:00.0: using default PCI settings This usually happens when the platform doesn't supply an ACPI _HPP method, but the method is optional, so there's no point in warning about it. Not

[PATCH v1 02/13] PCI: Move pci_configure_slot() to drivers/pci/probe.c

2014-09-12 Thread Bjorn Helgaas
Move pci_configure_slot() and related functions from drivers/pci/hotplug/pcihp_slot to drivers/pci/probe.c. This is to prepare for doing device configuration during the normal enumeration process instead of just after hot-add. No functional change. Signed-off-by: Bjorn Helgaas ---

[PATCH v1 05/13] PCI: pciehp: Remove pci_configure_slot() usage

2014-09-12 Thread Bjorn Helgaas
We now configure each PCI device as it is enumerated, in pci_device_add(), so remove the configuration done in pciehp. That configuration, in pci_configure_device(), does not include the MPS/MRRS configuration done by pcie_bus_configure_settings(), so keep that here. Signed-off-by: Bjorn Helgaas

[PATCH v1 00/13] PCI: Device configuration cleanup

2014-09-12 Thread Bjorn Helgaas
The motivation for this is to fix Linus' complaint about too many _HPP messages (https://bugzilla.kernel.org/show_bug.cgi?id=84391): pci :00:00.0: no hotplug settings from platform pci :00:00.0: using default PCI settings The first patch drops the messages and I intend it for

[PATCH v1 04/13] PCI: pciehp: Configure hot-added display devices

2014-09-12 Thread Bjorn Helgaas
We configure cache line size and other settings of hot-added devices, e.g., based on ACPI _HPP or _HPX methods. Previously we skipped this configuration for display devices, but there is no spec requirement for that. Remove the check so we configure display devices the same way we configure

Re: [PATCH 3/9] locktorture: Support mutexes

2014-09-12 Thread Paul E. McKenney
On Thu, Sep 11, 2014 at 08:40:18PM -0700, Davidlohr Bueso wrote: > Add a "mutex_lock" torture test. The main difference with the already > existing spinlock tests is that the latency of the critical region > is much larger. We randomly delay for (arbitrarily) either 500 ms or, > otherwise, 25 ms.

[PATCH v1 03/13] PCI: Add pci_configure_device() during enumeration

2014-09-12 Thread Bjorn Helgaas
Some platforms can tell the OS how to configure PCI devices, e.g., how to set cache line size, error reporting enables, etc. ACPI defines _HPP and _HPX methods for this purpose. This configuration was previously done by some of the hotplug drivers using pci_configure_slot(). But not all hotplug

Re: [PATCH v8 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-12 Thread Josh Cartwright
Hey Andy- Mostly cosmetic things below: On Fri, Sep 12, 2014 at 12:29:46PM -0500, Andy Gross wrote: > This patch adds a new driver for the Qualcomm USB 3.0 PHY that exists on some > Qualcomm platforms. This driver uses the generic PHY framework and will > interact with the DWC3 controller. > >

Re: [PATCH RFC] memcg: revert kmem.tcp accounting

2014-09-12 Thread Tejun Heo
Hello, guys. On Fri, Sep 12, 2014 at 07:18:09PM +0200, Michal Hocko wrote: > On Fri 12-09-14 19:26:58, Vladimir Davydov wrote: > > memory.kmem.tcp.limit_in_bytes works as the system-wide tcp_mem sysctl, > > but per memory cgroup. While the existence of the latter is justified > > (it prevents the

Re: [PATCH] ACPI / platform / LPSS: disable async suspend/resume of LPSS devices

2014-09-12 Thread Fu, Zhonghui
On 2014/9/10 15:50, Mika Westerberg wrote: > On Tue, Sep 09, 2014 at 01:36:48PM +0800, Fu, Zhonghui wrote: >> >From 6deb00230f5df68da3ca7490402a0c537bf386bb Mon Sep 17 00:00:00 2001 >> From: Fu Zhonghui >> Date: Tue, 9 Sep 2014 13:02:25 +0800 >> Subject: [PATCH] ACPI / platform / LPSS: disable

[PATCH v3 1/4] arm64, thunder: Add initial dts for Cavium Thunder SoC

2014-09-12 Thread Robert Richter
From: Radha Mohan Chintakuntla Add initial device tree nodes for Cavium Thunder SoCs with support of 48 cores and gicv3. The dtsi file requires further changes, esp. for pci, gicv3-its and smmu. This changes will be added later together with the device drivers. Signed-off-by: Radha Mohan

Re: [PATCH v8 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-09-12 Thread Thomas Gleixner
On Thu, 11 Sep 2014, H. Peter Anvin wrote: > On 09/11/2014 03:32 PM, Dave Hansen wrote: > > On 09/11/2014 03:18 PM, Thomas Gleixner wrote: > >> On Thu, 11 Sep 2014, Qiaowei Ren wrote: > >>> This patch sets bound violation fields of siginfo struct in #BR > >>> exception handler by decoding the

Re: [PATCH v8 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-12 Thread Felipe Balbi
Hi, On Fri, Sep 12, 2014 at 12:29:46PM -0500, Andy Gross wrote: > This patch adds a new driver for the Qualcomm USB 3.0 PHY that exists on some > Qualcomm platforms. This driver uses the generic PHY framework and will > interact with the DWC3 controller. > > Signed-off-by: Andy Gross Kishon,

Re: [PATCH] ACPI / platform / LPSS: disable async suspend/resume of LPSS devices

2014-09-12 Thread Fu, Zhonghui
hi, Rafael Sorry for late response. Yes,Only removing the "enable" line is sufficient. I have verified this, and made a new patch as follows. Thanks, Zhonghui >From 3c89c22c5b35ddbdcadecd391f2521a15ffc2f4f Mon Sep 17 00:00:00 2001 From: Fu Zhonghui Date: Sat, 13 Sep 2014 01:26:04 +0800

[PATCH v3 4/4] arm64, defconfig: Enable Cavium Thunder SoC in defconfig

2014-09-12 Thread Robert Richter
From: Robert Richter This patch enables Thunder SoCs in the arm64 defconfig. This is esp. useful to add Thunder platforms to automated builds based on arm64 defconfig. Signed-off-by: Robert Richter --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] i2c-designware: Intel BayTrail PMIC I2C bus support

2014-09-12 Thread David E. Box
This patch implements an I2C bus sharing mechanism between the host and platform hardware on select Intel BayTrail SoC platforms using the XPower AXP288 PMIC. On these platforms access to the PMIC must be shared with platform hardware. The hardware unit assumes full control of the I2C bus and the

Re: [PATCH 1/9] locktorture: Rename locktorture_runnable parameter

2014-09-12 Thread Paul E. McKenney
On Fri, Sep 12, 2014 at 10:40:26AM -0700, Paul E. McKenney wrote: [ . . . ] > locktorture: Make torture scripting account for new _runnable name > > Signed-off-by: Paul E. McKenney > > diff --git a/tools/testing/selftests/rcutorture/configs/lock/ver_functions.sh >

[PATCH v3 2/4] arm64, thunder: Document devicetree bindings for Cavium Thunder SoC

2014-09-12 Thread Robert Richter
From: Radha Mohan Chintakuntla This patch adds documentation for the devicetree bindings used by the DT files of Cavium Thunder SoC platforms. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Robert Richter --- Documentation/devicetree/bindings/arm/cavium-thunder.txt | 10 ++

[PATCH v3 3/4] arm64, thunder: Add Kconfig option for Cavium Thunder SoC Family

2014-09-12 Thread Robert Richter
From: Radha Mohan Chintakuntla This introduces ARCH_THUNDER to enable soc specific drivers and dtb files. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Robert Richter --- arch/arm64/Kconfig | 5 + arch/arm64/boot/dts/Makefile | 3 +-- 2 files changed, 6 insertions(+),

[PATCH v3 0/4] arm64, thunder: Enable Cavium Thunder SoC Family

2014-09-12 Thread Robert Richter
From: Robert Richter This initial patches enable Cavium Thunder SoC Family. The patches add devicetree and Kconfig support and then add Thunder to the defconfig. The Thunder system needs more enablement patches for subsystems and devices, this includes network, ahci, gicv3/gicv3-its, pci, smmu,

Re: [PATCH v8 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-09-12 Thread Thomas Gleixner
On Fri, 12 Sep 2014, H. Peter Anvin wrote: > The correct limit is 15 bytes, not anything else, so this is a bug in > the existing decoder. A sequence of bytes longer than 15 bytes will Fine. Lets fix it there. > #UD, regardless of being "otherwise valid". > Keep in mind the instruction may not

Re: [PATCH v8 2/3] usb: dwc3: Add Qualcomm DWC3 glue layer driver

2014-09-12 Thread Felipe Balbi
Hi, On Fri, Sep 12, 2014 at 12:29:45PM -0500, Andy Gross wrote: > From: "Ivan T. Ivanov" > > DWC3 glue layer is hardware layer around Synopsys DesignWare > USB3 core. Its purpose is to supply Synopsys IP with required > clocks, voltages and interface it with the rest of the SoC. > >

Re: [PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-09-12 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Dave Hansen wrote: > On 09/12/2014 01:11 AM, Thomas Gleixner wrote: > > So what you are saying is, that if user space sets the pointer to NULL > > via the unregister prctl, kernel can safely ignore vmas which have the > > VM_MPX flag set. I really can't follow that logic. > >

Re: [PATCH 01/11 v6] coresight: add CoreSight core layer framework

2014-09-12 Thread Mathieu Poirier
Good morning and thanks for the review. Pls see comments below. Mathieu On 11 September 2014 14:33, Greg KH wrote: > Some first impressions in glancing at the code, not a complete review at > all: > > On Thu, Sep 11, 2014 at 09:49:08AM -0600, mathieu.poir...@linaro.org wrote: >> --- /dev/null

Re: [Patch v3 1/2] kaslr: check if kernel location is changed

2014-09-12 Thread Kees Cook
On Fri, Sep 12, 2014 at 8:33 AM, Vivek Goyal wrote: > On Fri, Sep 12, 2014 at 11:22:44PM +0800, Baoquan He wrote: >> Function handle_relocations() is used to do the relocations handling >> for i686 and kaslr of x86_64. For 32 bit the relocation handling is >> mandotary to perform. For x86_64 only

Re: [PATCH arm64-next] net: bpf: arm64: address randomize and write protect JIT code

2014-09-12 Thread Daniel Borkmann
On 09/12/2014 07:21 PM, Catalin Marinas wrote: ... We don't have a brk instruction for arm32 but we have guaranteed undefined space. Have a look at the kgdb support for example (or grep for register_undef_hook under arch/arm) to get an idea. Will do, thanks! Last but not least ;), if I would

Re: [PATCH 1/9] locktorture: Rename locktorture_runnable parameter

2014-09-12 Thread Paul E. McKenney
On Thu, Sep 11, 2014 at 08:40:16PM -0700, Davidlohr Bueso wrote: > ... to just 'torture_runnable'. It follows other variable naming > and is shorter. > > Signed-off-by: Davidlohr Bueso Looks good -- and please see below for the corresponding change to the locktorture scripting. (Which I have

Re: linux-next: Tree for Sep 12

2014-09-12 Thread Randy Dunlap
On 09/12/14 00:38, Stephen Rothwell wrote: > Hi all, > > Changes since 20140911: > - > > I have created today's linux-next tree at > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > (patches at

Re: [RFC 2/2] perf: Marker software event and ioctl

2014-09-12 Thread David Ahern
On 9/12/14, 4:48 AM, Pawel Moll wrote: This patch adds a PERF_COUNT_SW_MARKER event type, which can be requested by user and a PERF_EVENT_IOC_MARKER ioctl command which will inject an event of said type into the perf buffer. The ioctl can take a zero-terminated string argument, similar to

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