[PATCH] arm64: dts: ls1088a: add fsl-mc hardware resource manager node

2017-11-08 Thread Ioana Ciornei
Add the fsl-mc node in the LS1088A device tree. Signed-off-by: Ioana Ciornei --- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 62 ++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls10

Re: [PATCH v5 2/4] KEYS: Add ELF class-independent certificate insertion support

2017-11-08 Thread David Howells
This patch may need to add elfutils to the list of minimal requirements in: Documentation/process/changes.rst David

[PATCH] staging: rtlwifi: remove redundant assignments to ul_enc_algo

2017-11-08 Thread Colin King
From: Colin Ian King Variable ul_enc_algo is being initialized with a value that is never read, it is being set again in the following switch statements in all of the case and default paths. Hence the unitialization is redundant and can be removed. Cleans up two clang warnings: Value stored to

Re: [PATCH v7 00/15] gpio: Tight IRQ chip integration

2017-11-08 Thread Linus Walleij
On Tue, Nov 7, 2017 at 7:15 PM, Thierry Reding wrote: > here's the latest series of patches that implement the tighter IRQ chip > integration. I've dropped the banked infrastructure for now as per the > discussion with Grygorii. > > The first couple of patches are mostly preparatory work in order

Re: [PATCH] xen/privcmd: remove unused variable pageidx

2017-11-08 Thread Juergen Gross
On 08/11/17 14:00, Colin King wrote: > From: Colin Ian King > > Variable pageidx is assigned a value but it is never read, hence it > is redundant and can be removed. Cleans up clang warning: > > drivers/xen/privcmd.c:199:2: warning: Value stored to 'pageidx' > is never read > > Signed-off-by:

Re: [PATCH] s390/dasd: avoid calling do_gettimeofday()

2017-11-08 Thread Stefan Haberland
On 06.11.2017 15:02, Arnd Bergmann wrote: do_gettimeofday() is deprecated because it's not y2038-safe on 32-bit architectures. Since it is basically a wrapper around ktime_get_real_ts64(), we can just call that function directly instead. Signed-off-by: Arnd Bergmann --- drivers/s390/block/das

Re: [PATCH 27/31] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2017-11-08 Thread Rob Herring
+DT list On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu wrote: > From: Greentime Hu Commit msg needed. > Signed-off-by: Rick Chen > Signed-off-by: Greentime Hu > --- > .../interrupt-controller/andestech,ativic32.txt| 27 > > 1 file changed, 27 insertions(+) > cre

Re: [PATCH] clk: uniphier: fix parent of miodmac clock data

2017-11-08 Thread Masahiro Yamada
Hi Stephen, Could you pick this up, please? You sent a pull request last week. So, queuing this for -next is fine for me. 2017-10-19 9:52 GMT+09:00 Masahiro Yamada : > The "miodmac" is not a child of "stdmac". They are independent > from each other. Fix it. > > Signed-off-by: Masahiro Yamada

Re: [PATCH] clk: uniphier: fix DAPLL2 clock rate of Pro5

2017-11-08 Thread Masahiro Yamada
Hi Stephen, Could you pick this up, please? You sent a pull request last week. So, queuing this for -next is fine for me. 2017-10-05 11:32 GMT+09:00 Masahiro Yamada : > The parent of DAPLL2 should be DAPLL1. Fix the clock connection. > > Signed-off-by: Masahiro Yamada > --- > > drivers/clk

[PATCH] net: realtek: r8169: remove redundant assignment to giga_ctrl

2017-11-08 Thread Colin King
From: Colin Ian King The variable giga_ctrl is being assigned to zero however this is never read and hence the assignment is redundant, so remove it. Cleans up clang warning: drivers/net/ethernet/realtek/r8169.c:1978:3: warning: Value stored to 'giga_ctrl' is never read Signed-off-by: Colin Ian

Re: syzbot:dup: general protection fault in __lock_acquire (2)

2017-11-08 Thread Dmitry Vyukov
On Sun, Nov 5, 2017 at 3:34 PM, Jon Maloy wrote: > The problem was already known, but the solution is non-trivial, and needs > some more review and testing before I can submit it. > > ///Jon Maloy Hi Jon, Thank you very much for actually bothering to reply with the dup command. But commands mus

Re: [2/3] iio: adc: ina2xx: Adhere to documented ABI, use Ohm instead of uOhm

2017-11-08 Thread Maciej Purski
On 11/06/2017 11:21 AM, Stefan Brüns wrote: On Thursday, November 2, 2017 10:04:01 AM CET Maciej Purski wrote: On 10/14/2017 08:27 PM, Stefan Bruens wrote: On Montag, 9. Oktober 2017 11:29:43 CEST Maciej Purski wrote: On 10/01/2017 09:48 PM, Stefan Brüns wrote: According to the ABI document

Re: [PATCH v7 15/15] gpio: Automatically add lockdep keys

2017-11-08 Thread Linus Walleij
On Tue, Nov 7, 2017 at 7:15 PM, Thierry Reding wrote: > From: Thierry Reding > > In order to avoid lockdep boilerplate in individual drivers, turn the > gpiochip_add_data() function into a macro that creates a unique class > key for each driver. > > Note that this has the slight disadvantage of

Re: [PATCH V13 04/10] mmc: block: Add CQE support

