Re: [PATCH 1/1] iommu/arm-smmu-v3: add support for BBML

2021-01-25 Thread Robin Murphy
On 2021-01-23 10:08, Leizhen (ThunderTown) wrote: On 2021/1/22 20:51, Will Deacon wrote: On Thu, Nov 26, 2020 at 11:42:30AM +0800, Zhen Lei wrote: When changing from a set of pages/smaller blocks to a larger block for an address, the software should follow the sequence of BBML processing. Wh

Re: [v7,1/7] dt-bindings: PCI: mediatek-gen3: Add YAML schema

2021-01-25 Thread Rob Herring
On Wed, Jan 13, 2021 at 07:39:55PM +0800, Jianjun Wang wrote: > Add YAML schemas documentation for Gen3 PCIe controller on > MediaTek SoCs. > > Signed-off-by: Jianjun Wang > Acked-by: Ryder Lee > --- > .../bindings/pci/mediatek-pcie-gen3.yaml | 172 ++ > 1 file changed, 172

Re: [PATCH] hwmon: (dell-smm) Add XPS 15 L502X to fan control blacklist

2021-01-25 Thread Pali Rohár
On Monday 25 January 2021 12:19:38 Guenter Roeck wrote: > On Mon, Jan 25, 2021 at 11:05:40AM +0100, Pali Rohár wrote: > > On Saturday 23 January 2021 18:46:08 Thomas Hebb wrote: > > > It has been reported[0] that the Dell XPS 15 L502X exhibits similar > > > freezing behavior to the other systems[1]

Re: [PATCH] hwmon: (dell-smm) Add XPS 15 L502X to fan control blacklist

2021-01-25 Thread Guenter Roeck
On Mon, Jan 25, 2021 at 11:05:40AM +0100, Pali Rohár wrote: > On Saturday 23 January 2021 18:46:08 Thomas Hebb wrote: > > It has been reported[0] that the Dell XPS 15 L502X exhibits similar > > freezing behavior to the other systems[1] on this blacklist. The issue > > was exposed by a prior change

BUG: Incorrect MTU on GRE device if remote is unspecified

2021-01-25 Thread Slava Bacherikov
Hi, I'd like to report a regression. Currently, if you create GRE interface on the latest stable or LTS kernel (5.4 branch) with unspecified remote destination it's MTU will be adjusted for header size twice. For example: $ ip link add name test type gre local 127.0.0.32 $ ip link show test | grep

[PATCH v8 13/14] selftests/vm: gup_test: fix test flag

2021-01-25 Thread Pavel Tatashin
In gup_test both gup_flags and test_flags use the same flags field. This is broken. Farther, in the actual gup_test.c all the passed gup_flags are erased and unconditionally replaced with FOLL_WRITE. Which means that test_flags are ignored, and code like this always performs pin dump test: 155

[PATCH v4] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-25 Thread Ahmad Fatoum
For non-DMA usage, we have an easy way to associate a timestamp with a sample: iio_pollfunc_store_time stores a timestamp in the primary trigger IRQ handler and stm32_adc_trigger_handler runs in the IRQ thread to push out the buffer along with the timestamp. For this to work, the driver needs to r

[PATCH v8 14/14] selftests/vm: gup_test: test faulting in kernel, and verify pinnable pages

