[PATCH v2 4/6] init: allow initcall tables to be emitted using relative references

2017-08-18 Thread Ard Biesheuvel
Allow the initcall tables to be emitted using relative references that are only half the size on 64-bit architectures and don't require fixups at runtime on relocatable kernels. Cc: Petr Mladek Cc: Sergey Senozhatsky Cc: Steven Rostedt Cc: James Morris Cc: "Serge E. Hallyn" Signed-off-by: Ard

[PATCH v2 2/6] module: use relative references for __ksymtab entries

2017-08-18 Thread Ard Biesheuvel
An ordinary arm64 defconfig build has ~64 KB worth of __ksymtab entries, each consisting of two 64-bit fields containing absolute references, to the symbol itself and to a char array containing its name, respectively. When we build the same configuration with KASLR enabled, we end up with an addit

[PATCH v2 5/6] drivers: pci: add support for relative addressing in quirk tables

2017-08-18 Thread Ard Biesheuvel
Allow the PCI quirk tables to be emitted in a way that avoids absolute references to the hook functions. This reduces the size of the entries, and, more importantly, makes them invariant under runtime relocation (e.g., for KASLR) Cc: Bjorn Helgaas Signed-off-by: Ard Biesheuvel --- drivers/pci/q

[PATCH v2 6/6] kernel: tracepoints: add support for relative references

2017-08-18 Thread Ard Biesheuvel
To avoid the need for relocating absolute references to tracepoint structures at boot time when running relocatable kernels (which may take a disproportionate amount of space), add the option to emit these tables as relative references instead. Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: A

[PATCH v2 3/6] treewide: add missing trailing semicolons to initcall() invocations

2017-08-18 Thread Ard Biesheuvel
Before modifying the initcall() code to add support for relative references in the initcall sections, fix the existing code that lacks the required trailing semicolon so we can remove it from the macros. Signed-off-by: Ard Biesheuvel --- arch/arm64/kernel/perf_event.c | 2 +- arch/s390

[PATCH v2 0/6] add support for relative references in special sections

2017-08-18 Thread Ard Biesheuvel
This adds support for emitting special sections such as initcall arrays, PCI fixups and tracepoints as relative references rather than absolute references. This reduces the size by 50% on 64-bit architectures, but more importantly, it removes the need for carrying relocation metadata for these sect

Re: [PATCH v3 0/2] cpuset: Allow v2 behavior in v1 cgroup

2017-08-18 Thread Tejun Heo
On Thu, Aug 17, 2017 at 03:33:08PM -0400, Waiman Long wrote: > v2->v3: > - Change the generic CGRP_ROOT_V2_MODE flag to a cpuset specific >CGRP_ROOT_CPUSET_V2_MODE flag. > > v1->v2: > - Drop the kernel command line option and use cgroupfs mount option >instead to enable v2 controller beh

[PATCH net-next 3/3] net: hns3: Fixes the static check warning due to missing unsupp L3 proto check

2017-08-18 Thread Salil Mehta
This patch fixes the static check warning due to missing handling leg of unsupported L3 protocol type in the hns3_get_l4_protocol() function. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Reported-by: Dan Carpenter Signed-off-by: Salil Mehta --- drivers/ne

Re: [PATCH] tpm: vtpm: constify vio_device_id

2017-08-18 Thread Michael Ellerman
Jason Gunthorpe writes: > On Thu, Aug 17, 2017 at 11:04:21PM +0530, Arvind Yadav wrote: >> vio_device_id are not supposed to change at runtime. All functions >> working with vio_device_id provided by work with >> const vio_device_id. So mark the non-const structs as const. >> >> Signed-off-by:

[PATCH net-next 0/3] Misc. Bug fixes for HNS3 Ethernet Driver

2017-08-18 Thread Salil Mehta
This patch-set fixes various bugs reported by community. Salil Mehta (3): net: hns3: Fixes the missing u64_stats_fetch_begin_irq in 64-bit stats fetch net: hns3: Fixes the static checker error warning in hns3_get_link_ksettings() net: hns3: Fixes the static check warning due to missi

[PATCH net-next 2/3] net: hns3: Fixes the static checker error warning in hns3_get_link_ksettings()

2017-08-18 Thread Salil Mehta
This patch fixes the static check error warning in hns3_get_link_ksettings() function by re-arranging the code. Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 Driver") Reported-by: Dan Carpenter Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 85

[PATCH net-next 1/3] net: hns3: Fixes the missing u64_stats_fetch_begin_irq in 64-bit stats fetch

