[PATCH v10 6/7] media: i2c: imx319: Support probe while the device is off

2021-02-05 Thread Sakari Ailus
From: Rajmohan Mani Tell ACPI device PM code that the driver supports the device being powered off when the driver's probe function is entered. Signed-off-by: Rajmohan Mani Signed-off-by: Sakari Ailus Reviewed-by: Tomasz Figa Reviewed-by: Bingbu Cao --- drivers/media/i2c/imx319.c | 72

Re: How can a userspace program tell if the system supports the ACPI S4 state (Suspend-to-Disk)?

2021-02-05 Thread Rafael J. Wysocki
On Sat, Dec 12, 2020 at 2:22 AM Dexuan Cui wrote: > > Hi all, > It looks like Linux can hibernate even if the system does not support the ACPI > S4 state, as long as the system can shut down, so "cat /sys/power/state" > always contains "disk", unless we specify the kernel parameter "nohibernate"

Re: [PATCH net] net: gro: do not keep too many GRO packets in napi->rx_list

2021-02-05 Thread Alexander Lobakin
From: Eric Dumazet Date: Thu, 4 Feb 2021 23:44:17 +0100 > On Thu, Feb 4, 2021 at 11:14 PM Saeed Mahameed wrote: > > > > On Thu, 2021-02-04 at 13:31 -0800, Eric Dumazet wrote: > > > From: Eric Dumazet > > > > > > Commit c80794323e82 ("net: Fix packet reordering caused by GRO and > > > listified

Re: [PATCH v2 1/1] powerpc/kvm: Save Timebase Offset to fix sched_clock() while running guest code.

2021-02-05 Thread Fabiano Rosas
Leonardo Bras writes: > Before guest entry, TBU40 register is changed to reflect guest timebase. > After exitting guest, the register is reverted to it's original value. > > If one tries to get the timestamp from host between those changes, it > will present an incorrect value. > > An example

[PATCH v10 2/7] i2c: Allow an ACPI driver to manage the device's power state during probe

2021-02-05 Thread Sakari Ailus
Enable drivers to tell ACPI that there's no need to power on a device for probe. Drivers should still perform this by themselves if there's a need to. In some cases powering on the device during probe is undesirable, and this change enables a driver to choose what fits best for it. Add a field

[PATCH v10 1/7] ACPI: scan: Obtain device's desired enumeration power state

2021-02-05 Thread Sakari Ailus
Store a device's desired enumeration power state in struct acpi_device_power during acpi_device object's initialisation. Signed-off-by: Sakari Ailus --- drivers/acpi/scan.c | 4 include/acpi/acpi_bus.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/acpi/scan.c

Re: [PATCH v3 2/4] drm_dp_mst_topology: use correct AUX channel

2021-02-05 Thread Ville Syrjälä
On Fri, Feb 05, 2021 at 04:17:51PM +1100, Sam McNally wrote: > On Thu, 4 Feb 2021 at 21:19, Hans Verkuil wrote: > > > > On 01/02/2021 23:13, Ville Syrjälä wrote: > > > On Wed, Sep 23, 2020 at 12:13:53PM +1000, Sam McNally wrote: > > >> From: Hans Verkuil > > >> > > >> For adapters behind an MST

Re: [PATCH v3 1/2] tpm: fix reference counting for struct tpm_chip

2021-02-05 Thread Stefan Berger
On 2/4/21 9:01 PM, James Bottomley wrote: On Thu, 2021-02-04 at 20:44 -0500, Stefan Berger wrote: To clarify: When I tested this I had *both* patches applied. Without the patches I got the null pointer exception in tpm2_del_space(). The 2nd patch alone solves that issue when using the steps

Re: [PATCH net-next 1/7] net: ipa: restructure a few functions

2021-02-05 Thread Alex Elder
On 2/4/21 10:50 PM, Jakub Kicinski wrote: > On Wed, 3 Feb 2021 09:28:49 -0600 Alex Elder wrote: >> Make __gsi_channel_start() and __gsi_channel_stop() more structurally >> and semantically similar to each other: >> - Restructure __gsi_channel_start() to always return at the end of >> the

Re: [PATCH v3 2/4] drm_dp_mst_topology: use correct AUX channel

2021-02-05 Thread Hans Verkuil
On 05/02/2021 14:24, Ville Syrjälä wrote: > On Fri, Feb 05, 2021 at 04:17:51PM +1100, Sam McNally wrote: >> On Thu, 4 Feb 2021 at 21:19, Hans Verkuil wrote: >>> >>> On 01/02/2021 23:13, Ville Syrjälä wrote: On Wed, Sep 23, 2020 at 12:13:53PM +1000, Sam McNally wrote: > From: Hans Verkuil

Re: [PATCH 1/8] spi: stm32: properly handle 0 byte transfer

2021-02-05 Thread Mark Brown
On Fri, Feb 05, 2021 at 12:08:55PM +0100, Alain Volmat wrote: > On 0 byte transfer request, return straight from the > xfer function after finalizing the transfer. > + if (transfer->len == 0) { > + spi_finalize_current_transfer(master); > + return 0; The driver only

[PATCH v10 3/7] Documentation: ACPI: Document _DSE object usage for enum power state

2021-02-05 Thread Sakari Ailus
Document the use of the _DSE object for setting desirable power state during probe. Signed-off-by: Sakari Ailus Reviewed-by: Tomasz Figa --- Documentation/firmware-guide/acpi/index.rst | 1 + .../firmware-guide/acpi/low-power-probe.rst | 69 +++ 2 files changed, 70

[PATCH] soc: renesas: rmobile-sysc: Set OF_POPULATED and absorb reset handling

2021-02-05 Thread Geert Uytterhoeven
Currently, there are two drivers binding to the R-Mobile System Controller (SYSC): - The rmobile-sysc driver registers PM domains from a core_initcall(), and does not use a platform driver, - The rmobile-reset driver registers a reset handler, and does use a platform driver. As

Re: [PATCH] drivers: mtd: Better word replace a not so good word in the file mtd_blkdevs.c

2021-02-05 Thread Bhaskar Chowdhury
On 14:26 Fri 05 Feb 2021, Miquel Raynal wrote: Hi Bhaskar, Bhaskar Chowdhury wrote on Fri, 5 Feb 2021 18:11:51 +0530: s/fucking/invite/ Signed-off-by: Bhaskar Chowdhury --- drivers/mtd/mtd_blkdevs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] PCI: Also set up legacy files only after sysfs init

2021-02-05 Thread Daniel Vetter
We are already doing this for all the regular sysfs files on PCI devices, but not yet on the legacy io files on the PCI buses. Thus far no problem, but in the next patch I want to wire up iomem revoke support. That needs the vfs up and running already to make sure that iomem_get_mapping() works.

Re: Old platforms: bring out your dead

2021-02-05 Thread Alexander Lobakin
From: Arnd Bergmann Date: Fri, 8 Jan 2021 23:55:06 +0100 > After v5.10 was officially declared an LTS kernel, I had a look around > the Arm platforms that look like they have not seen any patches from > their maintainers or users that are actually running the hardware for > at least five years

Re: [PATCH] mtd: spi-nor: Get rid of duplicated argument in spi_nor_parse_sfdp()

2021-02-05 Thread Pratyush Yadav
On 04/02/21 07:45PM, Tudor Ambarus wrote: > spi_nor_parse_sfdp(nor, nor->params); > passes for the second argument a member within the first argument. > Drop the second argument and obtain it directly from the first, > and do it across all the children functions. This is a follow up for > 'commit

[PATCH 3/4] thermal: ti-soc-thermal: Simplify polling with iopoll

2021-02-05 Thread Tony Lindgren
We can use iopoll for checking the EOCZ (end of conversion) bit. And with this we now also want to handle the timeout errors properly. For omap3, we need about 1.2ms for the single mode sampling to wait for EOCZ down, so let's use 1.5ms timeout there. Waiting for sampling to start is faster and

[PATCH 4/4] thermal: ti-soc-thermal: Use non-inverted define for omap4

2021-02-05 Thread Tony Lindgren
When we set bit 10 high we use continuous mode and not single mode. Let's correct this to avoid confusion. No functional changes here, the code does the right thing with bit 10. Cc: Adam Ford Cc: Carl Philipp Klemm Cc: Eduardo Valentin Cc: H. Nikolaus Schaller Cc: Merlijn Wajer Cc: Pavel

MESSAGE

2021-02-05 Thread Alidou Alassane
Hello My Dear Friend, How are you and your family? I hope everybody is fine. I am happy to inform you that I later by the grace of God completed the transaction successfully with another partner. The total fund was transferred to the new partner that I presented to the bank. Now I am outside my

[PATCH 1/4] thermal: ti-soc-thermal: Skip pointless register access for dra7

2021-02-05 Thread Tony Lindgren
On dra7, there is no Start of Conversion (SOC) register bit and we have an empty bgap_soc_mask in the configuration for the thermal driver. Let's not do pointless reads and writes with the empty mask. There's also no point waiting for End of Conversion bit (EOCZ) to go high on dra7. We only care

Re: [PATCH v2 2/7] coresight: etm-perf: Support PID tracing for kernel at EL2

2021-02-05 Thread Mike Leach
On Tue, 2 Feb 2021 at 23:06, Suzuki K Poulose wrote: > > On 2/2/21 4:38 PM, Leo Yan wrote: > > From: Suzuki K Poulose > > > > When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. > > So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the process. > > Thus we should trace

Re: [patch 03/12] x86/irq/64: Adjust the per CPU irq stack pointer by 8

2021-02-05 Thread Peter Zijlstra
On Thu, Feb 04, 2021 at 09:49:06PM +0100, Thomas Gleixner wrote: > Move the definition > next to the inuse flag so they end up in the same cache line. > -DEFINE_PER_CPU(struct irq_stack *, hardirq_stack_ptr); > +DEFINE_PER_CPU(void *, hardirq_stack_ptr); > DEFINE_PER_CPU(bool,

Re: [PATCH v2 4/7] perf cs-etm: Support PID tracing in config

2021-02-05 Thread Mike Leach
On Tue, 2 Feb 2021 at 16:39, Leo Yan wrote: > > From: Suzuki K Poulose > > If the kernel is running at EL2, the pid of a task is exposed via VMID > instead of the CONTEXTID. Add support for this in the perf tool. > > This patch respects user setting if user has specified any configs > from

Re: [PATCH] drivers: mtd: Better word replace a not so good word in the file mtd_blkdevs.c

2021-02-05 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "Bhaskar Chowdhury" > An: "Miquel Raynal" > CC: "richard" , "Vignesh Raghavendra" , > "linux-mtd" , > "linux-kernel" , "Randy Dunlap" > > Gesendet: Freitag, 5. Februar 2021 14:36:39 > Betreff: Re: [PATCH] drivers: mtd: Better word replace a not so good

Re: [PATCH] drivers: mtd: Better word replace a not so good word in the file mtd_blkdevs.c

2021-02-05 Thread Bhaskar Chowdhury
On 14:49 Fri 05 Feb 2021, Richard Weinberger wrote: - Ursprüngliche Mail - Von: "Bhaskar Chowdhury" An: "Miquel Raynal" CC: "richard" , "Vignesh Raghavendra" , "linux-mtd" , "linux-kernel" , "Randy Dunlap" Gesendet: Freitag, 5. Februar 2021 14:36:39 Betreff: Re: [PATCH] drivers:

[RFC/PATCH 00/11] Raspberry PI 4 V3D enablement

2021-02-05 Thread Nicolas Saenz Julienne
This series attempts to enable V3D on BCM2711, the SoC available on the Raspberry Pi 4 family of boards. Due to the lack of documentation some things are taken as it from testing/downstream implementation[1], which I'm hilighting here: - It's not clear that the following is 100% true, maybe

Re: [PATCH] media: pwc: Fix the URB buffer allocation

2021-02-05 Thread Andrew Lunn
On Fri, Feb 05, 2021 at 02:42:23PM +0100, Takashi Iwai wrote: > On Fri, 05 Feb 2021 14:13:02 +0100, > Andrew Lunn wrote: > > > > Hi Takashi > > > > > Indeed, looks so. In most cases, this doesn't matter since both point > > > to the same device object. In some cases like xhci-plat HCD, they >

[RFC/PATCH 06/11] soc: bcm: bcm2835-power: Bypass power_on/off() calls

2021-02-05 Thread Nicolas Saenz Julienne
Bypass power_on/power_off() when running on BCM2711 as they are not needed. Signed-off-by: Nicolas Saenz Julienne --- drivers/soc/bcm/bcm2835-power.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/bcm/bcm2835-power.c b/drivers/soc/bcm/bcm2835-power.c index

[PATCH 1/2] mtd: spi-nor: core: Advance erase after the erase cmd has been completed

2021-02-05 Thread Tudor Ambarus
Wait for the erase cmd to complete and then advance the erase. Signed-off-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 0522304f52fa..bcaa161bc7db

[PATCH 2/2] mtd: spi-nor: core: Add dbg msg for spi_nor_erase_multi_sectors()

2021-02-05 Thread Tudor Ambarus
Useful when debugging non-uniform erase. Signed-off-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index bcaa161bc7db..7401c60b53e6 100644 --- a/drivers/mtd/spi-nor/core.c +++

[PATCH v6 0/2] pinctrl: qcom: Add SM8350 pinctrl support

2021-02-05 Thread Vinod Koul
This adds binding and driver for TLMM block found in SM8350 SoC The binding is dependent on TLMM common binding from Bjorn: https://lore.kernel.org/linux-arm-msm/20210126042650.1725176-1-bjorn.anders...@linaro.org Changes in v6: - Add rob and bjorn r-b - removed quotes around 'defs' and drop

Re: [PATCH v3 2/4] drm_dp_mst_topology: use correct AUX channel

2021-02-05 Thread Ville Syrjälä
On Fri, Feb 05, 2021 at 02:46:44PM +0100, Hans Verkuil wrote: > On 05/02/2021 14:24, Ville Syrjälä wrote: > > On Fri, Feb 05, 2021 at 04:17:51PM +1100, Sam McNally wrote: > >> On Thu, 4 Feb 2021 at 21:19, Hans Verkuil wrote: > >>> > >>> On 01/02/2021 23:13, Ville Syrjälä wrote: > On Wed, Sep

[PATCH v6 1/2] dt-bindings: pinctrl: qcom: Add SM8350 pinctrl bindings

2021-02-05 Thread Vinod Koul
Add device tree binding Documentation details for Qualcomm SM8350 pinctrl driver. Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Signed-off-by: Vinod Koul --- .../bindings/pinctrl/qcom,sm8350-pinctrl.yaml | 145 ++ 1 file changed, 145 insertions(+) create mode 100644

Re: [PATCH net-next v1 1/6] lan743x: boost performance on cpu archs w/o dma cache snooping

2021-02-05 Thread Sven Van Asbroeck
Hi Christoph, On Fri, Feb 5, 2021 at 4:31 AM Christoph Hellwig wrote: > > This is a pattern we've seen in a few other net driver, so we should > be ok. It just is rather hairy and needs a good justification, which > seems to be given here. Thank you so much for taking the time to look into

Re: linux-next: manual merge of the drivers-x86 tree with the drm-misc tree

2021-02-05 Thread Andy Shevchenko
On Fri, Feb 5, 2021 at 3:05 PM Daniel Vetter wrote: > On Fri, Feb 5, 2021 at 12:14 PM Patrik Jakobsson > wrote: > > > > On Fri, Feb 5, 2021 at 12:07 PM Andy Shevchenko > > wrote: > > > > > > On Thu, Feb 4, 2021 at 11:04 AM Andy Shevchenko > > > wrote: > > > >> Today's linux-next merge of the

[RFC PATCH v8 5/5] KVM: arm64: ioctl to fetch/store tags in a guest

2021-02-05 Thread Steven Price
The VMM may not wish to have it's own mapping of guest memory mapped with PROT_MTE because this causes problems if the VMM has tag checking enabled (the guest controls the tags in physical RAM and it's unlikely the tags are correct for the VMM). Instead add a new ioctl which allows the VMM to

[PATCH v6 2/2] pinctrl: qcom: Add SM8350 pinctrl driver

2021-02-05 Thread Vinod Koul
This adds pincontrol driver for tlmm block found in SM8350 SoC This patch is based on initial code downstream by Raghavendra. Reviewed-by: Bjorn Andersson Signed-off-by: Vinod Koul --- drivers/pinctrl/qcom/Kconfig |9 + drivers/pinctrl/qcom/Makefile |1 +

Re: [PATCH] drivers: mtd: Better word replace a not so good word in the file mtd_blkdevs.c

2021-02-05 Thread Bhaskar Chowdhury
On 14:57 Fri 05 Feb 2021, Miquel Raynal wrote: Hi Bhaskar, Bhaskar Chowdhury wrote on Fri, 5 Feb 2021 19:06:39 +0530: On 14:26 Fri 05 Feb 2021, Miquel Raynal wrote: >Hi Bhaskar, > >Bhaskar Chowdhury wrote on Fri, 5 Feb 2021 >18:11:51 +0530: > >> s/fucking/invite/ >> >> >> Signed-off-by:

Re: ERROR: INT DW_ATE_unsigned_1 Error emitting BTF type

2021-02-05 Thread Sedat Dilek
On Fri, Feb 5, 2021 at 3:41 PM Sedat Dilek wrote: > > On Fri, Feb 5, 2021 at 3:37 PM Sedat Dilek wrote: > > > > Hi, > > > > when building with pahole v1.20 and binutils v2.35.2 plus Clang > > v12.0.0-rc1 and DWARF-v5 I see: > > ... > > + info BTF .btf.vmlinux.bin.o > > + [ != silent_ ] > > +

Re: [PATCH 1/2] HID: logitech-dj: add support for the new lightspeed receiver iteration

2021-02-05 Thread Jiri Kosina
On Sat, 23 Jan 2021, Filipe Laíns wrote: > From: Filipe Laíns > > Tested with the G Pro X Superlight. libratbag sees the device, as > expected, and input events are passing trough. > > https://github.com/libratbag/libratbag/pull/1122 > > The receiver has a quirk where the moused interface

[PATCH v1] Bluetooth: hci_qca:Fixed issue during suspend

2021-02-05 Thread Venkata Lakshmi Narayana Gubba
If BT SoC is running with ROM FW then just return in qca_suspend function as ROM FW does not support in-band sleep. Fixes: 2be43abac5a8 ("Bluetooth: hci_qca: Wait for timeout during suspend") Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 12 +++- 1 file

Re: [PATCH 7/7] mm: memcontrol: consolidate lruvec stat flushing

2021-02-05 Thread Michal Hocko
On Tue 02-02-21 13:47:46, Johannes Weiner wrote: > There are two functions to flush the per-cpu data of an lruvec into > the rest of the cgroup tree: when the cgroup is being freed, and when > a CPU disappears during hotplug. The difference is whether all CPUs or > just one is being collected, but

Re: [PATCH] fs/btrfs: Fix raid6 qstripe kmap'ing

2021-02-05 Thread David Sterba
On Thu, Feb 04, 2021 at 07:52:36PM -0800, Ira Weiny wrote: > On Thu, Feb 04, 2021 at 04:26:08PM +0100, David Sterba wrote: > > On Wed, Feb 03, 2021 at 04:56:48PM +0100, David Sterba wrote: > > > On Wed, Jan 27, 2021 at 10:15:03PM -0800, ira.we...@intel.com wrote: > > > > From: Ira Weiny > > >

Re: [PATCH v4 2/4] lib: vsprintf: Fix handling of number field widths in vsscanf

2021-02-05 Thread Andy Shevchenko
On Fri, Feb 5, 2021 at 5:23 PM David Laight wrote: > From: Andy Shevchenko > > Sent: 05 February 2021 12:51 > > On Fri, Feb 5, 2021 at 1:35 PM Richard Fitzgerald > > wrote: > > > On 04/02/2021 16:35, Petr Mladek wrote: > > > > On Wed 2021-02-03 21:45:55, Andy Shevchenko wrote: > > > >> On Wed,

Re: [PATCH] HID: logitech-dj: add support for keyboard events in eQUAD step 4 Gaming

2021-02-05 Thread Filipe Laíns
On Fri, 2021-02-05 at 10:18 +0100, Jiri Kosina wrote: > On Sat, 30 Jan 2021, Filipe Laíns wrote: > > > From: Filipe Laíns > > > > In e400071a805d6229223a98899e9da8c6233704a1 I added support for the > > receiver that comes with the G602 device, but unfortunately I screwed up > > during testing

[PATCH v3] mfd: da9063: Support SMBus and I2C mode

2021-02-05 Thread Mark Jonas
From: Hubert Streidl By default the PMIC DA9063 2-wire interface is SMBus compliant. This means the PMIC will automatically reset the interface when the clock signal ceases for more than the SMBus timeout of 35 ms. If the I2C driver / device is not capable of creating atomic I2C transactions, a

[QEMU] x86: Implement Linear Address Masking support

2021-02-05 Thread Kirill A. Shutemov
Linear Address Masking feature makes CPU ignore some bits of the virtual address. These bits can be used to encode metadata. The feature is enumerated with CPUID.(EAX=07H, ECX=01H):EAX.LAM[bit 26]. CR3.LAM_U57[bit 62] allows to encode 6 bits of metadata in bits 62:57 of user pointers.

Kindly Accept My Donation

2021-02-05 Thread Mrs. Cornelia Pascal
Dearest One, I'm writing you this mail with the trust that only you can help me in this situation for your trusted and God-fearing personality. I'm sorry to intrude into your privacy. I saw your profile in the webinternational domain database) when I was looking for a reliable trustee to whom I

