[PATCH v2 0/6] Add initial support for Broadcom Cygnus SoC

2014-09-23 Thread Jonathan Richardson
Hi, This patchset contains initial support for Broadcom's Cygnus SoC based on our iProc architecture. Initial support is minimal and includes just the mach platform code, clock driver, and a basic device tree configuration. Peripheral drivers will be submitted soon, as will device tree

Re: [PATCH 9/9] percpu_ref: make INIT_ATOMIC and switch_to_atomic() sticky

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:18AM -0400, Tejun Heo wrote: > Currently, a percpu_ref which is initialized with > PERPCU_REF_INIT_ATOMIC or switched to atomic mode via > switch_to_atomic() automatically reverts to percpu mode on the first > percpu_ref_reinit(). This makes the atomic mode difficult

Re: [PATCH 8/9] percpu_ref: add PERCPU_REF_INIT_* flags

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:17AM -0400, Tejun Heo wrote: > With the recent addition of percpu_ref_reinit(), percpu_ref now can be > used as a persistent switch which can be turned on and off repeatedly > where turning off maps to killing the ref and waiting for it to drain; > however, there

Re: [PATCH v2 5/9] percpu_ref: add PCPU_REF_DEAD

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 09:48:51AM -0400, Tejun Heo wrote: > From 6f5bdc32c66317416c13eedb68ead2b36fb02603 Mon Sep 17 00:00:00 2001 > From: Tejun Heo > Date: Tue, 23 Sep 2014 09:45:56 -0400 > > percpu_ref will be restructured so that percpu/atomic mode switching > and reference killing are

Re: [PATCH v2 7/9] percpu_ref: decouple switching to percpu mode and reinit

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 09:49:19AM -0400, Tejun Heo wrote: > From c31543be3b12bd3cb3f8c037cefb89504d294f82 Mon Sep 17 00:00:00 2001 > From: Tejun Heo > Date: Tue, 23 Sep 2014 09:45:56 -0400 > > percpu_ref has treated the dropping of the base reference and > switching to atomic mode as an

Re: [media/dvb_usb_af9005] BUG: unable to handle kernel paging request (WAS: [media/em28xx] BUG: unable to handle kernel)

2014-09-23 Thread Luca Olivetti
El 23/09/14 20:52, Frank Schäfer ha escrit: >>> This seems to be an ancient bug, which is known at least since 5 1/2 years: >>> https://lkml.org/lkml/2009/2/4/350 [...] >> >> #if defined(CONFIG_MODULE) || defined(CONFIG_DVB_USB_AF9005_REMOTE) > What happens, if CONFIG_MODULES is enabled, but

Re: [PATCH 6/9] percpu_ref: decouple switching to atomic mode and killing

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:15AM -0400, Tejun Heo wrote: > percpu_ref has treated the dropping of the base reference and > switching to atomic mode as an integral operation; however, there's > nothing inherent tying the two together. > > The use cases for percpu_ref have been expanding

RE: mmotm 2014-09-22-16-57 uploaded

2014-09-23 Thread Anish Bhatt
> > cc'ing Anish Bhatt. > > > He knows about it, as do David Miller and Randy Dunlap (who proposed it) > [1]. > There just doesn't seem to be an agreement on how to fix the problem. > A simple revert doesn't work anymore since there are multiple follow-up > patches, and if I understand correctly

Re: serial console broken in v3.17-rc6 ?

2014-09-23 Thread Peter Hurley
Hi Helge, On 09/23/2014 04:11 PM, Helge Deller wrote: > During the release cycle of v3.17 I've seen sometimes a broken serial console > output > on the parisc platform. Interestingly all kernel messages printed by the > kernel via printk() show > up correctly, but output from userspace (e.g. by

Re: [PATCH 4/9] percpu_ref: rename things to prepare for decoupling percpu/atomic mode switch

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:13AM -0400, Tejun Heo wrote: > percpu_ref will be restructured so that percpu/atomic mode switching > and reference killing are dedoupled. In preparation, do the following > renames. > > * percpu_ref->confirm_kill-> percpu_ref->confirm_switch > *

Re: [PATCH 3/9] percpu_ref: replace pcpu_ prefix with percpu_

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:12AM -0400, Tejun Heo wrote: > percpu_ref uses pcpu_ prefix for internal stuff and percpu_ for > externally visible ones. This is the same convention used in the > percpu allocator implementation. It works fine there but percpu_ref > doesn't have too much

Re: [PATCH 2/9] percpu_ref: minor code and comment updates

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:11AM -0400, Tejun Heo wrote: > * Some comments became stale. Updated. > * percpu_ref_tryget() unnecessarily initializes @ret. Removed. > * A blank line removed from percpu_ref_kill_rcu(). > * Explicit function name in a WARN format string replaced with __func__. > *

Re: [PATCH v2] et131x: Promote staging et131x driver to drivers/net

2014-09-23 Thread Joe Perches
On Tue, 2014-09-23 at 21:05 +0100, Mark Einon wrote: > This patch moves the et131x gigabit ethernet driver from drivers/staging > to drivers/net/ethernet/agere. checkpatch type modification you might consider: Reduce logging line count by consolidating repeated dev_warn Use ether_addr_copy Line

