Re: [PATCH] wireless: iwlegacy: make const array static to shink object code size Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-22 Thread Colin Ian King
On 22/09/17 11:03, Joe Perches wrote: > On Fri, 2017-09-22 at 09:23 +0200, Julia Lawall wrote: >> >> On Thu, 21 Sep 2017, Colin King wrote: >> >>> From: Colin Ian King >>> >>> Don't populate const array ac_to_fifo on the stack in an inlined >>> function, instead make it static. Makes the object c

Re: [PATCH 1/6] lightnvm: pblk: reuse pblk_gc_should_kick

2017-09-22 Thread Javier González
> On 22 Sep 2017, at 11.42, Rakesh Pandit wrote: > > On Fri, Sep 22, 2017 at 10:40:57AM +0200, Javier González wrote: >>> On 21 Sep 2017, at 13.25, Rakesh Pandit wrote: >>> >>> This is a trivial change which reuses pblk_gc_should_kick instead of >>> repeating it again in pblk_rl_free_lines_inc.

Re: [1/2] powerpc/pseries: fix "OF: ERROR: Bad of_node_put() on /cpus" during DLPAR

2017-09-22 Thread Abdul Haleem
On Fri, 2017-09-22 at 11:03 +1000, Michael Ellerman wrote: > On Wed, 2017-09-20 at 21:02:51 UTC, Tyrel Datwyler wrote: > > Commit 215ee763f8cb ("powerpc: pseries: remove dlpar_attach_node dependency > > on > > full path") reworked dlpar_attach_node() to no longer look up the parent > > node "/cpus

Re: [PATCH v2] iommu/of: Remove PCI host bridge node check

2017-09-22 Thread Joerg Roedel
On Fri, Sep 22, 2017 at 10:51:30AM +0100, Robin Murphy wrote: > > Fixes: d87beb749281 ("iommu/of: Handle PCI aliases properly") > > The check itself originally dates back to b996444cf35e ("iommu/of: > Handle iommu-map property for PCI") but it's really not worth > backporting past the above refac

Re: [PATCH v5] mtd: nand: Use standard large page OOB layout when using NAND_ECC_NONE

2017-09-22 Thread Boris Brezillon
On Sat, 26 Aug 2017 17:19:15 +0200 Miquel Raynal wrote: > Use the core's large page OOB layout functions when not reserving any > space for ECC bytes in the OOB layout. Fix ->nand_ooblayout_ecc_lp() > to return -ERANGE instead of a zero length in this case. > Applied. Thanks, Boris > Signed-

Re: [PATCH v2] dt-bindings: nand: denali: reduce the register space in the example

2017-09-22 Thread Boris Brezillon
On Fri, 22 Sep 2017 14:58:23 +0900 Masahiro Yamada wrote: > This example allocates much more than needed for address regions. > > As for "denali_reg", as you see in drivers/mtd/nand/denali.h, all > registers fit in 0x1000. > > As for "nand_data", this IP is generally configured to use Indexed >

Re: [PATCH] wireless: iwlegacy: make const array static to shink object code size Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-22 Thread Julia Lawall
On Fri, 22 Sep 2017, Colin Ian King wrote: > On 22/09/17 11:03, Joe Perches wrote: > > On Fri, 2017-09-22 at 09:23 +0200, Julia Lawall wrote: > >> > >> On Thu, 21 Sep 2017, Colin King wrote: > >> > >>> From: Colin Ian King > >>> > >>> Don't populate const array ac_to_fifo on the stack in an inl

Re: [PATCH v2 00/12] mtd: nand: denali: more clean-ups

2017-09-22 Thread Boris Brezillon
On Fri, 22 Sep 2017 12:46:37 +0900 Masahiro Yamada wrote: > This series make the Denali driver even cleaner and more correct. > Applied. Thanks, Boris > > Masahiro Yamada (12): > mtd: nand: denali: squash setup_ecc_for_xfer() helper into caller > mtd: nand: denali: prefix detect_max_ban

Re: [PATCH v2 0/2] mtd: nand: introduce NAND_ROW_ADDR_3 flag and improve Denali driver

2017-09-22 Thread Boris Brezillon
On Wed, 13 Sep 2017 11:05:49 +0900 Masahiro Yamada wrote: > Currently, Denali NAND driver always expects 3 row address cycle > devices because the driver init code hard-code the register setting. > I will fix it in 2/2. > > Many drivers check chip->chipsize if the third row address cycle > is ne

Re: [PATCH] ASoC: Intel: Skylake: fix swapped order of function arguments dir and pin_index

2017-09-22 Thread Vinod Koul
On Wed, Sep 20, 2017 at 02:01:25PM +0100, Colin King wrote: > From: Colin Ian King > > The call to slk_tplg_fill_res_tkn is passing dir and pin_index in the > wrong order, they need to be in pin_index, dir order to match the function > slk_tplg_fill_res_tkn correctly. > > Detected by CoveritSca

Re: [PATCH] crypto: nx: constify vio_device_id

2017-09-22 Thread Herbert Xu
On Thu, Aug 17, 2017 at 06:44:10PM +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: Arvind Yadav Patch applied. Th

Re: [PATCH] crypto: doc - clarify return values for async hash methods