2017-08-18 Thread Salil Mehta
This patch fixes the missing u64_stats_fetch_begin_irq() while trying to atomically do 64-bit RX/TX fetch. We did not get any error during test as our SoC is 64-bit so all of these seq/lock operations results in NOOP. As such, this seq lock supports has been added for the sake of completion if thi

Re: [PATCH] net: sunrpc: svcsock: fix NULL-pointer exception

2017-08-18 Thread Vadim Lomovtsev
On Fri, Aug 18, 2017 at 07:16:45AM -0400, Jeff Layton wrote: > On Fri, 2017-08-18 at 07:08 -0400, Vadim Lomovtsev wrote: > > Hi Jeff, > > > > On Fri, Aug 18, 2017 at 06:27:32AM -0400, Jeff Layton wrote: > > > On Fri, 2017-08-18 at 06:00 -0400, Vadim Lomovtsev wrote: > > > > While running nfs/conne

[net-next PATCH] ipv6: fix false-postive maybe-uninitialized warning

2017-08-18 Thread Arnd Bergmann
Adding a lock around one of the assignments prevents gcc from tracking the state of the local 'fibmatch' variable, so it can no longer prove that 'dst' is always initialized, leading to a bogus warning: net/ipv6/route.c: In function 'inet6_rtm_getroute': net/ipv6/route.c:3659:2: error: 'dst' may b

Re: [PATCH v2 11/16] dmaengine: bcm-sba-raid: Peek mbox when we have no free requests

2017-08-18 Thread Anup Patel
On Thu, Aug 17, 2017 at 12:10 PM, Vinod Koul wrote: > On Tue, Aug 01, 2017 at 04:07:55PM +0530, Anup Patel wrote: >> When setting up RAID array on several NVMe disks we observed that >> sba_alloc_request() start failing (due to no free requests left) >> and RAID array setup becomes very slow. >> >

[PATCH net-next] net: hns3: Add support to change MTU in hardware & netdev

2017-08-18 Thread Salil Mehta
This patch adds the following support to the HNS3 driver: 1. Support to change the Maximum Transmission Unit of a netdevice and of a port in hardware . 2. Initializes the supported MTU range for the netdevice. Signed-off-by: lipeng Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hn

Re: [PATCH 2/3] crypto: engine - find request type with cra_type

2017-08-18 Thread Corentin Labbe
On Fri, Aug 18, 2017 at 04:28:37PM +0800, Herbert Xu wrote: > On Mon, Aug 14, 2017 at 03:17:24PM +0200, Corentin Labbe wrote: > > The current method for finding request type is based on crypto_tfm_alg_type. > > > > But in case of skcipher, it is the same than ablkcipher. > > Using cra_type for thi

Re: [PATCH] pci: dwc: Clear MSI interrupt status after it is handled

2017-08-18 Thread Joao Pinto
Hello, Às 12:24 PM de 8/10/2017, Faiz Abbas escreveu: > If the interrupt status is cleared before it is handled, it is possible > that another interrupt will trigger while servicing the previous one. > This is causing timeouts in some wireless lan cards which use pcie. > Therefore, clear MSI inter

Re: [PATCH v2 6/6] kernel: tracepoints: add support for relative references

2017-08-18 Thread Ard Biesheuvel
On 18 August 2017 at 12:26, Ard Biesheuvel wrote: > To avoid the need for relocating absolute references to tracepoint > structures at boot time when running relocatable kernels (which may > take a disproportionate amount of space), add the option to emit > these tables as relative references inst

Re: [PATCH v4 1/9] ASoC: rt5514: Avoid legacy dai naming

2017-08-18 Thread Mark Brown
On Fri, Aug 18, 2017 at 11:11:39AM +0800, Jeffy Chen wrote: > Currently we are using devm_snd_soc_register_component, which would > use legacy dai naming when dai drv id is zero. > > Set a non-zero dai drv id to use dai drv name for dai name. Why? This is clearly not good, we shouldn't be expect

Re: [PATCH] Adding support of RLIMIT_CPUNS

2017-08-18 Thread Michal Hocko
Appart from Andrew said about the usecase make sure to CC linux-api for any user visible interface change. On Thu 17-08-17 22:45:45, Григорий Резников wrote: > To set time limit for process now we can use RLIMIT_CPU. > However, it has precision up to one second and it can be > too big for some pur

Re: [PATCHv3 2/6] dt-bindings: sound: add motorola,cpcap-audio-codec

2017-08-18 Thread Mark Brown
On Thu, Aug 10, 2017 at 09:53:59AM -0700, Tony Lindgren wrote: > * Sebastian Reichel [170727 02:02]: > > I don't follow you here. Why can't other parts of the chip use the > > same supply? Regarding the other point: Handling the audio-codec They can, they know they're part of the parent chip and

