[PATCH V10 1/7] dma: qcom_bam_dma: move to qcom directory

2015-12-17 Thread Sinan Kaya
Creating a QCOM directory for all QCOM DMA source files. Signed-off-by: Sinan Kaya Reviewed-by: Andy Gtoss --- drivers/dma/Kconfig| 11 ++- drivers/dma/Makefile | 2 +- drivers/dma/qcom/Kconfig | 8 d

Re: -next regression: "driver cohandle -EPROBE_DEFER from bus_type.match()"

2015-12-17 Thread Matthew Wilcox
On Thu, Dec 17, 2015 at 08:48:09AM -0800, Dan Williams wrote: > On Thu, Dec 17, 2015 at 7:51 AM, Dan Williams > wrote: > How about just checking for EPROBE_DEFER, every other non-zero value is > success. How about using IS_ERR_VALUE()? If it's good enough for IS_ERR(), it's good enough for thi

[PATCH V10 3/7] dma: add Qualcomm Technologies HIDMA management driver

2015-12-17 Thread Sinan Kaya
The Qualcomm Technologies HIDMA device has been designed to support virtualization technology. The driver has been divided into two to follow the hardware design. 1. HIDMA Management driver 2. HIDMA Channel driver Each HIDMA HW consists of multiple channels. These channels share some set of commo

[PATCH V10 7/7] dma: qcom_hidma: add support for object hierarchy

2015-12-17 Thread Sinan Kaya
In order to create a relationship model between the channels and the management object, we are adding support for object hierarchy to the drivers. This patch simplifies the userspace application development. We will not have to traverse different firmware paths based on device tree or ACPI baed ker

[PATCH 17/24] crypto: atmel-aes: use SIZE_IN_WORDS() helper macro

2015-12-17 Thread Cyrille Pitchen
This is a dummy cosmetic patch. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index 9ef38eca4ae7..176ab3878583 100644 --- a/drivers/crypto/atmel-aes.c +

[PATCH 19/24] crypto: atmel-aes: create sections to regroup functions by usage

2015-12-17 Thread Cyrille Pitchen
This patch only creates sections to regroup functions by usage. This will help to integrate the GCM support patch later by making the difference between shared/common and specific code. Hence current sections are: - Shared functions: common code which will be reused by the GCM support. - CPU trans

[PATCH 18/24] crypto: atmel-aes: fix typo and indentation

2015-12-17 Thread Cyrille Pitchen
Dummy patch to fix typo and indentation. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 56 +- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index 176ab3878583..

[PATCH 16/24] crypto: atmel-aes: improve performances of data transfer

2015-12-17 Thread Cyrille Pitchen
This patch totally reworks data transfer. 1 - DMA The new code now fully supports scatter-gather lists hence reducing the number of interrupts in some cases. Also buffer alignments are better managed to avoid useless copies. 2 - CPU The new code allows to use PIO accesses even when transferring

[PATCH 22/24] crypto: atmel-aes: change the DMA threshold

2015-12-17 Thread Cyrille Pitchen
Increase the DMA threshold to 256: PIO accesses offer better performances than the DMA when processing small amounts of data. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/cry

Re: [PATCH 2/2] pci: Update VPD size with correct length

2015-12-17 Thread Alexander Duyck
On Wed, Dec 16, 2015 at 11:59 PM, Hannes Reinecke wrote: > PCI-2.2 VPD entries have a maximum size of 32k, but might actually > be smaller than that. To figure out the actual size one has to read > the VPD area until the 'end marker' is reached. > Trying to read VPD data beyond that marker results

[PATCH 21/24] crypto: atmel-aes: fix the counter overflow in CTR mode

2015-12-17 Thread Cyrille Pitchen
Depending on its hardware version, the AES IP provides either a 16 or a 32 bit counter. However the CTR mode expects the size of the counter to be the same as the size of the cipher block, ie 128 bits for AES. This patch detects and handles counter overflows. Signed-off-by: Cyrille Pitchen --- d

[PATCH 20/24] crypto: atmel-aes: fix atmel-ctr-aes driver for RFC 3686

2015-12-17 Thread Cyrille Pitchen
crypto_rfc3686_alloc() in crypto/ctr.c expects to be used with a stream cipher (alg->cra_blocksize == 1). Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c inde

[PATCH 23/24] crypto: atmel-aes: add support to GCM mode

2015-12-17 Thread Cyrille Pitchen
This patch adds support to the GCM mode. Signed-off-by: Cyrille Pitchen --- drivers/crypto/Kconfig | 1 + drivers/crypto/atmel-aes-regs.h | 10 + drivers/crypto/atmel-aes.c | 453 +++- 3 files changed, 462 insertions(+), 2 deletions(-) diff -

[PATCH 24/24] crypto: atmel-aes: add debug facilities to monitor register accesses.

2015-12-17 Thread Cyrille Pitchen
This feature should not be enabled in release but can be usefull for developers who need to monitor register accesses at some specific places. Set the AES_FLAGS_DUMP_REG flag inside dd->flags to start monitoring the I/O accesses, clear it to stop monitoring. Signed-off-by: Cyrille Pitchen --- dr

Re: corruption causing crash in __queue_work

