Re: [PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT

2020-09-01 Thread Christoph Hellwig
On Thu, Aug 20, 2020 at 07:33:48PM +0200, Tomasz Figa wrote: > > It wasn't meant to be too insulting, but I found this out when trying > > to figure out how to just disable it. But it also ends up using > > the actual dma attr flags for it's own consistency checks, so just > > not setting the flag

Re: [PATCH] ASoC: tlv320adcx140: Fix accessing uninitialized abcx140->dev

2020-09-01 Thread Dan Murphy
Camel On 9/1/20 2:27 AM, Camel Guo wrote: From: Camel Guo in adcx140_i2c_probe, adcx140->dev is accessed before its initialization. This commit fixes this bug. s/abc/adc in the subject and s/in/In Also please add a Fixes tag. Otherwise Acked-by: Dan Murphy

Re: [PATCH v2] Bluetooth: Clear suspend tasks on unregister

2020-09-01 Thread Marcel Holtmann
Hi Abhishek, > While unregistering, make sure to clear the suspend tasks before > cancelling the work. If the unregister is called during resume from > suspend, this will unnecessarily add 2s to the resume time otherwise. > > Fixes: 4e8c36c3b0d73d (Bluetooth: Fix suspend notifier race) > Signed-o

Re: [PATCH v4 03/78] drm/vc4: hvs: Boost the core clock during modeset

2020-09-01 Thread Chanwoo Choi
Hi Maxime, On 7/9/20 2:41 AM, Maxime Ripard wrote: > In order to prevent timeouts and stalls in the pipeline, the core clock > needs to be maxed at 500MHz during a modeset on the BCM2711. > > Reviewed-by: Eric Anholt > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/vc4_drv.h | 2 ++

Re: [PATCH] regmap: soundwire: remove unsed header mod_devicetable.h

2020-09-01 Thread Vinod Koul
On 31-08-20, 09:12, Pierre-Louis Bossart wrote: > typo in commit message? Thanks for spotting, will send v2. > > On 8/29/20 5:39 AM, Vinod Koul wrote: > > mod_devicetable.h does not seem to be required for this file, so > > remove it. > > > > Signed-off-by: Vinod Koul > > --- > > drivers/bas

Re: [PATCH] staging: gdm724x: gdm_tty: corrected macro by adding brackets

2020-09-01 Thread Greg KH
On Tue, Sep 01, 2020 at 12:43:11PM +0200, antoniprzybylik wrote: > Such macros are dangerous. Consider following example: > #define GDM_TTY_READY(gdm) (gdm && gdm->tty_dev && gdm->port.count) > GDM_TTY_READY(a + b) > This macro will be expanded in such a way: > (a + b && a + b->tt

Re: [PATCH v4 0/1] libnvdimm: fix memory leaks in of_pmem.c

2020-09-01 Thread Leizhen (ThunderTown)
On 2020/9/1 18:14, Markus Elfring wrote: >> v3 --> v4 >> 1. Merge patch 1 and 2 into one: > > How do you think about to omit a cover letter for a single patch? After all, the code hasn't changed except this merge. > > Regards, > Markus > >

[PATCH v3 -next] memory: omap-gpmc: Fix -Wunused-function warnings

2020-09-01 Thread YueHaibing
If CONFIG_OF is not set, make W=1 warns: drivers/memory/omap-gpmc.c:987:12: warning: ‘gpmc_cs_remap’ defined but not used [-Wunused-function] static int gpmc_cs_remap(int cs, u32 base) ^ drivers/memory/omap-gpmc.c:926:20: warning: ‘gpmc_cs_get_name’ defined but not used

Re: [PATCH 2/2] media: uvcvideo: Convey full ycbcr colorspace information to v4l2

2020-09-01 Thread Adam Goode
On Mon, Aug 31, 2020 at 9:17 PM Laurent Pinchart wrote: > > Hi Adam, > > On Mon, Aug 24, 2020 at 01:31:54PM -0400, Adam Goode wrote: > > On Mon, Aug 24, 2020 at 10:38 AM Hans Verkuil wrote: > > > On 24/08/2020 15:56, Adam Goode wrote: > > > > On Mon, Aug 24, 2020 at 4:48 AM Hans Verkuil wrote: > >

Re: [PATCH 09/11] soundwire: intel: add dynamic debug trace for clock-stop invalid configs

2020-09-01 Thread Vinod Koul
On 31-08-20, 10:15, Pierre-Louis Bossart wrote: > > > > > > > > Detect cases where the clock is assumed to be stopped but the IP > > > > > > > is > > > > > > > not in the relevant state, and add a dynamic debug trace. > > > > > > > > > > > > you meant a debug print..and it looks like error print

Re: [PATCH v2] media: uvcvideo: Convey full colorspace information to V4L2

2020-09-01 Thread Adam Goode
On Thu, Aug 27, 2020 at 11:28 PM Adam Goode wrote: > > The Color Matching Descriptor has been present in USB cameras since > the original version of UVC, but it has never been fully exposed > in Linux. > > This change informs V4L2 of all of the UVC colorspace parameters: > color primaries, transfe

[PATCH 7/8] scsi: hisi_sas: Add carriage returns to some prints

2020-09-01 Thread John Garry
From: Xiang Chen There is no carriage return for some prints, so add carriage returns for them. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 2 +- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 24 drivers/scsi/hisi_sas/h

[PATCH 5/8] scsi: hisi_sas: Add BIST support for phy FFE

2020-09-01 Thread John Garry
From: Luo Jiaxing Add BIST support for phy FFE(Feed forward equalizer) setting. Through the new debugfs interface, the user can configure FFE if they want. FFE are a kind of parameter which used for link layer of board. They will affect the link quality between the SAS controller and the backpl

[PATCH 2/8] scsi: hisi_sas: Modify macro name for OOB phy linkrate

2020-09-01 Thread John Garry
From: Luo Jiaxing The macro for OOB phy linkrate is named as CFG_PROG_PHY_LINK_RATE_*, but it's not correct. To avoid some misunderstand, we modify it to a correct naming. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 15 +++ 1 f

Re: [PATCH v4 03/78] drm/vc4: hvs: Boost the core clock during modeset

2020-09-01 Thread Chanwoo Choi
On 9/1/20 8:21 PM, Chanwoo Choi wrote: > Hi Maxime, > > On 7/9/20 2:41 AM, Maxime Ripard wrote: >> In order to prevent timeouts and stalls in the pipeline, the core clock >> needs to be maxed at 500MHz during a modeset on the BCM2711. >> >> Reviewed-by: Eric Anholt >> Signed-off-by: Maxime Ripard

Re: linux-next: Fixes tag needs some work in the arc-current tree

2020-09-01 Thread Stephen Rothwell
Hi Mike, On Tue, 1 Sep 2020 12:13:08 +0300 Mike Rapoport wrote: > > On Tue, Sep 01, 2020 at 06:49:28PM +1000, Stephen Rothwell wrote: > > > > In commit > > > > 7000c9462d1b ("arc: fix memory initialization for systems with two memory > > banks") > > > > Fixes tag > > > > Fixes: 51930df58

RE: [PATCH 07/11] evm: Set IMA_CHANGE_XATTR/ATTR bit if EVM_ALLOW_METADATA_WRITES is set

2020-09-01 Thread Roberto Sassu
> From: Mimi Zohar [mailto:zo...@linux.ibm.com] > Sent: Tuesday, September 1, 2020 1:05 PM > On Tue, 2020-09-01 at 09:08 +, Roberto Sassu wrote: > > > From: Mimi Zohar [mailto:zo...@linux.ibm.com] > > > Sent: Monday, August 24, 2020 2:18 PM > > > On Thu, 2020-06-18 at 18:04 +0200, Roberto Sassu

Re: [Question] About SECCOMP issue for ILP32

2020-09-01 Thread Xiongfeng Wang
On 2020/9/1 2:15, Yury Norov wrote: > On Mon, Aug 31, 2020 at 5:48 AM Xiongfeng Wang > wrote: >> >> Hi Yury, >> > > Hi Xiongfeng, > > [restore CC list] > > Haven't seen this before. What kernel / glibc / ltp do you use? The kernel version is 4.19. I applied the ILP32 patches from https://gi

[PATCH] ASoC: fsl_sai: Support multiple data channel enable bits

2020-09-01 Thread Shengjiu Wang
One data channel is one data line. From imx7ulp, the SAI IP is enhanced to support multiple data channels. If there is only two channels input and slots is 2, then enable one data channel is enough for data transfer. So enable the TCE/RCE and transmit/receive mask register according to the input c

Re: [PATCH v2 1/3] dt-bindings: crypto: add new compatible for V3s

2020-09-01 Thread Maxime Ripard
On Tue, Sep 01, 2020 at 12:57:19PM +0200, Corentin Labbe wrote: > On Tue, Sep 01, 2020 at 11:32:49AM +0200, Maxime Ripard wrote: > > On Mon, Aug 31, 2020 at 09:30:59AM +0200, Martin Cerveny wrote: > > > Like A33 "sun4i-ss" has a difference, it give SHA1 digest > > > directly in BE. So add new compa

Re: [PATCH 07/11] evm: Set IMA_CHANGE_XATTR/ATTR bit if EVM_ALLOW_METADATA_WRITES is set

2020-09-01 Thread Mimi Zohar
On Tue, 2020-09-01 at 09:08 +, Roberto Sassu wrote: > > From: Mimi Zohar [mailto:zo...@linux.ibm.com] > > Sent: Monday, August 24, 2020 2:18 PM > > On Thu, 2020-06-18 at 18:04 +0200, Roberto Sassu wrote: > > > When EVM_ALLOW_METADATA_WRITES is set, EVM allows any operation > > on > > > metadata

[PATCH] KVM: Check the allocation of pv cpu mask

2020-09-01 Thread Haiwei Li
From: Haiwei Li check the allocation of per-cpu __pv_cpu_mask. Initialize ops only when successful. Signed-off-by: Haiwei Li --- arch/x86/kernel/kvm.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c ind

[tip: core/build] x86/build: Add asserts for unwanted sections

2020-09-01 Thread tip-bot2 for Kees Cook
The following commit has been merged into the core/build branch of tip: Commit-ID: 5354e84598f264793265cc99b4be2a2295826c86 Gitweb: https://git.kernel.org/tip/5354e84598f264793265cc99b4be2a2295826c86 Author:Kees Cook AuthorDate:Fri, 21 Aug 2020 12:43:05 -07:00 Committer:

[tip: core/build] arm/build: Explicitly keep .ARM.attributes sections

2020-09-01 Thread tip-bot2 for Kees Cook
The following commit has been merged into the core/build branch of tip: Commit-ID: 3b14aefb84320ac430cecbdc87b680317916b2bd Gitweb: https://git.kernel.org/tip/3b14aefb84320ac430cecbdc87b680317916b2bd Author:Kees Cook AuthorDate:Fri, 21 Aug 2020 12:42:57 -07:00 Committer:

[tip: core/build] arm/build: Refactor linker script headers

2020-09-01 Thread tip-bot2 for Kees Cook
The following commit has been merged into the core/build branch of tip: Commit-ID: d7e3b065dc98e95f2dae6d2da031dd4c243bd7be Gitweb: https://git.kernel.org/tip/d7e3b065dc98e95f2dae6d2da031dd4c243bd7be Author:Kees Cook AuthorDate:Fri, 21 Aug 2020 12:42:56 -07:00 Committer:

[tip: core/static_call] x86/perf, static_call: Optimize x86_pmu methods

2020-09-01 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the core/static_call branch of tip: Commit-ID: 7c9903c9bf716d89b34f96cc2ed64e28dabf570b Gitweb: https://git.kernel.org/tip/7c9903c9bf716d89b34f96cc2ed64e28dabf570b Author:Peter Zijlstra AuthorDate:Tue, 18 Aug 2020 15:57:53 +02:00 C

[tip: core/static_call] tracepoint: Optimize using static_call()

2020-09-01 Thread tip-bot2 for Steven Rostedt (VMware)
The following commit has been merged into the core/static_call branch of tip: Commit-ID: d25e37d89dd2f41d7acae0429039d2f0ae8b4a07 Gitweb: https://git.kernel.org/tip/d25e37d89dd2f41d7acae0429039d2f0ae8b4a07 Author:Steven Rostedt (VMware) AuthorDate:Tue, 18 Aug 2020 15:57:52

[tip: core/static_call] static_call: Handle tail-calls

2020-09-01 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the core/static_call branch of tip: Commit-ID: 5b06fd3bb9cdce4f3e731c48eb5b74c4acc47997 Gitweb: https://git.kernel.org/tip/5b06fd3bb9cdce4f3e731c48eb5b74c4acc47997 Author:Peter Zijlstra AuthorDate:Tue, 18 Aug 2020 15:57:49 +02:00 C

[tip: core/static_call] x86/static_call: Add inline static call implementation for x86-64

2020-09-01 Thread tip-bot2 for Josh Poimboeuf
The following commit has been merged into the core/static_call branch of tip: Commit-ID: 1e7e47883830aae5e8246a22ca2fc6883c61acdf Gitweb: https://git.kernel.org/tip/1e7e47883830aae5e8246a22ca2fc6883c61acdf Author:Josh Poimboeuf AuthorDate:Tue, 18 Aug 2020 15:57:45 +02:00 C

[tip: core/static_call] jump_label,module: Fix module lifetime for __jump_label_mod_text_reserved()

2020-09-01 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the core/static_call branch of tip: Commit-ID: 0db6e3734b130207026df1e78455fa98ca1d6f50 Gitweb: https://git.kernel.org/tip/0db6e3734b130207026df1e78455fa98ca1d6f50 Author:Peter Zijlstra AuthorDate:Tue, 18 Aug 2020 15:57:39 +02:00 C

[tip: core/static_call] module: Properly propagate MODULE_STATE_COMING failure

2020-09-01 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the core/static_call branch of tip: Commit-ID: 59cc8e0a906ea23190922e5e0252e5b5a60d70c2 Gitweb: https://git.kernel.org/tip/59cc8e0a906ea23190922e5e0252e5b5a60d70c2 Author:Peter Zijlstra AuthorDate:Tue, 18 Aug 2020 15:57:38 +02:00 C

[tip: core/static_call] notifier: Fix broken error handling pattern

2020-09-01 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the core/static_call branch of tip: Commit-ID: 70d932985757fbe978024db313001218e9f8fe5c Gitweb: https://git.kernel.org/tip/70d932985757fbe978024db313001218e9f8fe5c Author:Peter Zijlstra AuthorDate:Tue, 18 Aug 2020 15:57:36 +02:00 C

[tip: core/static_call] module: Fix up module_notifier return values

2020-09-01 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the core/static_call branch of tip: Commit-ID: 0340a6b7fb767f7f296b9bacc9a215920519a644 Gitweb: https://git.kernel.org/tip/0340a6b7fb767f7f296b9bacc9a215920519a644 Author:Peter Zijlstra AuthorDate:Tue, 18 Aug 2020 15:57:37 +02:00 C

Re: [PATCH v2 3/9] iommu/ioasid: Introduce ioasid_set APIs

2020-09-01 Thread Auger Eric
Hi Jacob, On 8/22/20 6:35 AM, Jacob Pan wrote: > ioasid_set was introduced as an arbitrary token that are shared by a that is > group of IOASIDs. For example, if IOASID #1 and #2 are allocated via the > same ioasid_set*, they are viewed as to belong to the same set. two IOASIDs allocated via the s

Re: [PATCH v2 2/9] iommu/ioasid: Rename ioasid_set_data()

2020-09-01 Thread Auger Eric
Hi jacob, On 8/22/20 6:35 AM, Jacob Pan wrote: > Rename ioasid_set_data() to ioasid_attach_data() to avoid confusion with > struct ioasid_set. ioasid_set is a group of IOASIDs that share a common > token. > > Signed-off-by: Jacob Pan Reviewed-by: Eric Auger Eric > --- > drivers/iommu/intel/sv

[RFC V2 0/9] x86/mmu:Introduce parallel memory virtualization to boost performance

2020-09-01 Thread yulei . kernel
From: Yulei Zhang Currently in KVM memory virtulization we relay on mmu_lock to synchronize the memory mapping update, which make vCPUs work in serialize mode and slow down the execution, especially after migration to do substantial memory mapping will cause visible performance drop, and it can g

[tip: core/static_call] static_call: Add basic static call infrastructure

2020-09-01 Thread tip-bot2 for Josh Poimboeuf
The following commit has been merged into the core/static_call branch of tip: Commit-ID: 115284d89a436e9b66da0c6c4f6efded806874b2 Gitweb: https://git.kernel.org/tip/115284d89a436e9b66da0c6c4f6efded806874b2 Author:Josh Poimboeuf AuthorDate:Tue, 18 Aug 2020 15:57:41 +02:00 C

[tip: core/static_call] compiler.h: Make __ADDRESSABLE() symbol truly unique

2020-09-01 Thread tip-bot2 for Josh Poimboeuf
The following commit has been merged into the core/static_call branch of tip: Commit-ID: 563a02b0c9704f69c0364befedd451f57fe88092 Gitweb: https://git.kernel.org/tip/563a02b0c9704f69c0364befedd451f57fe88092 Author:Josh Poimboeuf AuthorDate:Tue, 18 Aug 2020 15:57:40 +02:00 C

[RFC V2 1/9] Introduce new fields in kvm_arch/vcpu_arch struct for direct build EPT support

2020-09-01 Thread yulei . kernel
From: Yulei Zhang Add parameter global_root_hpa for saving direct build global EPT root point, and add per-vcpu flag direct_build_tdp to indicate using global EPT root point. Signed-off-by: Yulei Zhang --- arch/x86/include/asm/kvm_host.h | 5 + 1 file changed, 5 insertions(+) diff --git a

[RFC V2 3/9] Introduce page table remove function for direct build EPT feature

2020-09-01 Thread yulei . kernel
From: Yulei Zhang During guest boots up it will modify the memory slots multiple times, so add page table remove function to free pre-pinned memory according to the the memory slot changes. Signed-off-by: Yulei Zhang --- arch/x86/kvm/mmu/mmu.c | 56 ++ 1

[RFC V2 4/9] Add release function for direct build ept when guest VM exit

2020-09-01 Thread yulei . kernel
From: Yulei Zhang Release the pre-pinned memory in direct build ept when guest VM exit. Signed-off-by: Yulei Zhang --- arch/x86/kvm/mmu/mmu.c | 37 - 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu

Re: [PATCH 2/2] random32: add noise from network and scheduling activity

2020-09-01 Thread Willy Tarreau
Hi Eric, On Tue, Sep 01, 2020 at 12:24:38PM +0200, Eric Dumazet wrote: > There is not much entropy here really : > > 1) dev & txq are mostly constant on a typical host (at least the kind of > hosts that is targeted by > Amit Klein and others in their attacks. > > 2) len is also known by the at