[PATCH v4 0/1] crypto: engine - Permit to enqueue skcipher request

2017-08-18 Thread Corentin Labbe
Hello The crypto engine could actually only enqueue hash and ablkcipher request. This patch serie permit it to enqueue skcipher requests by adding all necessary functions. Changes since v3 - Use cra_type only for distinguish ablkcipher from skcipher Changes since v2 - added two patch for finding

[PATCH v4 1/1] crypto: engine - Permit to enqueue skcipher request

2017-08-18 Thread Corentin Labbe
The crypto engine could actually only enqueue hash and ablkcipher request. This patch permit it to enqueue skcipher requests by adding all necessary functions. Signed-off-by: Corentin Labbe --- crypto/crypto_engine.c | 120 include/crypto/engine.

Applied "ASoC: mediatek: switch to use platform_get_irq_byname()" to the asoc tree

2017-08-18 Thread Mark Brown
The patch ASoC: mediatek: switch to use platform_get_irq_byname() has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "ASoC: mediatek: Add interrupt-names property in binding text" to the asoc tree

2017-08-18 Thread Mark Brown
The patch ASoC: mediatek: Add interrupt-names property in binding text has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours

Applied "ASoC: tegra: Remove SoC-specific Kconfig depends and selects" to the asoc tree

2017-08-18 Thread Mark Brown
The patch ASoC: tegra: Remove SoC-specific Kconfig depends and selects has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours

Applied "spi: omap: Allocate bus number from spi framework" to the spi tree

2017-08-18 Thread Mark Brown
The patch spi: omap: Allocate bus number from spi framework has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Re: [PATCH v3 2/9] ASoC: rockchip: Remove obsolete dmic-delay

2017-08-18 Thread Mark Brown
On Fri, Aug 18, 2017 at 09:41:54AM +0800, jeffy wrote: > On 08/18/2017 01:11 AM, Mark Brown wrote: > > On Thu, Aug 17, 2017 at 12:44:10PM +0800, Jeffy Chen wrote: > > > -Optional properties: > > > -- dmic-wakeup-delay-ms : specify delay time (ms) for DMIC ready. > > > - If this option is specifie

[PATCH] spmi: pmic-arb: Enforce the ownership check optionally

2017-08-18 Thread Kiran Gunda
The peripheral ownership check is not necessary on single master platforms. Hence, enforce the peripheral ownership check optioanlly. Signed-off-by: Kiran Gunda --- This patch depends on the below patch series. Please take this patch along with this series. [PATCH V2 00/12]: spmi: pmic-arb: Supp

Re: [PATCH v7 1/4] powerpc/fadump: reduce memory consumption for capture kernel

2017-08-18 Thread Michal Suchánek
On Fri, 18 Aug 2017 16:20:53 +0530 Hari Bathini wrote: > Hi Michal, > > > Thanks for the patches. I tried testing with the patches: > > [0.00] fadump: Firmware-assisted dump is active. > [0.00] fadump: Modifying command line to enforce the > additional parameters passed through

Re: [PATCH] kvm: VMX: do not use vm-exit instruction length for fast MMIO

2017-08-18 Thread David Hildenbrand
On 16.08.2017 15:34, Paolo Bonzini wrote: > Microsoft pointed out privately to me that KVM's handling of > KVM_FAST_MMIO_BUS is invalid. Using skip_emulation_instruction is invalid > in EPT misconfiguration vmexit handlers, because neither EPT violations > nor misconfigurations are listed in the m

Re: linux-next: build warnings after merge of the staging tree

2017-08-18 Thread JB Van Puyvelde
On Thu, 17 Aug 2017 10:57:43 -0700 Greg KH wrote: > On Mon, Jul 31, 2017 at 03:02:27PM +1000, Stephen Rothwell wrote: > > Hi Greg, > > > > After merging the staging tree, today's linux-next build (x86_64 > > allmodconfig) produced this warning: > > > > drivers/staging/media/atomisp/i2c/imx/imx.

[PATCH 05/14] ASoC: hisilicon: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/hisilicon/hi6210-i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH 06/14] ASoC: intel: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 6 +++--- sound/soc/intel/skylake

[PATCH 13/14] ASoC: ux500: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/ux500/ux500_msp_dai.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH 11/14] ASoC: sunxi: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/sunxi/sun8i-codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 00/14] constify asoc snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Arvind Yadav (14): [PATCH 01/14] ASoC: blackfin: constify snd_soc_dai_ops structures [PATCH 02/14] ASoC: codec

[PATCH 01/14] ASoC: blackfin: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/blackfin/bf6xx-i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 14/14] ASoC: zte: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/zte/zx-i2s.c | 2 +- sound/soc/zte/zx-spdif.c | 2 +- sound/soc/zte/