2017-11-08 Thread Adrian Hunter
On 08/11/17 11:00, Linus Walleij wrote: > On Fri, Nov 3, 2017 at 2:20 PM, Adrian Hunter wrote: > >> @@ -2188,11 +2327,18 @@ enum mmc_issued mmc_blk_mq_issue_rq(struct mmc_queue >> *mq, struct request *req) >> return MMC_REQ_FAILED_TO_START; >> } >>

Re: [PATCH 30/31] dt-bindings: nds32 CPU Bindings

2017-11-08 Thread Rob Herring
Please Cc the DT list on bindings. On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu wrote: > From: Greentime Hu Commit message needed. > Signed-off-by: Vincent Chen > Signed-off-by: Rick Chen > Signed-off-by: Zong Li > Signed-off-by: Greentime Hu > --- > Documentation/devicetree/bindings/nds

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

2017-11-08 Thread Josh Poimboeuf
On Wed, Nov 08, 2017 at 10:18:28AM +0100, Ingo Molnar wrote: > > * Josh Poimboeuf wrote: > > > On Wed, Nov 08, 2017 at 01:47:17PM +1100, Stephen Rothwell wrote: > > > Presumably caused by commit > > > > > > 6a77cff819ae ("objtool: Move synced files to their original relative > > > locations"

Re: [(resend)] seq_file: reset iterator to first record for zero offset

2017-11-08 Thread Szabolcs Nagy
* Miklos Szeredi [2016-12-19 12:38:00 +0100]: > Al, > > Can you please take (or NACK) this patch please? > > Thanks, > Miklos > --- > From: Tomasz Majchrzak > Date: Tue, 29 Nov 2016 15:18:20 +0100 > > If kernfs file is empty on a first read, successive read operations > using the same file des

Re: [PATCH] coccinelle: fix verbose message about .cocci file being run

2017-11-08 Thread Julia Lawall
On Tue, 7 Nov 2017, Masahiro Yamada wrote: > 2017-10-26 16:22 GMT+09:00 Nicolas Palix (LIG) : > > Le 26/10/17 à 06:55, Masahiro Yamada a écrit : > >> > >> If you run coccicheck with V=1 and COCCI=, you will see a strange > >> path to the semantic patch file. For example, run the following: > >>

Re: regression in irq sharing caused by genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs

2017-11-08 Thread Marc Zyngier
On 08/11/17 13:09, Marc Zyngier wrote: > On 07/11/17 23:41, Petr Cvek wrote: >> Hello, >> >> Commit 382bd4de61827 ("genirq: Use irqd_get_trigger_type to compare the >> trigger type for shared IRQs") causes a regression for pda-power driver >> and Magician machine (mach-pxa/magician.c). >> >>u

Re: [PATCH v7 2/5] x86/pvclock: add setter for pvclock_pvti_cpu0_va

2017-11-08 Thread Thomas Gleixner
On Wed, 8 Nov 2017, Joao Martins wrote: > On 11/08/2017 11:06 AM, Thomas Gleixner wrote: > > The only nit-pick I have are the convoluted function names: > > > > pvclock_set_pvti_cpu0_va() pvclock_pvti_cpu0_va() > > > > What on earth does that mean? > > > Those two functions respectively set a

Re: regression in irq sharing caused by genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs

2017-11-08 Thread Marc Zyngier
On 07/11/17 23:41, Petr Cvek wrote: > Hello, > > Commit 382bd4de61827 ("genirq: Use irqd_get_trigger_type to compare the > trigger type for shared IRQs") causes a regression for pda-power driver > and Magician machine (mach-pxa/magician.c). > >unsigned int oldtype = irqd_get_trigger_type(&d

[PATCH] optee: fix invalid of_node_put() in optee_driver_init()

2017-11-08 Thread Jens Wiklander
The first node supplied to of_find_matching_node() has its reference counter decreased as part of call to that function. In optee_driver_init() after calling of_find_matching_node() it's invalid to call of_node_put() on the supplied node again. So remove the invalid call to of_node_put(). Signed-

New Price, New Certificates, New Products- Solar water heating

2017-11-08 Thread Mr.David
New Products-Solar Water heating Hi, We have many new solar water heaters products, specially customized design for your market. 1). A9 integrated pressure solar system 2). HFP heat pipe flat type solar system 3). ST non-pressure free feeding solar system 4). SHC over heating solution CPC solar

[PATCH] drm: sti: remove vtg_remove

2017-11-08 Thread Benjamin Gaignard
vtg_remove does nothing just remove it Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/sti/sti_vtg.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_vtg.c b/drivers/gpu/drm/sti/sti_vtg.c index 5f75aea..3aa2fa6 100644 --- a/drivers/gpu/drm/sti/sti_vtg.c +++ b

[PATCH 1/2] ASoC: Intel: improve DMADEVICES dependency

2017-11-08 Thread Arnd Bergmann
As pointed out by Pierre-Louis Bossart, the depndency I added was broader than necessary, only Baytrail and Haswell/Broadwell actually need it, the others don't. At the same time, we have individual entries for the codecs that all have the 'select' statement but now don't need it any more. Fixes:

Re: [PATCH] Coccinelle: setup_timer: improve messages from setup_timer

