Re: [PATCH] drm: powerplay: use div64_s64 instead of do_div

2016-01-04 Thread Christian König
On 01.01.2016 14:07, Arnd Bergmann wrote: The newly added code for Fiji creates a correct compiler warning about invalid use of the do_div macro: In file included from powerplay/hwmgr/ppatomctrl.c:31:0: drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/ppevvmath.h: In function 'fDivide': drivers/gp

Re: [PATCH 09/10] [media] tvp5150: Initialize the chip on probe

2016-01-04 Thread Javier Martinez Canillas
e system] > > url: > https://github.com/0day-ci/linux/commits/Javier-Martinez-Canillas/tvp5150-add-MC-and-DT-support/20160104-203224 > base: git://linuxtv.org/media_tree.git master > config: x86_64-randconfig-x008-01040711 (attached as .config) > reproduce: > # save t

Re: [PATCH] ACPICA: Drop Linux-specific waking vector functions

2016-01-04 Thread Rafael J. Wysocki
On Monday, January 04, 2016 07:33:55 AM Zheng, Lv wrote: > Hi, Rafael > > Acke-by: Lv Zheng > > One more improvement is: > After applying this patch, I can still detect the following diff blocks using > ACPICA's divergence checking utility: > diff -E -b -w -B -rpuN linux-acpica/drivers/acpi/acp

Re: [PATCH] ipc/sem.c: Fix complex_count vs. simple op race