2017-09-22 Thread Herbert Xu
On Thu, Aug 17, 2017 at 12:27:12PM +0200, Kamil Konieczny wrote: > >From af1b10e1e6aaf67f8dc45ed78de89b0469794a98 Mon Sep 17 00:00:00 2001 > From: Kamil Konieczny > Date: Thu, 17 Aug 2017 12:11:36 +0200 > Subject: [PATCH] crypto: doc - clarify return values for async hash methods > > * fix docume

Re: [PATCH] hwrng: pseries: constify vio_device_id

2017-09-22 Thread Herbert Xu
On Thu, Aug 17, 2017 at 11:06:23PM +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: Arvind Yadav Patch applied. Th

Re: [PATCH] crypto: nx: 842: constify vio_device_id

2017-09-22 Thread Herbert Xu
On Thu, Aug 17, 2017 at 06:44:11PM +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: Arvind Yadav Patch applied. Th

Re: [PATCH 1/1] crypto: stm32/hash - Remove uninitialized symbol

2017-09-22 Thread Herbert Xu
On Fri, Aug 18, 2017 at 03:54:01PM +0200, Lionel Debieve wrote: > Remove err symbol as this is not used in the thread context > and the variable is not initialized. > > Signed-off-by: Lionel Debieve Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PG

Re: [PATCH 0/2] crypto: add OSCCA SM3 secure hash and tests

2017-09-22 Thread Herbert Xu
On Mon, Aug 21, 2017 at 01:51:27PM +0300, Gilad Ben-Yossef wrote: > Add OSCCA SM3 secure hash (OSCCA GM/T 0004-2012 SM3) > generic hash transformation, testmgr and tcrypt tests. > > SM3 is a secure hash function which is part of the Chinese > "Commercial Cryptography" suite of algorithms which use

Re: [PATCH v1] crypto: mediatek - Add empty messages check in GCM mode

2017-09-22 Thread Herbert Xu
On Tue, Aug 22, 2017 at 03:53:39PM +0800, Ryder Lee wrote: > Currently, empty messages are not supported in GCM mode, hence add > a check to prevent producing incorrect results. > > Signed-off-by: Ryder Lee Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~her

Re: [PATCH] crypto: axis - hide an unused variable

2017-09-22 Thread Herbert Xu
On Fri, Aug 25, 2017 at 12:19:54AM +0200, Arnd Bergmann wrote: > Without CONFIG_DEBUG_FS, we get a harmless warning: > > drivers/crypto/axis/artpec6_crypto.c:352:23: error: 'dbgfs_root' defined but > not used [-Werror=unused-variable] > > This moves it into the #ifdef that hides the only user. >

Re: [PATCH] crypto: aesni: make arrays aesni_simd_skciphers and aesni_simd_skciphers2 static

2017-09-22 Thread Herbert Xu
On Sun, Aug 20, 2017 at 10:34:38PM +0100, Colin King wrote: > From: Colin Ian King > > Arrays aesni_simd_skciphers and aesni_simd_skciphers2 are local to the > source and do not need to be in global scope, so make them static. > > Cleans up sparse warnings: > symbol 'aesni_simd_skciphers' was no

Re: [RFC PATCH 2/7] sound: core: Avoid using timespec for struct snd_pcm_status

2017-09-22 Thread Arnd Bergmann
On Fri, Sep 22, 2017 at 11:31 AM, Takashi Iwai wrote: > On Thu, 21 Sep 2017 08:18:04 +0200, > Baolin Wang wrote: >> >> The struct snd_pcm_status will use 'timespec' type variables to record >> timestamp, which is not year 2038 safe on 32bits system. >> >> Userspace will use SNDRV_PCM_IOCTL_STATUS

Re: [PATCH 00/11] crypto: gcm - add GCM IV size constant

2017-09-22 Thread Herbert Xu
On Tue, Aug 22, 2017 at 10:08:07AM +0200, Corentin Labbe wrote: > Many GCM users use directly GCM IV size instead of using some constant. > > This patch add all IV size constant used by GCM and convert drivers for using > them.. > > Corentin Labbe (11): > crypto: gcm - add GCM iv size constant

Re: [PATCH] crypto: padlock-aes: constify x86_cpu_id

2017-09-22 Thread Herbert Xu
On Fri, Aug 25, 2017 at 11:53:42PM +0530, Arvind Yadav wrote: > x86_cpu_id are not supposed to change at runtime. MODULE_DEVICE_TABLE > and x86_match_cpu are working with const x86_cpu_id. So mark the > non-const x86_cpu_id structs as const. > > Signed-off-by: Arvind Yadav Patch applied. Thanks

Re: [PATCH] crypto: Use PTR_ERR_ZERO

2017-09-22 Thread Herbert Xu
On Sun, Aug 27, 2017 at 11:52:48AM +0530, Himanshu Jha wrote: > Use PTR_ERROR_ZERO rather than if(IS_ERR(...)) + PTR_ERR. > Build successfully. > > Signed-off-by: Himanshu Jha Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.ap

Re: [PATCH] crypto: brcm - Explicity ACK mailbox message

2017-09-22 Thread Herbert Xu
On Tue, Aug 29, 2017 at 03:08:10PM +0530, Raveendra Padasalagi wrote: > Add support to explicity ACK mailbox message > because after sending message we can know > the send status via error attribute of brcm_message. > > This is needed to support "txdone_ack" supported in > mailbox controller drive