[PATCH 12/14] ASoC: tegra: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/tegra/tegra30_i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 10/14] ASoC: spear: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/spear/spdif_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 08/14] ASoC: pxa: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/pxa/mmp-sspa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 09/14] ASoC: rockchip: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/rockchip/rockchip_pdm.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH 07/14] ASoC: mediatek: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 2 +- 1 file changed, 1 insertion(+

[PATCH 03/14] ASoC: dwc: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/dwc/dwc-i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH 04/14] ASoC: fsl: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/fsl/fsl_asrc.c | 2 +- sound/soc/fsl/fsl_esai.c | 2 +- sound/soc/fs

[PATCH 02/14] ASoC: codecs: constify snd_soc_dai_ops structures

2017-08-18 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/codecs/cs42l42.c | 2 +- sound/soc/codecs/es8316.c

[ANNOUNCE] v4.11.12-rt10

2017-08-18 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.11.12-rt10 patch set. Changes since v4.11.12-rt9: - A tweak to scheduler to let it know that a task is in a migration disabled region so there are less possible tasks to migrate. Idea and patch by Daniel Bristot de Oliveira. - A fix for

Re: [ANNOUNCE] 4.1.42-rt50

2017-08-18 Thread Sebastian Andrzej Siewior
On 2017-08-17 13:53:27 [-0500], Julia Cartwright wrote: > > Ah! Thanks. Indeed. I did see the upstream-queued version get cc'd to > linux-rt-users, but didn't see the rcu_irq_{enter,exit}_irqson() > addition, assuming it to be what landed in rt-devel. > > Will you be fixing this up in 4.11-rt?

[GIT PULL] sound fixes for 4.13-rc6

2017-08-18 Thread Takashi Iwai
Linus, please pull sound fixes for v4.13-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.13-rc6 The topmost commit is 0b36f2bd28d040acedb52f4327eb2441afe4f514 sound fixes for 4.13-rc6 A co

Re: [PATCH net-next] tcp: export drops counter to /proc/net/tcp{,6}

2017-08-18 Thread Eric Dumazet
On Fri, 2017-08-18 at 03:21 -0700, Stéphan Gorget wrote: > Those counters are exported for raw and udp but not for tcp, though they > are incremented. > > An example where it is useful is chasing listen overflow. Listen overflow > are counted as a global counter in LINUX_MIB_LISTENOVERFLOWS access

Re: [PATCH 3/3] soc: xilinx: zynqmp: Add firmware interface

2017-08-18 Thread Michal Simek
On 17.8.2017 23:11, Arnd Bergmann wrote: > On Thu, Aug 17, 2017 at 12:48 PM, Michal Simek > wrote: >> On 16.8.2017 17:05, Arnd Bergmann wrote: >>> On Wed, Aug 16, 2017 at 4:34 PM, Michal Simek >>> wrote: >>> >>> Looks good, just make sure you also check with sparse (make C=1) >>> to ensure you

Re: [PATCH 02/14] ASoC: codecs: constify snd_soc_dai_ops structures

2017-08-18 Thread Mark Brown
On Fri, Aug 18, 2017 at 05:35:59PM +0530, Arvind Yadav wrote: > sound/soc/codecs/cs42l42.c | 2 +- > sound/soc/codecs/es8316.c | 2 +- > sound/soc/codecs/hdac_hdmi.c | 2 +- > sound/soc/codecs/inno_rk3036.c | 2 +- > sound/soc/codecs/max9867.c

Re: [PATCH 01/14] ASoC: blackfin: constify snd_soc_dai_ops structures

2017-08-18 Thread Mark Brown
On Fri, Aug 18, 2017 at 05:35:58PM +0530, Arvind Yadav wrote: > snd_soc_dai_ops are not supposed to change at runtime. All functions > working with snd_soc_dai_ops provided by work with > const snd_soc_dai_ops. So mark the non-const structs as const. A version of this patch has already been appli

Re: [PATCH 04/14] ASoC: fsl: constify snd_soc_dai_ops structures

2017-08-18 Thread Mark Brown
On Fri, Aug 18, 2017 at 05:36:01PM +0530, Arvind Yadav wrote: > snd_soc_dai_ops are not supposed to change at runtime. All functions > working with snd_soc_dai_ops provided by work with > const snd_soc_dai_ops. So mark the non-const structs as const. Same here... signature.asc Description: PGP

Re: [PATCH 03/14] ASoC: dwc: constify snd_soc_dai_ops structures