RE: [PATCH v4 2/4] lib: vsprintf: Fix handling of number field widths in vsscanf

2021-02-05 Thread David Laight
From: Andy Shevchenko > Sent: 05 February 2021 12:51 > > On Fri, Feb 5, 2021 at 1:35 PM Richard Fitzgerald > wrote: > > On 04/02/2021 16:35, Petr Mladek wrote: > > > On Wed 2021-02-03 21:45:55, Andy Shevchenko wrote: > > >> On Wed, Feb 03, 2021 at 04:50:07PM +, Richard Fitzgerald wrote: > >

[PATCH v2 10/12] arm64: kasan: simplify and inline MTE functions

2021-02-05 Thread Andrey Konovalov
This change provides a simpler implementation of mte_get_mem_tag(), mte_get_random_tag(), and mte_set_mem_tag_range(). Simplifications include removing system_supports_mte() checks as these functions are onlye called from KASAN runtime that had already checked system_supports_mte(). Besides that,

Re: [PATCH 2/9] perf tools: Support the auxiliary event

2021-02-05 Thread Liang, Kan
On 2/5/2021 10:26 AM, Arnaldo Carvalho de Melo wrote: Em Fri, Feb 05, 2021 at 09:13:34AM -0500, Liang, Kan escreveu: On 2/5/2021 5:52 AM, Namhyung Kim wrote: On Wed, Feb 3, 2021 at 5:14 AM wrote: From: Kan Liang On the Intel Sapphire Rapids server, an auxiliary event has to be