Re: [PATCH] crypto: padlock-sha: constify x86_cpu_id

2017-09-22 Thread Herbert Xu
On Fri, Aug 25, 2017 at 11:53:59PM +0530, Arvind Yadav wrote: > x86_cpu_id are not supposed to change at runtime. MODULE_DEVICE_TABLE > and x86_match_cpu are working with const x86_cpu_id. So mark the > non-const x86_cpu_id structs as const. > > Signed-off-by: Arvind Yadav Patch applied. Thanks

Re: [PATCH] crypto: drop unnecessary return statements

2017-09-22 Thread Herbert Xu
On Mon, Aug 28, 2017 at 10:00:07PM +0800, Geliang Tang wrote: > Fix checkpatch.pl warnings: > > WARNING: void function return statements are not generally useful > FILE: crypto/rmd128.c:218: > FILE: crypto/rmd160.c:261: > FILE: crypto/rmd256.c:233: > FILE: crypto/rmd320.c:280: > FILE: crypto/tcryp

Re: [PATCH 0/2] remove NULL check before kfree

2017-09-22 Thread Herbert Xu
On Sun, Aug 27, 2017 at 02:45:28AM +0530, Himanshu Jha wrote: > *** BLURB HERE *** > > Himanshu Jha (2): > crypto: n2 - remove null check before kfree > crypto: inside-secure - remove null check before kfree All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~h

Re: [linux-next][EXT4][Oops]kernel panics when running fsfuzzer

2017-09-22 Thread Abdul Haleem
On Wed, 2017-09-20 at 16:44 +1000, Michael Ellerman wrote: > Abdul Haleem writes: > > > Hi, > > > > next kernel panics when running fsfuzzer test on ext4 file system. > > > > Machine Type: Power 7 PowerVM LPAR > > kernel : 4.13.0-next-20170915 > > config : attached > > Test: fsfuzzer > > > > dmes

Re: [PATCH v2 3/9] clk: at91: pmc: Support backup for programmable clocks

2017-09-22 Thread Nicolas Ferre
On 15/09/2017 at 16:04, Romain Izard wrote: > From: Romain Izard > > When an AT91 programmable clock is declared in the device tree, register > it into the Power Management Controller driver. On entering suspend mode, > the driver saves and restores the Programmable Clock registers to support > t

Re: [PATCH] wireless: iwlegacy: make const array static to shink object code size Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-22 Thread Kalle Valo
Stanislaw Gruszka writes: > On Thu, Sep 21, 2017 at 11:56:30PM +0100, Colin King wrote: >> From: Colin Ian King >> >> Don't populate const array ac_to_fifo on the stack in an inlined >> function, instead make it static. Makes the object code smaller >> by over 800 bytes: >> >>text

[PATCH] scsi: ufs: continue to boot even with Boot LUN is disabled

2017-09-22 Thread Huanlin Ke
Several configurable fields of the Device Descriptor and the Unit Descriptors determine the Boot LUN status. The bBootEnable field and the bBootLunEn attribute is set to zero by default, so the Boot LUN is disabled by default. At which point the scsi device add for Boot LUN will fail, but we can c

Re: [PATCH] wireless: iwlegacy: make const array static to shink object code size Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-22 Thread Joe Perches
On Fri, 2017-09-22 at 12:06 +0200, Julia Lawall wrote: > > On Fri, 22 Sep 2017, Colin Ian King wrote: > > > On 22/09/17 11:03, Joe Perches wrote: > > > On Fri, 2017-09-22 at 09:23 +0200, Julia Lawall wrote: > > > > > > > > On Thu, 21 Sep 2017, Colin King wrote: > > > > > > > > > From: Colin Ian

Re: [RFC PATCH 2/7] sound: core: Avoid using timespec for struct snd_pcm_status

2017-09-22 Thread Takashi Iwai
On Fri, 22 Sep 2017 12:14:55 +0200, Arnd Bergmann wrote: > > On Fri, Sep 22, 2017 at 11:31 AM, Takashi Iwai wrote: > > On Thu, 21 Sep 2017 08:18:04 +0200, > > Baolin Wang wrote: > >> > >> The struct snd_pcm_status will use 'timespec' type variables to record > >> timestamp, which is not year 2038

GOLD BARS FOR SALE

2017-09-22 Thread Patrick Karuma Kaba
I am Patrick Kaba from Ghana.I am looking for buyers for my Gold Bars. I have 50kgs of Gold Bars to sell to any company and person. Is 22 Carat plus and the price is 28000 Usd/kG the broker commission is 1500 USD:KG.I can deliver this to your final destination. Europe, Dubai, Singapore, China, Hon

Re: [PATCH] drivers/perf: arm_pmu_acpi: Release memory obtained by kasprintf

2017-09-22 Thread Will Deacon
On Wed, Sep 20, 2017 at 12:26:38PM +0530, Arvind Yadav wrote: > Free memory region, if arm_pmu_acpi_probe is not successful. > > Signed-off-by: Arvind Yadav > --- > drivers/perf/arm_pmu_acpi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/perf/arm_pmu_acpi.c b/drivers/perf/ar