2017-11-08 Thread Julia Lawall
On Tue, 7 Nov 2017, Masahiro Yamada wrote: > 2017-08-23 22:11 GMT+09:00 Julia Lawall : > > Allow messages about multiple timers. > > > > Signed-off-by: Julia Lawall > > > > --- > > > Applied to linux-kbuild/misc. Thanks! julia

[PATCH 2/2] ASoC: Intel: improve SND_SOC_INTEL_MACH dependencies

2017-11-08 Thread Arnd Bergmann
I ran into a build error with CONFIG_SND_SOC_INTEL_COMMON=m and SND_SOC_INTEL_MACH=y: ERROR: "snd_soc_acpi_intel_broadwell_machines" [sound/soc/intel/common/snd-soc-sst-acpi.ko] undefined! ERROR: "snd_soc_acpi_intel_haswell_machines" [sound/soc/intel/common/snd-soc-sst-acpi.ko] undefined! ERROR:

[PATCH] drm: sti: remove useless fields from vtg structure

2017-11-08 Thread Benjamin Gaignard
Drivers are registered on platform bus so the private list could be replace by a call to of_find_device_by_node(). Changing this also makes dev, np and link fields useless in vtg structure. Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/sti/Kconfig | 1 + drivers/gpu/drm/sti/sti_vtg.c |

Re: [tip:sched/core] sched/core: Optimize sched_feat() for !SCHED_DEBUG builds

2017-11-08 Thread Ingo Molnar
* Patrick Bellasi wrote: > On 08-Nov 11:02, Patrick Bellasi wrote: > > On 08-Nov 11:03, Ingo Molnar wrote: > > > > > > * tip-bot for Patrick Bellasi wrote: > > > > > > > Commit-ID: 692ee9a79c14c9f707eeb03754a26b9427c0e005 > > > > Gitweb: > > > > https://git.kernel.org/tip/692ee9a79c14c9

Re: [PATCH 2/2] scripts: coccinelle: api: detect identical chip data arrays

2017-11-08 Thread Julia Lawall
On Tue, 7 Nov 2017, Masahiro Yamada wrote: > 2017-10-09 4:18 GMT+09:00 Julia Lawall : > > This semantic patch detects duplicate arrays declared using BQ27XXX_DATA > > within a single structure. It is currently specific to the file > > drivers/power/supply/bq27xxx_battery.c. Nevertheless, havin

Re: [PATCH] lost path_put in perf_fill_ns_link_info

2017-11-08 Thread Vasily Averin
On 2017-11-08 15:09, Alexander Shishkin wrote: > On Mon, Nov 06, 2017 at 09:22:18AM +0300, Vasily Averin wrote: >> Fixes: commit e422267322cd ("perf: Add PERF_RECORD_NAMESPACES to include >> namespaces related info") >> Signed-off-by: Vasily Averin > > The change description is missing. One need

Re: [PATCH] coccinelle: grep Options and Requires fields more precisely

2017-11-08 Thread Julia Lawall
On Tue, 7 Nov 2017, Masahiro Yamada wrote: > 2017-10-26 16:26 GMT+09:00 Nicolas Palix (LIG) : > > Le 26/10/17 à 06:59, Julia Lawall a écrit : > >> > >> > >> > >> On Thu, 26 Oct 2017, Masahiro Yamada wrote: > >> > >>> Currently, the required version for badzero.cocci is picked up from > >>> its "

Re: [PATCH] Coccinelle: use false positive annotation

2017-11-08 Thread Julia Lawall
On Tue, 7 Nov 2017, Masahiro Yamada wrote: > 2017-10-30 12:52 GMT+09:00 Julia Lawall : > > > > > > On Mon, 30 Oct 2017, Masahiro Yamada wrote: > > > >> Hi Julia, > >> > >> > >> 2017-10-29 8:43 GMT+09:00 Julia Lawall : > >> > /// is to describe the semantic patch, while //# indicates reasons > >>

Re: [PATCH] Coccinelle: make DEBUG_FILE option more useful

2017-11-08 Thread Julia Lawall
On Tue, 7 Nov 2017, Masahiro Yamada wrote: > 2017-10-26 13:02 GMT+09:00 Julia Lawall : > > > > > > On Thu, 26 Oct 2017, Masahiro Yamada wrote: > > > >> Hi Julia, > >> > >> > >> 2017-10-15 18:55 GMT+09:00 Julia Lawall : > >> > Make coccicheck checked for the existence of DEBUG_FILE on each semant

[PATCH RFC] mm/memory_hotplug: make it possible to offline blocks with reserved pages

2017-11-08 Thread Vitaly Kuznetsov
Hyper-V balloon driver needs to hotplug memory in smaller chunks and to workaround Linux's 128Mb allignment requirement so it does a trick: partly populated 128Mb blocks are added and then a custom online_page_callback hook checks if the particular page is 'backed' during onlining, in case it is no

Re: [PATCH v7 2/5] x86/pvclock: add setter for pvclock_pvti_cpu0_va

2017-11-08 Thread Joao Martins
On 11/08/2017 11:06 AM, Thomas Gleixner wrote: > On Tue, 7 Nov 2017, Joao Martins wrote: >> On 11/06/2017 04:09 PM, Paolo Bonzini wrote: >>> On 19/10/2017 15:39, Joao Martins wrote: Right now there is only a pvclock_pvti_cpu0_va() which is defined on kvmclock since: commit dac16

Re: pkcs7_message: taint, no license

