[PATCH v5] fat: Add KUnit tests for checksums and timestamps

2020-10-24 Thread David Gow
Add some basic sanity-check tests for the fat_checksum() function and the fat_time_unix2fat() and fat_time_fat2unix() functions. These unit tests verify these functions return correct output for a number of test inputs. These tests were inspored by -- and serve a similar purpose to -- the

[PATCH v6] fat: Add KUnit tests for checksums and timestamps

2020-10-24 Thread David Gow
Add some basic sanity-check tests for the fat_checksum() function and the fat_time_unix2fat() and fat_time_fat2unix() functions. These unit tests verify these functions return correct output for a number of test inputs. These tests were inspored by -- and serve a similar purpose to -- the

security/integrity/platform_certs/keyring_handler.c:62:30: warning: no previous prototype for function 'get_handler_for_db'

2020-10-24 Thread kernel test robot
-20201024 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 77cbf2595331b11018c2cffb76eb5b8db69f4577) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x

[PATCH] pinctrl: amd: print debounce filter info in debugfs

2020-10-24 Thread Coiby Xu
Print out the status of debounce filter as follows, $ cat /sys/kernel/debug/gpio|grep pin130 pin130 interrupt is disabled| interrupt is masked| disable wakeup in S0i3 state| disable wakeup in S3 state| disable wakeup in S4/S5 state| input is high| pull-up is disabled| Pull-down is

Re: [PATCH v3 49/56] refcount.h: fix a kernel-doc markup