Re: [PATCH] wireless: iwlegacy: make const array static to shink object code size Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-22 Thread Julia Lawall
On Fri, 22 Sep 2017, Joe Perches wrote: > On Fri, 2017-09-22 at 12:06 +0200, Julia Lawall wrote: > > > > On Fri, 22 Sep 2017, Colin Ian King wrote: > > > > > On 22/09/17 11:03, Joe Perches wrote: > > > > On Fri, 2017-09-22 at 09:23 +0200, Julia Lawall wrote: > > > > > > > > > > On Thu, 21 Sep 20

[ANNOUNCE] util-linux v2.31-rc1

2017-09-22 Thread Karel Zak
The util-linux release v2.31-rc1 is available at http://www.kernel.org/pub/linux/utils/util-linux/v2.31/ Feedback and bug reports, as always, are welcomed. Util-linux 2.31 Release Notes = The package build-system follows GNU Coding Standards and uses --runstated

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall

2017-09-22 Thread Peter Zijlstra
On Fri, Sep 22, 2017 at 12:00:04PM +0200, Peter Zijlstra wrote: > On Thu, Sep 21, 2017 at 10:10:41PM -0300, Marcelo Tosatti wrote: > > When executing guest vcpu-0 with FIFO:1 priority, which is necessary > > to > > deal with the following situation: > > > > VCPU-0 (housekeeping VCPU)

Re: [PATCH] staging:ccree Fix dont use assignment in if condition

2017-09-22 Thread Greg KH
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Fri, Sep 22, 2017 at 03:

[PATCH] cgroup: cpuset: fix panic when offline a cpu

2017-09-22 Thread shuwang
From: Shu Wang cgroup_migrate assumes mgctx tset.csets is pointing to tset.src_csets at start, add tasks to tset.src_csets in func cgroup_migrate_add_task, change test.csets to tset.dst_csets in cgroup_migrate_execute. For offline a cpu in cgroup_transfer_tasks, it will first migrate a task and

[PATCH] cpupower : Fix cpupower working when cpu0 is offline

2017-09-22 Thread Abhishek Goel
cpuidle_monitor used to assume that cpu0 is always online. Now the cpuidle_monitor function searches for the first online cpu and use it, instead of always using cpu0 which may not be online. Signed-off-by: Abhishek Goel --- tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c | 14 ++

Re: [PATCH v2 1/4] fw_cfg: add DMA register

2017-09-22 Thread kbuild test robot
Hi Marc-André, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc1 next-20170922] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/marcandre-lureau-redhat-com/fw_cfg-add

Re: [PATCH net-next] net: mvpp2: phylink support

2017-09-22 Thread Russell King - ARM Linux
On Thu, Sep 21, 2017 at 03:45:22PM +0200, Antoine Tenart wrote: > Convert the PPv2 driver to use phylink, which models the MAC to PHY > link. The phylink support is made such a way the GoP link IRQ can still > be used: the two modes are incompatible and the GoP link IRQ will be > used if no PHY is

Re: [RFC LINUX PATCH] Dcoumentation: dt: mailbox: Add Xilinx IPI Mailbox

2017-09-22 Thread Sudeep Holla
On Fri, Sep 22, 2017 at 06:05:18AM +, Jiaying Liang wrote: > > Xilinx ZynqMP IPI(Inter Processor Interrupt) is a hardware block in ZynqMP > SoC used for the communication between various processor systems. > > Signed-off-by: Wendy Liang > --- > .../bindings/mailbox/xlnx,zynqmp-ipi-mailbox.t

Re: [PATCH][drm-next] drm/i915/gvt: ensure -ve return value is handled correctly

2017-09-22 Thread Joonas Lahtinen
On Thu, 2017-09-21 at 16:17 +, Wang, Zhi A wrote: > Hi Joonas: > > Thanks for the introduction. I have been thinking about the > possibility of introducing GEM_BUG_ON into GVT-g recently and > investigating on it. I'm just a bit confused about the usage between > GEM_BUG_ON and WARN_ON. GEM_B

[PATCH] net: stmmac: Meet alignment requirements for DMA

2017-09-22 Thread Matt Redfearn
According to Documentation/DMA-API.txt: Warnings: Memory coherency operates at a granularity called the cache line width. In order for memory mapped by this API to operate correctly, the mapped region must begin exactly on a cache line boundary and end exactly on one (to prevent two separatel

[PATCH 4/5] block: umem: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/block/umem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/block/umem.c b/drivers/block/umem.c index 0677d25..b4d4ccf 100644 --- a

[PATCH 5/5] block: DAC960: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/block/DAC960.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index 255591a..83dc8ca 100

[PATCH 2/5] block: aoe: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/block/aoe/aoemain.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/aoe/aoemain.c b/drivers/block/aoe/aoemain.c index 4b987c2

[PATCH 0/5] use setup_timer() helper function.

2017-09-22 Thread Allen Pais
This series uses setup_timer() helper function. The series addresses the files under drivers/block/*. Allen Pais (5): block: amiflop: use setup_timer() helper. block: aoe: use setup_timer() helper. block: aoe: use setup_timer() helper. block: umem: use setup_timer() helper. block: DAC960

[PATCH 1/5] block: amiflop: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/block/amiflop.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index 4990

[PATCH 3/5] block: aoe: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/block/aoe/aoedev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c index b28fefb..1

[PATCH] perf tools: allow overriding MAX_NR_CPUS at compile time

2017-09-22 Thread Christophe Leroy
After update of kernel, perf tool doesn't run anymore on my 32MB RAM powerpc board, but still runs on a 128MB RAM board: ~# strace perf execve("/usr/sbin/perf", ["perf"], [/* 12 vars */]) = -1 ENOMEM (Cannot allocate memory) --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} --- +++ kil