2017-11-08 Thread David Howells
Randy Dunlap wrote: > [74785.692410] pkcs7_message: module license 'unspecified' taints kernel. > [74785.692414] Disabling lock debugging due to kernel taint Are you particularly using the pkcs#7 parser as a module? I wonder if it makes most sense to make this and the X.509 options 'bool' rathe

Re: KASAN: use-after-free Read in worker_thread (2)

2017-11-08 Thread Dmitry Vyukov
On Wed, Nov 8, 2017 at 1:58 PM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 7dfaa7bc99498da1c6c4a48bee8d2d5265161a8c > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is at

[PATCH] xen/privcmd: remove unused variable pageidx

2017-11-08 Thread Colin King
From: Colin Ian King Variable pageidx is assigned a value but it is never read, hence it is redundant and can be removed. Cleans up clang warning: drivers/xen/privcmd.c:199:2: warning: Value stored to 'pageidx' is never read Signed-off-by: Colin Ian King --- drivers/xen/privcmd.c | 3 --- 1 f

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Jan Beulich
>>> On 08.11.17 at 13:45, wrote: > On 08/11/17 13:31, Jan Beulich wrote: > On 08.11.17 at 12:55, wrote: >>> On 08/11/17 12:18, Jan Beulich wrote: >>> On 08.11.17 at 10:07, wrote: > In case we are booted via the default boot entry by a generic loader > like grub or OVMF it is nece

Re: zd1201: remove unused variable framelen

2017-11-08 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > Variable framelen is assigned but never read, hence it is redundant > and can be removed. Cleans up clang warning: > > drivers/net/wireless/zydas/zd1201.c:234:3: warning: Value stored > to 'framelen' is never read > > Signed-off-by: Colin Ian K

Re: orinoco_usb: remove redundant pointer dev

2017-11-08 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > The pointer dev is assigned but never read, hence it is redundant > and can be removed. Cleans up clang warning: > > drivers/net/wireless/intersil/orinoco/orinoco_usb.c:1468:2: warning: > Value stored to 'dev' is never read > > Signed-off-by: C

Re: iwlegacy: remove redundant pointer sta_priv

2017-11-08 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > Pointer sta_priv is assigned but never read, hence it is redundant > and can be removed. Cleans up clang warning: > > drivers/net/wireless/intel/iwlegacy/4965-rs.c:2163:2: warning: Value > stored to 'sta_priv' is never read > > Signed-off-by: C

Re: [PATCH v2] lib/mpi: call cond_resched() from mpi_powm() loop

2017-11-08 Thread David Howells
Eric Biggers wrote: > On a non-preemptible kernel, if KEYCTL_DH_COMPUTE is called with the > largest permitted inputs (16384 bits), the kernel spends 10+ seconds > doing modular exponentiation in mpi_powm() without rescheduling. If all > threads do it, it locks up the system. Moreover, it can c

[PATCH 1/3] tee: add tee_param_is_memref() for driver use

2017-11-08 Thread Jens Wiklander
Reviewed-by: Etienne Carriere Signed-off-by: Jens Wiklander --- drivers/tee/tee_core.c | 16 ++-- include/linux/tee_drv.h | 12 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/tee/tee_core.c b/drivers/tee/tee_core.c index 58a5009eacc3..c78104589