[RFC V2 9/9] Handle certain mmu exposed functions properly while turn on direct build EPT mode

2020-09-01 Thread yulei . kernel
From: Yulei Zhang Signed-off-by: Yulei Zhang --- arch/x86/kvm/mmu/mmu.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c index 6639d9c7012e..35bd87bf965f 100644 --- a/arch/x86/kvm/mmu/mmu.c +++ b/arch/x86/kvm/mmu/mmu.c @@ -1719,6 +1719

[PATCH] signal: clean up codestyle

2020-09-01 Thread Miaohe Lin
No functional change intended. Signed-off-by: Miaohe Lin --- kernel/signal.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/signal.c b/kernel/signal.c index a38b3edc6851..10a31fafc35b 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1115,8 +1115,8 @@ sta

Re: [Intel-gfx] 5.9-rc1: graphics regression moved from -next to mainline

2020-09-01 Thread Harald Arnesen
Still (rc3) doesn't work without the three reverts. I'm not sure how to proceed, I cannot capture any oops, and see nothing obvious in any logs. -- Hilsen Harald

Re: [PATCH] PM: s2idle: Introduce syscore callbacks in s2idle flow

2020-09-01 Thread Rafael J. Wysocki
On Tue, Sep 1, 2020 at 9:05 AM Claude Yen wrote: > > This series based on 5.9-rc1 > This patch makes s2idle call existing syscore callbacks. Currently, > when s2idle is selected as system suspend method, callbacks hooked > by register_syscore_ops() will not be triggered. This may induce > unexpect

