Re: [PATCH] Input: hyperv-keyboard: Add the support of hibernation

2019-09-27 Thread dmitry.torok...@gmail.com
On Sat, Sep 21, 2019 at 06:56:04AM +, Dexuan Cui wrote: > > From: dmitry.torok...@gmail.com > > Sent: Thursday, September 19, 2019 9:18 AM > > > > Hi Dexuan, > > > > On Wed, Sep 11, 2019 at 11:36:20PM +, Dexuan Cui wrote: > > > We need hv_kbd_pm_notify() to make sure the pm_wakeup_hard_e

[PATCH] iio: adc: meson-saradc: Variables could be uninitalized if regmap_read() fails

2019-09-27 Thread Yizhuo
Several functions in this file are trying to use regmap_read() to initialize the specific variable, however, if regmap_read() fails, the variable could be uninitialized but used directly, which is potentially unsafe. The return value of regmap_read() should be checked and handled. Signed-off-by: Y

Re: x86/purgatory: undefined symbol __stack_chk_fail

2019-09-27 Thread Randy Dunlap
On 9/3/19 8:50 AM, Andreas Smas wrote: > Hi, > > For me, kernels built including this commit > b059f801a937 (x86/purgatory: Use CFLAGS_REMOVE rather than reset > KBUILD_CFLAGS) > > results in kexec() failing to load the kernel: > > kexec: Undefined symbol: __stack_chk_fail > kexec-bzImage64: Lo

Re: [GIT PULL] nfsd changes for 5.4

2019-09-27 Thread pr-tracker-bot
The pull request you sent on Fri, 27 Sep 2019 16:08:38 -0400: > git://linux-nfs.org/~bfields/linux.git tags/nfsd-5.4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4f375483559c94ec7c58fa3499e28e327d1ef911 Thank you! -- Deet-doot-dot, I am a bot. https://korg.wiki.ke

Re: Re: [GIT PULL] nfsd changes for 5.4

2019-09-27 Thread pr-tracker-bot
The pull request you sent on Fri, 27 Sep 2019 19:55:54 -0400: > git://linux-nfs.org/~bfields/linux.git tags/nfsd-5.4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/298fb76a5583900a155d387efaf37a8b39e5dea2 Thank you! -- Deet-doot-dot, I am a bot. https://korg.wiki.ke

RE: [PATCH] perf map: fix overlapped map handling

2019-09-27 Thread Steve MacLean
>> An earlier version of this patch used: >> after->start = map->end; >> +after->pgoff += map->end - pos->start; >> >> Instead of the newer Functionally equivalent: >> after->start = map->end; >> +after->pgoff = pos-

[PATCH 1/4] perf map: fix overlapped map handling

2019-09-27 Thread Steve MacLean
Whenever an mmap/mmap2 event occurs, the map tree must be updated to add a new entry. If a new map overlaps a previous map, the overlapped section of the previous map is effectively unmapped, but the non-overlapping sections are still valid. maps__fixup_overlappings() is responsible for creating a

[PATCH] KVM: Unlimit number of ioeventfd assignments for real

2019-09-27 Thread Peter Xu
Previously we've tried to unlimit ioeventfd creation (6ea34c9b78c1, "kvm: exclude ioeventfd from counting kvm_io_range limit", 2013-06-04), because that can be easily done by fd limitations and otherwise it can easily reach the current maximum of 1000 iodevices. Meanwhile, we still use the counter

[PATCH 2/4] perf inject jit: Fix JIT_CODE_MOVE filename

2019-09-27 Thread Steve MacLean
During perf inject --jit, JIT_CODE_MOVE records were injecting MMAP records with an incorrect filename. Specifically it was missing the ".so" suffix. Further the JIT_CODE_LOAD record were silently truncating the jr->load.code_index field to 32 bits before generating the filename. Make both record

[PATCH 3/4] perf inject --jit: Remove //anon mmap events

2019-09-27 Thread Steve MacLean
While a JIT is jitting code it will eventually need to commit more pages and change these pages to executable permissions. Typically the JIT will want these co-located to minimize branch displacements. The kernel will coalesce these anonymous mapping with identical permissions before sending an m

[PATCH 4/4] perf docs: Correct and clarify jitdump spec

2019-09-27 Thread Steve MacLean
Specification claims latest version of jitdump file format is 2. Current jit dump reading code treats 1 as the latest version. Correct spec to match code. The original language made it unclear the value to be written in the magic field. Revise language that the writer always writes the same valu

Re: [PATCH RESEND v4] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-09-27 Thread Andrew Morton
On Wed, 25 Sep 2019 09:56:03 +0800 hev wrote: > From: Heiher > > Take the case where we have: > > t0 > | (ew) > e0 > | (et) > e1 > | (lt) > s0 > > t0: thread 0 > e0: epoll fd 0 > e1: epoll fd 1 > s0: socket fd 0 > ew: epoll_wait > et:

Re: WARNING: locking bug in selinux_netlbl_socket_connect

2019-09-27 Thread Eric Biggers
On Tue, Sep 24, 2019 at 09:17:35AM -0400, Paul Moore wrote: > On Tue, Sep 24, 2019 at 4:21 AM Dmitry Vyukov wrote: > > On Tue, Sep 24, 2019 at 4:14 AM Paul Moore wrote: > > > On Sat, Sep 21, 2019 at 11:50 AM syzbot > > > wrote: > > > > Hello, > > > > > > > > syzbot found the following crash on:

Re: [GIT PULL] integrity subsystem updates for v5.4

2019-09-27 Thread pr-tracker-bot
The pull request you sent on Wed, 11 Sep 2019 17:29:25 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git > next-integrity has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f1f2f614d535564992f32e720739cb53cf03489f Thank you! -- Deet-doot-

Re: KASAN: slab-out-of-bounds Read in bpf_prog_create

2019-09-27 Thread Eric Biggers
Arnd and Al, On Tue, Sep 17, 2019 at 11:49:06AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:2015a28f Add linux-next specific files for 20190915 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=11880d6960 >

Re: [PATCH] media: uvcvideo: Use streaming DMA APIs to transfer buffers

2019-09-27 Thread Nicolas Boichat
On Fri, Aug 2, 2019 at 9:13 PM Shik Chen wrote: > > Similar to the commit 1161db6776bd ("media: usb: pwc: Don't use coherent > DMA buffers for ISO transfer") [1] for the pwc driver. Use streaming DMA > APIs to transfer buffers and sync them explicitly, because accessing > buffers allocated by usb_

Re: [PATCH v2 1/1] leds: remove PAGE_SIZE limit of /sys/class/leds//trigger

2019-09-27 Thread Akinobu Mita
2019年9月28日(土) 2:46 Greg Kroah-Hartman : > > On Sat, Sep 28, 2019 at 01:47:21AM +0900, Akinobu Mita wrote: > > 2019年9月27日(金) 15:39 Greg Kroah-Hartman : > > > > > > On Sat, Sep 14, 2019 at 12:03:24AM +0900, Akinobu Mita wrote: > > > > Reading /sys/class/leds//trigger returns all available LED > > >

[PATCH -next] habanalabs: remove set but not used variable 'ctx'

2019-09-27 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/misc/habanalabs/device.c: In function hpriv_release: drivers/misc/habanalabs/device.c:45:17: warning: variable ctx set but not used [-Wunused-but-set-variable] It is never used since commit eb7caf84b029 ("habanalabs: maintain a list of file

[PATCH -next] nfsd: remove set but not used variable 'len'

2019-09-27 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: fs/nfsd/nfs4xdr.c: In function nfsd4_encode_splice_read: fs/nfsd/nfs4xdr.c:3464:7: warning: variable len set but not used [-Wunused-but-set-variable] It is not used since commit 83a63072c815 ("nfsd: fix nfs read eof detection") Reported-by: Hulk Ro

Re: [PATCH v4 0/3] Optimize tlbflush path

2019-09-27 Thread Atish Patra
On Fri, 2019-08-30 at 19:50 -0700, Paul Walmsley wrote: > Hi Atish, > > On Thu, 22 Aug 2019, Atish Patra wrote: > > > This series adds few optimizations to reduce the trap cost in the > > tlb > > flush path. We should only make SBI calls to remote tlb flush only > > if > > absolutely required. >

Re: [PATCH 4/4] perf docs: Correct and clarify jitdump spec

2019-09-27 Thread Stephane Eranian
On Fri, Sep 27, 2019 at 6:53 PM Steve MacLean wrote: > > Specification claims latest version of jitdump file format is 2. Current > jit dump reading code treats 1 as the latest version. > > Correct spec to match code. > > The original language made it unclear the value to be written in the magic >

Re: nfp: abm: fix memory leak in nfp_abm_u32_knode_replace

2019-09-27 Thread Markus Elfring
>> Can such a change variant be a bit nicer? > > Definitely not. > > Looks good as is, thanks Navid! I find it interesting how the software development opinions are different also in this use case for the implementation of correct and efficient exception handling. https://git.kernel.org/pub/scm/li

Re: [PATCH] net/mlx5: fix memory leak in mlx5_fw_fatal_reporter_dump

2019-09-27 Thread Leon Romanovsky
On Fri, Sep 27, 2019 at 05:37:28PM -0500, Navid Emamdoost wrote: > In mlx5_fw_fatal_reporter_dump if mlx5_crdump_collect fails the > allocated memory for cr_data must be released otherwise there will be > memory leak. To fix this, this commit changes the return instruction > into goto error handlin

Re: [PATCH v2] riscv: Fix memblock reservation for device tree blob

2019-09-27 Thread Bin Meng
On Sat, Sep 28, 2019 at 7:14 AM Albert Ou wrote: > > This fixes an error with how the FDT blob is reserved in memblock. > An incorrect physical address calculation exposed the FDT header to > unintended corruption, which typically manifested with of_fdt_raw_init() > faulting during late boot after

Re: [PATCH] iio: adc: meson-saradc: Variables could be uninitalized if regmap_read() fails

2019-09-27 Thread Nicholas Mc Guire
On Fri, Sep 27, 2019 at 05:46:41PM -0700, Yizhuo wrote: > Several functions in this file are trying to use regmap_read() to > initialize the specific variable, however, if regmap_read() fails, > the variable could be uninitialized but used directly, which is > potentially unsafe. The return value o

RE: [PATCH 2/4] PCI: hv: Add the support of hibernation

2019-09-27 Thread Dexuan Cui
> From: Lorenzo Pieralisi > Sent: Thursday, September 26, 2019 9:31 AM > > On Wed, Sep 11, 2019 at 11:38:20PM +, Dexuan Cui wrote: > > Implement the suspend/resume callbacks for hibernation. > > > > hv_pci_suspend() needs to prevent any new work from being queued: a later > > patch will addre

RE: [PATCH 4/4] PCI: hv: Change pci_protocol_version to per-hbus

2019-09-27 Thread Dexuan Cui
> From: Lorenzo Pieralisi > Sent: Thursday, September 26, 2019 9:29 AM > > On Wed, Sep 11, 2019 at 11:38:23PM +, Dexuan Cui wrote: > > A VM can have multiple hbus. It looks incorrect for the second hbus's > > hv_pci_protocol_negotiation() to set the global variable > > 'pci_protocol_version'

Compliments

2019-09-27 Thread Christopher Quinlan QC
Compliments, My name is Christopher Quinlan QC I am a solicitor at law / investment adviser to your late relative. Your late relative left behind Cash deposit in capital and investment security account along with properties, I will like to discuss with you regarding making this claim since

Re: pull-request: wireless-drivers 2019-09-26

2019-09-27 Thread David Miller
From: Kalle Valo Date: Thu, 26 Sep 2019 15:57:33 +0300 > here's a pull request to net tree for v5.4. Please let me know if there > are any problems. Pulled, thanks Kalle.

[PATCH 3/4] hwspinlock: sprd: Use devm_add_action_or_reset() for calls to clk_disable_unprepare()

2019-09-27 Thread Baolin Wang
Use devm_add_action_or_reset() for calls to clk_disable_unprepare(), which can simplify the error handling. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/hwspinlock/sprd_hwspinl

[PATCH 1/4] hwspinlock: sprd: Change to use devm_platform_ioremap_resource()

2019-09-27 Thread Baolin Wang
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together, which can simpify the code. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/hwspinlock/sp

[PATCH 4/4] hwspinlock: sprd: Use devm_hwspin_lock_register() to register hwlock controller

2019-09-27 Thread Baolin Wang
Use devm_hwspin_lock_register() to register the hwlock controller instead of unregistering the hwlock controller explicitly when removing the device. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a

[PATCH 0/4] Some optimization for Spreadtrum hwlock controller

2019-09-27 Thread Baolin Wang
This patch set did some optimization for Spreadtrum hwlock controller, including using some devm_xxx APIs to simplify code and validating the return value when enabling clock. Baolin Wang (4): hwspinlock: sprd: Change to use devm_platform_ioremap_resource() hwspinlock: sprd: Check the return v

[PATCH 2/4] hwspinlock: sprd: Check the return value of clk_prepare_enable()

2019-09-27 Thread Baolin Wang
We must check the return value of clk_prepare_enable() to make sure the hardware spinlock controller can be enabled successfully, otherwise we should return error. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) dif

