Re: [PATCH 2/2] speakup: only build serialio when ISA is enabled

2020-08-04 Thread Samuel Thibault
Greg KH, le mar. 04 août 2020 13:34:13 +0200, a ecrit: > On Tue, Aug 04, 2020 at 01:13:32PM +0200, Samuel Thibault wrote: > > Drivers using serialio are already made available in Kconfig only under > > the ISA condition. > > > > This solves warnings in inb/outb macros on platform that do not have

hwmon: (sis5595) potential null pointer dereference in probe

2020-08-04 Thread Evgeny Novikov
sis5595_pci_probe() registers platform driver callbacks and just then initializes global pointer variable s_bridge. sis5595_probe() may dereference it before this happens that can result in null pointer dereference. We can not swap registration of platform driver callbacks with initialization of s

[PATCH v9 4/5] powerpc/vdso: Switch VDSO to generic C implementation.

2020-08-04 Thread Christophe Leroy
For VDSO32 on PPC64, we create a fake 32 bits config, on the same principle as MIPS architecture, in order to get the correct parts of the different asm header files. With the C VDSO, the performance is slightly lower, but it is worth it as it will ease maintenance and evolution, and also brings c

Re: [PATCH] Remove attempt by intel-spi-pci to turn the SPI flash chip writeable

2020-08-04 Thread Mika Westerberg
Hi, On Mon, Aug 03, 2020 at 10:44:49AM -0300, Daniel Gutson wrote: > Currently, the intel-spi-pci driver tries to unconditionally set > the SPI chip writeable. After discussing in the LKML, the original > author decided that it was better to remove the attempt. > > Context, the intel-spi has a m

Re: [PATCH V3 vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices

2020-08-04 Thread Eli Cohen
On Tue, Jul 28, 2020 at 04:43:00PM +0300, kernel test robot wrote: > Hi Eli, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on next-20200727] > > url: > https://github.com/0day-ci/linux/commits/Eli-Cohen/VDPA-support-for-Mellanox-ConnectX-devices/20200728-1

[PATCH v2 2/5] PCI: aardvark: Check for errors from pci_bridge_emul_init() call

2020-08-04 Thread Pali Rohár
Function pci_bridge_emul_init() may fail so correctly check for errors. Fixes: 8a3ebd8de328 ("PCI: aardvark: Implement emulated root PCI bridge config space") Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- drivers/pci/controller/pci-aardvark.c | 11 +++ 1 file changed, 7 insert

Re: [PATCH 2/2] speakup: only build serialio when ISA is enabled

2020-08-04 Thread Greg KH
On Tue, Aug 04, 2020 at 01:49:51PM +0200, Samuel Thibault wrote: > Greg KH, le mar. 04 août 2020 13:34:13 +0200, a ecrit: > > On Tue, Aug 04, 2020 at 01:13:32PM +0200, Samuel Thibault wrote: > > > Drivers using serialio are already made available in Kconfig only under > > > the ISA condition. > > >

[PATCH v2 5/5] PCI: aardvark: Move PCIe reset card code to advk_pcie_train_link()

2020-08-04 Thread Pali Rohár
Move code which belongs to link training (delays and resets) into advk_pcie_train_link() function, so everything related to link training, including timings is at one place. After experiments it can be observed that link training in aardvark hardware is very sensitive to timings and delays, so it

[PATCH v2 0/5] PCIe aardvark controller improvements

2020-08-04 Thread Pali Rohár
Hi, we have some more improvements for PCIe aardvark controller (Armada 3720 SOC - EspressoBIN and Turris MOX). The main improvement is that with these patches the driver can be compiled as a module, and can be reloaded at runtime. This series applies on top of Linus' master branch. Marek & Pal

[PATCH v2 4/5] PCI: aardvark: Implement driver 'remove' function and allow to build it as module

2020-08-04 Thread Pali Rohár
Providing driver's 'remove' function allows kernel to bind and unbind devices from aardvark driver. It also allows to build aardvark driver as a module. Compiling aardvark as a module simplifies development and debugging of this driver as it can be reloaded at runtime without the need to reboot to

[PATCH v2 3/5] PCI: pci-bridge-emul: Export API functions

2020-08-04 Thread Pali Rohár
It allows kernel modules which are not compiled into kernel image to use pci-bridge-emul API functions. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- drivers/pci/pci-bridge-emul.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/pci-bridge-emul.c b/drivers/pci/pci-br

[PATCH v2 1/5] PCI: aardvark: Fix compilation on s390

2020-08-04 Thread Pali Rohár
Include linux/gpio/consumer.h instead of linux/gpio.h, as is said in the latter file. This was reported by kernel test bot when compiling for s390. drivers/pci/controller/pci-aardvark.c:350:2: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror,-Wimplicit-function-decla

Re: [PATCH v1 2/2] perf/core: Fake regs for leaked kernel samples