[PATCH] pty: do tty_flip_buffer_push without port->lock in pty_write

2020-09-01 Thread Artem Savkov
b6da31b2c07c "tty: Fix data race in tty_insert_flip_string_fixed_flag" puts tty_flip_buffer_push under port->lock introducing the following possible circular locking dependency: [30129.876566] == [30129.876566] WARNING: possible circular locking

[PATCH] block: Fix potential page reference leak in __bio_iov_iter_get_pages()

2020-09-01 Thread Miaohe Lin
When bio is full, __bio_iov_iter_get_pages() would return error directly while left page reference still held in pages. Release these references. Also advance the iov_iter according to what we have done successfully. Fixes: 576ed9135489 ("block: use bio_add_page in bio_iov_iter_get_pages") Signed-

[PATCH] fsi: Fix an IS_ERR() vs NULL check in occ_probe()

2020-09-01 Thread Jing Xiangfeng
The platform_device_register_full() function returns error pointers, it never returns NULL. Signed-off-by: Jing Xiangfeng --- drivers/fsi/fsi-occ.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c index 7da9c81759ac..9eeb856c8905 1

Re: [PATCH v3] misc: rtsx: add power saving function and bios guide options

2020-09-01 Thread Bjorn Helgaas
On Tue, Sep 01, 2020 at 05:51:18PM +0800, ricky...@realtek.com wrote: > From: Ricky Wu > > v2 v3: > fixed build WARNING > > v1: > Added rts5227 rts5249 rts5260 rts5228 power saving functions, > added BIOS guide MMC funciton and U_d3_en register support and > fixed rts5260 driving parameter > >