[PATCH v2 09/12] kasan: ensure poisoning size alignment

2021-02-05 Thread Andrey Konovalov
A previous changes d99f6a10c161 ("kasan: don't round_up too much") attempted to simplify the code by adding a round_up(size) call into kasan_poison(). While this allows to have less round_up() calls around the code, this results in round_up() being called multiple times. This patch removes

[PATCH v2 00/12] kasan: optimizations and fixes for HW_TAGS

2021-02-05 Thread Andrey Konovalov
This patchset goes on top of: 1. Vincenzo's async support patches [1], and 2. "kasan: untag addresses for KFENCE" fix [2] (already in mm). [1] https://lore.kernel.org/linux-arm-kernel/20210130165225.54047-1-vincenzo.frasc...@arm.com/ [2]

[PATCH v2 05/12] kasan: unify large kfree checks

2021-02-05 Thread Andrey Konovalov
Unify checks in kasan_kfree_large() and in kasan_slab_free_mempool() for large allocations as it's done for small kfree() allocations. With this change, kasan_slab_free_mempool() starts checking that the first byte of the memory that's being freed is accessible. Reviewed-by: Marco Elver

[PATCH v2 07/12] kasan, mm: fail krealloc on freed objects

2021-02-05 Thread Andrey Konovalov
Currently, if krealloc() is called on a freed object with KASAN enabled, it allocates and returns a new object, but doesn't copy any memory from the old one as ksize() returns 0. This makes the caller believe that krealloc() succeeded (KASAN report is printed though). This patch adds an