2021-01-25 Thread Pavel Tatashin
When pages are pinned they can be faulted in userland and migrated, and they can be faulted right in kernel without migration. In either case, the pinned pages must end-up being pinnable (not movable). Add a new test to gup_test, to help verify that the gup/pup (get_user_pages() / pin_user_pages(

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-25 Thread Michael Walle
Am 2021-01-21 12:01, schrieb Geert Uytterhoeven: Hi Saravana, On Thu, Jan 21, 2021 at 1:05 AM Saravana Kannan wrote: On Wed, Jan 20, 2021 at 3:53 PM Michael Walle wrote: > Am 2021-01-20 20:47, schrieb Saravana Kannan: > > On Wed, Jan 20, 2021 at 11:28 AM Michael Walle > > wrote: > >> > >>

Re: [PATCH 1/3] tracing: Merge irqflags + preempt counter.

2021-01-25 Thread Sebastian Andrzej Siewior
On 2021-01-25 14:03:23 [-0500], Steven Rostedt wrote: > > I was thinking about the inlining for two reasons. One was to consolidate > the logic in the header file, as they are small functions. And two, inlined > functions tend to be faster than non-inlined functions. Thus, I wasn't > looking at th

Re: [PATCH] x86/mm: Tracking linear mapping split events since boot

2021-01-25 Thread Dave Hansen
On 1/25/21 12:11 PM, Saravanan D wrote: > Numerous hugepage splits in the linear mapping would give > admins the signal to narrow down the sluggishness caused by TLB > miss/reload. > > One of the many lasting (as we don't coalesce back) sources for huge page > splits is tracing as the granular pag

[PATCH v3 1/1] loop: scale loop device by introducing per device lock

2021-01-25 Thread Pavel Tatashin
Currently, loop device has only one global lock: loop_ctl_mutex. This becomes hot in scenarios where many loop devices are used. Scale it by introducing per-device lock: lo_mutex that protects the fields in struct loop_device. Keep loop_ctl_mutex to protect global data such as loop_index_idr, loo

[PATCH v3] leds: gpio: Set max brightness to 1

2021-01-25 Thread Dylan Van Assche
GPIO LEDs only know 2 states: ON or OFF and do not have PWM capabilities. However, the max brightness is reported as 255. This patch sets the max brightness value of a GPIO controlled LED to 1. Tested on my PinePhone 1.2. Signed-off-by: Dylan Van Assche --- v2 drops an obsolete change in includ

[PATCH v3 0/1] scale loop device lock

2021-01-25 Thread Pavel Tatashin
Changelog v3 - Added review-by Tyler - Sync with mainline v2 - Addressed Tyler Hicks comments - added mutex_destroy() - comment in lo_open() - added lock around lo_disk === In our environment we are using systemd portable containers in squashfs formats, convert them into loop device, a

Re: [PATCH 1/1] iommu/arm-smmu-v3: add support for BBML

2021-01-25 Thread Robin Murphy
On 2021-01-23 10:20, Leizhen (ThunderTown) wrote: On 2021/1/22 21:00, Robin Murphy wrote: On 2021-01-22 12:51, Will Deacon wrote: On Thu, Nov 26, 2020 at 11:42:30AM +0800, Zhen Lei wrote: When changing from a set of pages/smaller blocks to a larger block for an address, the software should f

Re: [BUG]: KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe

2021-01-25 Thread Oliver Upton
> That means we have two options: > (a) define __hyp_panic_string in a different .c file in all pre-5.9 branches, > or > (b) revert the backported patch. > > The patch was needed in 5.9 and should stay there. It wasn't needed in earlier > versions because the symbol was being kept alive by anothe

Re: [PATCH] n_tty: fix redirected_tty_write checks after write_iter conversion

2021-01-25 Thread Linus Torvalds
On Mon, Jan 25, 2021 at 12:03 PM Sami Tolvanen wrote: > > Neither, I noticed this because the conflicting function declarations > broke Clang's Control Flow Integrity checking. Ahh, interesting. Is that automated somewhere, or are you running your own special checks? It sounds like a useful thing

[PATCH] usb: dwc2: Fix endpoint direction check in ep_from_windex

2021-01-25 Thread Heiko Stuebner
From: Heiko Stuebner dwc2_hsotg_process_req_status uses ep_from_windex() to retrieve the endpoint for the index provided in the wIndex request param. In a test-case with a rndis gadget running and sending a malformed packet to it like: dev.ctrl_transfer( 0x82, # bmRequestType

Re: [PATCH 4.19 46/58] net: dsa: mv88e6xxx: also read STU state in mv88e6250_g1_vtu_getnext

2021-01-25 Thread Rasmus Villemoes
On 25/01/2021 20.40, Rasmus Villemoes wrote: > On 25/01/2021 19.39, Greg Kroah-Hartman wrote: >> From: Rasmus Villemoes >> >> commit 87fe04367d842c4d97a77303242d4dd4ac351e46 upstream. >> > > Greg, please drop this from 4.19-stable. Details: > >> >> --- a/drivers/net/dsa/mv88e6xxx/global1_vtu.c >

Re: [PATCH] n_tty: fix redirected_tty_write checks after write_iter conversion

2021-01-25 Thread Sami Tolvanen
On Mon, Jan 25, 2021 at 11:45 AM Linus Torvalds wrote: > > On Mon, Jan 25, 2021 at 11:27 AM Linus Torvalds > wrote: > > > > Obvious ACK from me. > > Greg - if you have nothing else lined up in the tty tree, I can take > this fix directly if it's easier. > > And Sami - how did you actually notice?

[PATCH RESEND] genwqe: clarify repeated word

2021-01-25 Thread Randy Dunlap
Add a hyphen between duplicated word "Window" for clarity. Signed-off-by: Randy Dunlap Cc: Frank Haverkamp Cc: Andrew Morton --- include/uapi/linux/genwqe/genwqe_card.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/uapi/linux/genwqe/genwqe_card.

5.10 LTS Kernel: 2 or 6 years?

2021-01-25 Thread Scott Branden
Hi All, The 5.10 LTS kernel being officially LTS supported for 2 years presents a problem: why would anyone select a 5.10 kernel with 2 year LTS when 5.4 kernel has a 6 year LTS. Yet, various unofficial reports indicate it will be supported for 6 years.  And AOSP has already declared the use o

Re: [PATCH 1/3] tracing: Merge irqflags + preempt counter.

2021-01-25 Thread Steven Rostedt
On Mon, 25 Jan 2021 20:52:28 +0100 Sebastian Andrzej Siewior wrote: > On 2021-01-25 14:03:23 [-0500], Steven Rostedt wrote: > > > > I was thinking about the inlining for two reasons. One was to consolidate > > the logic in the header file, as they are small functions. And two, inlined > > functi

Re: [PATCH] KVM: x86: allow KVM_REQ_GET_NESTED_STATE_PAGES outside guest mode for VMX

2021-01-25 Thread Sean Christopherson
On Mon, Jan 25, 2021, Paolo Bonzini wrote: > On 25/01/21 20:16, Sean Christopherson wrote: > > > } > > > +static bool vmx_get_nested_state_pages(struct kvm_vcpu *vcpu) > > > +{ > > > + if (!nested_get_evmcs_page(vcpu)) > > > + return false; > > > + > > > + if (is_guest_mode(vcpu) && !nest

[PATCH RESEND] fs: afs: delete repeated words in comments

2021-01-25 Thread Randy Dunlap
Drop duplicated words {the, consider} in comments. Signed-off-by: Randy Dunlap Cc: David Howells Cc: linux-...@lists.infradead.org --- fs/afs/flock.c |2 +- fs/afs/rotate.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- linux-next-20200807.orig/fs/afs/flock.c +++ linux-ne

[PATCH RESEND2] ntfs: layout.h: delete duplicated words

2021-01-25 Thread Randy Dunlap
Drop the repeated words "the" and "in" in comments. Signed-off-by: Randy Dunlap Cc: Anton Altaparmakov Cc: linux-ntfs-...@lists.sourceforge.net Acked-by: Anton Altaparmakov Cc: Andrew Morton --- Andrew, Anton asked you to merge this patch: https://lore.kernel.org/lkml/7cf99c49-7eb0-455c-808a

Re: [PATCH] n_tty: fix redirected_tty_write checks after write_iter conversion

2021-01-25 Thread Greg Kroah-Hartman
On Mon, Jan 25, 2021 at 11:45:12AM -0800, Linus Torvalds wrote: > On Mon, Jan 25, 2021 at 11:27 AM Linus Torvalds > wrote: > > > > Obvious ACK from me. > > Greg - if you have nothing else lined up in the tty tree, I can take > this fix directly if it's easier. I have nothing else that I know of,

[PATCH RESEND] security: apparmor: file.h: delete duplicated word

2021-01-25 Thread Randy Dunlap
Delete the doubled word "then" in a comment. Signed-off-by: Randy Dunlap Cc: John Johansen Cc: appar...@lists.ubuntu.com Reviewed-by: Seth Arnold --- security/apparmor/include/file.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200717.orig/security/apparmor/includ

Re: [v7,3/7] PCI: mediatek-gen3: Add MediaTek Gen3 driver for MT8192

2021-01-25 Thread Rob Herring
On Wed, Jan 13, 2021 at 07:39:57PM +0800, Jianjun Wang wrote: > MediaTek's PCIe host controller has three generation HWs, the new > generation HW is an individual bridge, it supports Gen3 speed and > compatible with Gen2, Gen1 speed. > > Add support for new Gen3 controller which can be found on MT

Re: [PATCH] mfd: max8997: Replace 8998 with 8997

2021-01-25 Thread Timon Baetz
On Mon, 25 Jan 2021 08:43:47 +, Lee Jones wrote: > On Sun, 24 Jan 2021, Timon Baetz wrote: > > > Replace occurrences of 8998 with 8997. > > Because ... ... it is the max8997 header. Do you want me to extend the commit message? Thanks, Timon

Re: [BUG] copy_file_range with sysfs file as input

2021-01-25 Thread Ian Lance Taylor
Thanks for the note. I'm not a kernel developer, but to me this sounds like a kernel bug. It seems particularly unfortunate that copy_file_range returns 0 in this case. From the perspective of the Go standard library, what we would need is some mechanism to detect when the copy_file_range system

[PATCH v4] selftests: drivers: fpga: A test for interrupt support

2021-01-25 Thread trix
From: Tom Rix Check that the ioctl DFL_FPGA_PORT_ERR_GET_IRQ_NUM returns an expected result. Tested on vf device 0xbcc1 Sample run with # make -C tools/testing/selftests TARGETS=drivers/fpga run_tests ... TAP version 13 1..1 # selftests: drivers/fpga: intr # TAP version 13 # 1..1 # # St

[PATCH v1 06/10] x86/platform/intel-mid: Remove unused leftovers (msic_thermal)

2021-01-25 Thread Andy Shevchenko
There is no driver present, remove the device creation and other leftovers. Signed-off-by: Andy Shevchenko Acked-by: Linus Walleij --- .../platform/intel-mid/device_libs/Makefile | 1 - .../device_libs/platform_msic_thermal.c | 32 --- 2 files changed, 33 deletions(-)

[PATCH v1 07/10] x86/platform/intel-mid: Remove unused leftovers (msic)

2021-01-25 Thread Andy Shevchenko
There is no driver present, remove the device creation and other leftovers. Signed-off-by: Andy Shevchenko Acked-by: Linus Walleij --- arch/x86/include/asm/intel-mid.h | 7 -- .../platform/intel-mid/device_libs/Makefile | 2 - .../intel-mid/device_libs/platform_msic.c | 83

[PATCH v1 04/10] x86/platform/intel-mid: Remove unused leftovers (msic_gpio)

2021-01-25 Thread Andy Shevchenko
There is no driver present, remove the device creation and other leftovers. Signed-off-by: Andy Shevchenko Acked-by: Linus Walleij --- .../platform/intel-mid/device_libs/Makefile | 1 - .../device_libs/platform_msic_gpio.c | 43 --- 2 files changed, 44 deletions(-)

[PATCH v1 02/10] x86/platform/intel-mid: Remove unused leftovers (msic_ocd)

2021-01-25 Thread Andy Shevchenko
It seems msic_ocd driver was never upstreamed. Why should we have dead code in the kernel? Signed-off-by: Andy Shevchenko Acked-by: Linus Walleij --- .../platform/intel-mid/device_libs/Makefile | 1 - .../intel-mid/device_libs/platform_msic_ocd.c | 44 --- 2 files changed, 45

Re: [PATCH 4.19 46/58] net: dsa: mv88e6xxx: also read STU state in mv88e6250_g1_vtu_getnext

2021-01-25 Thread Rasmus Villemoes
On 25/01/2021 19.39, Greg Kroah-Hartman wrote: > From: Rasmus Villemoes > > commit 87fe04367d842c4d97a77303242d4dd4ac351e46 upstream. > Greg, please drop this from 4.19-stable. Details: > > --- a/drivers/net/dsa/mv88e6xxx/global1_vtu.c > +++ b/drivers/net/dsa/mv88e6xxx/global1_vtu.c > @@ -357

[PATCH v1 01/10] x86/platform/intel-mid: Remove unused leftovers (msic_audio)

2021-01-25 Thread Andy Shevchenko
The commit 05f4434bc130 ("ASoC: Intel: remove mfld_machine") removed the driver, no need to have support files for it. Cc: Vinod Koul Signed-off-by: Andy Shevchenko Acked-by: Linus Walleij --- .../platform/intel-mid/device_libs/Makefile | 1 - .../device_libs/platform_msic_audio.c |

Re: [PATCH 22/24] dt-bindings: memory: mediatek: update mediatek, smi-larb.yaml references

2021-01-25 Thread Rob Herring
On Wed, 13 Jan 2021 11:59:23 +0100, Mauro Carvalho Chehab wrote: > Changeset 27bb0e42855a ("dt-bindings: memory: mediatek: Convert SMI to DT > schema") > renamed: > Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.txt > to: > Documentation/devicetree/bindings/memory-control

Re: [PATCH v4 3/3] dt-bindings: arm64: dts: mediatek: Add krane sku0

2021-01-25 Thread Rob Herring
On Wed, 13 Jan 2021 19:04:03 +0800, Hsin-Yi Wang wrote: > Krane-sku0 is similar to krane-sku176 but using a different panel > source. > > Signed-off-by: Hsin-Yi Wang > --- > Documentation/devicetree/bindings/arm/mediatek.yaml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Reviewe

Re: [PATCH] KVM: x86: allow KVM_REQ_GET_NESTED_STATE_PAGES outside guest mode for VMX

2021-01-25 Thread Paolo Bonzini
On 25/01/21 20:16, Sean Christopherson wrote: } +static bool vmx_get_nested_state_pages(struct kvm_vcpu *vcpu) +{ + if (!nested_get_evmcs_page(vcpu)) + return false; + + if (is_guest_mode(vcpu) && !nested_get_vmcs12_pages(vcpu)) + return false; neste

Re: [PATCH 21/24] dt-bindings: display: mediatek: update mediatek, dpi.yaml reference

2021-01-25 Thread Rob Herring
On Wed, 13 Jan 2021 11:59:22 +0100, Mauro Carvalho Chehab wrote: > Changeset 9273cf7d3942 ("dt-bindings: display: mediatek: convert the dpi > bindings to yaml") > renamed: Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt > to: Documentation/devicetree/bindings/display/mediatek/m

Re: [PATCH 20/24] ASoC: audio-graph-card: update audio-graph-card.yaml reference

2021-01-25 Thread Rob Herring
On Wed, 13 Jan 2021 11:59:21 +0100, Mauro Carvalho Chehab wrote: > Changeset 97198614f6c3 ("ASoC: audio-graph-card: switch to yaml base > Documentation") > renamed: Documentation/devicetree/bindings/sound/audio-graph-card.txt > to: Documentation/devicetree/bindings/sound/audio-graph-card.yaml. >

Re: [PATCH v2 03/12][RESEND] iio: buffer: rework buffer & scan_elements dir creation

2021-01-25 Thread Greg Kroah-Hartman
On Sun, Jan 24, 2021 at 06:11:26PM +, Jonathan Cameron wrote: > On Fri, 22 Jan 2021 18:25:20 +0200 > Alexandru Ardelean wrote: > > > When adding more than one IIO buffer per IIO device, we will need to create > > a buffer & scan_elements directory for each buffer. > > We also want to move the

Re: [PATCH 4.19 12/58] dm integrity: select CRYPTO_SKCIPHER

2021-01-25 Thread Anthony Iliopoulos
On Mon, Jan 25, 2021 at 07:58:29PM +0100, Pavel Machek wrote: > Hi! > > > From: Anthony Iliopoulos > > > > [ Upstream commit f7b347acb5f6c29d9229bb64893d8b6a2c7949fb ] > > > > The integrity target relies on skcipher for encryption/decryption, but > > certain kernel configurations may not enable

[PATCH] regulator: core: avoid error messages for deferred probing

2021-01-25 Thread Andreas Kemnade
Noise like this happens on boot with regulators which can be bypassed when the supply is not probed. That looks too alarming and confusing. [3.844092] vddpu: bypassed regulator has no supply! [3.849105] vddpu: failed to get the current voltage: -EPROBE_DEFER [3.855591] vddpu: supplied

Re: [PATCH net-next 3/3] net: page_pool: simplify page recycling condition tests

2021-01-25 Thread Jesper Dangaard Brouer
On Mon, 25 Jan 2021 16:47:20 + Alexander Lobakin wrote: > pool_page_reusable() is a leftover from pre-NUMA-aware times. For now, > this function is just a redundant wrapper over page_is_pfmemalloc(), > so Inline it into its sole call site. > > Signed-off-by: Alexander Lobakin > --- > net/c

Re: [PATCH V2 06/11] dts: bindings: Document device tree bindings for ETE

2021-01-25 Thread Rob Herring
On Wed, Jan 13, 2021 at 09:48:13AM +0530, Anshuman Khandual wrote: > From: Suzuki K Poulose > > Document the device tree bindings for Embedded Trace Extensions. > ETE can be connected to legacy coresight components and thus > could optionally contain a connection graph as described by > the CoreS

[PATCH v10 18/18] arm64: kexec: remove head from relocation argument

2021-01-25 Thread Pavel Tatashin
Now, that relocation is done using virtual addresses, reloc_arg->head is not needed anymore. Signed-off-by: Pavel Tatashin --- arch/arm64/include/asm/kexec.h| 2 -- arch/arm64/kernel/asm-offsets.c | 1 - arch/arm64/kernel/machine_kexec.c | 1 - 3 files changed, 4 deletions(-) diff --git a

[PATCH v10 05/18] arm64: trans_pgd: pass allocator trans_pgd_create_copy

2021-01-25 Thread Pavel Tatashin
Make trans_pgd_create_copy and its subroutines to use allocator that is passed as an argument Signed-off-by: Pavel Tatashin Reviewed-by: James Morse --- arch/arm64/include/asm/trans_pgd.h | 4 +-- arch/arm64/kernel/hibernate.c | 7 - arch/arm64/mm/trans_pgd.c | 49 ++

[PATCH v10 12/18] arm64: kexec: arm64_relocate_new_kernel don't use x0 as temp

2021-01-25 Thread Pavel Tatashin
x0 will contain the only argument to arm64_relocate_new_kernel; don't use it as a temp. Reassigned registers to free-up x0 so we won't need to copy argument, and can use it at the beginning and at the end of the function. Signed-off-by: Pavel Tatashin Reviewed-by: James Morse --- arch/arm64/ker

Re: [PATCH] memory: ti-aemif: Drop child node when jumping out loop

2021-01-25 Thread Krzysztof Kozlowski
On Thu, Jan 21, 2021 at 01:03:59AM -0800, Pan Bian wrote: > Call of_node_put() to decrement the reference count of the child node > child_np when jumping out of the loop body of > for_each_available_child_of_node(), which is a macro that increments and > decrements the reference count of child node

[PATCH v10 17/18] arm64: kexec: enable MMU during kexec relocation

2021-01-25 Thread Pavel Tatashin
Now, that we have transitional page tables configured, temporarily enable MMU to allow faster relocation of segments to final destination. The performance data: for a moderate size kernel + initramfs: 25M the relocation was taking 0.382s, with enabled MMU it now takes 0.019s only or x20 improvemen

Re: [PATCH 2/2] arm64: dts: imx8mn-beacon-som: Enable QSPI on SOM

2021-01-25 Thread Krzysztof Kozlowski
On Tue, Jan 19, 2021 at 07:42:58AM -0600, Adam Ford wrote: > There is a QSPI chip connected to the FlexSPI bus. Enable it. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi > b/arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi > index 2120e64

[PATCH] n_tty: fix redirected_tty_write checks after write_iter conversion

2021-01-25 Thread Sami Tolvanen
Commit 9bb48c82aced ("tty: implement write_iter") converted the tty layer to use write_iter. Fix the redirected_tty_write declaration also in n_tty and change the comparisons to use write_iter instead of write. Signed-off-by: Sami Tolvanen --- drivers/tty/n_tty.c | 7 +++ 1 file changed, 3 i

[PATCH v10 16/18] arm64: kexec: configure trans_pgd page table for kexec

2021-01-25 Thread Pavel Tatashin
Configure a page table located in kexec-safe memory that has the following mappings: 1. identity mapping for text of relocation function with executable permission. 2. va mappings for all source ranges 3. va mappings for all destination ranges. Signed-off-by: Pavel Tatashin --- arch/arm64/in

[PATCH v10 07/18] arm64: mm: Always update TCR_EL1 from __cpu_set_tcr_t0sz()

2021-01-25 Thread Pavel Tatashin
From: James Morse Because only the idmap sets a non-standard T0SZ, __cpu_set_tcr_t0sz() can check for platforms that need to do this using __cpu_uses_extended_idmap() before doing its work. The idmap is only built with enough levels, (and T0SZ bits) to map its single page. To allow hibernate, a

Re: [PATCH v3 4/4] drm/ingenic: Fix non-OSD mode

2021-01-25 Thread H. Nikolaus Schaller
Hi Paul, > Am 24.01.2021 um 10:47 schrieb H. Nikolaus Schaller : > > Hi Paul, > >> Am 24.01.2021 um 10:43 schrieb Paul Cercueil : >> >> Hi Nikolaus, >> >> Le dim. 24 janv. 2021 à 10:30, H. Nikolaus Schaller a >> écrit : >>> Hi Paul, >>> we observed the same issue on the jz4730 (which is almo

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-25 Thread Saravana Kannan
On Mon, Jan 25, 2021 at 8:50 AM Lorenzo Pieralisi wrote: > > On Wed, Jan 20, 2021 at 08:28:36PM +0100, Michael Walle wrote: > > [RESEND, fat-fingered the buttons of my mail client and converted > > all CCs to BCCs :(] > > > > Am 2021-01-20 20:02, schrieb Saravana Kannan: > > > On Wed, Jan 20, 2021

[PATCH 5.10 190/199] net: systemport: free dev before on error path

2021-01-25 Thread Greg Kroah-Hartman
From: Pan Bian commit 0c630a66bf10991b0ef13d27c93d7545e692ef5b upstream. On the error path, it should goto the error handling label to free allocated memory rather than directly return. Fixes: 31bc72d97656 ("net: systemport: fetch and use clock resources") Signed-off-by: Pan Bian Acked-by: Flo

[PATCH 5.10 189/199] tty: fix up hung_up_tty_write() conversion

2021-01-25 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 17749851eb9ca2298e7c3b81aae4228961b36f28 upstream. In commit "tty: implement write_iter", I left the write_iter conversion of the hung up tty case alone, because I incorrectly thought it didn't matter. Jiri showed me the errors of my ways, and pointed out the problem

[PATCH 5.10 191/199] x86/sev-es: Handle string port IO to kernel memory properly

2021-01-25 Thread Greg Kroah-Hartman
From: Hyunwook (Wooky) Baek commit 7024f60d655272bd2ca1d3a4c9e0a63319b1eea1 upstream. Don't assume dest/source buffers are userspace addresses when manually copying data for string I/O or MOVS MMIO, as {get,put}_user() will fail if handed a kernel address and ultimately lead to a kernel panic.

[PATCH 5.10 196/199] kernfs: implement ->read_iter

2021-01-25 Thread Greg Kroah-Hartman
From: Christoph Hellwig commit 4eaad21a6ac9865df7f31983232ed5928450458d upstream. Switch kernfs to implement the read_iter method instead of plain old read to prepare to supporting splice and sendfile again. Signed-off-by: Christoph Hellwig Link: https://lore.kernel.org/r/20210120204631.274206

[PATCH 5.10 187/199] x86/sev: Fix nonistr violation

2021-01-25 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit a1d5c98aac33a5a0004ecf88905dcc261c52f988 upstream. When the compiler fails to inline, it violates nonisntr: vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0xc7: call to sev_es_wr_ghcb_msr() leaves .noinstr.text section Fixes: 4ca68e023b11 ("x86/sev-es: Hand

[PATCH 5.10 192/199] tcp: Fix potential use-after-free due to double kfree()

2021-01-25 Thread Greg Kroah-Hartman
From: Kuniyuki Iwashima commit c89dffc70b340780e5b933832d8c3e045ef3791e upstream. Receiving ACK with a valid SYN cookie, cookie_v4_check() allocates struct request_sock and then can allocate inet_rsk(req)->ireq_opt. After that, tcp_v4_syn_recv_sock() allocates struct sock and copies ireq_opt to

[PATCH 5.10 193/199] ASoC: SOF: Intel: hda: Avoid checking jack on system suspend

2021-01-25 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit ef4d764c99f792b725d4754a3628830f094f5c58 upstream. System takes a very long time to suspend after commit 215a22ed31a1 ("ALSA: hda: Refactor codec PM to use direct-complete optimization"): [ 90.065964] PM: suspend entry (s2idle) [ 90.067337] Filesystems sync: 0.001

[PATCH 5.10 154/199] sh: dma: fix kconfig dependency for G2_DMA

2021-01-25 Thread Greg Kroah-Hartman
From: Necip Fazil Yildiran commit f477a538c14d07f8c45e554c8c5208d588514e98 upstream. When G2_DMA is enabled and SH_DMA is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for SH_DMA_API Depends on [n]: SH_DMA [=n] Selected by [y]: - G2_DMA

[PATCH 5.10 194/199] drm/i915/hdcp: Get conn while content_type changed

2021-01-25 Thread Greg Kroah-Hartman
From: Anshuman Gupta commit 8662e1119a7d1baa1b2001689b2923e9050754bd upstream. Get DRM connector reference count while scheduling a prop work to avoid any possible destroy of DRM connector when it is in DRM_CONNECTOR_REGISTERED state. Fixes: a6597faa2d59 ("drm/i915: Protect workers against disa

[PATCH 5.10 161/199] sh_eth: Fix power down vs. is_opened flag ordering

2021-01-25 Thread Greg Kroah-Hartman
From: Geert Uytterhoeven commit f6a2e94b3f9d89cb40771ff746b16b5687650cbb upstream. sh_eth_close() does a synchronous power down of the device before marking it closed. Revert the order, to make sure the device is never marked opened while suspended. While at it, use pm_runtime_put() instead of

[PATCH 5.10 158/199] octeontx2-af: Fix missing check bugs in rvu_cgx.c

2021-01-25 Thread Greg Kroah-Hartman
From: Yingjie Wang commit b7ba6cfabc42fc846eb96e33f1edcd3ea6290a27 upstream. In rvu_mbox_handler_cgx_mac_addr_get() and rvu_mbox_handler_cgx_mac_addr_set(), the msg is expected only from PFs that are mapped to CGX LMACs. It should be checked before mapping, so we add the is_cgx_config_permitted(

[PATCH 5.10 185/199] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-25 Thread Greg Kroah-Hartman
From: Douglas Anderson commit a95881d6aa2c000e3649f27a1a7329cf356e6bb3 upstream. In commit 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") we tried to Ack interrupts during unmask. However, that patch forgot to check "intr_ack_high" so, presumably, it only worked for a cert

[PATCH 5.10 188/199] tty: implement write_iter

2021-01-25 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 9bb48c82aced07698a2d08ee0f1475a6c4f6b266 upstream. This makes the tty layer use the .write_iter() function instead of the traditional .write() functionality. That allows writev(), but more importantly also makes it possible to enable .splice_write() for ttys, reinsta

[PATCH 5.10 163/199] nvme-pci: fix error unwind in nvme_map_data

2021-01-25 Thread Greg Kroah-Hartman
From: Christoph Hellwig commit fa0732168fa1369dd089e5b06d6158a68229f7b7 upstream. Properly unwind step by step using refactored helpers from nvme_unmap_data to avoid a potential double dma_unmap on a mapping failure. Fixes: 7fe07d14f71f ("nvme-pci: merge nvme_free_iod into nvme_unmap_data") Rep

[PATCH 5.10 180/199] tcp: fix TCP_USER_TIMEOUT with zero window

2021-01-25 Thread Greg Kroah-Hartman
From: Enke Chen commit 9d9b1ee0b2d1c9e02b2338c4a4b0a062d2d3edac upstream. The TCP session does not terminate with TCP_USER_TIMEOUT when data remain untransmitted due to zero window. The number of unanswered zero-window probes (tcp_probes_out) is reset to zero with incoming acks irrespective of

[PATCH 5.10 179/199] tcp: do not mess with cloned skbs in tcp_add_backlog()

2021-01-25 Thread Greg Kroah-Hartman
From: Eric Dumazet commit b160c28548bc0a87cbd16d5af6d3edcfd70b8c9a upstream. Heiner Kallweit reported that some skbs were sent with the following invalid GSO properties : - gso_size > 0 - gso_type == 0 This was triggerring a WARN_ON_ONCE() in rtl8169_tso_csum_v2. Juerg Haefliger was able to re

[PATCH 5.10 186/199] pinctrl: qcom: Dont clear pending interrupts when enabling

2021-01-25 Thread Greg Kroah-Hartman
From: Douglas Anderson commit cf9d052aa6005f1e8dfaf491d83bf37f368af69e upstream. In Linux, if a driver does disable_irq() and later does enable_irq() on its interrupt, I believe it's expecting these properties: * If an interrupt was pending when the driver disabled then it will still be pendin

[PATCH 5.10 156/199] locking/lockdep: Cure noinstr fail

2021-01-25 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit 0afda3a888dccf12557b41ef42eee942327d122b upstream. When the compiler doesn't feel like inlining, it causes a noinstr fail: vmlinux.o: warning: objtool: lock_is_held_type()+0xb: call to lockdep_enabled() leaves .noinstr.text section Fixes: 4d004099a668 ("lockdep:

[PATCH 5.10 172/199] ipv6: create multicast route with RTPROT_KERNEL

2021-01-25 Thread Greg Kroah-Hartman
From: Matteo Croce commit a826b04303a40d52439aa141035fca5654ccaccd upstream. The ff00::/8 multicast route is created without specifying the fc_protocol field, so the default RTPROT_BOOT value is used: $ ip -6 -d route unicast ::1 dev lo proto kernel scope global metric 256 pref medium uni

[PATCH 5.10 165/199] lightnvm: fix memory leak when submit fails

2021-01-25 Thread Greg Kroah-Hartman
From: Pan Bian commit 97784481757fba7570121a70dd37ca74a29f50a8 upstream. The allocated page is not released if error occurs in nvm_submit_io_sync_raw(). __free_page() is moved ealier to avoid possible memory leak issue. Fixes: aff3fb18f957 ("lightnvm: move bad block and chunk state logic to cor

[PATCH 5.10 153/199] drm/i915/hdcp: Update CP property in update_pipe

2021-01-25 Thread Greg Kroah-Hartman
From: Anshuman Gupta commit b3c95d0bdb0855b1f28370629e9eebec6bceac17 upstream. When crtc state need_modeset is true it is not necessary it is going to be a real modeset, it can turns to be a fastset instead of modeset. This turns content protection property to be DESIRED and hdcp update_pipe lef

[PATCH 5.10 121/199] proc_sysctl: fix oops caused by incorrect command parameters

2021-01-25 Thread Greg Kroah-Hartman
From: Xiaoming Ni commit 697edcb0e4eadc41645fe88c991fe6a206b1a08d upstream. The process_sysctl_arg() does not check whether val is empty before invoking strlen(val). If the command line parameter () is incorrectly configured and val is empty, oops is triggered. For example: "hung_task_panic=

[PATCH 5.10 155/199] sh: Remove unused HAVE_COPY_THREAD_TLS macro

2021-01-25 Thread Greg Kroah-Hartman
From: Jinyang He commit 19170492735be935747b0545b7eed8bb40cc1209 upstream. Fixes: e1cc9d8d596e ("sh: switch to copy_thread_tls()") Signed-off-by: Jinyang He Signed-off-by: Rich Felker Signed-off-by: Greg Kroah-Hartman --- arch/sh/Kconfig |1 - 1 file changed, 1 deletion(-) --- a/arch/

[PATCH 5.10 128/199] io_uring: fix short read retries for non-reg files

2021-01-25 Thread Greg Kroah-Hartman
From: Pavel Begunkov commit 9a173346bd9e16ab19c7addb8862d95a5cea9feb upstream. Sockets and other non-regular files may actually expect short reads to happen, don't retry reads for them. Because non-reg files don't set FMODE_BUF_RASYNC and so it won't do second/retry do_read, we can filter out th

[PATCH 5.10 151/199] tools: gpio: fix %llu warning in gpio-event-mon.c

2021-01-25 Thread Greg Kroah-Hartman
From: Kent Gibson commit 2fe7c2f99440d52613e1cf845c96e8e463c28111 upstream. Some platforms, such as mips64, don't map __u64 to long long unsigned int so using %llu produces a warning: gpio-event-mon.c:110:37: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argumen

[PATCH 5.10 124/199] mm: memcg: fix memcg file_dirty numa stat

2021-01-25 Thread Greg Kroah-Hartman
From: Shakeel Butt commit 8a8792f600abacd7e1b9bb667759dca1c153f64c upstream. The kernel updates the per-node NR_FILE_DIRTY stats on page migration but not the memcg numa stats. That was not an issue until recently the commit 5f9a4f4a7096 ("mm: memcontrol: add the missing numa_stat interface for

[PATCH 5.10 138/199] usb: cdns3: imx: fix writing read-only memory issue

2021-01-25 Thread Greg Kroah-Hartman
From: Peter Chen commit 92cbdb923c17544684c2dd3be9f8636617898a44 upstream. The memory for struct clk_bulk_data should not be static which will be written during the clk_bulk_get. It fixed below oops when loading cdns3-imx as module. [ 17.272605] Unable to handle kernel write to read-only memo

[PATCH 5.10 133/199] USB: ehci: fix an interrupt calltrace error

2021-01-25 Thread Greg Kroah-Hartman
From: Longfang Liu commit 643a4df7fe3f6831d14536fd692be85f92670a52 upstream. The system that use Synopsys USB host controllers goes to suspend when using USB audio player. This causes the USB host controller continuous send interrupt signal to system, When the number of interrupts exceeds 10

[PATCH 5.10 118/199] irqchip/mips-cpu: Set IPI domain parent chip

2021-01-25 Thread Greg Kroah-Hartman
From: Mathias Kresin commit 599b3063adf4bf041a87a69244ee36aded0d878f upstream. Since commit 55567976629e ("genirq/irqdomain: Allow partial trimming of irq_data hierarchy") the irq_data chain is valided. The irq_domain_trim_hierarchy() function doesn't consider the irq + ipi domain hierarchy as

[PATCH 5.10 119/199] x86/mmx: Use KFPU_387 for MMX string operations

2021-01-25 Thread Greg Kroah-Hartman
From: Andy Lutomirski commit 67de8dca50c027ca0fa3b62a488ee5035036a0da upstream. The default kernel_fpu_begin() doesn't work on systems that support XMM but haven't yet enabled CR4.OSFXSR. This causes crashes when _mmx_memcpy() is called too early because LDMXCSR generates #UD when the aforement

[PATCH 5.10 094/199] RDMA/cma: Fix error flow in default_roce_mode_store

2021-01-25 Thread Greg Kroah-Hartman
From: Neta Ostrovsky [ Upstream commit 7c7b3e5d9aeed31d35c5dab0bf9c0fd4c8923206 ] In default_roce_mode_store(), we took a reference to cma_dev, but didn't return it with cma_dev_put in the error flow. Fixes: 1c15b4f2a42f ("RDMA/core: Modify enum ib_gid_type and enum rdma_network_type") Link: h

[PATCH 5.10 091/199] bpf: Reject too big ctx_size_in for raw_tp test run

2021-01-25 Thread Greg Kroah-Hartman
From: Song Liu [ Upstream commit 7ac6ad051150592557520b45773201b987ecfce3 ] syzbot reported a WARNING for allocating too big memory: WARNING: CPU: 1 PID: 8484 at mm/page_alloc.c:4976 __alloc_pages_nodemask+0x5f8/0x730 mm/page_alloc.c:5011 Modules linked in: CPU: 1 PID: 8484 Comm: syz-executor8

[PATCH 5.10 112/199] iio: ad5504: Fix setting power-down state

2021-01-25 Thread Greg Kroah-Hartman
From: Lars-Peter Clausen commit efd597b2839a9895e8a98fcb0b76d2f545802cd4 upstream. The power-down mask of the ad5504 is actually a power-up mask. Meaning if a bit is set the corresponding channel is powered up and if it is not set the channel is powered down. The driver currently has this the w

[PATCH 5.10 113/199] drivers: iio: temperature: Add delay after the addressed reset command in mlx90632.c

2021-01-25 Thread Greg Kroah-Hartman
From: Slaveyko Slaveykov commit cf5b1385d748b2f91b0c05bb301fcaf9bdbad385 upstream. After an I2C reset command, the mlx90632 needs some time before responding to other I2C commands. Without that delay, there is a chance that the I2C command(s) after the reset will not be accepted. Signed-off-by:

[PATCH 5.10 110/199] i2c: sprd: depend on COMMON_CLK to fix compile tests

2021-01-25 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit 9ecd1d2b302b600351fac50779f43fcb680c1a16 ] The I2C_SPRD uses Common Clock Framework thus it cannot be built on platforms without it (e.g. compile test on MIPS with LANTIQ): /usr/bin/mips-linux-gnu-ld: drivers/i2c/busses/i2c-sprd.o: in function `s

[PATCH 5.10 061/199] drm/amdgpu/psp: fix psp gfx ctrl cmds

2021-01-25 Thread Greg Kroah-Hartman
From: Victor Zhao [ Upstream commit f14a5c34d143f6627f0be70c0de1d962f3a6ff1c ] psp GFX_CTRL_CMD_ID_CONSUME_CMD different for windows and linux, according to psp, linux cmds are not correct. v2: only correct GFX_CTRL_CMD_ID_CONSUME_CMD. Signed-off-by: Victor Zhao Reviewed-by: Emily.Deng Signe

[PATCH 5.10 060/199] riscv: defconfig: enable gpio support for HiFive Unleashed

2021-01-25 Thread Greg Kroah-Hartman
From: Sagar Shrikant Kadam [ Upstream commit 0983834a83931606a647c275e5d4165ce4e7b49f ] Ethernet phy VSC8541-01 on HiFive Unleashed has its reset line connected to a gpio, so enable GPIO driver's required to reset the phy. Signed-off-by: Sagar Shrikant Kadam Signed-off-by: Palmer Dabbelt Sign

[PATCH 5.10 056/199] x86/xen: Add xen_no_vector_callback option to test PCI INTX delivery

2021-01-25 Thread Greg Kroah-Hartman
From: David Woodhouse [ Upstream commit b36b0fe96af13460278bf9b173beced1bd15f85d ] It's useful to be able to test non-vector event channel delivery, to make sure Linux will work properly on older Xen which doesn't have it. It's also useful for those working on Xen and Xen-compatible hypervisors

[PATCH 5.10 065/199] drm/nouveau/bios: fix issue shadowing expansion ROMs

2021-01-25 Thread Greg Kroah-Hartman
From: Ben Skeggs [ Upstream commit 402a89660e9dc880710b12773076a336c9dab3d7 ] This issue has generally been covered up by the presence of additional expansion ROMs after the ones we're interested in, with header fetches of subsequent images loading enough of the ROM to hide the issue. Noticed o

[PATCH 5.10 054/199] arm64: make atomic helpers __always_inline

2021-01-25 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit c35a824c31834d947fb99b0c608c1b9f922b4ba0 ] With UBSAN enabled and building with clang, there are occasionally warnings like WARNING: modpost: vmlinux.o(.text+0xc533ec): Section mismatch in reference from the function arch_atomic64_or() to the variable .ini

[PATCH 5.10 044/199] scsi: scsi_debug: Fix memleak in scsi_debug_init()

2021-01-25 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 3b01d7ea4dae907d34fa0eeb3f17bacd714c6d0c ] When sdeb_zbc_model does not match BLK_ZONED_NONE, BLK_ZONED_HA or BLK_ZONED_HM, we should free sdebug_q_arr to prevent memleak. Also there is no need to execute sdebug_erase_store() on failure of sdeb_zbc_model_str()

<    2   3   4   5   6   7   8   9   10   11   >