Re: [RFC PATCH 03/33] irqchip/gic-v3-its: Refactor command encoding

2017-02-16 Thread Auger Eric
On 17/01/2017 11:20, Marc Zyngier wrote: > The way we encode the various ITS command fields is both tedious > and error prone. Let's introduce a helper function that performs > the encoding, and convert the existing encoders to use that > helper. > > Signed-off-by: Marc Zyngier > --- > drivers

Re: [RFC PATCH 02/33] irqchip/gic-v3: Add VLPI/DirectLPI discovery

2017-02-16 Thread Auger Eric
Hi, On 17/01/2017 11:20, Marc Zyngier wrote: > Add helper functions that probe for VLPI and DirectLPI properties. > > Signed-off-by: Marc Zyngier Besides the returned value previous questions, Reviewed-by: Eric Auger Eric > --- > drivers/irqchip/irq-gic-v3.c | 22

Re: [RFC PATCH 04/33] irqchip/gic-v3-its: Move LPI definitions around

2017-02-16 Thread Auger Eric
Hi Marc, On 17/01/2017 11:20, Marc Zyngier wrote: > The various LPI definitions are in the middle of the code, and > would be better placed at the beginning, given that we're going > to use some of them much earlier. > > Signed-off-by: Marc Zyngier Reviewed-by: Eric Auger Eric > --- > drivers

Re: [PATCH v7 00/20] ILP32 for ARM64

2017-02-16 Thread Maxim Kuvyrkov
> On Feb 12, 2017, at 4:07 PM, Andrew Pinski wrote: > > On Mon, Jan 9, 2017 at 3:29 AM, Yury Norov wrote: >> This series enables aarch64 with ilp32 mode. >> ... > > For folks concerned about performance, here is what we get for SPEC > CPU 2006 on ThunderX 2 CN99xx. > Positive means ILP32 is fa

Re: [PATCH 3/4] serial: 8250-mtk: add uart DMA support

2017-02-16 Thread Arnd Bergmann
On Thursday, February 16, 2017 7:07:30 PM CET Long Cheng wrote: > Modify uart register to support DMA function. > > Signed-off-by: Long Cheng > --- > drivers/tty/serial/8250/8250_mtk.c | 194 > +++- > 1 file changed, 193 insertions(+), 1 deletion(-) > This cod

[PATCH v2 2/4] pinctrl: samsung: Register pinctrl before GPIO

2017-02-16 Thread Charles Keepax
If we request a GPIO hog, then gpiochip_add_data will attempt to request some of its own GPIOs. The driver also uses gpiochip_generic_request which means that for any GPIO request to succeed the pinctrl needs to be registered. Currently however the driver registers the GPIO and then the pinctrl mea

[PATCH v2 3/4] pinctrl: samsung: Remove unused local variable

2017-02-16 Thread Charles Keepax
The local variable drvdata is not used in samsung_gpio_set_direction. Signed-off-by: Charles Keepax Reviewed-by: Krzysztof Kozlowski --- Changes since v1: - Update commit message drivers/pinctrl/samsung/pinctrl-samsung.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pinctrl/sa

[PATCH v2 1/4] pinctrl: Fix trivial spelling typo in a comment

2017-02-16 Thread Charles Keepax
Signed-off-by: Charles Keepax --- No changes since v1. drivers/pinctrl/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index d690465..0bf6392f 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -525,7 +5

[PATCH v2 4/4] pinctrl: samsung: Use devres version of gpiochip_add_data

2017-02-16 Thread Charles Keepax
Use devm_gpiochip_add_data to simplify the error path in samsung_gpiolib_register. Additionally this would also fix a leak if the pinctrl driver was unbound, although admittedly I can't see any good use-case for doing so, but the driver does currently allow it. Signed-off-by: Charles Keepax ---

Re: [PATCH v3 5/6] ARM: mvebu: Add driver for mv98dx3236-soc-id

2017-02-16 Thread Arnd Bergmann
On Thursday, February 16, 2017 9:50:39 PM CET Chris Packham wrote: > The DFX server on the 98dx3236 and compatible SoCs has an ID register > that provides revision information that the PCI based ID register > doesn't have. Use this if it's available. > > Signed-off-by: Chris Packham > How about

[PATCH 0/4] PCI: dwc: cleanup designware driver

2017-02-16 Thread Kishon Vijay Abraham I
This series does additional cleanup on top of [1] in preparation for adding endpoint mode support to designware driver. This series was previously sent as part of endpoint support series [2]. Once this series is merged, PCI endpoint series can be merged. I'll wait for this series to be merged bef

[PATCH 1/4] PCI: dwc: designware: Add new *ops* for cpu addr fixup

2017-02-16 Thread Kishon Vijay Abraham I
Some platforms (like dra7xx) require only the least 28 bits of the corresponding 32 bit CPU address to be programmed in the address translation unit. This modified address is stored in io_base/mem_base/ cfg0_base/cfg1_base in dra7xx_pcie_host_init. While this is okay for host mode where the address

[PATCH 2/4] PCI: dwc: dra7xx: Populate cpu_addr_fixup ops

2017-02-16 Thread Kishon Vijay Abraham I
Populate cpu_addr_fixup ops to extract the least 28 bits of the corresponding cpu address. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/pci-dra7xx.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-d

Re: [PATCH 02/17] block: introduce bio_remove_last_page()

2017-02-16 Thread Ming Lei
On Thu, Feb 16, 2017 at 8:08 PM, Johannes Thumshirn wrote: > On 02/16/2017 12:45 PM, Ming Lei wrote: >> MD need this helper to remove the last added page, so introduce >> it. >> >> Signed-off-by: Ming Lei >> --- >> block/bio.c | 23 +++ >> include/linux/bio.h | 1 + >