Re: FIX MES in init.c

2014-09-23 Thread John David Anglin
On 9/23/2014 4:48 PM, Helge Deller wrote: The FIXME: is misleading. It should maybe better read "HINT:" or something like that. Trivially it's basically just casting the symbol so that the compiler will produce the correct code later on. There is nothing you could try to "fix". Why not just

Re: [PATCH 1/9] percpu_ref: relocate percpu_ref_reinit()

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:10AM -0400, Tejun Heo wrote: > percpu_ref is gonna go through restructuring. Move > percpu_ref_reinit() after percpu_ref_kill_and_confirm(). This will > make later changes easier to follow and result in cleaner > organization. > > Signed-off-by: Tejun Heo > Cc:

[PATCH v2] pinctrl: qcom: use restart_notifier mechanism for ps_hold

2014-09-23 Thread Josh Cartwright
By converting to the restart_notifier mechanism for restart, we allow for other mechanisms, like the watchdog, to be used for restart in the case where PS_HOLD has failed to reset the chip. Since this mechanism may be one of several mechanisms registered, change the post-ps_hold write timeout to

Re: [PATCH v2 0/3] PCI/MSI: Remove arch_msi_check_device()

2014-09-23 Thread Bjorn Helgaas
On Sun, Sep 07, 2014 at 08:57:52PM +0200, Alexander Gordeev wrote: > Hello, > > This is a cleanup effort to get rid of arch_msi_check_device() function. > > I am sending v2 series, since kbuild for v1 reports compile errors on > ppc4xx and Armada 370. Still, I have not checked the fixes on these

Re: [PATCH v2 04/13] powerpc/powernv: Convert/move set_bypass() callback to take_ownership()

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 13:00 +1000, Alexey Kardashevskiy wrote: > At the moment the iommu_table struct has a set_bypass() which enables/ > disables DMA bypass on IODA2 PHB. This is exposed to POWERPC IOMMU code > which calls this callback when external IOMMU users such as VFIO are > about to get

Re: [PATCH v13 0/9] Per-user clock constraints

2014-09-23 Thread Stephen Boyd
On 09/23/14 11:40, Tomeu Vizoso wrote: > Hello, > > this version of the patchset addresses some issues that Russell pointed out > yesterday: > > * Refactor the changes to clkdev.c to reduce the amount of ifdefs. > > * Properly release clocks when there isn't enough memory to create the > per-user

Re: [PATCH 1/9] percpu_ref: relocate percpu_ref_reinit()

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:10AM -0400, Tejun Heo wrote: > percpu_ref is gonna go through restructuring. Move > percpu_ref_reinit() after percpu_ref_kill_and_confirm(). This will > make later changes easier to follow and result in cleaner > organization. > > Signed-off-by: Tejun Heo > Cc:

Re: [PATCH RESEND v3 5/6] AHCI: Optimize single IRQ interrupt processing

2014-09-23 Thread Tejun Heo
Hello, Alexander. On Sun, Sep 21, 2014 at 03:19:28PM +0200, Alexander Gordeev wrote: > Split interrupt service routine into hardware context handler > and threaded context handler. That allows to protect ports with > individual locks rather than with a single host-wide lock and > move port

Re: [PATCH v2 3/3] PCI/MSI: Remove arch_msi_check_device()

2014-09-23 Thread Bjorn Helgaas
On Sun, Sep 07, 2014 at 08:57:55PM +0200, Alexander Gordeev wrote: > There are no archs that override arch_msi_check_device() > hook. Remove it as it is completely redundant. > > If an arch would need to check MSI/MSI-X possibility for a > device it should make it within arch_setup_msi_irqs()

Re: mmotm 2014-09-22-16-57 uploaded

2014-09-23 Thread Guenter Roeck
OR: "fc_get_event_number" [drivers/scsi/libfc/libfc.ko] undefined! > > ERROR: "skb_trim" [drivers/scsi/libfc/libfc.ko] undefined! > > ERROR: "fc_host_post_event" [drivers/scsi/libfc/libfc.ko] undefined! > > > > [and many more] > > I h

Re: [PATCH RESEND v3 2/6] AHCI: Move host activation code into ahci_host_activate()

2014-09-23 Thread Tejun Heo
On Tue, Sep 23, 2014 at 04:22:47PM -0400, Tejun Heo wrote: > On Sun, Sep 21, 2014 at 03:19:25PM +0200, Alexander Gordeev wrote: > > Currently host activation done by calling either function > > ahci_host_activate() or ata_host_activate(). Consolidate > > the code by only calling

[GIT PULL] Final block fixes for 3.17

2014-09-23 Thread Jens Axboe
Hi Linus, This week and last we've been fixing some corner cases related to blk-mq, mostly. I ended up pulling most of that out of for-linus yesterday, which is why the branch looks fresh. The rest were postponed for 3.18. This pull request contains: - Fix from Christoph, avoiding a stack

Re: [PATCH] mm, debug: mm-introduce-vm_bug_on_mm-fix-fix.patch

2014-09-23 Thread Andrew Morton
On Tue, 23 Sep 2014 12:19:49 -0400 valdis.kletni...@vt.edu wrote: > On Tue, 23 Sep 2014 13:28:48 +0200, Michal Hocko said: > > And there is another one hitting during randconfig. The patch makes my > > eyes bleed > > Amen. But I'm not seeing a better fix either. > > > #if

