RE: [RFC 1/7] mac80211: Add check for napi handle before WARN_ON

2020-07-26 Thread Rakesh Pillai
> -Original Message- > From: Rakesh Pillai > Sent: Friday, July 24, 2020 11:51 AM > To: 'Johannes Berg' ; > 'ath...@lists.infradead.org' > Cc: 'linux-wirel...@vger.kernel.org' ; > 'linux-kernel@vger.kernel.org' ; > 'kv...@codeaurora.org' ; 'da...@davemloft.net' > ; 'k...@kernel.org' ;

Re: add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Al Viro
On Sun, Jul 26, 2020 at 05:52:04PM +0200, Christoph Hellwig wrote: > On Sun, Jul 26, 2020 at 08:49:28AM -0700, Linus Torvalds wrote: > > On Sun, Jul 26, 2020 at 12:14 AM Christoph Hellwig wrote: > > > > > > Hi Al and Linus, > > > > > > currently a lot of the file system calls in the early in code

Re: [PATCH v3 2/2] mtd: rawnand: ingenic: Limit MTD_NAND_JZ4780 to architecture only

2020-07-26 Thread Paul Cercueil
Le dim. 26 juil. 2020 à 18:15, Krzysztof Kozlowski a écrit : On Sun, Jul 26, 2020 at 06:12:27PM +0200, Paul Cercueil wrote: Le dim. 26 juil. 2020 à 18:06, Krzysztof Kozlowski a écrit : > On Sat, Jul 25, 2020 at 08:30:56PM +0200, Arnd Bergmann wrote: > > On Sat, Jul 25, 2020 at

[tip: core/entry] entry: Correct __secure_computing() stub

2020-07-26 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the core/entry branch of tip: Commit-ID: 543f5898d805e7e58bc5eadc20ed0a468368e7fd Gitweb: https://git.kernel.org/tip/543f5898d805e7e58bc5eadc20ed0a468368e7fd Author:Thomas Gleixner AuthorDate:Sun, 26 Jul 2020 18:14:43 +02:00

Re: [PATCH v3 2/2] mtd: rawnand: ingenic: Limit MTD_NAND_JZ4780 to architecture only

2020-07-26 Thread Krzysztof Kozlowski
On Sun, Jul 26, 2020 at 06:12:27PM +0200, Paul Cercueil wrote: > > > Le dim. 26 juil. 2020 à 18:06, Krzysztof Kozlowski a écrit > : > > On Sat, Jul 25, 2020 at 08:30:56PM +0200, Arnd Bergmann wrote: > > > On Sat, Jul 25, 2020 at 2:17 PM Paul Cercueil > > > wrote: > > > > Le ven. 24 juil.

[PATCH] ASoC: Intel: Atom: use hardware counter to update hw_ptr

2020-07-26 Thread Brent Lu
The ring buffer counter runs faster than hardware counter if the period size in hw_param is larger than 240. Although the differce is not much (around 2k frames), it causes false underrun in CRAS sometimes because it's using 256 frames as period size in hw_param. Using the hardware counter could

Re: [PATCH v3 2/2] mtd: rawnand: ingenic: Limit MTD_NAND_JZ4780 to architecture only

2020-07-26 Thread Paul Cercueil
Le dim. 26 juil. 2020 à 18:06, Krzysztof Kozlowski a écrit : On Sat, Jul 25, 2020 at 08:30:56PM +0200, Arnd Bergmann wrote: On Sat, Jul 25, 2020 at 2:17 PM Paul Cercueil wrote: > Le ven. 24 juil. 2020 à 17:54, Krzysztof Kozlowski a > écrit : > > On Fri, Jul 24, 2020 at 05:50:06PM

Re: [PATCH v5 5/6] kprobes: Use text_alloc() and text_free()

2020-07-26 Thread Ard Biesheuvel
On Sun, 26 Jul 2020 at 11:14, Mike Rapoport wrote: > > On Sat, Jul 25, 2020 at 06:16:48AM +0300, Jarkko Sakkinen wrote: > > On Fri, Jul 24, 2020 at 11:27:46AM +0200, Ingo Molnar wrote: > > > > > > * Jarkko Sakkinen wrote: > > > > > > > Use text_alloc() and text_free() instead of module_alloc()

Re: [PATCH v3 2/2] mtd: rawnand: ingenic: Limit MTD_NAND_JZ4780 to architecture only

2020-07-26 Thread Paul Cercueil
Le sam. 25 juil. 2020 à 20:30, Arnd Bergmann a écrit : On Sat, Jul 25, 2020 at 2:17 PM Paul Cercueil wrote: Le ven. 24 juil. 2020 à 17:54, Krzysztof Kozlowski a écrit : > On Fri, Jul 24, 2020 at 05:50:06PM +0200, Paul Cercueil wrote: >> Le ven. 24 juil. 2020 à 17:33, Krzysztof

Re: [PATCH v3 2/2] mtd: rawnand: ingenic: Limit MTD_NAND_JZ4780 to architecture only

2020-07-26 Thread Krzysztof Kozlowski
On Sat, Jul 25, 2020 at 08:30:56PM +0200, Arnd Bergmann wrote: > On Sat, Jul 25, 2020 at 2:17 PM Paul Cercueil wrote: > > Le ven. 24 juil. 2020 à 17:54, Krzysztof Kozlowski a > > écrit : > > > On Fri, Jul 24, 2020 at 05:50:06PM +0200, Paul Cercueil wrote: > > >> Le ven. 24 juil. 2020 à 17:33,