[PATCH 4/4] PCI: dwc: all: Modify dbi accessors to access data of 4/2/1 bytes

2017-02-16 Thread Kishon Vijay Abraham I
Previously dbi accessors can be used to access data of size 4 bytes. But there might be situations (like accessing MSI_MESSAGE_CONTROL in order to set/get the number of required MSI interrupts in EP mode) where dbi accessors must be used to access data of size 2. This is in preparation for adding e

Re: [PATCH 4/5] sprd_serial: switch comptible string to sc-uart

2017-02-16 Thread Arnd Bergmann
On Tuesday, February 14, 2017 5:19:11 PM CET Chunyan Zhang wrote: > static const struct of_device_id serial_ids[] = { > - {.compatible = "sprd,sc9836-uart",}, > + {.compatible = "sprd,sc-uart",}, > {} We really need this to be specific, in case Spreadtrum ever makes a slightly

Re: [PATCH 13/17] md: raid1: use bio_segments_all()

2017-02-16 Thread Ming Lei
On Thu, Feb 16, 2017 at 8:35 PM, Johannes Thumshirn wrote: > On 02/16/2017 12:45 PM, Ming Lei wrote: >> @@ -998,7 +998,8 @@ static void alloc_behind_pages(struct bio *bio, struct >> r1bio *r1_bio) >> { >> int i; >> struct bio_vec *bvec; >> - struct bio_vec *bvecs = kzalloc(bio->b

[PATCH 3/4] PCI: dwc: all: Modify dbi accessors to take dbi_base as argument

2017-02-16 Thread Kishon Vijay Abraham I
dwc has 2 dbi address space labeled dbics and dbics2. The existing helper to access dbi address space can access only dbics. However dbics2 has to be accessed for programming the BAR registers in the case of EP mode. This is in preparation for adding EP mode support to dwc driver. Cc: Jingoo Han

Re: [PATCH 13/17] md: raid1: use bio_segments_all()

2017-02-16 Thread Johannes Thumshirn
On 02/16/2017 02:32 PM, Ming Lei wrote: > On Thu, Feb 16, 2017 at 8:35 PM, Johannes Thumshirn > wrote: >> On 02/16/2017 12:45 PM, Ming Lei wrote: >>> @@ -998,7 +998,8 @@ static void alloc_behind_pages(struct bio *bio, struct >>> r1bio *r1_bio) >>> { >>> int i; >>> struct bio_vec *bv

Re: [PATCH 13/17] md: raid1: use bio_segments_all()

2017-02-16 Thread Ming Lei
On Thu, Feb 16, 2017 at 9:34 PM, Johannes Thumshirn wrote: > On 02/16/2017 02:32 PM, Ming Lei wrote: >> On Thu, Feb 16, 2017 at 8:35 PM, Johannes Thumshirn >> wrote: >>> On 02/16/2017 12:45 PM, Ming Lei wrote: @@ -998,7 +998,8 @@ static void alloc_behind_pages(struct bio *bio, struct

Re: [PATCH 02/17] block: introduce bio_remove_last_page()

2017-02-16 Thread Johannes Thumshirn
On 02/16/2017 02:30 PM, Ming Lei wrote: > On Thu, Feb 16, 2017 at 8:08 PM, Johannes Thumshirn > wrote: >> On 02/16/2017 12:45 PM, Ming Lei wrote: >>> MD need this helper to remove the last added page, so introduce >>> it. >>> >>> Signed-off-by: Ming Lei >>> --- >>> block/bio.c | 23

[PATCH] Add possibility to define bits-per-word property.

2017-02-16 Thread Adrian Fiergolski
Signed-off-by: Adrian Fiergolski --- drivers/spi/spi.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 0239b45..d2267e9 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1549,6 +1549,17 @@ of_register_spi_device(struct sp

pull-request: wireless-drivers-next 2017-02-17

2017-02-16 Thread Kalle Valo
Hi Dave, few -next patches I'm still hoping to get to 4.11 to keep my backlog short, nothing major here. Please let me know if there are any problems. Kalle The following changes since commit 3b03cc0783b03ddd668ff3f86419bc67d0664e89: net: natsemi: ns83820: use new api ethtool_{get|set}_link_k

[PATCH 2/2] [2/2] mmc: sdhci-cadence: Update PHY delay configuration

2017-02-16 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different platforms. Configuration of new three PHY delays were added Signed-off-by: Piotr Sroka --- .../devicetree/bindings/mmc/sdhci-cadence.txt | 54 ++ drivers/mmc/host/sdhci-cadence.c

[PATCH 1/2] [1/2] mmc: sdhci-cadence: Fix writing PHY delay

2017-02-16 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka --- drivers/mmc/host/sdhci-cadence.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host/sdhci-cadence.c index 4b0ecb9..c94

Re: [PATCH 06/11] tty: serial: Add Actions Semi Owl UART earlycon

2017-02-16 Thread Arnd Bergmann
On Wednesday, February 15, 2017 5:55:23 PM CET Andreas Färber wrote: > diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig > index 6117ac8..9d4213c 100644 > --- a/drivers/tty/serial/Kconfig > +++ b/drivers/tty/serial/Kconfig > @@ -1677,6 +1677,25 @@ config SERIAL_MVEBU_CONSOLE >

Re: [PATCH 04/11] ARM64: Prepare Actions Semi S900

2017-02-16 Thread Arnd Bergmann
On Wednesday, February 15, 2017 5:55:21 PM CET Andreas Färber wrote: > > +config ARCH_OWL > + bool "Actions Semi S900 SoC Family" > + help > + This enables support for the Actions Semiconductor S900 SoC family. > + > There seem to be a couple of other SoCs in the same family,

Re: [PATCH v4 18/36] media: Add i.MX media core driver

2017-02-16 Thread Russell King - ARM Linux
On Thu, Feb 16, 2017 at 02:02:03PM +0100, Philipp Zabel wrote: > On Wed, 2017-02-15 at 18:19 -0800, Steve Longerbeam wrote: > > +- imx-csi subdev is not being autoloaded as a kernel module, probably > > + because ipu_add_client_devices() does not register the IPU client > > + platform devices, bu

Re: [RFC PATCH 06/33] irqchip/gic-v3-its: Add probing for VLPI properties

2017-02-16 Thread Auger Eric
Hi, On 13/02/2017 11:00, Thomas Gleixner wrote: > On Tue, 17 Jan 2017, Marc Zyngier wrote: >> +typer = gic_read_typer(its_base + GITS_TYPER); >> its->base = its_base; >> its->phys_base = res->start; >> -its->ite_size = ((gic_read_typer(its_base + GITS_TYPER) >> 4) & 0xf) + >> 1;

Re: [PATCH 00/11] ARM: Initial Actions Semi S500 and S900 enablement

2017-02-16 Thread Arnd Bergmann
On Wednesday, February 15, 2017 5:55:17 PM CET Andreas Färber wrote: > Hello, > > Based on earlier work of mine for the LeMaker Guitar, this series adds initial > support for the Actions Semiconductor S500 (ARMv7) and S900 (ARMv8) SoCs. > > Despite Actions Semi being a Linaro member since 2015, s

Re: [PATCH 0/4] ARM64: Initial Realtek RTD1295 enablement

2017-02-16 Thread Arnd Bergmann
On Tuesday, February 14, 2017 4:34:35 AM CET Andreas Färber wrote: > > This mini-series adds initial support for the Realtek RTD1295 SoC and > the Zidoo X9S TV box. > > With these patches CPU0 can be booted with earlycon. > > PSCI doesn't work despite present in the vendor device tree; as enable

Re: [PATCH v5] usb: misc: add USB251xB/xBi Hi-Speed Hub Controller Driver

2017-02-16 Thread Greg KH
On Thu, Feb 16, 2017 at 07:36:48AM +0100, Richard Leitner wrote: > On 02/16/2017 03:30 AM, Rob Herring wrote: > > On Fri, Feb 10, 2017 at 09:19:27AM +0100, Richard Leitner wrote: > > > This patch adds a driver for configuration of the Microchip USB251xB/xBi > > > USB 2.0 hub controller series with

Re: [PATCH RFC 1/3] coresight: binding for coresight debug driver

2017-02-16 Thread Leo Yan
On Wed, Feb 15, 2017 at 01:08:58PM -0700, Mathieu Poirier wrote: > On Mon, Feb 13, 2017 at 02:11:36PM +0800, Leo Yan wrote: > > Adding compatible string for new coresight debug driver. > > > > Hi Leo, > > I agree with Mark, this will need a better description. > > > Signed-off-by: Leo Yan > >

Re: [PATCH 02/17] block: introduce bio_remove_last_page()

2017-02-16 Thread Ming Lei
On Thu, Feb 16, 2017 at 9:40 PM, Johannes Thumshirn wrote: > On 02/16/2017 02:30 PM, Ming Lei wrote: >> On Thu, Feb 16, 2017 at 8:08 PM, Johannes Thumshirn >> wrote: >>> On 02/16/2017 12:45 PM, Ming Lei wrote: MD need this helper to remove the last added page, so introduce it. >>>

Re: [PATCH v2] Staging: comedi: drivers: comedi_test: Add auto-configuration capability

2017-02-16 Thread Cheah Kok Cheong
On Thu, Feb 16, 2017 at 10:10:34AM +, Ian Abbott wrote: > On 15/02/17 06:05, Cheah Kok Cheong wrote: > >On Mon, Feb 13, 2017 at 11:14:14AM +, Ian Abbott wrote: > >>On 11/02/17 10:37, Cheah Kok Cheong wrote: > [snip] > >>>+static void __exit comedi_test_exit(void) > >>>+{ > >>>+ comedi_auto

[PATCH v3] Staging: comedi: drivers: comedi_test: Add auto-configuration capability

2017-02-16 Thread Cheah Kok Cheong
Currently this module needs to be manually configured by COMEDI userspace tool before the test waveform can be read by a COMEDI compatible application. This patch adds auto-configuration capability and makes it the default loading option. This is achieved by creating a device during init to stand

Re: [PATCH 02/17] block: introduce bio_remove_last_page()

2017-02-16 Thread Johannes Thumshirn
On 02/16/2017 02:59 PM, Ming Lei wrote: > On Thu, Feb 16, 2017 at 9:40 PM, Johannes Thumshirn > wrote: >> On 02/16/2017 02:30 PM, Ming Lei wrote: >>> On Thu, Feb 16, 2017 at 8:08 PM, Johannes Thumshirn >>> wrote: On 02/16/2017 12:45 PM, Ming Lei wrote: > MD need this helper to remove t

Re: [PATCH v3 23/24] drm/rockchip: dw-mipi-dsi: add reset control

2017-02-16 Thread John Keeping
On Thu, 16 Feb 2017 10:12:33 +0800, Chris Zhong wrote: > On 02/15/2017 08:39 PM, John Keeping wrote: > > On Wed, 15 Feb 2017 11:38:45 +0800, Chris Zhong wrote: > > > >> On 01/29/2017 09:24 PM, John Keeping wrote: > >>> In order to fully reset the state of the MIPI controller we must assert > >

Re: [PATCH v3] Staging: comedi: drivers: comedi_test: Add auto-configuration capability

2017-02-16 Thread Ian Abbott
On 16/02/17 14:05, Cheah Kok Cheong wrote: Currently this module needs to be manually configured by COMEDI userspace tool before the test waveform can be read by a COMEDI compatible application. This patch adds auto-configuration capability and makes it the default loading option. This is achiev

Re: [PATCH v2] btrfs: remove btrfs_err_str function from uapi/linux/btrfs.h

2017-02-16 Thread David Sterba
On Thu, Feb 16, 2017 at 01:55:03AM +0300, Dmitry V. Levin wrote: > btrfs_err_str function is not called from anywhere and is replicated > in the userspace headers for btrfs-progs. > > It's removal also fixes the following linux/btrfs.h userspace > compilation error: > > /usr/include/linux/btrfs.h

Re: [PATCH v3 22/24] drm/rockchip: dw-mipi-dsi: support non-burst modes

2017-02-16 Thread John Keeping
On Thu, 16 Feb 2017 11:01:46 +0800, Chris Zhong wrote: > On 02/01/2017 03:22 AM, Sean Paul wrote: > > On Sun, Jan 29, 2017 at 01:24:42PM +, John Keeping wrote: > > > > Reviewed-by: Sean Paul > > > >> Signed-off-by: John Keeping > >> Reviewed-by: Chris Zhong > >> --- > >> v3: > >> - Add Ch

Re: [PATCH v4 20/36] media: imx: Add CSI subdev driver

2017-02-16 Thread Russell King - ARM Linux
On Thu, Feb 16, 2017 at 01:09:35PM +, Russell King - ARM Linux wrote: > On Thu, Feb 16, 2017 at 12:40:27PM +, Russell King - ARM Linux wrote: > > However, the following is primerily directed at Laurent as the one who > > introduced the BUG_ON() in question... > > > > NEVER EVER USE BUG_ON(

[PATCH v2 2/2] iio: stm32 trigger: Implement parent trigger feature

2017-02-16 Thread Benjamin Gaignard
Add validate_trigger function in iio_trigger_ops and dev_attr_parent_trigger into trigger attribute group to be able to accept triggers as parents. Because the hardware have 8 different ways to use parent levels and edges, this patch introduce "slave_mode" sysfs attribute for stm32 triggers. Modes

[PATCH v2 1/2] iio: Allow triggers to be used as parent of others triggers

2017-02-16 Thread Benjamin Gaignard
Add "parent_trigger" sysfs attribute to iio trigger to be able to set a parent to the current trigger. Parent trigger edges or levels could be used to control current trigger status for example to start, stop or reset it. Introduce validate_trigger function in iio_trigger_ops which does the same t

[PATCH v2 0/2] iio: Add parent_trigger attribute to triggers

2017-02-16 Thread Benjamin Gaignard
version 2: - Do not automatically set parent_trigger attribute on all triggers. Let driver decide to use it. - Improve documentation of parent_trigger - Improve slave modes documentation Thoses patches add parent_trigger attribute to IIO triggers. Parent trigger edges or levels could be used to

Re: [PATCH v5 13/15] livepatch: change to a per-task consistency model

2017-02-16 Thread Miroslav Benes
> @@ -347,22 +356,36 @@ static int __klp_enable_patch(struct klp_patch *patch) > > pr_notice("enabling patch '%s'\n", patch->mod->name); > > + klp_init_transition(patch, KLP_PATCHED); > + > + /* > + * Enforce the order of the func->transition writes in > + * klp_init_tr

Re: [PATCHv4 1/4] block/sed: Use ssize_t on atom parsers to return errors

2017-02-16 Thread Christoph Hellwig
On Wed, Feb 15, 2017 at 02:45:54PM -0700, Jon Derrick wrote: > The short atom parser can return an errno from decoding but does not > currently return the error as a signed value. Convert all of the parsers > to ssize_t. > > Signed-off-by: Jon Derrick > Reviewed-by: Scott Bauer Looks fine, Rev

Re: [PATCH] trace: Correct comments about list of pages in buffer

2017-02-16 Thread Steven Rostedt
On Thu, 16 Feb 2017 02:17:28 -0800 Joel Fernandes wrote: > Comments related to list of pages in the ring buffer seem to be incorrect. > This patch corrects them. > > Signed-off-by: Joel Fernandes > --- > kernel/trace/trace.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) >

[tip:irq/core] genirq/msi: Add stubs for get_cached_msi_msg/pci_write_msi_msg

2017-02-16 Thread tip-bot for Arnd Bergmann
Commit-ID: 2f44e29cef006a4b0a4ecf7d4c5aac7d0fbb505c Gitweb: http://git.kernel.org/tip/2f44e29cef006a4b0a4ecf7d4c5aac7d0fbb505c Author: Arnd Bergmann AuthorDate: Tue, 14 Feb 2017 22:53:12 +0100 Committer: Thomas Gleixner CommitDate: Thu, 16 Feb 2017 15:32:19 +0100 genirq/msi: Add stubs

[tip:irq/core] genirq: Clarify logic calculating bogus irqreturn_t values

2017-02-16 Thread tip-bot for Jeremy Kerr
Commit-ID: 5d4bac9a5f4ef24b2482529bda6661a58e5b5b65 Gitweb: http://git.kernel.org/tip/5d4bac9a5f4ef24b2482529bda6661a58e5b5b65 Author: Jeremy Kerr AuthorDate: Thu, 16 Feb 2017 12:24:09 +0800 Committer: Thomas Gleixner CommitDate: Thu, 16 Feb 2017 15:32:19 +0100 genirq: Clarify logic ca

Re: [BUG] Potential deadlock in the block layer

2017-02-16 Thread Thomas Gleixner
On Mon, 13 Feb 2017, Jens Axboe wrote: > On 02/13/2017 07:14 AM, Thomas Gleixner wrote: > > Gabriel reported the lockdep splat below while investigating something > > different. > > > > Explanation for the splat is in the function comment above > > del_timer_sync(). > > > > I can reproduce it as

Re: [PATCH v2 3/5] pci: set msi_domain_ops as __ro_after_init

2017-02-16 Thread Bjorn Helgaas
On Wed, Feb 15, 2017 at 10:16:32PM +0100, Thomas Gleixner wrote: > I think I suggested to Jiang to do that 'update with default functions' to > > - avoid exporting the world and some more > > - have the flexibility to add new functions to the ops w/o updating a > gazillion of existing usage si

[tip:irq/core] genirq: Reenable shared irq debugging in request_*_irq()

2017-02-16 Thread tip-bot for Thomas Gleixner
Commit-ID: f91f694540f3f8ed25da57814fe0c673afd36e7e Gitweb: http://git.kernel.org/tip/f91f694540f3f8ed25da57814fe0c673afd36e7e Author: Thomas Gleixner AuthorDate: Wed, 15 Feb 2017 15:43:54 +0100 Committer: Thomas Gleixner CommitDate: Thu, 16 Feb 2017 15:32:19 +0100 genirq: Reenable sha

Re: [PATCH v2 3/5] pci: set msi_domain_ops as __ro_after_init

2017-02-16 Thread Thomas Gleixner
On Thu, 16 Feb 2017, Bjorn Helgaas wrote: > On Wed, Feb 15, 2017 at 10:16:32PM +0100, Thomas Gleixner wrote: > > > I think I suggested to Jiang to do that 'update with default functions' to > > > > - avoid exporting the world and some more > > > > - have the flexibility to add new functions to t

Re: [PATCHv4 2/4] block/sed: Add helper to qualify response tokens

2017-02-16 Thread Christoph Hellwig
On Wed, Feb 15, 2017 at 02:45:55PM -0700, Jon Derrick wrote: > Add helper which verifies the response token is valid and matches the > expected value. Merges token_type and response_get_token. > > Signed-off-by: Jon Derrick > Reviewed-by: Scott Bauer Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCHv4 3/4] block/sed: Check received header lengths

2017-02-16 Thread Christoph Hellwig
On Wed, Feb 15, 2017 at 02:45:56PM -0700, Jon Derrick wrote: > Add a buffer size check against discovery and response header lengths > before we loop over their buffers. > > Signed-off-by: Jon Derrick > Reviewed-by: Scott Bauer Looks fine, Reviewed-by: Christoph Hellwig

Re: [RT] lockdep munching nr_list_entries like popcorn

2017-02-16 Thread Mike Galbraith
On Thu, 2017-02-16 at 12:06 +0100, Peter Zijlstra wrote: > On Thu, Feb 16, 2017 at 10:01:18AM +0100, Thomas Gleixner wrote: > > On Thu, 16 Feb 2017, Mike Galbraith wrote: > > > > > On Thu, 2017-02-16 at 09:37 +0100, Thomas Gleixner wrote: > > > > On Thu, 16 Feb 2017, Mike Galbraith wrote: > > > >

[GIT PULL] PCI fixes for v4.10

2017-02-16 Thread Bjorn Helgaas
PCI fix: - add back pcie_pme_remove() so we free the IRQ when removing PCIe port devices; previously the leaked IRQ caused an MSI BUG_ON. The following changes since commit d98e0929071e7ef63d35c1838b0ad0805ae366dd: Revert "PCI: pciehp: Add runtime PM support for PCIe hotplug ports" (20

RE: RE: Re: Re: Re: Subject: [PATCH v2] USB:Core: BugFix: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously

2017-02-16 Thread Alan Stern
On Thu, 16 Feb 2017, Ajay Kaher wrote: > > On Thu, 14 Feb 2017, Alan Stern wrote: > >  > > I think Ajay's argument is correct and a patch is needed.  But this > > patch misses the race between init_usb_class() and release_usb_class().   > > Thanks Alan for your comments, in patch v2 I have taken

[PATCH 0/2] mmc: meson-gx: fix module unloading

2017-02-16 Thread Michał Zegan
This patch contains fixes for the meson-gx-mmc driver, that allow the module to be unloaded correctly. Before trying to unload the module caused kernel warnings. Michał Zegan (2): mmc: meson-gx: prevent cfg_div_clk from being disabled on init mmc: meson-gx: remove mmc host on device removal

[PATCH 1/2] mmc: meson-gx: prevent cfg_div_clk from being disabled on init

2017-02-16 Thread Michał Zegan
At the end of function meson_mmc_clk_init, the cfg_div clock was prepared, enabled and configured, but then immediately disabled due to bogus if statements. That made later calls to clk_disable_unprepare executed during module removal to fail with a kernel warning. Fix that by changing the code t

[PATCH 2/2] mmc: meson-gx: remove mmc host on device removal

2017-02-16 Thread Michał Zegan
The mmc host was added in meson_mmc_probe, but never removed in meson_mmc_remove. Fix that by removing the host before deallocating other resources. Signed-off-by: Michał Zegan --- drivers/mmc/host/meson-gx-mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/meson-gx-mm

Re: [RT] lockdep munching nr_list_entries like popcorn

2017-02-16 Thread Sebastian Andrzej Siewior
On 2017-02-16 15:42:59 [+0100], Mike Galbraith wrote: > > Weeell, I'm trying to cobble something kinda like that together using > __RT_SPIN_INITIALIZER() instead, but seems mean ole Mr. Compiler NAKs > the PER_CPU_DEP_MAP_INIT() thingy. > > CC mm/swap.o > mm/swap.c:54:689: error: braced-gr

Re: [PATCH 0/2] mmc: meson-gx: fix mmc module unloading

2017-02-16 Thread Michał Zegan
Sorry, did not send the whole patch series and have to resend. W dniu 16.02.2017 o 15:39, Michał Zegan pisze: > This patch series fixes mmc driver unloading. > Previously, unloading meson-gx-mmc module would trigger kernel warnings. > > Michał Zegan (2): > mmc: meson-gx: prevent cfg_div_clk fro

Re: [BUG] Potential deadlock in the block layer

2017-02-16 Thread Jens Axboe
On 02/16/2017 07:35 AM, Thomas Gleixner wrote: > On Mon, 13 Feb 2017, Jens Axboe wrote: > >> On 02/13/2017 07:14 AM, Thomas Gleixner wrote: >>> Gabriel reported the lockdep splat below while investigating something >>> different. >>> >>> Explanation for the splat is in the function comment above >

Re: [PATCH 01/10] PCI: dwc: designware: Move the register defines to designware header file

2017-02-16 Thread Jingoo Han
Wednesday, February 15, 2017 8:18 AM, Kishon Vijay Abraham I wrote: > > No functional change. Move the register defines and other macros from > pcie-designware.c to pcie-designware.h. This is in preparation to > split the pcie-designware.c file into designware core file and host > specific file. >

Re: [RFC PATCH 08/33] irqchip/gic-v3-its: Implement irq_set_irqchip_state for pending state

2017-02-16 Thread Auger Eric
Marc, On 17/01/2017 11:20, Marc Zyngier wrote: > Allow the pending state of an LPI to be set or cleared via > irq_set_irqchip_state. > > Signed-off-by: Marc Zyngier Reviewed-by: Eric Auger Eric > --- > drivers/irqchip/irq-gic-v3-its.c | 78 > > 1 fil

[PATCH] Staging: bcm2835-audio: fixed a code style issue:

2017-02-16 Thread Bo YU
Missing a blank line after declarations Signed-off-by: Bo YU --- drivers/staging/bcm2835-audio/bcm2835-pcm.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/bcm2835-audio/bcm2835-pcm.c b/drivers/staging/bcm2835-audio/bcm2835-pcm.c index 014bf7ab69f4..16127e062661 100644

Re: [RFC PATCH 07/33] irqchip/gic-v3-its: Macro-ize its_send_single_command

2017-02-16 Thread Auger Eric
Hi, On 17/01/2017 11:20, Marc Zyngier wrote: > Most ITS commands do operate on a collection object, and require > a SYNC command to be performed on that collection in order to > guarantee the execution of the first command. > > With GICv4 ITS, another set of commands perform similar operations > o

[PATCH V2] perf: qcom: Add L3 cache PMU driver

2017-02-16 Thread Agustin Vega-Frias
This adds a new dynamic PMU to the Perf Events framework to program and control the L3 cache PMUs in some Qualcomm Technologies SOCs. The driver supports a distributed cache architecture where the overall cache is comprised of multiple slices each with its own PMU. The driver aggregates counts acr

[PATCH v2] uapi: fix linux/mroute6.h userspace compilation errors

2017-02-16 Thread Dmitry V. Levin
Include to fix the following linux/mroute6.h userspace compilation errors: /usr/include/linux/mroute6.h:80:22: error: field 'mf6cc_origin' has incomplete type struct sockaddr_in6 mf6cc_origin; /* Origin of mcast */ /usr/include/linux/mroute6.h:81:22: error: field 'mf6cc_mcastgrp' has incompl

[PATCH v2] uapi: fix linux/ipv6_route.h userspace compilation errors

2017-02-16 Thread Dmitry V. Levin
Include to fix the following linux/ipv6_route.h userspace compilation errors: /usr/include/linux/ipv6_route.h:42:19: error: field 'rtmsg_dst' has incomplete type struct in6_addr rtmsg_dst; /usr/include/linux/ipv6_route.h:43:19: error: field 'rtmsg_src' has incomplete type struct in6_addr

[PATCH v2] uapi: fix linux/mroute.h userspace compilation errors

2017-02-16 Thread Dmitry V. Levin
Include to fix the following linux/mroute.h userspace compilation errors: /usr/include/linux/mroute.h:58:18: error: field 'vifc_lcl_addr' has incomplete type struct in_addr vifc_lcl_addr; /* Local interface address */ /usr/include/linux/mroute.h:61:17: error: field 'vifc_rmt_addr' has inco

[PATCH v2 1/2] uapi: fix linux/rds.h userspace compilation errors

2017-02-16 Thread Dmitry V. Levin
Consistently use types from linux/types.h to fix the following linux/rds.h userspace compilation errors: /usr/include/linux/rds.h:106:2: error: unknown type name 'uint8_t' uint8_t name[32]; /usr/include/linux/rds.h:107:2: error: unknown type name 'uint64_t' uint64_t value; /usr/include/linux/r

[PATCH v2 2/2] uapi: fix linux/rds.h userspace compilation error

2017-02-16 Thread Dmitry V. Levin
On the kernel side, sockaddr_storage is #define'd to __kernel_sockaddr_storage. Replacing struct sockaddr_storage with struct __kernel_sockaddr_storage defined by fixes the following linux/rds.h userspace compilation error: /usr/include/linux/rds.h:226:26: error: field 'dest_addr' has incomplete

[PATCH 0/2] mmc: meson-gx: fix mmc module unloading

2017-02-16 Thread Michał Zegan
This patch series fixes mmc driver unloading. Previously, unloading meson-gx-mmc module would trigger kernel warnings. Michał Zegan (2): mmc: meson-gx: prevent cfg_div_clk from being disabled on init mmc: meson-gx: remove mmc host on device removal drivers/mmc/host/meson-gx-mmc.c | 9 ++-

Re: [PATCH 2/2] [2/2] mmc: sdhci-cadence: Update PHY delay configuration

2017-02-16 Thread Ulf Hansson
On 16 February 2017 at 14:06, Piotr Sroka wrote: > DTS properties are used instead of fixed data > because PHY settings can be different for different platforms. > Configuration of new three PHY delays were added > > Signed-off-by: Piotr Sroka > --- > .../devicetree/bindings/mmc/sdhci-cadence.tx

Re: Regression in next with use printk_safe buffers in printk

2017-02-16 Thread Tony Lindgren
* Sergey Senozhatsky [170215 20:26]: > On (02/15/17 20:03), Tony Lindgren wrote: > > * Sergey Senozhatsky [170215 17:32]: > > > On (02/15/17 10:01), Tony Lindgren wrote: > > > [..] > > > > Below is another issue I noticed caused by commit f975237b7682 that > > > > I noticed during booting. > > >

Re: [PATCH v2 00/10] try to reduce fragmenting fallbacks

2017-02-16 Thread Vlastimil Babka
On 02/15/2017 03:29 PM, Vlastimil Babka wrote: > On 02/13/2017 12:07 PM, Mel Gorman wrote: >> On Fri, Feb 10, 2017 at 06:23:33PM +0100, Vlastimil Babka wrote: >> >> By and large, I like the series, particularly patches 7 and 8. I cannot >> make up my mind about the RFC patches 9 and 10 yet. Concept

Dell Latitude E6510: `dell_wmi: Dell descriptor buffer has invalid buffer length (128)`

2017-02-16 Thread Paul Menzel
Dear Matthews, dear Pali, Installing Debian 9 (Stretch/testing) with Linux 4.9.6 on the Dell Latitude E6510, the warnings below are shown. ``` $ more /proc/version Linux version 4.9.0-1-amd64 (debian-ker...@lists.debian.org) (gcc version 6.3.0 20170124 (Debian 6.3.0-5) ) #1 SMP Debian 4.9.6-

Re: [PATCH RFC 2/3] coresight: add support for debug module

2017-02-16 Thread Leo Yan
Hi Mark, On Wed, Feb 15, 2017 at 11:44:16AM +, Mark Rutland wrote: > [resending due to a mail server snafu] > > On Mon, Feb 13, 2017 at 02:11:37PM +0800, Leo Yan wrote: > > Coresight includes debug module and usually the module connects with CPU > > debug logic. ARMv8 architecture reference m

Re: [PATCH RFC 2/3] coresight: add support for debug module

2017-02-16 Thread Leo Yan
Hi Mathieu, On Wed, Feb 15, 2017 at 02:08:05PM -0700, Mathieu Poirier wrote: > On Mon, Feb 13, 2017 at 02:11:37PM +0800, Leo Yan wrote: > > Coresight includes debug module and usually the module connects with CPU > > debug logic. ARMv8 architecture reference manual (ARMv8-ARM) has defined > > the

Re: Dell Latitude E6510: `dell_wmi: Dell descriptor buffer has invalid buffer length (128)`

2017-02-16 Thread Pali Rohár
On Thursday 16 February 2017 16:15:08 Paul Menzel wrote: > Dear Matthews, dear Pali, > > > Installing Debian 9 (Stretch/testing) with Linux 4.9.6 on the Dell Latitude > E6510, the warnings below are shown. > > ``` > $ more /proc/version > Linux version 4.9.0-1-amd64 (debian-ker...@lists.debian.o

[PATCH 1/2] Staging: ks7010: ks*: Add missing blank lines after declarations

2017-02-16 Thread Shiva Kerdel
A blank line should be added after function/struct/union/enum declarations. Signed-off-by: Shiva Kerdel --- drivers/staging/ks7010/ks7010_sdio.h | 1 + drivers/staging/ks7010/ks_wlan.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/staging/ks7010/ks7010_sdio.h b/drivers/stagi

Re: [PATCH v20 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2017-02-16 Thread Jassi Brar
On Mon, Feb 6, 2017 at 11:07 AM, Horng-Shyang Liao wrote: > Hi Jassi, > > On Wed, 2017-02-01 at 10:52 +0530, Jassi Brar wrote: >> On Thu, Jan 26, 2017 at 2:07 PM, Horng-Shyang Liao >> wrote: >> > Hi Jassi, >> > >> > On Thu, 2017-01-26 at 10:08 +0530, Jassi Brar wrote: >> >> On Wed, Jan 4, 2017 a

[PATCH 2/2] Staging: ks7010: ks*: Remove redundant blank lines

2017-02-16 Thread Shiva Kerdel
Multiple blank lines shouldn't be used. Signed-off-by: Shiva Kerdel --- drivers/staging/ks7010/ks7010_sdio.c | 1 - drivers/staging/ks7010/ks_wlan_net.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index a604c8

Re: [PATCH 7/8] mq-deadline: add blk-mq adaptation of the deadline IO scheduler

2017-02-16 Thread Jens Axboe
On 02/16/2017 03:46 AM, Paolo Valente wrote: > >> Il giorno 17 dic 2016, alle ore 01:12, Jens Axboe ha scritto: >> >> This is basically identical to deadline-iosched, except it registers >> as a MQ capable scheduler. This is still a single queue design. >> >> Signed-off-by: Jens Axboe > ... >> +

Re: [PATCH] drm/virtio: call drm_plane_cleanup() at destroy phase

2017-02-16 Thread Gerd Hoffmann
On Mi, 2017-02-15 at 16:00 -0200, Gustavo Padovan wrote: > From: Gustavo Padovan > > virtio was missing this call to clean up core plane usage. > > Signed-off-by: Gustavo Padovan > --- > drivers/gpu/drm/virtio/virtgpu_plane.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gp

[RFC PATCH v4 00/28] x86: Secure Memory Encryption (AMD)

2017-02-16 Thread Tom Lendacky
This RFC patch series provides support for AMD's new Secure Memory Encryption (SME) feature. SME can be used to mark individual pages of memory as encrypted through the page tables. A page of memory that is marked encrypted will be automatically decrypted when read from DRAM and will be automatica

[RFC PATCH v4 01/28] x86: Documentation for AMD Secure Memory Encryption (SME)

2017-02-16 Thread Tom Lendacky
This patch adds a Documenation entry to decribe the AMD Secure Memory Encryption (SME) feature. Signed-off-by: Tom Lendacky --- Documentation/admin-guide/kernel-parameters.txt | 11 Documentation/x86/amd-memory-encryption.txt | 57 +++ 2 files changed, 68 inserti

[RFC PATCH v4 02/28] x86: Set the write-protect cache mode for full PAT support

2017-02-16 Thread Tom Lendacky
For processors that support PAT, set the write-protect cache mode (_PAGE_CACHE_MODE_WP) entry to the actual write-protect value (x05). Acked-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/mm/pat.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x8

[RFC PATCH v4 03/28] x86: Add the Secure Memory Encryption CPU feature

2017-02-16 Thread Tom Lendacky
Update the CPU features to include identifying and reporting on the Secure Memory Encryption (SME) feature. SME is identified by CPUID 0x801f, but requires BIOS support to enable it (set bit 23 of SYS_CFG MSR). Only show the SME feature as available if reported by CPUID and enabled by BIOS.

[RFC PATCH v4 06/28] x86: Add support to enable SME during early boot processing

2017-02-16 Thread Tom Lendacky
This patch adds support to the early boot code to use Secure Memory Encryption (SME). Support is added to update the early pagetables with the memory encryption mask and to encrypt the kernel in place. The routines to set the encryption mask and perform the encryption are stub routines for now wi

[RFC PATCH v4 05/28] x86: Add Secure Memory Encryption (SME) support

2017-02-16 Thread Tom Lendacky
Add support for Secure Memory Encryption (SME). This initial support provides a Kconfig entry to build the SME support into the kernel and defines the memory encryption mask that will be used in subsequent patches to mark pages as encrypted. Signed-off-by: Tom Lendacky --- arch/x86/Kconfig

[RFC PATCH v4 07/28] x86: Provide general kernel support for memory encryption

2017-02-16 Thread Tom Lendacky
Adding general kernel support for memory encryption includes: - Modify and create some page table macros to include the Secure Memory Encryption (SME) memory encryption mask - Modify and create some macros for calculating physical and virtual memory addresses - Provide an SME initialization rou

[PATCH] tpm_tis_core: Choose appropriate timeout for reading burstcount

2017-02-16 Thread Peter Huewe
From: Alexander Steffen TIS v1.3 for TPM 1.2 and PTP for TPM 2.0 disagree about which timeout value applies to reading a valid burstcount. It is TIMEOUT_D according to TIS, but TIMEOUT_A according to PTP, so choose the appropriate value depending on whether we deal with a TPM 1.2 or a TPM 2.0. T

[RFC PATCH v4 10/28] x86: Insure that boot memory areas are mapped properly

2017-02-16 Thread Tom Lendacky
The boot data and command line data are present in memory in a decrypted state and are copied early in the boot process. The early page fault support will map these areas as encrypted, so before attempting to copy them, add decrypted mappings so the data is accessed properly when copied. For the

[RFC PATCH v4 09/28] x86: Add support for early encryption/decryption of memory

2017-02-16 Thread Tom Lendacky
Add support to be able to either encrypt or decrypt data in place during the early stages of booting the kernel. This does not change the memory encryption attribute - it is used for ensuring that data present in either an encrypted or decrypted memory area is in the proper state (for example the i

[RFC PATCH v4 11/28] x86: Add support to determine the E820 type of an address

2017-02-16 Thread Tom Lendacky
This patch adds support to return the E820 type associated with an address range. Signed-off-by: Tom Lendacky --- arch/x86/include/asm/e820/api.h |2 ++ arch/x86/include/asm/e820/types.h |2 ++ arch/x86/kernel/e820.c| 26 +++--- 3 files changed, 27 ins

[RFC PATCH v4 12/28] efi: Add an EFI table address match function

2017-02-16 Thread Tom Lendacky
This patch adds support that will determine if a supplied physical address matches the address of an EFI table. Signed-off-by: Tom Lendacky --- drivers/firmware/efi/efi.c | 33 + include/linux/efi.h|7 +++ 2 files changed, 40 insertions(+) diff

<    1   2   3   4   5   6   7   8   9   >