2020-08-04 Thread peterz
On Fri, Jul 31, 2020 at 10:56:17AM +0800, Jin Yao wrote: > @@ -6973,7 +6973,8 @@ static struct perf_callchain_entry __empty_callchain = > { .nr = 0, }; > struct perf_callchain_entry * > perf_callchain(struct perf_event *event, struct pt_regs *regs) > { > - bool kernel = !event->attr.exclude

Re: [PATCH 2/2] speakup: only build serialio when ISA is enabled

2020-08-04 Thread Greg KH
On Tue, Aug 04, 2020 at 01:49:51PM +0200, Samuel Thibault wrote: > Greg KH, le mar. 04 août 2020 13:34:13 +0200, a ecrit: > > On Tue, Aug 04, 2020 at 01:13:32PM +0200, Samuel Thibault wrote: > > > Drivers using serialio are already made available in Kconfig only under > > > the ISA condition. > > >

Re: [PATCH 0/8] namespaces: Introduce generic refcount

2020-08-04 Thread Christian Brauner
On Mon, Aug 03, 2020 at 01:16:10PM +0300, Kirill Tkhai wrote: > Every namespace type has its own counter. Some of them are > of refcount_t, some of them are of kref. > > This patchset introduces generic ns_common::count for any > type of namespaces instead of them. > > --- I was wondering why th

Re: [PATCH 4/9] drm/msm/dsi: Add phy configuration for SDM630/636/660

2020-08-04 Thread Vinod Koul
On 03-08-20, 09:06, Rob Clark wrote: > On Mon, Aug 3, 2020 at 4:00 AM Vinod Koul wrote: > > > > On 26-07-20, 13:12, Konrad Dybcio wrote: > > > These SoCs make use of the 14nm phy, but at different > > > addresses than other 14nm units. > > > > > > Signed-off-by: Konrad Dybcio > > > --- > > > ...

Re: [PATCH 1/2] sched/topology: Allow archs to override cpu_smt_mask

2020-08-04 Thread Srikar Dronamraju
* pet...@infradead.org [2020-08-04 12:45:20]: > On Tue, Aug 04, 2020 at 09:03:06AM +0530, Srikar Dronamraju wrote: > > cpu_smt_mask tracks topology_sibling_cpumask. This would be good for > > most architectures. One of the users of cpu_smt_mask(), would be to > > identify idle-cores. On Power9, a

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-08-04 Thread Pavel Tikhomirov
On 8/4/20 8:43 AM, Andrei Vagin wrote: On Thu, Jul 30, 2020 at 06:01:20PM +0300, Kirill Tkhai wrote: On 30.07.2020 17:34, Eric W. Biederman wrote: Kirill Tkhai writes: Currently, there is no a way to list or iterate all or subset of namespaces in the system. Some namespaces are exposed in

Re: [PATCH V3 vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices

2020-08-04 Thread Michael S. Tsirkin
On Tue, Aug 04, 2020 at 02:54:19PM +0300, Eli Cohen wrote: > On Tue, Jul 28, 2020 at 04:43:00PM +0300, kernel test robot wrote: > > Hi Eli, > > > > Thank you for the patch! Yet something to improve: > > > > [auto build test ERROR on next-20200727] > > > > url: > > https://github.com/0day-ci/

Re: [PATCH v3 1/3] mm/gup: restrict CMA region by using allocation scope API

2020-08-04 Thread Vlastimil Babka
On 7/31/20 9:35 AM, js1...@gmail.com wrote: > From: Joonsoo Kim > > We have well defined scope API to exclude CMA region. > Use it rather than manipulating gfp_mask manually. With this change, > we can now restore __GFP_MOVABLE for gfp_mask like as usual migration > target allocation. It would re

Re: PATCH: rtsx_pci driver - don't disable the rts5229 card reader on Intel NUC boxes

2020-08-04 Thread Chris Clayton
On 04/08/2020 11:46, 吳昊澄 Ricky wrote: >> -Original Message- >> From: Chris Clayton [mailto:chris2...@googlemail.com] >> Sent: Tuesday, August 04, 2020 4:51 PM >> To: 吳昊澄 Ricky; gre...@linuxfoundation.org >> Cc: LKML; rdun...@infradead.org; philqua...@gmail.com; Arnd Bergmann >> Subject:

Re: [PATCH 1/8] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-08-04 Thread Eric W. Biederman
Kirill Tkhai writes: > Currently, every type of namespaces has its own counter, > which is stored in ns-specific part. Say, @net has > struct net::count, @pid has struct pid_namespace::kref, etc. > > This patchset introduces unified counter for all types > of namespaces, and converts net namespac

Re: [REGRESSION] omapdrm/N900 display broken

2020-08-04 Thread Tomi Valkeinen
On 28/07/2020 21:14, Aaro Koskinen wrote: > Hi, > > Looks like N900 display support has broken after v5.6. > > When using v5.7, or the current mainline (v5.8-rc7), the boot hangs at: > > [6.269500] omapdss_dss 4805.dss: 4805.dss supply vdda_video not > found, using dummy regulator >

[PATCH] ARM: at91: pm: remove unnecessary at91sam9x60_idle

2020-08-04 Thread Alexandre Belloni
cpu_do_idle() is already the default action for arm_pm_idle, there is no need to open code it. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 074bde6406

[PATCH] PCI: rcar-gen2: Fix crash in resource_list_first_type()

2020-08-04 Thread Geert Uytterhoeven
The conversion to modern host bridge probing made the driver allocate its private data using devm_pci_alloc_host_bridge(), but forgot to remove the old allocation. Hence part of the driver initialization is done using the new instance, while another part is done using the old instance, leading to

Re: [PATCH v2] perf evsel: Don't set sample_regs_intr/sample_regs_user for dummy event

2020-08-04 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 04, 2020 at 10:06:56AM +0300, Adrian Hunter escreveu: > On 29/07/20 10:23 am, Jin, Yao wrote: > > Hi Adrian, > > > > Could you help to check if following condition will break PT? > > > > "(opts->sample_intr_regs && !evsel->no_aux_samples && > > !evsel__is_dummy_event(evsel))" > > Sor

[PATCH] selftests/net: skip msg_zerocopy test if we have less than 4 CPUs

2020-08-04 Thread Colin King
From: Colin Ian King The current test will exit with a failure if it cannot set affinity on specific CPUs which is problematic when running this on single CPU systems. Add a check for the number of CPUs and skip the test if the CPU requirement is not met. Signed-off-by: Colin Ian King --- tool

Re: [PATCH 06/18] fsinfo: Add a uniquifier ID to struct mount [ver #21]

2020-08-04 Thread Ian Kent
On Tue, 2020-08-04 at 12:41 +0200, Miklos Szeredi wrote: > On Mon, Aug 03, 2020 at 02:37:16PM +0100, David Howells wrote: > > Add a uniquifier ID to struct mount that is effectively unique over > > the > > kernel lifetime to deal around mnt_id values being reused. This > > can then > > be exported

Re: [PATCH 0/8] namespaces: Introduce generic refcount

2020-08-04 Thread Christian Brauner
On Tue, Aug 04, 2020 at 07:11:59AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Mon, Aug 03, 2020 at 01:16:10PM +0300, Kirill Tkhai wrote: > >> Every namespace type has its own counter. Some of them are > >> of refcount_t, some of them are of kref. > >> > >> This patchset

Re: [PATCH for 5.9 v2 1/4] futex: introduce FUTEX_SWAP operation

2020-08-04 Thread peterz
On Mon, Aug 03, 2020 at 03:15:07PM -0700, Peter Oskolkov wrote: > A simplified/idealized use case: imagine a multi-user service application > (e.g. a DBMS) that has to implement the following user CPU quota > policy: So the last posting made hackernews; and there a bunch expressed far more interes

Re: [PATCH] memory: samsung: exynos5422-dmc: propagate error from exynos5_counters_get()

2020-08-04 Thread Marek Szyprowski
Hi Lukasz, On 04.08.2020 11:11, Lukasz Luba wrote: > Hi Marek, > > On 8/4/20 7:12 AM, Marek Szyprowski wrote: >> exynos5_counters_get() might fail with -EPROBE_DEFER if the driver for >> devfreq event counter is not yet probed. Propagate that error value to >> the caller to ensure that the exynos5

Re: [PATCH] perf: add psw_idle and psw_idle_exit to list of idle symbols

2020-08-04 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2020 at 01:02:06PM +0200, Sven Schnelle escreveu: > Sven Schnelle writes: > > > Add the s390 idle functions so they don't show up in top when > > using software sampling. > > > > Signed-off-by: Sven Schnelle > > --- > > tools/perf/util/symbol.c | 2 ++ > > 1 file changed, 2 inse

[(resend) PATCH v3: {linux-4.14.y} ] dm cache: submit writethrough writes in parallel to origin and cache

2020-08-04 Thread John Donnelly
From: Mike Snitzer Discontinue issuing writethrough write IO in series to the origin and then cache. Use bio_clone_fast() to create a new origin clone bio that will be mapped to the origin device and then bio_chain() it to the bio that gets remapped to the cache device. The origin clone bio doe

[PATCH v1] scsi: ufs: no need to send one Abort Task TM in case the task in DB was cleared

2020-08-04 Thread Bean Huo
From: Bean Huo If the bit corresponds to a task in the Doorbell register has been cleared, no need to poll the status of the task on the device side and to send an Abort Task TM. This patch also deletes dispensable dev_err() in case of the task already completed. Signed-off-by: Bean Huo --- dr

My Dear in the lord

2020-08-04 Thread Mrs. Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politician who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in the year February 2010, During his lifetime he deposite

Re: arch/mips/include/asm/mach-ip27/topology.h:19:7: error: implicit declaration of function 'hub_data'

2020-08-04 Thread Mike Rapoport
On Tue, Aug 04, 2020 at 07:34:39PM +0800, Jiaxun Yang wrote: > > 在 2020/8/4 上午7:58, Joshua Kinard 写道: > > On 8/3/2020 15:49, Mike Rapoport wrote: > > > Hi, > > > > > > On Tue, Aug 04, 2020 at 01:39:14AM +0800, kernel test robot wrote: > > > > Hi Mike, > > > > > > > > FYI, the error/warning still

Re: [PATCH] memory: samsung: exynos5422-dmc: propagate error from exynos5_counters_get()

2020-08-04 Thread Lukasz Luba
On 8/4/20 1:19 PM, Marek Szyprowski wrote: Hi Lukasz, On 04.08.2020 11:11, Lukasz Luba wrote: Hi Marek, On 8/4/20 7:12 AM, Marek Szyprowski wrote: exynos5_counters_get() might fail with -EPROBE_DEFER if the driver for devfreq event counter is not yet probed. Propagate that error value to t

[PATCH v2 0/5] kasan: support stack instrumentation for tag-based mode

2020-08-04 Thread Andrey Konovalov
This goes on top of Walter's patch titled "kasan: fix KASAN unit tests for tag-based KASAN" (already in mm tree). Bugzilla link: https://bugzilla.kernel.org/show_bug.cgi?id=203497 Thanks to Walter Wu for debugging and testing. Changes v1 -> v2: - Add efi patch to undefined reference to `efi_ente

[PATCH v2 2/5] efi: provide empty efi_enter_virtual_mode implementation

2020-08-04 Thread Andrey Konovalov
When CONFIG_EFI is not enabled, we might get an undefined reference to efi_enter_virtual_mode() error, if this efi_enabled() call isn't inlined into start_kernel(). This happens in particular, if start_kernel() is annodated with __no_sanitize_address. Reported-by: kernel test robot Signed-off-by:

[PATCH v2 1/5] kasan: don't tag stacks allocated with pagealloc

2020-08-04 Thread Andrey Konovalov
This patch prepares Software Tag-Based KASAN for stack tagging support. With Tag-Based KASAN when kernel stacks are allocated via pagealloc (which happens when CONFIG_VMAP_STACK is not enabled), they get tagged. KASAN instrumentation doesn't expect the sp register to be tagged, and this leads to f

[PATCH v2 5/5] kasan: adjust kasan_stack_oob for tag-based mode

2020-08-04 Thread Andrey Konovalov
Use OOB_TAG_OFF as access offset to land the access into the next granule. Suggested-by: Walter Wu Signed-off-by: Andrey Konovalov --- lib/test_kasan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_kasan.c b/lib/test_kasan.c index 7674616d0c37..5d3f496893ef 100644

[PATCH v2 3/5] kasan, arm64: don't instrument functions that enable kasan

2020-08-04 Thread Andrey Konovalov
This patch prepares Software Tag-Based KASAN for stack tagging support. With stack tagging enabled, KASAN tags stack variable in each function in its prologue. In start_kernel() stack variables get tagged before KASAN is enabled via setup_arch()->kasan_init(). As the result the tags for start_kern

[PATCH v2 4/5] kasan: allow enabling stack tagging for tag-based mode

2020-08-04 Thread Andrey Konovalov
Use CONFIG_KASAN_STACK to enable stack tagging. Note, that HWASAN short granules [1] are disabled. Supporting those will require more kernel changes. [1] https://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html Signed-off-by: Andrey Konovalov --- scripts/Makefile.kasan | 3 ++-

Re: [net v3] drivers/net/wan/lapbether: Use needed_headroom instead of hard_header_len

2020-08-04 Thread Martin Schiller
On 2020-08-02 21:50, Xie He wrote: In net/packet/af_packet.c, the function packet_snd first reserves a headroom of length (dev->hard_header_len + dev->needed_headroom). Then if the socket is a SOCK_DGRAM socket, it calls dev_hard_header, which calls dev->header_ops->create, to create the link lay

Re: [REGRESSION] omapdrm/N900 display broken

2020-08-04 Thread Tomi Valkeinen
On 04/08/2020 15:13, Tomi Valkeinen wrote: > On 28/07/2020 21:14, Aaro Koskinen wrote: >> Hi, >> >> Looks like N900 display support has broken after v5.6. >> >> When using v5.7, or the current mainline (v5.8-rc7), the boot hangs at: >> >> [6.269500] omapdss_dss 4805.dss: 4805.dss supply

[PATCH v1 3/3] kernel/configs: don't include PCI_QUIRKS in KVM guest configs

2020-08-04 Thread Alex Bennée
The VIRTIO_PCI support is an idealised PCI bus, we don't need a bunch of bloat for real world hardware for a VirtIO guest. Signed-off-by: Alex Bennée --- kernel/configs/kvm_guest.config | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/configs/kvm_guest.config b/kernel/configs/kvm_guest

Re: [PATCH v2 2/5] efi: provide empty efi_enter_virtual_mode implementation

2020-08-04 Thread Ard Biesheuvel
On Tue, 4 Aug 2020 at 14:41, Andrey Konovalov wrote: > > When CONFIG_EFI is not enabled, we might get an undefined reference > to efi_enter_virtual_mode() error, if this efi_enabled() call isn't > inlined into start_kernel(). This happens in particular, if start_kernel() > is annodated with __no_s

[PATCH v1 1/3] arm64: allow de-selection of ThunderX PCI controllers

2020-08-04 Thread Alex Bennée
For a pure VirtIO guest bringing in all the PCI quirk handling adds a significant amount of bloat to kernel we don't need. Solve this by adding a CONFIG symbol for the ThunderX PCI devices and allowing it to be turned off. Saving over 300k from the uncompressed vmlinux: -rwxr-xr-x 1 alex alex 8

[RFC PATCH v1 0/3] put arm64 kvm_config on a diet

2020-08-04 Thread Alex Bennée
Hi, When building guest kernels for virtualisation we were bringing in a bunch of stuff from physical hardware which we don't need for our idealised fixable virtual PCI devices. This series makes some Kconfig changes to allow the ThunderX and XGene PCI drivers to be compiled out. It also drops PCI

[PATCH v1 2/3] arm64: gate the whole of pci-xgene on CONFIG_PCI_XGENE

2020-08-04 Thread Alex Bennée
This is a little weirder as bits of the file are already conditioned on the exiting symbol. Either way they are not actually needed for non-xgene machines saving another 12k: -rwxr-xr-x 1 alex alex 86033880 Aug 3 16:39 vmlinux.orig* -rwxr-xr-x 1 alex alex 85652472 Aug 3 16:54 vmlinux.rm-thunde

Re: [(resend) PATCH v3: {linux-4.14.y} ] dm cache: submit writethrough writes in parallel to origin and cache

2020-08-04 Thread Greg KH
On Tue, Aug 04, 2020 at 07:33:05AM -0500, John Donnelly wrote: > From: Mike Snitzer > > Discontinue issuing writethrough write IO in series to the origin and > then cache. > > Use bio_clone_fast() to create a new origin clone bio that will be > mapped to the origin device and then bio_chain() it

Re: [PATCH 1/2] sched/topology: Allow archs to override cpu_smt_mask

2020-08-04 Thread peterz
On Tue, Aug 04, 2020 at 05:40:07PM +0530, Srikar Dronamraju wrote: > * pet...@infradead.org [2020-08-04 12:45:20]: > > > On Tue, Aug 04, 2020 at 09:03:06AM +0530, Srikar Dronamraju wrote: > > > cpu_smt_mask tracks topology_sibling_cpumask. This would be good for > > > most architectures. One of t

Re: [PATCH 1/8] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-08-04 Thread Kirill Tkhai
On 04.08.2020 15:21, Eric W. Biederman wrote: > Kirill Tkhai writes: > >> Currently, every type of namespaces has its own counter, >> which is stored in ns-specific part. Say, @net has >> struct net::count, @pid has struct pid_namespace::kref, etc. >> >> This patchset introduces unified counter f

Re: [PATCH v3] ext4: fix direct I/O read error

2020-08-04 Thread Jan Kara
On Wed 01-07-20 23:25:26, 姜迎 wrote: > Does anyone else have any comments on the PATCH v3?Suggestions are welcome. > > Thanks! The patch looks good to me FWIW. But as Jiang properly notes current upstream doesn't need this at all so it's only for -stable kernel releases. Since there was no report

Re: [PATCH v7 01/18] perf ftrace: select function/function_graph tracer automatically

2020-08-04 Thread Arnaldo Carvalho de Melo
Em Sat, Jul 18, 2020 at 02:48:09PM +0800, Changbin Du escreveu: > The '-g/-G' options have already implied function_graph tracer should be > used instead of function tracer. So the extra option '--tracer' can be > killed. > > This patch changes the behavior as below: > - By default, function tra

RE: [PATCH v3 4/4] fpga: dfl: add support for N3000 nios private feature

2020-08-04 Thread Wu, Hao
> Subject: [PATCH v3 4/4] fpga: dfl: add support for N3000 nios private feature > > This patch adds support for the nios handshake private feature on Intel > N3000 FPGA Card. This private feature provides a handshake interface to > FPGA NIOS firmware, which receives retimer configuration command f

Re: [PATCH] vt: defer kfree() of vc_screenbuf in vc_do_resize()

2020-08-04 Thread Greg Kroah-Hartman
On Tue, Aug 04, 2020 at 08:15:43PM +0900, Tetsuo Handa wrote: > Do you think this approach is acceptable? Or, do we need to modify > set_origin() ? > > On 2020/07/29 23:57, Tetsuo Handa wrote: > > syzbot is reporting UAF bug in set_origin() from vc_do_resize() [1], for > > vc_do_resize() calls kf

Re: arch/mips/include/asm/mach-ip27/topology.h:19:7: error: implicit declaration of function 'hub_data'

2020-08-04 Thread Mike Rapoport
On Mon, Aug 03, 2020 at 07:58:54PM -0400, Joshua Kinard wrote: > On 8/3/2020 15:49, Mike Rapoport wrote: > > Hi, > > > > On Tue, Aug 04, 2020 at 01:39:14AM +0800, kernel test robot wrote: > >> Hi Mike, > >> > >> FYI, the error/warning still remains. > >> > >> tree: https://git.kernel.org/pub/scm

Re: general protection fault in hci_event_packet

2020-08-04 Thread syzbot
syzbot has bisected this issue to: commit 941992d2944789641470626e9336d663236b1d28 Author: Javier Martinez Canillas Date: Mon Sep 12 14:03:34 2016 + ethernet: amd: use IS_ENABLED() instead of checking for built-in or module bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=

setsid2(sid) proposal - assign current process to existing session

2020-08-04 Thread Devin Bayer
Hello, I'm wondering about the possibility of introducing a new system call for moving a process to an existing session. If `sid` is an existing session with the same owner as the current process, one could call: setsid2(sid) This would have similar behavior to setpgid(), and would p

[PATCH v2 2/5] f2fs: record average update time of segment

2020-08-04 Thread Chao Yu
Previously, once we update one block in segment, we will update mtime of segment to last time, making aged segment becoming freshest, result in that GC with cost benefit algorithm missing such segment, So this patch changes to record mtime as average block updating time instead of last updating tim

[PATCH v2 0/5] Support Age-Threshold based Garbage Collection for f2fs

2020-08-04 Thread Chao Yu
This patch series introduce a new garbage collection algorithm named ATGC (Age Threshold based Garbage Collection) in order to enhance efficiency and effect of background garbage collection. ATGC algorithm tries to fliter few oldest candidates according to defined age threshold, it selects source

[PATCH v2 5/5] f2fs: support age threshold based garbage collection

2020-08-04 Thread Chao Yu
There are several issues in current background GC algorithm: - valid blocks is one of key factors during cost overhead calculation, so if segment has less valid block, however even its age is young or it locates hot segment, CB algorithm will still choose the segment as victim, it's not appropriate

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

2020-08-04 Thread Chao Yu
Don't let f2fs inner GC ruins original aging degree of segment. Signed-off-by: Chao Yu --- fs/f2fs/data.c| 2 +- fs/f2fs/f2fs.h| 5 +++-- fs/f2fs/gc.c | 4 ++-- fs/f2fs/segment.c | 56 +-- 4 files changed, 50 insertions(+), 17 deletions

[PATCH v2 4/5] f2fs: support 64-bits key in f2fs rb-tree node entry

2020-08-04 Thread Chao Yu
then, we can add specified entry into rb-tree with 64-bits segment time as key. Signed-off-by: Chao Yu --- fs/f2fs/extent_cache.c | 37 +++-- fs/f2fs/f2fs.h | 15 --- fs/f2fs/segment.c | 4 ++-- 3 files changed, 49 insertions(+), 7 deleti

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

2020-08-04 Thread Chao Yu
Previous implementation of aligned pinfile allocation will: - allocate new segment on cold data log no matter whether last used segment is partially used or not, it makes IOs more random; - force concurrent cold data/GCed IO going into warm data area, it can make a bad effect on hot/cold data separ

Re: [PATCH 13/17] watch_queue: Implement mount topology and attribute change notifications [ver #5]

2020-08-04 Thread Miklos Szeredi
On Tue, Aug 4, 2020 at 1:39 PM Ian Kent wrote: > > On Mon, 2020-08-03 at 11:29 +0200, Miklos Szeredi wrote: > > On Thu, Jul 23, 2020 at 12:48 PM David Howells > > wrote: > > > > > > > __u32 topology_changes; > > > > > __u32 attr_changes; > > > > >

Re: [PATCH v2 3/5] kasan, arm64: don't instrument functions that enable kasan

2020-08-04 Thread Catalin Marinas
On Tue, Aug 04, 2020 at 02:41:26PM +0200, Andrey Konovalov wrote: > This patch prepares Software Tag-Based KASAN for stack tagging support. > > With stack tagging enabled, KASAN tags stack variable in each function > in its prologue. In start_kernel() stack variables get tagged before KASAN > is e

Re: [patch V3 0/3] posix-cpu-timers: Move expiry into task work context

2020-08-04 Thread peterz
On Thu, Jul 30, 2020 at 12:14:04PM +0200, Thomas Gleixner wrote: > arch/x86/Kconfig |1 > include/linux/posix-timers.h | 17 +++ > include/linux/sched.h |4 > include/linux/seccomp.h|3 > kernel/entry/common.c |4 > kernel/time/Kconf

Re: [RFC PATCH v1 0/3] put arm64 kvm_config on a diet

2020-08-04 Thread Ard Biesheuvel
On Tue, 4 Aug 2020 at 14:45, Alex Bennée wrote: > > Hi, > > When building guest kernels for virtualisation we were bringing in a > bunch of stuff from physical hardware which we don't need for our > idealised fixable virtual PCI devices. This series makes some Kconfig > changes to allow the Thunde

Re: linux-next: Fixes tag needs some work in the wireless-drivers-next tree

2020-08-04 Thread Kalle Valo
Stephen Rothwell writes: > In commit > > 4c7e1711cf4c ("mt76: mt7915: fix potential memory leak in mcu message > handler") > > Fixes tag > > Fixes: c6b002bcdfa6 ("mt76: add mac80211 driver for MT7915 PCIe-based > chipsets") > > has these problem(s): > > - Target SHA1 does not exist > > Ma

[sparc64] enabling CONFIG_PROVE_LOCKING makes kernel unable to build

2020-08-04 Thread Anatoly Pugachev
Hello! Linus git master sources: $ git desc v5.8-2483-gc0842fbc1b18 If built without "kernel debugging" option CONFIG_PROVE_LOCKING enabled, builds successfully. If I enable CONFIG_PROVE_LOCKING=y it does not build: linux-2.6$ make arch/sparc scripts/kconfig/conf --syncconfig Kconfig WARNI

Re: [PATCH v2 3/5] kasan, arm64: don't instrument functions that enable kasan

2020-08-04 Thread Andrey Konovalov
On Tue, Aug 4, 2020 at 3:19 PM Catalin Marinas wrote: > > On Tue, Aug 04, 2020 at 02:41:26PM +0200, Andrey Konovalov wrote: > > This patch prepares Software Tag-Based KASAN for stack tagging support. > > > > With stack tagging enabled, KASAN tags stack variable in each function > > in its prologue

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-08-04 Thread peterz
On Wed, Jul 29, 2020 at 06:57:17PM -0300, Vitor Massaru Iha wrote: > The results can be seen this way: > > This is an excerpt from the test.log with the result in TAP format: > [snip] > ok 5 - example > # Subtest: min-heap > 1..6 > ok 1 - test_heapify_all_true > ok 2 - test_heapif

Re: [PATCH 0/8] namespaces: Introduce generic refcount

2020-08-04 Thread Eric W. Biederman
Christian Brauner writes: > On Tue, Aug 04, 2020 at 07:11:59AM -0500, Eric W. Biederman wrote: >> Christian Brauner writes: >> >> > On Mon, Aug 03, 2020 at 01:16:10PM +0300, Kirill Tkhai wrote: >> >> Every namespace type has its own counter. Some of them are >> >> of refcount_t, some of them ar

Re: [PATCH 1/2][next] mm: memcontrol: Use flex_array_size() helper in memcpy()

2020-08-04 Thread Michal Hocko
On Fri 31-07-20 12:12:53, Gustavo A. R. Silva wrote: > Make use of the flex_array_size() helper to calculate the size of a > flexible array member within an enclosing structure. > > This helper offers defense-in-depth against potential integer > overflows, while at the same time makes it explicitl

Re: [PATCH 2/2][next] mm: memcontrol: Use the preferred form for passing the size of a structure type

2020-08-04 Thread Michal Hocko
On Fri 31-07-20 12:13:14, Gustavo A. R. Silva wrote: > Use the preferred form for passing the size of a structure type. The > alternative form where the structure type is spelled out hurts > readability and introduces an opportunity for a bug when the object > type is changed but the corresponding

[PATCH] dpaa2-eth: Fix passing zero to 'PTR_ERR' warning

2020-08-04 Thread YueHaibing
Fix smatch warning: drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c:2419 alloc_channel() warn: passing zero to 'ERR_PTR' setup_dpcon() should return ERR_PTR(err) instead of zero in error handling case. Fixes: d7f5a9d89a55 ("dpaa2-eth: defer probe on object allocate") Signed-off-by: YueHaibing

Re: [PATCH v2 4/5] perf record: Don't clear event's period if set by a term

2020-08-04 Thread Ian Rogers
On Tue, Aug 4, 2020 at 3:08 AM Adrian Hunter wrote: > > On 28/07/20 11:57 am, Ian Rogers wrote: > > If events in a group explicitly set a frequency or period with leader > > sampling, don't disable the samples on those events. > > > > Prior to 5.8: > > perf record -e '{cycles/period=12345000/,inst

Re: [sparc64] enabling CONFIG_PROVE_LOCKING makes kernel unable to build

2020-08-04 Thread peterz
On Tue, Aug 04, 2020 at 04:17:16PM +0300, Anatoly Pugachev wrote: > Hello! > > Linus git master sources: > > $ git desc > v5.8-2483-gc0842fbc1b18 > Ooh, it looks like that series wasn't cut back far enough :/ 859247d39fb0 ("seqlock: lockdep assert non-preemptibility on seqcount_t write") does

Re: [PATCH V2 00/12] perf intel-pt: Add support for decoding FUP/TIP only

2020-08-04 Thread Adrian Hunter
On 10/07/20 6:10 pm, Adrian Hunter wrote: > Hi > > Here are some fixes and small improvements for Intel PT. Andi added his "Reviewed-by" with 2 comments to tweak the documentation. The patches still apply, so do you want me to send a V3? > > Changes in V2: > For d/e flags, use +/- alphab

Re: [PATCH 08/10] media: uapi: h264: Clean slice invariants syntax elements

2020-08-04 Thread Tomasz Figa
On Mon, Jul 27, 2020 at 9:43 PM Nicolas Dufresne wrote: > > Le lundi 27 juillet 2020 à 20:10 +0200, Tomasz Figa a écrit : > > On Mon, Jul 27, 2020 at 6:18 PM Ezequiel Garcia > > wrote: > > > On Mon, 2020-07-27 at 16:52 +0200, Tomasz Figa wrote: > > > > On Mon, Jul 27, 2020 at 4:39 PM Ezequiel Ga

Re: [PATCH v2 09/24] virtio_fs: correct tags for config space fields

2020-08-04 Thread Vivek Goyal
On Mon, Aug 03, 2020 at 04:59:13PM -0400, Michael S. Tsirkin wrote: > Since fs is a modern-only device, > tag config space fields as having little endian-ness. > > Signed-off-by: Michael S. Tsirkin virtio spec does list this field as "le32". Acked-by: Vivek Goyal Vivek > --- > include/uapi/

drivers/net/ethernet/freescale/xgmac_mdio.c:306:20: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-04 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c0842fbc1b18c7a044e6ff3e8fa78bfa822c7d1a commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 7 weeks ago config: arm-randconfig-s031-20200804 (attached

Re: [PATCH 08/18] fsinfo: Allow mount topology and propagation info to be retrieved [ver #21]

2020-08-04 Thread Miklos Szeredi
On Mon, Aug 03, 2020 at 02:37:33PM +0100, David Howells wrote: > Add a couple of attributes to allow information about the mount topology > and propagation to be retrieved: > > (1) FSINFO_ATTR_MOUNT_TOPOLOGY. > > Information about a mount's parentage in the mount topology tree and > it

Re: [PATCH v1 3/3] kernel/configs: don't include PCI_QUIRKS in KVM guest configs

2020-08-04 Thread Marc Zyngier
On 2020-08-04 13:44, Alex Bennée wrote: The VIRTIO_PCI support is an idealised PCI bus, we don't need a bunch of bloat for real world hardware for a VirtIO guest. Who says this guest will only have virtio devices? Or even, virtio devices without bugs? Given that said device can come from any V

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-08-04 Thread Vitor Massaru Iha
Hi Peter, On Tue, Aug 4, 2020 at 10:25 AM wrote: > > On Wed, Jul 29, 2020 at 06:57:17PM -0300, Vitor Massaru Iha wrote: > > > The results can be seen this way: > > > > This is an excerpt from the test.log with the result in TAP format: > > [snip] > > ok 5 - example > > # Subtest: min-heap > >

[PATCH v2] ALSA: hda/hdmi: Add quirk to force connectivity

2020-08-04 Thread Kai-Heng Feng
HDMI on some platforms doesn't enable audio support because its Port Connectivity [31:30] is set to AC_JACK_PORT_NONE: Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00] Pincap 0x0b94:

Re: [PATCH] Platform lockdown information in SYSFS

2020-08-04 Thread Daniel Gutson
On Tue, Aug 4, 2020 at 3:41 AM Greg Kroah-Hartman wrote: > > On Mon, Aug 03, 2020 at 07:04:56PM -0300, Daniel Gutson wrote: > > > > > Think of this as an input device. You don't put the random input > > > > > attributes all in one place, you create a new device that represents > > > > > the > >

Re: [PATCH 2/3] sched/doc: Document capacity aware scheduling

2020-08-04 Thread Valentin Schneider
On 04/08/20 12:26, pet...@infradead.org wrote: > On Fri, Jul 31, 2020 at 08:20:15PM +0100, Valentin Schneider wrote: >> Add some documentation detailing the concepts, requirements and >> implementation of capacity aware scheduling across the different scheduler >> classes. >> >> Signed-off-by: Va

Re: [PATCH v2 01/17] KVM: PPC: Book3S HV: simplify kvm_cma_reserve()

2020-08-04 Thread Daniel Axtens
Hi Mike, > > The memory size calculation in kvm_cma_reserve() traverses memblock.memory > rather than simply call memblock_phys_mem_size(). The comment in that > function suggests that at some point there should have been call to > memblock_analyze() before memblock_phys_mem_size() could be used.

Re: [PATCH 1/2] fs: Add fd_install file operation

2020-08-04 Thread Kalesh Singh
On Mon, Aug 03, 2020 at 08:30:59PM -0400, Joel Fernandes wrote: > On Mon, Aug 3, 2020 at 10:47 AM 'Kalesh Singh' via kernel-team > wrote: > > > > Provides a per process hook for the acquisition of file descriptors, > > despite the method used to obtain the descriptor. > > > > Hi, > So apart from

Re: [PATCH 1/8] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-08-04 Thread Eric W. Biederman
Kirill Tkhai writes: > On 04.08.2020 15:21, Eric W. Biederman wrote: >> Kirill Tkhai writes: >> >>> Currently, every type of namespaces has its own counter, >>> which is stored in ns-specific part. Say, @net has >>> struct net::count, @pid has struct pid_namespace::kref, etc. >>> >>> This patch

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-08-04 Thread Mark Rutland
On Mon, Aug 03, 2020 at 12:58:04PM -0500, Madhavan T. Venkataraman wrote: > On 7/31/20 1:31 PM, Mark Rutland wrote: > > On Fri, Jul 31, 2020 at 12:13:49PM -0500, Madhavan T. Venkataraman wrote: > >> On 7/30/20 3:54 PM, Andy Lutomirski wrote: > >>> On Thu, Jul 30, 2020 at 7:24 AM Madhavan T. Venkata

[PATCH v2] iio:temperature:mlx90632: Reduce number of equal calculations

2020-08-04 Thread Crt Mori
TAdut4 was calculated each iteration although it did not change. In light of near future additions of the Extended range DSP calculations, this function refactoring will help reduce unrelated changes in that series as well as reduce the number of new functions needed. Signed-off-by: Crt Mori ---

Re: [PATCH 10/18] fsinfo: Provide notification overrun handling support [ver #21]

2020-08-04 Thread Miklos Szeredi
On Mon, Aug 03, 2020 at 02:37:50PM +0100, David Howells wrote: > Provide support for the handling of an overrun in a watch queue. In the > event that an overrun occurs, the watcher needs to be able to find out what > it was that they missed. To this end, previous patches added event > counters to

[PATCH -next] soc: fsl: qe: Remove unnessesary check in ucc_set_tdm_rxtx_clk

2020-08-04 Thread Wang Hai
Fix smatch warning: drivers/soc/fsl/qe/ucc.c:526 ucc_set_tdm_rxtx_clk() warn: unsigned 'tdm_num' is never less than zero. 'tdm_num' is u32 type, never less than zero. Signed-off-by: Wang Hai --- drivers/soc/fsl/qe/ucc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH v7 1/3] binder: move structs from core file to header file

2020-08-04 Thread Frankie Chang
From: "Frankie.Chang" Moving all structs to header file makes module more extendable, and makes all these structs to be defined in the same file. Signed-off-by: Frankie.Chang --- drivers/android/binder.c | 405 - drivers/android/binder_internal.h |

Re: [RFC PATCH 4/7] crypto: remove ARC4 support from the skcipher API

2020-08-04 Thread Ard Biesheuvel
On Sat, 25 Jul 2020 at 10:06, Ard Biesheuvel wrote: > > On Sat, 18 Jul 2020 at 11:18, Ard Biesheuvel wrote: > > > > On Fri, 3 Jul 2020 at 02:04, Ard Biesheuvel wrote: > > > > > > On Thu, 2 Jul 2020 at 20:21, Ard Biesheuvel wrote: > > > > > > > > On Thu, 2 Jul 2020 at 19:50, Eric Biggers wrote:

[PATCH v7] binder: transaction latency tracking for user build

2020-08-04 Thread Frankie Chang
Frankie.Chang (3): binder: move structs from core file to header file binder: add trace at free transaction. binder: add transaction latency tracer drivers/android/Kconfig |8 + drivers/android/Makefile|1 + drivers/android/binder.c|

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