[GIT PULL] Remove weak function declarations

2014-10-23 Thread Bjorn Helgaas
Hi Linus, Here are some changes to fix possible issues with "weak" functions. They're not PCI-related; I just put them in my tree to get them into linux-next for a few days. I don't have any problem reports for these, so they're just potential issues at this point, but I think it's worth

Re: [PATCH v3 1/5] PM / clock_ops: Add pm_clk_add_clk()

2014-10-23 Thread Dmitry Torokhov
On Thu, Oct 23, 2014 at 07:18:49PM +0300, Grygorii Strashko wrote: > On 10/23/2014 06:49 PM, Dmitry Torokhov wrote: > >On Thu, Oct 23, 2014 at 05:22:58PM +0300, Grygorii Strashko wrote: > >>From: Geert Uytterhoeven > >> > >>The existing pm_clk_add() allows to pass a clock by con_id. However, >

Re: [PATCH] scsi: Resolve some missing-field-initializers warnings

2014-10-23 Thread Christoph Hellwig
Thanks, applied to the core-for-3.19 branch. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH] net: ethernet: realtek: atp: checkpatch errors and warnings corrected

2014-10-23 Thread Roberto Medina
From: Roberto Medina Several warnings and errors of coding style errors corrected. Signed-off-by: Roberto Medina --- drivers/net/ethernet/realtek/atp.h | 242 +++-- 1 file changed, 124 insertions(+), 118 deletions(-) diff --git

Re: [PATCHv5 7/7] usb: dwc2: Update Kconfig to support dual-role

2014-10-23 Thread Paul Bolle
On Thu, 2014-10-23 at 10:05 -0500, Dinh Nguyen wrote: > On 10/22/2014 03:27 PM, Paul Bolle wrote: > > On Tue, 2014-10-21 at 15:47 -0500, Dinh Nguyen wrote: > Well, CONFIG_USB enables the host stack that is needed by the DWC2 > driver, without CONFIG_USB, the DWC2 driver will not be able to build.

Re: [PATCH v2 4/4] pinctrl: rockchip: Protect read-modify-write with the spinlock

2014-10-23 Thread Heiko Stübner
Am Dienstag, 21. Oktober 2014, 10:47:35 schrieb Doug Anderson: > There were a few instances where the rockchip pinctrl driver would do > read-modify-write with no spinlock. Add a spinlock for these cases. > > Signed-off-by: Doug Anderson Reviewed-by: Heiko Stuebner thanks for catching those

Re: [PATCH] usb: serial: Perform verification for FTDI FT232R devices