Re: 答复: [PATCH v2,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-08 Thread gre...@linuxfoundation.org
On Mon, Oct 30, 2017 at 07:50:09AM +, 冯锐 wrote: > Hi Greg > > I'm sorry to bother you, but can you help to review this patch and the patch > below if you have time? > https://patchwork.kernel.org/patch/10026543/ Hm, I don't use patchwork, so I don't know what to say about that. But in tryin

[PATCH 3/3] optee: support asynchronous supplicant requests

2017-11-08 Thread Jens Wiklander
Adds support for asynchronous supplicant requests, meaning that the supplicant can process several requests in parallel or block in a request for some time. Acked-by: Etienne Carriere Tested-by: Etienne Carriere (b2260 pager=y/n) Signed-off-by: Jens Wiklander --- drivers/tee/optee/core.c

[PATCH] usb: gadget: udc-xilinx: remove redundant pointer udc

2017-11-08 Thread Colin King
From: Colin Ian King Pointer udc is assigned but never read, hence it is redundant and can be removed. Cleans up clang warning: drivers/usb/gadget/udc/udc-xilinx.c:974:2: warning: Value stored to 'udc' is never read Signed-off-by: Colin Ian King --- drivers/usb/gadget/udc/udc-xilinx.c | 2 --

[PATCH 0/3] tee: asynchronous supplicant requests

2017-11-08 Thread Jens Wiklander
Hi, Currently all tee supplicant communication is synchronous. This isn't very limiting if the supplicant only is accessing system local resources like storage. With network access via the supplicant it becomes a larger problem. This patch set enables asynchronous communication with the supplican

[PATCH 2/3] tee: add TEE_IOCTL_PARAM_ATTR_META

2017-11-08 Thread Jens Wiklander
Adds TEE_IOCTL_PARAM_ATTR_META which can be used to indicate meta parameters when communicating with user space. These meta parameters can be used by supplicant support multiple parallel requests at a time. Reviewed-by: Etienne Carriere Signed-off-by: Jens Wiklander --- drivers/tee/optee/supp.c

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Juergen Gross
On 08/11/17 13:31, Jan Beulich wrote: On 08.11.17 at 12:55, wrote: >> On 08/11/17 12:18, Jan Beulich wrote: >> On 08.11.17 at 10:07, wrote: In case we are booted via the default boot entry by a generic loader like grub or OVMF it is necessary to distinguish between a HVM guest

Re: [PATCH v4 01/17] PCI: dwc: Use the DMA-API to get the MSI address

2017-11-08 Thread Joao Pinto
Hello to all, Às 12:56 AM de 11/8/2017, Bjorn Helgaas escreveu: > On Fri, Nov 03, 2017 at 02:47:05PM +0100, Niklas Cassel wrote: >> Use the DMA-API to get the MSI address. This address will be written to >> our PCI config space and to the register which determines which AXI >> address the DWC IP w

Re: [PATCH 0/2] selftests: firmware: skip testing unsupported features

2017-11-08 Thread Sumit Semwal
Hi Amit, Thanks for your patches. On 8 November 2017 at 17:17, Amit Pundir wrote: > Hi, > > At Linaro we run mainline/linux-next selftests on LTS releases and > run into few test failures due to kernel mismatch or missing upstream > functionality in older kernels. Discussed at length here: > htt

Re: rtlwifi: remove redundant initialization to cfg_cmd

2017-11-08 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > cfg_cmd is initialized to zero and this value is never read, instead > it is over-written in the start of a do-while loop. Remove the > redundant initialization. Cleans up clang warning: > > drivers/net/wireless/realtek/rtlwifi/core.c:1750:22: w

Re: rtlwifi: remove redundant pointer tid_data

2017-11-08 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > tid_data is assigned but never read, hence it is redundant > and can be removed. Cleans up clang warning: > > drivers/net/wireless/realtek/rtlwifi/base.c:1581:2: warning: Value > stored to 'tid_data' is never read > > Signed-off-by: Colin Ian K

Re: [PATCH 1/2] selftests: firmware: skip unsupported async loading tests

2017-11-08 Thread Greg Kroah-Hartman
On Wed, Nov 08, 2017 at 05:17:39PM +0530, Amit Pundir wrote: > Ignore async firmware loading tests on older kernel releases, > which do not support this feature. > > Signed-off-by: Amit Pundir Acked-by: Greg Kroah-Hartman

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Juergen Gross
On 08/11/17 13:26, Paolo Bonzini wrote: > On 08/11/2017 13:24, Juergen Gross wrote: >>> My understanding of Xen is very rusty at this point, but I think a >>> "completely" legacy-free HVM domain will still have a PCI bus and the >>> Xen platform device on that bus. >>> >>> A PVH domain just knows h

Re: [PATCH 2/2] selftests: firmware: skip unsupported custom firmware fallback tests

2017-11-08 Thread Greg Kroah-Hartman
On Wed, Nov 08, 2017 at 05:17:40PM +0530, Amit Pundir wrote: > Ignore custom firmware loading and cancellation tests on older > kernel releases, which do not support this feature. > > Signed-off-by: Amit Pundir Acked-by: Greg Kroah-Hartman

Re: [1/3] rtlwifi: fix uninitialized rtlhal->last_suspend_sec time

2017-11-08 Thread Kalle Valo
Arnd Bergmann wrote: > We set rtlhal->last_suspend_sec to an uninitialized stack variable, > but unfortunately gcc never warned about this, I only found it > while working on another patch. I opened a gcc bug for this. > > Presumably the value of rtlhal->last_suspend_sec is not all that > import

Re: WTF? Re: [PATCH] License cleanup: add SPDX GPL-2.0 license identifier to files with no license

2017-11-08 Thread Philippe Ombredanne
On Tue, Nov 7, 2017 at 8:28 PM, Christoph Hellwig wrote: > On Tue, Nov 07, 2017 at 02:15:26PM -0500, Theodore Ts'o wrote: >> On Tue, Nov 07, 2017 at 06:46:58PM +, Alan Cox wrote: >> > > Given that it had no license text on it at all, it "defaults" to GPLv2, >> > > so the GPLv2 SPDX identifier

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Jan Beulich
>>> On 08.11.17 at 12:55, wrote: > On 08/11/17 12:18, Jan Beulich wrote: > On 08.11.17 at 10:07, wrote: >>> In case we are booted via the default boot entry by a generic loader >>> like grub or OVMF it is necessary to distinguish between a HVM guest >>> with a device model supporting legacy d

Re: Suspend to disk with usb connected fails to detect usb(reset) during resume

2017-11-08 Thread Ivid Suvarna
On Tue, Nov 7, 2017 at 9:19 PM, Alan Stern wrote: > On Tue, 7 Nov 2017, Ivid Suvarna wrote: > >> Hi, >> >> I am trying to support suspend to disk(hibernate) on Hikey with 4.4 >> kernel. During suspend, I could see the usb devices getting reset and I >> can access them properly. Message can be seen

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Paolo Bonzini
On 08/11/2017 13:24, Juergen Gross wrote: >> My understanding of Xen is very rusty at this point, but I think a >> "completely" legacy-free HVM domain will still have a PCI bus and the >> Xen platform device on that bus. >> >> A PVH domain just knows how to access the Xen PV features. > > A HVM dom

Re: [PATCH v2 0/2] KVM: MMU: fix kvm_is_mmio_pfn()

2017-11-08 Thread Mikulas Patocka
On Wed, 8 Nov 2017, Haozhong Zhang wrote: > On 11/03/17 10:15 -0400, Mikulas Patocka wrote: > > > > > > On Tue, 31 Oct 2017, Haozhong Zhang wrote: > > > > > [I just copy the commit message from patch 2] > > > > > > Some reserved pages, such as those from NVDIMM DAX devices, are > > > not for

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Juergen Gross
On 08/11/17 13:03, Paolo Bonzini wrote: > On 08/11/2017 12:55, Juergen Gross wrote: >> On 08/11/17 12:18, Jan Beulich wrote: >> On 08.11.17 at 10:07, wrote: In case we are booted via the default boot entry by a generic loader like grub or OVMF it is necessary to distinguish between a

Re: [PATCH net-next 1/2] net: add support for Cavium PTP coprocessor

2017-11-08 Thread Aleksey Makarov
On 11/07/2017 10:49 PM, David Daney wrote: On 11/07/2017 11:07 AM, Aleksey Makarov wrote: From: Radoslaw Biernacki This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki Signed-off-by:

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

2017-11-08 Thread Stephen Rothwell
Hi Ingo, On Wed, 8 Nov 2017 10:18:28 +0100 Ingo Molnar wrote: > > Note, I created a commit out of this fix, with your SOB - let me know if you > have > any objections. Only a small nit - I didn't bisect it, I just figured it out by inspection. Unfortunately, I don't have time to do bisections

Re: [kernel-hardening] [PATCH v4] scripts: add leaking_addresses.pl

2017-11-08 Thread Michael Ellerman
"Tobin C. Harding" writes: > Currently we are leaking addresses from the kernel to user space. This > script is an attempt to find some of those leakages. Script parses > `dmesg` output and /proc and /sys files for hex strings that look like > kernel addresses. > > Only works for 64 bit kernels, t

Re: [PATCH v2 1/3] staging: ccree: copy IV to DMAable memory

2017-11-08 Thread Herbert Xu
On Wed, Nov 08, 2017 at 01:54:03PM +0200, Gilad Ben-Yossef wrote: > > As a HW based crypto driver maintainer I sympathize, but let's play > devil's advocate for a second here: > > In the current state, HW based crypto drivers need to allocate a buffer > and copy the IV, because they don't know if

[PATCH] dell-smbios: fix string overflow

2017-11-08 Thread Arnd Bergmann
The new sysfs code overwrites two fixed-length character arrays that are each one byte shorter than they need to be, to hold the trailing \0: drivers/platform/x86/dell-smbios.c: In function 'build_tokens_sysfs': drivers/platform/x86/dell-smbios.c:494:42: error: 'sprintf' writing a terminating nul

[PATCH] rtc: x-gene: mark PM functions as __maybe_unused

2017-11-08 Thread Arnd Bergmann
The new xgene_rtc_alarm_irq_enabled() function is only accessed from PM code, which is inside of an #ifdef; this causes a harmless build warning when CONFIG_PM is disabled: drivers/rtc/rtc-xgene.c:108:12: error: 'xgene_rtc_alarm_irq_enabled' defined but not used [-Werror=unused-function] Just re

[PATCH] virtio_balloon: fix build regression

2017-11-08 Thread Arnd Bergmann
The new balloon_page_push/balloon_page_pop helpers got added inside of an #ifdef, causing a build failure when CONFIG_BALLOON_COMPACTION is disabled: drivers/virtio/virtio_balloon.c: In function 'fill_balloon': drivers/virtio/virtio_balloon.c:164:3: error: implicit declaration of function 'balloo

Re: [butterfly_attach] WARNING: CPU: 0 PID: 198 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x71/0x97

2017-11-08 Thread Mark Brown
On Wed, Nov 08, 2017 at 07:51:27PM +0800, Fengguang Wu wrote: > Another option is to disable the butterfy driver in 0day boot tests. > We've actually accumulated a kconfig enable/disable list over time. That'd certainly avoid the reports, though it will mean if anyone else runs the same testing w

Re: [PATCH v5 13/26] KVM: arm/arm64: GICv4: Propagate affinity changes to the physical ITS

2017-11-08 Thread Marc Zyngier
On 07/11/17 21:01, Auger Eric wrote: > Hi Marc, > > On 27/10/2017 16:28, Marc Zyngier wrote: >> When the guest issues an affinity change, we need to tell the physical >> ITS that we're now targetting a new vcpu. This is done by extracting >> the current mapping, updating the target, and reapplyin

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Paolo Bonzini
On 08/11/2017 12:55, Juergen Gross wrote: > On 08/11/17 12:18, Jan Beulich wrote: > On 08.11.17 at 10:07, wrote: >>> In case we are booted via the default boot entry by a generic loader >>> like grub or OVMF it is necessary to distinguish between a HVM guest >>> with a device model supporting

Re: [PATCH] x86/oprofile/ppro: Do not use __this_cpu* accessors in preemptible context

2017-11-08 Thread Thomas Gleixner
On Wed, 8 Nov 2017, Borislav Petkov wrote: > On Wed, Nov 08, 2017 at 11:48:28AM +0100, Thomas Gleixner wrote: > > AFAICT, ppro_setup_ctrs() has the same issue > > Here's an updated patch: Sorry for misleading you. That function is actually correct as it is called from the cpu online callback wit

Re: [PATCH v2 00/15] ima: digest list feature

2017-11-08 Thread Roberto Sassu
On 11/7/2017 7:06 PM, Matthew Garrett wrote: On Tue, Nov 7, 2017 at 12:53 PM, Roberto Sassu wrote: On 11/7/2017 3:49 PM, Matthew Garrett wrote: RPM's hardly universal, and distributions are in the process of moving away from using it for distributing non-core applications (Flatpak and Snap are

Re: [RFC] hung task: check specific tasks for long uninterruptible sleep state

2017-11-08 Thread Tetsuo Handa
Lingutla Chandrasekhar wrote: > Some tasks may intentionally moves to uninterruptable sleep state, > which shouldn't leads to khungtask panics, as those are recoverable > hungs. So to avoid false hung reports, add an option to select tasks > to be monitored and report/panic them only. What are bac

[PATCH 2/4] hv_balloon: simplify hv_online_page()/hv_page_online_one()

2017-11-08 Thread Vitaly Kuznetsov
Instead of doing pfn_to_page() and continuosly casting page to unsigned long just cache the pfn of the page with page_to_pfn(). Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_balloon.c | 27 +-- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/drivers/hv/

[PATCH 3/4] hv_balloon: fix bugs in num_pages_onlined accounting

2017-11-08 Thread Vitaly Kuznetsov
Our num_pages_onlined accounting is buggy: 1) In case we're offlining a memory block which was present at boot (e.g. when there was no hotplug at all) we subtract 32k from 0 and as num_pages_onlined is unsigned get a very big positive number. 2) Commit 6df8d9aaf3af ("Drivers: hv: balloon: Co