[PATCH v2 03/12] kasan: optimize large kmalloc poisoning

2021-02-05 Thread Andrey Konovalov
Similarly to kasan_kmalloc(), kasan_kmalloc_large() doesn't need to unpoison the object as it as already unpoisoned by alloc_pages() (or by ksize() for krealloc()). This patch changes kasan_kmalloc_large() to only poison the redzone. Reviewed-by: Marco Elver Signed-off-by: Andrey Konovalov ---

[PATCH v2 01/12] kasan, mm: don't save alloc stacks twice

2021-02-05 Thread Andrey Konovalov
Currently KASAN saves allocation stacks in both kasan_slab_alloc() and kasan_kmalloc() annotations. This patch changes KASAN to save allocation stacks for slab objects from kmalloc caches in kasan_kmalloc() only, and stacks for other slab objects in kasan_slab_alloc() only. This change requires

Re: [PATCH v11 2/5] kasan: Add KASAN mode kernel parameter

2021-02-05 Thread Vincenzo Frascino
On 2/5/21 3:49 PM, Andrey Konovalov wrote: > On Mon, Feb 1, 2021 at 9:04 PM Andrey Konovalov wrote: >> >> On Sat, Jan 30, 2021 at 5:52 PM Vincenzo Frascino >> wrote: >>> >>> @@ -45,6 +52,9 @@ static enum kasan_arg_fault kasan_arg_fault >>> __ro_after_init; >>>