2015-12-17 Thread Mike Snitzer
On Thu, Dec 17 2015 at 10:50am -0500, Tejun Heo wrote: > Hello, Nikolay. > > On Thu, Dec 17, 2015 at 05:43:12PM +0200, Nikolay Borisov wrote: > > Right, but my initial understanding was that when canceling the delayed > > work and then issuing flush_workqueue would act the same way as if > > can

Re: [PATCHv5 7/7] pciutils: Allow 32-bit domains

2015-12-17 Thread Bjorn Helgaas
Hi Keith, On Mon, Dec 07, 2015 at 02:32:29PM -0700, Keith Busch wrote: > PCI-e segments will continue to use the lower 16 bits as required by > ACPI. Special domains may use the full 32-bits. > > Signed-off-by: Keith Busch > --- > lib/filter.c |2 +- > lib/pci.h|2 +- > 2 files chan

Re: [RFC PATCH] always probe UART HW when options are not specified

2015-12-17 Thread Greg Kroah-Hartman
On Thu, Dec 17, 2015 at 05:48:42PM +0100, Sebastian Frias wrote: > On 12/17/2015 05:29 PM, Peter Hurley wrote: > >On 12/17/2015 07:15 AM, Sebastian Frias wrote: > >>--- > >> > >>I think there are a few minor bugs on the 8250 UART code. > >> > >>Below you can find a patch with a proposed solution. >

i915 Sky Lake graphics problem: screen blank after grub boot

2015-12-17 Thread James Bottomley
With kernel 4.3.x (tested x=2,3) the screen goes blank as soon as the system boots (both for VGA console and graphics). The only way to get it to turn on is to suspend and resume the system. The system is a Dell XPS 13 (latest rev) running OpenSuse Leap 42.1 and this is the lspci output: 00:00.0

Re: [PATCHv6 2/7] pci: child bus alloc fix on constrained resource

2015-12-17 Thread Bjorn Helgaas
Hi Keith, On Mon, Dec 07, 2015 at 02:32:24PM -0700, Keith Busch wrote: > Does not allocate a child bus if the new bus number does not fit in the > parent's bus resource window. > > Signed-off-by: Keith Busch > --- > drivers/pci/probe.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --g

Re: [RESEND] Lenovo Yoga 900 touchpad issues

2015-12-17 Thread Benjamin Tissoires
On Dec 17 2015 or thereabouts, Nish Aravamudan wrote: > Hi Benjamin, > > On Thu, Dec 17, 2015 at 1:53 AM, Benjamin Tissoires > wrote: > > On Dec 16 2015 or thereabouts, Nish Aravamudan wrote: > >> Hi Jiri, > >> > >> On Wed, Dec 16, 2015 at 5:18 AM, Jiri Kosina wrote: > >> > On Wed, 16 Dec 2015,

Re: new warning on sysrq kernel crash trigger

2015-12-17 Thread Greg KH
On Wed, Dec 16, 2015 at 11:25:21AM -0500, Rik van Riel wrote: > On 12/15/2015 07:52 PM, Ani Sinha wrote: > > Rik, should I send a separate email with the patch or you are OK > > with what I sent in the email? Are you queueing up my patch for > > applying upstream? > > I don't have a git tree for p

Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.)

2015-12-17 Thread Nish Aravamudan
On Thu, Dec 17, 2015 at 12:41 AM, Crt Mori wrote: > On 17 December 2015 at 06:27, Nish Aravamudan > wrote: >> On Wed, Dec 16, 2015 at 3:05 PM, Nish Aravamudan >> wrote: >>> On Wed, Dec 16, 2015 at 2:55 PM, Crt Mori wrote: On Dec 16, 2015 11:37 PM, "Nish Aravamudan" wrote: >

[PATCH v2] sparc64: Add ADI capability to cpu capabilities

2015-12-17 Thread Khalid Aziz
Add ADI (Application Data Integrity) capability to cpu capabilities list. ADI capability allows virtual addresses to be encoded with a tag in bits 63-60. This tag serves as an access control key for the regions of virtual address with ADI enabled and a key set on them. Hypervisor encodes this capab

Re: [RESEND] Lenovo Yoga 900 touchpad issues

2015-12-17 Thread Nish Aravamudan
On Thu, Dec 17, 2015 at 9:28 AM, Benjamin Tissoires wrote: > On Dec 17 2015 or thereabouts, Nish Aravamudan wrote: >> Hi Benjamin, >> >> On Thu, Dec 17, 2015 at 1:53 AM, Benjamin Tissoires >> wrote: >> > On Dec 16 2015 or thereabouts, Nish Aravamudan wrote: >> >> Hi Jiri, >> >> >> >> On Wed, Dec

Re: [PATCHv5 7/7] pciutils: Allow 32-bit domains

