Re: [RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-12 Thread Jim Mattson
On Wed, Aug 12, 2020 at 8:00 AM Sean Christopherson wrote: > > On Mon, Aug 10, 2020 at 05:05:36PM -0700, Jim Mattson wrote: > > On Fri, Aug 7, 2020 at 1:47 AM Chenyi Qiang wrote: > > > > > > PKS MSR passes through guest directly. Configure the MSR to match the > > > L0/L1 settings so that nested

Re: [PATCH v6] fuse: Add support for passthrough read/write

2020-08-12 Thread Jann Horn
[+Jens: can you have a look at that ->ki_filp switcheroo in fuse_passthrough_read_write_iter() and help figure out whether that's fine? This seems like your area of expertise.] On Wed, Aug 12, 2020 at 6:15 PM Alessio Balsini wrote: > Add support for filesystem passthrough read/write of files

Re: [PATCH 1/2 v3] rseq/membarrier: add MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ

2020-08-12 Thread Mathieu Desnoyers
- On Aug 11, 2020, at 5:08 PM, Peter Oskolkov p...@posk.io wrote: > On Mon, Aug 10, 2020 at 11:27 PM Peter Zijlstra wrote: >> >> On Mon, Aug 10, 2020 at 05:09:58PM -0700, Peter Oskolkov wrote: >> > @@ -27,6 +35,12 @@ >> > >> > static void ipi_mb(void *info) >> > { >> >> The #ifdef wants

[PATCH] scripts: coccicheck: Change default value for parallelism

2020-08-12 Thread Sumera Priyadarsini
By default, coccicheck utilizes all available threads to implement parallelisation. However, when hyperthreading is enabled, this leads to all threads per core being occupied resulting in longer wall-clock times and higher power consumption. Hence, to improve performance, modify coccicheck to use

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-12 Thread Linus Torvalds
On Tue, Aug 11, 2020 at 5:05 PM David Howells wrote: > > Well, the start of it was my proposal of an fsinfo() system call. Ugh. Ok, it's that thing. This all seems *WAY* over-designed - both your fsinfo and Miklos' version. What's wrong with fstatfs()? All the extra magic metadata seems to not

Re: [PATCH v4 2/2] xen: add helpers to allocate unpopulated memory

2020-08-12 Thread kernel test robot
Hi Roger, Thank you for the patch! Yet something to improve: [auto build test ERROR on xen-tip/linux-next] [also build test ERROR on linux/master hnaz-linux-mm/master linus/master v5.8 next-20200812] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH 6/7] KVM: x86: Use common definition for kvm_nested_vmexit tracepoint

2020-08-12 Thread Sean Christopherson
On Tue, Jul 21, 2020 at 03:59:06PM +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > On Mon, Jul 20, 2020 at 06:52:15PM +0200, Vitaly Kuznetsov wrote: > >> Sean Christopherson writes: > >> > +TRACE_EVENT_KVM_EXIT(kvm_nested_vmexit); > >> > > >> > /* > >> > * Tracepoint for

Re: [PATCH v4 5/6] at24: Support probing while off

2020-08-12 Thread Bartosz Golaszewski
On Tue, Aug 11, 2020 at 10:00 AM Sakari Ailus wrote: > > Hi Bartosz, > > On Mon, Aug 10, 2020 at 08:12:00PM +0200, Bartosz Golaszewski wrote: > > On Mon, Aug 10, 2020 at 10:26 AM Sakari Ailus wrote: > > > > > > > [snip] > > > > > > > > > > Rafael: I think that there are two issues with patch

[PATCH] KVM: nVMX: Add VM-Enter failed tracepoints for super early checks

2020-08-12 Thread Sean Christopherson
Add tracepoints for the early consistency checks in nested_vmx_run(). The "VMLAUNCH vs. VMRESUME" check in particular is useful to trace, as there is no architectural way to check VMCS.LAUNCH_STATE, and subtle bugs such as VMCLEAR on the wrong HPA can lead to confusing errors in the L1 VMM.

Re: [PATCH] PCI: Introduce flag for detached virtual functions

2020-08-12 Thread Matthew Rosato
On 8/12/20 12:43 PM, Alex Williamson wrote: On Wed, 12 Aug 2020 10:50:17 -0400 Matthew Rosato wrote: s390x has the notion of providing VFs to the kernel in a manner where the associated PF is inaccessible other than via firmware. These are not treated as typical VFs and access to them is

[PATCH] Fpga: Documentation: Replace deprecated :c:func: Usage

2020-08-12 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/driver-api/fpga/fpga-bridge.rst | 6 +++--- Documentation/driver-api/fpga/fpga-mgr.rst | 6 +++--- .../driver-api/fpga/fpga-programming.rst | 16

Re: [PATCH v5 06/17] sched/debug: Output SD flag names rather than their values

2020-08-12 Thread kernel test robot
Hi Valentin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/sched/core] [also build test WARNING on tip/auto-latest linux/master linus/master v5.8 next-20200812] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

[PATCH] sched/debug: fix noderef.cocci warnings

2020-08-12 Thread kernel test robot
--- url: https://github.com/0day-ci/linux/commits/Valentin-Schneider/sched-Instrument-sched-domain-flags/20200812-205638 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 949bcb8135a96a6923e676646bd29cbe69e8350f debug.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH v7] Add a "nosymfollow" mount option.

2020-08-12 Thread Ross Zwisler
On Tue, Aug 11, 2020 at 7:43 PM Aleksa Sarai wrote: > On 2020-08-11, Ross Zwisler wrote: > > From: Mattias Nissler > > > > For mounts that have the new "nosymfollow" option, don't follow symlinks > > when resolving paths. The new option is similar in spirit to the > > existing "nodev",

Re: [PATCH] net: Fix potential memory leak in proto_register()

2020-08-12 Thread Cong Wang
On Wed, Aug 12, 2020 at 2:21 AM linmiaohe wrote: > > Hi all: > David Miller wrote: > >From: Cong Wang > >Date: Tue, 11 Aug 2020 16:02:51 -0700 > > > >>> @@ -3406,6 +3406,16 @@ static void sock_inuse_add(struct net *net, > >>> int val) } #endif > >>> > >>> +static void tw_prot_cleanup(struct

[PATCH] objtool: support symtab_shndx during dump

2020-08-12 Thread Kristen Carlson Accardi
When getting the symbol index number, make sure to use the extended symbol table information in order to support symbol index's greater than 64K. Signed-off-by: Kristen Carlson Accardi --- tools/objtool/orc_dump.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff

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

2020-08-12 Thread Andrei Vagin
On Tue, Aug 11, 2020 at 01:23:35PM +0300, Kirill Tkhai wrote: > On 10.08.2020 20:34, Andrei Vagin wrote: > > On Fri, Aug 07, 2020 at 11:47:57AM +0300, Kirill Tkhai wrote: > >> On 06.08.2020 11:05, Andrei Vagin wrote: > >>> On Mon, Aug 03, 2020 at 01:03:17PM +0300, Kirill Tkhai wrote: > On

[PATCH] KVM: nVMX: Morph notification vector IRQ on nested VM-Enter to pending PI

2020-08-12 Thread Sean Christopherson
On successful nested VM-Enter, check for pending interrupts and convert the highest priority interrupt to a pending posted interrupt if it matches L2's notification vector. If the vCPU receives a notification interrupt before nested VM-Enter (assuming L1 disables IRQs before doing VM-Enter), the

Re: [PATCH v7] Makefile: Add clang-tidy and static analyzer support to makefile

2020-08-12 Thread Masahiro Yamada
On Wed, Aug 12, 2020 at 10:24 AM 'Nathan Huckleberry' via Clang Built Linux wrote: > > Sounds good. Do you think this patch is ready to land then? I do not think so. I pointed out the CC=clang check was not working. I see false positive errors from GCC commands. This patch does not use the

Re: [PATCH v3 02/18] gpio: uapi: define uAPI v2

2020-08-12 Thread Bartosz Golaszewski
On Wed, Aug 12, 2020 at 3:55 AM Kent Gibson wrote: > > On Tue, Aug 11, 2020 at 09:11:41PM +0200, Bartosz Golaszewski wrote: > > On Sun, Aug 9, 2020 at 3:26 PM Kent Gibson wrote: > > > > [snip] > > > > > > +/* > > > + * Maximum number of requested lines. > > > + * > > > + * Must be no greater

[PATCH] IIO: Documentation: Replace deprecated :c:func: Usage

2020-08-12 Thread Puranjay Mohan
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan --- Documentation/driver-api/iio/core.rst | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/driver-api/iio/core.rst

Re: stable-rc 4.14: arm64: Internal error: Oops: clk_reparent __clk_set_parent_before on db410c

2020-08-12 Thread Stephen Boyd
Quoting Stephen Boyd (2020-07-23 03:26:02) > Quoting Naresh Kamboju (2020-07-23 03:10:37) > > On Thu, 23 Jul 2020 at 13:36, Stephen Boyd wrote: > > > > > > It sounds like maybe you need this patch? > > > > > > bdcf1dc25324 ("clk: Evict unregistered clks from parent caches") > > > > Cherry-pick

Re: [PATCH v2] x86/boot/compressed: Disable relocation relaxation

2020-08-12 Thread Nick Desaulniers
On Tue, Aug 11, 2020 at 5:43 PM Arvind Sankar wrote: > > The x86-64 psABI [0] specifies special relocation types > (R_X86_64_[REX_]GOTPCRELX) for indirection through the Global Offset > Table, semantically equivalent to R_X86_64_GOTPCREL, which the linker > can take advantage of for optimization

[PATCH 3/3] Makefile: Add clang-tidy and static analyzer support to makefile

2020-08-12 Thread Masahiro Yamada
From: Nathan Huckleberry This patch adds clang-tidy and the clang static-analyzer as make targets. The goal of this patch is to make static analysis tools usable and extendable by any developer or researcher who is familiar with basic c++. The current static analysis tools require intimate

[PATCH 0/3] kbuild: clang-tidy

2020-08-12 Thread Masahiro Yamada
I improved gen_compile_commands.py in the first two patches, then rebased Nathan's v7 [1] on top of them. To save time, I modified the Makefile part. No change for run-clang-tools.py I am not sure if the new directory, scripts/clang-tools/, is worth creating only for 2 files, but I do not have

[PATCH 2/3] gen_compile_commands: wire up build rule to Makefile

2020-08-12 Thread Masahiro Yamada
Currently, you need to explicitly run scripts/gen_compile_commands.py to create compile_commands.json. It traverses the object tree (you need to pass the -d option to deal with a separate output tree), and parses all the .*.cmd file found. If you rebuild the kernel over again without 'make

[PATCH 1/3] gen_compile_commands: parse only the first line of .*.cmd files

2020-08-12 Thread Masahiro Yamada
After the allmodconfig build, this script takes about 5 sec on my machine. Most of the run-time is consumed for needless regex matching. We know the format of .*.cmd file; the first line is the build command. There is no need to parse the remaining. With this optimization, now it runs in about 1

[GIT PULL] More clk changes for the merge window

2020-08-12 Thread Stephen Boyd
The following changes since commit 22b1408b0d282c1cd09846f8e3fe3a1e9b962eb4: Merge tag 'clk-imx-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into clk-imx (2020-07-21 01:02:00 -0700) are available in the Git repository at:

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-12 Thread Al Viro
On Wed, Aug 12, 2020 at 07:16:37PM +0200, Miklos Szeredi wrote: > On Wed, Aug 12, 2020 at 6:33 PM Al Viro wrote: > > > > On Wed, Aug 12, 2020 at 05:13:14PM +0200, Miklos Szeredi wrote: > > > > Why does it have to have a struct mount? It does not have to use > > > dentry/mount based path lookup.

Re: [PATCH] x86/boot/compressed: Disable relocation relaxation for non-pie link

2020-08-12 Thread Nick Desaulniers
On Tue, Aug 11, 2020 at 5:42 PM Arvind Sankar wrote: > > On Tue, Aug 11, 2020 at 04:51:23PM -0700, Nick Desaulniers wrote: > > On Tue, Aug 11, 2020 at 4:43 PM Arvind Sankar wrote: > > > > > > On Tue, Aug 11, 2020 at 04:04:40PM -0700, Nick Desaulniers wrote: > > > > On Tue, Aug 11, 2020 at 3:44

[PATCH v7] gpio: pca953x: Add Maxim MAX7313 PWM support

2020-08-12 Thread Miquel Raynal
The MAX7313 chip is fully compatible with the PCA9535 on its basic functions but can also manage the intensity on each of its ports with PWM. Each output is independent and may be tuned with 16 values (4 bits per output). The period is always 32kHz, only the duty-cycle may be changed. One can use

drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3194 cudbg_collect_flash() error: uninitialized symbol 'rc'.

2020-08-12 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fb893de323e2d39f7a1f6df425703a2edbdf56ea commit: 17b332f48074e7ee2169ee4268ced6274e1c95c3 cxgb4: add support to read serial flash date: 8 weeks ago config: parisc-randconfig-m031-20200811 (attached as

Re: [PATCH v6] gpio: pca953x: Add Maxim MAX7313 PWM support

2020-08-12 Thread Miquel Raynal
Hello Uwe, Thanks for the review! Uwe Kleine-König wrote on Fri, 3 Jul 2020 16:53:13 +0200: > Hello Miquel, > > On Sun, May 03, 2020 at 12:54:53PM +0200, Miquel Raynal wrote: > > +static u8 max7313_pwm_get_intensity(struct pca953x_chip *pca_chip, > > + unsigned

arch/mips/include/asm/pgalloc.h:81:22: error: redefinition of 'pud_alloc_one'

2020-08-12 Thread kernel test robot
-p001-20200812 (attached as .config) compiler: mips64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout

Re: [PATCH] Re: KASAN: use-after-free Read in path_init (2)

2020-08-12 Thread Linus Torvalds
On Tue, Aug 11, 2020 at 10:56 PM Al Viro wrote: > > On Tue, Aug 11, 2020 at 09:29:47PM -0700, Linus Torvalds wrote: > > > > Do you want me to apply directly, or do you have other fixes pending > > and I'll get a pull request? > > Not at the moment - I can throw it into #fixes and send a pull

Re: [Linux-kernel-mentees] [PATCH] hfs, hfsplus: Fix NULL pointer dereference in hfs_find_init()

2020-08-12 Thread Peilin Ye
On Wed, Aug 12, 2020 at 11:59:04AM +0300, Dan Carpenter wrote: > Yeah, the patch doesn't work at all. I looked at one call tree and it > is: > > hfs_mdb_get() tries to allocate HFS_SB(sb)->ext_tree. > > HFS_SB(sb)->ext_tree = hfs_btree_open(sb, HFS_EXT_CNID, hfs_ext_keycmp); >

[GIT PULL] Ceph updates for 5.9-rc1

2020-08-12 Thread Ilya Dryomov
Hi Linus, The following changes since commit bcf876870b95592b52519ed4aafcf9d95999bc9c: Linux 5.8 (2020-08-02 14:21:45 -0700) are available in the Git repository at: https://github.com/ceph/ceph-client.git tags/ceph-for-5.9-rc1 for you to fetch changes up to

Re: [PATCH v4 00/10] Function Granular KASLR

2020-08-12 Thread Kristen Carlson Accardi
On Tue, 2020-08-04 at 14:23 -0400, Joe Lawrence wrote: > On Fri, Jul 17, 2020 at 09:59:57AM -0700, Kristen Carlson Accardi > wrote: > > Function Granular Kernel Address Space Layout Randomization > > (fgkaslr) > > - > > > > > >

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-12 Thread Miklos Szeredi
On Wed, Aug 12, 2020 at 6:33 PM Al Viro wrote: > > On Wed, Aug 12, 2020 at 05:13:14PM +0200, Miklos Szeredi wrote: > > Why does it have to have a struct mount? It does not have to use > > dentry/mount based path lookup. > > What the fuck? So we suddenly get an additional class of objects >

Re: [PATCH 1/2] PM / Domains: Add GENPD_FLAG_SUSPEND_ON flag

2020-08-12 Thread Sibi Sankar
Uffe, Thanks for taking time to review the series! On 2020-08-12 15:15, Ulf Hansson wrote: On Tue, 11 Aug 2020 at 21:03, Sibi Sankar wrote: This is for power domains which needs to stay powered on for suspend but can be powered on/off as part of runtime PM. This flag is aimed at power

Re: [PATCH] drm/bridge/tc358775: Fixes bus formats read

2020-08-12 Thread Vinay Simha B N
laurent, if i add the .atomic_get_input_bus_fmts = tc_bridge_get_input_bus_fmts, with the implementation suggested, system does not boot fully, the reason is, we capture all the supported input formats, but not sure where to set the final input format. Please suggest. for (i = 0; i <

Re: [PATCH 00/44] SPMI patches needed by Hikey 970

2020-08-12 Thread Joe Perches
Perhaps these trivial bits on top: --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 5 +++-- drivers/staging/hikey9xx/hi6421v600-regulator.c | 6 +++--- drivers/staging/hikey9xx/hisi-spmi-controller.c | 21 + 3 files changed, 19 insertions(+), 13 deletions(-) diff

Re: [dm-devel] [RFC PATCH v5 00/11] Integrity Policy Enforcement LSM (IPE)

2020-08-12 Thread Deven Bowers
On 8/12/2020 7:18 AM, Chuck Lever wrote: On Aug 11, 2020, at 5:03 PM, James Morris wrote: On Sat, 8 Aug 2020, Chuck Lever wrote: My interest is in code integrity enforcement for executables stored in NFS files. My struggle with IPE is that due to its dependence on dm-verity, it does

Re: [PATCH v5 06/17] sched/debug: Output SD flag names rather than their values

2020-08-12 Thread kernel test robot
Hi Valentin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/sched/core] [also build test WARNING on tip/auto-latest linux/master linus/master v5.8 next-20200812] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH v7 2/7] iommu/uapi: Add argsz for user filled data

2020-08-12 Thread Auger Eric
Hi, On 7/30/20 2:21 AM, Jacob Pan wrote: > As IOMMU UAPI gets extended, user data size may increase. To support > backward compatibiliy, this patch introduces a size field to each UAPI s/compatibiliy/compatibility > data structures. It is *always* the responsibility for the user to fill in > the

Re: [RESEND v7, PATCH 1/7] dt-bindings: mediatek: add rdma_fifo_size description for mt8183 display

2020-08-12 Thread Rob Herring
On Sat, Aug 08, 2020 at 10:53:45AM +0800, Yongqiang Niu wrote: > rdma fifo size may be different even in same SOC, add this > property to the corresponding rdma > > Change-Id: I67635ec7f3f59cf4cbc7737285e5e28ff0ab71c9 > Signed-off-by: Yongqiang Niu > --- >

Re: [PATCH v4] perf test: Introduce script for Arm CoreSight testing

2020-08-12 Thread Suzuki K Poulose
Hi Leo, On 08/06/2020 08:02 AM, Leo Yan wrote: We need a simple method to test Perf with Arm CoreSight drivers, this could be used for smoke testing when new patch is coming for perf or CoreSight drivers, and we also can use the test to confirm if the CoreSight has been enabled successfully on

Re: [PATCH v7 2/2] devicetree: hwmon: shtc1: add sensirion,shtc1.yaml

2020-08-12 Thread Rob Herring
On Fri, Aug 07, 2020 at 03:31:43PM +0800, Chris Ruehl wrote: > Add documentation for the newly added DTS support in the shtc1 driver. > To align with the drivers logic to have high precision by default > a boolean sensirion,low_precision is used to switch to low precision. low-precision > >

Re: [PATCH v17 14/21] mm/compaction: do page isolation first in compaction

2020-08-12 Thread Alexander Duyck
On Wed, Aug 12, 2020 at 4:44 AM Alex Shi wrote: > > > > 在 2020/8/11 下午10:47, Alexander Duyck 写道: > > On Tue, Aug 11, 2020 at 1:23 AM Alex Shi wrote: > >> > >> > >> > >> 在 2020/8/10 下午10:41, Alexander Duyck 写道: > >>> On Mon, Aug 10, 2020 at 6:10 AM Alex Shi > >>> wrote: > > > >

[PATCH 12/13] extcon: ptn5150: Convert to module_i2c_driver

2020-08-12 Thread Krzysztof Kozlowski
Use module_i2c_driver() to simplify driver init boilerplate. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-ptn5150.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c index

[PATCH 13/13] extcon: ptn5150: Convert to .probe_new

2020-08-12 Thread Krzysztof Kozlowski
The 'struct i2c_device_id' argument of probe function is not used, so convert the driver to simpler 'probe_new' interface. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-ptn5150.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v8 2/4] dt-bindings: usb: Add Qualcomm PMIC type C controller dt-binding

2020-08-12 Thread Rob Herring
On Wed, Aug 12, 2020 at 12:19:23AM -0700, Wesley Cheng wrote: > Introduce the dt-binding for enabling USB type C orientation and role > detection using the PM8150B. The driver will be responsible for receiving > the interrupt at a state change on the CC lines, reading the > orientation/role, and

Re: [PATCH v3 0/6] tracing: export event trace and trace_marker

2020-08-12 Thread Mathieu Poirier
On Tue, Aug 11, 2020 at 11:57:20AM +0800, Tingwei Zhang wrote: > Ftrace has ability to export trace packets to other destination. > Currently, only function trace can be exported. This series extends the > support to event trace and trace_maker. STM is one possible destination to > export ftrace.

[PATCH v3 04/10] PCI/RCEC: Add pcie_walk_rcec() to walk associated RCiEPs

2020-08-12 Thread Sean V Kelley
From: Qiuxu Zhuo When an RCEC device signals error(s) to a CPU core, the CPU core needs to walk all the RCiEPs associated with that RCEC to check errors. So add the function pcie_walk_rcec() to walk all RCiEPs associated with the RCEC device. Co-developed-by: Sean V Kelley Signed-off-by: Sean

[PATCH v3 02/10] PCI/RCEC: Bind RCEC devices to the Root Port driver

2020-08-12 Thread Sean V Kelley
From: Qiuxu Zhuo If a Root Complex Integrated Endpoint (RCiEP) is implemented, errors may optionally be sent to a corresponding Root Complex Event Collector (RCEC). Each RCiEP must be associated with no more than one RCEC. Interface errors are reported to the OS by RCECs. For an RCEC

[PATCH v3 06/10] PCI/AER: Apply function level reset to RCiEP on fatal error

2020-08-12 Thread Sean V Kelley
From: Qiuxu Zhuo Attempt to do function level reset for an RCiEP associated with an RCEC device on fatal error. Signed-off-by: Qiuxu Zhuo --- drivers/pci/pcie/err.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/drivers/pci/pcie/err.c

[PATCH v3 05/10] PCI/AER: Extend AER error handling to RCECs

2020-08-12 Thread Sean V Kelley
From: Jonathan Cameron Currently the kernel does not handle AER errors for Root Complex integrated End Points (RCiEPs)[0]. These devices sit on a root bus within the Root Complex (RC). AER handling is performed by a Root Complex Event Collector (RCEC) [1] which is a effectively a type of RCiEP

[PATCH v3 00/10] Add RCEC handling to PCI/AER

2020-08-12 Thread Sean V Kelley
Ongoing discussion on patch 4/9 [1]: [1] https://lore.kernel.org/linux-pci/20200810103252.0...@huawei.com/ Changes since v2 [2]: - Fix comment header for get_port_device_capability(). - Remove pcie_aer_is_native() check in pcie_do_recovery(). - Fix wording of error message in

[PATCH v3 08/10] PCI/AER: Add RCEC AER handling

2020-08-12 Thread Sean V Kelley
The Root Complex Event Collectors(RCEC) appear as peers to Root Ports and also have the AER capability. So add RCEC support to the current AER service driver and attach the AER service driver to the RCEC device. Co-developed-by: Qiuxu Zhuo Signed-off-by: Qiuxu Zhuo Signed-off-by: Sean V Kelley

[PATCH v3 09/10] PCI/PME: Add RCEC PME handling

2020-08-12 Thread Sean V Kelley
The Root Complex Event Collectors(RCEC) appear as peers of Root Ports and also have the PME capability. So add RCEC support to the current PME service driver and attach the PME service driver to the RCEC device. Co-developed-by: Qiuxu Zhuo Signed-off-by: Qiuxu Zhuo Signed-off-by: Sean V Kelley

[PATCH v3 01/10] PCI/RCEC: Add RCEC class code and extended capability

2020-08-12 Thread Sean V Kelley
From: Qiuxu Zhuo A PCIe Root Complex Event Collector(RCEC) has the base class 0x08, sub-class 0x07, and programming interface 0x00. Add the class code 0x0807 to identify RCEC devices and add the defines for the RCEC Endpoint Association Extended Capability. See PCI Express Base Specification,

[PATCH v3 07/10] PCI: Add 'rcec' field to pci_dev for associated RCiEPs

2020-08-12 Thread Sean V Kelley
From: Qiuxu Zhuo When attempting error recovery for an RCiEP associated with an RCEC device, there needs to be a way to update the Root Error Status, the Uncorrectable Error Status and the Uncorrectable Error Severity of the parent RCEC. So add the 'rcec' field to the pci_dev structure and

[PATCH v3 10/10] PCI/AER: Add RCEC AER error injection support

2020-08-12 Thread Sean V Kelley
From: Qiuxu Zhuo The Root Complex Event Collectors(RCEC) appear as peers to Root Ports and also have the AER capability. So add RCEC support to the current AER error injection driver. Signed-off-by: Qiuxu Zhuo Co-developed-by: Sean V Kelley Signed-off-by: Sean V Kelley ---

[PATCH v3 03/10] PCI/RCEC: Cache RCEC capabilities in pci_init_capabilities()

2020-08-12 Thread Sean V Kelley
Extend support for Root Complex Event Collectors by decoding and caching the RCEC Endpoint Association Extended Capabilities when enumerating. Use that cached information for later error source reporting. See PCI Express Base Specification, version 5.0-1, section 7.9.10. Suggested-by: Bjorn

Re: [PATCH v8 6/6] dt-bindings: hwmon: Add bindings for ADM1266

2020-08-12 Thread Rob Herring
On Wed, 12 Aug 2020 17:20:55 +0300, alexandru.tach...@analog.com wrote: > From: Alexandru Tachici > > Add bindings for the Analog Devices ADM1266 sequencer. > > Signed-off-by: Alexandru Tachici > --- > .../bindings/hwmon/adi,adm1266.yaml | 51 +++ > 1 file changed,

Re: [PATCH 0/9] r8a774e1 add support for DU, HDMI and LVDS

2020-08-12 Thread Lad, Prabhakar
Hi Laurent, On Wed, Aug 12, 2020 at 5:39 PM Laurent Pinchart wrote: > > Hi Prabhakar, > > Thank you for the patches. > > On Wed, Aug 12, 2020 at 03:02:08PM +0100, Lad Prabhakar wrote: > > Hi All, > > > > This patch series adds support for DU, HDMI and LVDS to RZ/G2H SoC. > > I have added patches

Re: [PATCH] PCI: Introduce flag for detached virtual functions

2020-08-12 Thread Alex Williamson
On Wed, 12 Aug 2020 10:50:17 -0400 Matthew Rosato wrote: > s390x has the notion of providing VFs to the kernel in a manner > where the associated PF is inaccessible other than via firmware. > These are not treated as typical VFs and access to them is emulated > by underlying firmware which can

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-12 Thread Szabolcs Nagy
The 08/12/2020 18:37, Ard Biesheuvel wrote: > module_frob_arch_sections > > On Wed, 12 Aug 2020 at 18:00, Jessica Yu wrote: > > > > +++ Szabolcs Nagy [12/08/20 15:15 +0100]: > > >The 08/12/2020 13:56, Will Deacon wrote: > > >> On Wed, Aug 12, 2020 at 12:40:05PM +0200, pet...@infradead.org wrote:

Re: [PATCH v5 4/4] printk: use the lockless ringbuffer

2020-08-12 Thread John Ogness
On 2020-08-11, Nick Desaulniers wrote: > From what I can tell, I think this patch ("printk: use the lockless > ringbuffer") breaks lx-dmesg in CONFIG_GDB_SCRIPTS. > > (gdb) lx-dmesg > Python Exception No symbol "log_first_idx" in specified > context.: > Error occurred in Python: No symbol

Re: [PATCH 0/9] r8a774e1 add support for DU, HDMI and LVDS

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patches. On Wed, Aug 12, 2020 at 03:02:08PM +0100, Lad Prabhakar wrote: > Hi All, > > This patch series adds support for DU, HDMI and LVDS to RZ/G2H SoC. I have added patches 1/9, 2/9, 4/9, 5/9 and 7/9 to my tree. I expect Geert to handle the rest. > Lad

Re: [PATCH 2/2] arm64: defconfig: Enable ptn5150 extcon driver

2020-08-12 Thread Krzysztof Kozlowski
On Wed, Aug 12, 2020 at 06:33:42PM +0200, Krzysztof Kozlowski wrote: > Enable the extcon driver for NXP PTN5150A chips (CC logic for USB Type-C > applications) present on some of i.MX8 evaluation boards (e.g. Variscite > Symphony board). > > Signed-off-by: Krzysztof Kozlowski > --- >

Re: [PATCH v7 1/7] docs: IOMMU user API

2020-08-12 Thread Auger Eric
Hi Jacob, On 7/30/20 2:21 AM, Jacob Pan wrote: > IOMMU UAPI is newly introduced to support communications between guest > virtual IOMMU and host IOMMU. There has been lots of discussions on how > it should work with VFIO UAPI and userspace in general. > > This document is intended to clarify the

Re: [PATCH] ALSA: hda/hdmi: Use force connectivity quirk on another HP desktop

2020-08-12 Thread Kai-Heng Feng
> On Aug 12, 2020, at 23:47, Takashi Iwai wrote: > > On Wed, 12 Aug 2020 17:43:27 +0200, > Kai-Heng Feng wrote: >> >> Hi, >> >>> On Aug 11, 2020, at 17:53, Kai-Heng Feng >>> wrote: >>> >>> There's another HP desktop has buggy BIOS which flags the Port >>> Connectivity bit as no

POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-12 Thread Petr Mladek
On Tue 2020-08-11 18:05:51, Petr Mladek wrote: > On Sat 2020-07-18 16:48:55, John Ogness wrote: > > On 2020-07-17, Linus Torvalds wrote: > > > Make sure you test the case of "fast concurrent readers". The last > > > time we did things like this, it was a disaster, because a concurrent > > >

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-12 Thread Ard Biesheuvel
module_frob_arch_sections On Wed, 12 Aug 2020 at 18:00, Jessica Yu wrote: > > +++ Szabolcs Nagy [12/08/20 15:15 +0100]: > >The 08/12/2020 13:56, Will Deacon wrote: > >> On Wed, Aug 12, 2020 at 12:40:05PM +0200, pet...@infradead.org wrote: > >> > On Wed, Aug 12, 2020 at 10:56:56AM +0200, Ard

Re: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-12 Thread Pierre-Louis Bossart
On 8/12/20 11:08 AM, Lu, Brent wrote: I also wonder what's really missing, too :) BTW, I took a look back at the thread, and CRAS seems using a very large buffer, namely: [ 52.434791] sound pcmC1D0p: PERIOD_SIZE [240:240] [ 52.434802] sound pcmC1D0p: BUFFER_SIZE [204480:204480]

Re: [PATCH 9/9] arm64: dts: renesas: r8a774e1-hihope-rzg2h: Setup DU clocks

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:17PM +0100, Lad Prabhakar wrote: > Setup up the required clocks for the DU to be functional. > > Signed-off-by: Lad Prabhakar > --- > arch/arm64/boot/dts/renesas/r8a774e1-hihope-rzg2h.dts | 11 +++ > 1 file changed,

Re: [PATCHv1 2/2] crypto: add Intel SoCFPGA crypto service driver

2020-08-12 Thread Richard Gong
I will move them to drivers/misc. Regards, Richard On 8/11/20 7:34 PM, Herbert Xu wrote: On Tue, Aug 11, 2020 at 08:56:22AM -0500, richard.g...@linux.intel.com wrote: From: Richard Gong Add Intel FPGA crypto service (FCS) driver to support new crypto services on Intel SoCFPGA platforms.

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-12 Thread Al Viro
On Wed, Aug 12, 2020 at 05:13:14PM +0200, Miklos Szeredi wrote: > > Lovely. And what of fchdir() to those? > > Not allowed. Not allowed _how_? Existing check is "is it a directory"; what do you propose? IIRC, you've mentioned using readdir() in that context, so it's not that you only allow

Re: [Linux-kernel-mentees] [PATCH] hfs, hfsplus: Fix NULL pointer dereference in hfs_find_init()

2020-08-12 Thread Peilin Ye
On Wed, Aug 12, 2020 at 10:18:52AM +0200, Greg Kroah-Hartman wrote: > On Wed, Aug 12, 2020 at 03:13:06AM -0400, Peilin Ye wrote: > > On Wed, Aug 12, 2020 at 09:08:27AM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Aug 12, 2020 at 02:55:56AM -0400, Peilin Ye wrote: > > > > Prevent hfs_find_init()

Re: [PATCH 8/9] arm64: dts: renesas: r8a774e1: Add LVDS device node

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:16PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Add the LVDS device node to R8A774E1 to SoC dtsi and connect it with > the DU node. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad

[PATCH 09/11] extcon: ptn5150: Make 'vbus-gpios' optional

2020-08-12 Thread Krzysztof Kozlowski
The PTN5150 chip can be used in hardware designs with only reporting of USB Type-C connection, without the VBUS control. The driver however unconditionally expected 'vbus-gpios'. Since all uses of the VBUS GPIO descriptor are NULL safe, the code can accept missing GPIO and provide only extcon

Re: [PATCH 31/33] dt: document HiSilicon SPMI controller and mfd/regulator properties

2020-08-12 Thread Rob Herring
On Tue, 11 Aug 2020 17:41:57 +0200, Mauro Carvalho Chehab wrote: > Add documentation for the properties needed by the HiSilicon > 6421v600 driver, and by the SPMI controller used to access > the chipset. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../mfd/hisilicon,hi6421-spmi-pmic.yaml

[PATCH 11/11] MAINTAINERS: Add entry for NXP PTN5150A CC driver

2020-08-12 Thread Krzysztof Kozlowski
Add Krzysztof Kozlowski as maintainer of NXP PTN5150A CC/extcon driver to provide review, feedback and testing. Signed-off-by: Krzysztof Kozlowski --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f2eb17cd3953..48cb5162a94a 100644 ---

[PATCH 01/11] dt-bindings: extcon: ptn5150: Convert binding to DT schema

2020-08-12 Thread Krzysztof Kozlowski
Convert the ptn-5150 extcon driver bindings to DT schema format using json-schema. The differences with original bindings document: - Use "gpios" suffix for the "int" and "vbus" gpio, - Skip generic properties like "reg" or "pinctrl". Signed-off-by: Krzysztof Kozlowski ---

[PATCH 05/11] extcon: ptn5150: Use generic "interrupts" property

2020-08-12 Thread Krzysztof Kozlowski
Interrupts do not have to be always GPIO based so instead of expecting "int-gpios" property and converting the GPIO to an interrupt, just accept any interrupt via generic "interrupts" property. Keep support for old "int-gpios" for backware compatibility. Signed-off-by: Krzysztof Kozlowski ---

[PATCH 02/11] dt-bindings: extcon: ptn5150: Use generic "interrupts" property

2020-08-12 Thread Krzysztof Kozlowski
Interrupts do not have to be always GPIO based so instead of expecting "int-gpios" property and converting the GPIO to an interrupt, just accept any interrupt via generic "interrupts" property. Mark the old "int-gpios" as deprecated. Signed-off-by: Krzysztof Kozlowski ---

[PATCH 07/11] extcon: ptn5150: Lower the noisiness of probe

2020-08-12 Thread Krzysztof Kozlowski
The ptn5150 driver always prints device type on probe but as raw hex, without any translation to meaningful description. This is useful only for board bring up time so lower the verbosity to debug. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-ptn5150.c | 4 ++-- 1 file changed,

[PATCH 06/11] extcon: ptn5150: Simplify getting vbus-gpios with flags

2020-08-12 Thread Krzysztof Kozlowski
Instead of obtaining GPIO as input and configuring it right after to output-low, just use proper GPIOD_OUT_LOW flag. Code is smaller and simpler. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-ptn5150.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git

[PATCH 08/11] extcon: ptn5150: Check current USB mode when probing

2020-08-12 Thread Krzysztof Kozlowski
When machine boots up, the USB could be already in OTG mode. In such case there will be no interrupt coming to ptn5150 device and driver will report default state of nothing connected. Detection of USB connection would happen on first unplug of the cable. Factor out code for checking current

[PATCH 03/11] dt-bindings: extcon: ptn5150: Make 'vbus-gpios' optional

2020-08-12 Thread Krzysztof Kozlowski
The PTN5150 chip can be used in hardware designs with only reporting of USB Type-C connection, without the VBUS control. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 10/11] extcon: ptn5150: Reduce the amount of logs on deferred probe

2020-08-12 Thread Krzysztof Kozlowski
There is no point to print deferred probe (and its failures to get resources) as an error. In case of multiple probe tries this would pollute the dmesg. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-ptn5150.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-)

[PATCH 04/11] extcon: ptn5150: Fix usage of atomic GPIO with sleeping GPIO chips

2020-08-12 Thread Krzysztof Kozlowski
The driver uses atomic version of gpiod_set_value() without any real reason. It is called in a workqueue under mutex so it could sleep there. Changing it to "can_sleep" flavor allows to use the driver with all GPIO chips. Fixes: 4ed754de2d66 ("extcon: Add support for ptn5150 extcon driver") Cc:

Re: [PATCH 7/9] drm: rcar-du: lvds: Add support for R8A774E1 SoC

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:15PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > The LVDS encoder on RZ/G2H (R8A774E1) SoC is identical to R-Car Gen3 so > just reuse the rcar_lvds_gen3_info structure to hookup R8A774E1 to LVDS > encoder

Re: [PATCH v3 4/5] mm: memcg: charge memcg percpu memory to the parent cgroup

2020-08-12 Thread Michal Koutný
On Tue, Aug 11, 2020 at 12:32:28PM -0700, Roman Gushchin wrote: > If we'll limit init.slice (where systemd seems to reside), as you suggest, > we'll eventually create trashing in init.slice, followed by OOM. > I struggle to see how it makes the life of a user better? > [...] > The problem is that

Re: [PATCH 6/9] arm64: dts: renesas: r8a774e1: Populate HDMI encoder node

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:14PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Populate HDMI node properties in R8A774E1 SoC dtsi. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar Reviewed-by: Laurent

Re: [PATCH 01/44] staging: spmi: add Hikey 970 SPMI controller driver

2020-08-12 Thread Greg Kroah-Hartman
On Wed, Aug 12, 2020 at 05:56:11PM +0200, Mauro Carvalho Chehab wrote: > From: Mayulong > > Add the SPMI controller code required to use the Kirin 970 > SPMI bus. > > [mchehab+hua...@kernel.org: added just the SPMI controller on this patch] > > The complete patch is at: > >

Re: [PATCH v1 7/7] dt-bindings: phy: cadence-torrent: Update Torrent PHY bindings for generic use

2020-08-12 Thread Rob Herring
On Fri, 07 Aug 2020 12:12:45 +0200, Swapnil Jakhade wrote: > Torrent PHY can be used in different multi-link multi-protocol > configurations including protocols other than DisplayPort also, > such as PCIe, USB, SGMII, QSGMII etc. Update the bindings to have > support for these configurations. > >

Re: [PATCH] of/address: check for invalid range.cpu_addr

2020-08-12 Thread Rob Herring
On Wed, Aug 12, 2020 at 1:32 AM Colin Ian King wrote: > > On 10/08/2020 15:06, Colin King wrote: > > From: Colin Ian King > > > > Currently invalid CPU addresses are not being sanity checked resulting in > > SATA setup failure on a SynQuacer SC2A11 development machine. The original > > check was

Re: [PATCH 06/44] staging: spmi: hisi-spmi-controller: use le32 macros where needed

2020-08-12 Thread Joe Perches
On Wed, 2020-08-12 at 17:56 +0200, Mauro Carvalho Chehab wrote: > Instead of manually using bswap_32(), just use the > le32 macros. Are you certain this code will now work on any endian cpu? Maybe just use __swab32 instead > diff --git a/drivers/staging/hikey9xx/hisi-spmi-controller.c >

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