[PATCH 1/4] hv_balloon: fix printk loglevel

2017-11-08 Thread Vitaly Kuznetsov
We have a mix of different ideas of which loglevel should be used. Unify on the following: - pr_info() for normal operation - pr_warn() for 'strange' host behavior - pr_err() for all errors. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_balloon.c | 12 ++-- 1 file changed, 6 insertio

[PATCH 4/4] hv_balloon: trace post_status

2017-11-08 Thread Vitaly Kuznetsov
Hyper-V balloon driver makes non-trivial calculations to convert Linux's representation of free/used memory to what Hyper-V host expects to see. Add a tracepoint to see what's being sent and where the data comes from. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/Makefile | 1 + driv

[PATCH 0/4] hv_balloon: fixes for num_pages_onlined accounting and misc improvements

2017-11-08 Thread Vitaly Kuznetsov
While doing routing code review I noticed that commit 6df8d9aaf3af ("Drivers: hv: balloon: Correctly update onlined page count") introduced an issue with num_pages_onlined accounting on memory offlining. Deeper look showed that the accounting was always buggy. This is fixed in PATCH3. PATCHes 1 and

[PATCH net] net: hns3: Updates MSI/MSI-X alloc/free APIs(depricated) to new APIs

2017-11-08 Thread Salil Mehta
This patch migrates the HNS3 driver code from use of depricated PCI MSI/MSI-X interrupt vector allocation/free APIs to new common APIs. Signed-off-by: Salil Mehta Suggested-by: Christoph Hellwig --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 108 +++-- .../ethernet/his