Re: [External] Re: [PATCH] mm: memcontrol: fix missing wakeup oom task

2021-02-05 Thread Muchun Song
On Fri, Feb 5, 2021 at 8:20 PM Michal Hocko wrote: > > On Fri 05-02-21 19:04:19, Muchun Song wrote: > > On Fri, Feb 5, 2021 at 6:21 PM Michal Hocko wrote: > > > > > > On Fri 05-02-21 17:55:10, Muchun Song wrote: > > > > On Fri, Feb 5, 2021 at 4:24 PM Michal Hocko wrote: > > > > > > > > > > On

Re: [PATCH V3 18/19] virtio_vdpa: don't warn when fail to disable vq

2021-02-05 Thread Michael S. Tsirkin
On Mon, Jan 04, 2021 at 02:55:02PM +0800, Jason Wang wrote: > There's no guarantee that the device can disable a specific virtqueue > through set_vq_ready(). One example is the modern virtio-pci > device. So this patch removes the warning. > > Signed-off-by: Jason Wang Do we need the read as a

Re: [PATCH v5 05/11] crypto: qce: skcipher: Return error for zero length messages

2021-02-05 Thread Thara Gopinath
On 2/4/21 7:26 PM, Eric Biggers wrote: On Thu, Feb 04, 2021 at 07:09:53PM -0500, Thara Gopinath wrote: @@ -260,6 +261,10 @@ static int qce_skcipher_crypt(struct skcipher_request *req, int encrypt) rctx->flags |= encrypt ? QCE_ENCRYPT : QCE_DECRYPT; keylen =

Re: [PATCH v3 1/2] tpm: fix reference counting for struct tpm_chip