question about sharedsubtree.rst

2020-07-26 Thread Julia Lawall
Hello, Documentation/filesystems/sharedsubtree.rst contains the following: ->mnt_flags takes two more flags to indicate the propagation status of the vfsmount. MNT_SHARE indicates that the vfsmount is a shared vfsmount. MNT_UNCLONABLE

Re: [PATCH 3/5] f2fs: inherit mtime of original block during GC

2020-07-26 Thread Jaegeuk Kim
On 07/07, Chao Yu wrote: > Don't let f2fs inner GC ruins original aging degree of segment. > > Signed-off-by: Chao Yu > --- > fs/f2fs/data.c| 2 +- > fs/f2fs/f2fs.h| 5 +++-- > fs/f2fs/gc.c | 4 ++-- > fs/f2fs/segment.c | 55 --- > 4

[PATCH 4/4] quota: simplify the quotactl compat handling

2020-07-26 Thread Christoph Hellwig
Fold the misaligned u64 workarounds into the main quotactl flow instead of implementing a separate compat syscall handler. Signed-off-by: Christoph Hellwig --- arch/x86/entry/syscalls/syscall_32.tbl | 2 +- fs/quota/Kconfig | 5 -- fs/quota/Makefile

improve compat handling for the i386 u64 alignment quirk

2020-07-26 Thread Christoph Hellwig
Hi all, the i386 ABI is a little special in that it uses less than natural alignment for 64-bit integer types (u64 and s64), and a significant amount of our compat handlers deals with just that. Unfortunately there is no good way to check for this specific quirk at runtime, similar how

[PATCH 3/4] compat: add a compat_need_64bit_alignment_fixup() helper

2020-07-26 Thread Christoph Hellwig
Add a helper to check if the calling syscall needs a fixup for non-natural 64-bit type alignment in the compat ABI. This will only return true for i386 syscalls on x86_64. Signed-off-by: Christoph Hellwig --- arch/x86/include/asm/compat.h | 1 + include/linux/compat.h| 9 + 2

[PATCH 2/4] compat: lift compat_s64 and compat_u64 to

2020-07-26 Thread Christoph Hellwig
lift the compat_s64 and compat_u64 definitions into common code using the COMPAT_FOR_U64_ALIGNMENT symbol for the x86 special case. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/compat.h | 2 -- arch/mips/include/asm/compat.h| 2 -- arch/parisc/include/asm/compat.h | 2 --

[PATCH 1/4] arm64: stop using directly

2020-07-26 Thread Christoph Hellwig
Always use so that we can move more declarations to common code. In two of the three cases the asm include was in addition to an existing one for anyway. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/stat.h | 2 +- arch/arm64/kernel/process.c | 1 - arch/arm64/kernel/ptrace.c

Re: [PATCH 1/5] f2fs: introduce inmem curseg

2020-07-26 Thread Jaegeuk Kim
On 07/07, Chao Yu wrote: > Previous implementation of aligned pinfile allocation will: > - allocate new segment on cold data log no matter whether last used > segment is partially used or not, it makes IOs more random; > - force concurrent cold data/GCed IO going into warm data area, it > can make

Re: [PATCH v3 0/3] Update memdup_user.cocci

2020-07-26 Thread Markus Elfring
… > > Changes in v3: > > - add missing '-' for patch rule in kmalloc/kzalloc call args > > - selfcheck rule dropped from patchset … > All three applied. … Will the software development discussion be continued by patches according to previously mentioned ideas and remaining open issues?

[PATCH v2 2/2] MAINTAINERS: Add linux-mips mailing list to JZ47xx entries

2020-07-26 Thread Krzysztof Kozlowski
The entries for JZ47xx SoCs and its drivers lacked MIPS mailing list. Only MTD NAND driver pointed linux-mtd. Add linux-mips so the relevant patches will get attention of MIPS developers. Signed-off-by: Krzysztof Kozlowski Acked-by: Paul Cercueil --- Changes since v1: 1. Do not update DMA

[PATCH v2 1/2] MAINTAINERS: Remove JZ4780 DMA driver entry

2020-07-26 Thread Krzysztof Kozlowski
The entry for MIPS Ingenic JZ4780 DMA driver is not up to date anymore. Zubair Lutfullah Kakakhel's email bounces and no maintenance is provided. Suggested-by: Paul Cercueil Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- MAINTAINERS | 5 - 1 file changed, 5

Re: [PATCH v2 2/2] kernel/trace: Remove function callback casts

2020-07-26 Thread Oscar Carter
Hi Steven, On Sat, Jul 25, 2020 at 05:09:14PM +0200, Oscar Carter wrote: > Hi Steven, > > On Fri, Jul 24, 2020 at 02:34:57PM -0400, Steven Rostedt wrote: > > On Fri, 24 Jul 2020 19:55:00 +0200 > > Oscar Carter wrote: > > > > > > Which one of the above is this patch set for? > > > > > > This

Re: [RESEND PATCH v4 2/3] usb: serial: xr_serial: Add gpiochip support

2020-07-26 Thread Manivannan Sadhasivam
On Wed, Jul 01, 2020 at 03:02:06PM +0200, Johan Hovold wrote: > On Sun, Jun 07, 2020 at 09:53:49PM +0530, Manivannan Sadhasivam wrote: > > Add gpiochip support for Maxlinear/Exar USB to serial converter > > for controlling the available gpios. > > > > Inspired from cp210x usb to serial converter