Re: [PATCH v6 7/7] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-09-27 Thread Hans Verkuil
On 9/20/19 3:51 PM, Ricardo Ribalda Delgado wrote: > From: Ricardo Ribalda Delgado > > According to the product brief, the unit cell size is 1120 nanometers^2. > > https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/ProductBrief_IMX214_20150428.pdf > > Signed-off-by: Ricardo Riba

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-27 Thread Jason Wang
On 2019/9/27 下午12:54, Tiwei Bie wrote: + + /* +* In vhost-mdev, userspace should pass ring addresses +* in guest physical addresses when IOMMU is disabled or +* IOVAs when IOMMU is enabled. +*/ A question here, consi

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-27 Thread Jason Wang
On 2019/9/27 下午12:54, Tiwei Bie wrote: The name could be confusing, get_queue_max() is to get the maximum number of entries for a virtqueue supported by this device. OK. It might be better to rename it to something like: get_vq_num_max() which is more consistent with the set_vq_num()

Re: [PATCH v4] memory_hotplug: Add a bounds check to __add_pages

2019-09-27 Thread David Hildenbrand
On 27.09.19 08:33, Alastair D'Silva wrote: > On Thu, 2019-09-26 at 09:46 +0200, David Hildenbrand wrote: >> On 26.09.19 09:43, Michal Hocko wrote: >>> On Thu 26-09-19 09:12:50, David Hildenbrand wrote: On 26.09.19 03:34, Alastair D'Silva wrote: > From: Alastair D'Silva > > On Powe

[PATCH v2] scsi: qla2xxx: Remove WARN_ON_ONCE in qla2x00_status_cont_entry()

2019-09-27 Thread Daniel Wagner
Commit 88263208dd23 ("scsi: qla2xxx: Complain if sp->done() is not called from the completion path") introduced the WARN_ON_ONCE in qla2x00_status_cont_entry(). The assumption was that there is only one status continuations element. According to the firmware documentation it is possible that multip

Re: [PATCH] scsi: qla2xxx: Remove WARN_ON_ONCE in qla2x00_status_cont_entry()

2019-09-27 Thread Daniel Wagner
Hi, > Should the following be added? > > Fixes: 88263208dd23 ("scsi: qla2xxx: Complain if sp->done() is not > called from the completion path") Good point. Just send out and updated version > Anyway: > > Reviewed-by: Bart Van Assche Thanks! Daniel