2021-02-05 Thread Jason Gunthorpe
On Fri, Feb 05, 2021 at 04:50:13PM +0100, Lino Sanfilippo wrote: > > On 05.02.21 16:15, Jason Gunthorpe wrote: > > > > No, the cdev layer holds the refcount on the device while open is > > being called. > > > Yes, but the reference that is responsible for the chip deallocation is > chip->dev >

Re: [PATCH v2] drm/qxl: do not run release if qxl failed to init

2021-02-05 Thread Tong Zhang
On Feb 5, 2021, at 2:43 AM, Gerd Hoffmann wrote: > > On Thu, Feb 04, 2021 at 11:30:50AM -0500, Tong Zhang wrote: >> if qxl_device_init() fail, drm device will not be registered, >> in this case, do not run qxl_drm_release() > > How do you trigger this? > This can be triggered by changing the

Re: [PATCH 03/18] ovl: stack miscattr

2021-02-05 Thread Miklos Szeredi
On Fri, Feb 5, 2021 at 12:49 AM Vivek Goyal wrote: > > +int ovl_miscattr_set(struct dentry *dentry, struct miscattr *ma) > > +{ > > + struct inode *inode = d_inode(dentry); > > + struct dentry *upperdentry; > > + const struct cred *old_cred; > > + int err; > > + > > + err =

Re: [PATCH v2] openrisc: use device tree to determine present cpus

2021-02-05 Thread Stafford Horne
On Mon, Feb 01, 2021 at 12:49:31PM +0100, Jan Henrik Weinstock wrote: > Use the device tree to determine the present cpus instead of assuming all > CONFIG_NRCPUS are actually present in the system. > > Signed-off-by: Jan Henrik Weinstock Hi Jan, I cannot apply this patch, it seems you somehow

Re: [PATCH] fs: notify: inotify: Replace a common bad word with better common word

2021-02-05 Thread Amir Goldstein
On Fri, Feb 5, 2021 at 3:12 PM Bhaskar Chowdhury wrote: > > On 14:45 Fri 05 Feb 2021, Amir Goldstein wrote: > >On Fri, Feb 5, 2021 at 2:20 PM Bhaskar Chowdhury > >wrote: > >> > >> > >> > >> s/fucked/messed/ > >> > >> Signed-off-by: Bhaskar Chowdhury > >> --- > >>

Re: [PATCH 0/6] Support second Image Signal Processor on rk3399

2021-02-05 Thread Heiko Stübner
Hi Sebastian, I did some tests myself today as well and can confirm your hdmi related finding - at least when plugged in on boot. I tried some combinations of camera vs. hdmi and it seems really only when hdmi is plugged in on boot (1) - boot - camera --> works (2) - boot - camera - hdmi

Re: [RFC] security: replace indirect calls with static calls

2021-02-05 Thread Mathieu Desnoyers
- On Feb 5, 2021, at 10:40 AM, Peter Zijlstra pet...@infradead.org wrote: > On Fri, Feb 05, 2021 at 10:09:26AM -0500, Mathieu Desnoyers wrote: >> Then we should be able to generate the following using static keys as a >> jump table and N static calls: >> >> jump >> label_N: >> stack

Re: [PATCH 3/5] i2c: stm32f7: add support for DNF i2c-digital-filter binding

2021-02-05 Thread Pierre Yves MORDRET
Hello all Looks good to me Signed-off-by: Pierre-Yves MORDRET Regards On 2/5/21 9:51 AM, Alain Volmat wrote: > Add the support for the i2c-digital-filter binding, allowing to enable > the digital filter via the device-tree and indicate its value in the DT. > > Signed-off-by: Alain Volmat >

Re: [PATCH 1/5] i2c: stm32f7: fix configuration of the digital filter

2021-02-05 Thread Pierre Yves MORDRET
Hello all Looks good to me Signed-off-by: Pierre-Yves MORDRET Regards On 2/5/21 9:51 AM, Alain Volmat wrote: > The digital filter related computation are present in the driver > however the programming of the filter within the IP is missing. > The maximum value for the DNF is wrong and should

Re: [PATCH V3 17/19] vdpa: set the virtqueue num during register

2021-02-05 Thread Michael S. Tsirkin
On Mon, Jan 04, 2021 at 02:55:01PM +0800, Jason Wang wrote: > This patch delay the queue number setting to vDPA device > registering. This allows us to probe the virtqueue numbers between > device allocation and registering. > > Reviewed-by: Stefano Garzarella > Signed-off-by: Jason Wang

Re: [PATCH] tracepoints: Do not punish non static call users

2021-02-05 Thread kernel test robot
. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Steven-Rostedt/tracepoints-Do-not-punish-non-static-call-users/20210205-032217 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip

Re: [PATCH 5/5] i2c: stm32f7: indicate the address being accessed on errors

2021-02-05 Thread Pierre Yves MORDRET
Hello all Looks good to me Signed-off-by: Pierre-Yves MORDRET Regards On 2/5/21 9:51 AM, Alain Volmat wrote: > To help debugging issues, add the address of the slave being > accessed when getting an error. > > Signed-off-by: Alain Volmat > --- > drivers/i2c/busses/i2c-stm32f7.c | 9

Re: [PATCH net] net: gro: do not keep too many GRO packets in napi->rx_list

2021-02-05 Thread Eric Dumazet
On Fri, Feb 5, 2021 at 2:03 PM Alexander Lobakin wrote: > > > It's strange why mailmap didn't pick up my active email at pm.me. I took the signatures from c80794323e82, I CCed all people involved in this recent patch. It is very rare I use scripts/get_maintainer.pl since it tends to be noisy.

Re: [RFC] security: replace indirect calls with static calls

2021-02-05 Thread Peter Zijlstra
On Fri, Feb 05, 2021 at 10:09:26AM -0500, Mathieu Desnoyers wrote: > Then we should be able to generate the following using static keys as a > jump table and N static calls: > > jump > label_N: > stack setup > call > label_N-1: > stack setup > call > label_N-2: > stack setup > call

Re: [External] Re: [PATCH] mm: memcontrol: remove rcu_read_lock from get_mem_cgroup_from_page

2021-02-05 Thread Shakeel Butt
+Cc Roman On Fri, Feb 5, 2021 at 2:49 AM Michal Hocko wrote: > [snip] > > > > Also, css_get is enough because page > > > > has a reference to the memcg. > > > > > > tryget used to be there to guard against offlined memcg but we have > > > concluded this is impossible in this path. tryget stayed

Re: [PATCH v24 07/14] mm/damon: Implement a debugfs-based user space interface

2021-02-05 Thread SeongJae Park
On Fri, 5 Feb 2021 16:29:41 +0100 Greg KH wrote: > On Thu, Feb 04, 2021 at 04:31:43PM +0100, SeongJae Park wrote: > > From: SeongJae Park > > > > DAMON is designed to be used by kernel space code such as the memory > > management subsystems, and therefore it provides only kernel space API. > >

Re: [PATCH 03/18] ovl: stack miscattr

2021-02-05 Thread Miklos Szeredi
On Fri, Feb 5, 2021 at 4:25 PM Miklos Szeredi wrote: > > On Fri, Feb 5, 2021 at 12:49 AM Vivek Goyal wrote: > > > > +int ovl_miscattr_set(struct dentry *dentry, struct miscattr *ma) > > > +{ > > > + struct inode *inode = d_inode(dentry); > > > + struct dentry *upperdentry; > > > +

Re: [PATCH v11 2/5] kasan: Add KASAN mode kernel parameter

2021-02-05 Thread Andrey Konovalov
On Mon, Feb 1, 2021 at 9:04 PM Andrey Konovalov wrote: > > On Sat, Jan 30, 2021 at 5:52 PM Vincenzo Frascino > wrote: > > > > @@ -45,6 +52,9 @@ static enum kasan_arg_fault kasan_arg_fault > > __ro_after_init; > > DEFINE_STATIC_KEY_FALSE(kasan_flag_enabled); > >

Re: [PATCH] hrtimer: Interrupt storm on clock_settime

2021-02-05 Thread Thomas Gleixner
On Thu, Jan 28 2021 at 15:02, Mikael Beckius wrote: > During clock_settime absolute realtime timers may get updated to expire > sooner in absolute monotonic time but if hrtimer_force_reprogram is > called as part of a clock_settime and the next hard hrtimer expires > before the next soft hrtimer

Re: ERROR: INT DW_ATE_unsigned_1 Error emitting BTF type

2021-02-05 Thread Sedat Dilek
On Fri, Feb 5, 2021 at 4:28 PM Arnaldo Carvalho de Melo wrote: > > Em Fri, Feb 05, 2021 at 04:23:59PM +0100, Sedat Dilek escreveu: > > On Fri, Feb 5, 2021 at 3:41 PM Sedat Dilek wrote: > > > > > > On Fri, Feb 5, 2021 at 3:37 PM Sedat Dilek wrote: > > > > > > > > Hi, > > > > > > > > when

Re: [PATCH v19 3/3] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-05 Thread Bean Huo
On Fri, 2021-02-05 at 14:06 +, Avri Altman wrote: > > > > + put_unaligned_be64(ppn, [6]); > > > > > > You are assuming the HPB entries read out by "HPB Read Buffer" > > > cmd > > > are > > > in Little > > > Endian, which is why you are using put_unaligned_be64 here. > > > However, > > >

[PATCH v2 11/12] kasan: inline HW_TAGS helper functions

2021-02-05 Thread Andrey Konovalov
Mark all static functions in common.c and kasan.h that are used for hardware tag-based KASAN as inline to avoid unnecessary function calls. Signed-off-by: Andrey Konovalov --- mm/kasan/common.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mm/kasan/common.c

Re: [PATCH v6 05/21] arm64: Initialise as nVHE before switching to VHE

2021-02-05 Thread Marc Zyngier
Hi Hector, On 2021-02-05 12:01, Hector Martin 'marcan' wrote: On 01/02/2021 20.56, Marc Zyngier wrote: As we are aiming to be able to control whether we enable VHE or not, let's always drop down to EL1 first, and only then upgrade to VHE if at all possible. This means that if the kernel is

Re: [PATCH 1/8] sched/fair: Clean up active balance nr_balance_failed trickery

2021-02-05 Thread Valentin Schneider
On 05/02/21 14:51, Vincent Guittot wrote: > On Thu, 28 Jan 2021 at 19:32, Valentin Schneider > wrote: >> >> When triggering an active load balance, sd->nr_balance_failed is set to >> such a value that any further can_migrate_task() using said sd will ignore >> the output of task_hot(). >> >> This

WARNING in mc1NUM_get_time

2021-02-05 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:dd86e7fa Merge tag 'pci-v5.11-fixes-2' of git://git.kernel.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=147f29c4d0 kernel config: https://syzkaller.appspot.com/x/.config?x=e83e68d0a6aba5f6

Re: [PATCH net-next 5/7] net: marvell: prestera: add LAG support

2021-02-05 Thread Vladimir Oltean
On Wed, Feb 03, 2021 at 06:54:56PM +0200, Vadym Kochan wrote: > +static struct prestera_lag *prestera_lag_by_dev(struct prestera_switch *sw, > + struct net_device *dev) > +{ > + struct prestera_lag *lag; > + u16 id; > + > + for (id = 0; id <

Re: [PATCH v11 4/5] arm64: mte: Enable async tag check fault

2021-02-05 Thread Catalin Marinas
On Sat, Jan 30, 2021 at 04:52:24PM +, Vincenzo Frascino wrote: > diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c > index 92078e1eb627..7763ac1f2917 100644 > --- a/arch/arm64/kernel/mte.c > +++ b/arch/arm64/kernel/mte.c > @@ -182,6 +182,37 @@ bool mte_report_once(void) >

Re: [RFC 0/9] Linear Address Masking enabling

2021-02-05 Thread Peter Zijlstra
On Fri, Feb 05, 2021 at 06:16:20PM +0300, Kirill A. Shutemov wrote: > The feature competes for bits with 5-level paging: LAM_U48 makes it > impossible to map anything about 47-bits. The patchset made these > capability mutually exclusive: whatever used first wins. LAM_U57 can be > combined with

Re: [PATCH v2 4/4] hugetlb: Do early cow when page pinned on src mm

2021-02-05 Thread Peter Xu
On Thu, Feb 04, 2021 at 09:11:24PM -0800, Mike Kravetz wrote: [...] > >>> @@ -3787,7 +3803,7 @@ int copy_hugetlb_page_range(struct mm_struct *dst, > >>> struct mm_struct *src, > >>> dst_entry = huge_ptep_get(dst_pte); > >>> if ((dst_pte == src_pte) ||

Re: [PATCH] drivers: nvmem: Fix voltage settings for QTI qfprom-efuse

2021-02-05 Thread Doug Anderson
Hi, On Fri, Feb 5, 2021 at 3:29 AM Ravi Kumar Bokka wrote: > > QFPROM controller hardware requires 1.8V min for fuse blowing. > So, this change sets the voltage to 1.8V, required to blow the fuse > for qfprom-efuse controller. > > To disable fuse blowing, we set the voltage to 0V since this may

Re: [PATCH v14 0/8] Free some vmemmap pages of HugeTLB page

2021-02-05 Thread Joao Martins
On 2/4/21 3:50 AM, Muchun Song wrote: > Hi all, > [...] > When a HugeTLB is freed to the buddy system, we should allocate 6 pages for > vmemmap pages and restore the previous mapping relationship. > > Apart from 2MB HugeTLB page, we also have 1GB HugeTLB page. It is similar > to the 2MB

Re: [PATCH 2/5] drm/sun4i: tcon: set sync polarity for tcon1 channel

2021-02-05 Thread Maxime Ripard
On Fri, Feb 05, 2021 at 11:21:22AM +0800, Chen-Yu Tsai wrote: > On Fri, Feb 5, 2021 at 2:48 AM Jernej Skrabec wrote: > > > > Channel 1 has polarity bits for vsync and hsync signals but driver never > > sets them. It turns out that with pre-HDMI2 controllers seemingly there > > is no issue if

[PATCH v2 02/12] kasan, mm: optimize kmalloc poisoning

2021-02-05 Thread Andrey Konovalov
For allocations from kmalloc caches, kasan_kmalloc() always follows kasan_slab_alloc(). Currenly, both of them unpoison the whole object, which is unnecessary. This patch provides separate implementations for both annotations: kasan_slab_alloc() unpoisons the whole object, and kasan_kmalloc()

[git pull] IOMMU Fix for Linux v5.11-rc6

2021-02-05 Thread Joerg Roedel
Hi Linus, The following changes since commit 1048ba83fb1c00cd24172e23e8263972f6b5d9ac: Linux 5.11-rc6 (2021-01-31 13:50:09 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v5.11-rc6 for you to fetch changes up to

Re: [RFC 9/9] x86/mm: Implement PR_SET/GET_TAGGED_ADDR_CTRL with LAM

2021-02-05 Thread H.J. Lu
On Fri, Feb 5, 2021 at 7:16 AM Kirill A. Shutemov wrote: > > Provide prctl() interface to enabled LAM for user addresses. Depending > how many tag bits requested it may result in enabling LAM_U57 or > LAM_U48. I prefer the alternate kernel interface based on CET arch_prctl interface which is

Re: [External] Re: [PATCH v14 3/8] mm: hugetlb: free the vmemmap pages associated with each HugeTLB page

2021-02-05 Thread Muchun Song
On Fri, Feb 5, 2021 at 4:54 PM Oscar Salvador wrote: > > On Thu, Feb 04, 2021 at 11:50:38AM +0800, Muchun Song wrote: > > Every HugeTLB has more than one struct page structure. We __know__ that > > we only use the first 4(HUGETLB_CGROUP_MIN_ORDER) struct page structures > > to store metadata

Re: [PATCH 0/3] fs/efs: Follow kernel style guide

2021-02-05 Thread Amy Parker
On Fri, Feb 5, 2021 at 5:1 AM David Sterba wrote: > > On Thu, Feb 04, 2021 at 08:52:14PM -0800, Amy Parker wrote: > > As the EFS driver is old and non-maintained, > > Is anybody using EFS on current kernels? There's not much point updating > it to current coding style, deleting fs/efs is probably

Re: [PATCH v2] mm: memcontrol: replace the loop with a list_for_each_entry()

2021-02-05 Thread Michal Hocko
On Fri 05-02-21 00:30:55, Muchun Song wrote: > The rule of list walk has gone since: > > commit a9d5adeeb4b2 ("mm/memcontrol: allow to uncharge page without using > page->lru field") > > So remove the strange comment and replace the loop with a > list_for_each_entry(). > > There is only one

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