Re: [PATCH v15 01/26] Documentation/x86: Add CET description

2020-11-30 Thread Yu, Yu-cheng
On 11/30/2020 11:38 AM, Fāng-ruì Sòng wrote: On Mon, Nov 30, 2020 at 10:34 AM Yu, Yu-cheng wrote: On 11/30/2020 10:26 AM, Nick Desaulniers wrote: (In response to https://lore.kernel.org/lkml/20201110162211.9207-2-yu-cheng...@intel.com/) These need to be enabled to build a CET-enabled kerne

Re: [RFC PATCH 12/13] fs/userfaultfd: kmem-cache for wait-queue objects

2020-11-30 Thread Nadav Amit
> On Nov 28, 2020, at 4:45 PM, Nadav Amit wrote: > > From: Nadav Amit > > Allocating work-queue objects on the stack has usually negative > performance side-effects. First, it is hard to ensure alignment to > cache-lines without increasing the stack size. Second, it might cause > false sharing.

RE: [PATCH 1/5] ARM: configs: drop unused BACKLIGHT_GENERIC option

2020-11-30 Thread ZHIZHIKIN Andrey
Hello Krzysztof, > -Original Message- > From: Krzysztof Kozlowski > Sent: Monday, November 30, 2020 7:52 PM > To: ZHIZHIKIN Andrey > Cc: li...@armlinux.org.uk; nicolas.fe...@microchip.com; > alexandre.bell...@bootlin.com; ludovic.desroc...@microchip.com; > t...@atomide.com; mrip...@kerne

Re: [PATCH v12 10/15] PCI/ERR: Limit AER resets in pcie_do_recovery()

2020-11-30 Thread Kelley, Sean V
Hi Bjorn, Was away briefly for the holidays, comments below: > On Nov 24, 2020, at 9:17 AM, Bjorn Helgaas wrote: > > On Mon, Nov 23, 2020 at 11:57:35PM +, Kelley, Sean V wrote: >>> On Nov 23, 2020, at 3:28 PM, Bjorn Helgaas wrote: >>> On Fri, Nov 20, 2020 at 04:10:31PM -0800, Sean V Kelley

Re: [PATCH v15 05/26] x86/cet/shstk: Add Kconfig option for user-mode Shadow Stack

2020-11-30 Thread Nick Desaulniers
In response to https://lore.kernel.org/lkml/20201110162211.9207-6-yu-cheng...@intel.com/. Hi Yu-cheng, This feature reminds me very much of ARCH_SUPPORTS_SHADOW_CALL_STACK/CC_HAVE_SHADOW_CALL_STACK implemented in https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=528756

Re: [PATCH v2] docs: automarkup.py: Allow automatic cross-reference inside C namespace

2020-11-30 Thread Jonathan Corbet
On Tue, 17 Nov 2020 02:12:01 + Nícolas F. R. A. Prado wrote: > Sphinx 3.1 introduced namespaces for C cross-references. With this, > each C domain type/function declaration is put inside the namespace that > was active at the time of its declaration. > > Add support for automatic cross-refer

RE: [PATCH 0/5] drop unused BACKLIGHT_GENERIC option

2020-11-30 Thread ZHIZHIKIN Andrey
Hello Sam, > -Original Message- > From: Sam Ravnborg > Sent: Monday, November 30, 2020 8:12 PM > To: ZHIZHIKIN Andrey > Cc: li...@armlinux.org.uk; nicolas.fe...@microchip.com; > alexandre.bell...@bootlin.com; ludovic.desroc...@microchip.com; > t...@atomide.com; mrip...@kernel.org; w...@c

Re: [PATCH] kvm:svm: Return the correct error code

2020-11-30 Thread Sean Christopherson
On Thu, Nov 26, 2020, 彭浩(Richard) wrote: > The return value of sev_asid_new is assigned to the variable asid, which > should be returned directly if the asid is an error code. > > Fixes: 1654efcbc431 ("KVM: SVM: Add KVM_SEV_INIT command") > Signed-off-by: Peng Hao It's probably worth noting in t

Re: [PATCH v2 1/2] scs: switch to vmapped shadow stacks

2020-11-30 Thread Sami Tolvanen
On Mon, Nov 30, 2020 at 3:44 AM Will Deacon wrote: > > On Tue, Nov 24, 2020 at 11:59:39AM -0800, Sami Tolvanen wrote: > > +void *scs_alloc(int node) > > { > > - void *s = kmem_cache_alloc_node(scs_cache, GFP_SCS, node); > > + int i; > > + void *s; > > + > > + for (i = 0; i < NR_CA

Re: running xfstests on tmpfs

2020-11-30 Thread Hugh Dickins
On Thu, 26 Nov 2020, Hugh Dickins wrote: > On Thu, 26 Nov 2020, Matthew Wilcox wrote: > > > > The good news is that I've sorted out the SCRATCH_DEV issue with > > running xfstests. The bad news is that (even on an unmodified kernel), > > generic/027 takes 19 hours to run. On xfs, it's 4 minutes.

Re: [PATCH v10 01/19] dt-bindings: memory: tegra20: emc: Document opp-supported-hw property

2020-11-30 Thread Dmitry Osipenko
30.11.2020 21:23, Krzysztof Kozlowski пишет: > On Mon, Nov 30, 2020 at 11:48:18AM +0200, Georgi Djakov wrote: >> On 23.11.20 2:27, Dmitry Osipenko wrote: >>> Document opp-supported-hw property, which is not strictly necessary to >>> have on Tegra20, but it's very convenient to have because all othe

Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device

2020-11-30 Thread Andy Shevchenko
On Mon, Nov 30, 2020 at 01:31:29PM +, Daniel Scally wrote: > On platforms where ACPI is designed for use with Windows, resources > that are intended to be consumed by sensor devices are sometimes in > the _CRS of a dummy INT3472 device upon which the sensor depends. This > driver binds to the d

[PATCH] proc: Allow pid_revalidate() during LOOKUP_RCU

2020-11-30 Thread Stephen Brennan
The pid_revalidate() function requires dropping from RCU into REF lookup mode. When many threads are resolving paths within /proc in parallel, this can result in heavy spinlock contention as each thread tries to grab a reference to the /proc dentry (and drop it shortly thereafter). Allow the pid_r

Re: [PATCH] mm: list_lru: hold nlru lock to avoid reading transient negative nr_items

2020-11-30 Thread Roman Gushchin
On Mon, Nov 30, 2020 at 10:45:14AM -0800, Yang Shi wrote: > When investigating a slab cache bloat problem, significant amount of > negative dentry cache was seen, but confusingly they neither got shrunk > by reclaimer (the host has very tight memory) nor be shrunk by dropping > cache. The vmcore s

Re: [PATCH 1/2] mm: move lruvec stats update functions to vmstat.h

2020-11-30 Thread Johannes Weiner
On Wed, Nov 25, 2020 at 04:56:02PM -0800, Shakeel Butt wrote: > This patch does not change any functionality and only move the functions > which update the lruvec stats to vmstat.h from memcontrol.h. The main > reason for this patch is to be able to use these functions in the page > table contructo

Re: [stable 4.9] PANIC: double fault, error_code: 0x0 - clang boot failed on x86_64

2020-11-30 Thread Nick Desaulniers
On Wed, Nov 25, 2020 at 10:38 PM Greg Kroah-Hartman wrote: > > Is the mainline 4.9 tree supposed to work with clang? I didn't think > that upstream effort started until 4.19 or so. (For historical records, separate from the initial bug report that started this thread) I consider 785f11aa595b ("

Re: [BUG] SPI broken for SPI based panel drivers

2020-11-30 Thread Sven Van Asbroeck
Hi Nikolaus, thank you for reaching out ! On Mon, Nov 30, 2020 at 2:06 PM H. Nikolaus Schaller wrote: > > But reverting your patch brings back the display. So it appears as if it does > not > fix a breakage, rather breaks a previously working setup. The patch in question fixes an important brea

[ANNOUNCE] 4.9.246-rt161

2020-11-30 Thread Luis Claudio R. Goncalves
Hello RT-list! I'm pleased to announce the 4.9.246-rt161 stable release. Note that this is a merge of the upstream stable releases only and no change has been made to RT code, as the v4.9 branch is in maintenance mode. You can get this release via the git tree at: git://git.kernel.org/pub/scm

Re: [PATCH v12 07/10] secretmem: add memcg accounting

2020-11-30 Thread Roman Gushchin
On Sun, Nov 29, 2020 at 07:26:25PM +0200, Mike Rapoport wrote: > On Sun, Nov 29, 2020 at 07:53:45AM -0800, Shakeel Butt wrote: > > On Wed, Nov 25, 2020 at 1:51 AM Mike Rapoport wrote: > > > > > > From: Mike Rapoport > > > > > > Account memory consumed by secretmem to memcg. The accounting is upda

[PATCH] zram: add stat to gather incompressible pages since zram set up

2020-11-30 Thread Minchan Kim
Currently, zram supports the stat via /sys/block/zram/mm_stat to represent how many of incompressible pages are stored at the moment but it couldn't show how many times incompressible pages were wrote down since zram set up. It's also good indication to see how zram is effective in the system. Sig

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

2020-11-30 Thread Rob Herring
On Mon, Nov 30, 2020 at 12:39 PM Paul Cercueil wrote: > > Hi Rob, > > Le lun. 30 nov. 2020 à 7:32, Rob Herring a écrit > : > > On Mon, Nov 2, 2020 at 3:19 AM Paul Cercueil > > wrote: > >> > >> > >> > >> Le dim. 1 nov. 2020 à 13:29, Sam Ravnborg a > >> écrit : > >> > On Sun, Nov 01, 2020 at 09

[PATCH v2] iosched: Add i10 I/O Scheduler

2020-11-30 Thread Rachit Agarwal
From: Rachit Agarwal Hi All, I/O batching is beneficial for optimizing IOPS and throughput for various applications. For instance, several kernel block drivers would benefit from batching, including mmc [1] and tcp-based storage drivers like nvme-tcp [2,3]. While we have support for batching dis

Re: [PATCH 1/3] x86/quirks: Scan all busses for early PCI quirks

2020-11-30 Thread Bjorn Helgaas
On Wed, Nov 18, 2020 at 07:36:08PM -0300, Guilherme Piccoli wrote: > Thanks a lot Bjorn! I confess except for PPC64 Server machines, I > never saw other "domains" or segments. Is it common in x86 to have > that? The early_quirks() are restricted to the first segment, no > matter how many host bridg

Re: [PATCH] mm/memcg: bail out early when !memcg in mem_cgroup_lruvec

2020-11-30 Thread Andrew Morton
On Mon, 30 Nov 2020 22:44:11 +0300 Dmitry Osipenko wrote: > > From: Alex Shi > > Date: Wed, 25 Nov 2020 14:06:33 +0800 > > Subject: [PATCH v2] mm/memcg: bail out early when !memcg in > > mem_cgroup_lruvec > > > > Sometime, we use NULL memcg in mem_cgroup_lruvec(memcg, pgdat) > > so we could ge

[PATCH v4 03/17] selftests/resctrl: Rename CQM test as CMT test

2020-11-30 Thread Fenghua Yu
CMT (Cache Monitoring Technology) [1] is a H/W feature that reports cache occupancy of a process. resctrl selftest suite has a unit test to test CMT for LLC but the test is named as CQM (Cache Quality Monitoring). Furthermore, the unit test source file is named as cqm_test.c and several functions,

[PATCH v4 08/17] selftests/resctrl: Ensure sibling CPU is not same as original CPU

2020-11-30 Thread Fenghua Yu
From: Reinette Chatre The resctrl tests can accept a CPU on which the tests are run and use default of CPU #1 if it is not provided. In the CAT test a "sibling CPU" is determined that is from the same package where another thread will be run. The current algorithm with which a "sibling CPU" is d

[PATCH v4 16/17] selftests/resctrl: Fix incorrect parsing of iMC counters

2020-11-30 Thread Fenghua Yu
iMC (Integrated Memory Controller) counters are usually at "/sys/bus/event_source/devices/" and are named as "uncore_imc_". num_of_imcs() function tries to count number of such iMC counters so that it could appropriately initialize required number of perf_attr structures that could be used to read

[PATCH v4 01/17] selftests/resctrl: Fix compilation issues for global variables

2020-11-30 Thread Fenghua Yu
Reinette reported following compilation issue on Fedora 32, gcc version 10.1.1 /usr/bin/ld: cqm_test.o:/cqm_test.c:22: multiple definition of `cache_size'; cat_test.o:/cat_test.c:23: first defined here The same issue is reported for long_mask, cbm_mask, count_of_bits etc variables as well. Compil

[PATCH v4 02/17] selftests/resctrl: Clean up resctrl features check

2020-11-30 Thread Fenghua Yu
Checking resctrl features call strcmp() to compare feature strings (e.g. "mba", "cat" etc). The checkings are error prone and don't have good coding style. Define the constant strings in macros and call strncmp() to solve the potential issues. Suggested-by: Shuah Khan Signed-off-by: Fenghua Yu -

[PATCH v4 07/17] selftests/resctrl: Use resctrl/info for feature detection

2020-11-30 Thread Fenghua Yu
Resctrl test suite before running any unit test (like cmt, cat, mbm and mba) should first check if the feature is enabled (by kernel and not just supported by H/W) on the platform or not. validate_resctrl_feature_request() is supposed to do that. This function intends to grep for relevant flags in

[PATCH v4 06/17] selftests/resctrl: Check for resctrl mount point only if resctrl FS is supported

2020-11-30 Thread Fenghua Yu
check_resctrlfs_support() does the following 1. Checks if the platform supports resctrl file system or not by looking for resctrl in /proc/filesystems 2. Calls opendir() on default resctrl file system path (i.e. /sys/fs/resctrl) 3. Checks if resctrl file system is mounted or not by looking at

[PATCH v4 04/17] selftests/resctrl: Fix printed messages

2020-11-30 Thread Fenghua Yu
From: Reinette Chatre Fix one instance where "not" (without a space) is printed on test failure resulting in output of "notok" on test failure. Add a missing newline to the printed help text to improve readability. Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- tools/testing/se

[PATCH v4 10/17] selftests/resctrl: Fix MBA/MBM results reporting format

2020-11-30 Thread Fenghua Yu
MBM unit test starts fill_buf (default built-in benchmark) in a new con_mon group (c1, m1) and records resctrl reported mbm values and iMC (Integrated Memory Controller) values every second. It does this for five seconds (randomly chosen value) in total. It then calculates average of resctrl_mbm va

[PATCH v4 09/17] selftests/resctrl: Fix missing options "-n" and "-p"

2020-11-30 Thread Fenghua Yu
resctrl test suite accepts command line arguments (like -b, -t, -n and -p) as documented in the help. But passing -n and -p throws an invalid option error. This happens because -n and -p are missing in the list of characters that getopt() recognizes as valid arguments. Hence, they are treated as in

[PATCH v4 00/17] Miscellaneous fixes for resctrl selftests

2020-11-30 Thread Fenghua Yu
This patch set has several miscellaneous fixes to resctrl selftest tool that are easily visible to user. V1 had fixes to CAT test and CMT test but they were dropped in V2 because having them here made the patchset humongous. So, changes to CAT test and CMT test will be posted in another patchset.

Re: [PATCH v8 11/12] mm/vmalloc: Hugepage vmalloc mappings

2020-11-30 Thread Edgecombe, Rick P
On Sun, 2020-11-29 at 01:25 +1000, Nicholas Piggin wrote: > Support huge page vmalloc mappings. Config option > HAVE_ARCH_HUGE_VMALLOC > enables support on architectures that define HAVE_ARCH_HUGE_VMAP and > supports PMD sized vmap mappings. > > vmalloc will attempt to allocate PMD-sized pages if

[PATCH v4 05/17] selftests/resctrl: Add a few dependencies

2020-11-30 Thread Fenghua Yu
Add a couple of sanity checks and the config file for test dependencies. Running any resctrl unit test involves writing to resctrl file system and only a root user has permission to write to resctrl FS. Resctrl test suite before running any test checks for the privilege of the user and if it's not

[PATCH v4 12/17] selftests/resctrl: Don't hard code value of "no_of_bits" variable

2020-11-30 Thread Fenghua Yu
Cache related tests (like CAT and CMT) depend on a variable called no_of_bits to run. no_of_bits defines the number of contiguous bits that should be set in the CBM mask and a user can pass a value for no_of_bits using -n command line argument. If a user hasn't passed any value, it defaults to 5 (r

Re: [PATH v3 0/3] iio: adc: xilinx: use even more devres

2020-11-30 Thread Jonathan Cameron
On Mon, 30 Nov 2020 15:27:56 +0100 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > This is a follow-up to commit 750628c79bb1 ("iio: adc: xilinx-xadc: use > devm_krealloc()"). I noticed we can use even more devres helpers and entirely > drop the remove() callback. > > v1 -> v2: > -

Re: [PATCH 2/2] mm: memcontrol: account pagetables per node

2020-11-30 Thread Johannes Weiner
On Wed, Nov 25, 2020 at 04:56:03PM -0800, Shakeel Butt wrote: > For many workloads, pagetable consumption is significant and it makes > sense to expose it in the memory.stat for the memory cgroups. However at > the moment, the pagetables are accounted per-zone. Converting them to > per-node and usi

[PATCH v4 17/17] selftests/resctrl: Fix checking for < 0 for unsigned values

2020-11-30 Thread Fenghua Yu
Dan reported following static checker warnings tools/testing/selftests/resctrl/resctrl_val.c:545 measure_vals() warn: 'bw_imc' unsigned <= 0 tools/testing/selftests/resctrl/resctrl_val.c:549 measure_vals() warn: 'bw_resc_end' unsigned <= 0 These warnings are reported because 1. measure_vals() de

[PATCH v4 14/17] selftests/resctrl: Skip the test if requested resctrl feature is not supported

2020-11-30 Thread Fenghua Yu
There could be two reasons why a resctrl feature might not be enabled on the platform 1. H/W might not support the feature 2. Even if the H/W supports it, the user might have disabled the feature through kernel command line arguments Hence, any resctrl unit test (like cmt, cat, mbm and mba) bef

[PATCH v4 13/17] selftests/resctrl: Modularize resctrl test suite main() function

2020-11-30 Thread Fenghua Yu
Resctrl test suite main() function does the following things 1. Parses command line arguments passed by user 2. Some setup checks 3. Logic that calls into each unit test 4. Print result and clean up after running each unit test Introduce wrapper functions for steps 3 and 4 to modularize the main()

[PATCH v4 11/17] selftests/resctrl: Enable gcc checks to detect buffer overflows

2020-11-30 Thread Fenghua Yu
David reported a buffer overflow error in the check_results() function of the cmt unit test and he suggested enabling _FORTIFY_SOURCE gcc compiler option to automatically detect any such errors. Feature Test Macros man page describes_FORTIFY_SOURCE as below "Defining this macro causes some lightw

Re: [BUG] SPI broken for SPI based panel drivers

2020-11-30 Thread Sven Van Asbroeck
And probably also: @@ -226,8 +226,7 @@ static int spi_gpio_setup(struct spi_device *spi) if (spi_gpio->cs_gpios) { cs = spi_gpio->cs_gpios[spi->chip_select]; if (!spi->controller_state && cs) - status = gpiod_direction_output(cs, -

[PATCH v4 15/17] selftests/resctrl: Fix unmount resctrl FS

2020-11-30 Thread Fenghua Yu
umount_resctrlfs() directly attempts to unmount resctrl file system without checking if resctrl FS is already mounted or not. It returns 0 on success and on failure it prints an error message and returns an error status. Calling umount_resctrlfs() when resctrl FS isn't mounted will return an error

Re: [PATCH] mips: lib: uncached: fix uninitialized variable 'sp'

2020-11-30 Thread Nick Desaulniers
On Fri, Nov 27, 2020 at 12:39 AM Anders Roxell wrote: > > When building mips tinyconfig with clang the following warning show up: > > /tmp/arch/mips/lib/uncached.c:40:18: note: initialize the variable 'sp' to > silence this warning > register long sp __asm__("$sp"); >

Re: [PATCH 0/5] drop unused BACKLIGHT_GENERIC option

2020-11-30 Thread Krzysztof Kozlowski
On Mon, Nov 30, 2020 at 08:11:33PM +0100, Sam Ravnborg wrote: > On Mon, Nov 30, 2020 at 03:21:32PM +, Andrey Zhizhikin wrote: > > Since the removal of generic_bl driver from the source tree in commit > > 7ecdea4a0226 ("backlight: generic_bl: Remove this driver as it is > > unused") BACKLIGHT_GE

Re: [External] Re: [PATCH] mm/memcg: fix NULL pointer dereference at workingset_eviction

2020-11-30 Thread Andrew Morton
On Mon, 30 Nov 2020 16:57:37 +0100 Vlastimil Babka wrote: > On 11/30/20 2:45 PM, Michal Hocko wrote: > > On Mon 30-11-20 21:36:49, Muchun Song wrote: > >> On Mon, Nov 30, 2020 at 9:23 PM Michal Hocko wrote: > >> > > >> > On Mon 30-11-20 21:15:12, Muchun Song wrote: > >> > > We found a case of ke

Re: [RFC PATCH 00/35] SEV-ES hypervisor support

2020-11-30 Thread Paolo Bonzini
On 30/11/20 20:35, Sean Christopherson wrote: Delayed interrupts are fine, since they are injected according to RVI and the posted interrupt descriptor. I'm thinking more of events (exceptions and interrupts) that caused an EPT violation exit and were recorded in the IDT-vectored info field. Ah

Re: [PATCH v5] mm: Optional full ASLR for mmap(), mremap(), vdso and stack

2020-11-30 Thread Topi Miettinen
On 30.11.2020 19.57, Andy Lutomirski wrote: On Sun, Nov 29, 2020 at 1:20 PM Topi Miettinen wrote: Writing a new value of 3 to /proc/sys/kernel/randomize_va_space enables full randomization of memory mappings created with mmap(NULL, ...). With 2, the base of the VMA used for such mappings is ra

Re: [PATCH] __div64_32(): straighten up inline asm constraints

2020-11-30 Thread Nicolas Pitre
On Mon, 30 Nov 2020, Nick Desaulniers wrote: > On Mon, Nov 30, 2020 at 11:05 AM Nicolas Pitre wrote: > > > + __rem = __n >> 32; > > *n = __res; > > return __rem; > > The above 3 statement could be: > > ``` > *n = __res; > return __n >> 32; > ``` They could. However the c

Re: [PATCH v2 3/4] Kbuild: make DWARF version a choice

2020-11-30 Thread Fāng-ruì Sòng
On Mon, Nov 30, 2020 at 10:05 AM Masahiro Yamada wrote: > > On Wed, Nov 4, 2020 at 9:53 AM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > Modifies CONFIG_DEBUG_INFO_DWARF4 to be a member of a choice. Adds an > > explicit CONFIG_DEBUG_INFO_DWARF2, which is the default. Does so in a > >

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

2020-11-30 Thread kernel test robot
Hi Daniel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on driver-core/driver-core-testing pm/linux-next v5.10-rc6 next-20201130] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH 1/6] dt-bindings: display: add Unisoc's drm master bindings

2020-11-30 Thread Rob Herring
On Mon, Nov 30, 2020 at 7:28 AM Kevin Tang wrote: > > From: Kevin Tang Once again, DT patches must Cc the DT list if you want them reviewed. > > The Unisoc DRM master device is a virtual device needed to list all > DPU devices or other display interface nodes that comprise the > graphics subsys

Re: [PATCH AUTOSEL 5.9 22/33] vhost scsi: add lun parser helper

2020-11-30 Thread Paolo Bonzini
On 30/11/20 20:44, Mike Christie wrote: I have never seen a public/open-source vhost-scsi testsuite. For patch 23 (the one that adds the lun reset support which is built on patch 22), we can't add it to stable right now if you wanted to, because it has a bug in it. Michael T, sent the fix: http

Re: [PATCH v15 05/26] x86/cet/shstk: Add Kconfig option for user-mode Shadow Stack

2020-11-30 Thread Yu, Yu-cheng
On 11/30/2020 11:56 AM, Nick Desaulniers wrote: In response to https://lore.kernel.org/lkml/20201110162211.9207-6-yu-cheng...@intel.com/. Hi Yu-cheng, This feature reminds me very much of ARCH_SUPPORTS_SHADOW_CALL_STACK/CC_HAVE_SHADOW_CALL_STACK implemented in https://git.kernel.org/pub/scm/lin

Re: [PATCH 5/6] dt-bindings: display: add Unisoc's mipi dsi&dphy bindings

2020-11-30 Thread Rob Herring
On Mon, Nov 30, 2020 at 7:29 AM Kevin Tang wrote: > > From: Kevin Tang > > Adds MIPI DSI Master and MIPI DSI-PHY (D-PHY) > support for Unisoc's display subsystem. > > Cc: Orson Zhai > Cc: Chunyan Zhang > Signed-off-by: Kevin Tang > --- > .../display/sprd/sprd,sharkl3-dsi-host.yaml| 10

Re: [PATCH 0/2] memcg: add pagetable comsumption to memory.stat

2020-11-30 Thread Roman Gushchin
On Wed, Nov 25, 2020 at 04:56:01PM -0800, Shakeel Butt wrote: > Many workloads consumes significant amount of memory in pagetables. This > patch series exposes the pagetable comsumption for each memory cgroup. Hi Shakeel! The code looks good to me. However I'm not sure I understand what's the use

Re: [PATCH 2/2] usb-storage: revert from scsi_add_host_with_dma() to scsi_add_host()

2020-11-30 Thread Alan Stern
[Added linux-scsi to CC: list. When discussing code in a particular subsystem, it's a good idea to include that subsystem's mailing list in the CC:.] On Tue, Dec 01, 2020 at 03:01:56AM +0800, Tom Yan wrote: > For the record, > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/t

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

2020-11-30 Thread Sakari Ailus
Hi Daniel, Thanks for the update! This is starting to look really nice! Please still see my comments below. On Mon, Nov 30, 2020 at 01:31:24PM +, Daniel Scally wrote: > Currently on platforms designed for Windows, connections between CIO2 and > sensors are not properly defined in DSDT. This

Re: [PATCH] mips: fix Section mismatch in reference

2020-11-30 Thread Nick Desaulniers
On Fri, Nov 27, 2020 at 12:39 AM Anders Roxell wrote: > > When building mips tinyconfig with clang the following error show up: > > WARNING: modpost: vmlinux.o(.text+0x1940c): Section mismatch in reference > from the function r4k_cache_init() to the function > .init.text:loongson3_sc_init() > Th

Re: [PATCH v2 1/4] x86/signal: Introduce helpers to get the maximum signal frame size

2020-11-30 Thread Bae, Chang Seok
> On Nov 25, 2020, at 20:17, Borislav Petkov wrote: > > On Thu, Nov 19, 2020 at 11:02:34AM -0800, Chang S. Bae wrote: >> diff --git a/arch/x86/include/asm/sigframe.h >> b/arch/x86/include/asm/sigframe.h >> index 84eab2724875..ac77f3f90bc9 100644 >> --- a/arch/x86/include/asm/sigframe.h >> +++ b

Re: [PATCH v2 3/4] Kbuild: make DWARF version a choice

2020-11-30 Thread Nick Desaulniers
On Mon, Nov 30, 2020 at 10:05 AM Masahiro Yamada wrote: > > On Wed, Nov 4, 2020 at 9:53 AM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > Modifies CONFIG_DEBUG_INFO_DWARF4 to be a member of a choice. Adds an > > explicit CONFIG_DEBUG_INFO_DWARF2, which is the default. Does so in a > >

Re: [PATCH] proc: Allow pid_revalidate() during LOOKUP_RCU

2020-11-30 Thread Eric W. Biederman
Stephen Brennan writes: > The pid_revalidate() function requires dropping from RCU into REF lookup > mode. When many threads are resolving paths within /proc in parallel, > this can result in heavy spinlock contention as each thread tries to > grab a reference to the /proc dentry (and drop it sho

Re: [PATCH] soundwire: Fix error return code in sdw_compute_port_params

2020-11-30 Thread Pierre-Louis Bossart
On 11/25/20 12:50 AM, Qinglang Miao wrote: Fix to return the error code -EINVAL in sdw_compute_port_params instead of 0. Fixes: 9026118f20e2 ("soundwire: Add generic bandwidth allocation algorithm") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao Thanks for the patch. The test covers

Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device

2020-11-30 Thread Sakari Ailus
Hi Daniel, Thanks for the patch. On Mon, Nov 30, 2020 at 01:31:29PM +, Daniel Scally wrote: > On platforms where ACPI is designed for use with Windows, resources > that are intended to be consumed by sensor devices are sometimes in > the _CRS of a dummy INT3472 device upon which the sensor de

Re: linux-next: manual merge of the tip tree with the cpupower tree

2020-11-30 Thread Shuah Khan
On 11/22/20 7:42 PM, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the tip tree got a conflict in: tools/power/cpupower/utils/helpers/misc.c between commit: 748f0d70087c ("cpupower: Provide online and offline CPU information") from the cpupower tree and commit: 8113ab

Re: [PATCH 2/2] mm: memcontrol: account pagetables per node

2020-11-30 Thread Shakeel Butt
On Mon, Nov 30, 2020 at 12:21 PM Johannes Weiner wrote: > > On Wed, Nov 25, 2020 at 04:56:03PM -0800, Shakeel Butt wrote: > > For many workloads, pagetable consumption is significant and it makes > > sense to expose it in the memory.stat for the memory cgroups. However at > > the moment, the paget

Re: [PATCH v4 05/25] coresight: Convert coresight_timeout to use access abstraction

2020-11-30 Thread Mathieu Poirier
On Thu, Nov 19, 2020 at 04:45:27PM +, Suzuki K Poulose wrote: > Convert the generic routines to use the new access abstraction layer > gradually, starting with coresigth_timeout. > > Cc: Mike Leach > Reviewed-by: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > Changes since v3: >

[PATCH v2] scsi: qla2xxx: remove trailing semicolon in macro definition

2020-11-30 Thread trix
From: Tom Rix The macro use will already have a semicolon. Remove unneeded escaped newline. Signed-off-by: Tom Rix --- v2: remove unneeded escaped newline --- drivers/scsi/qla2xxx/qla_def.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/d

Re: [PATCH] mm: list_lru: hold nlru lock to avoid reading transient negative nr_items

2020-11-30 Thread Yang Shi
On Mon, Nov 30, 2020 at 12:09 PM Roman Gushchin wrote: > > On Mon, Nov 30, 2020 at 10:45:14AM -0800, Yang Shi wrote: > > When investigating a slab cache bloat problem, significant amount of > > negative dentry cache was seen, but confusingly they neither got shrunk > > by reclaimer (the host has v

Re: [PATCH v2 1/1] vfio/type1: Add vfio_group_domain()

2020-11-30 Thread Alex Williamson
On Thu, 26 Nov 2020 09:27:26 +0800 Lu Baolu wrote: > Add the API for getting the domain from a vfio group. This could be used > by the physical device drivers which rely on the vfio/mdev framework for > mediated device user level access. The typical use case like below: > > unsigned int pa

Re: [PATCH 1/2] sched/idle: Fix arch_cpu_idle() vs tracing

2020-11-30 Thread Guenter Roeck
On Fri, Nov 20, 2020 at 12:41:46PM +0100, Peter Zijlstra wrote: > We call arch_cpu_idle() with RCU disabled, but then use > local_irq_{en,dis}able(), which invokes tracing, which relies on RCU. > > Switch all arch_cpu_idle() implementations to use > raw_local_irq_{en,dis}able() and carefully manag

Re: [PATCH 0/2] memcg: add pagetable comsumption to memory.stat

2020-11-30 Thread Shakeel Butt
On Mon, Nov 30, 2020 at 12:34 PM Roman Gushchin wrote: > > On Wed, Nov 25, 2020 at 04:56:01PM -0800, Shakeel Butt wrote: > > Many workloads consumes significant amount of memory in pagetables. This > > patch series exposes the pagetable comsumption for each memory cgroup. > > Hi Shakeel! > > The c

RE: [PATCH net-next v3 00/12] net: dsa: microchip: PTP support for KSZ956x

2020-11-30 Thread Tristram.Ha
> Hi Microchip, > > as ACL based blocking of PTP traffic seems not to work, I tried to install MAC > based static lookup rules on the switch I successfully managed to block other > non-PTP traffic, but for PTP the lookup table entry (see below) seems not to > work. Incoming SYNC messages on port a

Re: [PATCH v4 06/25] coresight: Convert claim/disclaim operations to use access wrappers

2020-11-30 Thread Mathieu Poirier
On Thu, Nov 19, 2020 at 04:45:28PM +, Suzuki K Poulose wrote: > Convert the generic CLAIM tag management APIs to use the > device access layer abstraction. > > Cc: Mathieu Poirier > Cc: Mike Leach > Signed-off-by: Suzuki K Poulose > --- > Changes since V3: > - Removed WARN_ON(!csdev) check

Re: [PATCH] hwmon: (applesmc) Add DMI product matches for Intel-based Xserves (non-RackMac*)

2020-11-30 Thread Guenter Roeck
On Sat, Nov 28, 2020 at 10:54:03AM -0600, Joe Jamison wrote: > This patch adds the DMI Product ID for Intel-based Xserve machines. > They use the same SMC accessible from the same data ports. > > The 'Xserve' product ID only resolves to SMC-containing > Intel-based Xserves, as the PowerPC machines

Re: [PATCH v2 1/2] KVM: SVM: Move asid to vcpu_svm

2020-11-30 Thread Ashish Kalra
Hello Paolo, I believe one of my teammates is currently working on adding a KVM selftest for SEV and SEV-ES. Thanks, Ashish On Mon, Nov 30, 2020 at 03:41:41PM +0100, Paolo Bonzini wrote: > On 29/11/20 10:41, Ashish Kalra wrote: > > From: Ashish Kalra > > > > This patch breaks SEV guests. > >

Re: [PATCH 0/2] memcg: add pagetable comsumption to memory.stat

2020-11-30 Thread Roman Gushchin
On Mon, Nov 30, 2020 at 01:01:18PM -0800, Shakeel Butt wrote: > On Mon, Nov 30, 2020 at 12:34 PM Roman Gushchin wrote: > > > > On Wed, Nov 25, 2020 at 04:56:01PM -0800, Shakeel Butt wrote: > > > Many workloads consumes significant amount of memory in pagetables. This > > > patch series exposes the

[PATCH v2 1/6] dt-bindings: PCI: Add bindings for Brcmstb EP voltage regulators

2020-11-30 Thread Jim Quinlan
Quite similar to the regulator bindings found in "rockchip-pcie-host.txt", this allows optional regulators to be attached and controlled by the PCIe RC driver. Signed-off-by: Jim Quinlan --- .../devicetree/bindings/pci/brcm,stb-pcie.yaml | 12 1 file changed, 12 insertions(+)

Re: [PATCH v10 3/6] dt-bindings: leds: Add LED_FUNCTION_MOONLIGHT definitions

2020-11-30 Thread Rob Herring
On Fri, 27 Nov 2020 11:28:53 +0800, Gene Chen wrote: > From: Gene Chen > > Add LED_FUNCTION_MOONLIGHT definitions > > Signed-off-by: Gene Chen > Acked-by: Jacek Anaszewski > --- > include/dt-bindings/leds/common.h | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring

[PATCH v2 0/6] brcmstb: add EP regulators and panic handler

2020-11-30 Thread Jim Quinlan
v2 -- Use regulator bulk API rather than multiple calls (MarkB). v1 -- Bindings are added for fixed regulators that may power the EP device. -- The brcmstb RC driver is modified to control these regulators during probe, suspend, and resume. -- 7216 type SOCs have additional error repor

[PATCH v2 4/6] PCI: brcmstb: Give 7216 SOCs their own config type

2020-11-30 Thread Jim Quinlan
This distinction is required for an imminent commit. Signed-off-by: Jim Quinlan --- drivers/pci/controller/pcie-brcmstb.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c index cbdb315d4b2f.

[PATCH v2 6/6] PCI: brcmstb: check return value of clk_prepare_enable()

2020-11-30 Thread Jim Quinlan
The check was missing on PCIe resume. Signed-off-by: Jim Quinlan --- drivers/pci/controller/pcie-brcmstb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c index 3983d6c80769..64cf534e44d0 100644

Re: [PATCH v2 2/2] arm64: scs: use vmapped IRQ and SDEI shadow stacks

2020-11-30 Thread Sami Tolvanen
On Mon, Nov 30, 2020 at 3:49 AM Will Deacon wrote: > > On Tue, Nov 24, 2020 at 11:59:40AM -0800, Sami Tolvanen wrote: > > Use scs_alloc() to allocate also IRQ and SDEI shadow stacks instead of > > using statically allocated stacks. > > > > Signed-off-by: Sami Tolvanen > > --- > > arch/arm64/kern

[PATCH v2 3/6] PCI: brcmstb: Do not turn off regulators if EP can wake up

2020-11-30 Thread Jim Quinlan
If any downstream device may wake up during S2/S3 suspend, we do not want to turn off its power when suspending. Signed-off-by: Jim Quinlan --- drivers/pci/controller/pcie-brcmstb.c | 58 +++ 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/drivers/pci/contr

Re: [PATCH 0/2] memcg: add pagetable comsumption to memory.stat

2020-11-30 Thread Shakeel Butt
On Mon, Nov 30, 2020 at 1:10 PM Roman Gushchin wrote: > > On Mon, Nov 30, 2020 at 01:01:18PM -0800, Shakeel Butt wrote: > > On Mon, Nov 30, 2020 at 12:34 PM Roman Gushchin wrote: > > > > > > On Wed, Nov 25, 2020 at 04:56:01PM -0800, Shakeel Butt wrote: > > > > Many workloads consumes significant

[PATCH v2 5/6] PCI: brcmstb: Add panic/die handler to RC driver

2020-11-30 Thread Jim Quinlan
Whereas most PCIe HW returns 0x on illegal accesses and the like, by default Broadcom's STB PCIe controller effects an abort. This simple handler determines if the PCIe controller was the cause of the abort and if so, prints out diagnostic info. Example output: brcm-pcie 8b2.pcie: E

[PATCH v2 2/6] PCI: brcmstb: Add control of EP voltage regulator(s)

2020-11-30 Thread Jim Quinlan
Control of EP regulators by the RC is needed because of the chicken-and-egg situation: although the regulator is "owned" by the EP and would be best handled on its driver, the EP cannot be discovered and probed unless its regulator is already turned on. Signed-off-by: Jim Quinlan --- drivers/pci

Re: [PATCH v10 4/6] dt-bindings: leds: common: Increase LED_COLOR_ID_* maximum size

2020-11-30 Thread Rob Herring
On Fri, Nov 27, 2020 at 11:28:54AM +0800, Gene Chen wrote: > From: Gene Chen > > Increase LED_COLOR_ID maximum size for LED_COLOR_ID_RGB > > Signed-off-by: Gene Chen > --- > Documentation/devicetree/bindings/leds/common.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --g

Re: [PATCH v9 2/3] dt-bindings: USB: Add bindings for Ingenic JZ4775 and X2000.

2020-11-30 Thread Rob Herring
On Mon, 16 Nov 2020 22:19:05 +0800, 周琰杰 (Zhou Yanjie) wrote: > Move Ingenic USB PHY bindings from Documentation/devicetree/bindings/usb > to Documentation/devicetree/bindings/phy, and add bindings for JZ4775 SoC > and X2000 SoC. > > Signed-off-by: 周琰杰 (Zhou Yanjie) > --- > > Notes: > v8: >

Re: [PATCH 0/5] drop unused BACKLIGHT_GENERIC option

2020-11-30 Thread Sam Ravnborg
Hi Krzysztof, On Mon, Nov 30, 2020 at 10:25:01PM +0200, Krzysztof Kozlowski wrote: > On Mon, Nov 30, 2020 at 08:11:33PM +0100, Sam Ravnborg wrote: > > On Mon, Nov 30, 2020 at 03:21:32PM +, Andrey Zhizhikin wrote: > > > Since the removal of generic_bl driver from the source tree in commit > > >

Re: [PATCH v10 17/19] ARM: tegra: Add EMC OPP properties to Tegra20 device-trees

2020-11-30 Thread Jon Hunter
xt/kernel/drivers/opp/of.c:875 _of_add_opp_table_v2+0x598/0x61c [2.529746] Modules linked in: [2.540140] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.0-rc5-next-20201130 #1 [2.554606] Hardware name: NVIDIA Tegra SoC (Flattened Device Tree) [2.560892] [] (unwind_backtrace) from []

Re: [PATCH] kretprobe: avoid re-registration of the same kretprobe earlier

2020-11-30 Thread Steven Rostedt
Masami, Can you review this patch, and also, should this go to -rc and stable? -- Steve On Tue, 24 Nov 2020 19:57:19 +0800 Wang ShaoBo wrote: > Our system encountered a re-init error when re-registering same kretprobe, > where the kretprobe_instance in rp->free_instances is illegally access

Re: [PATCH v4 11/25] coresight: etm4x: Define DEVARCH register fields

2020-11-30 Thread Mathieu Poirier
On Thu, Nov 19, 2020 at 04:45:33PM +, Suzuki K Poulose wrote: > Define the fields of the DEVARCH register for identifying > a component as an ETMv4.x unit. Going forward, we use the > DEVARCH register for the component identification, rather > than the TRCIDR3. > > Cc: Mathieu Poirier > Cc: M

Re: [PATCH 0/5] tty: add flag to suppress ready signalling on open

2020-11-30 Thread Mychaela Falconia
A quick background for Greg and others who haven't seen the Sept-Oct discussion between me and Johan on the linux-usb ML: I am the hardware engineer who designed the FT2232D-based DUART28C adapter board, and it was my desire to have this custom FT2232D adapter supported in mainline Linux that trigg

linux-next: Signed-off-by missing for commit in the rockchip tree

2020-11-30 Thread Stephen Rothwell
Hi all, Commit f166ed782080 ("arm64: defconfig: Enable RTC_DRV_HYM8563") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpEJWLOVk12D.pgp Description: OpenPGP digital signature

Re: [PATCH] msm/mdp5: Fix some kernel-doc warnings

2020-11-30 Thread abhinavk
On 2020-11-29 10:12, Rob Clark wrote: From: Rob Clark Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c:227: warning: Function parameter or member 'ctl' not described in 'mdp5_ctl_set_encoder_state' drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c:227: warning

Re: [PATCH 15/40] drm/msm/disp/dpu1/dpu_hw_interrupts: Demote kernel-doc formatting misuse

2020-11-30 Thread abhinavk
On 2020-11-26 05:42, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c:246: error: Cannot parse struct or union! drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c:756: error: Cannot parse struct or union! Cc: Rob Clark Cc: Sea

<    6   7   8   9   10   11   12   13   14   15   >