[PATCH net-next 2/2] net: mscc: allow offloading timestamping operations to the PHY

2020-05-26 Thread Antoine Tenart
This patch adds support for offloading timestamping operations not only to the Ocelot switch (as already supported) but to compatible PHYs. When both the PHY and the Ocelot switch support timestamping operations, the PHY implementation is chosen as the timestamp will happen closer to the medium.

[PATCH net-next 1/2] net: mscc: use the PHY MII ioctl interface when possible

2020-05-26 Thread Antoine Tenart
Allow ioctl to be implemented by the PHY, when a PHY is attached to the Ocelot switch. In case the ioctl is a request to set or get the hardware timestamp, use the Ocelot switch implementation for now. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/mscc/ocelot.c | 20

[PATCH v3 1/8] kernel.h: move taint and system state flags to uapi

2020-05-26 Thread Luis Chamberlain
The taint and system state flags will be used in a subsequent patch exposing these to userspace, so move them to uapi. We keep the TAINT_FLAGS_COUNT outside of uapi, as this value can change per release. Signed-off-by: Luis Chamberlain --- include/linux/kernel.h | 34

Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel

2020-05-26 Thread Sedat Dilek
On Tue, May 26, 2020 at 4:55 PM Sedat Dilek wrote: > > On Tue, May 26, 2020 at 4:48 PM Sedat Dilek wrote: > > > > On Tue, May 26, 2020 at 2:44 PM Sedat Dilek wrote: > > > > > > On Tue, May 26, 2020 at 2:33 PM Sedat Dilek wrote: > > > > > > > > On Tue, May 26, 2020 at 2:30 PM Ard Biesheuvel

[PATCH v3 8/8] qed: use new taint_firmware_crashed()

2020-05-26 Thread Luis Chamberlain
This makes use of the new taint_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to

[PATCH] HID: multitouch: enable multi-input as a quirk for some devices

2020-05-26 Thread Benjamin Tissoires
Two touchpad/trackstick combos are currently not behaving properly. They define a mouse emulation collection, as per Win8 requirements, but also define a separate mouse collection for the trackstick. The way the kernel currently treat the collections is that it merges both in one device. However,

[PATCH net-next 0/2] net: mscc: allow forwarding ioctl operations to attached PHYs

2020-05-26 Thread Antoine Tenart
Hello, These two patches allow forwarding ioctl to the PHY MII implementation, and support is added for offloading timestamping operations to compatible attached PHYs. Thanks, Antoine Antoine Tenart (2): net: mscc: use the PHY MII ioctl interface when possible net: mscc: allow offloading

Re: [PATCH] Removing ununsed variable int lo, hi, int data and int i from comedi/drivers/dt2814.c.

2020-05-26 Thread Dan Carpenter
On Tue, May 26, 2020 at 08:24:50PM +0530, GAURAV PATHAK wrote: > On Tue, May 26, 2020 at 05:13:46PM +0300, Dan Carpenter wrote: > > Your subject doesn't use the correct patch prefix please use. > > > > [PATCH] Staging: comedi: dt2814: remove unused assignments > > > > Please resend a v2. > > >

[PATCH v1] PCI: controller: Remove duplicate error message

2020-05-26 Thread Dejin Zheng
It will print an error message by itself when devm_pci_remap_cfg_resource() goes wrong. so remove the duplicate error message. Signed-off-by: Dejin Zheng --- drivers/pci/controller/cadence/pcie-cadence-host.c | 4 +--- drivers/pci/controller/dwc/pcie-al.c | 13 +++--

Re: [PATCH 1/2] PCI: Introduce PCI_FIXUP_IOMMU

2020-05-26 Thread Zhangfei Gao
Hi, Christoph On 2020/5/26 下午10:46, Christoph Hellwig wrote: On Tue, May 26, 2020 at 07:49:08PM +0800, Zhangfei Gao wrote: Some platform devices appear as PCI but are actually on the AMBA bus, and they need fixup in drivers/pci/quirks.c handling iommu_fwnode. Here introducing PCI_FIXUP_IOMMU,

[PATCHv2 2/2] dt-bindings: snps,dw-apb-ssi: add optional reset property

2020-05-26 Thread Dinh Nguyen
Add optional reset property. Signed-off-by: Dinh Nguyen --- v2: actually document the "resets" and "reset-names" optional properties --- Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCHv2 1/2] spi: dw: add reset control

2020-05-26 Thread Dinh Nguyen
Add mechanism to get the reset control and deassert it in order to bring the IP out of reset. Signed-off-by: Liang Jin J Signed-off-by: Dinh Nguyen --- v2: use _get_optional_exclusive put IP back into reset if there was an error in probe function --- drivers/spi/spi-dw-mmio.c | 13

Re: [PATCH v5 03/14] PCI: cadence: Convert all r/w accessors to perform only 32-bit accesses

2020-05-26 Thread Rob Herring
On Sun, May 24, 2020 at 9:30 PM Kishon Vijay Abraham I wrote: > > Hi Rob, > > On 5/22/2020 9:24 PM, Rob Herring wrote: > > On Thu, May 21, 2020 at 9:37 PM Kishon Vijay Abraham I > > wrote: > >> > >> Certain platforms like TI's J721E using Cadence PCIe IP can perform only > >> 32-bit accesses

[tip: x86/cleanups] x86/io_apic: Remove unused function mp_init_irq_at_boot()