2017-08-18 Thread Mark Brown
On Fri, Aug 18, 2017 at 05:36:00PM +0530, Arvind Yadav wrote: > snd_soc_dai_ops are not supposed to change at runtime. All functions > working with snd_soc_dai_ops provided by work with > const snd_soc_dai_ops. So mark the non-const structs as const. A version of this has also already been applie

Re: [PATCH 05/14] ASoC: hisilicon: constify snd_soc_dai_ops structures

2017-08-18 Thread Mark Brown
On Fri, Aug 18, 2017 at 05:36:02PM +0530, Arvind Yadav wrote: > snd_soc_dai_ops are not supposed to change at runtime. All functions > working with snd_soc_dai_ops provided by work with > const snd_soc_dai_ops. So mark the non-const structs as const. ...and this. I'll not reply to any of the oth

Re: [PATCH 4/4] platform/x86: wmi: Fix check for method instance number

2017-08-18 Thread Andy Shevchenko
On Thu, Aug 17, 2017 at 6:24 PM, Darren Hart wrote: > On Sat, Aug 12, 2017 at 09:44:18AM +0200, Pali Rohár wrote: >> instance_count defines number of instances of data block and instance >> itself is indexed from zero, which means first instance has number 0. >> Therefore check for invalid instanc

Re: [RFC v1 1/6] platform/x86: intel_pmc_ipc: Fix error handling in ipc_pci_probe()

2017-08-18 Thread Andy Shevchenko
On Tue, Aug 1, 2017 at 9:13 PM, wrote: > From: Kuppuswamy Sathyanarayanan > > This patch adds proper error handling for failure cases in > ipc_pci_probe() function. > > Signed-off-by: Kuppuswamy Sathyanarayanan > > --- > drivers/platform/x86/intel_pmc_ipc.c | 23 ++- > 1 fi

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-18 Thread Mel Gorman
On Thu, Aug 17, 2017 at 01:44:40PM -0700, Linus Torvalds wrote: > On Thu, Aug 17, 2017 at 1:18 PM, Liang, Kan wrote: > > > > Here is the call stack of wait_on_page_bit_common > > when the queue is long (entries >1000). > > > > # Overhead Trace output > > # .. > > # > >

[PATCH v3 0/4] net: stmmac: Detect PHY location with phy-is-integrated

2017-08-18 Thread Corentin Labbe
Hello The current way to find if the PHY is internal is to compare DT phy-mode and emac_variant/internal_phy. But it will negate a possible future SoC where an external PHY use the same phy mode than the integrated one. This patchs series adds a new way to find if the PHY is integrated, via the p

[PATCH v3 3/4] net: stmmac: register parent MDIO node for sun8i-h3-emac

2017-08-18 Thread Corentin Labbe
In case of a MDIO switch, the registered MDIO node should be the parent of the PHY. Otherwise of_phy_connect will fail. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH v3 4/4] dt-bindings: net: dwmac-sun8i: update documentation about integrated PHY

2017-08-18 Thread Corentin Labbe
This patch add documentation about the MDIO switch used on sun8i-h3-emac for integrated PHY. Signed-off-by: Corentin Labbe --- .../devicetree/bindings/net/dwmac-sun8i.txt| 112 +++-- 1 file changed, 105 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/

Re: [RFC v1 2/6] platform/x86: intel_pmc_ipc: Use devm_* calls in driver probe