Re: [PATCH v6 7/7] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-09-27 Thread Ricardo Ribalda Delgado
Hi Hans On Fri, 27 Sep 2019, 09:14 Hans Verkuil, wrote: > > On 9/20/19 3:51 PM, Ricardo Ribalda Delgado wrote: > > From: Ricardo Ribalda Delgado > > > > According to the product brief, the unit cell size is 1120 nanometers^2. > > > > https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/prod

Re: [PATCH] reap out the dead mutt config links

2019-09-27 Thread Jonathan Corbet
On Fri, 27 Sep 2019 11:10:13 +0530 Bhaskar Chowdhury wrote: > Signed-off-by: Bhaskar Chowdhury > --- > Documentation/process/email-clients.rst | 5 - > 1 file changed, 5 deletions(-) > > diff --git a/Documentation/process/email-clients.rst > b/Documentation/process/email-clients.rst > ind

Re: [PATCH v3 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SC7180

2019-09-27 Thread Taniya Das
Hi Stephen, On 9/25/2019 6:33 PM, Stephen Boyd wrote: Quoting Taniya Das (2019-09-25 04:20:07) Hi Stephen, Please find my comments. On 9/25/2019 4:42 AM, Stephen Boyd wrote: Quoting Taniya Das (2019-09-23 01:01:11) Hi Stephen, Thanks for your comments. On 9/19/2019 3:09 AM, Stephen Boyd w

Re: IWL AC 8260, kernel 5.3.*, many kernel WARNING

2019-09-27 Thread Paul Bolle
Norbert Preining schreef op vr 27-09-2019 om 10:04 [+0900]: > Sep 27 09:08:35 burischnitzel kernel: WARNING: CPU: 0 PID: 525 at > iwl_mvm_rx_umac_scan_complete_notif.cold+0xc/0x13 [iwlmvm] > [...] > > This repeats a few times (2-4) and then it settles down. > > WIFI works without any problems, t

Re: [patch for-5.3 0/4] revert immediate fallback to remote hugepages

2019-09-27 Thread Michal Hocko
On Thu 26-09-19 12:03:37, David Rientjes wrote: [...] > Your patch is setting __GFP_THISNODE for __GFP_DIRECT_RECLAIM: this > allocation will fail in the fastpath for both my case (fragmented local > node) and Andrea's case (out of memory local node). The first > get_page_from_freelist() will t

[PATCH net 2/8] net: stmmac: xgmac: Detect Hash Table size dinamically

2019-09-27 Thread Jose Abreu
Since commit b8ef7020d6e5 ("net: stmmac: add support for hash table size 128/256 in dwmac4"), we can detect the Hash Table dinamically. Let's implement this feature in XGMAC cores and fix possible setups that don't support the maximum size for Hash Table. Signed-off-by: Jose Abreu --- Cc: Giuse

[PATCH net 5/8] net: stmmac: Correctly take timestamp for PTPv2

2019-09-27 Thread Jose Abreu
The case for PTPV2_EVENT requires event packets to be captured so add this setting to the list of enabled captures. Fixes: 891434b18ec0 ("stmmac: add IEEE PTPv1 and PTPv2 support.") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller"

[PATCH net 8/8] net: stmmac: xgmac: Fix RSS not writing all Keys to HW

2019-09-27 Thread Jose Abreu
The sizeof(cfg->key) is != ARRAY_SIZE(cfg->key). Fix it. Reported-by: kbuild test robot Reported-by: Nick Desaulniers Fixes: 76067459c686 ("net: stmmac: Implement RSS and enable it in XGMAC core") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "

[PATCH net 7/8] net: stmmac: xgmac: Disable the Timestamp interrupt by default

2019-09-27 Thread Jose Abreu
We don't use it anyway as XGMAC only supports polling for timestamp (in current SW implementation). This greatly reduces the system load by reducing the number of interrupts. Fixes: 2142754f8b9c ("net: stmmac: Add MAC related callbacks for XGMAC2") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cava

[PATCH net 0/8] net: stmmac: Fixes for -net

2019-09-27 Thread Jose Abreu
Misc fixes for -net tree. More info in commit logs. --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.k

[PATCH net 4/8] net: stmmac: dwmac4: Always update the MAC Hash Filter

2019-09-27 Thread Jose Abreu
We need to always update the MAC Hash Filter so that previous entries are invalidated. Found out while running stmmac selftests. Fixes: b8ef7020d6e5 ("net: stmmac: add support for hash table size 128/256 in dwmac4") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc

[PATCH net 1/8] net: stmmac: xgmac: Not all Unicast addresses may be available

2019-09-27 Thread Jose Abreu
Some setups may not have all Unicast addresses filters available. Let's check this before trying to setup filters. Fixes: 0efedbf11f07 ("net: stmmac: xgmac: Fix XGMAC selftests") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc

[PATCH net 3/8] net: stmmac: selftests: Always use max DMA size in Jumbo Test

2019-09-27 Thread Jose Abreu
Although some XGMAC setups support frames larger than DMA size, some of them may not. As we can't know before-hand which ones support let's use the maximum DMA buffer size in the Jumbo Tests. User can always reconfigure the MTU to achieve larger frames. Fixes: 427849e8c37f ("net: stmmac: selftest

[PATCH net 6/8] net: stmmac: Do not stop PHY if WoL is enabled

2019-09-27 Thread Jose Abreu
If WoL is enabled we can't really stop the PHY, otherwise we will not receive the WoL packet. Fix this by telling phylink that only the MAC is down and only stop the PHY if WoL is not enabled. Fixes: 74371272f97f ("net: stmmac: Convert to phylink and remove phylib logic") Signed-off-by: Jose Abreu

Re: [PATCH v6 7/7] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-09-27 Thread Hans Verkuil
On 9/27/19 9:33 AM, Ricardo Ribalda Delgado wrote: > Hi Hans > > On Fri, 27 Sep 2019, 09:14 Hans Verkuil, wrote: >> >> On 9/20/19 3:51 PM, Ricardo Ribalda Delgado wrote: >>> From: Ricardo Ribalda Delgado >>> >>> According to the product brief, the unit cell size is 1120 nanometers^2. >>> >>> htt

Re: [PATCH 0/2] KVM: nVMX: Bug fix for consuming stale vmcs02.GUEST_CR3

2019-09-27 Thread Reto Buerki
On 9/26/19 11:43 PM, Sean Christopherson wrote: > Reto Buerki reported a failure in a nested VMM when running with HLT > interception disabled in L1. When putting L2 into HLT, KVM never actually > enters L2 and instead cancels the nested run and pretends that VM-Enter to > L2 completed and then ex

[PATCH v2] net: phy: micrel: add Asym Pause workaround for KSZ9021

2019-09-27 Thread Hans Andersson
From: Hans Andersson The Micrel KSZ9031 PHY may fail to establish a link when the Asymmetric Pause capability is set. This issue is described in a Silicon Errata (DS8691D or DS8692D), which advises to always disable the capability. Micrel KSZ9021 has no errata, but has the same issue wit

[GIT PULL REQUEST] watchdog - v5.4 Merge window

2019-09-27 Thread Wim Van Sebroeck
Hi Linus, My apologies for the delay. Please pull the watchdog changes for the v5.4 release cycle. This series contains: * addition of AST2600, i.MX7ULP and F81803 watchdog support * removal of the w90x900 and ks8695 drivers * ziirave_wdt improvements * small fixes and improvements The output f

Re: [PATCH] modpost: Copy namespace string into 'struct symbol'

2019-09-27 Thread Matthias Maennich
On Thu, Sep 26, 2019 at 05:24:46PM -0500, Shaun Ruffell wrote: When building an out-of-tree module I was receiving many warnings from modpost like: WARNING: module dahdi_vpmadt032_loader uses symbol __kmalloc from namespace ts/dahdi-linux/drivers/dahdi/dahdi-version.o: ..., but does not import

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-27 Thread Tiwei Bie
On Fri, Sep 27, 2019 at 03:14:42PM +0800, Jason Wang wrote: > On 2019/9/27 下午12:54, Tiwei Bie wrote: > > > > + > > > > + /* > > > > +* In vhost-mdev, userspace should pass ring addresses > > > > +* in guest physical addresses when IOMMU is disabled or >

[tip: x86/mm] x86/mm: Fix function name typo in pmd_read_atomic() comment

2019-09-27 Thread tip-bot2 for Wei Yang
The following commit has been merged into the x86/mm branch of tip: Commit-ID: a2f7a0bfcaaa3928e4876d15edd4dfdc09e139b6 Gitweb: https://git.kernel.org/tip/a2f7a0bfcaaa3928e4876d15edd4dfdc09e139b6 Author:Wei Yang AuthorDate:Wed, 25 Sep 2019 09:44:53 +08:00 Committer: In

[tip: x86/mm] x86/mm: Clean up the pmd_read_atomic() comments

2019-09-27 Thread tip-bot2 for Ingo Molnar
The following commit has been merged into the x86/mm branch of tip: Commit-ID: 44e09568cf2d874cb2a8e2ac35acf71a9ae3402b Gitweb: https://git.kernel.org/tip/44e09568cf2d874cb2a8e2ac35acf71a9ae3402b Author:Ingo Molnar AuthorDate:Wed, 25 Sep 2019 08:38:57 +02:00 Committer:

[tip: sched/urgent] sched/membarrier: Fix private expedited registration check

2019-09-27 Thread tip-bot2 for Mathieu Desnoyers
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: fc0d77387cb5ae883fd774fc559e056a8dde024c Gitweb: https://git.kernel.org/tip/fc0d77387cb5ae883fd774fc559e056a8dde024c Author:Mathieu Desnoyers AuthorDate:Thu, 19 Sep 2019 13:36:59 -04:00 Co

[tip: sched/urgent] sched/core: Remove double update_max_interval() call on CPU startup

2019-09-27 Thread tip-bot2 for Valentin Schneider
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 9fc41acc89e58262c917b4be89ef00a87485804f Gitweb: https://git.kernel.org/tip/9fc41acc89e58262c917b4be89ef00a87485804f Author:Valentin Schneider AuthorDate:Mon, 23 Sep 2019 10:30:17 +01:00 C

[tip: sched/urgent] sched/membarrier: Remove redundant check

2019-09-27 Thread tip-bot2 for Mathieu Desnoyers
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 09554009c0cad4cb2223dd943c813c9257c6883a Gitweb: https://git.kernel.org/tip/09554009c0cad4cb2223dd943c813c9257c6883a Author:Mathieu Desnoyers AuthorDate:Thu, 19 Sep 2019 13:37:00 -04:00 Co

[tip: sched/urgent] tasks, sched/core: With a grace period after finish_task_switch(), remove unnecessary code

2019-09-27 Thread tip-bot2 for Eric W. Biederman
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 154abafc68bfb7c2ef2ad5308a3b2de8968c3f61 Gitweb: https://git.kernel.org/tip/154abafc68bfb7c2ef2ad5308a3b2de8968c3f61 Author:Eric W. Biederman AuthorDate:Sat, 14 Sep 2019 07:34:30 -05:00 Co

[tip: sched/urgent] sched/membarrier: Return -ENOMEM to userspace on memory allocation failure

2019-09-27 Thread tip-bot2 for Mathieu Desnoyers
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: c172e0a3e8e65a4c6fffec5bc4d6de08d6f894f7 Gitweb: https://git.kernel.org/tip/c172e0a3e8e65a4c6fffec5bc4d6de08d6f894f7 Author:Mathieu Desnoyers AuthorDate:Thu, 19 Sep 2019 13:37:05 -04:00 Co

[tip: sched/urgent] sched/core: Fix preempt_schedule() interrupt return comment

2019-09-27 Thread tip-bot2 for Valentin Schneider
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: a49b4f4012ef233143c5f7ce44f97851e54d5ef9 Gitweb: https://git.kernel.org/tip/a49b4f4012ef233143c5f7ce44f97851e54d5ef9 Author:Valentin Schneider AuthorDate:Mon, 23 Sep 2019 15:36:12 +01:00 C

[tip: sched/urgent] sched/fair: Avoid redundant EAS calculation

2019-09-27 Thread tip-bot2 for Quentin Perret
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 4892f51ad54ddff2883a60b6ad4323c1f632a9d6 Gitweb: https://git.kernel.org/tip/4892f51ad54ddff2883a60b6ad4323c1f632a9d6 Author:Quentin Perret AuthorDate:Fri, 20 Sep 2019 11:41:15 +02:00 Commi

[tip: sched/urgent] sched/membarrier: Call sync_core only before usermode for same mm

2019-09-27 Thread tip-bot2 for Mathieu Desnoyers
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 2840cf02fae627860156737e83326df354ee4ec6 Gitweb: https://git.kernel.org/tip/2840cf02fae627860156737e83326df354ee4ec6 Author:Mathieu Desnoyers AuthorDate:Thu, 19 Sep 2019 13:37:01 -04:00 Co

[tip: sched/urgent] sched/membarrier: Skip IPIs when mm->mm_users == 1

2019-09-27 Thread tip-bot2 for Mathieu Desnoyers
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: c6d68c1c4a4d6611fc0f8145d764226571d737ca Gitweb: https://git.kernel.org/tip/c6d68c1c4a4d6611fc0f8145d764226571d737ca Author:Mathieu Desnoyers AuthorDate:Thu, 19 Sep 2019 13:37:04 -04:00 Co

[tip: sched/urgent] sched/fair: Fix -Wunused-but-set-variable warnings

2019-09-27 Thread tip-bot2 for Qian Cai
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 763a9ec06c409dcde2a761aac4bb83ff3938e0b3 Gitweb: https://git.kernel.org/tip/763a9ec06c409dcde2a761aac4bb83ff3938e0b3 Author:Qian Cai AuthorDate:Tue, 20 Aug 2019 14:40:55 -04:00 Committer:

[tip: sched/urgent] sched/core: Fix migration to invalid CPU in __set_cpus_allowed_ptr()

2019-09-27 Thread tip-bot2 for KeMeng Shi
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 714e501e16cd473538b609b3e351b2cc9f7f09ed Gitweb: https://git.kernel.org/tip/714e501e16cd473538b609b3e351b2cc9f7f09ed Author:KeMeng Shi AuthorDate:Mon, 16 Sep 2019 06:53:28 Committer:

[tip: sched/urgent] tasks, sched/core: RCUify the assignment of rq->curr

2019-09-27 Thread tip-bot2 for Eric W. Biederman
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 5311a98fef7d0dc2e8040ae0e18f5568d6d1dd5a Gitweb: https://git.kernel.org/tip/5311a98fef7d0dc2e8040ae0e18f5568d6d1dd5a Author:Eric W. Biederman AuthorDate:Sat, 14 Sep 2019 07:35:02 -05:00 Co

[tip: sched/urgent] tasks: Add a count of task RCU users

2019-09-27 Thread tip-bot2 for Eric W. Biederman
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 3fbd7ee285b2bbc6eebd15a3c8786d9776a402a8 Gitweb: https://git.kernel.org/tip/3fbd7ee285b2bbc6eebd15a3c8786d9776a402a8 Author:Eric W. Biederman AuthorDate:Sat, 14 Sep 2019 07:33:34 -05:00 Co

[PATCH 1/2] perf vendor events s390: Add JSON transaction for machine type 8561

2019-09-27 Thread Thomas Richter
Add s390 transaction counter definition for machine 8561. This is the same file as for the predecessor machine. Fixes: 6e67d77d673d7 ("perf vendor events s390: Add JSON files for machine type 8561") Signed-off-by: Thomas Richter --- tools/perf/pmu-events/arch/s390/cf_m8561/transaction.json | 7

[tip: sched/urgent] tasks, sched/core: Ensure tasks are available for a grace period after leaving the runqueue

2019-09-27 Thread tip-bot2 for Eric W. Biederman
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 0ff7b2cfbae36ebcd216c6a5ad7f8534eebeaee2 Gitweb: https://git.kernel.org/tip/0ff7b2cfbae36ebcd216c6a5ad7f8534eebeaee2 Author:Eric W. Biederman AuthorDate:Sat, 14 Sep 2019 07:33:58 -05:00 Co

[tip: sched/urgent] sched/membarrier: Fix p->mm->membarrier_state racy load

2019-09-27 Thread tip-bot2 for Mathieu Desnoyers
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 227a4aadc75ba22fcb6c4e1c078817b8cbaae4ce Gitweb: https://git.kernel.org/tip/227a4aadc75ba22fcb6c4e1c078817b8cbaae4ce Author:Mathieu Desnoyers AuthorDate:Thu, 19 Sep 2019 13:37:02 -04:00 Co

[tip: sched/urgent] selftests, sched/membarrier: Add multi-threaded test

2019-09-27 Thread tip-bot2 for Mathieu Desnoyers
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 19a4ff534bb09686f53800564cb977bad2177c00 Gitweb: https://git.kernel.org/tip/19a4ff534bb09686f53800564cb977bad2177c00 Author:Mathieu Desnoyers AuthorDate:Thu, 19 Sep 2019 13:37:03 -04:00 Co

[PATCH 2/2] perf/pmu_events: Use s390 machine name instead of type 8561

2019-09-27 Thread Thomas Richter
In the pmu-events directory for JSON file definitions use the official machine name IBM z15 instead of machine type number 8561. This is consistent with previous machines. Signed-off-by: Thomas Richter --- tools/perf/pmu-events/arch/s390/{cf_m8561 => cf_z15}/basic.json | 0 .../perf/pmu-events/a

Re: [PATCH RT 5/8] sched/deadline: Reclaim cpuset bandwidth in .migrate_task_rq()

2019-09-27 Thread Juri Lelli
Hi Scott, On 27/07/19 00:56, Scott Wood wrote: > With the changes to migrate disabling, ->set_cpus_allowed() no longer > gets deferred until migrate_enable(). To avoid releasing the bandwidth > while the task may still be executing on the old CPU, move the subtraction > to ->migrate_task_rq(). >

[PATCH v2 0/2] net: phy: mscc-miim: Adjustments for mscc_miim_probe()

2019-09-27 Thread Markus Elfring
From: Markus Elfring Date: Fri, 27 Sep 2019 09:48:09 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use devm_platform_ioremap_resource() Move the setting of mii_bus structure members drivers/net/phy/mdio-mscc-miim.c | 19 +++--

Re: [PATCH] PCI: aardvark: Don't rely on jiffies while holding spinlock

2019-09-27 Thread Remi Pommarel
Hi Thomas, Thanks for the review. On Wed, Sep 25, 2019 at 11:33:51AM +0200, Thomas Petazzoni wrote: > Hello Remi, > > Thanks for the patch, I have a few comments/questions below. > > On Sun, 1 Sep 2019 16:23:03 +0200 > Remi Pommarel wrote: > > > diff --git a/drivers/pci/controller/pci-aardva

[PATCH v2 1/2] net: phy: mscc-miim: Use devm_platform_ioremap_resource() in mscc_miim_probe()

2019-09-27 Thread Markus Elfring
From: Markus Elfring Date: Fri, 27 Sep 2019 09:24:03 +0200 Simplify this function implementation a bit by using a known wrapper function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- v2: Alexandre Belloni pointed the need for adjustments out. htt

[PATCH v2 2/2] net: phy: mscc-miim: Move the setting of mii_bus structure members in mscc_miim_probe()

2019-09-27 Thread Markus Elfring
From: Markus Elfring Date: Fri, 27 Sep 2019 09:30:14 +0200 Move the modification of some members in the data structure “mii_bus” for the local variable “bus” directly before the call of the function “of_mdiobus_register” so that this change will be performed only after previous resource allocatio

Re: [PATCH net] of: mdio: Fix a signedness bug in of_phy_get_and_connect()

2019-09-27 Thread David Miller
From: Dan Carpenter Date: Wed, 25 Sep 2019 14:01:00 +0300 > The "iface" variable is an enum and in this context GCC treats it as > an unsigned int so the error handling is never triggered. > > Fixes: b78624125304 ("of_mdio: Abstract a general interface for phy connect") > Signed-off-by: Dan Carp

Re: [PATCH v2 1/4] lib: introduce copy_struct_from_user() helper

2019-09-27 Thread Christian Brauner
On Fri, Sep 27, 2019 at 11:07:36AM +1000, Aleksa Sarai wrote: > On 2019-09-26, Christian Brauner wrote: > > On Thu, Sep 26, 2019 at 01:03:29AM +0200, Aleksa Sarai wrote: > > > +int is_zeroed_user(const void __user *from, size_t size) > > > +{ > > > + unsigned long val; > > > + uintptr_t align = (u

[PATCH 1/2] perf/ring_buffer: Modify the parameter type of perf_mmap_free_page()

2019-09-27 Thread Yunfeng Ye
In perf_mmap_free_page(), the unsigned long type is converted to the pointer type, but where the call is made, the pointer type is converted to the unsigned long type. There is no need to do these operations. Modify the parameter type of perf_mmap_free_page() to pointer type. Signed-off-by: Yunfe

[PATCH v2] PCI: aardvark: Don't rely on jiffies while holding spinlock

2019-09-27 Thread Remi Pommarel
advk_pcie_wait_pio() can be called while holding a spinlock (from pci_bus_read_config_dword()), then depends on jiffies in order to timeout while polling on PIO state registers. In the case the PIO transaction failed, the timeout will never happen and will also cause the cpu to stall. This decreme

[PATCH 2/2] perf/ring_buffer: Matching the memory allocate and free, in rb_alloc()

2019-09-27 Thread Yunfeng Ye
Currently perf_mmap_alloc_page() is used to allocate memory in rb_alloc(), but using free_page() to free memory in the failure path. It's better to use perf_mmap_free_page() instead. Signed-off-by: Yunfeng Ye --- kernel/events/ring_buffer.c | 20 ++-- 1 file changed, 10 insertio

[PATCH] KVM: Don't shrink/grow vCPU halt_poll_ns if host side polling is disabled

2019-09-27 Thread Wanpeng Li
From: Wanpeng Li Don't waste cycles to shrink/grow vCPU halt_poll_ns if host side polling is disabled. Cc: Marcelo Tosatti Signed-off-by: Wanpeng Li --- virt/kvm/kvm_main.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/virt/kvm/kvm_main.c

[PATCH 2/3] hwspinlock: u8500_hsem: Use devm_kzalloc() to allocate memory

2019-09-27 Thread Baolin Wang
Use devm_kzalloc() to allocate memory. Signed-off-by: Baolin Wang --- drivers/hwspinlock/u8500_hsem.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/hwspinlock/u8500_hsem.c b/drivers/hwspinlock/u8500_hsem.c index c247a87..0e8d4ff 100644 --- a/driver

[PATCH 3/3] hwspinlock: u8500_hsem: Use devm_hwspin_lock_register() to register hwlock controller

2019-09-27 Thread Baolin Wang
Use devm_hwspin_lock_register() to register the hwlock controller instead of unregistering the hwlock controller explicitly when removing the device. Signed-off-by: Baolin Wang --- drivers/hwspinlock/u8500_hsem.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/d

[PATCH 1/3] hwspinlock: u8500_hsem: Change to use devm_platform_ioremap_resource()

2019-09-27 Thread Baolin Wang
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together, which can simpify the code. Signed-off-by: Baolin Wang --- drivers/hwspinlock/u8500_hsem.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/

[PATCH 0/3] Optimize the u8500_hsem hwlock driver

2019-09-27 Thread Baolin Wang
This patch set did some Optimization with changing to use devm_xxx() APIs to simplify the code and make code more readable. Baolin Wang (3): hwspinlock: u8500_hsem: Change to use devm_platform_ioremap_resource() hwspinlock: u8500_hsem: Use devm_kzalloc() to allocate memory hwspinlock: u8

[PATCH RT] kmemleak: Change the lock of kmemleak_object to raw_spinlock_t

2019-09-27 Thread Yongxin Liu
From: Liu Haitao The following call trace would be triggered as kmemleak is running. BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:968 in_atomic(): 1, irqs_disabled(): 1, pid: 902, name: kmemleak 4 locks held by kmemleak/902: #0: 1f69be68

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-27 Thread Jason Wang
On 2019/9/27 下午4:04, Tiwei Bie wrote: On Fri, Sep 27, 2019 at 03:14:42PM +0800, Jason Wang wrote: On 2019/9/27 下午12:54, Tiwei Bie wrote: + + /* +* In vhost-mdev, userspace should pass ring addresses +* in guest physical addresses when IOMMU is dis

Re: [PATCH net v2] vsock: Fix a lockdep warning in __vsock_release()

2019-09-27 Thread Stefano Garzarella
On Fri, Sep 27, 2019 at 05:37:20AM +, Dexuan Cui wrote: > > From: linux-hyperv-ow...@vger.kernel.org > > On Behalf Of Stefano Garzarella > > Sent: Thursday, September 26, 2019 12:48 AM > > > > Hi Dexuan, > > > > On Thu, Sep 26, 2019 at 01:11:27AM +, Dexuan Cui wrote: > > > ... > > > NOTE

Re: [PATCH] net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq

2019-09-27 Thread David Miller
From: Navid Emamdoost Date: Tue, 24 Sep 2019 22:20:34 -0500 > In mlx5_fpga_conn_create_cq if mlx5_vector2eqn fails the allocated > memory should be released. > > Signed-off-by: Navid Emamdoost Saeed, please queue this up.

Re: [PATCH v2] PCI: aardvark: Don't rely on jiffies while holding spinlock

2019-09-27 Thread Thomas Petazzoni
Hello Remi, Thanks for the new iteration! On Fri, 27 Sep 2019 10:31:42 +0200 Remi Pommarel wrote: > diff --git a/drivers/pci/controller/pci-aardvark.c > b/drivers/pci/controller/pci-aardvark.c > index fc0fe4d4de49..ee05ccb2b686 100644 > --- a/drivers/pci/controller/pci-aardvark.c > +++ b/drive

<    1   2   3   4   5   6   7   >