Re: [PATCH v2 1/2] mmc: sdhci-msm: Utilize bulk clock API

2017-09-22 Thread Ulf Hansson
On 16 September 2017 at 01:35, Bjorn Andersson wrote: > By stuffing the runtime controlled clocks into a clk_bulk_data array we > can utilize the newly introduced bulk clock operations and clean up the > error paths. This allow us to handle additional clocks in subsequent > patch, without the adde

Re: [PATCH V8 01/14] mmc: core: Introduce host claiming by context

2017-09-22 Thread Linus Walleij
On Wed, Sep 13, 2017 at 1:40 PM, Adrian Hunter wrote: > Currently the host can be claimed by a task. Change this so that the host > can be claimed by a context that may or may not be a task. This provides > for the host to be claimed by a block driver queue to support blk-mq, while > maintainin

Re: [PATCH v2] mmc: dt-bindings: Add reg/source_cg/latch-ck for Mediatek MMC bindings

2017-09-22 Thread Linus Walleij
On Thu, Sep 21, 2017 at 3:52 AM, Chaotian Jing wrote: > +- mediatek,latch-ck: Some projects do not support enhance_rx, need set > correct latch-ck to avoid data crc > +error caused by stop clock(fifo full) I think I wrote elsewhere: replace "projects" with "systems" or "SoCs

Re: [PATCH v2 2/4] fw_cfg: do DMA read operation

2017-09-22 Thread kbuild test robot
Hi Marc-André, [auto build test WARNING on linus/master] [also build test WARNING on v4.14-rc1 next-20170922] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/marcandre-lureau-redhat-com/fw_cfg

Re: usb/storage/uas: slab-out-of-bounds in uas_probe

2017-09-22 Thread Andrey Konovalov
On Thu, Sep 21, 2017 at 9:04 PM, Alan Stern wrote: > On Thu, 21 Sep 2017, Andrey Konovalov wrote: > >> On Thu, Sep 21, 2017 at 6:10 PM, Greg Kroah-Hartman >> wrote: >> > On Thu, Sep 21, 2017 at 05:39:05PM +0200, Andrey Konovalov wrote: >> >> Hi! >> >> >> >> I've got the following report while fuz

Re: [PATCH 3/4] [media] usbvision-core: Delete unnecessary braces in 11 functions

2017-09-22 Thread Dan Carpenter
No. Multi-line indents get curly braces for readability. regards, dan carpenter

Re: [RFC PATCH 2/7] sound: core: Avoid using timespec for struct snd_pcm_status

2017-09-22 Thread Arnd Bergmann
On Fri, Sep 22, 2017 at 12:49 PM, Takashi Iwai wrote: > On Fri, 22 Sep 2017 12:14:55 +0200, > Arnd Bergmann wrote: >> The kernel uses timespec64 internally, which is defined as >> "{ s64 tv_sec; long tv_nsec };", so this has the padding >> in a different place on big-endian architectures, and has

Re: [PATCH 2/4] [media] usbvision-core: Use common error handling code in usbvision_set_compress_params()

2017-09-22 Thread Dan Carpenter
On Thu, Sep 21, 2017 at 05:07:06PM +0200, SF Markus Elfring wrote: > @@ -1913,11 +1908,12 @@ static int usbvision_set_compress_params(struct > usb_usbvision *usbvision) >USB_DIR_OUT | USB_TYPE_VENDOR | >USB_RECIP_ENDPOINT, 0, >

Re: [PATCH v2 1/4] fw_cfg: add DMA register

2017-09-22 Thread kbuild test robot
Hi Marc-André, [auto build test WARNING on linus/master] [also build test WARNING on v4.14-rc1 next-20170922] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/marcandre-lureau-redhat-com/fw_cfg

Re: usb/media/hdpvr: trying to register non-static key in hdpvr_probe

2017-09-22 Thread Andrey Konovalov
On Fri, Sep 22, 2017 at 9:41 AM, Arvind Yadav wrote: > Hi, > > I have a doubt. Why we are calling flush_work in hdpvr_probe for every > failure. > We are flushing work which is not defined yet. > > Here, hdpvr_register_videodev() is responsible for setup and register a > video device. > Also defin

Re: [PATCH] e1000: avoid null pointer dereference on invalid stat type