Re: [Xen-devel] [PATCH 3/3] x86/xen: use guest_late_init to detect Xen PVH guest

2017-11-08 Thread Juergen Gross
On 08/11/17 12:18, Jan Beulich wrote: On 08.11.17 at 10:07, wrote: >> In case we are booted via the default boot entry by a generic loader >> like grub or OVMF it is necessary to distinguish between a HVM guest >> with a device model supporting legacy devices and a PVH guest without >> device

Re: [PATCH v2 1/3] staging: ccree: copy IV to DMAable memory

2017-11-08 Thread Gilad Ben-Yossef
Hi, On Wed, Nov 8, 2017 at 12:26 PM, Horia Geantă wrote: > On 11/2/2017 10:14 AM, Gilad Ben-Yossef wrote: >> We are being passed an IV buffer from unknown origin, which may be >> stack allocated and thus not safe for DMA. Allocate a DMA safe >> buffer for the IV and use that instead. >> > IIUC th

Re: [PATCH] staging: pi433: #define shift constants in rf69.c

2017-11-08 Thread Dan Carpenter
On Wed, Nov 08, 2017 at 06:25:06AM -0500, Joshua Abraham wrote: > This patch completes TODO improvements in rf69.c to change shift > constants to a define. > > Signed-off-by: Joshua Abraham > --- > drivers/staging/pi433/rf69.c | 4 ++-- > drivers/staging/pi433/rf69_registers.h | 4

Re: [PATCH v5 12/26] KVM: arm/arm64: GICv4: Unmap VLPI when freeing an LPI

2017-11-08 Thread Marc Zyngier
On 07/11/17 20:28, Auger Eric wrote: > Hi Marc, > > On 27/10/2017 16:28, Marc Zyngier wrote: >> When freeing an LPI (on a DISCARD command, for example), we need >> to unmap the VLPI down to the physical ITS level. >> >> Acked-by: Christoffer Dall >> Signed-off-by: Marc Zyngier >> --- >> virt/kv

Re: [PATCH 5/7] scripts/leaking_addresses: add emailing results