2020-10-24 Thread Mauro Carvalho Chehab
Em Fri, 23 Oct 2020 13:47:57 -0600 Jonathan Corbet escreveu: > On Fri, 23 Oct 2020 21:39:07 +0200 > Peter Zijlstra wrote: > > > > > /** > > > > - * struct refcount_t - variant of atomic_t specialized for reference > > > > counts > > > > + * struct refcount_struct - variant of atomic_t

Re: [PATCH] KVM: x86/mmu: Avoid modulo operator on 64-bit value to fix i386 build

2020-10-24 Thread Paolo Bonzini
On 24/10/20 05:11, Sean Christopherson wrote: > Replace a modulo operator with the more common pattern for computing the > gfn "offset" of a huge page to fix an i386 build error. > > arch/x86/kvm/mmu/tdp_mmu.c:212: undefined reference to `__umoddi3' > > Fixes: 2f2fad0897cb ("kvm: x86/mmu: Add

Re: [PATCH v3 01/56] scripts: kernel-doc: fix typedef parsing

2020-10-24 Thread Mauro Carvalho Chehab
Em Fri, 23 Oct 2020 11:22:26 -0600 Jonathan Corbet escreveu: > On Fri, 23 Oct 2020 18:32:48 +0200 > Mauro Carvalho Chehab wrote: > > > The include/linux/genalloc.h file defined this typedef: > > > > typedef unsigned long (*genpool_algo_t)(unsigned long *map,unsigned > > long

Re: [PATCH] docs: driver-api: remove a duplicated index entry

2020-10-24 Thread Mauro Carvalho Chehab
Em Wed, 21 Oct 2020 15:13:44 -0600 Jonathan Corbet escreveu: > On Thu, 15 Oct 2020 11:12:06 +0200 > Mauro Carvalho Chehab wrote: > > > The ipmb file was added twice at index.rst. That > > sounds to be because the same patch was applied twice, > > via different git trees: > > > > commit

[PATCH v2] AMD_SFH: Fix for incorrect Sensor index

2020-10-24 Thread Sandeep Singh
From: Sandeep Singh Add fix for incorrect sensor index and minor code clean-up. Reported-by: Mandoli Reported-by: Richard Neumann Signed-off-by: Sandeep Singh Fixes: SFH: PCIe driver to add support of AMD sensor fusion hub (4f567b9f8141) --- Changes since

Re: [RFC] Have insn decoder functions return success/failure

2020-10-24 Thread Masami Hiramatsu
On Sat, 24 Oct 2020 01:27:41 +0200 Borislav Petkov wrote: > On Fri, Oct 23, 2020 at 07:47:04PM +0900, Masami Hiramatsu wrote: > > Thanks! I look forward to it. > > Ok, here's a first stab, it is a single big diff and totally untested > but it should show what I mean. I've made some notes while

Re: [RFC] Have insn decoder functions return success/failure

2020-10-24 Thread Masami Hiramatsu
On Fri, 23 Oct 2020 17:12:49 -0700 Andy Lutomirski wrote: > On Fri, Oct 23, 2020 at 4:27 PM Borislav Petkov wrote: > > > > On Fri, Oct 23, 2020 at 07:47:04PM +0900, Masami Hiramatsu wrote: > > > Thanks! I look forward to it. > > > > Ok, here's a first stab, it is a single big diff and totally

Re: [PATCH v3 23/56] PCI: fix kernel-doc markups

2020-10-24 Thread Mauro Carvalho Chehab
Em Fri, 23 Oct 2020 12:43:25 -0500 Bjorn Helgaas escreveu: > If you have the opportunity, I would prefer to capitalize the subject > to follow the drivers/pci convention, e.g., > > PCI: Fix ... Ok. If you want to apply it directly, feel free to change it at the patch. Otherwise, I'll do it

Re: [PATCH v2] nvme-rdma: handle nvme completion data length

2020-10-24 Thread Christoph Hellwig
On Fri, Oct 23, 2020 at 11:01:40AM -0700, Sagi Grimberg wrote: >> + /* received data length checking */ >> +if (unlikely(wc->byte_len < len)) { >> +/* zero bytes message could be ignored */ >> +if (!wc->byte_len) { >> +nvme_rdma_post_recv(queue,

RE: [PATCH 1/2] i2c: imx: use devm_request_threaded_irq to simplify code

2020-10-24 Thread Peng Fan
> Subject: Re: [PATCH 1/2] i2c: imx: use devm_request_threaded_irq to simplify > code > > On Fri, 23 Oct 2020 at 10:27, wrote: > > > > From: Peng Fan > > > > Use devm_request_threaded_irq to simplify code > > > > Signed-off-by: Peng Fan > > --- > > drivers/i2c/busses/i2c-imx.c | 10 +++---

RE: [PATCH 2/2] i2c: imx: remove id_table entry

2020-10-24 Thread Peng Fan
> Subject: Re: [PATCH 2/2] i2c: imx: remove id_table entry > > On Fri, Oct 23, 2020 at 04:18:23PM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > The legacy platform device code has been removed under > > arch/arm/mach-imx, so we no need id_table entry here. > > Cc: Greg, Geert,

Re: [PATCH v6] fat: Add KUnit tests for checksums and timestamps

2020-10-24 Thread OGAWA Hirofumi
David Gow writes: > diff --git a/fs/fat/Kconfig b/fs/fat/Kconfig > index 66532a71e8fd..4e66f7e8defc 100644 > --- a/fs/fat/Kconfig > +++ b/fs/fat/Kconfig > @@ -115,3 +115,15 @@ config FAT_DEFAULT_UTF8 > Say Y if you use UTF-8 encoding for file names, N otherwise. > > See for

Re: [PATCH v1 1/2] mm: cma: introduce cma_release_nowait()

2020-10-24 Thread Christoph Hellwig
Btw, I think we also need to use this nonblocking version from dma_free_contiguous. dma_free* is defined to not block. In practice callers mostly care if they also did GFP_ATOMIC allocations, which don't dip into CMA, but I think we do have a problem.

[PATCH] KVM: vmx: rename pi_init to avoid conflict with paride

2020-10-24 Thread Paolo Bonzini
allyesconfig results in: ld: drivers/block/paride/paride.o: in function `pi_init': (.text+0x1340): multiple definition of `pi_init'; arch/x86/kvm/vmx/posted_intr.o:posted_intr.c:(.init.text+0x0): first defined here make: *** [Makefile:1164: vmlinux] Error 1 because commit: commit

[PATCH] KVM: ioapic: break infinite recursion on lazy EOI

2020-10-24 Thread Paolo Bonzini
From: Vitaly Kuznetsov During shutdown the IOAPIC trigger mode is reset to edge triggered while the vfio-pci INTx is still registered with a resampler. This allows us to get into an infinite loop: ioapic_set_irq -> ioapic_lazy_update_eoi -> kvm_ioapic_update_eoi_one ->

Re: [RFC] Have insn decoder functions return success/failure

2020-10-24 Thread Borislav Petkov
On Fri, Oct 23, 2020 at 05:12:49PM -0700, Andy Lutomirski wrote: > I disagree. A real CPU does exactly what I'm describing. If I stick A real modern CPU fetches up to 32 bytes insn window which it tries to decode etc. I don't know, though, what it does when that fetch encounters a fault - I

Re: [PATCH] PM / s2idle: Export s2idle_set_ops

2020-10-24 Thread Christoph Hellwig
On Thu, Oct 22, 2020 at 02:17:47PM +0800, Claude Yen wrote: > This series based on 5.9-rc1 > > As suspend_set_ops is exported in commit a5e4fd8783a2 > ("PM / Suspend: Export suspend_set_ops, suspend_valid_only_mem"), > exporting s2idle_set_ops to make kernel module setup s2idle ops too. > > In

Re: [RFC] Have insn decoder functions return success/failure

2020-10-24 Thread Borislav Petkov
On Sat, Oct 24, 2020 at 04:13:15PM +0900, Masami Hiramatsu wrote: > Thanks, so will you split this into several patches, since I saw some > cleanups in this patch? Oh, most definitely. This was just a preview of where this is going... > Yeah, that's good to me because in the most cases, user

Re: [PATCH v2 8/8] x86/ioapic: Generate RTE directly from parent irqchip's MSI message

2020-10-24 Thread David Woodhouse
On Fri, 2020-10-23 at 23:28 +0200, Thomas Gleixner wrote: > On Fri, Oct 23 2020 at 11:10, David Woodhouse wrote: > > On 22 October 2020 22:43:52 BST, Thomas Gleixner wrote: > > It makes the callers slightly more readable, not having to cast to > > uint32_t* from the struct. > > > > I did ponder

Re: [linux-sunxi] [PATCH 01/14] phy: Distinguish between Rx and Tx for MIPI D-PHY with submodes

2020-10-24 Thread Paul Kocialkowski
Hi Jernej, On Fri 23 Oct 20, 20:18, Jernej Škrabec wrote: > Dne petek, 23. oktober 2020 ob 19:45:33 CEST je Paul Kocialkowski napisal(a): > > As some D-PHY controllers support both Rx and Tx mode, we need a way for > > users to explicitly request one or the other. For instance, Rx mode can > > be

Re: [PATCH v2 8/8] x86/ioapic: Generate RTE directly from parent irqchip's MSI message

2020-10-24 Thread David Woodhouse
On Sat, 2020-10-24 at 09:26 +0100, David Woodhouse wrote: > > And now I wish it was just a simple shift instead of an unholy maze of > overlapping unions of bitfields. But I'll make more coffee and stare at > it harder... Hah, it really *was* unions of the bitfields. This boots... diff --git

Greetings dear friend,

2020-10-24 Thread Mrs. Aisha Gaddafi
Greetings dear friend, My names are Aisha Gaddafi the only daughter of the former Libyan leader Muammar Gaddafi. You have been recommended by your countries Chamber of Commerce to receive a donation of one million United State Dollars (US$1, 000, 000, 00) from me. This donation is meant to

Re: [RFC PATCH v3 9/9] ipu3-cio2: Add functionality allowing software_node connections to sensors on platforms designed for Windows

2020-10-24 Thread Dan Scally
On 24/10/2020 02:24, Laurent Pinchart wrote: > Hi Daniel, > > Thank you for the patch. Thank you for reviewing it - very helpful comments > > On Mon, Oct 19, 2020 at 11:59:03PM +0100, Daniel Scally wrote: >> Currently on platforms designed for Windows, connections between CIO2 and >> sensors are

Re: [PATCH v2 1/4] tracing/dynevent: Delegate parsing to create function

2020-10-24 Thread Masami Hiramatsu
Hi Tom, Thanks for the update! On Fri, 23 Oct 2020 15:33:52 -0500 Tom Zanussi wrote: > From: Masami Hiramatsu > > Delegate command parsing to each create function so that the > command syntax can be customized. > > Signed-off-by: Masami Hiramatsu > [ zanu...@kernel.org: added synthetic

[GIT PULL] KVM fixes for Linux 5.10-rc1

2020-10-24 Thread Paolo Bonzini
Linus, The following changes since commit 29cf0f5007a215b51feb0ae25ca5353480d53ead: kvm: x86/mmu: NX largepage recovery for TDP MMU (2020-10-23 03:42:16 -0400) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes

[PATCH v3] checkpatch: extend attributes check to handle more patterns

2020-10-24 Thread Dwaipayan Ray
It is generally preferred that the macros from include/linux/compiler_attributes.h are used, unless there is a reason not to. checkpatch currently checks __attribute__ for each of packed, aligned, printf, scanf, and weak. Other declarations in compiler_attributes.h are not handled. Add a generic

Re: [PATCH v2 8/8] x86/ioapic: Generate RTE directly from parent irqchip's MSI message

2020-10-24 Thread Paolo Bonzini
On 24/10/20 10:26, David Woodhouse wrote: > I was also hoping Paolo was going to take the patch which just defines > the KVM_FEATURE_MSI_EXT_DEST_ID bit² ASAP, so that we end up with a > second patch³ that *just* wires it up to x86_init.msi_ext_dest_id() for > KVM. > > ¹

[ANNOUNCE] v5.9.1-rt19

2020-10-24 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v5.9.1-rt19 patch set. Changes since v5.9.1-rt18: - Mike Galbraith reported a possible circular locking dependency with a seqcount. Backported a patch from upstream solving the issue. - David Runge reported a crash in the block layer. -

[GIT PULL] x86/seves fixes for v5.10-rc1

2020-10-24 Thread Borislav Petkov
Hi Linus, please pull three SEV-ES fixes for 5.10. They got ready around the same time the merge window opened so I gave them some additional testing and soaking time before sending them your way. Please pull, thx. --- The following changes since commit da9803dfd3955bd2f9909d55e23f188ad76dbe58:

Re: [PATCH v4] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-24 Thread Aditya
On 24/10/20 7:07 am, Joe Perches wrote: > On Sat, 2020-10-24 at 05:38 +0530, Aditya Srivastava wrote: >> A quick evaluation on v5.6..v5.8 showed that this fix reduces >> REPEATED_WORD warnings from 2797 to 907. > > How many of these 907 remaining are still false positive? > >> A quick manual

Re: [RFC PATCH v3 9/9] ipu3-cio2: Add functionality allowing software_node connections to sensors on platforms designed for Windows

2020-10-24 Thread Laurent Pinchart
Hi Daniel, On Sat, Oct 24, 2020 at 09:50:07AM +0100, Dan Scally wrote: > On 24/10/2020 02:24, Laurent Pinchart wrote: > > > On Mon, Oct 19, 2020 at 11:59:03PM +0100, Daniel Scally wrote: > >> Currently on platforms designed for Windows, connections between CIO2 and > >> sensors are not properly

Does LOCKDEP work on ARM64?

2020-10-24 Thread Dmitry Vyukov
Hello ARM64/LOCKDEP maintainers, I've started experimenting with running syzkaller on ARM64 using QEMU/TCG. Total execution speed is very low and it ran just a handful of tests, but I am seeing massive amounts of locking bugs. Most of these were not observed on x86_64, while x86_64 ran gazillions

Re: [PATCH v2 8/8] x86/ioapic: Generate RTE directly from parent irqchip's MSI message

2020-10-24 Thread David Woodhouse
On 24 October 2020 10:13:36 BST, Paolo Bonzini wrote: >On 24/10/20 10:26, David Woodhouse wrote: >> I was also hoping Paolo was going to take the patch which just >defines >> the KVM_FEATURE_MSI_EXT_DEST_ID bit² ASAP, so that we end up with a >> second patch³ that *just* wires it up to

ld.lld: warning: fs/built-in.a(cifs/smb2pdu.o):(.data..L__unnamed_19) is being placed in '.data..L__unnamed_19'

2020-10-24 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f11901ed723d1351843771c3a84b03a253bbf8b2 commit: 511ac89e591ab9affce17a8be4c45f6c2bb837f0 smb3.1.1: print warning if server does not support requested encryption type date: 5 days ago config:

[PATCH v5] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-24 Thread Aditya Srivastava
Presence of hexadecimal address or symbol results in false warning message by checkpatch.pl. For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix memory leak in mptcp_subflow_create_socket()") results in warning: WARNING:REPEATED_WORD: Possible repeated word: 'ff' 00 00 00 00

Re: [PATCH v2 1/3] powerpc/uaccess: Don't use "m<>" constraint with GCC 4.9

2020-10-24 Thread Michael Ellerman
On Tue, 20 Oct 2020 07:40:07 + (UTC), Christophe Leroy wrote: > GCC 4.9 sometimes fails to build with "m<>" constraint in > inline assembly. > > CC lib/iov_iter.o > In file included from ./arch/powerpc/include/asm/cmpxchg.h:6:0, > from

[PATCH] switch "random: fast init done" message from NOTICE to INFO.

2020-10-24 Thread Rob Landley
From: Rob Landley If you loglevel=4 you get zero kernel boot messages, but at loglevel=5 the shell prompt is overwritten on devices that boot to a serial console a second after it comes up, and if the prompt is "#" it's easy to think the boot's hung. Signed-off-by: Rob Landley ---

[GIT PULL] Please pull powerpc/linux.git powerpc-5.10-2 tag

2020-10-24 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc fixes for 5.10: The following changes since commit ffd0b25ca049a477cb757e5bcf2d5e1664d12e5d: Revert "powerpc/pci: unmap legacy INTx interrupts when a PHB is removed" (2020-10-15 13:42:49 +1100) are available in

[PATCH v7 2/3] Input: Add Novatek NT36xxx touchscreen driver

2020-10-24 Thread kholk11
From: AngeloGioacchino Del Regno This is a driver for the Novatek in-cell touch controller and supports various chips from the NT36xxx family, currently including NT36525, NT36672A, NT36676F, NT36772 and NT36870. Functionality like wake gestures and firmware flashing is not included: I am not

[PATCH v7 0/3] Add Novatek NT36xxx touchscreen driver

2020-10-24 Thread kholk11
From: AngeloGioacchino Del Regno This patch series adds support for the Novatek NT36xxx Series' In-Cell touchscreen (integrated into the DriverIC). This patch series has been tested against the following devices: - Sony Xperia 10(SDM630 Ganges Kirin) - Sony Xperia 10 Plus (SDM636

[PATCH v7 1/3] dt-bindings: Add vendor prefix for Novatek Microelectronics Corp.

2020-10-24 Thread kholk11
From: AngeloGioacchino Del Regno Add prefix for Novatek Microelectronics Corp. Signed-off-by: AngeloGioacchino Del Regno Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v7 3/3] dt-bindings: touchscreen: Add binding for Novatek NT36xxx series driver

2020-10-24 Thread kholk11
From: AngeloGioacchino Del Regno Add binding for the Novatek NT36xxx series touchscreen driver. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/input/touchscreen/nt36xxx.yaml | 59 +++ 1 file changed, 59 insertions(+) create mode 100644

Re: BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-24 Thread Topi Miettinen
On 23.10.2020 12.02, Catalin Marinas wrote: On Thu, Oct 22, 2020 at 01:02:18PM -0700, Kees Cook wrote: Regardless, it makes sense to me to have the kernel load the executable itself with BTI enabled by default. I prefer gaining Catalin's suggested patch[2]. :) [...] [2]

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-24 Thread Vineeth Pillai
Hi Aubrey, On 10/23/20 10:48 PM, Li, Aubrey wrote: 2. Do you see the issue in v7? Not much if at all has changed in this part of the code from v7 -> v8 but could be something in the newer kernel. IIRC, I can run uperf successfully on v7. I'm on tip/master 2d3e8c9424c9 (origin/master)

[PATCH v5] net: macb: add support for high speed interface

2020-10-24 Thread Parshuram Thombare
This patch adds support for 10GBASE-R interface to the linux driver for Cadence's ethernet controller. This controller has separate MAC's and PCS'es for low and high speed paths. High speed PCS supports 100M, 1G, 2.5G, 5G and 10G through rate adaptation implementation. However, since it doesn't

Re: [PATCH v39 15/24] x86/sgx: Add SGX_IOC_ENCLAVE_PROVISION

2020-10-24 Thread Jarkko Sakkinen
On Fri, Oct 23, 2020 at 07:19:05AM -0700, Dave Hansen wrote: > On 10/23/20 3:17 AM, Jarkko Sakkinen wrote: > > On Tue, Oct 20, 2020 at 02:19:26PM -0700, Dave Hansen wrote: > >> On 10/2/20 9:50 PM, Jarkko Sakkinen wrote: > >>> + * Failure to explicitly request access to a restricted attribute will

Re: BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-24 Thread Topi Miettinen
On 23.10.2020 20.52, Salvatore Mesoraca wrote: Hi, On Thu, 22 Oct 2020 at 23:24, Topi Miettinen wrote: SARA looks interesting. What is missing is a prctl() to enable all W^X protections irrevocably for the current process, then systemd could enable it for services with

Re: [PATCH v39 15/24] x86/sgx: Add SGX_IOC_ENCLAVE_PROVISION

2020-10-24 Thread Jarkko Sakkinen
On Fri, Oct 23, 2020 at 04:23:55PM +0200, Jethro Beekman wrote: > On 2020-10-23 12:17, Jarkko Sakkinen wrote: > > On Tue, Oct 20, 2020 at 02:19:26PM -0700, Dave Hansen wrote: > >> On 10/2/20 9:50 PM, Jarkko Sakkinen wrote: > >>> + * Failure to explicitly request access to a restricted attribute

Re: [BUG] Error applying setting, reverse things back on lot of devices

2020-10-24 Thread Michał Miosław
On Fri, Oct 23, 2020 at 10:39:43PM +0200, Corentin Labbe wrote: > On Fri, Oct 23, 2020 at 03:42:01PM +0200, Corentin Labbe wrote: > > On Wed, Oct 21, 2020 at 08:31:49PM +0200, Corentin Labbe wrote: > > > Hello > > > > > > On next-20201016, booting my sun8i-r40-bananapi-m2-ultra, the boot end > >

[PATCH v1] mm/migrate: fix comment spelling

2020-10-24 Thread Long Li
The word in the comment is misspelled, it should be "include". Signed-off-by: Long Li --- mm/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/migrate.c b/mm/migrate.c index 5ca5842df5db..d79640ab8aa1 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1694,7 +1694,7

Re: [PATCH v5] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-24 Thread Joe Perches
On Sat, 2020-10-24 at 15:52 +0530, Aditya Srivastava wrote: > Presence of hexadecimal address or symbol results in false warning > message by checkpatch.pl. Thanks Aditya, this looks OK to me. Andrew can you please pick up this patch on top of Dwaipayan's? 1:

Re: [BUG] Error applying setting, reverse things back on lot of devices

2020-10-24 Thread Michał Mirosław
On Fri, Oct 23, 2020 at 10:39:43PM +0200, Corentin Labbe wrote: > On Fri, Oct 23, 2020 at 03:42:01PM +0200, Corentin Labbe wrote: > > On Wed, Oct 21, 2020 at 08:31:49PM +0200, Corentin Labbe wrote: > > > Hello > > > > > > On next-20201016, booting my sun8i-r40-bananapi-m2-ultra, the boot end > >

[RFC net-next 2/5] net: phy: add a shutdown procedure

2020-10-24 Thread Ioana Ciornei
In case of a board which uses a shared IRQ we can easily end up with an IRQ storm after a forced reboot. For example, a 'reboot -f' will trigger a call to the .shutdown() callbacks of all devices. Because phylib does not implement that hook, the PHY is not quiesced, thus it can very well leave

[RFC net-next 1/5] net: phy: export phy_error and phy_trigger_machine

2020-10-24 Thread Ioana Ciornei
These functions are currently used by phy_interrupt() to either signal an error condition or to trigger the link state machine. In an attempt to actually support shared PHY IRQs, export these two functions so that the actual PHY drivers can use them. Cc: Alexandru Ardelean Cc: Andre Edich Cc:

[RFC net-next 4/5] net: phy: at803x: implement generic .handle_interrupt() callback

2020-10-24 Thread Ioana Ciornei
In an attempt to actually support shared IRQs in phylib, we now move the responsibility of triggering the phylib state machine or just returning IRQ_NONE, based on the IRQ status register, to the PHY driver. Having 3 different IRQ handling callbacks (.handle_interrupt(), .did_interrupt() and

[RFC net-next 3/5] net: phy: make .ack_interrupt() optional

2020-10-24 Thread Ioana Ciornei
As a first step into making phylib and all PHY drivers to actually have support for shared IRQs, make the .ack_interrupt() callback optional. After all drivers have been moved to implement the generic interrupt handle, the phy_drv_supports_irq() check will be changed again to only require the

[RFC net-next 5/5] net: phy: at803x: remove the use of .ack_interrupt()

2020-10-24 Thread Ioana Ciornei
In preparation of removing the .ack_interrupt() callback, we must replace its occurrences (aka phy_clear_interrupt), from the 2 places where it is called from (phy_enable_interrupts and phy_disable_interrupts), with equivalent functionality. This means that clearing interrupts now becomes

[RFC net-next 0/5] net: phy: add support for shared interrupts

2020-10-24 Thread Ioana Ciornei
This patch set aims to actually add support for shared interrupts in phylib and not only for multi-PHY devices. While we are at it, streamline the interrupt handling in phylib. For a bit of context, at the moment, there are multiple phy_driver ops that deal with this subject: - .config_intr() -

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-24 Thread Vineeth Pillai
On 10/24/20 7:10 AM, Vineeth Pillai wrote: diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 93a3b874077d..4cae5ac48b60 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4428,12 +4428,14 @@ pick_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *curr)   

[RESEND v2] ASoC: tegra20-spdif: remove "default m"

2020-10-24 Thread Michał Mirosław
Make tegra20-spdif default to N as all other drivers do. Add the selection to defconfigs instead. Signed-off-by: Michał Mirosław Fixes: 774fec338bfc ("ASoC: Tegra: Implement SPDIF CPU DAI") --- v2: add the symbol to defconfig as suggested by Thierry Reding ---

[PATCH 2/3] kconfig: qconf: use a variable to pass packages to pkg-config

2020-10-24 Thread Masahiro Yamada
The variable, PKG, is defined at the beginning of this script. Signed-off-by: Masahiro Yamada --- scripts/kconfig/qconf-cfg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/qconf-cfg.sh b/scripts/kconfig/qconf-cfg.sh index d1eb2407c35d..fa564cd795b7 100755

[PATCH 1/3] kconfig: qconf: drop Qt4 support

2020-10-24 Thread Masahiro Yamada
It is possible to keep this compatible with both Qt4 and Qt5, but not worth the efforts any more; it would require us to test this on both of them, and prevent us from using new features in Qt5. Qt5 was released in 2012, and now widely available. Drop the Qt4 support. Signed-off-by: Masahiro

[PATCH 3/3] kconfig: qconf: convert to Qt5 new signal/slot connection syntax

2020-10-24 Thread Masahiro Yamada
Now that the Qt4 support was dropped, we can use the new connection syntax supported by Qt5. It provides compile-time checking of the validity of the connection. Previously, the connection between signals and slots were checked only run-time. Commit d85de3399f97 ("kconfig: qconf: fix signal

Re: [PATCH v2 8/8] x86/ioapic: Generate RTE directly from parent irqchip's MSI message

2020-10-24 Thread David Woodhouse
On Sat, 2020-10-24 at 11:13 +0100, David Woodhouse wrote: > OK, thanks. I'll rework Thomas's tree with that first and the other > changes I'd mentioned in my parts, as well as fixing up that unholy > chimæra of struct/union in which we set some bitfields from each side > of the union, test and

[PATCH v8 4/4] input: elants: support 0x66 reply opcode for reporting touches

2020-10-24 Thread Michał Mirosław
From: Dmitry Osipenko eKTF3624 touchscreen firmware uses two variants of the reply opcodes for reporting touch events: one is 0x63 (used by older firmware) and other is 0x66 (used by newer firmware). The 0x66 variant is equal to 0x63 of eKTH3500, while 0x63 needs small adjustment of the touch

[PATCH v8 0/4] input: elants: Support Asus TF300T and Nexus 7 touchscreens

2020-10-24 Thread Michał Mirosław
This series cleans up the driver a bit and implements changes needed to support EKTF3624-based touchscreen used in Asus TF300T, Google Nexus 7 and similar Tegra3-based tablets. --- v2: extended with Dmitry's patches (replaced v1 patches 3 and 4) v3: rebased for v5.7-rc1 v4: rebased onto v5.7-rc2+

[PATCH v8 3/4] input: elants: read touchscreen size for EKTF3624

2020-10-24 Thread Michał Mirosław
EKTF3624 as present in Asus TF300T tablet has touchscreen size encoded in different registers. Signed-off-by: Michał Mirosław Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko --- drivers/input/touchscreen/elants_i2c.c | 84 -- 1 file changed, 79 insertions(+), 5

[PATCH v8 2/4] input: elants: support old touch report format

2020-10-24 Thread Michał Mirosław
Support ELAN touchpad sensor with older firmware as found on eg. Asus Transformer Pads. Signed-off-by: Michał Mirosław Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko --- drivers/input/touchscreen/elants_i2c.c | 36 ++ 1 file changed, 25 insertions(+), 11

[PATCH v8 1/4] input: elants: document some registers and values

2020-10-24 Thread Michał Mirosław
Add information found in downstream kernels, to make the code less magic. Signed-off-by: Michał Mirosław Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko --- drivers/input/touchscreen/elants_i2c.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git

Re: For review: seccomp_user_notif(2) manual page

2020-10-24 Thread Michael Kerrisk (man-pages)
Hello Jann, On 10/17/20 2:25 AM, Jann Horn wrote: > On Fri, Oct 16, 2020 at 8:29 PM Michael Kerrisk (man-pages) > wrote: >> On 10/15/20 10:32 PM, Jann Horn wrote: >>> On Thu, Oct 15, 2020 at 1:24 PM Michael Kerrisk (man-pages) >>> wrote: On 9/30/20 5:53 PM, Jann Horn wrote: > On Wed,

[PATCH] arch/Kconfig: fix a few trivial spelling mistakes in Kconfig

2020-10-24 Thread Colin King
From: Colin Ian King There are a couple of trivial spelling mistakes, fix these. Signed-off-by: Colin Ian King --- arch/Kconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 56b6ccc0e32d..ce4e84366418 100644 --- a/arch/Kconfig

swap file broken with ext4 fast-commit

2020-10-24 Thread Andrea Righi
I'm getting the following error if I try to create and activate a swap file defined on an ext4 filesystem: [ 34.406479] swapon: file is not committed The swap file is created in the root filesystem (ext4 mounted with the following options): $ grep " / " /proc/mounts /dev/vda1 / ext4

Re: [PATCH v3] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-24 Thread Aditya
On 24/10/20 12:36 am, Lukas Bulwahn wrote: > > > On Fri, 23 Oct 2020, Aditya Srivastava wrote: > >> Presence of hexadecimal address or symbol results in false warning >> message by checkpatch.pl. >> > > I think this strategy now makes sense and has the right complexity for a > good heuristics

Re: swap file broken with ext4 fast-commit

2020-10-24 Thread Andrea Righi
On Sat, Oct 24, 2020 at 03:13:37PM +0200, Andrea Righi wrote: > I'm getting the following error if I try to create and activate a swap > file defined on an ext4 filesystem: > > [ 34.406479] swapon: file is not committed > > The swap file is created in the root filesystem (ext4 mounted with

Re: [PATCH] drm/i915: Fix a crash in shmem_pin_map() error handling

2020-10-24 Thread Dan Carpenter
On Fri, Oct 23, 2020 at 02:19:41PM +0200, Christoph Hellwig wrote: > > diff --git a/drivers/gpu/drm/i915/gt/shmem_utils.c > > b/drivers/gpu/drm/i915/gt/shmem_utils.c > > index f011ea42487e..7eb542018219 100644 > > --- a/drivers/gpu/drm/i915/gt/shmem_utils.c > > +++

Re: [RFC PATCH 2/6] fpga: dfl: export network configuration info for DFL based FPGA

2020-10-24 Thread Tom Rix
On 10/23/20 1:45 AM, Xu Yilun wrote: > This patch makes preparation for supporting DFL Ether Group private > feature driver, which reads bitstream_id.vendor_net_cfg field to > determin the interconnection of network components on FPGA device. > > Signed-off-by: Xu Yilun > --- >

[PATCH] ext4: properly check for dirty state in ext4_inode_datasync_dirty()

2020-10-24 Thread Andrea Righi
ext4_inode_datasync_dirty() needs to return 'true' if the inode is dirty, 'false' otherwise, but the logic seems to be incorrectly changed by commit aa75f4d3daae ("ext4: main fast-commit commit path"). This introduces a problem with swap files that are always failing to be activated, showing this

[no subject]

2020-10-24 Thread george mike
Hallo Mein Name ist George Mike. Ich bin von Beruf Rechtsanwalt. Ich möchte Ihnen anbieten der nächste Verwandte meines Klienten. Sie erben die Summe von (8,5 Millionen US-Dollar) Dollar, die mein Kunde vor seinem Tod auf der Bank gelassen hat. Mein Kunde ist ein Staatsbürger Ihres Landes, der

[PATCH 2/2] mailbox: stm32-ipcc: remove duplicate error message

2020-10-24 Thread Martin Kaiser
platform_get_irq_byname already prints an error message if the requested irq was not found. Don't print another message in the driver. Signed-off-by: Martin Kaiser --- drivers/mailbox/stm32-ipcc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mailbox/stm32-ipcc.c

[PATCH 1/2] mailbox: stm32-ipcc: add COMPILE_TEST dependency

2020-10-24 Thread Martin Kaiser
This allows compiling the driver on architectures where the hardware is not available. Most other mailbox drivers support this as well. Signed-off-by: Martin Kaiser --- I used this for testing the trivial patch that removes the duplicate error message. Also, compiling the driver on x86_64

Re: [RFC net-next 0/5] net: phy: add support for shared interrupts

2020-10-24 Thread Ioana Ciornei
On Sat, Oct 24, 2020 at 03:14:07PM +0300, Ioana Ciornei wrote: > This RFC just contains the patches for phylib and a single driver - > Atheros. The rest can be found on my Github branch here: TODO > They will be submitted as a multi-part series once the merge window > closes. > It seems that I

Re

2020-10-24 Thread Geogiakendy
Dear beneficiary, I am happy to let you know that we have successfully concluded the deal two weeks ago. The total funds were successfully transferred to the new bank account in Venezuela. You are a good person and I appreciate your efforts and support during the transactions. I have decided to

Re: BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-24 Thread Salvatore Mesoraca
On Sat, 24 Oct 2020 at 12:34, Topi Miettinen wrote: > > On 23.10.2020 20.52, Salvatore Mesoraca wrote: > > Hi, > > > > On Thu, 22 Oct 2020 at 23:24, Topi Miettinen wrote: > >> SARA looks interesting. What is missing is a prctl() to enable all W^X > >> protections irrevocably for the current

[GIT PULL] dma-mapping fixes for 5.10

2020-10-24 Thread Christoph Hellwig
The following changes since commit 270315b8235e3d10c2e360cff56c2f9e0915a252: Merge tag 'riscv-for-linus-5.10-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux (2020-10-19 18:18:30 -0700) are available in the Git repository at:

Re: [RFC PATCH 1/6] docs: networking: add the document for DFL Ether Group driver

2020-10-24 Thread Tom Rix
On 10/23/20 1:45 AM, Xu Yilun wrote: > This patch adds the document for DFL Ether Group driver. > > Signed-off-by: Xu Yilun > --- > .../networking/device_drivers/ethernet/index.rst | 1 + > .../ethernet/intel/dfl-eth-group.rst | 102 > + > 2 files

Re: [RFC PATCH v3 7/9] ipu3-cio2: Check if pci_dev->dev's fwnode is a software_node in cio2_parse_firmware() and set FWNODE_GRAPH_DEVICE_DISABLED if so

2020-10-24 Thread Sakari Ailus
On Sat, Oct 24, 2020 at 03:39:55AM +0300, Laurent Pinchart wrote: > Hi Sakari > > On Wed, Oct 21, 2020 at 01:49:10AM +0300, Sakari Ailus wrote: > > On Tue, Oct 20, 2020 at 08:56:07PM +0100, Dan Scally wrote: > > > On 20/10/2020 13:06, Sakari Ailus wrote: > > > > On Tue, Oct 20, 2020 at 12:19:58PM

Re: [RFC PATCH 5/6] ethernet: dfl-eth-group: add DFL eth group private feature driver

2020-10-24 Thread Andrew Lunn
> +++ b/Documentation/ABI/testing/sysfs-class-net-dfl-eth-group > @@ -0,0 +1,19 @@ > +What:/sys/class/net//tx_pause_frame_quanta > +Date:Oct 2020 > +KernelVersion: 5.11 > +Contact: Xu Yilun > +Description: > + Read-Write. Value representing

Re: [PATCH v38 10/24] mm: Add vm_ops->mprotect()

2020-10-24 Thread Dr. Greg
On Tue, Oct 20, 2020 at 09:40:00AM -0700, Sean Christopherson wrote: Good morning, I hope the week has gone well for everyone. > On Tue, Oct 20, 2020 at 05:01:18AM -0500, Dr. Greg wrote: > > > > With respect to the security issue at hand, the only relevant issue > > would seem to be if a page

Re: [RFC PATCH 3/6] fpga: dfl: add an API to get the base device for dfl device

2020-10-24 Thread Tom Rix
On 10/23/20 1:45 AM, Xu Yilun wrote: > This patch adds an API for dfl devices to find which physical device > owns the DFL. > > This patch makes preparation for supporting DFL Ether Group private > feature driver. It uses this information to determine which retimer > device physically connects

Re: [PATCH] arch/Kconfig: fix a few trivial spelling mistakes in Kconfig

2020-10-24 Thread Randy Dunlap
On 10/24/20 5:55 AM, Colin King wrote: > From: Colin Ian King > > There are a couple of trivial spelling mistakes, fix these. > > Signed-off-by: Colin Ian King Acked-by: Randy Dunlap Thanks. > --- > arch/Kconfig | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff

Re: [PATCH 1/2] Block layer filter - second version

2020-10-24 Thread Greg KH
On Wed, Oct 21, 2020 at 12:04:08PM +0300, Sergei Shtepa wrote: > Signed-off-by: Sergei Shtepa I know I don't take patches without any changelog text. Maybe some maintainers are more lax... Also, "second version" doesn't belong in the subject line, the documentation shows how to properly

[PATCH] net/sunrpc: Fix return value from proc_do_xprt()

2020-10-24 Thread Alex Dewar
Commit c09f56b8f68d ("net/sunrpc: Fix return value for sysctl sunrpc.transports") attempted to add error checking for the call to memory_read_from_buffer(), however its return value was assigned to a size_t variable, so any negative values would be lost in the cast. Fix this.

Re: [RFC PATCH 4/6] ethernet: m10-retimer: add support for retimers on Intel MAX 10 BMC

2020-10-24 Thread Tom Rix
On 10/23/20 1:45 AM, Xu Yilun wrote: > This driver supports the ethernet retimers (Parkvale) for the Intel PAC > (Programmable Acceleration Card) N3000, which is a FPGA based Smart NIC. Parkvale is a code name, it would be better if the public name was used. As this is a physical chip that

[PATCH v3 2/5] scsi: ufs: clear UAC for FFU and RPMB LUNs

2020-10-24 Thread Jaegeuk Kim
From: Jaegeuk Kim In order to conduct FFU or RPMB operations, UFS needs to clear UAC. This patch clears it explicitly, so that we could get no failure given early execution. Signed-off-by: Jaegeuk Kim --- drivers/scsi/ufs/ufshcd.c | 70 +++

[UFS v3] UFS fixes

2020-10-24 Thread Jaegeuk Kim
Change log from v2: - use active_req-- instead of __ufshcd_release to avoid UFS timeout Change log from v1: - remove clkgating_enable check in __ufshcd_release - use __uhfshcd_release instead of active_req.

[PATCH v3 3/5] scsi: ufs: use WQ_HIGHPRI for gating work

2020-10-24 Thread Jaegeuk Kim
From: Jaegeuk Kim Must have WQ_MEM_RECLAIM ``WQ_MEM_RECLAIM`` All wq which might be used in the memory reclaim paths **MUST** have this flag set. The wq is guaranteed to have at least one execution context regardless of memory pressure. Signed-off-by: Jaegeuk Kim ---

  1   2   3   >