2014-10-23 Thread Hector Martin
On 23/10/14 23:14, Russ Dill wrote: > On Thu, Oct 23, 2014 at 5:44 AM, Hector Martin wrote: >> + write_eeprom(port, 0, eeprom_data[0]); >> + write_eeprom(port, 1, 0); >> + write_eeprom(port, eeprom_size - 2, eeprom_data[eeprom_size - 2]); >> + write_eeprom(port,

Re: [PATCH v2 1/2] mm: cma: split cma-reserved in dmesg log

2014-10-23 Thread Michal Nazarewicz
On Wed, Oct 22 2014, Pintu Kumar wrote: > When the system boots up, in the dmesg logs we can see > the memory statistics along with total reserved as below. > Memory: 458840k/458840k available, 65448k reserved, 0K highmem > > When CMA is enabled, still the total reserved memory remains the same. >

BPF crash with 3.18-rc1 on arm64 Juno hardware

2014-10-23 Thread Andre Przywara
Hi, I see a crash with 3.18-rc1 on a Juno board related to bpf_jit (see dump below). Userland tries to carry on afterwards, but eventually hangs in RCU stalls. The kernel has just CONFIG_BPF_JIT enabled, I guess Ubuntu enables this automatically if detected. The backtrace doesn't make too much

[RFC] mm: memblock: change default cnt for regions from 1 to 0

2014-10-23 Thread Zubair Lutfullah Kakakhel
The default region counts are set to 1 with a comment saying empty dummy entry. If this is a dummy entry, should this be changed to 0? We have faced this in mips/kernel/setup.c arch_mem_init. cma uses memblock. But even with cma disabled. The for_each_memblock(reserved, reg) goes inside the

Re: [PATCH 06/14] net: dsa: Add support for hardware monitoring

2014-10-23 Thread Andrew Lunn
On Thu, Oct 23, 2014 at 09:27:55AM -0700, Guenter Roeck wrote: > On Thu, Oct 23, 2014 at 03:47:06PM +0200, Andrew Lunn wrote: > > > >>+static DEVICE_ATTR_RO(temp1_input); > > > > > > > >You probably want the number of temperature sensors to come from the > > > >switch driver, and support arbitrary

Re: [PATCH 2/4] mm: cma: Always consider a 0 base address reservation as dynamic

2014-10-23 Thread Michal Nazarewicz
On Thu, Oct 23 2014, Laurent Pinchart wrote: > The fixed parameter to cma_declare_contiguous() tells the function > whether the given base address must be honoured or should be considered > as a hint only. The API considers a zero base address as meaning any > base address, which must never be

Re: [PATCH 4/4] mm: cma: Use %pa to print physical addresses

2014-10-23 Thread Michal Nazarewicz
On Thu, Oct 23 2014, Laurent Pinchart wrote: > Casting physical addresses to unsigned long and using %lu truncates the > values on systems where physical addresses are larger than 32 bits. Use > %pa and get rid of the cast instead. > > Signed-off-by: Laurent Pinchart Acked-by: Michal Nazarewicz

Re: [PATCH v2 1/4] pinctrl: rockchip: Set wake_enabled

2014-10-23 Thread Doug Anderson
Heiko, On Thu, Oct 23, 2014 at 9:43 AM, Heiko Stübner wrote: > Am Dienstag, 21. Oktober 2014, 10:47:32 schrieb Doug Anderson: >> The rockchip pinctrl driver uses irq_gc_set_wake() but doesn't setup >> the .wake_enabled member. That means that we can never actually use a >> pin for wakeup. When

[PATCH 1/1 linux-next] bsg: fix shadow warning in bsg_ioctl()

2014-10-23 Thread Fabian Frederick
directly call scsi_cmd_ioctl() with (void __user *)arg instead of uarg redeclaration. Signed-off-by: Fabian Frederick --- block/bsg.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/block/bsg.c b/block/bsg.c index 276e869..c2f90bd 100644 --- a/block/bsg.c +++

Re: [PATCH 1/4] mm: cma: Don't crash on allocation if CMA area can't be activated

2014-10-23 Thread Michal Nazarewicz
On Thu, Oct 23 2014, Laurent Pinchart wrote: > If activation of the CMA area fails its mutex won't be initialized, > leading to an oops at allocation time when trying to lock the mutex. Fix > this by failing allocation if the area hasn't been successfully actived, > and detect that condition by

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-23 Thread Jason Gunthorpe
On Thu, Oct 23, 2014 at 12:27:31PM +0100, Lorenzo Pieralisi wrote: > I think that by removing that, we could switch to CONFIG_PCI_DOMAINS_GENERIC > on ARM32. I will remove the dependency in drivers/pci/host/pci-mvebu.c > introduced by commit 2613ba48. pci_sys_data.domain is always 0 in that >

Re: [PATCH V2 5/5] cpuidle: menu: Move the update function before its declaration

2014-10-23 Thread Nicolas Pitre
On Thu, 23 Oct 2014, Daniel Lezcano wrote: > In order to prevent a pointless forward declaration, just move the function > at the beginning of the file. > > This patch does not change the behavior of the governor, it is just code > reordering. > > Signed-off-by: Daniel Lezcano Acked-by:

[PATCH v3] block: wrong return value

2014-10-23 Thread Sudip Mukherjee
while compiling integer err was showing as a set but unused variable. elevator_init_fn can be either cfq_init_queue or deadline_init_queue or noop_init_queue. all three of these functions are returning -ENOMEM if they fail to allocate the queue. so we should actually be returning the error code

Re: [PATCH] i8k: Ignore temperature sensors which report invalid values

2014-10-23 Thread Guenter Roeck
On Thu, Oct 23, 2014 at 12:37:34PM +0200, Pali Rohár wrote: > On Wednesday 22 October 2014 19:10:05 Guenter Roeck wrote: > > On Wed, Oct 22, 2014 at 06:35:53PM +0200, Pali Rohár wrote: > > > On Wednesday 22 October 2014 18:19:47 Guenter Roeck wrote: > > > > On Wed, Oct 22, 2014 at 02:29:06PM

Re: [PATCH V2 4/5] cpuidle: menu: Fix the get_typical_interval

2014-10-23 Thread Nicolas Pitre
On Thu, 23 Oct 2014, Daniel Lezcano wrote: > The first time the 'get_typical_function' is called, it computes an average > of zero as no data is filled yet. That leads the 'data->predicted_us' variable > to be set to zero too. > > The caller, 'menu_select' will then do: > >

Re: 3.18.rc1: compile failure in tsc2005.c

2014-10-23 Thread Pavel Machek
Hi! Oops, ignore me, this is part of n900 changes that did not make it to mainline. > > I get this. Before I start patching it, perhaps someone has > > fixed it already? > > > > CC drivers/input/touchscreen/tsc2005.o > > drivers/input/touchscreen/tsc2005.c: In function > >

Re: [RFC PATCH] coredump: fix incomplete core file created when dump_skip was used last

2014-10-23 Thread Oleg Nesterov
On 10/22, Victor Kamensky wrote: > > --- a/fs/coredump.c > +++ b/fs/coredump.c > @@ -664,6 +664,14 @@ void do_coredump(const siginfo_t *siginfo) > if (!dump_interrupted()) { > file_start_write(cprm.file); > core_dumped = binfmt->core_dump(); > +

Re: [PATCH 10/14] net: dsa/mv88e6352: Implement EEPROM access functions

2014-10-23 Thread Guenter Roeck
On Thu, Oct 23, 2014 at 03:54:12PM +0200, Andrew Lunn wrote: > On Wed, Oct 22, 2014 at 09:03:18PM -0700, Guenter Roeck wrote: > > MV88E6352 supports read and write access to its configuration eeprom. > > Hi Guenter > > I don't have the datasheet for the MV88E6352. Is the EEPROM built in, > or

Re: [PATCH v2 1/4] pinctrl: rockchip: Set wake_enabled

2014-10-23 Thread Heiko Stübner
Am Dienstag, 21. Oktober 2014, 10:47:32 schrieb Doug Anderson: > The rockchip pinctrl driver uses irq_gc_set_wake() but doesn't setup > the .wake_enabled member. That means that we can never actually use a > pin for wakeup. When "irq_set_irq_wake()" tries to call through it > will always get a

Re: [PATCH] sysctl: terminate strings also on \r

2014-10-23 Thread Kees Cook
On Wed, Oct 22, 2014 at 7:00 PM, Andrew Morton wrote: > On Wed, 22 Oct 2014 16:43:10 -0700 Kees Cook wrote: > >> On Wed, Oct 22, 2014 at 4:26 PM, Andrew Morton >> wrote: >> > On Tue, 21 Oct 2014 13:21:37 -0700 Kees Cook wrote: >> > >> >> From: Paul Wise >> >> >> >> This partially mitigates a

Re: localed stuck in recent 3.18 git in copy_net_ns?

2014-10-23 Thread Paul E. McKenney
On Thu, Oct 23, 2014 at 12:11:26PM -0400, Josh Boyer wrote: > On Oct 23, 2014 11:37 AM, "Paul E. McKenney" > wrote: > > > > On Thu, Oct 23, 2014 at 05:27:50AM -0700, Paul E. McKenney wrote: > > > On Thu, Oct 23, 2014 at 09:09:26AM +0300, Yanko Kaneti wrote: > > > > On Wed, 2014-10-22 at 16:24

Re: Possible wireless issue introduced in next-20140930

2014-10-23 Thread Larry Finger
hasn't evaporate by then. next-20141023 does not work as well. With commit 38506ecefab911785d5e1aa5889f6eeb462e0954 reverted, kernel blows up very early in boot. Cascardo (CC:) helped me to investigate and it seems that when rtlpriv->cfg->ops->get_btc_status() is called, it is pointing

Re: [PATCH v2 2/4] pinctrl: rockchip: Don't call pinctrl_gpio_direction_output() in pin_config_set()

2014-10-23 Thread Heiko Stübner
Am Dienstag, 21. Oktober 2014, 10:47:33 schrieb Doug Anderson: > The Rockchip pinctrl driver was calling > rockchip_gpio_direction_output() in the pin_config_set() callback. > This was just a shortcut for: > * rockchip_gpio_set() > * pinctrl_gpio_direction_output() > > Unfortunately it's not so

Re: [PATCH v2] block: wrong return value

2014-10-23 Thread Jens Axboe
On 10/23/2014 10:28 AM, Sudip Mukherjee wrote: > On Thu, Oct 23, 2014 at 10:09:36AM -0600, Jens Axboe wrote: >> On 10/23/2014 10:04 AM, Sudip Mukherjee wrote: >>> while compiling integer err was showing as a set but unused variable. >>> elevator_init_fn can be either cfq_init_queue or

[PATCH v2] MAINTAINERS: Add myself as reviewer for Zynq

2014-10-23 Thread Soren Brinkmann
Signed-off-by: Soren Brinkmann --- v2: - I removed the additional 'F' entries MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0484f2c526f0..8b495a27 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1543,6 +1543,7 @@ F:

Re: [PATCH v2] block: wrong return value

2014-10-23 Thread Sudip Mukherjee
On Thu, Oct 23, 2014 at 10:09:36AM -0600, Jens Axboe wrote: > On 10/23/2014 10:04 AM, Sudip Mukherjee wrote: > > while compiling integer err was showing as a set but unused variable. > > elevator_init_fn can be either cfq_init_queue or deadline_init_queue > > or noop_init_queue. > > all three of

Re: [PATCH 1/1 net-next] Bluetooth: fix shadow warning in hci_disconnect()

2014-10-23 Thread Marcel Holtmann
Hi Fabian, > use cpr for hci_cp_read_clock_offset instead of cp > (already defined above). > > Signed-off-by: Fabian Frederick > --- > net/bluetooth/hci_conn.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c >

[PATCH 1/1 linux-next] block: remove struct partition_meta_info from rescan_partitions

2014-10-23 Thread Fabian Frederick
>parts[p].info is directly passed to add_partition(). local info is initialized but unused. Signed-off-by: Fabian Frederick --- block/partition-generic.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/block/partition-generic.c b/block/partition-generic.c index 0d9e5f9..646c0e3 100644 ---

Re: [PATCH 06/14] net: dsa: Add support for hardware monitoring

2014-10-23 Thread Guenter Roeck
On Thu, Oct 23, 2014 at 03:47:06PM +0200, Andrew Lunn wrote: > > >>+static DEVICE_ATTR_RO(temp1_input); > > > > > >You probably want the number of temperature sensors to come from the > > >switch driver, and support arbitrary number of temperature sensors? > > > > In that case we would need the

[PATCH RFC v4 05/17] virtio: add virtio 1.0 feature bit

2014-10-23 Thread Michael S. Tsirkin
Based on original patches by Rusty Russell, Thomas Huth and Cornelia Huck. Note: at this time, we do not negotiate this feature bit in core, drivers have to declare VERSION_1 support explicitly. After all drivers are converted, we will be able to move VERSION_1 to core and drop it from all

Re: [PATCH 1/1 net-next] libceph: remove unused variable in handle_reply()

2014-10-23 Thread Ilya Dryomov
On Thu, Oct 23, 2014 at 8:15 PM, Fabian Frederick wrote: > osdmap_epoch is redundant with reassert_epoch and unused. > > Signed-off-by: Fabian Frederick > --- > net/ceph/osd_client.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c > index

[PATCH RFC v4 01/17] virtio: memory access APIs

2014-10-23 Thread Michael S. Tsirkin
virtio 1.0 makes all memory structures LE, so we need APIs to conditionally do a byteswap on BE architectures. To make it easier to check code statically, add virtio specific types for multi-byte integers in memory. Add low level wrappers that do a byteswap conditionally, these will be useful

[PATCH RFC v4 10/17] virtio: simplify feature bit handling

2014-10-23 Thread Michael S. Tsirkin
Now that we use u64 for bits, we can simply & them together. Signed-off-by: Michael S. Tsirkin --- drivers/virtio/virtio.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index a3df817..0f44cff 100644 ---

[PATCH RFC v4 09/17] virtio: set FEATURES_OK

2014-10-23 Thread Michael S. Tsirkin
set FEATURES_OK as per virtio 1.0 spec Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_config.h | 2 ++ drivers/virtio/virtio.c| 29 ++--- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/include/uapi/linux/virtio_config.h

[PATCH RFC v4 11/17] virtio: add legacy feature table support

2014-10-23 Thread Michael S. Tsirkin
virtio blk has some legacy feature bits that modern drivers must not negotiate, but are needed for old legacy hosts (e.g. that dn't support virtio scsi). Allow a separate legacy feature table for such cases. Signed-off-by: Michael S. Tsirkin --- include/linux/virtio.h | 4

Re: [RFC 1/2] PM / Domains: Power on domain early during system resume

2014-10-23 Thread Grygorii Strashko
Hi Krzysztof, On 10/23/2014 04:48 PM, Krzysztof Kozlowski wrote: > When resuming the system the power domain has to be powered on early so > any runtime PM aware devices could resume. > > This fixes following scenario reproduced on Exynos DRM: > 1. Power domain is off before suspending the

[PATCH RFC v4 03/17] virtio: use u32, not bitmap for struct virtio_device's features

2014-10-23 Thread Michael S. Tsirkin
From: Rusty Russell It seemed like a good idea, but it's actually a pain when we get more than 32 feature bits. Just change it to a u32 for now. Cc: Brian Swetland Cc: Christian Borntraeger Signed-off-by: Rusty Russell Signed-off-by: Cornelia Huck Acked-by: Pawel Moll Acked-by: Ohad

[PATCH RFC v4 04/17] virtio: add support for 64 bit features.

2014-10-23 Thread Michael S. Tsirkin
From: Rusty Russell Change the u32 to a u64, and make sure to use 1ULL everywhere! Cc: Brian Swetland Cc: Christian Borntraeger [Thomas Huth: fix up virtio-ccw get_features] Signed-off-by: Rusty Russell Signed-off-by: Cornelia Huck Acked-by: Pawel Moll Acked-by: Ohad Ben-Cohen

[PATCH RFC v4 08/17] virtio: allow transports to get avail/used addresses

2014-10-23 Thread Michael S. Tsirkin
From: Cornelia Huck For virtio-1, we can theoretically have a more complex virtqueue layout with avail and used buffers not on a contiguous memory area with the descriptor table. For now, it's fine for a transport driver to stay with the old layout: It needs, however, a way to access the

Re: [PATCH v2 3/4] pinctrl: rockchip: Parse pin groups before calling pinctrl_register()

2014-10-23 Thread Heiko Stübner
Am Dienstag, 21. Oktober 2014, 10:47:34 schrieb Doug Anderson: > Just like in (529301c pinctrl: samsung: Parse pin groups before > calling pinctrl_register()), Rockchip also needs to parse pin groups > earlier to make hogs work. > > Signed-off-by: Doug Anderson > Tested-by: Chris Zhong

[PATCH RFC v4 12/17] virtio_net: v1.0 support

2014-10-23 Thread Michael S. Tsirkin
Based on patches by Rusty Russell, Cornelia Huck. Signed-off-by: Rusty Russell Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_net.h | 15 --- drivers/net/virtio_net.c| 34 +- 2 files changed, 29

[PATCH RFC v4 16/17] KVM: s390 allow virtio_ccw status writes to fail

2014-10-23 Thread Michael S. Tsirkin
Gracefully handle failure to write device status. We really should handle other errors as well, but this one is needed for virtio 1.0 compliance. Signed-off-by: Michael S. Tsirkin --- drivers/s390/kvm/virtio_ccw.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH RFC v4 14/17] KVM: s390: Set virtio-ccw transport revision

2014-10-23 Thread Michael S. Tsirkin
From: Thomas Huth With the new SET-VIRTIO-REVISION command of the virtio 1.0 standard, we can now negotiate the virtio-ccw revision after setting a channel online. Note that we don't negotiate version 1 yet. [Cornelia Huck: reworked revision loop a bit] Reviewed-by: David Hildenbrand

[PATCH 1/1 net-next] Bluetooth: fix shadow warning in hci_disconnect()

2014-10-23 Thread Fabian Frederick
use cpr for hci_cp_read_clock_offset instead of cp (already defined above). Signed-off-by: Fabian Frederick --- net/bluetooth/hci_conn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index b9517bd..6151e09 100644

[PATCH RFC v4 13/17] virtio_blk: v1.0 support

2014-10-23 Thread Michael S. Tsirkin
Based on patch by Cornelia Huck. Note: for consistency, and to avoid sparse errors, convert all fields, even those no longer in use for virtio v1.0. Reviewed-by: Thomas Huth Reviewed-by: David Hildenbrand Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin ---

[PATCH RFC v4 06/17] virtio: make endian-ness depend on virtio 1.0

2014-10-23 Thread Michael S. Tsirkin
virtio 1.0 is LE, virtio without 1.0 is native endian. Signed-off-by: Michael S. Tsirkin --- include/linux/virtio_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 4bc2ebe..952b6d7 100644 ---

[PATCH RFC v4 15/17] KVM: s390: virtio-ccw revision 1 SET_VQ

2014-10-23 Thread Michael S. Tsirkin
From: Cornelia Huck The CCW_CMD_SET_VQ command has a different format for revision 1+ devices, allowing to specify a more complex virtqueue layout. For now, we stay however with the old layout and simply use the new command format for virtio-1 devices. Signed-off-by: Cornelia Huck

[PATCH RFC v4 17/17] KVM: s390: enable virtio-ccw revision 1

2014-10-23 Thread Michael S. Tsirkin
From: Cornelia Huck Now that virtio-ccw has everything needed to support virtio 1.0 in place, try to enable it if the host supports it. Reviewed-by: David Hildenbrand Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- drivers/s390/kvm/virtio_ccw.c | 2 +- 1 file changed, 1

[PATCH RFC v4 07/17] virtio_config: endian conversion for v1.0

2014-10-23 Thread Michael S. Tsirkin
We (ab)use virtio conversion functions for device-specific config space accesses. Reviewed-by: David Hildenbrand Signed-off-by: Rusty Russell Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- include/linux/virtio_config.h | 9 ++--- 1 file changed, 6 insertions(+), 3

Re: [PATCH 0/3] Rockchip IOMMU driver and devicetree bindings

2014-10-23 Thread Heiko Stübner
Am Freitag, 24. Oktober 2014, 00:11:06 schrieb Daniel Kurtz: > On Wed, Oct 22, 2014 at 11:20 PM, Joerg Roedel wrote: > > On Wed, Oct 01, 2014 at 06:20:40PM +0800, Daniel Kurtz wrote: > > > Add a driver and devicetree bindings for the IOMMU found in Rockchip > > > > RK3288 > > > > > SoCs. > > >

[PATCH RFC v4 02/17] virtio_ring: switch to new memory access APIs

2014-10-23 Thread Michael S. Tsirkin
Use virtioXX_to_cpu and friends for access to all multibyte structures in memory. Note: this is intentionally mechanical. A follow-up patch will split long lines etc. Signed-off-by: Michael S. Tsirkin --- drivers/virtio/virtio_ring.c | 89 ++-- 1 file

[PATCH RFC v4 00/17] linux: towards virtio-1 guest support

2014-10-23 Thread Michael S. Tsirkin
Based on patches by Cornelia Rusty and others, but with an API that should allow better static checking of code, and slightly more concervative changes in vring,net and blk. Based on patches by Cornelia and others, but with an API that should allow better static checking of code, slightly more

[PATCH 1/1 net-next] 9P: remove unused variable in p9_fd_create()

2014-10-23 Thread Fabian Frederick
p is initialized but unused. Signed-off-by: Fabian Frederick --- net/9p/trans_fd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index 80d08f6..c73b894 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c @@ -1013,7 +1013,6 @@ p9_fd_create(struct

Re: [PATCH v3 1/5] PM / clock_ops: Add pm_clk_add_clk()

2014-10-23 Thread Grygorii Strashko
On 10/23/2014 06:49 PM, Dmitry Torokhov wrote: On Thu, Oct 23, 2014 at 05:22:58PM +0300, Grygorii Strashko wrote: From: Geert Uytterhoeven The existing pm_clk_add() allows to pass a clock by con_id. However, when referring to a specific clock from DT, no con_id is available. Add

[PATCH 1/1 net-next] libceph: remove unused variable in handle_reply()

2014-10-23 Thread Fabian Frederick
osdmap_epoch is redundant with reassert_epoch and unused. Signed-off-by: Fabian Frederick --- net/ceph/osd_client.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index f3fc54e..432bd75 100644 --- a/net/ceph/osd_client.c +++

Re: [PATCH 0/3] Rockchip IOMMU driver and devicetree bindings

2014-10-23 Thread Daniel Kurtz
On Wed, Oct 22, 2014 at 11:20 PM, Joerg Roedel wrote: > On Wed, Oct 01, 2014 at 06:20:40PM +0800, Daniel Kurtz wrote: >> Add a driver and devicetree bindings for the IOMMU found in Rockchip RK3288 >> SoCs. >> >> Daniel Kurtz (3): >> iommu/rockchip: rk3288 iommu driver >> dt-bindings: iommu:

Re: [PATCH v2] block: wrong return value

2014-10-23 Thread Jens Axboe
On 10/23/2014 10:04 AM, Sudip Mukherjee wrote: > while compiling integer err was showing as a set but unused variable. > elevator_init_fn can be either cfq_init_queue or deadline_init_queue > or noop_init_queue. > all three of these functions are returning -ENOMEM if they fail to > allocate the

[PATCH] virtio_blk: fix race at module removal

2014-10-23 Thread Michael S. Tsirkin
If a device appears while module is being removed, driver will get a callback after we've given up on the major number. In theory this means this major number can get reused by something else, resulting in a conflict. To fix, cleanup in reverse order of initialization. Signed-off-by: Michael S.

Re: 3.18.rc1: compile failure in tsc2005.c

2014-10-23 Thread Daniel Walter
On Thu, Oct 23, 2014 at 08:47:51AM -0700, Dmitry Torokhov wrote: > On Thu, Oct 23, 2014 at 03:01:04PM +0200, Pali Rohár wrote: > > On Thursday 23 October 2014 14:53:25 Pavel Machek wrote: > > > Hi! > > > > > > I get this. Before I start patching it, perhaps someone has > > > fixed it already? > >

Re: [PATCHv2] efi: efi-stub: notify on DTB absence

2014-10-23 Thread Mark Salter
On Thu, 2014-10-23 at 16:33 +0100, Mark Rutland wrote: > Since v1 [1]: > * Add a positive acknowledgement for a configuration table DTB > * Fixed a couple of typos in the commit message > > Ard, Leif, Roy, I've assumed your acks from v1 are still valid with the > additional print. Please shout if

[PATCH v2] block: wrong return value

2014-10-23 Thread Sudip Mukherjee
while compiling integer err was showing as a set but unused variable. elevator_init_fn can be either cfq_init_queue or deadline_init_queue or noop_init_queue. all three of these functions are returning -ENOMEM if they fail to allocate the queue. so we should actually be returning the error code

Re: [PATCH 1/2] ima: check xattr value length in ima_inode_setxattr()

2014-10-23 Thread Jan Kara
On Thu 23-10-14 18:59:07, Dmitry Kasatkin wrote: > On 23 October 2014 18:40, Jan Kara wrote: > > On Thu 23-10-14 16:47:17, Dmitry Kasatkin wrote: > >> ima_inode_setxattr() can be called with no value. Function does not > >> check the length so that following command can be used to produce > >>

Re: [PATCH 02/14] net: dsa: Report known silicon revisions for Marvell 88E6060

2014-10-23 Thread Sergei Shtylyov
On 10/23/2014 05:20 PM, Guenter Roeck wrote: Report known silicon revisions when probing Marvell 88E6060 switches. Signed-off-by: Guenter Roeck --- drivers/net/dsa/mv88e6060.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6060.c

Re: [PATCH 1/2] ima: check xattr value length in ima_inode_setxattr()

2014-10-23 Thread Dmitry Kasatkin
On 23 October 2014 18:40, Jan Kara wrote: > On Thu 23-10-14 16:47:17, Dmitry Kasatkin wrote: >> ima_inode_setxattr() can be called with no value. Function does not >> check the length so that following command can be used to produce >> kernel oops: setfattr -n security.ima FOO. This patch fixes

[PATCH v4 0/7] ARM: mediatek: Add support for interrupt polarity

2014-10-23 Thread Yingjoe Chen
This series is 4th version of interrupt polarity support for MediaTek SoCs. This is based on Jiang's hierarchy irqdomain v2 [1] and my mediatek SoC basic support [2]. This version addressed comments from previous discussion[3]. I removed arm,hierarchy-irq-domain property. When GIC is probed by

[PATCH v4 2/7] irqdomain: Add back xlate and set_type for hierarchy irq domain

2014-10-23 Thread Yingjoe Chen
Move xlate and set_type out to common code for hierarchy irq domain. Withouth this common code, all outermost irq domain will have to duplicate these function. Signed-off-by: Yingjoe Chen --- kernel/irq/irqdomain.c | 29 - 1 file changed, 20 insertions(+), 9

Re: [patch] mm: memcontrol: fold mem_cgroup_start_move()/mem_cgroup_end_move()

2014-10-23 Thread Michal Hocko
On Thu 23-10-14 10:42:07, Johannes Weiner wrote: > Having these functions and their documentation split out and somewhere > makes it harder, not easier, to follow what's going on. > > Inline them directly where charge moving is prepared and finished, and > put an explanation right next to it. I

[PATCH v4 3/7] genirq: Add more helper functions to support stacked irq_chip

2014-10-23 Thread Yingjoe Chen
Add more helper function for stacked irq_chip to just call parent's function. Signed-off-by: Yingjoe Chen --- include/linux/irq.h | 6 ++ kernel/irq/chip.c | 28 2 files changed, 34 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index

[PATCH v4 4/7] irqchip: gic: Support hierarchy irq domain.

2014-10-23 Thread Yingjoe Chen
Add support to use gic as a parent for stacked irq domain. Signed-off-by: Yingjoe Chen --- drivers/irqchip/Kconfig | 1 + drivers/irqchip/irq-gic.c | 54 +++ 2 files changed, 46 insertions(+), 9 deletions(-) diff --git a/drivers/irqchip/Kconfig

[PATCH v4 7/7] dt-bindings: add bindings for mediatek sysirq

2014-10-23 Thread Yingjoe Chen
Add binding documentation for Mediatek SoC SYSIRQ. Signed-off-by: Yingjoe Chen --- .../bindings/arm/mediatek/mediatek,sysirq.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,sysirq.txt diff --git

[PATCH v4 1/7] irqdomain: Fix irq_domain_alloc_irqs return check.

2014-10-23 Thread Yingjoe Chen
Change virq type from unsigned int to int. Otherwise the return value check for irq_domain_alloc_irqs will always pass. Signed-off-by: Yingjoe Chen --- kernel/irq/irqdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c

[PATCH v4 5/7] ARM: mediatek: Add sysirq interrupt polarity support

2014-10-23 Thread Yingjoe Chen
Mediatek SoCs have interrupt polarity in sysirq which allows to swap the polarity for given interrupts. Add this support using hierarchy irq domain. Signed-off-by: Yingjoe Chen --- drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-mtk-sysirq.c | 168

[PATCH v4 6/7] ARM: mediatek: Add sysirq in mt6589/mt8135/mt8127 dtsi

2014-10-23 Thread Yingjoe Chen
Add sysirq settings for mt6589/mt8135/mt8127 This also correct timer interrupt flag. The old flag setting works because boot loader already set polarity for timer interrupt. Without intpol support, the setting was not changed so gic can get the irq correctly. Signed-off-by: Yingjoe Chen ---

Re: [PATCH] input: soc_button_array: update calls to gpiod_get*()

2014-10-23 Thread Dmitry Torokhov
On Thu, Oct 23, 2014 at 05:17:55PM +0900, Alexandre Courbot wrote: > Add the new flags argument to calls of (devm_)gpiod_get*(). > > Currently both forms (with or without the flags argument) > are valid thanks to transitional macros in > . These macros will be removed once > all consumers are

Re: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Alex Williamson
On Thu, 2014-10-23 at 18:00 +0300, Marcel Apfelbaum wrote: > On Thu, 2014-10-23 at 08:49 -0600, Alex Williamson wrote: > > On Thu, 2014-10-23 at 17:33 +0300, Marcel Apfelbaum wrote: > > > On Thu, 2014-10-23 at 07:57 -0600, Alex Williamson wrote: > > > > On Thu, 2014-10-23 at 13:44 +, Stuart

Re: [PATCH v3 1/5] PM / clock_ops: Add pm_clk_add_clk()

2014-10-23 Thread Dmitry Torokhov
On Thu, Oct 23, 2014 at 05:22:58PM +0300, Grygorii Strashko wrote: > From: Geert Uytterhoeven > > The existing pm_clk_add() allows to pass a clock by con_id. However, > when referring to a specific clock from DT, no con_id is available. > > Add pm_clk_add_clk(), which allows to specify the

Re: 3.18.rc1: compile failure in tsc2005.c

2014-10-23 Thread Dmitry Torokhov
On Thu, Oct 23, 2014 at 03:01:04PM +0200, Pali Rohár wrote: > On Thursday 23 October 2014 14:53:25 Pavel Machek wrote: > > Hi! > > > > I get this. Before I start patching it, perhaps someone has > > fixed it already? > > > > Pavel > >

Re: [PATCH 1/3] input: alps: Reset mouse before identifying it

2014-10-23 Thread Dmitry Torokhov
On Sun, Oct 19, 2014 at 01:07:41PM +0200, Pali Rohár wrote: > On Wednesday 15 October 2014 20:22:56 Dmitry Torokhov wrote: > > On Wed, Oct 15, 2014 at 08:10:39PM +0200, Pali Rohár wrote: > > > On Wednesday 15 October 2014 20:00:11 Dmitry Torokhov wrote: > > > > On Wed, Oct 15, 2014 at 07:57:37PM

RE: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Stuart Yoder
> -Original Message- > From: Marcel Apfelbaum [mailto:marce...@redhat.com] > Sent: Thursday, October 23, 2014 8:37 AM > To: Alex Williamson > Cc: linux-...@vger.kernel.org; bhelg...@google.com; > linux-kernel@vger.kernel.org; mar...@redhat.com; > m...@redhat.com; Yoder Stuart-B08248 >

Re: [PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-23 Thread Jiri Olsa
On Thu, Oct 23, 2014 at 12:33:22PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Oct 23, 2014 at 05:13:06PM +0200, Jiri Olsa escreveu: > > On Thu, Oct 23, 2014 at 11:26:34AM -0300, Arnaldo Carvalho de Melo wrote: > > > That is why I thought it would be a compromise to put what he did, it > > >

Re: [PATCH 1/2] ima: check xattr value length in ima_inode_setxattr()

2014-10-23 Thread Jan Kara
On Thu 23-10-14 16:47:17, Dmitry Kasatkin wrote: > ima_inode_setxattr() can be called with no value. Function does not > check the length so that following command can be used to produce > kernel oops: setfattr -n security.ima FOO. This patch fixes it. > .. > > Reported-by: Jan Kara >

Re: localed stuck in recent 3.18 git in copy_net_ns?

2014-10-23 Thread Paul E. McKenney
On Thu, Oct 23, 2014 at 05:27:50AM -0700, Paul E. McKenney wrote: > On Thu, Oct 23, 2014 at 09:09:26AM +0300, Yanko Kaneti wrote: > > On Wed, 2014-10-22 at 16:24 -0700, Paul E. McKenney wrote: > > > On Thu, Oct 23, 2014 at 01:40:32AM +0300, Yanko Kaneti wrote: > > > > On Wed-10/22/14-2014 15:33,

[PATCH] mm: Avoid overlap the fixmap area on i386

2014-10-23 Thread Minfei Huang
From: Minfei Huang It is a problem when configuring high memory off where the vmalloc reserve area could end up overlapping the early_ioremap fixmap area on i386. The ordering of the VMALLOC_RESERVE space is: FIXADDR_TOP fixed_addresses FIXADDR_START

[PATCHv2] efi: efi-stub: notify on DTB absence

2014-10-23 Thread Mark Rutland
Since v1 [1]: * Add a positive acknowledgement for a configuration table DTB * Fixed a couple of typos in the commit message Ard, Leif, Roy, I've assumed your acks from v1 are still valid with the additional print. Please shout if that's not the case. Thanks, Mark. [1]

Re: [PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-23 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 23, 2014 at 05:13:06PM +0200, Jiri Olsa escreveu: > On Thu, Oct 23, 2014 at 11:26:34AM -0300, Arnaldo Carvalho de Melo wrote: > > That is why I thought it would be a compromise to put what he did, it > > would not make the existing situation that much worse, work needs to be > > done

Re: [PATCH] Add pgcollapse controls to task_struct

2014-10-23 Thread Alex Thorlton
On Wed, Oct 22, 2014 at 09:49:25PM -0500, Alex Thorlton wrote: > This patch just adds the necessary bits to the task_struct so that the scans > can > eventually be controlled on a per-mm basis. As I mentioned previously, we > might > want to add some more counters here. Just noticed that this

Re: Possible wireless issue introduced in next-20140930

2014-10-23 Thread Murilo Opsfelder Araujo
of whichever tree you bisected? The revert (master) removed some warnings on the way to kaboom here, but the drivers is still toxic. My log follows in case it's the same thing. I can't go hunting atm, maybe during the weekend if the problem hasn't evaporate by then. next-20141023 does not work

Re: [PATCH 4/4] watchdog: st_wdt: Add new driver for ST's LPC Watchdog

2014-10-23 Thread Arnd Bergmann
On Thursday 23 October 2014 16:18:44 Lee Jones wrote: > +config ST_WATCHDOG > + tristate "STMicroelectronics LPC Watchdog" > + depends on ARCH_STI && OF > + depends on !RTC_DRV_ST_LPC > + select WATCHDOG_CORE > + help > +Say Y here to include Watchdog timer

[PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-23 Thread Lorenzo Pieralisi
The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource, this patch reshuffles the code so that if any limitation is applied to the bus resource it is taken into account in the windows allocation. Cc:

[PATCH RFC 2/2] drivers: pci: convert generic host controller to DT resource parsing API

2014-10-23 Thread Lorenzo Pieralisi
In order to consolidate DT configuration for PCI host controllers in the kernel, a new API (ie of_pci_get_host_bridge_resources()) was developed to allow parsing and assigning IO/BUS/MEM resources from DT, removing duplicated code present in the majority of pci host driver implementations. This

Re: [PATCH v8 2/4] i2c: add support for Diolan DLN-2 USB-I2C adapter

2014-10-23 Thread Johan Hovold
On Wed, Oct 15, 2014 at 05:48:09PM +0300, Octavian Purdila wrote: > +static int dln2_i2c_xfer(struct i2c_adapter *adapter, > + struct i2c_msg *msgs, int num) > +{ > + struct dln2_i2c *dln2 = i2c_get_adapdata(adapter); > + struct i2c_msg *pmsg; > + struct device

Re: [PATCH 1/2] fat: Fix d_splice_alias() return code checking

2014-10-23 Thread OGAWA Hirofumi
Al Viro writes: > On Sun, Oct 19, 2014 at 12:39:43PM +0200, Richard Weinberger wrote: >> d_splice_alias() can return a valid dentry, NULL or an ERR_PTR. >> Currently the code checks not for ERR_PTR. >> Fix this by using IS_ERR_OR_NULL(). > > Why do we need to set ->d_time for non-NULL inode

[PATCH 3/4] watchdog: st_wdt: Provide binding documentation for ST's LPC Watchdog driver

2014-10-23 Thread Lee Jones
Cc: devicet...@vger.kernel.org Signed-off-by: David Paris Signed-off-by: Lee Jones --- .../devicetree/bindings/watchdog/st-lpc-wdt.txt| 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/st-lpc-wdt.txt diff --git

Re: [PATCH v8 1/4] mfd: add support for Diolan DLN-2 devices

2014-10-23 Thread Johan Hovold
On Wed, Oct 15, 2014 at 05:48:08PM +0300, Octavian Purdila wrote: Here's some late feedback due to travels. You managed to get two updates in there so commenting on the diff from v6. > +struct dln2_event_cb_entry { > + struct list_head list; > + u16 id; > + struct platform_device

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