Re: [PATCH 4/4] powerpc/64s/radix: Fix mm_cpumask trimming race vs kthread_use_mm

2020-09-01 Thread Michael Ellerman
Nicholas Piggin writes: > Commit 0cef77c7798a7 ("powerpc/64s/radix: flush remote CPUs out of > single-threaded mm_cpumask") added a mechanism to trim the mm_cpumask of > a process under certain conditions. One of the assumptions is that > mm_users would not be incremented via a reference outside t

Re: [PATCH 2/2] usb: dwc3: Add driver for Xilinx platforms

2020-09-01 Thread Robin Murphy
On 2020-08-28 18:53, Manish Narani wrote: Hi Robin, Thanks for the review. Please find my comment below inline. -Original Message- From: Robin Murphy Sent: Friday, August 28, 2020 12:17 AM To: Manish Narani ; gre...@linuxfoundation.org; robh...@kernel.org; Michal Simek ; ba...@kernel.

[PATCH] block: Fix potential NULL pointer dereference in __bio_crypt_clone()

2020-09-01 Thread Miaohe Lin
mempool_alloc() may return NULL if __GFP_DIRECT_RECLAIM is not set in gfp_mask under memory pressure. So we should check the return value of mempool_alloc() against NULL before dereference. Fixes: a892c8d52c02 ("block: Inline encryption support for blk-mq") Signed-off-by: Miaohe Lin --- block/bl