Re: add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Christoph Hellwig
On Sun, Jul 26, 2020 at 08:49:28AM -0700, Linus Torvalds wrote: > On Sun, Jul 26, 2020 at 12:14 AM Christoph Hellwig wrote: > > > > Hi Al and Linus, > > > > currently a lot of the file system calls in the early in code (and the > > devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during

Re: add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Linus Torvalds
On Sun, Jul 26, 2020 at 12:14 AM Christoph Hellwig wrote: > > Hi Al and Linus, > > currently a lot of the file system calls in the early in code (and the > devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. > This is one of the few last remaining places we need to deal with to

Re: [RESEND PATCH v4 1/3] usb: serial: Add MaxLinear/Exar USB to Serial driver

2020-07-26 Thread Manivannan Sadhasivam
Hi, Sorry for the late reply! On Wed, Jul 01, 2020 at 12:34:33PM +0200, Johan Hovold wrote: > On Sun, Jun 07, 2020 at 09:53:48PM +0530, Manivannan Sadhasivam wrote: > > Add support for MaxLinear/Exar USB to Serial converters. This driver > > only supports XR21V141X series but it can be extended

Re: [rcu:dev.2020.07.14a 64/73] include/linux/rculist.h:727:30: error: left-hand operand of comma expression has no effect

2020-07-26 Thread Paul E. McKenney
73] kvm: mmu: > page_track: Fix RCU list API usage > config: i386-randconfig-a006-20200726 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 > reproduce (this is a W=1 build): > git checkout 93d62a873f87bf69209a5c29d62b9497888de6d6 > # save the attach

Re: [PATCH] nvme-fc: nvme-fc-driver.h: drop a duplicated word

2020-07-26 Thread Christoph Hellwig
Applied to nvme-5.9, thanks.

Re: [PATCH v16 6/9] nvmet-passthru: Add passthru code to process commands

2020-07-26 Thread Christoph Hellwig
On Fri, Jul 24, 2020 at 12:33:51PM -0700, Keith Busch wrote: > On Fri, Jul 24, 2020 at 11:25:17AM -0600, Logan Gunthorpe wrote: > > + /* > > +* The passthru NVMe driver may have a limit on the number of segments > > +* which depends on the host's memory fragementation. To solve this, > >

Re: Re: Re: Re: Re: checkpatch: support deprecated terms checking

2020-07-26 Thread SeongJae Park
On Sun, 26 Jul 2020 07:50:54 -0700 Joe Perches wrote: > On Sun, 2020-07-26 at 09:45 +0200, SeongJae Park wrote: > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > [] > > @@ -721,6 +721,7 @@ sub read_word_corrections { > > my %deprecated_terms_fix; > >

[PATCH v13 04/10] KVM: vmx/pmu: Clear PMU_CAP_LBR_FMT when guest LBR is disabled

2020-07-26 Thread Like Xu
The LBR could be enabled on the guest if host perf supports LBR (checked via x86_perf_get_lbr()) and the vcpu model is compatible with the host one. If LBR is disabled on the guest, the bits [0, 5] of the read-only MSR_IA32_PERF_CAPABILITIES which tells about the record format stored in the LBR

[PATCH v13 06/10] KVM: vmx/pmu: Pass-through LBR msrs to when the guest LBR event is ACTIVE

2020-07-26 Thread Like Xu
In addition to DEBUGCTLMSR_LBR, any KVM trap caused by LBR msrs access will result in a creation of guest LBR event per-vcpu. If the guest LBR event is scheduled on with the corresponding vcpu context, KVM will pass-through all LBR records msrs to the guest. The LBR callstack mechanism

[PATCH v13 08/10] KVM: vmx/pmu: Emulate legacy freezing LBRs on virtual PMI

2020-07-26 Thread Like Xu
The current vPMU only supports Architecture Version 2. According to Intel SDM "17.4.7 Freezing LBR and Performance Counters on PMI", if IA32_DEBUGCTL.Freeze_LBR_On_PMI = 1, the LBR is frozen on the virtual PMI and the KVM would emulate to clear the LBR bit (bit 0) in IA32_DEBUGCTL. Also, guest

[PATCH v13 03/10] KVM: vmx/pmu: Initialize vcpu perf_capabilities once in intel_pmu_init()

2020-07-26 Thread Like Xu
The guest hypervisor may configure MSR_IA32_PERF_CAPABILITIES to unmask some vmx-supported bits in vcpu->arch.perf_capabilities, and the requested value could affect the exposure of features in the intel_pmu_refresh(). Refactoring its initialization path clears the way for the above usage.

[PATCH] target/i386: add -cpu,lbr=true support to enable guest LBR

2020-07-26 Thread Like Xu
The LBR feature would be enabled on the guest if: - the KVM is enabled and the PMU is enabled and, - the msr-based-feature IA32_PERF_CAPABILITIES is supporterd and, - the supported returned value for lbr_fmt from this msr is not zero. The LBR feature would be disabled on the guest if: - the

[PATCH v13 05/10] KVM: vmx/pmu: Create a guest LBR event when vcpu sets DEBUGCTLMSR_LBR

2020-07-26 Thread Like Xu
When vcpu sets DEBUGCTLMSR_LBR in the MSR_IA32_DEBUGCTLMSR, the KVM handler would create a guest LBR event which enables the callstack mode and none of hardware counter is assigned. The host perf would schedule and enable this event as usual but in an exclusive way. The guest LBR event will be

[PATCH v13 09/10] KVM: vmx/pmu: Expose LBR_FMT in the MSR_IA32_PERF_CAPABILITIES

2020-07-26 Thread Like Xu
Userspace could enable guest LBR feature when the exactly supported LBR format value is initialized to the MSR_IA32_PERF_CAPABILITIES and the LBR is also compatible with vPMU version and host cpu model. Signed-off-by: Like Xu --- arch/x86/kvm/vmx/capabilities.h | 9 -

[PATCH v13 01/10] KVM: x86: Move common set/get handler of MSR_IA32_DEBUGCTLMSR to VMX

2020-07-26 Thread Like Xu
SVM already has specific handlers of MSR_IA32_DEBUGCTLMSR in the svm_get/set_msr, so the x86 common part can be safely moved to VMX. Add vmx_supported_debugctl() to refactor the throwing logic of #GP. Signed-off-by: Like Xu --- arch/x86/kvm/vmx/capabilities.h | 5 + arch/x86/kvm/vmx/vmx.c

[PATCH v13 10/10] KVM: vmx/pmu: Release guest LBR event via lazy release mechanism

2020-07-26 Thread Like Xu
The vPMU uses GUEST_LBR_IN_USE_IDX (bit 58) in 'pmu->pmc_in_use' to indicate whether a guest LBR event is still needed by the vcpu. If the vcpu no longer accesses LBR related registers within a scheduling time slice, and the enable bit of LBR has been unset, vPMU will treat the guest LBR event as

[PATCH v13 07/10] KVM: vmx/pmu: Reduce the overhead of LBR pass-through or cancellation

2020-07-26 Thread Like Xu
When the LBR records msrs has already been pass-through, there is no need to call vmx_update_intercept_for_lbr_msrs() again and again, and vice versa. Signed-off-by: Like Xu --- arch/x86/kvm/vmx/pmu_intel.c | 13 + arch/x86/kvm/vmx/vmx.h | 3 +++ 2 files changed, 16

[PATCH v13 02/10] KVM: x86/vmx: Make vmx_set_intercept_for_msr() non-static and expose it

2020-07-26 Thread Like Xu
It's reasonable to call vmx_set_intercept_for_msr() in other vmx-specific files (e.g. pmu_intel.c), so expose it without semantic changes hopefully. Signed-off-by: Like Xu --- arch/x86/kvm/vmx/vmx.c | 4 ++-- arch/x86/kvm/vmx/vmx.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff

[PATCH v13 00/10] Guest Last Branch Recording Enabling (KVM part)

2020-07-26 Thread Like Xu
Hi Paolo, Please review this new version for the Kernel 5.9 release, and Sean may not review them as he said in the previous email https://lore.kernel.org/kvm/20200710162819.gf1...@linux.intel.com/ You may cherry-pick the perf patches "3cb9d5464c1c..e1ad1ac2deb8" from the branch "tip/perf/core"

Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-26 Thread Laurent Pinchart
Hi Dan, and everybody, Thank you for the patch. On Sat, Jul 04, 2020 at 01:02:51PM -0700, Dan Williams wrote: > Recent events have prompted a Linux position statement on inclusive > terminology. Given that Linux maintains a coding-style and its own > idiomatic set of terminology here is a

Re: [PATCH v3] nvme/pci: Prevent SK hynix PC400 from using Write Zeroes command

2020-07-26 Thread Christoph Hellwig
Thanks, applied to nvme-5.8.

Re: [RFC PATCH] iwlwifi: yoyo: don't print failure if debug firmware is missing

2020-07-26 Thread Wolfram Sang
On Thu, Jun 25, 2020 at 06:52:10PM +0200, Wolfram Sang wrote: > Missing this firmware is not fatal, my wifi card still works. Even more, > I couldn't find any documentation what it is or where to get it. So, I > don't think the users should be notified if it is missing. If you browse > the net,

Re: WARN_ON_ONCE(1) in iomap_dio_actor()

2020-07-26 Thread Christoph Hellwig
On Fri, Jul 24, 2020 at 02:24:32PM -0400, Qian Cai wrote: > On Fri, Jun 19, 2020 at 05:17:47PM -0700, Matthew Wilcox wrote: > > On Fri, Jun 19, 2020 at 05:17:50PM -0400, Qian Cai wrote: > > > Running a syscall fuzzer by a normal user could trigger this, > > > > > > [55649.32][T515839]

Re: [PATCH v4 5/6] block: enable zone-append for iov_iter of bvec type

2020-07-26 Thread Christoph Hellwig
On Fri, Jul 24, 2020 at 09:19:21PM +0530, Kanchan Joshi wrote: > zone-append with bvec iov_iter gives WARN_ON, and returns -EINVAL. > Add new helper to process such iov_iter and add pages in bio honoring > zone-append specific constraints. > This is used to enable zone-append with io-uring

Re: [PATCH v4 4/6] block: add zone append handling for direct I/O path

2020-07-26 Thread Christoph Hellwig
On Fri, Jul 24, 2020 at 09:19:20PM +0530, Kanchan Joshi wrote: > For zoned block device, opt in for zone-append by setting > FMODE_ZONE_APPEND during open. Make direct IO submission path use > IOCB_ZONE_APPEND to send bio with append op. Make direct IO completion > return written-offset, in bytes,

Re: [Cocci] [PATCH v3 0/3] Update memdup_user.cocci

2020-07-26 Thread Markus Elfring
> All three applied. … Can the accepted software adjustment be seen by the interface of a public development repository? Regards, Markus

Re: [PATCH v4 1/6] fs: introduce FMODE_ZONE_APPEND and IOCB_ZONE_APPEND

2020-07-26 Thread Christoph Hellwig
Zone append is a protocol context that ha not business showing up in a file system interface. The right interface is a generic way to report the written offset for an append write for any kind of file. So we should pick a better name like FMODE_REPORT_APPEND_OFFSET (not that I particularly like

Re: [PATCH v4 2/6] fs: change ki_complete interface to support 64bit ret2

2020-07-26 Thread Christoph Hellwig
On Fri, Jul 24, 2020 at 09:19:18PM +0530, Kanchan Joshi wrote: > From: SelvaKumar S > > kiocb->ki_complete(...,long ret2) - change ret2 to long long. > This becomes handy to return 64bit written-offset with appending write. > Change callers using ki_complete prototype. There is no need for this

Re: [PATCH] iomap: Ensure iop->uptodate matches PageUptodate

2020-07-26 Thread Christoph Hellwig
On Sun, Jul 26, 2020 at 10:10:52AM +0100, Matthew Wilcox (Oracle) wrote: > If the filesystem has block size < page size and we end up calling > iomap_page_create() in iomap_page_mkwrite_actor(), the uptodate bits > would be zero, which causes us to skip writeback of blocks which are > !uptodate in

Re: bdi cleanups v3

2020-07-26 Thread Christoph Hellwig
On Sun, Jul 26, 2020 at 05:03:19PM +0200, Christoph Hellwig wrote: > Hi Jens, > > this series contains a bunch of different BDI cleanups. The biggest item > is to isolate block drivers from the BDI in preparation of changing the > lifetime of the block device BDI in a follow up series. Ooops,

[PATCH V2] dt-bindings: pci: convert QCOM pci bindings to YAML

2020-07-26 Thread Sivaprakash Murugesan
From: Sivaprakash Murugesan Convert QCOM pci bindings to YAML schema Signed-off-by: Sivaprakash Murugesan --- [v2] - Referenced pci-bus.yaml - removed duplicate properties already referenced by pci-bus.yaml - Addressed comments from Rob .../devicetree/bindings/pci/qcom,pcie.txt

Re: [PATCH v6 0/3] Add LT9611 DSI to HDMI bridge

2020-07-26 Thread Sam Ravnborg
Hi Vinod. On Thu, Jul 23, 2020 at 10:04:39PM +0530, Vinod Koul wrote: > Hi, > > This series adds driver and bindings for Lontium LT9611 bridge chip which > takes MIPI DSI as input and HDMI as output. > > This chip can be found in 96boards RB3 platform [1] commonly called DB845c. > > [1]:

[PATCH 02/14] drbd: remove dead code in device_to_statistics

2020-07-26 Thread Christoph Hellwig
Ever since the switch to blk-mq, a lower device not used for VM writeback will not be marked congested, so the check will never trigger. Signed-off-by: Christoph Hellwig --- drivers/block/drbd/drbd_nl.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/block/drbd/drbd_nl.c

[PATCH 03/14] drbd: remove RB_CONGESTED_REMOTE

2020-07-26 Thread Christoph Hellwig
This case isn't ever used. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/block/drbd/drbd_req.c | 4 include/linux/drbd.h | 1 - 2 files changed, 5 deletions(-) diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index

[PATCH 10/14] bdi: remove BDI_CAP_SYNCHRONOUS_IO

2020-07-26 Thread Christoph Hellwig
BDI_CAP_SYNCHRONOUS_IO is only checked in the swap code, and used to decided if ->rw_page can be used on a block device. Just check up for the method instead. The only complication is that zram needs a second set of block_device_operations as it can switch between modes that actually support

[PATCH 01/14] fs: remove the unused SB_I_MULTIROOT flag

2020-07-26 Thread Christoph Hellwig
The last user of SB_I_MULTIROOT is disappeared with commit f2aedb713c28 ("NFS: Add fs_context support.") Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- fs/namei.c | 4 ++-- include/linux/fs.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH 13/14] bdi: invert BDI_CAP_NO_ACCT_WB

2020-07-26 Thread Christoph Hellwig
Replace BDI_CAP_NO_ACCT_WB with a positive BDI_CAP_WRITEBACK_ACCT to make the checks more obvious. Also remove the pointless bdi_cap_account_writeback wrapper that just obsfucates the check. Signed-off-by: Christoph Hellwig --- fs/fuse/inode.c | 3 ++- include/linux/backing-dev.h

[PATCH 08/14] block: add helper macros for queue sysfs entries

2020-07-26 Thread Christoph Hellwig
Add two helpers macros to avoid boilerplate code for the queue sysfs entries. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- block/blk-sysfs.c | 248 +++--- 1 file changed, 58 insertions(+), 190 deletions(-) diff --git

[PATCH 14/14] bdi: replace BDI_CAP_NO_{WRITEBACK,ACCT_DIRTY} with a single flag

2020-07-26 Thread Christoph Hellwig
Replace the two negative flags that are always used together with a single positive flag that indicates the writeback capability instead of two related non-capabilities. Also remove the pointless wrappers to just check the flag. Signed-off-by: Christoph Hellwig --- fs/9p/vfs_file.c

[PATCH 05/14] md: update the optimal I/O size on reshape

2020-07-26 Thread Christoph Hellwig
The raid5 and raid10 drivers currently update the read-ahead size, but not the optimal I/O size on reshape. To prepare for deriving the read-ahead size from the optimal I/O size make sure it is updated as well. Signed-off-by: Christoph Hellwig --- drivers/md/raid10.c | 22

[PATCH 04/14] bdi: initialize ->ra_pages in bdi_init

2020-07-26 Thread Christoph Hellwig
Set up a readahead size by default, as very few users have a good reason to change it. Signed-off-by: Christoph Hellwig Acked-by: David Sterba [btrfs] Acked-by: Richard Weinberger [ubifs, mtd] --- block/blk-core.c | 1 - drivers/mtd/mtdcore.c | 1 + fs/9p/vfs_super.c | 4 ++--

[PATCH 12/14] bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flag

2020-07-26 Thread Christoph Hellwig
The BDI_CAP_STABLE_WRITES is one of the few bits of information in the backing_dev_info shared between the block drivers and the writeback code. To help untangling the dependency replace it with a queue flag and a superblock flag derived from it. This also helps with the case of e.g. a file

[PATCH 11/14] mm: use SWP_SYNCHRONOUS_IO more intelligently

2020-07-26 Thread Christoph Hellwig
There is no point in trying to call bdev_read_page if SWP_SYNCHRONOUS_IO is not set, as the device won't support it. Signed-off-by: Christoph Hellwig --- mm/page_io.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/mm/page_io.c b/mm/page_io.c index

[PATCH 07/14] block: make QUEUE_SYSFS_BIT_FNS a little more useful

2020-07-26 Thread Christoph Hellwig
Generate the queue_sysfs_entry given that we have all the required information for it, and rename the generated show and store methods to match the other ones in the file. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- block/blk-sysfs.c | 31

Re: [greybus-dev] [PATCH] RFC : mikroBUS driver for add-on boards

2020-07-26 Thread Alex Elder
On 7/24/20 7:06 AM, Vaishnav M A wrote: > Attached is a patch for the mikroBUS driver which helps to > instantiate an add-on board device on a mikrobus port by fetching > the device identifier manifest binary from an EEPROM on-board > the device. mikroBUS is an add-on board socket standard by >

bdi cleanups v3

2020-07-26 Thread Christoph Hellwig
Hi Jens, this series contains a bunch of different BDI cleanups. The biggest item is to isolate block drivers from the BDI in preparation of changing the lifetime of the block device BDI in a follow up series. Changes since v2: - fix a rw_page return value check - fix up various changelogs

[PATCH 09/14] bdi: remove BDI_CAP_CGROUP_WRITEBACK

2020-07-26 Thread Christoph Hellwig
Just checking SB_I_CGROUPWB for cgroup writeback support is enough. Either the file system allocates its own bdi (e.g. btrfs), in which case it is known to support cgroup writeback, or the bdi comes from the block layer, which always supports cgroup writeback. Signed-off-by: Christoph Hellwig

[PATCH 06/14] block: lift setting the readahead size into the block layer

2020-07-26 Thread Christoph Hellwig
Drivers shouldn't really mess with the readahead size, as that is a VM concept. Instead set it based on the optimal I/O size by lifting the algorithm from the md driver when registering the disk. Also set bdi->io_pages there as well by applying the same scheme based on max_sectors.

Re: [PATCH v3 3/4] staging: rtl8723bs: include: Further clean up function declarations

2020-07-26 Thread Greg KH
On Sun, Jul 26, 2020 at 07:50:12PM +0530, Aditya Jain wrote: > Cleaning up messy multiline function declarations in hal_phy_cfg.h > > This patch is a continuation of patch "Clean up function declarations" This should be merged with that patch, no reason to make it separate. > > Signed-off-by:

[PATCH net-next v2] net: dsa: qca8k: Add 802.1q VLAN support

2020-07-26 Thread Jonathan McDowell
This adds full 802.1q VLAN support to the qca8k, allowing the use of vlan_filtering and more complicated bridging setups than allowed by basic port VLAN support. Tested with a number of untagged ports with separate VLANs and then a trunk port with all the VLANs tagged on it. v2: - Return

Re: Re: Re: Re: checkpatch: support deprecated terms checking

2020-07-26 Thread Joe Perches
On Sun, 2020-07-26 at 09:45 +0200, SeongJae Park wrote: > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -721,6 +721,7 @@ sub read_word_corrections { > my %deprecated_terms_fix; > read_word_corrections($deprecated_terms_file, \%deprecated_terms_fix); > my $deprecated_terms =

Re: [PATCH 00/10] media: mtk-vcodec: venc: support for MT8183

2020-07-26 Thread Ezequiel Garcia
+Enric Hello Alexandre, Thanks for the series. On Wed, 20 May 2020 at 05:27, Alexandre Courbot wrote: > > This series adds support for the encoder present on MT8183. It is very similar > to the one in MT8173, but with different capabilities and using a new firmware > interface (SCP, while

Re: [PATCH] sched/deadline: dome some cleanup for push_dl_task()

2020-07-26 Thread Peng Liu
On Fri, Jul 24, 2020 at 09:14:26AM +0200, Juri Lelli wrote: > Hi, > > On 07/07/20 00:04, Peng Liu wrote: > > 'commit 840d719604b0 ("sched/deadline: Update rq_clock of later_rq when > > pushing a task")' > > introduced the update_rq_clock() to fix the "used-before-update" bug. > > > > 'commit

Re: [PATCH v3 07/16] media: mtk-vcodec: venc: specify supported formats per-chip

2020-07-26 Thread Ezequiel Garcia
Hi Alexandre, Last review on my side, this series looks mostly good. On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot wrote: > > Different chips have different supported bitrate ranges. Move the list s/bitrate ranges/formats > of supported formats to the platform data, and split the output and

Re: [PATCH 0/9] powerpc: delete duplicated words

2020-07-26 Thread Christophe Leroy
Randy Dunlap a écrit : Drop duplicated words in arch/powerpc/ header files. How did you detect them ? Do you have some script for tgat, or you just read all comments ? Cc: Michael Ellerman You say you Cc Michael, but in fact you don't ... Allthough he is the powerpc maintainer

[PATCH v3 4/4] staging: rtl8723bs: include: Align macro definitions

2020-07-26 Thread Aditya Jain
Adjust spacing in macro definitions to align them and improve readbility Signed-off-by: Aditya Jain --- drivers/staging/rtl8723bs/include/hal_phy_cfg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h

[PATCH v3 2/4] staging: rtl8723bs: include: Clean up function declations

2020-07-26 Thread Aditya Jain
Clean up multiline function declartions in hal_phy_cfg.h to improve code readablility Signed-off-by: Aditya Jain --- .../staging/rtl8723bs/include/hal_phy_cfg.h | 44 --- 1 file changed, 9 insertions(+), 35 deletions(-) diff --git

[PATCH v3 3/4] staging: rtl8723bs: include: Further clean up function declarations

2020-07-26 Thread Aditya Jain
Cleaning up messy multiline function declarations in hal_phy_cfg.h This patch is a continuation of patch "Clean up function declarations" Signed-off-by: Aditya Jain --- .../staging/rtl8723bs/include/hal_phy_cfg.h | 56 ++- 1 file changed, 16 insertions(+), 40 deletions(-)

[PATCH v3 1/4] staging: rtl8723bs: include: Fix coding style errors

2020-07-26 Thread Aditya Jain
Fixing ERROR: "foo *bar" should be "foo *bar" in hal_phy_cfg.h as reported by checkpatch.pl Signed-off-by: Aditya Jain --- .../staging/rtl8723bs/include/hal_phy_cfg.h| 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

Fix code style issues in staging

2020-07-26 Thread Aditya Jain
Hi all, The following series of patches fixes code style issues in the file staging/drivers/rtl8723bs/include/hal_phy_cfg.h Regards, Aditya Jain

Re: [PATCH] tools/perf-bench: Add basic syscall benchmark

2020-07-26 Thread Arnaldo Carvalho de Melo
Em Thu, May 14, 2020 at 03:39:42PM -0500, Josh Poimboeuf escreveu: > On Fri, Mar 08, 2019 at 10:17:47AM -0800, Davidlohr Bueso wrote: > > On Thu, 07 Mar 2019, Arnaldo Carvalho de Melo wrote: > > > You forgot to update tools/perf/Documentation/perf-bench.txt, and please > > > take a look at

Re: Poor windows VFIO performance, GPU stalls (bisected)

2020-07-26 Thread Chris Wilson
Quoting Alex Williamson (2020-07-26 14:30:52) > On Sun, 26 Jul 2020 17:49:07 +1000 > Geoffrey McRae wrote: > > > Hi All, > > > > The commit 22540ca3d00d2990a4148a13b92209c3dc5422db causes a Windows KVM > > guest running under QEMU with a VFIO passthrough GPU to randomly stall > > when using

[v4 2/2] dt-bindings: iio: gyro: Add DT binding doc for ADXRS290

2020-07-26 Thread Nishant Malpani
Add devicetree binding document for ADXRS290, a dual-axis MEMS gyroscope. Reviewed-by: Rob Herring Signed-off-by: Nishant Malpani --- No changes in v4. No changes in v3. Changes in v2: - use 'const' instead of 'enum' while setting the compatible string since only a single item is

[v4 1/2] iio: gyro: Add driver support for ADXRS290

2020-07-26 Thread Nishant Malpani
ADXRS290 is a high performance MEMS pitch and roll (dual-axis in-plane) angular rate sensor (gyroscope) designed for use in stabilization applications. It also features an internal temperature sensor and programmable high-pass and low-pass filters. Add support for ADXRS290 in direct-access mode

Re: [v3 1/2] iio: gyro: Add driver support for ADXRS290

2020-07-26 Thread Nishant Malpani
On 26/07/20 5:45 pm, Jonathan Cameron wrote: On Fri, 24 Jul 2020 16:31:59 +0530 Nishant Malpani wrote: ADXRS290 is a high performance MEMS pitch and roll (dual-axis in-plane) angular rate sensor (gyroscope) designed for use in stabilization applications. It also features an internal

Re: [RFC PATCH] mm: silence soft lockups from unlock_page

2020-07-26 Thread Oleg Nesterov
Linus, I was greatly confused and tried to confuse you. Somehow I misunderstood your last version and didn't bother to read it again until now. Sorry for noise and thanks for your explanations. Oleg. On 07/25, Linus Torvalds wrote: > > On Sat, Jul 25, 2020 at 12:28 PM Oleg Nesterov wrote: >

Re: [v3 1/2] iio: gyro: Add driver support for ADXRS290

2020-07-26 Thread Nishant Malpani
On 26/07/20 1:33 pm, Andy Shevchenko wrote: On Fri, Jul 24, 2020 at 2:02 PM Nishant Malpani wrote: ADXRS290 is a high performance MEMS pitch and roll (dual-axis in-plane) angular rate sensor (gyroscope) designed for use in stabilization applications. It also features an internal temperature

[tip: core/entry] entry: Correct 'noinstr' attributes

2020-07-26 Thread tip-bot2 for Ingo Molnar
The following commit has been merged into the core/entry branch of tip: Commit-ID: aadfc2f957cb470a5a7e52cc41a2fa86e784bcd2 Gitweb: https://git.kernel.org/tip/aadfc2f957cb470a5a7e52cc41a2fa86e784bcd2 Author:Ingo Molnar AuthorDate:Sat, 25 Jul 2020 11:19:51 +02:00

Re: [PATCH 2/2] entry: Correct 'noinstr' attributes

2020-07-26 Thread Thomas Gleixner
Ingo Molnar writes: > The noinstr attribute is to be specified before the return type in the > same way 'inline' is used. > > Similar cases were recently fixed for x86, via: > > 7f6fa101dfac: ("x86: Correct noinstr qualifiers") > > These 2 cases were carried over by the new generic entry code.

Re: [PATCH 1/2] entry: Fix CONFIG_SECCOMP assumption

2020-07-26 Thread Thomas Gleixner
Ingo Molnar writes: > The __secure_computing() callback only exists on CONFIG_SECCOMP=y, No. There is a stub function for the SECCOMP=n case. > and on architectures that have CONFIG_HAVE_ARCH_SECCOMP_FILTER. which is a prerequiste for converting over. > Instead of complicating the #ifdef

Re: [PATCH v2 1/2] i2c: smbus: add core function handling SMBus host-notify

2020-07-26 Thread Wolfram Sang
> > +void i2c_free_slave_host_notify_device(struct i2c_client *client) > > +{ > > + i2c_slave_unregister(client); > > + kfree(client->dev.platform_data); > > + i2c_unregister_device(client); > > +} > > +EXPORT_SYMBOL_GPL(i2c_free_slave_host_notify_device); > > Sidenote: With my recent

Re: [PATCH 09/10] media: hantro: Don't require unneeded H264_SLICE_PARAMS

2020-07-26 Thread Alexandre Courbot
On Sat, Jul 25, 2020 at 11:45 PM Alexandre Courbot wrote: > > On Thu, Jul 16, 2020 at 5:23 AM Ezequiel Garcia > wrote: > > > > Now that slice invariant parameters have been moved, > > the driver no longer needs this control, so drop it. > > > > Signed-off-by: Ezequiel Garcia > > --- > >

Re: Poor windows VFIO performance, GPU stalls (bisected)

2020-07-26 Thread Geoffrey McRae
On 2020-07-26 23:32, Geoffrey McRae wrote: On 2020-07-26 23:30, Alex Williamson wrote: On Sun, 26 Jul 2020 17:49:07 +1000 Geoffrey McRae wrote: Hi All, The commit 22540ca3d00d2990a4148a13b92209c3dc5422db causes a Windows KVM guest running under QEMU with a VFIO passthrough GPU to

Re: Poor windows VFIO performance, GPU stalls (bisected)

2020-07-26 Thread Geoffrey McRae
On 2020-07-26 23:30, Alex Williamson wrote: On Sun, 26 Jul 2020 17:49:07 +1000 Geoffrey McRae wrote: Hi All, The commit 22540ca3d00d2990a4148a13b92209c3dc5422db causes a Windows KVM guest running under QEMU with a VFIO passthrough GPU to randomly stall when using the GPU leading to the

Re: Poor windows VFIO performance, GPU stalls (bisected)

2020-07-26 Thread Alex Williamson
On Sun, 26 Jul 2020 17:49:07 +1000 Geoffrey McRae wrote: > Hi All, > > The commit 22540ca3d00d2990a4148a13b92209c3dc5422db causes a Windows KVM > guest running under QEMU with a VFIO passthrough GPU to randomly stall > when using the GPU leading to the guest assuming that the driver has >

Re: [PATCH] lib: Replace HTTP links with HTTPS ones

2020-07-26 Thread Coly Li
On 2020/7/26 19:21, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Signed-off-by: Alexander A. Klimov > --- > Continuing my work started at 93431e0607e5 with unmaintained stuff

Re: [RFC 2/2] RISC-V: KVM: read\write kernel mmio device support

2020-07-26 Thread Anup Patel
Change subject to: RISC-V: KVM: kernel mmio read/write support Also add 1-2 sentences of commit description. On Fri, Jul 24, 2020 at 2:25 PM Yifei Jiang wrote: > > Signed-off-by: Yifei Jiang > Signed-off-by: Mingwang Li > --- > arch/riscv/kvm/vcpu_exit.c | 38

<    1   2   3   4   5   6   7   >