Re: FIX MES in init.c

2014-09-23 Thread Helge Deller
Hi Nick, On 09/22/2014 09:24 PM, nick wrote: Greetings James and Other Maintainers of the Parisc Architecture, I am wondering about two fix mes in init.c and how to fix them for being const declared into actual variables. ... /* FIXME: This is 'const' in order to trick the compiler

Re: [PATCH 2/5] media: v4l2-core changes to use media tuner token api

2014-09-23 Thread Shuah Khan
Hi Devin/Mauro/Hans, Summarizing the discussion on v4l to keep others on this thread in the loop. Please see below: Hans! Could you please take a look and see if it raises any red flags for you. On 09/23/2014 08:17 AM, Devin Heitmueller wrote: > > We can always start with coarse locking on

Re: ACPI/i915: Cannot configure display brightness on Dell Latitude E6440

2014-09-23 Thread Pali Rohár
On Tuesday 23 September 2014 22:31:31 you wrote: > Hi, > > On 09/23/2014 10:06 PM, Pali Rohár wrote: > > Hello, > > > > after big changes in acpi video/i915 code I cannot change > > display brightness on my Dell Latitude E6440 with kernel > > 3.17-rc6. With kernel 3.13 everything worked fine. >

[PATCH v4 3/3] power: gpio-charger: do not use gpio value directly

2014-09-23 Thread Heiko Stuebner
From: Heiko Stuebner Some gpio implementations return interesting values for gpio_get_value when the value is not 0 - as seen on a imx6sl board. Therefore do not use the value returned from gpio_get_value directly but simply check for 0 or not 0. Signed-off-by: Heiko Stuebner Reviewed-by: Doug

Re: [PATCH 0/7] Silence even more W=2 warnings

2014-09-23 Thread Rustad, Mark D
On Sep 23, 2014, at 11:44 AM, Borislav Petkov wrote: > On Tue, Sep 23, 2014 at 05:24:22PM +, Rustad, Mark D wrote: >> Yes, but I think there are a few cases where it could be helpful. When >> there is something exceptional that will throw a warning. In one of the >> patches that Jeff sent, I

Re: [GIT PULL] x86 fixes

2014-09-23 Thread Matt Fleming
On Tue, 23 Sep, at 01:21:13PM, Josh Boyer wrote: > > All of the machines that were broken and subsequently fixed by reverting > the EFI GOT change still boot fine with this patch. That includes the > macbook and SB enabled machines. > > So results as expected. Thanks. Great, thanks Josh. I'm

[PATCH v4 1/3] dt-bindings: document gpio-charger bindings

2014-09-23 Thread Heiko Stuebner
From: Heiko Stuebner This documents the binding for the gpio-charger power-supply. Signed-off-by: Heiko Stuebner Reviewed-by: Doug Anderson --- .../bindings/power_supply/gpio-charger.txt | 27 ++ 1 file changed, 27 insertions(+) create mode 100644

[PATCH v4 0/3] gpio-charger: add devicetree support

2014-09-23 Thread Heiko Stuebner
This series adds devicetree support to the gpio-charger and fixes a small issue with the return value of gpio_get_value. changes since v3: - remove of_match_ptr. All used of_xx function have stubs for !OF and of_device_id also is always defined, so no need for of_match_ptr changes since v2: -

[PATCH v4 2/3] power: gpio-charger: add device tree support

2014-09-23 Thread Heiko Stuebner
From: Heiko Stuebner Add the ability to parse gpio-charger data from a devicetree node. Signed-off-by: Heiko Stuebner Reviewed-by: Doug Anderson Tested-by: Doug Anderson --- drivers/power/gpio-charger.c | 72 ++-- 1 file changed, 70 insertions(+), 2

Re: [PATCH v2 03/13] powerpc/spapr: vfio: Implement spapr_tce_iommu_ops

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 13:00 +1000, Alexey Kardashevskiy wrote: > Modern IBM POWERPC systems support multiple IOMMU tables per PE > so we need a more reliable way (compared to container_of()) to get > a PE pointer from the iommu_table struct pointer used in IOMMU functions. > > At the moment IOMMU

Re: mmotm 2014-09-22-16-57 uploaded

2014-09-23 Thread Randy Dunlap
On 09/23/14 12:02, Guenter Roeck wrote: > On Mon, Sep 22, 2014 at 05:02:56PM -0700, a...@linux-foundation.org wrote: >> The mm-of-the-moment snapshot 2014-09-22-16-57 has been uploaded to >> >>http://www.ozlabs.org/~akpm/mmotm/ >> >> mmotm-readme.txt says >> >> README for mm-of-the-moment: >>

Re: mmotm 2014-09-22-16-57 uploaded

2014-09-23 Thread Guenter Roeck
On Tue, Sep 23, 2014 at 01:01:28PM -0700, Andrew Morton wrote: > On Tue, 23 Sep 2014 12:02:22 -0700 Guenter Roeck wrote: > > > On Mon, Sep 22, 2014 at 05:02:56PM -0700, a...@linux-foundation.org wrote: > > > The mm-of-the-moment snapshot 2014-09-22-16-57 has been uploaded to > > > > > >

Re: [PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-23 Thread Stephen Boyd
On 09/23/14 10:45, Kumar Gala wrote: > On Sep 23, 2014, at 12:42 PM, Stephen Boyd wrote: > >> On 09/23/14 09:47, Kumar Gala wrote: >>> On Sep 22, 2014, at 5:36 PM, Stephen Boyd wrote: >>> The secure environment only runs in little-endian mode, so any buffers shared with the secure

Re: ACPI/i915: Cannot configure display brightness on Dell Latitude E6440

2014-09-23 Thread Hans de Goede
Hi, On 09/23/2014 10:06 PM, Pali Rohár wrote: Hello, after big changes in acpi video/i915 code I cannot change display brightness on my Dell Latitude E6440 with kernel 3.17-rc6. With kernel 3.13 everything worked fine. More information about this problem: For configuring brightness on Dell

Re: Stupid NVIDIA 3D vgaarb.c patch

2014-09-23 Thread Benjamin Herrenschmidt
On Mon, 2014-09-22 at 13:43 -0700, Linus Torvalds wrote: > Adding proper people and mailing lists.. > > The PCI_CLASS_DISPLAY_VGA test goes back to the very beginning by > BenH, and I have no idea if adding PCI_CLASS_DISPLAY_3D is > appropriate, but hopefully somebody does. The fact that it makes

Re: [RFC PATCH v2 07/16] gpio: Add support for unified device properties interface

2014-09-23 Thread Rafael J. Wysocki
On Tuesday, September 23, 2014 06:26:07 PM Arnd Bergmann wrote: > On Tuesday 23 September 2014 18:25:01 Rafael J. Wysocki wrote: > > The problem is iteration over child nodes of a given one where there > > may not be struct device objects. > > > > For example (from patch [2/16]): > > > > +int

Re: [PATCH RESEND v3 3/6] AHCI: Make few function names more descriptive

2014-09-23 Thread Tejun Heo
On Sun, Sep 21, 2014 at 03:19:26PM +0200, Alexander Gordeev wrote: > Signed-off-by: Alexander Gordeev > Cc: linux-...@vger.kernel.org > --- > drivers/ata/ahci.c| 7 +++ > drivers/ata/ahci.h| 6 +++--- > drivers/ata/libahci.c | 16 > 3 files changed, 14

Re: [PATCH RESEND v3 2/6] AHCI: Move host activation code into ahci_host_activate()

2014-09-23 Thread Tejun Heo
On Sun, Sep 21, 2014 at 03:19:25PM +0200, Alexander Gordeev wrote: > Currently host activation done by calling either function > ahci_host_activate() or ata_host_activate(). Consolidate > the code by only calling ahci_host_activate() for all AHCI > devices. > > Signed-off-by: Alexander Gordeev >

Re: [PATCH RESEND v3 1/6] AHCI: Cleanup checking of multiple MSIs/SLM modes

2014-09-23 Thread Tejun Heo
On Sun, Sep 21, 2014 at 03:19:24PM +0200, Alexander Gordeev wrote: > Sharing Last Message (SLM) mode is currently checked in two > functions: ahci_host_activate() and ahci_init_interrupts(). > This update consolidates SLM mode check with activation of > multiple MSIs mode. > > Signed-off-by:

[PATCH v12 05/12] PCI: OF: Fix the conversion of IO ranges into IO resources.

2014-09-23 Thread Liviu Dudau
The ranges property for a host bridge controller in DT describes the mapping between the PCI bus address and the CPU physical address. The resources framework however expects that the IO resources start at a pseudo "port" address 0 (zero) and have a maximum size of IO_SPACE_LIMIT. The conversion

[PATCH v12 09/12] OF: PCI: Add support for parsing PCI host bridge resources from DT

2014-09-23 Thread Liviu Dudau
Provide a function to parse the PCI DT ranges that can be used to create a pci_host_bridge structure together with its associated bus. Cc: Bjorn Helgaas Cc: Arnd Bergmann Cc: Grant Likely Cc: Rob Herring Cc: Catalin Marinas Signed-off-by: Liviu Dudau [make io_base parameter optional]

Re: [RFC PATCH linux-next] et131x: Promote staging et131x driver to drivers/net

2014-09-23 Thread Francois Romieu
Joe Perches : > On Tue, 2014-09-23 at 21:02 +0200, Francois Romieu wrote: [...] > > How about kernel tinification ? > > The tiny case where a large number of ethernet drivers are included? No. A couple of bytes here and there vs a cosmetic kernel wide change. -- Ueimor -- To unsubscribe from

[PATCH v12 02/12] PCI: Introduce helper functions to deal with PCI I/O ranges.

2014-09-23 Thread Liviu Dudau
Some architectures do not have a simple view of the PCI I/O space and instead use a range of CPU addresses that map to bus addresses. For some architectures these ranges will be expressed by OF bindings in a device tree file. This patch introduces a pci_register_io_range() helper function with a

Re: mmotm 2014-09-22-16-57 uploaded

2014-09-23 Thread Fabio Estevam
ation of >> function 'kmalloc' >> drivers/media/platform/coda/coda-bit.c: In function >> 'coda_alloc_framebuffers': >> drivers/media/platform/coda/coda-bit.c:312:3: error: implicit declaration of >> function 'kfree' > > That's odd - it includes slab.h. Cc Fabi

Re: [PATCH] mm, debug: mm-introduce-vm_bug_on_mm-fix-fix.patch

2014-09-23 Thread Dave Jones
On Tue, Sep 23, 2014 at 01:28:48PM +0200, Michal Hocko wrote: > And there is another one hitting during randconfig. The patch makes my > eyes bleed but I don't know about other way without breaking out the > thing into separate parts sounds worse because we can mix with other > messages then.

[PATCH v12 08/12] PCI: OF: Introduce helper function for retrieving PCI domain numbers

2014-09-23 Thread Liviu Dudau
Add pci_get_new_domain_nr() to allocate a new domain number and of_get_pci_domain_nr() to retrieve the PCI domain number of a given device from DT. Host bridge drivers or architecture specific code can choose to implement their PCI domain number policy using these two functions. Using

[PATCH v12 04/12] PCI: OF: Move of_pci_range_to_resources() into address.c

2014-09-23 Thread Liviu Dudau
The ranges property for a host bridge controller in DT describes the mapping between the PCI bus address and the CPU physical address. The resources framework however expects that the IO resources start at a pseudo "port" address 0 (zero) and have a maximum size of IO_SPACE_LIMIT. The conversion

Re: [RFC PATCH v2 07/16] gpio: Add support for unified device properties interface

2014-09-23 Thread Rafael J. Wysocki
On Tuesday, September 23, 2014 09:17:24 AM Dmitry Torokhov wrote: > On Tue, Sep 23, 2014 at 06:52:02PM +0300, Mika Westerberg wrote: > > On Tue, Sep 23, 2014 at 05:45:57PM +0200, Arnd Bergmann wrote: > > > On Tuesday 23 September 2014 17:25:50 Linus Walleij wrote: > > > > On Tue, Sep 16, 2014 at

serial console broken in v3.17-rc6 ?

2014-09-23 Thread Helge Deller
During the release cycle of v3.17 I've seen sometimes a broken serial console output on the parisc platform. Interestingly all kernel messages printed by the kernel via printk() show up correctly, but output from userspace (e.g. by the init process during boot) show up as random bytes. Since

[PATCH v12 12/12] arm64: Add architectural support for PCIe

2014-09-23 Thread Liviu Dudau
Use the generic PCI domain and OF functions to provide support for PCI Express on arm64. Acked-by: Catalin Marinas Signed-off-by: Liviu Dudau --- arch/arm64/Kconfig | 22 - arch/arm64/include/asm/Kbuild| 1 + arch/arm64/include/asm/io.h | 3 +-

ACPI/i915: Cannot configure display brightness on Dell Latitude E6440

2014-09-23 Thread Pali Rohár
Hello, after big changes in acpi video/i915 code I cannot change display brightness on my Dell Latitude E6440 with kernel 3.17-rc6. With kernel 3.13 everything worked fine. More information about this problem: For configuring brightness on Dell laptops there are 4 ways: 1) via acpi video

[PATCH v2] et131x: Promote staging et131x driver to drivers/net

2014-09-23 Thread Mark Einon
set http://marc.info/?l=linux-driver-devel=141150128909523=2 -v2 patch formatted with '-M' git-format-patch flag ** Patch applies and tested on linux-next tag next-20140923, on top of the 8 patches at http://marc.info/?l=linux-driver-devel=141141591110262=2 and the four patches linked above. Post

[PATCH v12 00/12] Support for creating generic PCI host bridges from DT

2014-09-23 Thread Liviu Dudau
This is my version 12 of the attempt at adding support for generic PCI host bridge controllers that make use of device tree information to configure themselves. It contains cleanups to address comments posted for v11. Bjorn intends to pull this series into his tree and send it to linux-next if no

[PATCH v12 07/12] PCI: Introduce generic domain handling for PCI busses.

2014-09-23 Thread Liviu Dudau
From: Catalin Marinas The handling of PCI domains (or PCI segments in ACPI speak) is usually a straightforward affair but its implementation is currently left to the architectural code, with pci_domain_nr(b) querying the value of the domain associated with bus b. This patch introduces

Re: [PATCH 3/4] tty: omap-serial: use threaded interrupt handler

2014-09-23 Thread Frans Klaver
On Tue, Sep 23, 2014 at 8:38 PM, Tony Lindgren wrote: > * Frans Klaver [140923 11:12]: >> On 23 September 2014 19:17:20 CEST, Peter Hurley >> wrote: >> > >> >I would've thought the first 2 patches had already been picked up >> >because >> >they fix div-by-zero faults. >> >> I've had no

[PATCH v12 11/12] PCI: Introduce pci_remap_iospace() for remapping PCI I/O bus resources into CPU space

2014-09-23 Thread Liviu Dudau
Introduce a default implementation for remapping PCI bus I/O resources onto the CPU address space. Architectures with special needs may provide their own version, but most should be able to use this one. This function is useful for PCI host bridge drivers that need to map the PCI I/O resources

[PATCH v12 06/12] PCI: Create pci_host_bridge before its associated bus in pci_create_root_bus.

2014-09-23 Thread Liviu Dudau
Before commit 7b5436635800 the pci_host_bridge was created before the root bus. As that commit has added a needless dependency on the bus for pci_alloc_host_bridge() the creation order has been changed for no good reason. Revert the order of creation as we are going to depend on the

Re: mmotm 2014-09-22-16-57 uploaded

2014-09-23 Thread Andrew Morton
On Tue, 23 Sep 2014 12:02:22 -0700 Guenter Roeck wrote: > On Mon, Sep 22, 2014 at 05:02:56PM -0700, a...@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2014-09-22-16-57 has been uploaded to > > > >http://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > >

Re: [PATCH V2] i2c-designware: Add Intel Baytrail PMIC I2C bus support

2014-09-23 Thread David E. Box
Hi Maxime, On Tue, Sep 23, 2014 at 09:00:57PM +0200, Maxime Ripard wrote: > Hi David, > > On Tue, Sep 23, 2014 at 11:40:26AM -0700, David E. Box wrote: > > This patch implements an I2C bus sharing mechanism between the host and > > platform > > hardware on select Intel BayTrail SoC platforms

[PATCH v12 01/12] Fix ioport_map() for !CONFIG_GENERIC_IOMAP cases.

2014-09-23 Thread Liviu Dudau
The inline version of ioport_map() that gets used when !CONFIG_GENERIC_IOMAP is wrong. It returns a mapped (i.e. virtual) address that can start from zero and completely ignores the PCI_IOBASE and IO_SPACE_LIMIT that most architectures that use !CONFIG_GENERIC_MAP define. Signed-off-by: Liviu

[PATCH 1/2] tty: omap-serial: pull out calculation from baud_is_mode16

2014-09-23 Thread Frans Klaver
To determine the correct divisor, we need to know the difference between the desired baud rate and the actual baud rate. The calculation for this difference is implemented twice within omap_serial_baud_is_mode16(). Pull out the calculation for easier maintenance. Signed-off-by: Frans Klaver ---

Re: x86, microcode: BUG: microcode update that changes x86_capability

2014-09-23 Thread Borislav Petkov
On Fri, Sep 19, 2014 at 01:42:17PM -0300, Henrique de Moraes Holschuh wrote: > 1. offline a "guinea pig" group of "cpus", i.e. an entire "microcode update > unit" that doesn't include the BSP. This is going to be a pain, as what > composes a "microcode update unit" is not set in stone, and could

[PATCH 0/2] Fix a division by zero

2014-09-23 Thread Frans Klaver
Hi Greg, Here's a couple of patches that fix a divison by zero in omap-serial.c. One's a cleanup, the other the actual fix. Thanks, Frans Frans Klaver (2): tty: omap-serial: pull out calculation from baud_is_mode16 tty: omap-serial: fix a division by zero drivers/tty/serial/omap-serial.c

[PATCH 2/2] tty: omap-serial: fix a division by zero

2014-09-23 Thread Frans Klaver
If the chosen baud rate is large enough (e.g. 3.5 megabaud), the calculated n values in calculate_baud_abs_diff may become 0. This causes a division by zero when calculating the difference between calculated and desired baud rates. To prevent this, cap n on 1. Division by zero in kernel. []

[PATCH v12 03/12] ARM: Define PCI_IOBASE as the base of virtual PCI IO space.

2014-09-23 Thread Liviu Dudau
This is needed for calls into OF code that parses PCI ranges. It signals support for memory mapped PCI I/O accesses that are described be device trees. Cc: Russell King Cc: Rob Herring Reviewed-by: Catalin Marinas Acked-by: Arnd Bergmann Signed-off-by: Liviu Dudau ---

[PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-23 Thread Liviu Dudau
If the firmware has not assigned all the bus resources and we are not just probing the PCIe busses, it makes sense to assign the unassigned resources in pci_scan_root_bus(). Cc: Bjorn Helgaas Cc: Arnd Bergmann Cc: Jason Gunthorpe Cc: Rob Herring Signed-off-by: Liviu Dudau ---

[PATCH v2 2/3] tools: adding clean target to user selftest

2014-09-23 Thread Peter Feiner
Gets rid of this error when running 'make clean' in the selftests directory: make[1]: Entering directory `.../tools/testing/selftests/user' make[1]: *** No rule to make target `clean'. Stop. --- v1 -> v2: Separated this from the parallel build patch. ---

[PATCH v2 1/3] tools: add .gitignore entries for selftests

2014-09-23 Thread Peter Feiner
Ignore the binaries built for selftests in 'git status' output to make development more pleasant. Without this patch, you see tools/testing/selftests/breakpoints/breakpoint_test tools/testing/selftests/efivarfs/create-read tools/testing/selftests/efivarfs/open-unlink

[PATCH v2 0/3] tools: selftests cleanup

2014-09-23 Thread Peter Feiner
A couple of small patches to make working with selftests easier. v1 -> v2: Addressed Shuah's comments. Peter Feiner (3): tools: add .gitignore entries for selftests tools: adding clean target to user selftest tools: parallel selftests building & running

[PATCH v2 3/3] tools: parallel selftests building & running

2014-09-23 Thread Peter Feiner
Now make -jN builds and runs selftests in parallel. Also, if one selftest fails to build or run, make will return an error, whereas before the error was ignored. Signed-off-by: Peter Feiner --- v1 -> v2: Moved fix for missing 'make clean' target into separate patch. ---

Re: [PATCH] mmc: rtsx: add card power off during probe

2014-09-23 Thread Adrian Hunter
On 23/09/2014 12:20 p.m., Ulf Hansson wrote: On 22 September 2014 12:09, Roger Tseng wrote: On Thu, 2014-09-18 at 23:14 +0200, Ulf Hansson wrote: [...] In that case, don't forget to enable MMC_CAP2_FULL_PWR_CYCLE. if MMC_CAP2_NO_PRESCAN_POWERUP enable, will call mmc_power_off() at

Re: [PATCH block/for-3.17-fixes/core] blk-mq, percpu_ref: implement a kludge for SCSI blk-mq stall during probe

2014-09-23 Thread Tejun Heo
Oops, I forgot to cc Kent. Kent, the patch is at http://lkml.kernel.org/g/20140923192432.ga24...@mtj.dyndns.org On Tue, Sep 23, 2014 at 01:29:03PM -0600, Jens Axboe wrote: > The hack looks fine to me, if it passes Christophs boot stall test. The > hack isn't THAT nasty, since you already have

Re: [RFC][PATCH] sched,mips,ia64: Remove __ARCH_WANT_UNLOCKED_CTXSW

2014-09-23 Thread Guenter Roeck
On Tue, Sep 23, 2014 at 05:06:41PM +0200, Peter Zijlstra wrote: > On Mon, Sep 22, 2014 at 10:36:18PM +0400, Kirill Tkhai wrote: > > From: Kirill Tkhai > > > > Architectures, which define __ARCH_WANT_UNLOCKED_CTXSW, > > may pull a task when it's in the middle of schedule(). > > > > CPU1(task1

[GIT PULL] parisc fixes for v3.17

2014-09-23 Thread Helge Deller
Hi Linus, please pull a few late fixes for the parisc architecture for kernel 3.17 from git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.17-7 We avoid using -mfast-indirect-calls for 64bit kernel builds to prevent building an unbootable kernel due to latest gcc

Re: [PATCH 3/3] tools: parallel selftests building & running

2014-09-23 Thread Shuah Khan
On 09/23/2014 01:05 PM, Peter Feiner wrote: > Now make -jN builds and runs selftests in parallel. Also, if one > selftest fails to build or run, make will return an error, whereas > before the error was ignored. > > Also added missing clean target to user/Makefile so 'make clean' doesn't fail. >

[PATCH 3/4] staging: et131x: Add space after { in pci ID table

2014-09-23 Thread Mark Einon
Signed-off-by: Mark Einon --- drivers/staging/et131x/et131x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 6539a8a..10f20b3 100644 --- a/drivers/staging/et131x/et131x.c +++

[PATCH 1/4] staging: et131x: zero allocation of fbr to prevent random address access

2014-09-23 Thread Mark Einon
If et131x_rx_dma_memory_alloc() allocates rx_ring->fbr[0] but fails to allocate rx_ring->fbr[1], this leaves fbr[0]->ring_virtaddr with the possibility of being accessed in et131x_rx_dma_memory_free() as it contains a random value, potentially causing an oops. Fix this by zeroing the fbr memory

[PATCH 4/4] staging: et131x: Remove unnecessary defines to enable driver PM

2014-09-23 Thread Mark Einon
The Power Management functions can be conditional by assigning pm ops directly to .driver.pm, instead of using #ifdef's, saving some lines of code. Reported-by: Tobias Klauser Signed-off-by: Mark Einon --- drivers/staging/et131x/et131x.c | 7 ++- 1 file changed, 2 insertions(+), 5

[PATCH 2/4] staging: et131x: don't cast a void* to a struct pointer

2014-09-23 Thread Mark Einon
Casting a void* popinter to a struct pointer is unnecessary, don't do it. Signed-off-by: Mark Einon --- drivers/staging/et131x/et131x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 2889f86..6539a8a

Re: [PATCH 2/3] tools: fix warning in memfd_test

2014-09-23 Thread Shuah Khan
On 09/23/2014 01:05 PM, Peter Feiner wrote: > No arguments given after printf format string with "%s" conversion. > > Signed-off-by: Peter Feiner > > --- Please drop this one from the series. It is merged into linux-next (in linux-kselfest fixes branch) queued for next merge window. thanks,

[patch] drivers/rtc/rtc-bq32k.c fix warnings I introduced

2014-09-23 Thread Pavel Machek
Sorry about that, I somehow failed to notice rather severe warnings. Signed-off-by: Pavel Machek diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c index 4c24fb0..c02e246 100644 --- a/drivers/rtc/rtc-bq32k.c +++ b/drivers/rtc/rtc-bq32k.c @@ -132,9 +132,7 @@ static const struct

Re: [PATCH 1/3] tools: add .gitignore entries for selftests

2014-09-23 Thread Shuah Khan
On 09/23/2014 01:05 PM, Peter Feiner wrote: > Signed-off-by: Peter Feiner > --- Please add a change log describing what this does and why it is needed. I know what you trying to fix, and that is a good one, but would like a log with the patch. thanks, -- Shuah -- Shuah Khan Sr. Linux Kernel

[PATCH] gpio, bcm-kona, LLVMLinux: Remove use of __initconst

2014-09-23 Thread behanw
From: Behan Webster The __initconst is in the wrong place, and when moved to the correct place it uncovers an error where the variable is used by non-init data structures. Instead merely make them const and put the const in the right spot. Signed-off-by: Behan Webster Reviewed-by: Mark

Re: [PATCH block/for-3.17-fixes/core] blk-mq, percpu_ref: implement a kludge for SCSI blk-mq stall during probe

2014-09-23 Thread Jens Axboe
On 09/23/2014 01:24 PM, Tejun Heo wrote: > blk-mq uses percpu_ref for its usage counter which tracks the number > of in-flight commands and used to synchronously drain the queue on > freeze. percpu_ref shutdown takes measureable wallclock time as it > involves a sched RCU grace period. This

[PATCH] kbuild, LLVMLinux: Add -Werror to cc-option to support clang

2014-09-23 Thread behanw
From: Mark Charlebois Clang will warn about unknown warnings but will not return false unless -Werror is set. GCC will return false if an unknown warning is passed. Adding -Werror make both compiler behave the same. Signed-off-by: Mark Charlebois Signed-off-by: Behan Webster Reviewed-by:

[PATCH] kbuild, LLVMLinux: Fix asm-offset generation to work with clang

2014-09-23 Thread behanw
From: Behan Webster When using clang with -no-integerated-as clang will use the gnu assembler instead of the integrated assembler. However clang will still perform asm error checking before sending the inline assembly language to gas. The generation of asm-offsets from within C code is

Re: [RFC PATCH net-next v2 0/5] netns: allow to identify peer netns

2014-09-23 Thread Andy Lutomirski
On Tue, Sep 23, 2014 at 6:20 AM, Nicolas Dichtel wrote: > The goal of this serie is to be able to multicast netlink messages with an > attribute that identify a peer netns. > This is needed by the userland to interpret some informations contained in > netlink messages (like IFLA_LINK value, but

Re: [PATCH] aarch64: filter $x from kallsyms

2014-09-23 Thread Rusty Russell
Kyle McMartin writes: > Similar to ARM, AArch64 is generating $x and $d syms... which isn't > terribly helpful when looking at %pF output and the like. Filter those > out in kallsyms, modpost and when looking at module symbols. > > Seems simplest since none of these check EM_ARM anyway, to just

Re: [PATCH] spi: qup: Fix incorrect block transfers

2014-09-23 Thread Andy Gross
On Tue, Sep 23, 2014 at 12:24:27PM +0300, Ivan T. Ivanov wrote: > > Hi Andy, > > On Sun, 2014-09-21 at 23:27 -0500, Andy Gross wrote: > > This patch fixes a number of errors with the QUP block transfer mode. > > Errors > > manifested themselves as input underruns, output overruns, and timed

[PATCH block/for-3.17-fixes/core] blk-mq, percpu_ref: implement a kludge for SCSI blk-mq stall during probe

2014-09-23 Thread Tejun Heo
blk-mq uses percpu_ref for its usage counter which tracks the number of in-flight commands and used to synchronously drain the queue on freeze. percpu_ref shutdown takes measureable wallclock time as it involves a sched RCU grace period. This means that draining a blk-mq takes measureable

Re: [RFC PATCH net-next v2 0/5] netns: allow to identify peer netns

2014-09-23 Thread Cong Wang
On Tue, Sep 23, 2014 at 6:20 AM, Nicolas Dichtel wrote: > > Here is a small screenshot to show how it can be used by userland: > $ ip netns add foo > $ ip netns del foo > $ ip netns > $ touch /var/run/netns/init_net > $ mount --bind /proc/1/ns/net /var/run/netns/init_net > $ ip netns add foo > $

[PATCH v2] soc: qcom: do not disable the iface clock in probe

2014-09-23 Thread Srinivas Kandagatla
since commit 31964ffebbb9 ("tty: serial: msm: Remove direct access to GSBI")' serial hangs if earlyprintk are enabled. This hang is noticed only when the GSBI driver is probed and all the earlyprintks before gsbi probe are seen on the console. The reason why it hangs is because GSBI driver

Re: [RFC PATCH linux-next] et131x: Promote staging et131x driver to drivers/net

2014-09-23 Thread Joe Perches
On Tue, 2014-09-23 at 21:02 +0200, Francois Romieu wrote: > Mark Einon : > [...] > > > No need for the #define here, just assigne et131x_pm_ops to .driver.pm > > > directly, its members will be NULL and thus never called. Also, you can > > > make et131x_pm_ops const. > > > > Ok, I can change

[PATCH v2] usb: core: downgrade log severity to info when descriptor unavailable

2014-09-23 Thread Scot Doyle
According to commit 0cce2eda19923e5e5ccc8b042dec5af87b3ffad0 USB: fix LANGID=0 regression usb devices are not required to report string descriptors. Since they are optional, log an info message instead of an error message. Signed-off-by: Scot Doyle --- drivers/usb/core/message.c | 8

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