2020-05-26 Thread tip-bot2 for YueHaibing
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: fd52a75ca3545c965ff58a78b6ff0b0dc7d8d228 Gitweb: https://git.kernel.org/tip/fd52a75ca3545c965ff58a78b6ff0b0dc7d8d228 Author:YueHaibing AuthorDate:Fri, 08 May 2020 22:08:08 +08:00

[no subject]

2020-05-26 Thread Qian Cai
Bcc: Subject: UBSAN: array-index-out-of-bounds in drivers/scsi/hpsa.c:4421:7 Reply-To: The commit 64ce60cab246 ("hpsa: correct skipping masked peripherals") trigger an UBSAN warning below. When i == 0 in hpsa_update_scsi_devices(), for (i = 0; i < nphysicals + nlogicals + 1; i++) { ...

Re: [PATCH v2 4/4] x86/boot: Check that there are no runtime relocations

2020-05-26 Thread Arvind Sankar
On Tue, May 26, 2020 at 08:11:56AM +0200, Ard Biesheuvel wrote: > On Tue, 26 May 2020 at 00:59, Arvind Sankar wrote: > > # Compressed kernel should be built as PIE since it may be loaded at any > > # address by the bootloader. > > -KBUILD_LDFLAGS += $(call ld-option, -pie) $(call ld-option, >

[RFC RESEND 0/3] Introduce cpufreq minimum load QoS

2020-05-26 Thread Benjamin Gaignard
A first round [1] of discussions and suggestions have already be done on this series but without found a solution to the problem. I resend it to progress on this topic. When start streaming from the sensor the CPU load could remain very low because almost all the capture pipeline is done in

[RFC 2/3] cpufreq: governor: Use minimum load QoS

2020-05-26 Thread Benjamin Gaignard
Make sure that the returned load is above the system-wide minimum load QoS. Devices could set this specific QoS to inform governors about their need in terms of CPU load when computing it from idle time isn't accurate. Signed-off-by: Benjamin Gaignard --- drivers/cpufreq/cpufreq_governor.c | 5

[RFC 3/3] media: stm32-dcmi: Inform cpufreq governors about cpu load needs

2020-05-26 Thread Benjamin Gaignard
When start streaming the CPU load could remain very low because almost all the capture pipeline is done in hardware (i.e. without using the CPU) and let believe to cpufreq governor that it could use lower frequencies. If the governor decides to use a too low frequency that becomes a problem when

[RFC 1/3] PM: QoS: Introduce cpufreq minimum load QoS

2020-05-26 Thread Benjamin Gaignard
Introduce cpufreq minimum load QoS, based on the "raw" low-level PM QoS, to represent the minimum expected cpu load by various devices. The cpufreq_minload_qos_limit() helper is defined to retrieve the aggregated constraints. Signed-off-by: Benjamin Gaignard --- include/linux/pm_qos.h | 12

UBSAN: array-index-out-of-bounds in drivers/scsi/hpsa.c:4421:7

2020-05-26 Thread Qian Cai
Sorry, adding a missing subject line. On Tue, May 26, 2020 at 11:14:16AM -0400, Qian Cai wrote: > The commit 64ce60cab246 ("hpsa: correct skipping masked peripherals") > trigger an UBSAN warning below. > > When i == 0 in hpsa_update_scsi_devices(), > > for (i = 0; i < nphysicals + nlogicals +

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-26 Thread Mike Rapoport
On Tue, May 26, 2020 at 03:01:27PM +0100, Will Deacon wrote: > On Tue, May 26, 2020 at 02:26:35PM +0100, Will Deacon wrote: > > On Sun, May 24, 2020 at 03:32:56PM +0300, Mike Rapoport wrote: > > > On Thu, May 21, 2020 at 04:02:11PM -0700, Guenter Roeck wrote: > > > > On 5/20/20 12:51 PM, Mike

Re: [PATCHv2 1/2] spi: dw: add reset control

2020-05-26 Thread Andy Shevchenko
On Tue, May 26, 2020 at 10:12:17AM -0500, Dinh Nguyen wrote: > Add mechanism to get the reset control and deassert it in order to bring > the IP out of reset. ... > struct clk *clk; > struct clk *pclk; > void *priv; > + struct reset_control*rstc; I

Re: [PATCH 01/10] rcu: Directly lock rdp->nocb_lock on nocb code entrypoints

2020-05-26 Thread Joel Fernandes
Hi Paul, On Fri, May 22, 2020 at 10:57:39AM -0700, Paul E. McKenney wrote: > On Wed, May 20, 2020 at 08:29:49AM -0400, Joel Fernandes wrote: > > On Wed, May 13, 2020 at 06:47:05PM +0200, Frederic Weisbecker wrote: > > > Pure NOCB code entrypoints (nocb_cb kthread, nocb_gp kthread, nocb > > >

Re: [PATCH v9 07/14] KVM: Don't allocate dirty bitmap if dirty ring is enabled

2020-05-26 Thread Peter Xu
On Tue, May 26, 2020 at 11:05:47PM +0800, kbuild test robot wrote: > >> arch/x86/kvm/mmu/mmu.c:1280:3: warning: Returning an integer in a function > >> with pointer return type is not portable. [CastIntegerToAddressAtReturn] > return false; > ^ A rebase accident for quite a few

Re: [PATCH glibc 1/3] glibc: Perform rseq registration at C startup and thread creation (v19)

2020-05-26 Thread Mathieu Desnoyers
- On May 26, 2020, at 10:57 AM, Florian Weimer fwei...@redhat.com wrote: > * Mathieu Desnoyers: > >>> Like the attribute, it needs to come right after the struct keyword, I >>> think. (Trailing attributes can be ambiguous, but not in this case.) >> >> Nope. _Alignas really _is_ special :-(

Re: [PATCH v3 18/19] kselftests: cgroup: add kernel memory accounting tests

2020-05-26 Thread Vlastimil Babka
On 4/22/20 10:47 PM, Roman Gushchin wrote: > Add some tests to cover the kernel memory accounting functionality. > These are covering some issues (and changes) we had recently. > > 1) A test which allocates a lot of negative dentries, checks memcg > slab statistics, creates memory pressure by

Re: [PATCH 2/4] dt-bindings: sram: add documentation for reserved-only flag

2020-05-26 Thread Mian Yousaf Kaukab
On Wed, May 20, 2020 at 10:55:58AM +0200, Thierry Reding wrote: > On Tue, May 19, 2020 at 05:03:26PM -0600, Rob Herring wrote: > > On Tue, May 19, 2020 at 10:16:43AM -0600, Stephen Warren wrote: > > > On 5/13/20 4:41 AM, Mian Yousaf Kaukab wrote: > > > > On Tue, May 12, 2020 at 01:45:28PM -0600,

[PATCH] perf tools: Fix debuginfo search for Ubuntu

2020-05-26 Thread Adrian Hunter
Reportedly, from 19.10 Ubuntu has begun mixing up the location of some debug symbol files, putting files expected to be in /usr/lib/debug/usr/lib into /usr/lib/debug/lib instead. Fix by adding another dso_binary_type. Example on Ubuntu 20.04 Before: $ perf record -e intel_pt//u uname

Re: [PATCH] compiler/gcc: Raise minimum GCC version for kernel builds to 4.8

2020-05-26 Thread Guenter Roeck
On Mon, May 11, 2020 at 09:41:37PM +0100, Will Deacon wrote: > It is very rare to see versions of GCC prior to 4.8 being used to build > the mainline kernel. These old compilers are also known to have codegen > issues which can lead to silent miscompilation: > >

Re: [PATCH v8 3/3] PM / AVS: SVS: Introduce SVS engine

2020-05-26 Thread Matthias Brugger
On 26/05/2020 11:12, Roger Lu wrote: > Hi Matthias, > > Thanks for the feedback. > > On Fri, 2020-05-22 at 17:38 +0200, Matthias Brugger wrote: >> >> On 22/05/2020 11:40, Roger Lu wrote: >>> >>> Hi Enric, >>> >>> On Tue, 2020-05-19 at 17:30 +0200, Enric Balletbo Serra wrote: Hi Roger,

Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel

2020-05-26 Thread Arvind Sankar
On Tue, May 26, 2020 at 05:07:24PM +0200, Sedat Dilek wrote: > > > > > > > Maybe this should be: > > > > [ arch/x86/boot/compressed/Makefile ] > > > > -KBUILD_CFLAGS += -include hidden.h > > +KBUILD_CFLAGS += -include ./hidden.h > > > > NOPE. > > This works: > > [

Re: [PATCH v5] arch/x86: Update config and kernel doc for MPK feature on AMD

2020-05-26 Thread Dave Hansen
On 5/23/20 5:21 AM, Borislav Petkov wrote: >> +config X86_MEMORY_PROTECTION_KEYS >> +# Set the "INTEL_"-free option whenever the "INTEL_" one is set. >> +# The "INTEL_" one should be removed and replaced by this option >> +# after 5.10. This avoids exposing most 'oldconfig' users to

Re: [patch V9 02/39] rcu: Abstract out rcu_irq_enter_check_tick() from rcu_nmi_enter()

2020-05-26 Thread Paul E. McKenney
On Tue, May 26, 2020 at 10:14:56AM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > > + if (!tick_nohz_full_cpu(rdp->cpu) || > > > + !READ_ONCE(rdp->rcu_urgent_qs) || > > > + READ_ONCE(rdp->rcu_forced_tick)) { > > > + // RCU doesn't need nohz_full help from this

Re: [PATCH v2] bluetooth: hci_qca: Fix qca6390 enable failure after warm reboot

2020-05-26 Thread Matthias Kaehlcke
On Tue, May 26, 2020 at 10:57:30AM +0800, Zijun Hu wrote: > Warm reboot can not restore qca6390 controller baudrate > to default due to lack of controllable BT_EN pin or power > supply, so fails to download firmware after warm reboot. > > Fixed by sending EDL_SOC_RESET VSC to reset controller >

Re: [PATCH] ASoC: Intel: sst: Fix runtime PM imbalance in sst_power_control

2020-05-26 Thread Pierre-Louis Bossart
On 5/25/20 2:06 AM, Dinghao Liu wrote: When sst_load_fw() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu --- sound/soc/intel/atom/sst/sst_drv_interface.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH] perf tools: Fix debuginfo search for Ubuntu

2020-05-26 Thread Adrian Hunter
On 26/05/20 6:29 pm, Adrian Hunter wrote: > Reportedly, from 19.10 Ubuntu has begun mixing up the location of some > debug symbol files, putting files expected to be in > /usr/lib/debug/usr/lib into /usr/lib/debug/lib instead. Fix by adding > another dso_binary_type. > > Example on Ubuntu 20.04 >

Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel

2020-05-26 Thread Arvind Sankar
On Tue, May 26, 2020 at 04:50:38PM +0200, Sedat Dilek wrote: > On Tue, May 26, 2020 at 4:47 PM Arvind Sankar wrote: > > > > On Tue, May 26, 2020 at 02:44:29PM +0200, Sedat Dilek wrote: > > > > > > Are those diffs correct when using "x86/boot: Correct relocation > > > destination on old linkers"?

[PATCH] sched/fair: don't NUMA balance for kthreads

2020-05-26 Thread Jens Axboe
Stefano reported a crash with using SQPOLL with io_uring: BUG: kernel NULL pointer dereference, address: 03b0 #PF: supervisor read access in kernel mode #PF: error_code(0x) - not-present page PGD 80046c042067 P4D 80046c042067 PUD 461fcf067 PMD 0 Oops: [#1] SMP PTI

Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel

2020-05-26 Thread Sedat Dilek
On Tue, May 26, 2020 at 5:36 PM Arvind Sankar wrote: > > On Tue, May 26, 2020 at 04:50:38PM +0200, Sedat Dilek wrote: > > On Tue, May 26, 2020 at 4:47 PM Arvind Sankar wrote: > > > > > > On Tue, May 26, 2020 at 02:44:29PM +0200, Sedat Dilek wrote: > > > > > > > > Are those diffs correct when

Re: [PATCH 1/1] phy: intel: Fix compilation error on FIELD_PREP usage

2020-05-26 Thread Randy Dunlap
On 5/26/20 1:43 AM, Dilip Kota wrote: > FIELD_PREP expects mask variable datatype as unsigned long and constant. > Make the mask argument in combo_phy_w32_off_mask () as unsigned long const > datatype. > > Error reported as: > In file included from include/linux/build_bug.h:5, > from

Re: [PATCH] compiler/gcc: Raise minimum GCC version for kernel builds to 4.8

2020-05-26 Thread Nick Desaulniers
On Tue, May 26, 2020 at 8:30 AM Guenter Roeck wrote: > > On Mon, May 11, 2020 at 09:41:37PM +0100, Will Deacon wrote: > > It is very rare to see versions of GCC prior to 4.8 being used to build > > the mainline kernel. These old compilers are also known to have codegen > > issues which can lead

[PATCH v3 7/7] watchdog: dw_wdt: Add DebugFS files

2020-05-26 Thread Serge Semin
For the sake of the easier device-driver debug procedure, we added a DebugFS file with the controller registers state. It's available only if kernel is configured with DebugFS support. Signed-off-by: Serge Semin Cc: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Arnd Bergmann Cc: Rob Herring Cc:

[PATCH v3 6/7] watchdog: dw_wdt: Add pre-timeouts support

2020-05-26 Thread Serge Semin
DW Watchdog can rise an interrupt in case if IRQ request mode is enabled and timer reaches the zero value. In this case the IRQ lane is left pending until either the next watchdog kick event (watchdog restart) or until the WDT_EOI register is read or the device/system reset. This interface can be

[PATCH v3 5/7] watchdog: dw_wdt: Support devices with asynch clocks

2020-05-26 Thread Serge Semin
DW Watchdog IP core can be synthesised with asynchronous timer/APB clocks support (WDT_ASYNC_CLK_MODE_ENABLE == 1). In this case separate clock signals are supposed to be used to feed watchdog timer and APB interface of the device. Currently the driver supports the synchronous mode only. Since

[PATCH v3 3/7] dt-bindings: watchdog: dw-wdt: Add watchdog TOPs array property

2020-05-26 Thread Serge Semin
In case if DW Watchdog IP core is built with WDT_USE_FIX_TOP == false, a custom timeout periods are used to preset the timer counter. In this case that periods should be specified in a new "snps,watchdog-tops" property of the DW watchdog dts node. Signed-off-by: Serge Semin Reviewed-by: Rob

[PATCH v3 1/7] dt-bindings: watchdog: Convert DW WDT binding to DT schema

2020-05-26 Thread Serge Semin
Modern device tree bindings are supposed to be created as YAML-files in accordance with dt-schema. This commit replaces the DW Watchdog legacy bare text bindings with YAML file. As before the binding states that the corresponding dts node is supposed to have a registers range, a watchdog timer

Re: [PATCH] power: reset: vexpress: fix build issue

2020-05-26 Thread Rob Herring
" On Mon, May 25, 2020 at 11:38 PM Nathan Chancellor wrote: > > On Mon, May 25, 2020 at 07:37:45PM -0400, Valdis Klētnieks wrote: > > On Sun, 24 May 2020 15:20:25 -0700, Nathan Chancellor said: > > > > > arm-linux-gnueabi-ld: drivers/power/reset/vexpress-poweroff.o: in > > > function

[PATCH v3 4/7] watchdog: dw_wdt: Support devices with non-fixed TOP values

2020-05-26 Thread Serge Semin
In case if the DW Watchdog IP core is synthesised with WDT_USE_FIX_TOP == false, the TOP interval indexes make the device to load a custom periods to the counter. These periods are hardwired at the IP synthesis stage and can be within [2^8, 2^(WDT_CNT_WIDTH - 1)]. Alas their values can't be

[PATCH v3 0/7] watchdog: dw_wdt: Take Baikal-T1 DW WDT peculiarities into account

2020-05-26 Thread Serge Semin
Merge window is upon us. Please review/merge in/whatever the rest of the patches. There were a few features enabled at the time of the Baikal-T1 SoC DW WDT IP synthesis, which weren't taken into account in the DW WDT driver available in the kernel. First of all the SoC engineers synthesized the

Re: [PATCH v1] clk: mediatek: assign the initial value to clk_init_data of mtk_mux

2020-05-26 Thread Matthias Brugger
Hi Weiyi, On 26/05/2020 04:43, Weiyi Lu wrote: > On Mon, 2020-05-25 at 11:08 +0200, Matthias Brugger wrote: >> >> On 25/05/2020 08:41, Weiyi Lu wrote: >>> It'd be dangerous when struct clk_core have new memebers. >>> Add the missing initial value to clk_init_data. >>> >> >> Sorry I don't really

[PATCH v3 2/7] dt-bindings: watchdog: dw-wdt: Support devices with asynch clocks

2020-05-26 Thread Serge Semin
DW Watchdog IP core can be synthesised with asynchronous timer/APB clocks support (WDT_ASYNC_CLK_MODE_ENABLE == 1). In this case separate clock signals are supposed to be used to feed watchdog timer and APB interface of the device. Let's update the DW Watchdog DT node schema so it would support

[PATCH 1/2] mmc: core: Do not export MMC_NAME= and MODALIAS=mmc:block for SDIO cards

2020-05-26 Thread Pali Rohár
SDIO non-combo cards are not handled by mmc_block driver and do not have accessible CID register which is used for MMC_NAME= construction. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- drivers/mmc/core/bus.c | 23 ++- 1 file changed, 14 insertions(+), 9

[PATCH 2/2] mmc: core: Export device/vendor ids from Common CIS for SDIO cards

2020-05-26 Thread Pali Rohár
Device/vendor ids from Common CIS (Card Information Structure) may be different as device/vendor ids from CIS on particular SDIO function. Export these "main" device/vendor ids for SDIO and SD combo cards at top level mmc device in sysfs so userspace can do better identification of connected SDIO

Re: [PATCH v3 7/7] [not for merge] netstats: example use of stats_fs API

2020-05-26 Thread Emanuele Giuseppe Esposito
Hi Andrew How do you atomically get and display a group of statistics? If you look at how the netlink socket works, you will see code like: do { start = u64_stats_fetch_begin_irq(_stats->syncp); rx_packets =

Re: [PATCH v3 18/19] kselftests: cgroup: add kernel memory accounting tests

2020-05-26 Thread Roman Gushchin
On Tue, May 26, 2020 at 05:24:46PM +0200, Vlastimil Babka wrote: > On 4/22/20 10:47 PM, Roman Gushchin wrote: > > Add some tests to cover the kernel memory accounting functionality. > > These are covering some issues (and changes) we had recently. > > > > 1) A test which allocates a lot of

Re: [PATCH mmotm] mm/swap: fix livelock in __read_swap_cache_async()

2020-05-26 Thread Johannes Weiner
On Thu, May 21, 2020 at 10:56:20PM -0700, Hugh Dickins wrote: > I've only seen this livelock on one machine (repeatably, but not to > order), and not fully analyzed it - two processes seen looping around > getting -EEXIST from swapcache_prepare(), I guess a third (at lower > priority? but wanting

Re: linux-next: Tree for May 26 (drivers/crypto/chelsio/chcr_ktls.c)

2020-05-26 Thread Randy Dunlap
On 5/26/20 3:39 AM, Stephen Rothwell wrote: > Hi all, > > News: there will be no linux-next release tomorrow. > > Changes since 20200525: > on i386: when CONFIG_IPV6 is not set/enabled: CC drivers/crypto/chelsio/chcr_ktls.o In file included from ../include/linux/tcp.h:19:0,

Re: [PATCH v3] iio: stm32-adc: remove usage of iio_priv_to_dev() helper

2020-05-26 Thread Fabrice Gasnier
On 5/26/20 3:44 PM, Alexandru Ardelean wrote: > We may want to get rid of the iio_priv_to_dev() helper. The reason is that > we will hide some of the members of the iio_dev structure (to prevent > drivers from accessing them directly), and that will also mean hiding the > implementation of the

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Andi Kleen
On Tue, May 26, 2020 at 08:56:18AM +0200, Greg KH wrote: > On Mon, May 25, 2020 at 10:28:48PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > Since there seem to be kernel modules floating around that set > > FSGSBASE incorrectly, prevent this in the CR4 pinning. Currently > > CR4 pinning

[PATCH v2] Staging: comedi: dt2814: remove unused assignments

2020-05-26 Thread gaurav
Silence following compiler warning: drivers/staging/comedi/drivers/dt2814.c: In function ‘dt2814_interrupt’: drivers/staging/comedi/drivers/dt2814.c:193:6: warning: variable ‘data’ set but not used [-Wunused-but-set-variable] int data; ^~~~ drivers/staging/comedi/drivers/dt2814.c: In

Re: [PATCH v2] drm/msm/a6xx: skip HFI set freq if GMU is powered down

2020-05-26 Thread Jordan Crouse
On Fri, May 22, 2020 at 06:29:08PM -0400, Jonathan Marek wrote: > Also skip the newly added HFI set freq path if the GMU is powered down, > which was missing because of patches crossing paths. I saw the 5.8 pull later in my inbox so I'm not sure if this made it or not but it qualifies as a -fix

[PATCH 0/2] mmc: mmci_sdmmc: fix dma api warnings

2020-05-26 Thread Ludovic Barre
This patch series fixes warnings see with DMA_API_DEBUG_SG=y Ludovic Barre (2): mmc: mmci_sdmmc: fix DMA API warning overlapping mappings mmc: mmci_sdmmc: fix DMA API warning max segment size drivers/mmc/host/mmci_stm32_sdmmc.c | 14 -- 1 file changed, 8 insertions(+), 6

[PATCH 2/2] mmc: mmci_sdmmc: fix DMA API warning max segment size

2020-05-26 Thread Ludovic Barre
Turning on CONFIG_DMA_API_DEBUG_SG results in the following warning: WARNING: CPU: 1 PID: 85 at kernel/dma/debug.c:1302 debug_dma_map_sg+0x2a0/0x3cc mmci-pl18x 58005000.sdmmc: DMA-API: mapping sg segment longer than device claims to support [len=126976] [max=65536] dma api debug checks and

[PATCH 1/2] mmc: mmci_sdmmc: fix DMA API warning overlapping mappings

2020-05-26 Thread Ludovic Barre
Turning on CONFIG_DMA_API_DEBUG_SG results in the following warning: WARNING: CPU: 1 PID: 20 at kernel/dma/debug.c:500 add_dma_entry+0x16c/0x17c DMA-API: exceeded 7 overlapping mappings of cacheline 0x031d2645 Modules linked in: CPU: 1 PID: 20 Comm: kworker/1:1 Not tainted

[PATCH V2] perf tools: Fix debuginfo search for Ubuntu

2020-05-26 Thread Adrian Hunter
Reportedly, from 19.10 Ubuntu has begun mixing up the location of some debug symbol files, putting files expected to be in /usr/lib/debug/usr/lib into /usr/lib/debug/lib instead. Fix by adding another dso_binary_type. Example on Ubuntu 20.04 Before: $ perf record -e intel_pt//u uname

RE: [RFC/RFT][PATCH] cpufreq: intel_pstate: Work in passive mode with HWP enabled

2020-05-26 Thread Doug Smythies
On 2020.05.26 01:19 Rafael J. Wysocki wrote: > to On Mon, May 25, 2020 at 10:57 PM Francisco Jerez > > "Rafael J. Wysocki" writes: > > > On Mon, May 25, 2020 at 3:39 AM Francisco Jerez > > > > Why not HWP_MIN_PERF? That would leave the HWP quite some room for > > maneuvering (the whole

Re: [PATCH v3 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-05-26 Thread Jason Gunthorpe
On Tue, May 26, 2020 at 08:32:18AM -0600, Alex Williamson wrote: > > > Certainly there is no reason to optimize the fringe case of vfio > > > sleeping if there is and incorrect concurrnent attempt to disable the > > > a BAR. > > > > If fixup_user_fault() (which is always with ALLOW_RETRY &&

Re: [PATCH v2] perf ordered_events: Optimise event object reuse

2020-05-26 Thread Arnaldo Carvalho de Melo
Adding a few more folks that worked on the ordering of events over the years. Some minor nits at the end of the message. Thanks! - Arnaldo Em Tue, May 26, 2020 at 02:59:28PM +0100, Matt Fleming escreveu: > ordered_event objects can be placed on the free event list in any order > which means

Re: [PATCH v3 03/16] mfd: mfd-core: match device tree node against reg property

2020-05-26 Thread Michael Walle
Am 2020-05-26 09:24, schrieb Lee Jones: On Mon, 25 May 2020, Michael Walle wrote: Am 2020-05-15 12:28, schrieb Lee Jones: > On Thu, 30 Apr 2020, Michael Walle wrote: > > > Hi Lee, > > > > Am 2020-04-23 19:45, schrieb Michael Walle: > > > There might be multiple children with the device tree

Re: [PATCH 09/14] mm: deactivations shouldn't bias the LRU balance

2020-05-26 Thread Johannes Weiner
On Fri, May 22, 2020 at 09:33:35AM -0400, Qian Cai wrote: > On Wed, May 20, 2020 at 07:25:20PM -0400, Johannes Weiner wrote: > > Operations like MADV_FREE, FADV_DONTNEED etc. currently move any > > affected active pages to the inactive list to accelerate their reclaim > > (good) but also steer

Re: [PATCH v3] Makefile: support compressed debug info

2020-05-26 Thread Nick Desaulniers
On Tue, May 26, 2020 at 3:28 AM Masahiro Yamada wrote: > > > Suggested-by: David Blaikie > > Suggested-by: Nick Clifton > > Suggested-by: Sedat Dilek > > Reviewed-by: Fangrui Song > > Tested-by: Sedat Dilek > > Signed-off-by: Nick Desaulniers > > > > Suggested-by seems strange to me, but >

[tip:WIP.x86/entry 13/39] include/trace/events/syscalls.h:18:1: note: in expansion of macro 'TRACE_EVENT_FN'

2020-05-26 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/entry head: e122258fa9a6538fb47d18e6da58f7a02de9b1d3 commit: 7fe6027ef3c397e42702eb8d4fcfa93cf4b2597f [13/39] x86/entry: Switch XEN/PV hypercall entry to IDTENTRY config: x86_64-rhel (attached as .config) compiler:

Re: [PATCH v2] Makefile: support compressed debug info

2020-05-26 Thread Nick Desaulniers
On Sun, May 24, 2020 at 12:48 AM Sedat Dilek wrote: > > *** The opposite is the case. *** > > Here, I am on a Samsung SandyBridge CPU/GPU aka 2nd generation > ultrabook series runing Debian/testing AMD64. > > A slightly modified Debian-kernel linux-config takes me approx. 5 (in > words five)

[PATCH v1] PCI: controller: convert to devm_platform_ioremap_resource()

2020-05-26 Thread Dejin Zheng
use devm_platform_ioremap_resource() to simplify code, it contains platform_get_resource() and devm_ioremap_resource(). Signed-off-by: Dejin Zheng --- drivers/pci/controller/dwc/pci-exynos.c | 4 +--- drivers/pci/controller/pci-aardvark.c | 5 ++--- drivers/pci/controller/pci-ftpci100.c | 4

Re: [PATCH] mm,thp: stop leaking unreleased file pages

2020-05-26 Thread Johannes Weiner
On Sat, May 23, 2020 at 06:50:15PM -0700, Hugh Dickins wrote: > When collapse_file() calls try_to_release_page(), it has already > isolated the page: so if releasing buffers happens to fail (as it > sometimes does), remember to putback_lru_page(): otherwise that page is > left unreclaimable and

Re: [PATCH v3 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-05-26 Thread Alex Williamson
On Tue, 26 May 2020 12:53:31 -0300 Jason Gunthorpe wrote: > On Tue, May 26, 2020 at 08:32:18AM -0600, Alex Williamson wrote: > > > > Certainly there is no reason to optimize the fringe case of vfio > > > > sleeping if there is and incorrect concurrnent attempt to disable the > > > > a BAR. >

[PATCH v4 0/3] serial: 8250_dw: Fix ref clock usage

2020-05-26 Thread Serge Semin
Greg, Jiri, the merge window is upon us, please review/merge in/whatever the rest of the patches. It might be dangerous if an UART port reference clock rate is suddenly changed. In particular the 8250 port drivers (and AFAICS most of the tty drivers using common clock framework clocks) rely

[PATCH v4 3/3] serial: 8250_dw: Fix common clocks usage race condition

2020-05-26 Thread Serge Semin
The race condition may happen if the UART reference clock is shared with some other device (on Baikal-T1 SoC it's another DW UART port). In this case if that device changes the clock rate while serial console is using it the DW 8250 UART port might not only end up with an invalid uartclk value

Re: [PATCH v3 03/16] mfd: mfd-core: match device tree node against reg property

2020-05-26 Thread Andy Shevchenko
On Tue, May 26, 2020 at 05:54:38PM +0200, Michael Walle wrote: > Am 2020-05-26 09:24, schrieb Lee Jones: ... > Like I said, in the long term I would like to have support for > different versions of the board management controller > without having to change the device tree and have device tree

[PATCH v4 1/3] serial: 8250: Add 8250 port clock update method

2020-05-26 Thread Serge Semin
Some platforms can be designed in a way so the UART port reference clock might be asynchronously changed at some point. In Baikal-T1 SoC this may happen due to the reference clock being shared between two UART ports, on the Allwinner SoC the reference clock is derived from the CPU clock, so any

Re: [PATCH] compiler/gcc: Raise minimum GCC version for kernel builds to 4.8

2020-05-26 Thread Guenter Roeck
Hi Nick, On 5/26/20 8:40 AM, Nick Desaulniers wrote: > On Tue, May 26, 2020 at 8:30 AM Guenter Roeck wrote: >> >> On Mon, May 11, 2020 at 09:41:37PM +0100, Will Deacon wrote: >>> It is very rare to see versions of GCC prior to 4.8 being used to build >>> the mainline kernel. These old compilers

[PATCH v4 2/3] serial: 8250_dw: Simplify the ref clock rate setting procedure

2020-05-26 Thread Serge Semin
Really instead of twice checking the clk_round_rate() return value we could do it once, and if it isn't error the clock rate can be changed. By doing so we decrease a number of ret-value tests and remove a weird goto-based construction implemented in the dw8250_set_termios() method.

Re: [PATCH] serial: 8250: Enable 16550A variants by default on non-x86

2020-05-26 Thread Josh Triplett
On Tue, May 26, 2020 at 11:47:44AM +0200, Greg Kroah-Hartman wrote: > On Tue, May 26, 2020 at 01:40:06AM -0700, Josh Triplett wrote: > > Some embedded devices still use these serial ports; make sure they're > > still enabled by default on architectures more likely to have them, to > > avoid

Re: [PATCH v3 07/10] media: i2c: imx290: Add RAW12 mode support

2020-05-26 Thread Dave Stevenson
Hi Andrey Thanks for the patch. On Sun, 24 May 2020 at 20:26, Andrey Konovalov wrote: > > From: Manivannan Sadhasivam > > IMX290 is capable of outputting frames in both Raw Bayer (packed) 10 and > 12 bit formats. Since the driver already supports RAW10 mode, let's add > the missing RAW12 mode

Re: [PATCH v1] Bluetooth: hci_qca: Improve controller ID info log level

2020-05-26 Thread Matthias Kaehlcke
On Tue, May 26, 2020 at 11:35:08AM +0800, Zijun Hu wrote: > Controller ID info got by VSC EDL_PATCH_GETVER is very > important, so improve its log level from DEBUG to INFO. > > Signed-off-by: Zijun Hu > --- > drivers/bluetooth/btqca.c | 8 > 1 file changed, 4 insertions(+), 4

Re: [PATCH 1/1] Documentation: security: core.rst: add missing argument

2020-05-26 Thread David Howells
Jonathan Corbet wrote: > Applied, thanks. Ah - I've applied it to my keys-next branch. David

Re: [PATCH] compiler/gcc: Raise minimum GCC version for kernel builds to 4.8

2020-05-26 Thread Nick Desaulniers
On Tue, May 26, 2020 at 9:03 AM Guenter Roeck wrote: > > Hi Nick, > > On 5/26/20 8:40 AM, Nick Desaulniers wrote: > > On Tue, May 26, 2020 at 8:30 AM Guenter Roeck wrote: > >> > >> On Mon, May 11, 2020 at 09:41:37PM +0100, Will Deacon wrote: > >>> It is very rare to see versions of GCC prior to

Re: [PATCH v3 3/6] dt-bindings: memory: Add Baikal-T1 L2-cache Control Block binding

2020-05-26 Thread Rob Herring
On Tue, 26 May 2020 15:59:25 +0300, Serge Semin wrote: > There is a single register provided by the SoC system controller, > which can be used to tune the L2-cache RAM up. It only provides a way > to change the L2-RAM access latencies. So aside from "be,bt1-l2-ctl" > compatible string the device

RE: [PATCH] i2c: nvidia-gpu: Use PTR_ERR_OR_ZERO() to simplify code

2020-05-26 Thread Ajay Gupta
Hi Wolfram, > -Original Message- > From: linux-i2c-ow...@vger.kernel.org On > Behalf Of Wolfram Sang > Sent: Friday, May 22, 2020 8:17 AM > To: Aishwarya Ramakrishnan > Cc: Ajay Gupta ; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH] i2c: nvidia-gpu:

Re: [rcu:dev.2020.05.25a 51/63] kernel/rcu/refperf.c:298:6: warning: no previous prototype for function 'reset_readers'

2020-05-26 Thread Paul E. McKenney
On Tue, May 26, 2020 at 08:07:35PM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > dev.2020.05.25a > head: 1e9451642683146552713c5ce6d269ae378eacd5 > commit: 786a25497743696d79592b864cafbfe48787e6e1 [51/63] refperf: Add a test >

Re: [PATCH v3 3/6] dt-bindings: memory: Add Baikal-T1 L2-cache Control Block binding

2020-05-26 Thread Serge Semin
On Tue, May 26, 2020 at 10:09:15AM -0600, Rob Herring wrote: > On Tue, 26 May 2020 15:59:25 +0300, Serge Semin wrote: > > There is a single register provided by the SoC system controller, > > which can be used to tune the L2-cache RAM up. It only provides a way > > to change the L2-RAM access

[PATCH v2] serial: 8250: Enable 16550A variants by default on non-x86

2020-05-26 Thread Josh Triplett
Some embedded devices still use these serial ports; make sure they're still enabled by default on architectures more likely to have them, to avoid rendering someone's console unavailable. Reported-by: Vladimir Oltean Reported-by: Maxim Kochetkov Fixes: dc56ecb81a0a ("serial: 8250: Support

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Kees Cook
On Tue, May 26, 2020 at 08:56:18AM +0200, Greg KH wrote: > What about those systems that panic-on-warn? This is (modulo the general discussion about whether it's the right way to check) the correct use for WARN*(). It's an undesirable system state; people choosing panic-on-warn want this:

Re: [PATCH] srcu: Avoid local_irq_save() before acquiring spinlock_t

2020-05-26 Thread Paul E. McKenney
On Tue, May 26, 2020 at 03:41:34PM +0200, Sebastian Andrzej Siewior wrote: > SRCU disables interrupts to get a stable per-CPU pointer and then > acquires the spinlock which is in the per-CPU data structure. The > release uses spin_unlock_irqrestore(). While this is correct on a non-RT > kernel,

Re: [PATCH V2] perf tools: Fix debuginfo search for Ubuntu

2020-05-26 Thread Arnaldo Carvalho de Melo
Em Tue, May 26, 2020 at 06:52:07PM +0300, Adrian Hunter escreveu: > Reportedly, from 19.10 Ubuntu has begun mixing up the location of some > debug symbol files, putting files expected to be in > /usr/lib/debug/usr/lib into /usr/lib/debug/lib instead. Fix by adding > another dso_binary_type. > >

Re: [PATCH] MIPS: BCM63xx: fix 6328 boot selection bit

2020-05-26 Thread Florian Fainelli
On 5/26/2020 4:03 AM, Álvaro Fernández Rojas wrote: > MISC_STRAP_BUS_BOOT_SEL_SHIFT is 18 according to Broadcom's GPL source code. > > Signed-off-by: Álvaro Fernández Rojas This is correct: Acked-by: Florian Fainelli Fixes: e5766aea5b9b ("MIPS: BCM63XX: Add basic BCM6328 support") > ---

Re: x86/entry vs kgdb

2020-05-26 Thread Daniel Thompson
On Mon, May 25, 2020 at 11:18:32AM +0200, Peter Zijlstra wrote: > On Mon, May 25, 2020 at 10:36:05AM +0200, Peter Zijlstra wrote: > > Hi! > > > > Since you seem to care about kgdb, I figured you might want to fix this > > before I mark it broken on x86 (we've been considering doing that for a > >

Re: [PATCH v3] Makefile: support compressed debug info

2020-05-26 Thread Masahiro Yamada
On Wed, May 27, 2020 at 12:53 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Tue, May 26, 2020 at 3:28 AM Masahiro Yamada wrote: > > > > > Suggested-by: David Blaikie > > > Suggested-by: Nick Clifton > > > Suggested-by: Sedat Dilek > > > Reviewed-by: Fangrui Song > > > Tested-by:

Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel

2020-05-26 Thread Sedat Dilek
On Tue, May 26, 2020 at 5:07 PM Sedat Dilek wrote: ... > > > patchset to previous build: > > > > > > $ git log --no-merges --oneline > > > 5.7.0-rc7-1-amd64-clang..5.7.0-rc7-2-amd64-clang > > > 8b74901cb9e5 > > >

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