Re: [PATCH v2 1/2] ath10k: Keep track of which interrupts fired, don't poll them

2020-09-01 Thread Kalle Valo
Douglas Anderson wrote: > If we have a per CE (Copy Engine) IRQ then we have no summary > register. Right now the code generates a summary register by > iterating over all copy engines and seeing if they have an interrupt > pending. > > This has a problem. Specifically if _none_ if the Copy En

Re: [PATCH v6 31/76] x86/head/64: Setup MSR_GS_BASE before calling into C code

2020-09-01 Thread Joerg Roedel
On Fri, Aug 28, 2020 at 08:13:46PM +0200, Borislav Petkov wrote: > On Mon, Aug 24, 2020 at 10:54:26AM +0200, Joerg Roedel wrote: > > + movl$MSR_GS_BASE,%ecx > > I'm confused: is this missing those three lines: > > movlinitial_gs(%rip),%eax > movlinitial_gs+4(%rip),%e

Re: linux-next: Signed-off-by missing for commits in the v4l-dvb tree

2020-09-01 Thread Mauro Carvalho Chehab
Em Tue, 1 Sep 2020 12:52:16 +0200 Mauro Carvalho Chehab escreveu: > Hi Julia, > > Em Tue, 1 Sep 2020 12:05:51 +0200 (CEST) > Julia Lawall escreveu: > > > On Tue, 1 Sep 2020, Stephen Rothwell wrote: > > > > > Hi all, > > > > > > Commits > > > > > > 063a27cb9820 ("media: tm6000: drop unnecess

Re: [PATCH][next] docs: vmcoreinfo: add lockless printk ringbuffer vmcoreinfo

2020-09-01 Thread Petr Mladek
On Fri 2020-08-14 23:39:16, John Ogness wrote: > With the introduction of the lockless printk ringbuffer, the > VMCOREINFO relating to the kernel log buffer was changed. Update the > documentation to match those changes. > > Fixes: ("printk: use the lockless ringbuffer") > Signed-off-by: John Ogne

Re: [PATCH] openrisc: Reserve memblock for initrd

2020-09-01 Thread Mike Rapoport
On Tue, Sep 01, 2020 at 07:20:44PM +0900, Stafford Horne wrote: > On Tue, Sep 01, 2020 at 08:59:24AM +0300, Mike Rapoport wrote: > > On Tue, Sep 01, 2020 at 06:21:01AM +0900, Stafford Horne wrote: > > > Recently OpenRISC added support for external initrd images, but I found > > > some instability w

Re: [PATCH v3 -next] memory: omap-gpmc: Fix -Wunused-function warnings

2020-09-01 Thread Roger Quadros
On 01/09/2020 14:28, YueHaibing wrote: If CONFIG_OF is not set, make W=1 warns: drivers/memory/omap-gpmc.c:987:12: warning: ‘gpmc_cs_remap’ defined but not used [-Wunused-function] static int gpmc_cs_remap(int cs, u32 base) ^ drivers/memory/omap-gpmc.c:926:20: warn

Re: [PATCH v6 36/76] x86/head/64: Load IDT earlier

2020-09-01 Thread Joerg Roedel
On Sat, Aug 29, 2020 at 12:24:05PM +0200, Borislav Petkov wrote: > On Mon, Aug 24, 2020 at 10:54:31AM +0200, Joerg Roedel wrote: > > @@ -385,3 +386,25 @@ void __init alloc_intr_gate(unsigned int n, const void > > *addr) > > if (!WARN_ON(test_and_set_bit(n, system_vectors))) > > set

ERROR: "min_low_pfn" undefined!

2020-09-01 Thread kernel test robot
Hi Ard, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b51594df17d0ce80b9f9f35394a1f42d7ac94472 commit: be1eb7f78aa8fbe34779c56c266ccd0364604e71 crypto: essiv - create wrapper template for ESSIV generation date:

Re: [PATCH] signal: clean up codestyle

2020-09-01 Thread Christian Brauner
On Tue, Sep 01, 2020 at 07:58:00AM -0400, Miaohe Lin wrote: > No functional change intended. Hey Miaohe, Thank you for the patch. I'm sure this is well-intended but afaict the whole file has more or less a consistent style already where e.g. sig-1 without spaces seems to be preferred. The same fo

Re: Fwd: Re: [PATCH] staging: gdm724x: gdm_tty: corrected macro by adding brackets

2020-09-01 Thread Dan Carpenter
On Tue, Sep 01, 2020 at 02:06:23PM +0200, antoni.przyby...@wp.pl wrote: > On 01.09.2020 13:08, Greg KH wrote: > > On Tue, Sep 01, 2020 at 12:43:11PM +0200, antoniprzybylik wrote: > > > Such macros are dangerous. Consider following example: > > > #define GDM_TTY_READY(gdm) (gdm && gdm->tty_dev &&

Re: WARNING in snd_pcm_plugin_build_mulaw

2020-09-01 Thread Takashi Iwai
On Tue, 01 Sep 2020 14:16:24 +0200, Fabio Estevam wrote: > > On Tue, Sep 1, 2020 at 7:08 AM syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:15bc20c6 Merge tag 'tty-5.9-rc3' of git://git.kernel.org/p.. > > git tree: upstream > > console out

RE: [PATCH 2/2] usb: dwc3: Add driver for Xilinx platforms

2020-09-01 Thread Felipe Balbi
Hi, (remember to break your lines at 80-columns) Manish Narani writes: >> > + goto err; >> > + } >> > + >> > + ret = dwc3_xlnx_rst_assert(priv_data->apbrst); >> > + if (ret < 0) { >> > + dev_err(dev, "%s: %d: Failed to assert reset\n", >> > + __func__, _

Re: [PATCH v4 9/9] mfd: mt6360: Merge different sub-devices I2C read/write

2020-09-01 Thread Gene Chen
Lee Jones 於 2020年8月28日 週五 下午6:40寫道: > > On Mon, 17 Aug 2020, Gene Chen wrote: > > > From: Gene Chen > > > > Remove unuse register definition. > > This should be in a separate patch. > > > Merge different sub-devices I2C read/write functions into one Regmap, > > because PMIC and LDO part need CRC

Re: [PATCH] mmc: sdhci-acpi: Clear amd_sdhci_host on reset

2020-09-01 Thread Adrian Hunter
On 1/09/20 12:10 am, Raul E Rangel wrote: > commit 61d7437ed1390 ("mmc: sdhci-acpi: Fix HS400 tuning for AMDI0040") > broke resume for HS400. When the system suspends the eMMC controller is > powered down. So on resume we need to reinitialize the controller. > amd_sdhci_host was not getting cleared

Re: [PATCH] Documentation: kunit: Add naming guidelines

2020-09-01 Thread Marco Elver
On Tue, 1 Sep 2020 at 07:31, David Gow wrote: > On Tue, Sep 1, 2020 at 7:47 AM Kees Cook wrote: > > On Fri, Aug 28, 2020 at 12:17:05AM +0800, David Gow wrote: > > > On Thu, Aug 27, 2020 at 9:14 PM Marco Elver wrote: [...] > > I guess there are two audiences to cater for: > 1. Test authors, who m

Re: [PATCH v2] arm64: dts: rockchip: enable HDMI sound nodes for rk3328-rock64

2020-09-01 Thread Robin Murphy
On 2020-08-31 02:26, Katsuhiro Suzuki wrote: On 2020/08/31 4:16, Heiko Stuebner wrote: Hi, Am Sonntag, 2. August 2020, 17:42:31 CEST schrieb Katsuhiro Suzuki: This patch enables HDMI sound (I2S0) and Analog sound (I2S1) which are defined in rk3328.dtsi, and replace SPDIF nodes. We can use SPD

Re: [PATCH v2 1/2] ath10k: Keep track of which interrupts fired, don't poll them

2020-09-01 Thread Kalle Valo
Doug Anderson writes: > On Wed, Aug 26, 2020 at 7:51 AM Kalle Valo wrote: >> >> Douglas Anderson wrote: >> >> > If we have a per CE (Copy Engine) IRQ then we have no summary >> > register. Right now the code generates a summary register by >> > iterating over all copy engines and seeing if the

Re: [trivial treewide PATCH] treewide: Fix misuses of 0x%x format specifiers

2020-09-01 Thread Jiri Kosina
On Fri, 28 Aug 2020, Joe Perches wrote: > > These are almost all typos where the decimal length value > > should be after the % not before it. > > Hey Jiri: > > Is the trivial tree still alive? > Do you even look at this stuff anymore? I am, but it's obviously not my daily bread. But I try to p

Re: [PATCH v1] driver core: Fix device_pm_lock() locking for device links

2020-09-01 Thread Rafael J. Wysocki
On Tue, Sep 1, 2020 at 12:10 AM Saravana Kannan wrote: > > This commit fixes two issues: > > 1. The lockdep warning reported by Dong Aisheng [1]. > > It is a warning about a cycle (dpm_list_mtx --> kn->active#3 --> fw_lock) > that was introduced when device-link devices were added to expose devic

Re: WARNING in snd_pcm_plugin_build_mulaw

2020-09-01 Thread Fabio Estevam
On Tue, Sep 1, 2020 at 7:08 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:15bc20c6 Merge tag 'tty-5.9-rc3' of git://git.kernel.org/p.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1268efb190 > kernel config:

Re: [PATCH 0/2][next] update gdb scripts for lockless printk ringbuffer

2020-09-01 Thread Petr Mladek
On Tue 2020-08-25 17:17:56, Andrew Morton wrote: > On Tue, 25 Aug 2020 14:35:42 +0200 Petr Mladek wrote: > > > Andrew, would you mind when I take the three gdb/lockless-printk > > related changes via printk tree to avoid synchronization problems? > > No probs. If such patches turn up in linux-n

Re: [RFC PATCH v7 08/23] sched: Add core wide task selection and scheduling.

2020-09-01 Thread Vineeth Pillai
Hi Joel, On 9/1/20 1:10 AM, Joel Fernandes wrote: 3. The 'Rescheduling siblings' loop of pick_next_task() is quite fragile. It calls various functions on rq->core_pick which could very well be NULL because: An online sibling might have gone offline before a task could be picked for it, or it mig

Re: KASAN: use-after-free Read in __fput (3)

2020-09-01 Thread Al Viro
On Tue, Sep 01, 2020 at 04:43:09PM +0800, Hillf Danton wrote: > Below is my 2c for making it safe to access the rbtree entry and the > file tucked in it by bumping up the file count before adding epi into > rbtree. NAK. epitems, by design, do *NOT* pin files down. That's what eventpoll_release(

Re: WARNING: suspicious RCU usage - sdhci-pltfm: SDHCI platform and OF driver helper

2020-09-01 Thread Ulf Hansson
On Tue, 1 Sep 2020 at 12:42, wrote: > > On Tue, Sep 01, 2020 at 08:50:57AM +0200, Ulf Hansson wrote: > > On Tue, 1 Sep 2020 at 08:46, Ulf Hansson wrote: > > > On Mon, 31 Aug 2020 at 21:44, Paul E. McKenney wrote: > > > > > > [5.308588] = > > > > > [5.308593] W

Re: [PATCH] ath6kl: wmi: remove set but not used 'rate'

2020-09-01 Thread Kalle Valo
Jason Yan writes: > This addresses the following gcc warning with "make W=1": > > drivers/net/wireless/ath/ath6kl/wmi.c: In function > ‘ath6kl_wmi_bitrate_reply_rx’: > drivers/net/wireless/ath/ath6kl/wmi.c:1204:6: warning: variable ‘rate’ > set but not used [-Wunused-but-set-variable] > 1204 |

Re: [PATCH 1/2] leds: mt6360: Add LED driver for MT6360

2020-09-01 Thread Gene Chen
Randy Dunlap 於 2020年8月26日 週三 下午11:30寫道: > > On 8/26/20 4:37 AM, Gene Chen wrote: > > diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig > > index 1c181df..ce95ead 100644 > > --- a/drivers/leds/Kconfig > > +++ b/drivers/leds/Kconfig > > @@ -271,6 +271,17 @@ config LEDS_MT6323 > > This

Re: [PATCH v8 1/3] Add a new LSM-supporting anonymous inode interface

2020-09-01 Thread Christian Brauner
On Wed, Aug 26, 2020 at 11:35:20PM -0700, Lokesh Gidra wrote: > From: Daniel Colascione > > This change adds a new function, anon_inode_getfd_secure, that creates > anonymous-node file with individual non-S_PRIVATE inode to which security > modules can apply policy. Existing callers continue usin

Re: WARNING: suspicious RCU usage - sdhci-pltfm: SDHCI platform and OF driver helper

2020-09-01 Thread Ulf Hansson
On Tue, 1 Sep 2020 at 14:35, Ulf Hansson wrote: > > On Tue, 1 Sep 2020 at 12:42, wrote: > > > > On Tue, Sep 01, 2020 at 08:50:57AM +0200, Ulf Hansson wrote: > > > On Tue, 1 Sep 2020 at 08:46, Ulf Hansson wrote: > > > > On Mon, 31 Aug 2020 at 21:44, Paul E. McKenney > > > > wrote: > > > > > > >

Fwd: Re: [PATCH] staging: gdm724x: gdm_tty: corrected macro by adding brackets

2020-09-01 Thread antoni.przyby...@wp.pl
On 01.09.2020 13:08, Greg KH wrote: On Tue, Sep 01, 2020 at 12:43:11PM +0200, antoniprzybylik wrote: Such macros are dangerous. Consider following example: #define GDM_TTY_READY(gdm) (gdm && gdm->tty_dev && gdm->port.count) GDM_TTY_READY(a + b) This macro will be expanded in such

Re: [PATCH v2 4/9] iommu/ioasid: Add reference couting functions

2020-09-01 Thread Auger Eric
Hi Jacob, On 8/22/20 6:35 AM, Jacob Pan wrote: > There can be multiple users of an IOASID, each user could have hardware > contexts associated with the IOASID. In order to align lifecycles, > reference counting is introduced in this patch. It is expected that when > an IOASID is being freed, each

Re: [PATCH v1 03/12] i2c: tegra: Clean up messages in the code

2020-09-01 Thread Dmitry Osipenko
31.08.2020 23:22, Dmitry Osipenko пишет: > Use lowercase and consistent wording for all messages in the code. > > Signed-off-by: Dmitry Osipenko > --- > drivers/i2c/busses/i2c-tegra.c | 50 -- > 1 file changed, 24 insertions(+), 26 deletions(-) I'll prepare a v2

答复: 答复: 答复: [PATCH V2] vfio dma_map/unmap: optimized for hugetlbfs pages

2020-09-01 Thread Maoming (maoming, Cloud Infrastructure Service Product Dept.)
> > On 2020/8/28 下午10:24, Peter Xu wrote: > > On Fri, Aug 28, 2020 at 09:23:08AM +, Maoming (maoming, Cloud > Infrastructure Service Product Dept.) wrote: > >> In hugetlb_put_pfn(), I delete unpin_user_pages_dirty_lock() and use some > simple code to put hugetlb pages. > >> Is this right? > >

Re: [PATCH] signal: clean up codestyle

2020-09-01 Thread linmiaohe
Christian Brauner wrote: > On Tue, Sep 01, 2020 at 07:58:00AM -0400, Miaohe Lin wrote: > No functional change intended. >Hey Miaohe, > >Thank you for the patch. >I'm sure this is well-intended but afaict the whole file has more or less a >consistent style already where e.g. sig-1 without spaces

Re: [PATCH] time: Avoid undefined behaviour in timespec64_to_ns

2020-09-01 Thread Arnd Bergmann
On Tue, Sep 1, 2020 at 11:32 AM Zeng Tao wrote: > > Since commit bd40a175769d ("y2038: itimer: change implementation to > timespec64") > we have break the time clamping which handles the potential overflow. Indeed, good catch! And I broke it despite the comment telling me about the problem. >

[PATCH] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-01 Thread Pavel Tatashin
There is a race during page offline that can lead to infinite loop: a page never ends up on a buddy list and __offline_pages() keeps retrying infinitely or until a termination signal is received. Thread#1 - a new process: load_elf_binary begin_new_exec exec_mmap mmput exit_mmap tlb

答复: [PATCH V3] vfio dma_map/unmap: optimized for hugetlbfs pages

2020-09-01 Thread Maoming (maoming, Cloud Infrastructure Service Product Dept.)
> > > In the original process of dma_map/unmap pages for VFIO-devices, to > > make sure the pages are contiguous, we have to check them one by one. > > As a result, dma_map/unmap could spend a long time. > > Using the hugetlb pages, we can avoid this problem. > > All pages in hugetlb pages are co

Re: [PATCH] ath10k: Add interrupt summary based CE processing

2020-09-01 Thread Kalle Valo
Rakesh Pillai wrote: > Currently the NAPI processing loops through all > the copy engines and processes a particular copy > engine is the copy completion is set for that copy > engine. The host driver is not supposed to access > any copy engine register after clearing the interrupt > status regis

[PATCH] PCI: qcom: Make sure PCIe is reset before init for rev 2.1.0

2020-09-01 Thread Ansuel Smith
Qsdk U-Boot can incorrectly leave the PCIe interface in an undefined state if bootm command is used instead of bootipq. This is caused by the not deinit of PCIe when bootm is called. Reset the PCIe before init anyway to fix this U-Boot bug. Signed-off-by: Ansuel Smith Fixes: 82a823833f4e ("PCI: q

[RFC V2 8/9] Introduce kvm module parameter global_tdp to turn on the direct build EPT mode

2020-09-01 Thread yulei . kernel
From: Yulei Zhang Currently global_tdp is only supported on intel X86 system with ept supported, and it will turn off the smm mode when enable global_tdp. Signed-off-by: Yulei Zhang --- arch/x86/include/asm/kvm_host.h | 4 arch/x86/kvm/mmu/mmu.c | 5 - arch/x86/kvm/x86.c

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-09-01 Thread Will Deacon
On Mon, Aug 31, 2020 at 11:46:51AM +0200, Jessica Yu wrote: > +++ Will Deacon [21/08/20 13:30 +0100]: > [snipped] > > > > > > So module_enforce_rwx_sections() is already called after > > > > > > module_frob_arch_sections() - which really baffled me at first, > > > > > > since > > > > > > sh_type a

[PATCH v2] ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev

2020-09-01 Thread Camel Guo
From: Camel Guo In adcx140_i2c_probe, adcx140->dev is accessed before its initialization. This commit fixes this bug. Signed-off-by: Camel Guo --- sound/soc/codecs/tlv320adcx140.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv320adcx140.c b/sound/so

Re: [PATCH v2 00/28] The new cgroup slab memory controller

2020-09-01 Thread Pavel Tatashin
On Tue, Sep 1, 2020 at 1:28 AM Bharata B Rao wrote: > > On Fri, Aug 28, 2020 at 12:47:03PM -0400, Pavel Tatashin wrote: > > There appears to be another problem that is related to the > > cgroup_mutex -> mem_hotplug_lock deadlock described above. > > > > In the original deadlock that I described, t

Re: [PATCH 07/11] evm: Set IMA_CHANGE_XATTR/ATTR bit if EVM_ALLOW_METADATA_WRITES is set

2020-09-01 Thread Mimi Zohar
> > > I think it is better to set a flag, maybe a new one, directly in EVM, to > > > notify > > > the integrity subsystem that iint->evm_status is no longer valid. > > > > > > If the EVM flag is set, IMA would reset the appraisal flags, as it uses > > > iint->evm_status for appraisal. We can consi

[RFC V2 7/9] Add migration support when using direct build EPT

2020-09-01 Thread yulei . kernel
From: Yulei Zhang Make migration available in direct build ept mode whether pml enabled or not. Signed-off-by: Yulei Zhang --- arch/x86/include/asm/kvm_host.h | 2 + arch/x86/kvm/mmu/mmu.c | 153 +++- arch/x86/kvm/x86.c | 44 + 3 fil

Re: [PATCH v6 42/76] x86/sev-es: Setup early #VC handler

2020-09-01 Thread Joerg Roedel
On Mon, Aug 31, 2020 at 11:45:41AM +0200, Borislav Petkov wrote: > On Mon, Aug 24, 2020 at 10:54:37AM +0200, Joerg Roedel wrote: > > +#ifdef CONFIG_AMD_MEM_ENCRYPT > > + /* VMM Communication Exception */ > > + handler = fixup_pointer(vc_no_ghcb, physbase); > > + set_early_idt_handler(idt, X86

[RFC V2 6/9] Apply the direct build EPT according to the memory slots change

2020-09-01 Thread yulei . kernel
From: Yulei Zhang Construct the direct build ept when guest memory slots have been changed, and issue mmu_reload request to update the CR3 so that guest could use the pre-constructed EPT without page fault. Signed-off-by: Yulei Zhang --- arch/mips/kvm/mips.c | 13 + arch/powe

[RFC V2 5/9] Modify the page fault path to meet the direct build EPT requirement

2020-09-01 Thread yulei . kernel
From: Yulei Zhang Refine the fast page fault code so that it can be used in either normal ept mode or direct build EPT mode. Signed-off-by: Yulei Zhang --- arch/x86/kvm/mmu/mmu.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/mmu/

  1   2   3   4   5   6   7   8   9   10   >