2015-12-17 Thread Keith Busch
On Thu, Dec 17, 2015 at 11:15:45AM -0600, Bjorn Helgaas wrote: > > @@ -45,7 +45,7 @@ pci_filter_parse_slot_v33(struct pci_filter *f, char *str) > > if (str[0] && strcmp(str, "*")) > > { > > long int x = strtol(str, &e, 16); > > - if ((e && *e) || (x < 0 || x > 0x

Re: [GIT PULL 00/10] perf/core improvements

2015-12-17 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 16, 2015 at 09:47:53PM -0300, Arnaldo Carvalho de Melo escreveu: > Hi Ingo, > > Please consider pulling, this is on top of the perf-core-for-mingo > tag, that is not yet merged. Ingo, this wasn't building on older distros such as RHEL6.7 due to a typedef problem, a one-liner, so

Re: [PATCHv6 2/7] pci: child bus alloc fix on constrained resource

2015-12-17 Thread Bjorn Helgaas
On Mon, Dec 07, 2015 at 02:32:24PM -0700, Keith Busch wrote: > Does not allocate a child bus if the new bus number does not fit in the > parent's bus resource window. > > Signed-off-by: Keith Busch Other nits: please make this similar to previous changelogs in capitalization, sentence structure,

Re: [PATCHv6 6/7] aer_inject: Use 32 bit int type domains

2015-12-17 Thread Bjorn Helgaas
PCI/AER: Increase domain type from 16 to 32 bits On Mon, Dec 07, 2015 at 02:32:28PM -0700, Keith Busch wrote: > New pci device provides additional pci domains that start above what 16 > bits can address. > > Signed-off-by: Keith Busch > --- > drivers/pci/pcie/aer/aer_inject.c | 16 -

Re: [PATCH v02 0/2] ARM: DTS: am33xx/am437x: Use the new eDMA bindings

2015-12-17 Thread Tony Lindgren
* Peter Ujfalusi [151217 05:33]: > Hi, > > Changes since v1: > - Updated to use the non 16bit arrays [1] > - send the two patch as a series > > [1] > As it has been discussed earlier: > https://www.mail-archive.com/linux-omap@vger.kernel.org/msg122117.html > > the DT bindings has been changes c

Re: [RFC PATCH] always probe UART HW when options are not specified

2015-12-17 Thread Peter Hurley
Hi Sebastian, On 12/17/2015 08:48 AM, Sebastian Frias wrote: > On 12/17/2015 05:29 PM, Peter Hurley wrote: >> On 12/17/2015 07:15 AM, Sebastian Frias wrote: >>> --- >>> >>> I think there are a few minor bugs on the 8250 UART code. >>> >>> Below you can find a patch with a proposed solution. >>> >>

[PATCHv4 00/12] arm-cci: PMU updates

2015-12-17 Thread Suzuki K. Poulose
This series includes: - Introduction of transaction hooks for CCI PMU to batch the CCI counter programming (Patches 1-5) - Work around for writing to CCI-500/550(introduced later) PMU counters (Patches 6-10) - Support for CCI-550 PMU (11-12) with Acked-bys. Since all of these are related

[PATCH v4 12/12] arm-cci: CoreLink CCI-550 PMU driver

2015-12-17 Thread Suzuki K. Poulose
Add ARM CoreLink CCI-550 cache coherent interconnect PMU driver support. The CCI-550 PMU shares all the attributes of CCI-500 PMU, except for an additional master interface (MI-6 - 0xe). CCI-550 requires the same work around as for CCI-500 to write to the PMU counter. Acked-by: Punit Agrawal Ack

[PATCH v4 11/12] arm-cci500: Rearrange PMU driver for code sharing with CCI-550 PMU

2015-12-17 Thread Suzuki K. Poulose
CCI-550 PMU shares most of the CCI-500 PMU attributes including the event format, PMU event codes. The only difference is an additional master interface (MI6 - 0xe). Hence we share the driver code for both, except for a model specific event validate method. This patch renames the common CCI500 symb

[PATCH v4 09/12] arm-cci: Provide hook for writing to PMU counters

2015-12-17 Thread Suzuki K. Poulose
Add a hook for writing to CCI PMU counters. This callback can be used for CCI models which requires some extra work to program the PMU counter values. To accommodate group writes and single counter writes, the call back accepts a bitmask of the counter indices which need to be programmed with the g

[PATCH v4 10/12] arm-cci: CCI-500: Work around PMU counter writes

2015-12-17 Thread Suzuki K. Poulose
The CCI PMU driver sets the event counter to the half of the maximum value(2^31) it can count before we start the counters via pmu_event_set_period(). This is done to give us the best chance to handle the overflow interrupt, taking care of extreme interrupt latencies. However, CCI-500 comes with a

Re: -next regression: "driver cohandle -EPROBE_DEFER from bus_type.match()"

2015-12-17 Thread Ross Zwisler
On Thu, Dec 17, 2015 at 8:51 AM, Dan Williams wrote: > The commit below causes the libnvdimm sub-system to stop loading. > This is due to the fact that nvdimm_bus_match() returns the result of > test_bit() which may be negative. If there are any other bus match > functions using test_bit they may

[PATCH v4 07/12] arm-cci: Get the status of a counter

2015-12-17 Thread Suzuki K. Poulose
Add helper routines to get the counter status and the event programmed on it. Cc: Punit Agrawal Acked-by: Mark Rutland Signed-off-by: Suzuki K. Poulose --- drivers/bus/arm-cci.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c in

[PATCH v4 06/12] arm-cci: Refactor CCI PMU enable/disable methods

2015-12-17 Thread Suzuki K. Poulose
This patch refactors the CCI PMU driver code a little bit to make it easier share the code for enabling/disabling the CCI PMU. This will be used by the hooks to work around the special cases where writing to a counter is not always that easy(e.g, CCI-500) No functional changes. Cc: Punit Agrawal

[PATCH v4 08/12] arm-cci: Add routines to save/restore all counters

2015-12-17 Thread Suzuki K. Poulose
Adds helper routines to disable the counter controls for all the counters on the CCI PMU and restore it back, by preserving the original state in caller provided mask. Cc: Punit Agrawal Cc: Mark Rutland Signed-off-by: Suzuki K. Poulose --- drivers/bus/arm-cci.c | 39 +

[PATCH v4 04/12] arm-cci: Fix the flags for pmu_start called from pmu_add

2015-12-17 Thread Suzuki K. Poulose
The cci PMU always reprograms the counter value in pmu->start() irrespective of the mode it is called from, making sure that the hwc->state is PERF_HES_UPTODATE. When pmu->add() is called with PERF_EF_START, we invoke pmu->start() with PERF_EF_RELOAD removing the PERF_EF_START. This makes it impos

[PATCH v4 05/12] arm-cci: PMU: Add support for transactions

2015-12-17 Thread Suzuki K. Poulose
This patch adds the transaction hooks for CCI PMU, which can be later exploited to amortise the cost of writing the counters for CCI-500 PMU. We keep track of only the 'ADD' transactions. While we are in a transaction, we keep track of the indices allocated for the events and delay the following o

[PATCH v4 03/12] arm-cci: Group writes to counter

2015-12-17 Thread Suzuki K. Poulose
Add a helper to group the writes to PMU counter, this will be used by the transaction hooks. Cc: Mark Rutland Cc: Punit Agrawal Signed-off-by: Suzuki K. Poulose --- drivers/bus/arm-cci.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/bus/arm-cci.c b/drivers/bus/

[PATCH v4 01/12] arm-cci: Define CCI counter period

2015-12-17 Thread Suzuki K. Poulose
Instead of hard coding the period we program on the PMU counters, define a symbol. Cc: Mark Rutland Cc: Punit Agrawal Signed-off-by: Suzuki K. Poulose --- drivers/bus/arm-cci.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/bus/arm-cci.c b/dr

Re: [PATCH v4] of: fix declaration of of_io_request_and_map

2015-12-17 Thread Rob Herring
On Tue, Dec 8, 2015 at 2:47 AM, Sudip Mukherjee wrote: > We are having build failure with linux-next for sparc allmodconfig with > the error messages: > > drivers/built-in.o: In function `meson6_timer_init': > meson6_timer.c:(.init.text+0x5fe8): undefined reference to > `of_io_request_and_map' >

Re: [PATCHv6 2/7] pci: child bus alloc fix on constrained resource

2015-12-17 Thread Keith Busch
On Thu, Dec 17, 2015 at 11:27:18AM -0600, Bjorn Helgaas wrote: > On Mon, Dec 07, 2015 at 02:32:24PM -0700, Keith Busch wrote: > > + if (busnr > parent->busn_res.end) { > > + dev_printk(KERN_DEBUG, &parent->dev, > > + "can not alloc bus:%d under %pR\n", busnr, > > +

Re: [PATCH 09/19] ARM: dts: am335x: replace gpio-key,wakeup with wakeup-source property

2015-12-17 Thread Tony Lindgren
* Sudeep Holla [151215 08:33]: > > > On 21/10/15 11:10, Sudeep Holla wrote: > >Though the keyboard driver for GPIO buttons(gpio-keys) will continue to > >check for/support the legacy "gpio-key,wakeup" boolean property to > >enable gpio buttons as wakeup source, "wakeup-source" is the new > >stan

Re: linux-next: manual merge of the regulator tree with the qcom tree

2015-12-17 Thread Andy Gross
On Thu, Dec 17, 2015 at 11:22:01AM +, Mark Brown wrote: > On Thu, Dec 17, 2015 at 01:01:29PM +1100, Stephen Rothwell wrote: > > > between commit: > > > f6251e80956d ("soc: qcom: documentation: Update SMD/RPM Docs") > > 9ee8373a1552 ("soc: qcom: smd-rpm: Add existing platform support") >

Re: [PATCH 15/19] ARM: dts: omap: replace legacy *,wakeup property with wakeup-source

2015-12-17 Thread Tony Lindgren
* Sudeep Holla [151215 08:37]: > > > On 21/10/15 11:10, Sudeep Holla wrote: > >Though the keyboard and other driver will continue to support the legacy > >"gpio-key,wakeup", "linux,wakeup" boolean property to enable the wakeup > >source, "wakeup-source" is the new standard binding. > > > >This p

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-17 Thread Måns Rullgård
Julian Margetson writes: > I have been running my machine mostly configured for pciex1 thus with > the sata_dwc disabled. > The changes to sata_dwc-460ex do cause an oops. > I will try to give more detailed info over this weekend . The driver as is upstream would do that since it unconditionall

[PATCH v4 02/12] arm-cci: Refactor pmu_write_counter

2015-12-17 Thread Suzuki K. Poulose
Refactor pmu_write_counter to add __pmu_write_counter() which will actually write to the counter once the event is validated. This can be used by hooks specific to CCI PMU model to program the counter, where the event is already validated. Cc: Mark Rutland Cc: Punit Agrawal Signed-off-by: Suzuki

Re: linux-next: manual merge of the regulator tree with the qcom tree

2015-12-17 Thread Mark Brown
On Thu, Dec 17, 2015 at 11:58:22AM -0600, Andy Gross wrote: > On Thu, Dec 17, 2015 at 11:22:01AM +, Mark Brown wrote: > > > I fixed it up (I used the qcom tree version - please sort out the > > > mess). > > Andy, what's going on here? > I hadn't reformulated my next branch before Stephen pul

RE: [PATCH v2 12/14] mmc: sdhci-pic32: Add PIC32 SDHCI host controller driver

2015-12-17 Thread Paul.Thacker
On 12/16/2015 3:48 AM, Ulf Hansson wrote: > > [...] > > > +static int pic32_sdhci_probe(struct platform_device *pdev) { > > + struct device *dev = &pdev->dev; > > + struct sdhci_host *host; > > + struct resource *iomem; > > + struct pic32_sdhci_pdata *sdhci_pdata; > > +

[PATCH v2] PM / OPP: Fix parsing of opp-microvolt and opp-microamp properties

2015-12-17 Thread Bartlomiej Zolnierkiewicz
Commit 01fb4d3c39d3 ("PM / OPP: Parse 'opp--' bindings") broke support for parsing standard opp-microvolt and opp-microamp properties. Fix it by setting 'name' string to proper value for !prop cases. Cc: Viresh Kumar Cc: Lee Jones Cc: Rafael J. Wysocki Fixes: 01fb4d3c39d3 ("PM / OPP: Parse 'op

Re: [PATCH] use callbacks to access UART_DLL/UART_DLM

2015-12-17 Thread Sebastian Frias
On 12/17/2015 05:02 PM, Måns Rullgård wrote: Sebastian Frias writes: --- resending as plain-text --- drivers/tty/serial/8250/8250_core.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-17 Thread Julian Margetson
On 12/17/2015 12:53 PM, Andy Shevchenko wrote: On Thu, 2015-12-17 at 16:04 +, Måns Rullgård wrote: Andy Shevchenko writes: On Thu, 2015-12-17 at 15:13 +, Måns Rullgård wrote: Andy Shevchenko writes: On Tue, 2015-12-15 at 23:34 +, Måns Rullgård wrote: Mans Rullgard writes:

Re: [PATCH] use callbacks to access UART_DLL/UART_DLM

2015-12-17 Thread Måns Rullgård
Sebastian Frias writes: >>>old_lcr = serial_in(p, UART_LCR); >>> -serial_out(p, UART_LCR, UART_LCR_CONF_MODE_A); >>> - >>> -old_dll = serial_in(p, UART_DLL); >>> -old_dlm = serial_in(p, UART_DLM); >>> >>> -serial_out(p, UART_DLL, 0); >>> -serial_out(p, UART_DLM, 0); >>

Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.)

2015-12-17 Thread Nish Aravamudan
On Thu, Dec 17, 2015 at 9:32 AM, Nish Aravamudan wrote: > On Thu, Dec 17, 2015 at 12:41 AM, Crt Mori wrote: >> On 17 December 2015 at 06:27, Nish Aravamudan >> wrote: >>> On Wed, Dec 16, 2015 at 3:05 PM, Nish Aravamudan >>> wrote: On Wed, Dec 16, 2015 at 2:55 PM, Crt Mori wrote: > >>

[RESEND][PATCH v2] dmaengine: bcm2835: Add slave dma support

2015-12-17 Thread Martin Sperl
Add slave transfer capability to BCM2835 dmaengine driver. This patch is pulled from the bcm2708-dmaengine driver in the Raspberry Pi repo. The work was done originally by Gellert Weisz. Tested using the spi-bcm2835 driver that has dma support since: commit 3ecd37edaa2a6ba3 ("spi: bcm2835: enabl

Re: [PATCHv6 5/7] x86/pci: Initial commit for new VMD device driver

2015-12-17 Thread Bjorn Helgaas
On Mon, Dec 07, 2015 at 02:32:27PM -0700, Keith Busch wrote: > The Intel Volume Management Device (VMD) is an integrated endpoint on the > platform's PCIe root complex that acts as a host bridge to a secondary > PCIe domain. BIOS can reassign one or more root ports to appear within > a VMD domain i

Re: [PATCHv6 6/7] aer_inject: Use 32 bit int type domains

2015-12-17 Thread Keith Busch
On Thu, Dec 17, 2015 at 11:46:15AM -0600, Bjorn Helgaas wrote: > On Mon, Dec 07, 2015 at 02:32:28PM -0700, Keith Busch wrote: > > - u16 domain; > > + int domain; > > If you want 32 bits explicitly, why don't you use u32 here? It matches the types already defined in struct pci_dev and the pci_

Re: [RFC PATCH] always probe UART HW when options are not specified

2015-12-17 Thread Sebastian Frias
Hi Peter, On 12/17/2015 06:48 PM, Peter Hurley wrote: Hi Sebastian, On 12/17/2015 08:48 AM, Sebastian Frias wrote: On 12/17/2015 05:29 PM, Peter Hurley wrote: On 12/17/2015 07:15 AM, Sebastian Frias wrote: --- I think there are a few minor bugs on the 8250 UART code. Below you can find a p

[PATCH v3 2/7] tpm_tis: Disable interrupt auto probing on a per-device basis

2015-12-17 Thread Jason Gunthorpe
Instead of clearing the global interrupts flag when any device does not have an interrupt just pass -1 through tpm_info.irq. The only thing that asks for autoprobing is the force=1 path. Signed-off-by: Jason Gunthorpe Tested-by: Wilck, Martin Tested-by: Jarkko Sakkinen --- drivers/char/tpm/tp

[PATCH v3 3/7] tpm_tis: Do not fall back to a hardcoded address for TPM2

2015-12-17 Thread Jason Gunthorpe
If the ACPI tables do not declare a memory resource for the TPM2 then do not just fall back to the x86 default base address. Also be stricter when checking the ancillary TPM2 ACPI data and error out if any of this data is wrong rather than blindly assuming TPM1. Fixes: 399235dc6e95 ("tpm, tpm_tis

[PATCH v3 4/7] tpm_tis: Use devm_ioremap_resource

2015-12-17 Thread Jason Gunthorpe
This does a request_resource under the covers which means tis holds a lock on the memory range it is using so other drivers cannot grab it. When doing probing it is important to ensure that other drivers are not using the same range before tis starts touching it. To do this flow the actual struct

[PATCH v3 7/7] tpm_crb: Use devm_ioremap_resource

2015-12-17 Thread Jason Gunthorpe
To support the force mode in tpm_tis we need to use resource locking in tpm_crb as well, via devm_ioremap_resource. The light restructuring better aligns crb and tis and makes it easier to see the that new changes make sense. Signed-off-by: Jason Gunthorpe Tested-by: Jarkko Sakkinen --- driver

[PATCH v3 6/7] tpm_crb: Drop le32_to_cpu(ioread32(..))

2015-12-17 Thread Jason Gunthorpe
ioread32 and readl are defined to read from PCI style memory, ie little endian and return the result in host order. On platforms where a swap is required ioread32/readl do the swap internally (eg see ppc). Signed-off-by: Jason Gunthorpe Tested-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_crb.c

[PATCH v3 0/7] tpm_tis: Clean up force module parameter

2015-12-17 Thread Jason Gunthorpe
Drive the force=1 flow through the driver core. There are two main reasons to do this: 1) To enable tpm_tis for OF environments requires a platform_device anyhow, so the force_device needs to be re-used for them. 2) Recent changes in the core code break the assumption that a driver will be

Re: [PATCHv6 5/7] x86/pci: Initial commit for new VMD device driver

2015-12-17 Thread Keith Busch
On Thu, Dec 17, 2015 at 12:14:48PM -0600, Bjorn Helgaas wrote: > On Mon, Dec 07, 2015 at 02:32:27PM -0700, Keith Busch wrote: > > +/* > > + * VMD h/w converts posted config writes to non-posted. The read-back in > > this > > + * function forces the completion so it returns only after the config >

Re: [PATCHv5 7/7] pciutils: Allow 32-bit domains

2015-12-17 Thread Bjorn Helgaas
On Thu, Dec 17, 2015 at 05:34:46PM +, Keith Busch wrote: > On Thu, Dec 17, 2015 at 11:15:45AM -0600, Bjorn Helgaas wrote: > > > @@ -45,7 +45,7 @@ pci_filter_parse_slot_v33(struct pci_filter *f, char > > > *str) > > > if (str[0] && strcmp(str, "*")) > > > { > > > long int x =

[PATCH v3 5/7] tpm_tis: Clean up the force=1 module parameter

2015-12-17 Thread Jason Gunthorpe
The TPM core has long assumed that every device has a driver attached, however the force path was attaching the TPM core outside of a driver context. This isn't generally reliable as the user could detatch the driver using sysfs or something, but commit b8b2c7d845d5 ("base/platform: assert that dev

[PATCH v3 1/7] tpm_crb: Use the common ACPI definition of struct acpi_tpm2

2015-12-17 Thread Jason Gunthorpe
include/acpi/actbl2.h is the proper place for these definitions and the needed TPM2 ones have been there since commit 413d4a6defe0 ("ACPICA: Update TPM2 ACPI table") This also drops a couple of le32_to_cpu's for members of this table, the existing swapping was not done consistently, and the defini

Re: [PATCH v6 12/20] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-12-17 Thread Catalin Marinas
On Wed, Dec 16, 2015 at 12:42:38AM +0300, Yury Norov wrote: > +/* Using non-compat syscalls where necessary */ > +#define compat_sys_fadvise64_64sys_fadvise64_64 > +#define compat_sys_fallocate sys_fallocate > +#define compat_sys_ftruncate64 sys_ftruncate I initially thou

4.4-rc, intel dri i915, regular hangs and corruptions

2015-12-17 Thread Norbert Preining
Dear all, since 4.4-rc (at least rc2 it was the first I tested), the Intel DRI is in very broken state. Hardware: Sony VAIO Pro 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller]) Subsystem: Sony Corporat

Re: [PATCH 0/2] ARM: OMAP1/2+: DO not create omap-pcm-audio device

2015-12-17 Thread Tony Lindgren
* Peter Ujfalusi [151211 04:51]: > Hi, > > The ASoC omap-pcm has been converted to be non platform device a long time > ago, > so it is no longer needed to create the device for it since there will be no > driver to be loaded for it. OK, applying into omap-for-v4.5/soc-v2 thanks. Tony -- To un

Re: [PATCH RFC 0/8] Input: atmel_mxt_ts - raw data via debugfs

2015-12-17 Thread Nick Dyer
On 02/12/15 20:42, Nick Dyer wrote: > This is a series of patches to add diagnostic data support to the Atmel > maXTouch driver. There's an existing implementation in the open-source mxt-app > tool, however there are performance advantages to moving this code into the > driver. > The algorithm for

Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.)

2015-12-17 Thread Crt Mori
On 17 December 2015 at 19:10, Nish Aravamudan wrote: > On Thu, Dec 17, 2015 at 9:32 AM, Nish Aravamudan > wrote: >> On Thu, Dec 17, 2015 at 12:41 AM, Crt Mori wrote: >>> On 17 December 2015 at 06:27, Nish Aravamudan >>> wrote: On Wed, Dec 16, 2015 at 3:05 PM, Nish Aravamudan wrote:

Re: [PATCH v4 05/12] arm-cci: PMU: Add support for transactions

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 05:49:12PM +, Suzuki K. Poulose wrote: > This patch adds the transaction hooks for CCI PMU, which can be > later exploited to amortise the cost of writing the counters for > CCI-500 PMU. > > We keep track of only the 'ADD' transactions. While we are in a > transaction,

RE: [PATCH v3 2/2] mm: Introduce kernelcore=mirror option

2015-12-17 Thread Luck, Tony
>>> As Tony requested, we may need a knob to stop a fallback in >>> "movable->normal", later. >>> >> >> If the mirrored memory is small and the other is large, >> I think we can both enable "non-mirrored -> normal" and "normal -> >> non-mirrored". > > Size of mirrored memory can be configured by

Re: [PATCH v5 4/5] ARM: dts: DRA7: add entry for qspi mmap region

2015-12-17 Thread Tony Lindgren
* Rob Herring [151211 07:10]: > On Fri, Dec 11, 2015 at 09:39:59AM +0530, Vignesh R wrote: > > Add qspi memory mapped region entries for DRA7xx based SoCs. Also, > > update the binding documents for the controller to document this change. > > > > Signed-off-by: Vignesh R > > Acked-by: Rob Herri

Re: -next regression: "driver cohandle -EPROBE_DEFER from bus_type.match()"

2015-12-17 Thread Russell King - ARM Linux
On Thu, Dec 17, 2015 at 07:51:14AM -0800, Dan Williams wrote: > The commit below causes the libnvdimm sub-system to stop loading. > This is due to the fact that nvdimm_bus_match() returns the result of > test_bit() which may be negative. If there are any other bus match > functions using test_bit

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-17 Thread Måns Rullgård
Julian Margetson writes: > On 12/17/2015 1:59 PM, Måns Rullgård wrote: >> Julian Margetson writes: >> >>> I have been running my machine mostly configured for pciex1 thus with >>> the sata_dwc disabled. >>> The changes to sata_dwc-460ex do cause an oops. >>> I will try to give more detailed inf

Re: [PATCH 17/25] perf stat report: Move csv_sep initialization before report command

2015-12-17 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 05, 2015 at 03:41:01PM +0100, Jiri Olsa escreveu: > So we have csv_sep properly initialized before > report command leg. I moved this to before "perf stat report: Process stat and stat round events" so that what you wrote above makes sense, i.e. after this patch nothing is produced by

Re: 4.4-rc5 Setting hardware breakpoint in int_ret_from_sys_call causes triple fault/reboot

2015-12-17 Thread Jeff Merkey
On 12/17/15, Jeff Merkey wrote: > On 12/16/15, Jeff Merkey wrote: >> On 12/16/15, Andy Lutomirski wrote: >>> On Wed, Dec 16, 2015 at 4:31 PM, Jeff Merkey >>> wrote: On 12/16/15, Andy Lutomirski wrote: > On Dec 16, 2015 3:12 PM, "Jeff Merkey" wrote: >> >> Setting a hardware br

Re: [PATCH] ptrace: being capable wrt a process requires mapped uids/gids

2015-12-17 Thread Serge E. Hallyn
On Sat, Dec 12, 2015 at 09:12:41PM +0100, Jann Horn wrote: > ptrace_has_cap() checks whether the current process should be > treated as having a certain capability for ptrace checks > against another process. Until now, this was equivalent to > has_ns_capability(current, target_ns, CAP_SYS_PTRACE).

Re: [PATCH v3 0/4] Raspberry Pi power domains

2015-12-17 Thread Eric Anholt
Ulf Hansson writes: > On 15 December 2015 at 22:40, Eric Anholt wrote: >> Since the pm_genpd_exit() patch is still going through review, and >> other drivers in the tree just ignore the error cases, Ulf offered to >> merge the series as a builtin driver not depending on that interface. >> We sti

Re: [PATCH] locking/osq: Fix ordering of node initialisation in osq_lock

2015-12-17 Thread Linus Torvalds
On Thu, Dec 17, 2015 at 8:05 AM, Peter Zijlstra wrote: > > Please consider this patch for 4.4. No problem, but just wanted to check that there's nothing else pending in any locking tree? Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Re: [RFC PATCH] always probe UART HW when options are not specified

2015-12-17 Thread Sebastian Frias
On 12/17/2015 06:21 PM, Greg Kroah-Hartman wrote: On Thu, Dec 17, 2015 at 05:48:42PM +0100, Sebastian Frias wrote: On 12/17/2015 05:29 PM, Peter Hurley wrote: On 12/17/2015 07:15 AM, Sebastian Frias wrote: --- I think there are a few minor bugs on the 8250 UART code. Below you can find a pat

Re: [PATCH v2 1/3] STAGING: COMEDI: Fixed format of comments in plx9080.h

2015-12-17 Thread Ian Abbott
On 17/12/15 15:53, Moritz König wrote: This patch fixes the format of comments in plx9080.h. Signed-off-by: Moritz König Signed-off-by: Fabian Lang --- Changes since v1: * moving comments that would wrap over 80 columns onto the previous line * using the usual block comment style drive

[PATCH 4/8] fs: make filesystems.c explicitly non-modular

2015-12-17 Thread Paul Gortmaker
The Makefile currently controlling compilation of this code is obj-y meaning that it currently is not being built as a module by anyone. Lets remove the traces of modularity that we can so that when reading the code there is no doubt it is builtin-only. Since module_init translates to device_init

Re: [PATCH] PM / sleep: define inline functions

2015-12-17 Thread Eric Anholt
"Rafael J. Wysocki" writes: > On Wednesday, December 16, 2015 04:41:37 PM Eric Anholt wrote: >> >> --=-=-= >> Content-Type: text/plain >> >> Sudip Mukherjee writes: >> >> > If CONFIG_PM_SLEEP is not defined then the functions are defined as >> > NULL. And as a result we are getting build fail

[PATCH 5/8] fs: make locks.c explicitly non-modular

2015-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: config FILE_LOCKING bool "Enable POSIX file locking API" if EXPERT ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modularity so that when reading the driver there is no do

[PATCH 6/8] fs: make direct-io.c explicitly non-modular

2015-12-17 Thread Paul Gortmaker
The Makefile currently controlling compilation of this code has: ifeq ($(CONFIG_BLOCK),y) obj-y +=buffer.o block_dev.o direct-io.o mpage.o and in addition to that the Kconfig is: block/Kconfig:menuconfig BLOCK block/Kconfig: bool "Enable the block layer" if EXPERT ...meaning that

[PATCH 7/8] fs: make devpts/inode.c explicitly non-modular

2015-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: config UNIX98_PTYS bool "Unix98 PTY support" if EXPERT ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modularity so that when reading the driver there is no doubt it is bui

[PATCH 1/8] hugetlb: make mm and fs code explicitly non-modular

2015-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: config HUGETLBFS bool "HugeTLB file system support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no

[PATCHv2 1/3] thermal: setup monitor only once after handling trips

2015-12-17 Thread Eduardo Valentin
Instead of changing the monitoring setup every time after handling each trip, this patch simplifies the monitoring setup by moving the setup call to a place where all trips have been treated already. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reviewed-by: Pandruva

[PATCH -next] misc: ibmasm: fix build errors

2015-12-17 Thread Randy Dunlap
#x27;: module.c:(.text+0xf6c37): undefined reference to `ibmasm_register_uart' Signed-off-by: Randy Dunlap Cc: Max Asbock Cc: Vernon Mauery --- drivers/misc/Kconfig |1 + 1 file changed, 1 insertion(+) --- linux-next-20151217.orig/drivers/misc/Kconfig +++ linux-next-20151217/drivers/m

[PATCHv2 3/3] thermal: improve hot trip handling

2015-12-17 Thread Eduardo Valentin
The idea is to add the choice to be notified only when temperature crosses trip points. The trip points affected are the non-passive trip points. It will check last temperature and current temperature against the trip point temperature and its hysteresis. In case the check shows temperature has ch

[PATCHv2 0/3] thermal: rework core to improve userspace interaction

2015-12-17 Thread Eduardo Valentin
Hello Rui, linux-pm Changelog: V1 -> V2: Fixes patch 2, and added Srivinas reviewed by on patch 1. Please consider these three patches in the thermal core to improve the interaction with userspace. The first is already in its second version. It avoids reconfiguring monitor period. Now the therma

[PATCH 2/8] fs: make notify dnotify.c explicitly non-modular

2015-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: config DNOTIFY bool "Dnotify support" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modularity so that when reading the code there is no doubt it is builtin-only. Sin

[PATCH 8/8] fs: make binfmt_elf.c explicitly non-modular

2015-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: config BINFMT_ELF bool "Kernel support for ELF binaries" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there

<    1   2   3   4   5   6   7   8   9   >