2017-08-18 Thread Andy Shevchenko
On Tue, Aug 1, 2017 at 9:13 PM, wrote: > From: Kuppuswamy Sathyanarayanan > > This patch cleans up unnecessary free/alloc calls in this driver > by using devm_* calls. > static int ipc_plat_remove(struct platform_device *pdev) > { > - struct resource *res; > - > sysfs_remove_grou

[PATCH v3 2/4] net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated

2017-08-18 Thread Corentin Labbe
The current way to find if the phy is internal is to compare DT phy-mode and emac_variant/internal_phy. But it will negate a possible future SoC where an external PHY use the same phy mode than the internal one. This patch adds a new way to find if the PHY is internal, via the phy-is-integrated pr

[PATCH v3 1/4] ARM: dts: sunxi: h3/h5: represent the mdio switch used by sun8i-h3-emac

2017-08-18 Thread Corentin Labbe
Since dwmac-sun8i could use either an integrated PHY or an external PHY (which could be at same MDIO address), we need to represent this selection by a MDIO switch. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 28 +++- 1 file changed, 23 insertio

Applied "ASoC: ux500: constify snd_soc_dai_ops structures" to the asoc tree

2017-08-18 Thread Mark Brown
The patch ASoC: ux500: constify snd_soc_dai_ops structures has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

Applied "ASoC: codecs: constify snd_soc_dai_ops structures" to the asoc tree

2017-08-18 Thread Mark Brown
The patch ASoC: codecs: constify snd_soc_dai_ops structures has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Re: 32-bit powerpc, aty128fb: vmap allocation for size 135168 failed

2017-08-18 Thread Michael Ellerman
Meelis Roos writes: > I was trying 4.13.0-rc5-00075-gac9a40905a61 on my PowerMac G4 with 1G > RAM and after some time of sddm respawning and X trying to restart, > dmesg is full of messages about vmap allocation failures. Did it just start happening? ie. did rc4 work? cheers

Re: 32-bit powerpc, aty128fb: vmap allocation for size 135168 failed

2017-08-18 Thread Meelis Roos
> > I was trying 4.13.0-rc5-00075-gac9a40905a61 on my PowerMac G4 with 1G > > RAM and after some time of sddm respawning and X trying to restart, > > dmesg is full of messages about vmap allocation failures. > > Did it just start happening? ie. did rc4 work? No, rc4 was the first one I tried af

Re: [PATCH] switchdev: documentation: minor typo fixes

2017-08-18 Thread Jonathan Corbet
On Fri, 18 Aug 2017 13:34:35 +1200 Chris Packham wrote: > Two typos in switchdev.txt This looks good, but davem likes to take networking-related docs patches through his tree. Can I suggest resending with a copy to net...@vger.kernel.org? Thanks, jon

Re: [PATCH] cpufreq: Don't send callback pointer to cpufreq_add_update_util_hook()

2017-08-18 Thread Rafael J. Wysocki
On Friday, August 18, 2017 6:19:44 AM CEST Viresh Kumar wrote: > On 17-08-17, 17:31, Rafael J. Wysocki wrote: > > On Thursday, August 17, 2017 2:04:48 PM CEST Viresh Kumar wrote: > > > The callers already have the structure (struct update_util_data) where > > > the function pointer is saved by cpuf

Re: [RFC v1 3/6] platform/x86: intel_pmc_ipc: Use MFD framework to create dependent devices

2017-08-18 Thread Andy Shevchenko
On Tue, Aug 1, 2017 at 9:13 PM, wrote: > Currently, we have lot of repetitive code in dependent device resource > allocation and device creation handling code. This logic can be improved if > we use MFD framework for dependent device creation. This patch adds this > support. > +static int ipc_cr

Re: [PATCH] kvm: VMX: do not use vm-exit instruction length for fast MMIO

2017-08-18 Thread Paolo Bonzini
On 18/08/2017 13:57, David Hildenbrand wrote: > What about a hack: > > 1. clear instruction length when entering > 2. check if instruction length is set when trying to forward the RIP > 2a. if set, use it > 2b. if not set, compute it It's undefined, so we don't know that the instruction length re

Re: [PATCH 3/3] KVM: x86: fix use of L1 MMIO areas in nested guests

2017-08-18 Thread Radim Krčmář
2017-08-18 09:59+0200, David Hildenbrand: > On 17.08.2017 18:36, Paolo Bonzini wrote: > > There is currently some confusion between nested and L1 GPAs. The > > assignment to "direct" in kvm_mmu_page_fault tries to fix that, but > > it is not enough. What this patch does is fence off the MMIO cach

[PATCH] sdhci: remove redundant check of zero slots

2017-08-18 Thread Colin King
From: Colin Ian King Slots can never be zero, PCI_SLOTS_INFO_SLOTS returns a value in the range 0..7; slots is one more than this, 1..8 so cannot be zero and so the zero check is redundant and can be removed. Detected by CoverityScan, CID#744269 ("Logically Dead Code") Signed-off-by: Colin Ian

Re: [PATCH 2/3] KVM: x86: Avoid guest page table walk when gpa_available is set

2017-08-18 Thread Radim Krčmář
2017-08-18 09:57+0200, David Hildenbrand: > > > +++ b/arch/x86/kvm/x86.c > > @@ -4657,25 +4657,18 @@ static int emulator_read_write_onepage(unsigned > > long addr, void *val, > > */ > > if (vcpu->arch.gpa_available && > > emulator_can_use_gpa(ctxt) && > > - vcpu_is_mmio_gpa

Re: [PATCH 2/3] KVM: x86: Avoid guest page table walk when gpa_available is set

2017-08-18 Thread Paolo Bonzini
On 18/08/2017 14:36, Radim Krčmář wrote: >>> + gpa = vcpu->arch.gpa_val; >>> + ret = vcpu_is_mmio_gpa(vcpu, addr, gpa, write); >>> + } else { >>> + ret = vcpu_mmio_gva_to_gpa(vcpu, addr, &gpa, exception, write); >>> } >>> >>> - ret = vcpu_mmio_gva_to_gpa(vcpu

Re: [PATCH 3/3] KVM: x86: fix use of L1 MMIO areas in nested guests

2017-08-18 Thread Paolo Bonzini
On 18/08/2017 14:35, Radim Krčmář wrote: > >>> diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h >>> @@ -90,7 +90,11 @@ static inline u32 bit(int bitno) >>> static inline void vcpu_cache_mmio_info(struct kvm_vcpu *vcpu, >>> gva_t gva, gfn_t gfn, unsigned acc

Re: [RFC v1 4/6] platform: x86: Add generic Intel IPC driver

2017-08-18 Thread Andy Shevchenko
On Tue, Aug 1, 2017 at 9:13 PM, wrote: > From: Kuppuswamy Sathyanarayanan > > Currently intel_scu_ipc.c, intel_pmc_ipc.c and intel_punit_ipc.c > redundantly implements the same IPC features and has lot of code > duplication between them. This driver addresses this issue by grouping > the common I

[PATCH] platform/x86: intel_pmc_core: Add Package C-states residency info

2017-08-18 Thread Rajneesh Bhardwaj
This patch introduces a new debugfs entry to read current Package C-state residency values and, one new kernel API to read the Package C-10 residency counter. Package C-state residency MSRs provide useful debug information about system idle states. In idle states system must enter deeper Package C

Re: [PATCH 2/3] KVM: x86: Avoid guest page table walk when gpa_available is set

2017-08-18 Thread Radim Krčmář
2017-08-18 14:37+0200, Paolo Bonzini: > On 18/08/2017 14:36, Radim Krčmář wrote: > >>> + gpa = vcpu->arch.gpa_val; > >>> + ret = vcpu_is_mmio_gpa(vcpu, addr, gpa, write); > >>> + } else { > >>> + ret = vcpu_mmio_gva_to_gpa(vcpu, addr, &gpa, exception, write); > >>> } > >>>

[PATCH] [PATCH] staging:wlan-ng Fix Multiple line dereference

2017-08-18 Thread Janani S
This patch fixes multiple line dereference warning reported by checkpatch script. Signed-off-by: Janani S --- drivers/staging/wlan-ng/hfa384x_usb.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hf

Re: [PATCH] kvm: VMX: do not use vm-exit instruction length for fast MMIO

2017-08-18 Thread David Hildenbrand
On 18.08.2017 14:35, Paolo Bonzini wrote: > On 18/08/2017 13:57, David Hildenbrand wrote: >> What about a hack: >> >> 1. clear instruction length when entering >> 2. check if instruction length is set when trying to forward the RIP >> 2a. if set, use it >> 2b. if not set, compute it > > It's undef

Re: [PATCH 4/4] phy: tegra: use of_device_get_match_data()

2017-08-18 Thread Thierry Reding
On Wed, Aug 09, 2017 at 05:18:00PM +0800, Chunfeng Yun wrote: > reduce the boilerplate code to get the specific data > > Signed-off-by: Chunfeng Yun > --- > drivers/phy/tegra/xusb.c |6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) You're not reducing by much here. =) > diff --g

[GIT PULL] Please pull powerpc/linux.git powerpc-4.13-7 tag

2017-08-18 Thread Michael Ellerman
Hi Linus, Please pull another powerpc fix for 4.13: The following changes since commit 96ea91e7b6ee2c406598d859e7348b4829404eea: powerpc/watchdog: add locking around init/exit functions (2017-08-09 23:45:33 +1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/

Re: [RFC v1 0/6] PMC/PUNIT IPC driver cleanup

2017-08-18 Thread Andy Shevchenko
On Tue, Aug 1, 2017 at 9:13 PM, wrote: > Currently intel_pmc_ipc.c, intel_punit_ipc.c, intel_scu_ipc.c drivers > implements the same IPC features. > This code duplication could be avoided if we implement the IPC driver as a > single library and let custom > device drivers use API provided by ge

Re: [PATCH v2] platform/x86: ideapad-laptop: Expose conservation mode switch

2017-08-18 Thread Andy Shevchenko
On Wed, Aug 16, 2017 at 1:42 AM, Darren Hart wrote: > On Mon, Aug 14, 2017 at 06:32:48PM +0300, Andy Shevchenko wrote: >> On Mon, Aug 14, 2017 at 5:17 PM, Hao Wei Tee wrote: >> > +static int method_gbmd(acpi_handle handle, unsigned long *ret) >> > +{ >> > + int val; >> > + int result

Re: [PATCH 2/2] iommu/tegra-gart: Add support for struct iommu_device

2017-08-18 Thread Thierry Reding
On Thu, Aug 10, 2017 at 12:29:12AM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > Add a struct iommu_device to each tegra-gart and register it > with the iommu-core. Also link devices added to the driver > to their respective hardware iommus. > > Signed-off-by: Joerg Roedel > --- > driver

Re: [PATCH 1/2] iommu/tegra: Add support for struct iommu_device

2017-08-18 Thread Thierry Reding
On Thu, Aug 10, 2017 at 12:29:11AM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > Add a struct iommu_device to each tegra-smmu and register it > with the iommu-core. Also link devices added to the driver > to their respective hardware iommus. > > Signed-off-by: Joerg Roedel > --- > driver

Re: [PATCH v1 4/4] KVM: MMU: Expose the LA57 feature to VM.

2017-08-18 Thread Paolo Bonzini
On 18/08/2017 10:28, Yu Zhang wrote: > > > On 8/17/2017 10:29 PM, Paolo Bonzini wrote: >> On 17/08/2017 13:53, Yu Zhang wrote: >>> >>> On 8/17/2017 7:57 PM, Paolo Bonzini wrote: On 12/08/2017 15:35, Yu Zhang wrote: > index a98b88a..50107ae 100644 > --- a/arch/x86/kvm/emulate.c >

Re: [05/11] powerpc/topology: Remove the unused parent_node() macro

2017-08-18 Thread Michael Ellerman
On Wed, 2017-07-26 at 13:34:30 UTC, Dou Liyang wrote: > Commit a7be6e5a7f8d ("mm: drop useless local parameters of > __register_one_node()") removes the last user of parent_node(). > > The parent_node() macro in POWERPC platform is unnecessary. > > Remove it for cleanup. > > Reported-by: Michael

Re: powerpc: add const to bin_attribute structures

2017-08-18 Thread Michael Ellerman
On Wed, 2017-08-02 at 18:07:38 UTC, Bhumika Goyal wrote: > Declare bin_attribute structures as const as they are only passed as an > argument to the function sysfs_create_bin_file. This argument is of > type const, so declare the structure as const. > > Signed-off-by: Bhumika Goyal Applied to po

[PATCH] staging:wlan-ng Fix Multiple line dereference

2017-08-18 Thread Janani S
This patch fixes multiple line dereference warning reported by checkpatch script. Signed-off-by: Janani S --- drivers/staging/wlan-ng/hfa384x_usb.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hf

Re: [PATCH net-next] tcp: export drops counter to /proc/net/tcp{,6}

2017-08-18 Thread Stéphan Gorget
On 8/18/17 1:14 PM, Eric Dumazet wrote: > On Fri, 2017-08-18 at 03:21 -0700, Stéphan Gorget wrote: >> Those counters are exported for raw and udp but not for tcp, though they >> are incremented. >> >> An example where it is useful is chasing listen overflow. Listen overflow >> are counted as a glob

Kredit? so schnell wie möglich? unkompliziert und seriös ?

2017-08-18 Thread Lucas Brown
Kredit? so schnell wie möglich? unkompliziert und seriös ? Bei uns genau richtig. Wir arbeiten europaweit. Wir vermitteln Kredite und Darlehen zu fairen Konditionen. Durch unsere seriöse, kompetente und ehrliche Kreditberatung haben wir über Jahre eine starke Position auf dem Markt. Kontaktieren

Re: [PATCH] platform/x86: intel_pmc_core: Add Package C-states residency info

2017-08-18 Thread Andy Shevchenko
On Fri, Aug 18, 2017 at 3:37 PM, Rajneesh Bhardwaj wrote: > This patch introduces a new debugfs entry to read current Package C-state > residency values and, one new kernel API to read the Package C-10 residency > counter. > > Package C-state residency MSRs provide useful debug information about s

Re: [PATCH] powerpc: powernv: Fix build error on const discarding

2017-08-18 Thread Corentin Labbe
On Thu, Aug 17, 2017 at 10:52:11PM +1000, Michael Ellerman wrote: > Corentin Labbe writes: > > > When building a random powerpc kernel I hit this build error: > > CC arch/powerpc/platforms/powernv/opal-imc.o > > arch/powerpc/platforms/powernv/opal-imc.c: In function «  > > disable_nest_pmu

[PATCH v2] irqchip/armada-370-xp: Enable MSI-X support

2017-08-18 Thread Stefan Roese
Armada XP does not only support MSI, but also MSI-X. This patch sets the MSI_FLAG_PCI_MSIX flag in the interrupt controller driver which is the only change necessary to enable MSI-X support on this SoC. As the Linux PCI MSI-X infrastructure takes care of writing the data and address structures into

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