2016-01-04 Thread Davidlohr Bueso
On Sat, 02 Jan 2016, Manfred Spraul wrote: Commit 6d07b68ce16a ("ipc/sem.c: optimize sem_lock()") introduced a race: sem_lock has a fast path that allows parallel simple operations. There are two reasons why a simple operation cannot run in parallel: - a non-simple operations is ongoing (sma->s

Re: [PATCH] ARM: omapfb: Add early framebuffer memory allocator

2016-01-04 Thread Ivaylo Dimitrov
Hi Tomi, On 4.01.2016 13:37, Tomi Valkeinen wrote: We probably need exactly the same for omapdrm, as omapfb is on the way to being deprecated. And sounds to me that we probably need similar for other devices which try to do large allocations (camera? video decoders?). Re omapdrm - I guess i

Re: [lkp] [af_unix] 039b21aaee: otc_kernel_qa-ts_ltp_ddt.bind01.fail

2016-01-04 Thread Rainer Weikusat
kernel test robot writes: > FYI, we noticed the below changes on > > https://github.com/0day-ci/linux > Rainer-Weikusat/af_unix-Fix-splice-bind-deadlock/20151228-041437 > commit 039b21aaee6515d0197e26321204f319b4ea6e9e ("af_unix: Fix splice-bind > deadlock") > > The commit failed for the bind01

Re: [PATCH 2/2] 390/qeth: Refactoring for qeth_core_set_online()

2016-01-04 Thread SF Markus Elfring
>> +++ b/drivers/s390/net/qeth_core_main.c >> @@ -5638,9 +5638,10 @@ static int qeth_core_set_online(struct >> ccwgroup_device *gdev) >> { >> struct qeth_card *card = dev_get_drvdata(&gdev->dev); >> int rc; >> -int def_discipline; >> >> if (!card->discipline) { >> +

Re: [PATCH] x86/efi-bgrt: Replace early_memremap() with memremap()

2016-01-04 Thread Matt Fleming
On Mon, 21 Dec, at 02:12:52PM, Matt Fleming wrote: > Môshe reported the following warning triggered on his machine since > commit 50a0cb565246 ("x86/efi-bgrt: Fix kernel panic when mapping BGRT > data"), > > [0.026936] [ cut here ] > [0.026941] WARNING: CPU: 0 P

Re: [Y2038] [PATCH v2 2/2] ppdev: add support for compat ioctl

2016-01-04 Thread Sudip Mukherjee
On Sat, Jan 02, 2016 at 11:40:51PM +0100, Arnd Bergmann wrote: > On Saturday 02 January 2016 11:59:29 Sudip Mukherjee wrote: > > > > > > Just to be sure we are talking about the same thing: you mean running a > > > 64-bit > > > kernel in a kvm guest with a 32-bit file system, right? Running a 32-

Re: [PATCH 1/3] rsi: Delete unnecessary variable initialisations in rsi_send_mgmt_pkt()

2016-01-04 Thread Bjørn Mork
Dan Carpenter writes: > Please stop sending cleanup patches, Markus. Just send fixes. Thanks for your continued but unwarranted belief in AI. Do you mind if I remind you of https://lkml.org/lkml/2014/11/3/162 ? I am sure there are lots and lots of other examples. There is no reason to believe

Re: [PATCH V9 1/2] ACPI, PCI, irq: remove interrupt count restriction

2016-01-04 Thread Rafael J. Wysocki
On Monday, January 04, 2016 11:01:05 AM Andy Shevchenko wrote: > On Fri, Jan 1, 2016 at 2:48 AM, Rafael J. Wysocki wrote: > > On Wednesday, December 30, 2015 09:55:35 PM Andy Shevchenko wrote: > >> On Wed, Dec 30, 2015 at 9:17 PM, Sinan Kaya wrote: > >> > On 12/30/2015 8:28 AM, Andy Shevchenko wr

Re: [PATCH v2 06/32] s390: reuse asm-generic/barrier.h

2016-01-04 Thread Peter Zijlstra
On Thu, Dec 31, 2015 at 09:06:30PM +0200, Michael S. Tsirkin wrote: > On s390 read_barrier_depends, smp_read_barrier_depends > smp_store_mb(), smp_mb__before_atomic and smp_mb__after_atomic match the > asm-generic variants exactly. Drop the local definitions and pull in > asm-generic/barrier.h inst

Re: [PATCH] PCI: provide of_pci_get_host_bridge_resources helper

2016-01-04 Thread Wolfram Sang
On Fri, Dec 18, 2015 at 04:02:41PM +0100, Arnd Bergmann wrote: > The pcie-rcar driver can be built for any ARM platform (for COMPILE_TEST) > including those without CONFIG_OF enabled, and that results in a compile-time > error: > > drivers/pci/host/pcie-rcar.c: In function > 'rcar_pcie_parse_requ

Re: [PATCH v2 7/7] udf: Merge linux specific translation into CS0 conversion function

2016-01-04 Thread Jan Kara
On Thu 24-12-15 10:25:38, Andrew Gabbasov wrote: > Current implementation of udf_translate_to_linux function does not > support multi-bytes characters at all: it counts bytes while calculating > extension length, when inserting CRC inside the name it doesn't > take into account inter-character boun

Re: [PATCH v2 11/32] mips: reuse asm-generic/barrier.h

2016-01-04 Thread Peter Zijlstra
On Thu, Dec 31, 2015 at 09:07:10PM +0200, Michael S. Tsirkin wrote: > -#define smp_store_release(p, v) > \ > -do { \ > - compiletime_assert_atomic_type(*p);

Re: [Y2038] [PATCH v2 2/2] ppdev: add support for compat ioctl

2016-01-04 Thread Arnd Bergmann
On Monday 04 January 2016 18:44:52 Sudip Mukherjee wrote: > > > > If 'uname -i' reports i686, that usually means you have configured the > > kernel for 32-bit. Try rebuilding the kernel with 'CONFIG_64BIT' and > > 'CONFIG_IA32_EMULATION' enabled to test that the 32-bit user space now > > also work

Re: [PATCH v2 0/7] udf: rework name conversions to fix multi-bytes characters support

2016-01-04 Thread Jan Kara
On Thu 24-12-15 10:25:31, Andrew Gabbasov wrote: > V2: > > The single patch was split into several commits for separate logical > steps. Also, some minor fixes were done in the code of the patches. Thanks for the patches! I have taken patches 1 and 2 right away so that they make it for this merge

Re: [PATCH V9 1/2] ACPI, PCI, irq: remove interrupt count restriction

2016-01-04 Thread Andy Shevchenko
On Mon, Jan 4, 2016 at 3:50 PM, Rafael J. Wysocki wrote: > On Monday, January 04, 2016 11:01:05 AM Andy Shevchenko wrote: >> On Fri, Jan 1, 2016 at 2:48 AM, Rafael J. Wysocki wrote: >> > On Wednesday, December 30, 2015 09:55:35 PM Andy Shevchenko wrote: >> >> On Wed, Dec 30, 2015 at 9:17 PM, Sina

Re: [PATCH v2 17/32] arm: define __smp_xxx

2016-01-04 Thread Peter Zijlstra
On Sun, Jan 03, 2016 at 11:12:44AM +0200, Michael S. Tsirkin wrote: > On Sat, Jan 02, 2016 at 11:24:38AM +, Russell King - ARM Linux wrote: > > My only concern is that it gives people an additional handle onto a > > "new" set of barriers - just because they're prefixed with __* > > unfortunate

Re: __vmalloc() vs. GFP_NOIO/GFP_NOFS

2016-01-04 Thread Tetsuo Handa
On 2016/01/03 16:12, Al Viro wrote: > Those, AFAICS, are such callers with GFP_NOIO; however, there's a shitload > of GFP_NOFS ones. XFS uses memalloc_noio_save(), but a _lot_ of other > callers do not. For example, all call chains leading to ceph_kvmalloc() > pass GFP_NOFS and none of them is un

Re: [PATCH v2 20/32] metag: define __smp_xxx

2016-01-04 Thread Peter Zijlstra
On Thu, Dec 31, 2015 at 09:08:22PM +0200, Michael S. Tsirkin wrote: > +#ifdef CONFIG_SMP > +#define fence() metag_fence() > +#else > +#define fence() do { } while (0) > #endif James, it strikes me as odd that fence() is a no-op instead of a barrier() for UP, can you verify/explain? -

Re: [PATCH v2 22/32] s390: define __smp_xxx

2016-01-04 Thread Peter Zijlstra
On Thu, Dec 31, 2015 at 09:08:38PM +0200, Michael S. Tsirkin wrote: > This defines __smp_xxx barriers for s390, > for use by virtualization. > > Some smp_xxx barriers are removed as they are > defined correctly by asm-generic/barriers.h > > Note: smp_mb, smp_rmb and smp_wmb are defined as full ba

Re: linux-next: build failure after merge of the ext4 tree

2016-01-04 Thread Theodore Ts'o
On Mon, Jan 04, 2016 at 10:34:19AM +1100, Stephen Rothwell wrote: > Hi Ted, > > After merging the ext4 tree, today's linux-next build (arm > multi_v7_defconfig) failed like this:... Thanks for pointing this out! I fixed it last night so it should be ready for the next linux-build integration cyc

Re: [PATCH] pwm: Fix of_pwm_get() for consistent return values

2016-01-04 Thread Alban
On Mon, 4 Jan 2016 09:10:28 +0100 Thierry Reding wrote: > On Sun, Nov 29, 2015 at 02:17:37PM +0100, Alban Bedel wrote: > > When of_pwm_get() is called without connection ID it returns > > -ENOENT when the 'pwms' property doesn't exists or is an empty > > entry. However when a connection ID is giv

Re: [PATCH v2 17/32] arm: define __smp_xxx

2016-01-04 Thread Peter Zijlstra
On Mon, Jan 04, 2016 at 02:36:58PM +0100, Peter Zijlstra wrote: > On Sun, Jan 03, 2016 at 11:12:44AM +0200, Michael S. Tsirkin wrote: > > On Sat, Jan 02, 2016 at 11:24:38AM +, Russell King - ARM Linux wrote: > > > > My only concern is that it gives people an additional handle onto a > > > "new

Re: [PATCH v2 17/32] arm: define __smp_xxx

2016-01-04 Thread Russell King - ARM Linux
On Mon, Jan 04, 2016 at 02:54:20PM +0100, Peter Zijlstra wrote: > On Mon, Jan 04, 2016 at 02:36:58PM +0100, Peter Zijlstra wrote: > > On Sun, Jan 03, 2016 at 11:12:44AM +0200, Michael S. Tsirkin wrote: > > > On Sat, Jan 02, 2016 at 11:24:38AM +, Russell King - ARM Linux wrote: > > > > > > My o

Re: [RESEND PATCH v2 0/9] eeprom: at24: at24cs series serial number read

2016-01-04 Thread Bartosz Golaszewski
2016-01-02 21:50 GMT+01:00 Wolfram Sang : > On Fri, Dec 11, 2015 at 02:55:10PM +0100, Bartosz Golaszewski wrote: >> 2015-12-11 13:08 GMT+01:00 Wolfram Sang : >> > On Wed, Dec 02, 2015 at 11:25:17AM +0100, Bartosz Golaszewski wrote: >> >> Chips from the at24cs EEPROM series have an additional read-o

Re: [PATCH 2/2] 390/qeth: Refactoring for qeth_core_set_online()

2016-01-04 Thread Heiko Carstens
On Mon, Jan 04, 2016 at 02:10:34PM +0100, SF Markus Elfring wrote: > >> +++ b/drivers/s390/net/qeth_core_main.c > >> @@ -5638,9 +5638,10 @@ static int qeth_core_set_online(struct > >> ccwgroup_device *gdev) > >> { > >>struct qeth_card *card = dev_get_drvdata(&gdev->dev); > >>int rc; > >>

Re: [PATCH v2 31/32] sh: support a 2-byte smp_store_mb

2016-01-04 Thread Peter Zijlstra
On Thu, Dec 31, 2015 at 09:09:47PM +0200, Michael S. Tsirkin wrote: > At the moment, xchg on sh only supports 4 and 1 byte values, so using it > from smp_store_mb means attempts to store a 2 byte value using this > macro fail. > > And happens to be exactly what virtio drivers want to do. > > Chec

Re: [PATCH v2] i915: correctly handling failed allocation

2016-01-04 Thread Jani Nikula
On Wed, 30 Dec 2015, Insu Yun wrote: > Since devm_kzalloc can be failed, it needs to be checked > if not, NULL dereference could be happened. > > Signed-off-by: Insu Yun Pushed to drm-intel-next-queued, thanks for the patch. BR, Jani. > --- > drivers/gpu/drm/i915/intel_dsi_panel_vbt.c | 2 ++

Re: [PATCH 07/10] [media] tvp5150: Add device tree binding document

2016-01-04 Thread Rob Herring
On Mon, Jan 04, 2016 at 09:25:29AM -0300, Javier Martinez Canillas wrote: > Add a Device Tree binding document for the TVP5150 video decoder. > > Signed-off-by: Javier Martinez Canillas > --- > > .../devicetree/bindings/media/i2c/tvp5150.txt | 35 > ++ > 1 file changed

Re: [RESEND PATCH] rtc: rk808: rename rtc-rk808.c to rtc-rk8xx.c

2016-01-04 Thread Alessandro Zummo
On Mon, 4 Jan 2016 10:45:46 +0100 Alexandre Belloni wrote: > I'm not sure it is useful to do that renaming. It is usual to have one > driver that supports multiple chips named with the forst chip it > supported. > > Also, what would happen if for example rk855 is not compatible at all > with the

Re: [PATCH v2 33/34] xenbus: use virt_xxx barriers

2016-01-04 Thread Peter Zijlstra
On Thu, Dec 31, 2015 at 09:10:01PM +0200, Michael S. Tsirkin wrote: > drivers/xen/xenbus/xenbus_comms.c uses > full memory barriers to communicate with the other side. > > For guests compiled with CONFIG_SMP, smp_wmb and smp_mb > would be sufficient, so mb() and wmb() here are only needed if > a n

Re: 390/qeth: Refactoring for qeth_core_set_online()

2016-01-04 Thread SF Markus Elfring
> In this case the function body is very small > so I don't see any benefit at all. Do you care for fine-tuning of variable placement occasionally? Regards, Markus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH, RESEND] ipc/shm: handle removed segments gracefully in shm_mmap()

2016-01-04 Thread Kirill A. Shutemov
On Sat, Jan 02, 2016 at 12:45:07PM +0100, Manfred Spraul wrote: > On 11/13/2015 08:23 PM, Davidlohr Bueso wrote: > > > >So considering EINVAL, even your approach to bumping up nattach by calling > >_shm_open earlier isn't enough. Races exposed to user called rmid can > >still > >occur between dropp

Re: [RFC PATCH v1 2/2] dt-bindings: add document for rk3229-vop

2016-01-04 Thread Rob Herring
On Mon, Jan 04, 2016 at 07:50:30PM +0800, Yakir Yang wrote: > > Signed-off-by: Yakir Yang > --- > Documentation/devicetree/bindings/display/rockchip/rockchip-vop.txt | 1 + > 1 file changed, 1 insertion(+) Acked-by: Rob Herring -- To unsubscribe from this list: send the line "unsubscribe linux

Re: BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0

2016-01-04 Thread Andrea Gelmini
On Mon, Jan 04, 2016 at 07:47:58AM +1100, Dave Chinner wrote: > > Maybe, in the meanwhile, you can do something with my files. You can find > > 'em here: > > http://mail.gelma.net/xfs_kasan > > Any update on this problem, Andrea? Hi Dave, and thanks a lot for your interest. So, to make lon

Re: [PATCH v3 1/8] dt-bindings: Add a binding for Mediatek Video Processor

2016-01-04 Thread Rob Herring
On Mon, Jan 04, 2016 at 06:11:49PM +0800, Tiffany Lin wrote: > From: Andrew-CT Chen > > Add a DT binding documentation of Video Processor Unit for the > MT8173 SoC from Mediatek. > > Signed-off-by: Andrew-CT Chen > Signed-off-by: Tiffany Lin Please add acks when sending new versions as I alre

Re: [PATCH v3 2/4] devicetree: bindings: let thermal-sensor point to other thermal zones

2016-01-04 Thread Sascha Hauer
On Wed, Nov 25, 2015 at 03:09:44PM +, Javi Merino wrote: > The thermal-sensor property of the thermal zone node accepts phandles to > thermal sensors. However, thermal zones can be created as an > aggregation of other thermal zones. Extend the thermal-sensors property > to allow phandles to o

RE: [PATCH 2/4] PCI: rcar: Support runtime PM link state L1 handling in pcie-rcar

2016-01-04 Thread Phil Edworthy
Hi Geert, On 21 December 2015 13:17, Geert Uytterhoeven wrote: > On Mon, Dec 21, 2015 at 11:52 AM, Phil Edworthy > wrote: > > On 18 December 2015 14:04, Wolfram Sang wrote: > >> > Since the hardware doesn't support hot plug, I believe this loop will > >> > always exit very quickly. Unless someone

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2016-01-04 Thread Sascha Hauer
Hi Eduardo, On Thu, Dec 17, 2015 at 11:33:33AM -0800, Eduardo Valentin wrote: > Sascha, > > Yeah, sorry for the long delay. I was planing on applying this patch for > the next merge window, but it just came across one point, see below. > > On Mon, Nov 30, 2015 at 12:42:32PM +0100, Sascha Hauer w

Re: [RFC PATCH 2/5] crypto: sunxi-ss: fix min3() call to match types

2016-01-04 Thread Uwe Kleine-König
On Tue, Dec 22, 2015 at 12:27:44PM +, Andre Przywara wrote: > The min3() macro expects all arguments to be of the same type (or > size at least). While two arguments are ints or u32s, one is size_t, > which does not match on 64-bit architectures. > Cast the size_t to u32 to make min3() happy. I

Re: rcu_preempt self-detected stall on CPU from 4.4-rc4, since 3.17

2016-01-04 Thread Ross Green
Well with the release of 4.4-rc8 I have built and started testing the kernel. With some luck I managed to get a rcu_preempt stall within a few hours of testing. Upon booting, I ran a small series of bench marks to make sure everything is running as expected. limited regression testing and then j

Re: [PATCH 2/6] ACPI: create setup_quirk in acpi_apd

2016-01-04 Thread Andy Shevchenko
On Mon, Jan 4, 2016 at 7:31 AM, Wang Hongcheng wrote: > The post_setup hook of AMD0020 device will create an amba device as > the child of a previously created platform device. > > Signed-off-by: Wang Hongcheng > --- > drivers/acpi/acpi_apd.c | 131 >

Re: [PATCH v6 2/4] x86: Cleanup and add a new exception class

2016-01-04 Thread Borislav Petkov
On Wed, Dec 30, 2015 at 10:56:41AM -0800, Tony Luck wrote: > Make per-class functions for exception table fixup. Add #defines > and general prettiness to make it clear how all the parts tie > together. > > Add a new class that fills %rax with the fault number of the exception. > > Signed-off-by:

Re: [PATCH 1/3] rsi: Delete unnecessary variable initialisations in rsi_send_mgmt_pkt()

2016-01-04 Thread Dan Carpenter
On Mon, Jan 04, 2016 at 02:17:40PM +0100, Bjørn Mork wrote: > Dan Carpenter writes: > > > Please stop sending cleanup patches, Markus. Just send fixes. > > Thanks for your continued but unwarranted belief in AI. > I always tell people that I am very mechanical and you can rely on me to send p

Re: [PATCH v2] memory-hotplug: add automatic onlining policy for the newly added memory

2016-01-04 Thread Vitaly Kuznetsov
David Vrabel writes: > On 22/12/15 16:32, Vitaly Kuznetsov wrote: >> @@ -1292,6 +1304,11 @@ int __ref add_memory_resource(int nid, struct >> resource *res) >> /* create new memmap entry */ >> firmware_map_add_hotplug(start, start + size, "System RAM"); >> >> +/* online pages if r

Re: [PATCH v5 1/5] PCI: designware: ensure ATU is enabled before IO/conf space accesses

2016-01-04 Thread Stanimir Varbanov
On 12/18/2015 04:41 PM, Pratyush Anand wrote: > On Fri, Dec 18, 2015 at 6:08 PM, Stanimir Varbanov > wrote: >> There is no guarantees that enabling ATU will hit the hardware >> immediately, and subsequent accesses to configuration / IO spaces >> are reliable. So fixing this by read back PCIE_ATU_C

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2016-01-04 Thread Sascha Hauer
On Mon, Dec 21, 2015 at 12:07:58PM +0800, Daniel Kurtz wrote: > Hi Sascha, > > One nit below that can be fixed up later, or now if you don't plan to > spin this driver to > address Eduardo's feedback... > > On Mon, Nov 30, 2015 at 7:42 PM, Sascha Hauer wrote: > > This adds support for the Mediat

Re: [PATCH] mac802154: constify ieee802154_llsec_ops structure

2016-01-04 Thread Alexander Aring
Hi, On Wed, Dec 23, 2015 at 10:36:32PM +0100, Julia Lawall wrote: > The ieee802154_llsec_ops structure is never modified, so declare it as > const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall > Acked-by: Alexander Aring Marcel, can you please apply this on bluetoot

Re: [PATCH] dma: Revert "dmaengine: mic_x100: add missing spin_unlock"

2016-01-04 Thread Lars-Peter Clausen
On 01/04/2016 04:35 AM, Vinod Koul wrote: > On Tue, Dec 22, 2015 at 07:35:23PM -0800, Ashutosh Dixit wrote: >> This reverts commit e958e079e254 ("dmaengine: mic_x100: add missing >> spin_unlock"). >> >> The above patch is incorrect. There is nothing wrong with the original >> code. The spin_lock is

Re: [PATCH 3/6] ACPI: add 2 parameters to function acpi dma controller register

2016-01-04 Thread Andy Shevchenko
On Mon, Jan 4, 2016 at 7:31 AM, Wang Hongcheng wrote: > As CSRT table will not always work, 2 arguments, base_request_line > and num are added to acpi dma controller register > as another way to get device request line. Please, check my comments below. > > Signed-off-by: Wang Hongcheng > --- >

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2016-01-04 Thread Leo Yan
On Mon, Jan 04, 2016 at 11:22:26AM +, Daniel Thompson wrote: > On 01/01/16 00:03, Leo Yan wrote: > >Hi Eduardo, > > > >Thanks for review. > > > >On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valentin wrote: > >>On Wed, Dec 30, 2015 at 06:38:40PM +0800, Leo Yan wrote: > >>>k_po/k_pu are in e

Re: [PATCH 4/6] dmaengine: pl330: add new items for pl330 private data

2016-01-04 Thread Andy Shevchenko
On Mon, Jan 4, 2016 at 7:31 AM, Wang Hongcheng wrote: > mcbuf_sz means bytes to allocate for MicroCode buffer. > flags is for irq sharing, default is non-shared, in AMD > Carrizo, pl330 shares IRQ with its corresponding UART device. > > Signed-off-by: Wang Hongcheng > --- > drivers/acpi/acpi_apd

Re: [PATCH 1/6] 8250/Kconfig: add config option CONFIG_SERIAL_8250_AMD

2016-01-04 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 01:31:36PM +0800, Wang Hongcheng wrote: > Add config option CONFIG_SERIAL_8250_AMD in use of AMD carrizo. > Because carrizo's UART DMA device is an amba device, it selects > ARM_AMBA option. Anything uses amba devices must select ARM_AMBA. > > Signed-off-by: Wang Hongcheng

Re: [PATCH 3/6] ACPI: add 2 parameters to function acpi dma controller register

2016-01-04 Thread Mika Westerberg
On Mon, Jan 04, 2016 at 01:31:38PM +0800, Wang Hongcheng wrote: > As CSRT table will not always work, 2 arguments, base_request_line > and num are added to acpi dma controller register > as another way to get device request line. > > Signed-off-by: Wang Hongcheng > --- > drivers/dma/acpi-dma.c

Re: [PATCH 6/6] arm64: switch to relative exception tables

2016-01-04 Thread Will Deacon
On Sun, Jan 03, 2016 at 05:05:57PM +0100, Ard Biesheuvel wrote: > Instead of using absolute addresses for both the exception location > and the fixup, use offsets relative to the exception table entry values. > Not only does this cut the size of the exception table in half, it is > also a prerequis

Re: [PATCH 5/6] dmaengine: pl330: provide ACPI dmaengine interface

2016-01-04 Thread Andy Shevchenko
On Mon, Jan 4, 2016 at 7:31 AM, Wang Hongcheng wrote: > register acpi_dma controller, so ACPI devices can request pl330 DMA > channel. Request line info is get from private data. > > Signed-off-by: Wang Hongcheng > --- > drivers/acpi/acpi_apd.c| 34 +- > drive

[PATCH 2/2] arm: configs: add kvm_defconfig

2016-01-04 Thread Andre Przywara
This new config enables KVM (and thus LPAE) on top of multi_v7_defconfig. This creates a kernel that can _host_ KVM guests, for guests a multi_v7_defconfig with virtio drivers is sufficient. Since LPAE kernels are not compatible with non-LPAE capable hardware, this has to be separate from the exist

[PATCH 1/2] arm: multi_v7_defconfig: Add virtio drivers

2016-01-04 Thread Andre Przywara
To make multi_v7_defconfig really "multi", let's add virtio drivers to allow booting a default kernel as a KVM/QEMU guest. MACH_VIRT is already defined, so we just add VIRTIO_BLK, VIRTIO_NET and VIRTIO_CONSOLE to actually make this kernel useful in a guest. Signed-off-by: Andre Przywara --- arch

[PATCH 0/2] arm: configs: improve KVM support

2016-01-04 Thread Andre Przywara
Hi, there doesn't seem to be a good generic defconfig which includes KVM support, so this config tends to get less testing. This mini-series addresses this with a two-fold approach: Patch 1/2 introduces VIRTIO drivers to the existing multi_v7_defconfig, so those kernels can be easily used as gues

Re: [PATCH 2/4] PCI: rcar: Support runtime PM link state L1 handling in pcie-rcar

2016-01-04 Thread Geert Uytterhoeven
Hi Phil, On Mon, Jan 4, 2016 at 3:18 PM, Phil Edworthy wrote: > On 21 December 2015 13:17, Geert Uytterhoeven wrote: >> On Mon, Dec 21, 2015 at 11:52 AM, Phil Edworthy >> wrote: >> > On 18 December 2015 14:04, Wolfram Sang wrote: >> >> > Since the hardware doesn't support hot plug, I believe thi

Re: [PATCH] mm/vmstat: fix overflow in mod_zone_page_state()

2016-01-04 Thread Vlastimil Babka
On 12/29/2015 01:07 PM, Heiko Carstens wrote: mod_zone_page_state() takes a "delta" integer argument. delta contains the number of pages that should be added or subtracted from a struct zone's vm_stat field. If a zone is larger than 8TB this will cause overflows. E.g. for a zone with a size slig

Build regressions/improvements in v4.4-rc8

2016-01-04 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.4-rc8[1] compared to v4.3[2]. Summarized: - build errors: +24/-11 - build warnings: +153/-107 JFYI, when comparing v4.4-rc8[1] to v4.4-rc7[3], the summaries are: - build errors: +19/-18 - build warnings: +30/-173 Not

Re: [PATCH] dma: Revert "dmaengine: mic_x100: add missing spin_unlock"

2016-01-04 Thread Vinod Koul
On Mon, Jan 04, 2016 at 03:35:34PM +0100, Lars-Peter Clausen wrote: > On 01/04/2016 04:35 AM, Vinod Koul wrote: > > On Tue, Dec 22, 2015 at 07:35:23PM -0800, Ashutosh Dixit wrote: > >> This reverts commit e958e079e254 ("dmaengine: mic_x100: add missing > >> spin_unlock"). > >> > >> The above patch

Re: [PATCH 2/4] ALSA: hdac: drop unused dev_to_hdac macro

2016-01-04 Thread Geliang Tang
On Mon, Jan 04, 2016 at 01:53:47PM +0530, Vinod Koul wrote: > On Mon, Dec 28, 2015 at 10:47:11PM +0800, Geliang Tang wrote: > > dev_to_hdac is not used anymore so drop it. > > No harm in keeping this for now as the systems using these will be coming > up and more users will be upstreamed... > Th

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

2016-01-04 Thread Josh Boyer
On Sat, Dec 26, 2015 at 9:03 PM, Andy Lutomirski wrote: > On Sat, Dec 26, 2015 at 1:51 PM, Serge E. Hallyn > wrote: >> On Sat, Dec 26, 2015 at 03:52:31AM +0100, Jann Horn wrote: >>> ptrace_has_cap() checks whether the current process should be >>> treated as having a certain capability for ptrace

Re: [PATCH v2 06/32] s390: reuse asm-generic/barrier.h

2016-01-04 Thread Martin Schwidefsky
On Mon, 4 Jan 2016 14:20:42 +0100 Peter Zijlstra wrote: > On Thu, Dec 31, 2015 at 09:06:30PM +0200, Michael S. Tsirkin wrote: > > On s390 read_barrier_depends, smp_read_barrier_depends > > smp_store_mb(), smp_mb__before_atomic and smp_mb__after_atomic match the > > asm-generic variants exactly. D

[PATCH 03/10] i2c-mux: move the slave side adapter management to i2c_mux_core

2016-01-04 Thread Peter Rosin
From: Peter Rosin All muxes have slave side adapters, many have some arbitrary number of them. Handle this in the mux core, so that drivers are simplified. Add i2c_mux_reserve_adapter that can be used when it is known in advance how many child adapters that is to be added. This avoids reallocati

[PATCH 02/10] i2c-mux: move select and deselect ops to i2c_mux_core

2016-01-04 Thread Peter Rosin
From: Peter Rosin The mux select and deselect ops are common to the mux most of the time, so store the ops in the mux core. Change the select and deselect op to work in terms of the mux core instead of the child adapter. No driver uses the child adapter anyway, and if it is needed in a future mu

[PATCH 04/10] i2c-mux: remove the mux dev pointer from the mux per channel data

2016-01-04 Thread Peter Rosin
From: Peter Rosin The dev pointer is readily available in the mux core struct, no point in keeping multiple copies around. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-mux.c | 24 drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 2 +- drivers/i2c/mu

[PATCH 10/10] i2c: pca954x: get rid of the i2c deadlock workaround

2016-01-04 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca954x.c | 32 ++-- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c index bd89da42b417..929ce28bc657

Re: [PATCH 1/2] arm: multi_v7_defconfig: Add virtio drivers

2016-01-04 Thread Arnd Bergmann
On Monday 04 January 2016 14:50:33 Andre Przywara wrote: > To make multi_v7_defconfig really "multi", let's add virtio drivers > to allow booting a default kernel as a KVM/QEMU guest. > MACH_VIRT is already defined, so we just add VIRTIO_BLK, VIRTIO_NET > and VIRTIO_CONSOLE to actually make this ke

[PATCH 06/10] i2c: allow adapter drivers to override the adapter locking

2016-01-04 Thread Peter Rosin
From: Peter Rosin Add i2c_lock_bus() and i2c_unlock_bus(), which call the new lock_bus and unlock_bus ops in the adapter. These funcs/ops take an additional flags argument that indicates for what purpose the adapter is locked. There are two flags, I2C_LOCK_ADAPTER and I2C_LOCK_SEGMENT, but they

[PATCH 07/10] i2c: muxes always lock the parent adapter

2016-01-04 Thread Peter Rosin
From: Peter Rosin Instead of checking for i2c parent adapters for every lock/unlock, simply override the locking for muxes to always lock/unlock the parent adapter directly. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core.c | 21 +++-- drivers/i2c/i2c-mux.c | 27 ++

[PATCH 09/10] i2c: pca9541: get rid of the i2c deadlock workaround

2016-01-04 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca9541.c | 82 +++-- 1 file changed, 15 insertions(+), 67 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mux-pca9541.c index 9ee0d8b70283..7d2e5db

[PATCH 05/10] i2c-mux: pinctrl: get rid of the driver private struct device pointer

2016-01-04 Thread Peter Rosin
From: Peter Rosin There is a copy of the device pointer in the mux core. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pinctrl.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/i2c-mux-p

Re: [PATCH 05/13] perf tools: Add dynamic sort key for tracepoint events

2016-01-04 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 23, 2015 at 02:07:02AM +0900, Namhyung Kim escreveu: > With dynamic sort keys, you can use as a sort key. Those > dynamic keys are checked and created on demand. For instance, below is > to sort by next_pid field on the same data file. > > $ perf report -s comm,sched:sched_switch.

[PATCH 08/10] i2c-mux: relax locking of the top i2c adapter during i2c controlled muxing

2016-01-04 Thread Peter Rosin
From: Peter Rosin With a i2c topology like the following GPIO ---| -- BAT1 | v / I2C -+--+ MUX | \ EEPROM -- BAT2 there is a locking problem with the GPIO c

Re: Build regressions/improvements in v4.4-rc8

2016-01-04 Thread Geert Uytterhoeven
On Mon, Jan 4, 2016 at 4:01 PM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.4-rc8[1] to v4.4-rc7[3], the summaries are: > - build errors: +19/-18 + /home/kisskb/slave/src/arch/arm/kernel/ftrace.c: error: implicit declaration of function 'flush_tlb_all' [-Werror=implicit-function-decla

[PATCH 01/10] i2c-mux: add common core data for every mux instance

2016-01-04 Thread Peter Rosin
From: Peter Rosin The initial core mux structure starts off small with only the parent adapter pointer, which all muxes have, and a priv pointer for mux driver private data. Add i2c_mux_alloc function to unify the creation of a mux. Where appropriate, pass around the mux core structure instead

[PATCH 00/10] i2c mux cleanup and locking update

2016-01-04 Thread Peter Rosin
From: Peter Rosin Hi! I have a pair of boards with this i2c topology: GPIO ---| -- BAT1 | v / I2C -+--B---+ MUX | \ EEPROM -- BAT2 (B denotes the bound

Re: [PATCH 06/13] perf tools: Try to show pretty printed output for dynamic sort keys

2016-01-04 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 23, 2015 at 02:07:03AM +0900, Namhyung Kim escreveu: > Each tracepoint event has format string for print to improve > readability. Try to parse the output and match the field name. If it > finds one, use that for the result. If not, fallbacks to the original > output. > > For exampl

Re: [PATCH v2 RESEND] usb: Use memdup_user to reuse the code

2016-01-04 Thread Dan Carpenter
On Wed, Dec 30, 2015 at 09:15:55AM +, Pathak, Rahul (R.) wrote: > Hello Greg, > > This patch is not yet merged, its already been reviewed and acked by Alan. > Relax. Everyone is on vacation. This stuff is not life or death that it must be done right away. regards, dan carpenter -- To uns

Re: [PATCH v3] i2c: designware: Do not require clock when SSCN and FFCN are provided

2016-01-04 Thread Suravee Suthikulpanit
Hi Andy, On 12/23/2015 12:27 PM, Andy Shevchenko wrote: diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c >b/drivers/i2c/busses/i2c-designware-platdrv.c >index 8ffc36b..04edd09 100644 >--- a/drivers/i2c/busses/i2c-designware-platdrv.c >+++ b/drivers/i2c/busses/i2c-designware-platdrv.c Ca

Re: [PATCH 2/2] arm: configs: add kvm_defconfig

2016-01-04 Thread Arnd Bergmann
On Monday 04 January 2016 14:50:34 Andre Przywara wrote: > This new config enables KVM (and thus LPAE) on top of > multi_v7_defconfig. This creates a kernel that can _host_ KVM guests, > for guests a multi_v7_defconfig with virtio drivers is sufficient. > Since LPAE kernels are not compatible with

Re: [PATCH] arm64: entry.S: add missing trace_hardirqs_off

2016-01-04 Thread Catalin Marinas
On Sat, Dec 26, 2015 at 01:57:18PM +0800, Zhi-zhou Zhang wrote: > Before calling schedule, we should trace hardirqs correctly. If not, > we get following warning message when enabled CONFIG_DEBUG_LOCKDEP: > > [9.243073] DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled) > [ ... ] > [9.262681]

[PATCH v4] i2c: designware: Do not require clock when SSCN and FFCN are provided

2016-01-04 Thread Suravee Suthikulpanit
The current driver uses input clock source frequency to calculate values for [SS|FS]_[HC|LC] registers. However, when booting ACPI, we do not currently have a good way to provide the frequency information. Instead, we can leverage the SSCN and FFCN ACPI methods, which can be used to directly provid

Re: [PATCH] ASoC: cs35l32: avoid uninitialized variable access

2016-01-04 Thread Arnd Bergmann
On Saturday 02 January 2016 14:17:46 Mark Brown wrote: > On Sat, Jan 02, 2016 at 12:19:52AM +0100, Arnd Bergmann wrote: > > > - if (i2c_client->dev.of_node) { > > + if (IS_ENABLED(CONFIG_OF) && i2c_client->dev.of_node) { > > This would be a lot nicer if there was an __alwa

Re: [PATCH 10/10] i2c: pca954x: get rid of the i2c deadlock workaround

2016-01-04 Thread Lars-Peter Clausen
On 01/04/2016 04:10 PM, Peter Rosin wrote: > From: Peter Rosin > > Signed-off-by: Peter Rosin It would be quite good if the commit messaged said why it is now safe to remove the workaround. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to m

Re: [PATCH] ASoC: cs35l32: avoid uninitialized variable access

2016-01-04 Thread Russell King - ARM Linux
On Mon, Jan 04, 2016 at 04:17:47PM +0100, Arnd Bergmann wrote: > On Saturday 02 January 2016 14:17:46 Mark Brown wrote: > > On Sat, Jan 02, 2016 at 12:19:52AM +0100, Arnd Bergmann wrote: > > > > > - if (i2c_client->dev.of_node) { > > > + if (IS_ENABLED(CONFIG_OF) && i2c_cli

[PATCH] printk: add cpu number to the recursion_msg message

2016-01-04 Thread Sergey Senozhatsky
`recursion_bug' occupies 4 bytes to just tell us there was a recent recursion bug (basically 'bool'). Make it a bit more informative and keep in `recursion_bug' smp_processor_id of the CPU (the most recent one) that has caused a recursive printk bug. For instance, the error message will change from

Re: Build regressions/improvements in v4.4-rc8

2016-01-04 Thread Guenter Roeck
On 01/04/2016 07:04 AM, Geert Uytterhoeven wrote: On Mon, Jan 4, 2016 at 4:01 PM, Geert Uytterhoeven wrote: JFYI, when comparing v4.4-rc8[1] to v4.4-rc7[3], the summaries are: - build errors: +19/-18 + /home/kisskb/slave/src/arch/arm/kernel/ftrace.c: error: implicit declaration of funct

Re: [PATCH] net: Fix potential NULL pointer dereference in __skb_try_recv_datagram

2016-01-04 Thread Eric Dumazet
On Mon, 2016-01-04 at 10:10 +0100, Jacob Siverskog wrote: > On Wed, Dec 30, 2015 at 11:30 PM, Cong Wang wrote: > > On Wed, Dec 30, 2015 at 6:30 AM, Jacob Siverskog > > wrote: > >> On Wed, Dec 30, 2015 at 2:26 PM, Eric Dumazet wrote: > >>> How often can you trigger this bug ? > >> > >> Ok. I don'

Re: [PATCH v2 20/32] metag: define __smp_xxx

2016-01-04 Thread James Hogan
Hi Peter, On Mon, Jan 04, 2016 at 02:41:28PM +0100, Peter Zijlstra wrote: > On Thu, Dec 31, 2015 at 09:08:22PM +0200, Michael S. Tsirkin wrote: > > +#ifdef CONFIG_SMP > > +#define fence() metag_fence() > > +#else > > +#define fence()do { } while (0) > > #endif > > James, it strikes m

Re: [PATCH v2] ehci-hcd: Cleanup memory resources when ehci_halt fails

2016-01-04 Thread Alan Stern
On Mon, 4 Jan 2016, Jia-Ju Bai wrote: > The driver calls ehci_mem_init to allocate memory resources. > But these resources are not freed when ehci_halt fails. > > This patch adds "ehci_mem_cleanup" in error handling code to fix this problem. > > Signed-off-by: Jia-Ju Bai > --- > drivers/usb/h

Re: commit e34d65696d2e broke stmmac ethernet on socfpga

2016-01-04 Thread Dinh Nguyen
On 01/01/2016 02:49 AM, Romain Perier wrote: > Hi all, > > Same here on rockchip. > See "[PATCH] stmmac: Don't exit mdio registration when mdio subnode is > not found in the DTS" > > Regards, > Romain > > 2015-12-18 18:45 GMT+01:00 Dinh Nguyen : >> Hi, >> >> It appears that commit e34d65696d2e '

Re: [PATCH v2] ehci-hcd: Disable memory-write-invalidate when the driver is removed

2016-01-04 Thread Alan Stern
On Mon, 4 Jan 2016, Jia-Ju Bai wrote: > The driver calls pci_set_mwi to enable memory-write-invalidate when it > is initialized, but does not call pci_clear_mwi when it is removed. Many > other drivers calls pci_clear_mwi when pci_set_mwi is called, such as > r8169, 8139cp and e1000. > > This

Re: [PATCH] printk: add cpu number to the recursion_msg message

2016-01-04 Thread Sergey Senozhatsky
On (01/05/16 00:11), Sergey Senozhatsky wrote: > `recursion_bug' occupies 4 bytes to just tell us there was a recent > recursion bug (basically 'bool'). Make it a bit more informative and > keep in `recursion_bug' smp_processor_id of the CPU (the most recent > one) that has caused a recursive print

Re: [PATCH v4.1 03/13] tools lib traceevent: Factor out and export print_event_field[s]

2016-01-04 Thread Steven Rostedt
On Wed, 23 Dec 2015 22:08:41 +0900 Namhyung Kim wrote: > The print_event_field() and print_event_fields() are to print basic > information of a given field or event without the print format. They'll > be used by dynamic sort keys later. Hi Namhyung, > diff --git a/tools/lib/traceevent/event-p

<    1   2   3   4   5   6   7   8   9   >