2017-11-08 Thread Greg KH
On Wed, Nov 08, 2017 at 11:16:43AM +0100, Petr Mladek wrote: > On Wed 2017-11-08 14:37:37, Tobin C. Harding wrote: > > Developers may not have the time (or inclination) to investigate script > > output. This information is, however, useful. If we add functionality to > > the script to email results

Re: [butterfly_attach] WARNING: CPU: 0 PID: 198 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x71/0x97

2017-11-08 Thread Fengguang Wu
On Wed, Nov 08, 2017 at 11:17:50AM +, Mark Brown wrote: On Tue, Nov 07, 2017 at 08:49:46AM -0800, Linus Torvalds wrote: On Tue, Nov 7, 2017 at 2:24 AM, Fengguang Wu wrote: > FYI this happens in v4.14-rc8 -- it's not necessarily a new bug. Yeah, very doubtful. Nobody has touched that s

[PATCH 2/2] selftests: firmware: skip unsupported custom firmware fallback tests

2017-11-08 Thread Amit Pundir
Ignore custom firmware loading and cancellation tests on older kernel releases, which do not support this feature. Signed-off-by: Amit Pundir --- tools/testing/selftests/firmware/fw_fallback.sh | 38 + 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/tools/

[PATCH 0/2] selftests: firmware: skip testing unsupported features

2017-11-08 Thread Amit Pundir
Hi, At Linaro we run mainline/linux-next selftests on LTS releases and run into few test failures due to kernel mismatch or missing upstream functionality in older kernels. Discussed at length here: https://lkml.org/lkml/2017/6/15/652 This patch series is an attempt to modify selftest firmware te

[PATCH 1/2] selftests: firmware: skip unsupported async loading tests

2017-11-08 Thread Amit Pundir
Ignore async firmware loading tests on older kernel releases, which do not support this feature. Signed-off-by: Amit Pundir --- tools/testing/selftests/firmware/fw_filesystem.sh | 34 ++- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/tools/testing/selftests/

Re: [PATCH v5 11/26] KVM: arm/arm64: GICv4: Handle INT command applied to a VLPI

2017-11-08 Thread Marc Zyngier
On 07/11/17 20:15, Auger Eric wrote: > Hi Marc, > > On 27/10/2017 16:28, Marc Zyngier wrote: >> If the guest issues an INT command targetting a VLPI, let's >> call into the irq_set_irqchip_state() helper to make it pending >> on the physical side. >> >> This works just as well if userspace decides

Re: [PATCH] staging: fsl-dpaa2: Fix multiple assignments should be avoided

2017-11-08 Thread Joe Perches
On Wed, 2017-11-08 at 12:40 +0300, Dan Carpenter wrote: > On Wed, Nov 08, 2017 at 10:20:48AM +0100, Greg KH wrote: > > On Tue, Nov 07, 2017 at 07:45:03PM -0500, Joshua Abraham wrote: > > > This patch fixes the checkpatch.pl warning: > > > "CHECK: multiple assignments should be avoided" > > > > > >

Re: Soft lockup in rt2x00usb_work_rxdone()

2017-11-08 Thread Stanislaw Gruszka
On Wed, Nov 08, 2017 at 12:07:15PM +0100, Richard Genoud wrote: > > No, that not I wanted you to do. Please remove those options and just > > do > > below on tracing directory. > > > > echo 0 > tracing_on  > > cat trace >  /dev/null > > echo "function_graph" > current_tracer  > > echo "rt2*" > set

RE: [PATCH v4 2/4] tpm: ignore burstcount to improve tpm_tis send() performance

2017-11-08 Thread Alexander.Steffen
> On 10/20/2017 08:12 PM, alexander.stef...@infineon.com wrote: > >> The TPM burstcount status indicates the number of bytes that can > >> be sent to the TPM without causing bus wait states. Effectively, > >> it is the number of empty bytes in the command FIFO. > >> > >> This patch optimizes the t

Re: [PATCH v5 10/26] KVM: arm/arm64: GICv4: Wire mapping/unmapping of VLPIs in VFIO irq bypass

2017-11-08 Thread Marc Zyngier
On 07/11/17 15:59, Auger Eric wrote: > Hi, > > On 07/11/2017 15:42, Marc Zyngier wrote: >> Hi Eric, >> >> On 07/11/17 13:06, Auger Eric wrote: >>> Hi Marc, >>> >>> On 27/10/2017 16:28, Marc Zyngier wrote: Let's use the irq bypass mechanism introduced for platform device interrupts >>> ni

Re: [tip:sched/core] sched/core: Optimize sched_feat() for !SCHED_DEBUG builds

2017-11-08 Thread Patrick Bellasi
On 08-Nov 11:02, Patrick Bellasi wrote: > On 08-Nov 11:03, Ingo Molnar wrote: > > > > * tip-bot for Patrick Bellasi wrote: > > > > > Commit-ID: 692ee9a79c14c9f707eeb03754a26b9427c0e005 > > > Gitweb: > > > https://git.kernel.org/tip/692ee9a79c14c9f707eeb03754a26b9427c0e005 > > > Author:

[PATCH] staging: pi433: #define shift constants in rf69.c

2017-11-08 Thread Joshua Abraham
This patch completes TODO improvements in rf69.c to change shift constants to a define. Signed-off-by: Joshua Abraham --- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69_registers.h | 4 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/stagi

<    5   6   7   8   9   10   11   12   13   >