2017-09-22 Thread Dan Carpenter
On Thu, Sep 21, 2017 at 11:01:58PM +0100, Colin King wrote: > @@ -1837,12 +1838,13 @@ static void e1000_get_ethtool_stats(struct net_device > *netdev, > p = (char *)adapter + stat->stat_offset; > break; > default: > + p

[RFC][PATCH] sched: Cleanup task->state printing

2017-09-22 Thread Peter Zijlstra
On Fri, Sep 22, 2017 at 11:35:33AM +0200, Markus Trippelsdorf wrote: > > It seems to work. Simply returning "I (idle)" from get_task_state() in > > fs/proc/array.c when the state is TASK_IDLE does the trick. > > I've tested top, htop and ps. I ended up with the below; there was quite a lot of inco

Re: [PATCH] e1000: avoid null pointer dereference on invalid stat type

2017-09-22 Thread Colin Ian King
On 22/09/17 12:50, Dan Carpenter wrote: > On Thu, Sep 21, 2017 at 11:01:58PM +0100, Colin King wrote: >> @@ -1837,12 +1838,13 @@ static void e1000_get_ethtool_stats(struct >> net_device *netdev, >> p = (char *)adapter + stat->stat_offset; >> break; >>

Re: [PATCH 1/2] pinctrl: Allow a device to indicate when to force a state

2017-09-22 Thread Linus Walleij
On Thu, Sep 21, 2017 at 3:04 AM, Florian Fainelli wrote: > It may happen that a device needs to force applying a state, e.g: > because it only defines one state of pin states (default) but loses > power/register contents when entering low power modes. Add a > pinctrl_dev::flags bitmask to help de

Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus

2017-09-22 Thread Michael Ellerman
Tyrel Datwyler writes: > On 09/21/2017 02:57 AM, Michael Ellerman wrote: >> Tyrel Datwyler writes: >>> On 09/20/2017 04:39 AM, Michael Ellerman wrote: Rob Herring writes: > > > Testing a fix, will report back. >>> >>> So, that patch slipped past me. Not only is the parent refere

Re: [PATCH v2] mmc: dt-bindings: Add reg/source_cg/latch-ck for Mediatek MMC bindings

2017-09-22 Thread Chaotian Jing
On Fri, 2017-09-22 at 13:25 +0200, Linus Walleij wrote: > On Thu, Sep 21, 2017 at 3:52 AM, Chaotian Jing > wrote: > > > +- mediatek,latch-ck: Some projects do not support enhance_rx, need set > > correct latch-ck to avoid data crc > > +error caused by stop clock(fifo full) >

Re: 答复: [PATCH] mfd: rtsx: Add support for RTS5260

2017-09-22 Thread Lee Jones
On Fri, 22 Sep 2017, 冯锐 wrote: > > On Fri, Sep 22, 2017 at 05:36:24PM +0800, rui_f...@realsil.com.cn wrote: > > > From: rui_feng > > > > > > Add support for new chip rts5260. > > > In order to support rts5260,the definitions of some internal registers > > > and workflow have to be modified and ar

Re: [PATCH v9 1/4] rockchip/rga: v4l2 m2m support

2017-09-22 Thread Hans Verkuil
Hi Jacob, Sorry for the delay, but here is my review. I noticed that there is no patch for the MAINTAINERS file, please add an entry there for this driver. On 14/09/17 03:19, Jacob Chen wrote: > Rockchip RGA is a separate 2D raster graphic acceleration unit. It > accelerates 2D graphics operatio

[PATCH v3] mmc: dt-bindings: Add reg/source_cg/latch-ck for Mediatek MMC bindings

2017-09-22 Thread Chaotian Jing
Change the comptiable for support of multi-platform Add description for reg Add description for source_cg Add description for mediatek,latch-ck Note that source_cg and mediatek,latch-ck are optional for some projects, eg, MT2701 do not have source_cg, and MT2712 do not need mediatek,latch-ck Signe

Re: [PATCH v2 1/9] clk: at91: pmc: Wait for clocks when resuming

2017-09-22 Thread Ludovic Desroches
On Fri, Sep 15, 2017 at 04:04:03PM +0200, Romain Izard wrote: > Wait for the syncronization of all clocks when resuming, not only the > UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() > when interrupts are masked, which is the case in here. > > Signed-off-by: Romain Izard A

[git pull] IOMMU Fixes for Linux v4.14-rc1

2017-09-22 Thread Joerg Roedel
Hi Linus, The following changes since commit 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e: Linux 4.14-rc1 (2017-09-16 15:47:51 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v4.14-rc1 for you to fetch changes up to

Re: [PATCH v1 01/10] clk: at91: pmc: Wait for clocks when resuming

2017-09-22 Thread Nicolas Ferre
On 14/09/2017 at 18:15, Romain Izard wrote: > 2017-09-13 14:15 GMT+02:00 Nicolas Ferre : >> On 08/09/2017 at 17:35, Romain Izard wrote: >>> Wait for the syncronization of all clocks when resuming, not only the >>> UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() >>> when inter

Re: [PATCH v2 1/9] clk: at91: pmc: Wait for clocks when resuming

2017-09-22 Thread Nicolas Ferre
On 15/09/2017 at 16:04, Romain Izard wrote: > Wait for the syncronization of all clocks when resuming, not only the > UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() > when interrupts are masked, which is the case in here. > > Signed-off-by: Romain Izard And here is my: Ac

Re: [BACKPORT] swiotlb-xen: implement xen_swiotlb_dma_mmap callback

2017-09-22 Thread Juergen Gross
On 18/09/17 20:08, Stefano Stabellini wrote: > On Fri, 15 Sep 2017, Greg KH wrote: >> On Thu, Sep 14, 2017 at 04:23:05PM -0700, Stefano Stabellini wrote: >>> Hi all, >>> >>> We are getting reports from Xen on ARM users about DMA issues. The >>> problem is that the commit below >>> (7e91c7df29b5e196

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall

2017-09-22 Thread Marcelo Tosatti
On Fri, Sep 22, 2017 at 12:00:05PM +0200, Peter Zijlstra wrote: > On Thu, Sep 21, 2017 at 10:10:41PM -0300, Marcelo Tosatti wrote: > > When executing guest vcpu-0 with FIFO:1 priority, which is necessary > > to > > deal with the following situation: > > > > VCPU-0 (housekeeping VCPU)

Re: [RFC PATCH 2/7] sound: core: Avoid using timespec for struct snd_pcm_status

2017-09-22 Thread Takashi Iwai
On Fri, 22 Sep 2017 13:43:16 +0200, Arnd Bergmann wrote: > > On Fri, Sep 22, 2017 at 12:49 PM, Takashi Iwai wrote: > > On Fri, 22 Sep 2017 12:14:55 +0200, > > Arnd Bergmann wrote: > >> The kernel uses timespec64 internally, which is defined as > >> "{ s64 tv_sec; long tv_nsec };", so this has the

[PATCH] irqdomain: add __rcu annotations to radix tree slot

2017-09-22 Thread Masahiro Yamada
Fix different address spaces warning of sparse. kernel/irq/irqdomain.c:1463:14: warning: incorrect type in assignment (different address spaces) kernel/irq/irqdomain.c:1463:14:expected void **slot kernel/irq/irqdomain.c:1463:14:got void [noderef] ** kernel/irq/irqdomain.c:1465:66: warning

Re: [PATCH] ALSA: usb-audio: Add sample rate quirk for Plantronics C310/C520-M

2017-09-22 Thread Takashi Iwai
On Wed, 20 Sep 2017 03:21:40 +0200, Kai-Heng Feng wrote: > > Like other Plantronics devices, C310 and C520-M do not support sample > rate reading. Add them to the sample rate quirk accordingly. > > BugLink: https://bugs.launchpad.net/bugs/1708499 > BugLink: https://bugs.launchpad.net/bugs/1709282

Re: [patch 2/3] KVM: x86: KVM_HC_RT_PRIO hypercall (host-side)

2017-09-22 Thread Marcelo Tosatti
On Fri, Sep 22, 2017 at 09:23:47AM +0200, Paolo Bonzini wrote: > On 22/09/2017 03:08, Marcelo Tosatti wrote: > > On Thu, Sep 21, 2017 at 03:49:33PM +0200, Paolo Bonzini wrote: > >> On 21/09/2017 15:32, Konrad Rzeszutek Wilk wrote: > >>> So the guest can change the scheduling decisions at the host l

Re: [linux-next][DLPAR CPU][Oops] Bad kernel stack pointer

2017-09-22 Thread Michael Ellerman
Abdul Haleem writes: > On Wed, 2017-09-20 at 21:42 +1000, Michael Ellerman wrote: >> Abdul Haleem writes: >> >> > Hi, >> > >> > Dynamic CPU remove operation resulted in Kernel Panic on today's >> > next-20170915 kernel. >> > >> > Machine Type: Power 7 PowerVM LPAR >> > Kernel : 4.13.0-next-2017

Re: [PATCH] hid/uhid: fix a double-fetch bug when copying event from user

2017-09-22 Thread David Herrmann
Hey On Wed, Sep 20, 2017 at 12:12 AM, Dmitry Torokhov wrote: > On Tue, Sep 19, 2017 at 2:54 PM, Meng Xu wrote: >> >> >> On 09/19/2017 05:31 PM, Dmitry Torokhov wrote: >>> >>> On Mon, Sep 18, 2017 at 10:21 PM, Meng Xu wrote: When in_compat_syscall(), a user could make type != UHID_CREA

[GIT PULL] Please pull powerpc/linux.git powerpc-4.14-3 tag

2017-09-22 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.14. It turns out our single-fix pull from last week was too good to be true. I missed a few fixes in that pull that had already come in because I was on leave, but also we hadn't found the bugs yet. So this week it's a bit bigger, though not rid

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall

2017-09-22 Thread Peter Zijlstra
On Fri, Sep 22, 2017 at 09:16:40AM -0300, Marcelo Tosatti wrote: > On Fri, Sep 22, 2017 at 12:00:05PM +0200, Peter Zijlstra wrote: > > On Thu, Sep 21, 2017 at 10:10:41PM -0300, Marcelo Tosatti wrote: > > > When executing guest vcpu-0 with FIFO:1 priority, which is necessary > > > to > > > deal with

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall

2017-09-22 Thread Marcelo Tosatti
On Fri, Sep 22, 2017 at 12:56:09PM +0200, Peter Zijlstra wrote: > On Fri, Sep 22, 2017 at 12:00:04PM +0200, Peter Zijlstra wrote: > > On Thu, Sep 21, 2017 at 10:10:41PM -0300, Marcelo Tosatti wrote: > > > When executing guest vcpu-0 with FIFO:1 priority, which is necessary > > > to > > > deal with

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall

2017-09-22 Thread Marcelo Tosatti
On Fri, Sep 22, 2017 at 02:31:07PM +0200, Peter Zijlstra wrote: > On Fri, Sep 22, 2017 at 09:16:40AM -0300, Marcelo Tosatti wrote: > > On Fri, Sep 22, 2017 at 12:00:05PM +0200, Peter Zijlstra wrote: > > > On Thu, Sep 21, 2017 at 10:10:41PM -0300, Marcelo Tosatti wrote: > > > > When executing guest

Re: [linux-next][DLPAR CPU][Oops] Bad kernel stack pointer

2017-09-22 Thread Abdul Haleem
n bridge stp llc kvm_pr kvm rpadlpar_io rpaphp ebtable_filter ebtables ip6table_filter ip6_tables dccp_diag dccp tcp_diag udp_diag inet_diag unix_diag af_packet_diag iptable_filter netlink_diag sg nfsd auth_rpcgss nfs_acl lockd grace sunrpc binfmt_misc ip_tables ext4 mbcache jbd2 sd_mod ibmvsc

Re: [PATCH v2 6/9] ehci-atmel: Power down during suspend is normal

2017-09-22 Thread Nicolas Ferre
On 15/09/2017 at 16:04, Romain Izard wrote: > When an Atmel SoC is suspended with the backup mode, the USB bus will be > powered down. As this is expected, do not return an error to the driver > core when ehci_resume detects it. > > Signed-off-by: Romain Izard > --- > drivers/usb/host/ehci-atmel

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\

2017-09-22 Thread Marcelo Tosatti
On Fri, Sep 22, 2017 at 02:31:07PM +0200, Peter Zijlstra wrote: > On Fri, Sep 22, 2017 at 09:16:40AM -0300, Marcelo Tosatti wrote: > > On Fri, Sep 22, 2017 at 12:00:05PM +0200, Peter Zijlstra wrote: > > > On Thu, Sep 21, 2017 at 10:10:41PM -0300, Marcelo Tosatti wrote: > > > > When executing guest

Re: [RFC][PATCH] sched: Cleanup task->state printing

2017-09-22 Thread Markus Trippelsdorf
On 2017.09.22 at 13:54 +0200, Peter Zijlstra wrote: > On Fri, Sep 22, 2017 at 11:35:33AM +0200, Markus Trippelsdorf wrote: > > > It seems to work. Simply returning "I (idle)" from get_task_state() in > > > fs/proc/array.c when the state is TASK_IDLE does the trick. > > > I've tested top, htop and p

Re: [PATCH v2 7/9] pwm: atmel-tcb: Support backup mode

2017-09-22 Thread Nicolas Ferre
On 15/09/2017 at 16:04, Romain Izard wrote: > Save and restore registers for the PWM on suspend and resume, which > makes hibernation and backup modes possible. > > Signed-off-by: Romain Izard Seems good to me: Acked-by: Nicolas Ferre > --- > drivers/pwm/pwm-atmel-tcb.c | 63 > ++

[PATCH V9 02/15] mmc: core: Introduce host claiming by context

2017-09-22 Thread Adrian Hunter
Currently the host can be claimed by a task. Change this so that the host can be claimed by a context that may or may not be a task. This provides for the host to be claimed by a block driver queue to support blk-mq, while maintaining compatibility with the existing use of mmc_claim_host(). Sign

[PATCH V9 03/15] mmc: core: Add support for handling CQE requests

2017-09-22 Thread Adrian Hunter
Add core support for handling CQE requests, including starting, completing and recovering. Signed-off-by: Adrian Hunter --- drivers/mmc/core/core.c | 163 +-- drivers/mmc/core/core.h | 4 ++ include/linux/mmc/host.h | 2 + 3 files changed, 164 in

[PATCH V9 04/15] mmc: mmc: Enable Command Queuing

2017-09-22 Thread Adrian Hunter
Enable the Command Queue if the host controller supports a command queue engine. It is not compatible with Packed Commands, so make a note of that in the comment. Signed-off-by: Adrian Hunter --- drivers/mmc/core/mmc.c | 17 + 1 file changed, 17 insertions(+) diff --git a/driver

[PATCH V9 00/15] mmc: Add Command Queue support

2017-09-22 Thread Adrian Hunter
Hi Here is V9 of the hardware command queue patches without the software command queue patches, now using blk-mq and now with blk-mq support for non-CQE I/O. HW CMDQ offers 25% - 50% better random multi-threaded I/O. I see a slight 2% drop in sequential read speed but no change to sequential wri

[PATCH V9 01/15] mmc: core: Remove unnecessary host claim

2017-09-22 Thread Adrian Hunter
Callers already have the host claimed, so remove the unnecessary calls to mmc_claim_host() and mmc_release_host(). Signed-off-by: Adrian Hunter --- drivers/mmc/core/mmc_ops.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc

[PATCH V9 05/15] mmc: mmc: Enable CQE's

2017-09-22 Thread Adrian Hunter
Enable or disable CQE when a card is added or removed respectively. Signed-off-by: Adrian Hunter --- drivers/mmc/core/bus.c | 7 +++ drivers/mmc/core/mmc.c | 12 2 files changed, 19 insertions(+) diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index 301246513a37..

[PATCH V9 07/15] mmc: block: Prepare CQE data

2017-09-22 Thread Adrian Hunter
Enhance mmc_blk_data_prep() to support CQE requests. That means adding some things that for non-CQE requests would be encoded into the command arguments - such as the block address, reliable-write flag, and data tag flag. Also the request tag is needed to provide the command queue task id, and a co

<    1   2   3   4   5   6   7   8   >