[PATCH 2/2] mtd: spi-nor: intel-spi: add support for Intel Cannon Lake SPI flash

2019-08-30 Thread Jethro Beekman
(apologies, resending without S/MIME signature) Now that SPI flash controllers without a software sequencer are supported, it's trivial to add support for CNL and its PCI ID. Signed-off-by: Jethro Beekman --- drivers/mtd/spi-nor/intel-spi-pci.c | 5 +

[PATCH 2/2] mtd: spi-nor: intel-spi: add support for Intel Cannon Lake SPI flash

2019-08-30 Thread Jethro Beekman
Now that SPI flash controllers without a software sequencer are supported, it's trivial to add support for CNL and its PCI ID. Signed-off-by: Jethro Beekman --- drivers/mtd/spi-nor/intel-spi-pci.c | 5 + drivers/mtd/spi-nor/intel-spi.c | 11 +++

[PATCH 1/2] mtd: spi-nor: intel-spi: support chips without software sequencer

2019-08-30 Thread Jethro Beekman
Some flash controllers don't have a software sequencer. Avoid configuring the register addresses for it, and double check everywhere that its not accidentally trying to be used. Every use of `sregs` is now guarded by a check of `sregs` or `swseq_reg`. The check might be done in the calling

Re: [PATCH v3 00/13] virtio-fs: shared file system for virtual machines

2019-08-30 Thread Miklos Szeredi
On Thu, Aug 29, 2019 at 6:01 PM Vivek Goyal wrote: > > On Thu, Aug 29, 2019 at 11:28:27AM +0200, Miklos Szeredi wrote: > > [..] > > There are miscellaneous changes, so needs to be thoroughly tested. > > Hi Miklos, > > First round of tests passed. Ran pjdfstests, blogbench and bunch of fio > jobs

Re: [PATCH v2 2/2] Bluetooth: btrtl: Add firmware version print

2019-08-30 Thread Marcel Holtmann
Hi Alex, > This patch is used to print fw version for debug convenience > > Signed-off-by: Alex Lu > --- > Changes in v2 > - Re-order the code so that no forward declaration is needed > > drivers/bluetooth/btrtl.c | 56 --- > 1 file changed, 35

Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough to -Wimplicit-fallthrough=2

2019-08-30 Thread Gustavo A. R. Silva
On 8/29/19 7:02 AM, Michal Suchanek wrote: > From gcc documentation: > > -Wimplicit-fallthrough=0 > disables the warning altogether. > -Wimplicit-fallthrough=1 > matches .* regular expression, any comment is used as fallthrough comment. > -Wimplicit-fallthrough=2 > case insensitively

[PATCH v4] tpm: Parse event log from TPM2 ACPI table

2019-08-30 Thread Jordan Hand
For systems with a TPM2 chip which use ACPI to expose event logs, retrieve the crypto-agile event log from the TPM2 ACPI table. The TPM2 table is defined in section 7.3 of the TCG ACPI Specification (see link). The TPM2 table is used by SeaBIOS in place of the TCPA table when the system's TPM is

RE: [PATCH v3 12/12] Drivers: hv: vmbus: Resume after fixing up old primary channels

2019-08-30 Thread Dexuan Cui
> From: Dexuan Cui > Sent: Friday, August 30, 2019 9:37 PM > > Is the intent to proceed and use the new offer? > Yes, since this is not an error. > > I'll add a comment before the "Mismatched offer from the host" for this. Hi Michael, I'm going to make the below change in v4. ---

Re: Adding depends-on DT binding to break cyclic dependencies

2019-08-30 Thread Saravana Kannan
On Fri, Aug 30, 2019 at 5:32 PM Saravana Kannan wrote: > > On Fri, Aug 30, 2019 at 7:35 AM Rob Herring wrote: > > > > On Thu, Aug 29, 2019 at 11:58 PM Saravana Kannan > > wrote: > > > > > > On Thu, Aug 29, 2019 at 9:28 AM Rob Herring wrote: > > > > > > > > On Thu, Aug 22, 2019 at 1:55 AM

Re: [PATCH 2/9] perf/core: Add PERF_SAMPLE_CGROUP feature

2019-08-30 Thread Tejun Heo
Hello, On Sat, Aug 31, 2019 at 12:03:26PM +0900, Namhyung Kim wrote: > Hmm.. it looks hard to use fhandle as the identifier since perf > sampling is done in NMI context. AFAICS the encode_fh part seems ok > but getting dentry/inode from a kernfs_node seems not. > > I assume kernfs_node_id's ino

Re: Oops (request_key_auth_describe) while running cve-2016-7042 from LTP

2019-08-30 Thread Sachin Sant
> On 30-Aug-2019, at 8:43 PM, David Howells wrote: > > Can you try this patch instead of Hillf’s? Works for me. Test ran fine without any problem. Tested-by: Sachin Sant Thanks -Sachin

Re: [PATCH v5 3/3] vfio/pci: make use of irq_update_devid and optimize irq ops

2019-08-30 Thread Ben Luo
在 2019/8/31 上午4:06, Alex Williamson 写道: On Fri, 30 Aug 2019 16:42:06 +0800 Ben Luo wrote: When userspace (e.g. qemu) triggers a switch between KVM irqfd and userspace eventfd, only dev_id of irqaction (i.e. the "trigger" in this patch's context) will be changed, but a free-then-request-irq

RE: [PATCH v3 12/12] Drivers: hv: vmbus: Resume after fixing up old primary channels

2019-08-30 Thread Dexuan Cui
> From: Michael Kelley > Sent: Friday, August 23, 2019 1:25 PM > > From: Dexuan Cui Sent: Monday, August 19, 2019 6:52 PM > > @@ -890,6 +937,11 @@ static void vmbus_onoffer(struct > > vmbus_channel_message_header *hdr) > > false); > >

Re: linux-next: build failure after merge of the pci tree

2019-08-30 Thread Vidya Sagar
On 8/30/2019 6:00 PM, Bjorn Helgaas wrote: [+cc Krzysztof] On Thu, Aug 29, 2019 at 10:23 PM Stephen Rothwell wrote: Hi all, After merging the pci tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/pci/controller/dwc/pcie-tegra194.c:24:10: fatal error:

Re: [PATCH] staging: exfat: add exfat filesystem code to staging

2019-08-30 Thread Chao Yu
On 2019/8/30 19:51, David Sterba wrote: > On Fri, Aug 30, 2019 at 10:06:25AM +0800, Chao Yu wrote: >> On 2019/8/29 23:43, Dan Carpenter wrote: p.s. There are 2947 (un)likely places in fs/ directory. >>> >>> I was complaining about you adding new pointless ones, not existing >>> ones. The

[PATCH v4] staging: rts5208: Fix checkpath warning

2019-08-30 Thread P SAI PRASANTH
This patch fixes the following checkpath warning in the file drivers/staging/rts5208/rtsx_transport.c:546 WARNING: line over 80 characters + option = RTSX_SG_VALID | RTSX_SG_END | RTSX_SG_TRANS_DATA; Signed-off-by: P SAI PRASANTH --- Changes in v4: -Fix extra tab

Re: [PATCH v3] staging: rts5208: Fix checkpath warning

2019-08-30 Thread P Sai Prasanth
On 19-08-30 19:58:09, Joe Perches wrote: > On Sat, 2019-08-31 at 07:55 +0530, P SAI PRASANTH wrote: > > This patch fixes the following checkpath warning > > in the file drivers/staging/rts5208/rtsx_transport.c:546 > > > > WARNING: line over 80 characters > > + option

[PATCH vfs/for-next] vfs: fix vfs_get_single_reconf_super error handling

2019-08-30 Thread Eric Biggers
From: Eric Biggers syzbot reported an invalid free in debugfs_release_dentry(). The reproducer tries to mount debugfs with the 'dirsync' option, which is not allowed. The bug is that if reconfigure_super() fails in vfs_get_super(), deactivate_locked_super() is called, but also fs_context::root

[PATCH v2 2/2] touchscreen: goodix: define GPIO mapping for GPD P2 Max

2019-08-30 Thread Peter Cai
The firmware of GPD P2 Max could not handle panel resets although code is present in DSDT. The kernel needs to take on this job instead, but the DSDT does not provide _DSD, rendering kernel helpless when trying to find the respective GPIO pins. Fortunately, this time GPD has proper DMI vendor /

[PATCH v2 1/2] gpio: acpi: add quirk to override GpioInt polarity

2019-08-30 Thread Peter Cai
On GPD P2 Max, the firmware could not reset the touch panel correctly. The kernel needs to take on the job instead, but the GpioInt definition in DSDT specifies ActiveHigh while the GPIO pin should actually be ActiveLow. We need to override the polarity defined by DSDT. The GPIO driver already

Re: [PATCH 2/9] perf/core: Add PERF_SAMPLE_CGROUP feature

2019-08-30 Thread Namhyung Kim
Hi Tejun, On Wed, Aug 28, 2019 at 07:49:11AM -0700, Tejun Heo wrote: > On Wed, Aug 28, 2019 at 04:31:23PM +0900, Namhyung Kim wrote: > > @@ -958,6 +958,7 @@ struct perf_sample_data { > > u64 stack_user_size; > > > > u64 phys_addr;

[PATCH 2/2] or1k: dts: Add ethoc device to SMP devicetree

2019-08-30 Thread Stafford Horne
This patch adds the ethoc device configuration to the OpenRISC basic SMP device tree config. This was tested with qemu. Signed-off-by: Stafford Horne --- arch/openrisc/boot/dts/simple_smp.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/openrisc/boot/dts/simple_smp.dts

[PATCH 0/2] OpenRISC ethoc device tree fixes

2019-08-30 Thread Stafford Horne
These patches fix up and add ethoc device support to the OpenRISC device tree definitions. These have been confirmed to work with qemu and can be tested as described on the qemu wiki: https://wiki.qemu.org/Documentation/Platforms/OpenRISC I plan to submit during the 5.4 merge window.

[PATCH 1/2] or1k: dts: Fix ethoc network configuration in or1ksim devicetree

2019-08-30 Thread Stafford Horne
This fixes several issues with the ethoc network device config. Fisrt off, the compatible property used an obsolete compatibility string; this caused the initialization to be skipped. Next, the register map was not given enough space to allocate ring descriptors, this caused module

Re: [PATCH v3] staging: rts5208: Fix checkpath warning

2019-08-30 Thread Joe Perches
On Sat, 2019-08-31 at 07:55 +0530, P SAI PRASANTH wrote: > This patch fixes the following checkpath warning > in the file drivers/staging/rts5208/rtsx_transport.c:546 > > WARNING: line over 80 characters > + option = RTSX_SG_VALID | RTSX_SG_END | >

RE: [PATCH v3 11/12] Drivers: hv: vmbus: Suspend after cleaning up hv_sock and sub channels

2019-08-30 Thread Dexuan Cui
> From: Michael Kelley > Sent: Friday, August 23, 2019 1:17 PM > > From: Dexuan Cui Sent: Monday, August 19, 2019 6:52 PM > > > > diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c > > @@ -499,6 +499,8 @@ static void vmbus_add_channel_work(struct > work_struct *work) > >

Re: [PATCH v3] libata/ahci: Drop PCS quirk for Denverton and beyond

2019-08-30 Thread Jens Axboe
On 8/29/19 5:30 PM, Dan Williams wrote: > The Linux ahci driver has historically implemented a configuration fixup > for platforms / platform-firmware that fails to enable the ports prior > to OS hand-off at boot. The fixup was originally implemented way back > before ahci moved from drivers/scsi/

Re: [PATCH] riscv: move sifive_l2_cache.c to drivers/soc

2019-08-30 Thread Paul Walmsley
Hi Mauro, On Thu, 22 Aug 2019, Mauro Carvalho Chehab wrote: > I'm wandering if we should at least add an entry for this one at > MAINTAINERS, pointing it to the EDAC mailing list. Something like: > > diff --git a/MAINTAINERS b/MAINTAINERS > index 7dfe381c8b43..1c3bc5aa3af0 100644 > ---

Re: [PATCH v4 0/3] Optimize tlbflush path

2019-08-30 Thread Paul Walmsley
Hi Atish, On Thu, 22 Aug 2019, Atish Patra wrote: > This series adds few optimizations to reduce the trap cost in the tlb > flush path. We should only make SBI calls to remote tlb flush only if > absolutely required. The patches look great. My understanding is that these optimization patches

Re: [PATCH v3 03/11] net/mlx5e: Remove unlikely() from WARN*() condition

2019-08-30 Thread David Miller
From: Saeed Mahameed Date: Thu, 29 Aug 2019 21:23:30 + > On Thu, 2019-08-29 at 19:50 +0300, Denis Efremov wrote: >> "unlikely(WARN_ON_ONCE(x))" is excessive. WARN_ON_ONCE() already uses >> unlikely() internally. >> >> Signed-off-by: Denis Efremov >> Cc: Boris Pismenny >> Cc: Saeed

[GIT PULL] RISC-V updates for v5.3-rc7

2019-08-30 Thread Paul Walmsley
Linus, The following changes since commit a55aa89aab90fae7c815b0551b07be37db359d76: Linux 5.3-rc6 (2019-08-25 12:01:23 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv/for-v5.3-rc7 for you to fetch changes up to

[GIT PULL] KVM fixes for Linux 5.3-rc7

2019-08-30 Thread Radim Krčmář
Linus, The following changes since commit a55aa89aab90fae7c815b0551b07be37db359d76: Linux 5.3-rc6 (2019-08-25 12:01:23 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm tags/for-linus for you to fetch changes up to

[PATCH v3] staging: rts5208: Fix checkpath warning

2019-08-30 Thread P SAI PRASANTH
This patch fixes the following checkpath warning in the file drivers/staging/rts5208/rtsx_transport.c:546 WARNING: line over 80 characters + option = RTSX_SG_VALID | RTSX_SG_END | RTSX_SG_TRANS_DATA; Signed-off-by: P SAI PRASANTH --- Changes in v3: -Fixes the

[RFC PATCH v2] tools/power turbostat: Add support for Hygon Fam 18h (Dhyana) RAPL

2019-08-30 Thread Pu Wen
Commit 9392bd98bba760be96ee ("tools/power turbostat: Add support for AMD Fam 17h (Zen) RAPL") and the commit 3316f99a9f1b68c578c5 ("tools/power turbostat: Also read package power on AMD F17h (Zen)") add AMD Fam 17h RAPL support. Hygon Family 18h(Dhyana) support RAPL in bit 14 of CPUID 0x8007

[RFC PATCH v2] tools/power turbostat: Fix caller parameter of get_tdp_amd()

2019-08-30 Thread Pu Wen
Commit 9392bd98bba760be96ee ("tools/power turbostat: Add support for AMD Fam 17h (Zen) RAPL") add a function get_tdp_amd(), the parameter is CPU family. But the rapl_probe_amd() function use wrong model parameter. Fix the wrong caller parameter of get_tdp_amd() to use family. Cc: # v5.1+

Re: [PATCH 4.14] tcp: fix tcp_rtx_queue_tail in case of empty retransmit queue

2019-08-30 Thread David Miller
From: Christoph Paasch Date: Fri, 30 Aug 2019 16:26:57 -0700 > (I don't see it in the stable-queue) I don't handle any stable branch before the most recent two, so this isn't my territory.

Re: [PATCH] riscv: kbuild: drop CONFIG_RISCV_ISA_C

2019-08-30 Thread Paul Walmsley
Hi Charles, On Tue, 13 Aug 2019, Charles Papon wrote: > > Because it it the unix platform baseline as stated in the patch. > I know that, but i'm looking for arguments why RVC could't be kept as > an option, especialy it is only an optimisation option without > behavioral/code changes. > > That

RE: [PATCH v3 10/12] Drivers: hv: vmbus: Clean up hv_sock channels by force upon suspend

2019-08-30 Thread Dexuan Cui
> From: Michael Kelley > Sent: Friday, August 23, 2019 1:02 PM > > From: Dexuan Cui Sent: Monday, August 19, 2019 6:52 PM > > > > Fake RESCIND_CHANNEL messages to clean up hv_sock channels by force for > > hibernation. There is no better method to clean up the channels since > > some of the

[PATCH] net: stmmac: dwmac-sun8i: Variable "val" in function sun8i_dwmac_set_syscon() could be uninitialized

2019-08-30 Thread Yizhuo
In function sun8i_dwmac_set_syscon(), local variable "val" could be uninitialized if function regmap_field_read() returns -EINVAL. However, it will be used directly in the if statement, which is potentially unsafe. Signed-off-by: Yizhuo --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 7

Re: [PATCH 0/4] objtool,perf: Use shared x86 insn decoder

2019-08-30 Thread Masami Hiramatsu
On Fri, 30 Aug 2019 16:48:45 -0300 Arnaldo Carvalho de Melo wrote: > Em Fri, Aug 30, 2019 at 02:31:09PM -0500, Josh Poimboeuf escreveu: > > On Fri, Aug 30, 2019 at 04:00:58PM -0300, Arnaldo Carvalho de Melo wrote: > > > I.e. we need to make sure that it always gets the x86 stuff, not > > >

Re: [PATCH] arm: fix page faults in do_alignment

2019-08-30 Thread Jing Xiangfeng
On 2019/8/30 21:35, Russell King - ARM Linux admin wrote: > On Fri, Aug 30, 2019 at 09:31:17PM +0800, Jing Xiangfeng wrote: >> The function do_alignment can handle misaligned address for user and >> kernel space. If it is a userspace access, do_alignment may fail on >> a low-memory situation,

Re: [PATCH 4.14] tcp: fix tcp_rtx_queue_tail in case of empty retransmit queue

2019-08-30 Thread Christoph Paasch
Hello, On 24/08/19 - 15:05:20, Jonathan Lemon wrote: > > > On 23 Aug 2019, at 23:03, Tim Froidcoeur wrote: > > > Commit 8c3088f895a0 ("tcp: be more careful in tcp_fragment()") > > triggers following stack trace: > > > > [25244.848046] kernel BUG at ./include/linux/skbuff.h:1406! > >

Re: [PATCH] checkpatch: Validate Fixes: tag using 'commit' checks

2019-08-30 Thread Stephen Rothwell
Hi Sean, On Fri, 30 Aug 2019 09:36:58 -0700 Sean Christopherson wrote: > > @@ -2803,10 +2805,15 @@ sub process { > ($id, $description) = git_commit_info($orig_commit, > $id, $orig_desc); > > -

Re: [PATCH 1/2] w1: add 1-wire master driver for IP block found in SGI ASICs

2019-08-30 Thread kbuild test robot
Hi Thomas, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc6 next-20190830] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Thomas

Re: [PATCH] riscv: add arch/riscv/Kbuild

2019-08-30 Thread Paul Walmsley
On Wed, 21 Aug 2019, Masahiro Yamada wrote: > Use the standard obj-y form to specify the sub-directories under > arch/riscv/. No functional change intended. > > Signed-off-by: Masahiro Yamada Thanks, queued for v5.4-rc1. - Paul

Re: [PATCH] drivers/staging/exfat - by default, prohibit mount of fat/vfat

2019-08-30 Thread Valdis Klētnieks
On Fri, 30 Aug 2019 09:45:03 -0700, Christoph Hellwig said: > On Fri, Aug 30, 2019 at 12:42:39PM -0400, Valdis Klētnieks wrote: > > Concerns have been raised about the exfat driver accidentally mounting > > fat/vfat file systems. Add an extra configure option to help prevent that. > > Just

Re: linux-next: Tree for Aug 30 (exfat)

2019-08-30 Thread Valdis Klētnieks
On Fri, 30 Aug 2019 09:52:15 -0700, Randy Dunlap said: > on x86_64: > when CONFIG_VFAT_FS is not set/enabled: > > ../drivers/staging/exfat/exfat_super.c:46:41: error: > �CONFIG_FAT_DEFAULT_IOCHARSET� undeclared here (not in a function); did you > mean �CONFIG_EXFAT_DEFAULT_IOCHARSET�? Thanks.

Re: [PATCH] net: stmmac: Variable "val" in function sun8i_dwmac_set_syscon() could be uninitialized

2019-08-30 Thread David Miller
From: Yizhuo Zhai Date: Fri, 30 Aug 2019 15:29:07 -0700 > Thanks for your feedback, this patch should work for v4.14. You must always submit patches against the current tree.

Re: Adding depends-on DT binding to break cyclic dependencies

2019-08-30 Thread Saravana Kannan
On Fri, Aug 30, 2019 at 7:35 AM Rob Herring wrote: > > On Thu, Aug 29, 2019 at 11:58 PM Saravana Kannan wrote: > > > > On Thu, Aug 29, 2019 at 9:28 AM Rob Herring wrote: > > > > > > On Thu, Aug 22, 2019 at 1:55 AM Saravana Kannan > > > wrote: > > > > > > > > Hi Rob, > > > > > > > > Frank,

Re: [RESEND PATCH V3 3/8] perf/x86/intel: Support hardware TopDown metrics

2019-08-30 Thread Andi Kleen
> the same manner. It would greatly simplify the kernel implementation. I tried that originally. It was actually more complicated. You can't really do deltas on raw metrics, and a lot of the perf infrastructure is built around deltas. To do the regular reset and not lose precision over time

Re: [v2] net_sched: act_police: add 2 new attributes to support police 64bit rate and peakrate

2019-08-30 Thread David Z. Dai
On Fri, 2019-08-30 at 13:33 -0700, David Miller wrote: > From: "David Z. Dai" > Date: Fri, 30 Aug 2019 15:03:52 -0500 > > > I have the impression that last parameter num value should be larger > > than the attribute num value in 2nd parameter (TC_POLICE_RATE64 in this > > case). > > The

RE: [PATCH v3 08/12] Drivers: hv: vmbus: Ignore the offers when resuming from hibernation

2019-08-30 Thread Dexuan Cui
> From: Michael Kelley > Sent: Friday, August 23, 2019 12:57 PM > > From: Dexuan Cui Sent: August 19, 2019 6:52 PM > > > > diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c > > @@ -337,6 +337,33 @@ struct vmbus_channel *relid2channel(u32 relid) > > } > > > > /* > > + *

Re: [RFC][PATCH 1/1] Carry ima measurement log for arm64 via kexec_file_load

2019-08-30 Thread Thiago Jung Bauermann
Stephen Boyd writes: > A lot of this code looks DT generic. Can it be moved out of the arch > layer to drivers/of/? Yes, if this code could be in drivers/of/ it would be great! Perhaps the DT generic functions could go in drivers/of/fdt.c, and ones dealing with IMA nodes/properties could go

Re: WARNING: suspicious RCU usage in ext4_release_system_zone

2019-08-30 Thread Eric Biggers
On Fri, Aug 30, 2019 at 12:28:08PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:ed858b88 Add linux-next specific files for 20190826 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=121b506c60 > kernel

Re: WARNING: ODEBUG bug in ext4_fill_super

2019-08-30 Thread Eric Biggers
On Fri, Aug 30, 2019 at 12:46:21PM -0700, 'Dmitry Vyukov' via syzkaller-bugs wrote: > On Fri, Aug 30, 2019 at 12:42 PM 'Nick Desaulniers' via syzkaller-bugs > wrote: > > > > Dmitry, > > Any idea how clang-built-linux got CC'ed on this? Is syzcaller > > running clang builds, yet? (this looks

Re: [RFC][PATCH 1/1] Carry ima measurement log for arm64 via kexec_file_load

2019-08-30 Thread Thiago Jung Bauermann
Hello Prakhar, Answering this part from the cover letter: > The code is in most part same as powerpc, i want to get feedback as to > how/correct way to refactor the code so that cross architecture > partial helpers can be put in a common place. That's a great idea. If it could go to

RE: [PATCH v2] kunit: fix failure to build without printk

2019-08-30 Thread Tim.Bird
> -Original Message- > From: Brendan Higgins > > On Fri, Aug 30, 2019 at 11:22:43PM +, tim.b...@sony.com wrote: > > > -Original Message- > > > From: Brendan Higgins > > > > > > On Fri, Aug 30, 2019 at 3:46 PM Joe Perches wrote: > > > > > > > > On Fri, 2019-08-30 at 21:58

[PATCH] nvme-core: Fix subsystem instance mismatches

2019-08-30 Thread Logan Gunthorpe
With multipath enabled (which is now default in many distros), nvme controllers and their respective namespaces can be numbered differently. For example: nvme0n1 might actually belong to controller nvme1, which is super confusing (and may have broken any scripts that rely on the numbering

Re: [PATCH 1/9] perf/core: Add PERF_RECORD_CGROUP event

2019-08-30 Thread Stephane Eranian
On Fri, Aug 30, 2019 at 3:49 PM Namhyung Kim wrote: > > On Fri, Aug 30, 2019 at 4:35 PM Peter Zijlstra wrote: > > > > On Fri, Aug 30, 2019 at 12:46:51PM +0900, Namhyung Kim wrote: > > > Hi Peter, > > > > > > On Wed, Aug 28, 2019 at 6:45 PM Peter Zijlstra > > > wrote: > > > > > > > > On Wed,

Re: [PATCH] net: bcmgenet: use ethtool_op_get_ts_info()

2019-08-30 Thread Doug Berger
On 8/30/19 11:51 AM, Florian Fainelli wrote: > On 8/30/19 11:49 AM, Ryan M. Collins wrote: >> This change enables the use of SW timestamping on the Raspberry Pi 4. > > Finally the first bcmgenet patch that was tested on the Pi 4! > >> >> bcmgenet's transmit function bcmgenet_xmit() implements

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-30 Thread Joe Perches
On Fri, 2019-08-30 at 16:37 -0700, Brendan Higgins wrote: > I thought you and Joe were arguing that "Joe's" resulted in a smaller > object size than "Mine" (not to be confused with the actual patch I > presented here, which is what Sergey suggested I do on a different > thread). > > I really

RE: [PATCH v3 02/12] x86/hyper-v: Implement hv_is_hibernation_supported()

2019-08-30 Thread Dexuan Cui
> From: Michael Kelley > Sent: Friday, August 23, 2019 12:50 PM > > From: Dexuan Cui Sent: August 19, 2019 6:52 PM > > > > When a Linux VM runs on Hyper-V and hibernates, it must disable the > > memory hot-add/remove and balloon up/down capabilities in the hv_balloon > > driver. > > I'm

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-30 Thread Brendan Higgins
On Fri, Aug 30, 2019 at 11:22:43PM +, tim.b...@sony.com wrote: > > -Original Message- > > From: Brendan Higgins > > > > On Fri, Aug 30, 2019 at 3:46 PM Joe Perches wrote: > > > > > > On Fri, 2019-08-30 at 21:58 +, tim.b...@sony.com wrote: > > > > > From: Joe Perches > > > [] > >

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-30 Thread Joe Perches
On Fri, 2019-08-30 at 23:22 +, tim.b...@sony.com wrote: > > -Original Message- > > From: Brendan Higgins > > > > On Fri, Aug 30, 2019 at 3:46 PM Joe Perches wrote: > > > On Fri, 2019-08-30 at 21:58 +, tim.b...@sony.com wrote: > > > > > From: Joe Perches > > > [] > > > > IMHO %pV

RE: [PATCH v2] kunit: fix failure to build without printk

2019-08-30 Thread Tim.Bird
> -Original Message- > From: Joe Perches > > On Fri, 2019-08-30 at 21:58 +, tim.b...@sony.com wrote: > > > From: Joe Perches > [] > > IMHO %pV should be avoided if possible. Just because people are > > doing it doesn't mean it should be used when it is not necessary. > > Well,

Re: [PATCH] selftests/bpf: Fix a typo in test_offload.py

2019-08-30 Thread Daniel Borkmann
On 8/29/19 2:01 AM, Masanari Iida wrote: This patch fix a spelling typo in test_offload.py Signed-off-by: Masanari Iida Applied, thanks!

RE: [PATCH v2] kunit: fix failure to build without printk

2019-08-30 Thread Tim.Bird
> -Original Message- > From: Brendan Higgins > > On Fri, Aug 30, 2019 at 3:46 PM Joe Perches wrote: > > > > On Fri, 2019-08-30 at 21:58 +, tim.b...@sony.com wrote: > > > > From: Joe Perches > > [] > > > IMHO %pV should be avoided if possible. Just because people are > > > doing it

[PATCH 1/2] pci: Convert to use built-in RCU list checking

2019-08-30 Thread Joel Fernandes (Google)
CONFIG_PROVE_RCU_LIST requires list_for_each_entry_rcu() to pass a lockdep expression if using srcu or locking for protection. It can only check regular RCU protection, all other protection needs to be passed as lockdep expression. Signed-off-by: Joel Fernandes (Google) ---

Re: [RESEND PATCH V3 3/8] perf/x86/intel: Support hardware TopDown metrics

2019-08-30 Thread Stephane Eranian
Hi, On Mon, Aug 26, 2019 at 7:48 AM wrote: > > From: Kan Liang > > Intro > = > > Icelake has support for measuring the four top level TopDown metrics > directly in hardware. This is implemented by an additional "metrics" > register, and a new Fixed Counter 3 that measures pipeline "slots".

[PATCH 2/2] ipc/sem: Convert to use built-in RCU list checking

2019-08-30 Thread Joel Fernandes (Google)
CONFIG_PROVE_RCU_LIST requires list_for_each_entry_rcu() to pass a lockdep expression if using srcu or locking for protection. It can only check regular RCU protection, all other protection needs to be passed as lockdep expression. Signed-off-by: Joel Fernandes (Google) --- ipc/sem.c | 3 ++- 1

[PATCH v2 6/6] x86: bug.h: use asm_inline in _BUG_FLAGS definitions

2019-08-30 Thread Rasmus Villemoes
This helps preventing a BUG* or WARN* in some static inline from preventing that (or one of its callers) being inlined, so should allow gcc to make better informed inlining decisions. For example, with gcc 9.2, tcp_fastopen_no_cookie() vanishes from net/ipv4/tcp_fastopen.o. It does not itself

[PATCH v2 5/6] x86: alternative.h: use asm_inline for all alternative variants

2019-08-30 Thread Rasmus Villemoes
Most, if not all, uses of the alternative* family just provide one or two instructions in .text, but the string literal can be quite large, causing gcc to overestimate the size of the generated code. That in turn affects its decisions about inlining of the function containing the alternative() asm

[PATCH v2 2/6] lib/zstd/mem.h: replace __inline by inline

2019-08-30 Thread Rasmus Villemoes
Currently, compiler_types.h #defines __inline as inline (and further #defines inline to automatically attach some attributes), so this does not change functionality. It serves as preparation for removing the #define of __inline. (Note that if ZSTD_STATIC is expanded somewhere where

[PATCH v2 3/6] compiler_types.h: don't #define __inline

2019-08-30 Thread Rasmus Villemoes
The spellings __inline and __inline__ should be reserved for uses where one really wants to refer to the inline keyword, regardless of whether or not the spelling "inline" has been #defined to something else. Due to use of __inline__ in uapi headers, we can't easily get rid of the definition of

[PATCH v2 4/6] compiler-gcc.h: add asm_inline definition

2019-08-30 Thread Rasmus Villemoes
This adds an asm_inline macro which expands to "asm inline" [1] when gcc is new enough (>= 9.1), and just asm for older gccs and other compilers. Using asm inline("foo") instead of asm("foo") overrules gcc's heuristic estimate of the size of the code represented by the asm() statement, and makes

[PATCH v2 1/6] staging: rtl8723bs: replace __inline by inline

2019-08-30 Thread Rasmus Villemoes
Currently, __inline is #defined as inline in compiler_types.h, so this should not change functionality. It is preparation for removing said #define. While at it, change some "inline static" to the customary "static inline" order. Signed-off-by: Rasmus Villemoes ---

[PATCH v2 0/6] make use of gcc 9's "asm inline()"

2019-08-30 Thread Rasmus Villemoes
gcc 9 provides a way to override the otherwise crude heuristic that gcc uses to estimate the size of the code represented by an asm() statement. From the gcc docs If you use 'asm inline' instead of just 'asm', then for inlining purposes the size of the asm is taken as the minimum size,

[PATCH] platform/chrome: chromeos_tbmc : Report wake events.

2019-08-30 Thread Ravi Chandra Sadineni
Mark chromeos_tbmc as wake capable and report wake events. This helps to abort suspend on seeing a tablet mode switch event when kernel is suspending. This also helps identifying if chroemos_tbmc is the wake source. Signed-off-by: Ravi Chandra Sadineni ---

Re: [RFC PATCH 0/2] Add support for SBI version to 0.2

2019-08-30 Thread Atish Patra
On Thu, 2019-08-29 at 03:59 -0700, h...@infradead.org wrote: > On Tue, Aug 27, 2019 at 10:19:42PM +, Atish Patra wrote: > > I did not understand this part. All the legacy SBI calls are > > defined as > > a separate extension ID not single extension. How did it break the > > backward

RE: [PATCH net-next, 2/2] hv_netvsc: Sync offloading features to VF NIC

2019-08-30 Thread Haiyang Zhang
> -Original Message- > From: Jakub Kicinski > Sent: Friday, August 30, 2019 4:05 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; linux-hyp...@vger.kernel.org; > net...@vger.kernel.org; KY Srinivasan ; Stephen > Hemminger ; o...@aepfle.de; vkuznets > ; da...@davemloft.net; linux- >

Re: [PATCH net-next, 1/2] hv_netvsc: Allow scatter-gather feature to be tunable

2019-08-30 Thread Jakub Kicinski
On Fri, 30 Aug 2019 03:45:24 +, Haiyang Zhang wrote: > In a previous patch, the NETIF_F_SG was missing after the code changes. > That caused the SG feature to be "fixed". This patch includes it into > hw_features, so it is tunable again. > > Fixes:23312a3be999 ("netvsc: negotiate

Re: [PATCH net-next, 2/2] hv_netvsc: Sync offloading features to VF NIC

2019-08-30 Thread Jakub Kicinski
On Fri, 30 Aug 2019 03:45:38 +, Haiyang Zhang wrote: > VF NIC may go down then come up during host servicing events. This > causes the VF NIC offloading feature settings to roll back to the > defaults. This patch can synchronize features from synthetic NIC to > the VF NIC during

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-30 Thread Brendan Higgins
On Fri, Aug 30, 2019 at 3:46 PM Joe Perches wrote: > > On Fri, 2019-08-30 at 21:58 +, tim.b...@sony.com wrote: > > > From: Joe Perches > [] > > IMHO %pV should be avoided if possible. Just because people are > > doing it doesn't mean it should be used when it is not necessary. > > Well, as

[PATCH] ASoC: fsl_sai: Set SAI Channel Mode to Output Mode

2019-08-30 Thread Daniel Baluta
>From SAI datasheet: CHMOD, configures if transmit data pins are configured for TDM mode or Output mode. * (0) TDM mode, transmit data pins are tri-stated when slots are masked or channels are disabled. * (1) Output mode, transmit data pins are never tri-stated and

Re: [PATCH] printf: add support for printing symbolic error codes

2019-08-30 Thread Rasmus Villemoes
On 31/08/2019 00.21, Joe Perches wrote: > On Sat, 2019-08-31 at 00:03 +0200, Rasmus Villemoes wrote: >> On 30/08/2019 23.53, Joe Perches wrote: diff --git a/lib/vsprintf.c b/lib/vsprintf.c >>> [] @@ -2178,8 +2204,6 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,

Re: [PATCH 3/9] perf tools: Basic support for CGROUP event

2019-08-30 Thread Namhyung Kim
Hi Arnaldo, On Fri, Aug 30, 2019 at 9:55 PM Arnaldo Carvalho de Melo wrote: > > Em Wed, Aug 28, 2019 at 04:31:24PM +0900, Namhyung Kim escreveu: > > Implement basic functionality to support cgroup tracking. Each cgroup > > can be identified by inode number which can be read from userspace > >

Re: [PATCH 1/9] perf/core: Add PERF_RECORD_CGROUP event

2019-08-30 Thread Namhyung Kim
On Fri, Aug 30, 2019 at 4:35 PM Peter Zijlstra wrote: > > On Fri, Aug 30, 2019 at 12:46:51PM +0900, Namhyung Kim wrote: > > Hi Peter, > > > > On Wed, Aug 28, 2019 at 6:45 PM Peter Zijlstra wrote: > > > > > > On Wed, Aug 28, 2019 at 04:31:22PM +0900, Namhyung Kim wrote: > > > > To support cgroup

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-30 Thread Joe Perches
On Fri, 2019-08-30 at 21:58 +, tim.b...@sony.com wrote: > > From: Joe Perches [] > IMHO %pV should be avoided if possible. Just because people are > doing it doesn't mean it should be used when it is not necessary. Well, as the guy that created %pV, I of course have a different opinion. > >

Re: [PATCH 0/3] tracing: fix minor build warnings

2019-08-30 Thread Jakub Kicinski
On Fri, 30 Aug 2019 18:01:50 -0400, Steven Rostedt wrote: > On Tue, 27 Aug 2019 22:25:46 -0700 > Jakub Kicinski wrote: > > > Hi! > > > > trace.o gets rebuild on every make run when tracing is enabled, > > which makes all warnings particularly noisy. This patchset fixes > > some low-hanging

Re: WARNING: ODEBUG bug in ext4_fill_super

2019-08-30 Thread Theodore Y. Ts'o
#syz invalid This has already been fixed in the latest linux-next

[PATCH] selftests: watchdog: cleanup whitespace in usage options

2019-08-30 Thread George G. Davis
Convert hard spaces to tabs in usage options. Suggested-by: Shuah Khan Signed-off-by: George G. Davis --- tools/testing/selftests/watchdog/watchdog-test.c | 25 1 file changed, 13 insertions(+), 12 deletions(-) diff --git

Re: [PATCH] arm: fix page faults in do_alignment

2019-08-30 Thread Russell King - ARM Linux admin
On Fri, Aug 30, 2019 at 04:02:48PM -0500, Eric W. Biederman wrote: > Russell King - ARM Linux admin writes: > > > On Fri, Aug 30, 2019 at 02:45:36PM -0500, Eric W. Biederman wrote: > >> Russell King - ARM Linux admin writes: > >> > >> > On Fri, Aug 30, 2019 at 09:31:17PM +0800, Jing Xiangfeng

Re: [PATCH] net: stmmac: Variable "val" in function sun8i_dwmac_set_syscon() could be uninitialized

2019-08-30 Thread Yizhuo Zhai
Hi David: Thanks for your feedback, this patch should work for v4.14. On Fri, Feb 8, 2019 at 11:01 PM David Miller wrote: > > From: Yizhuo > Date: Thu, 7 Feb 2019 09:46:23 -0800 > > > In function sun8i_dwmac_set_syscon(), local variable "val" could > > be uninitialized if function

Re: [PATCH] mm/memcg: return value of the function mem_cgroup_from_css() is not checked

2019-08-30 Thread Yizhuo Zhai
Our tool did not trace back the whole path, so, now we could say it might happen. On Thu, Aug 22, 2019 at 1:12 PM Michal Hocko wrote: > > On Thu 22-08-19 13:07:17, Yizhuo Zhai wrote: > > This will happen if variable "wb->memcg_css" is NULL. This case is reported > > by our analysis tool. > >

Re: [PATCH v2 3/3] nvme: fire discovery log page change events to userspace

2019-08-30 Thread James Smart
On 8/30/2019 2:07 PM, Sagi Grimberg wrote: Yes we do, userspace should use it to order events.  Does udev not handle that properly today? The problem is not ordering of events, its really about the fact that the chardev can be removed and reallocated for a different controller (could be a

Re: [PATCH] printf: add support for printing symbolic error codes

2019-08-30 Thread Joe Perches
On Sat, 2019-08-31 at 00:03 +0200, Rasmus Villemoes wrote: > On 30/08/2019 23.53, Joe Perches wrote: > > > diff --git a/lib/vsprintf.c b/lib/vsprintf.c > > [] > > > @@ -2178,8 +2204,6 @@ char *pointer(const char *fmt, char *buf, char > > > *end, void *ptr, > > > return flags_string(buf,

Re: [PATCH v1 2/4] perf vendor events intel: Update cascadelakex uncore events to v1.04

2019-08-30 Thread Jin, Yao
On 8/31/2019 2:22 AM, Arnaldo Carvalho de Melo wrote: Em Wed, Aug 28, 2019 at 01:59:30PM +0800, Jin Yao escreveu: From: Haiyan Song Not applying, please check, will apply the other 3 patches in the series, next time please try to collect some Acked-by in advance. - Arnaldo Hi

[PATCH v3 10/16] ARM: mmp: define MMP_CHIPID by the means of CIU_REG()

2019-08-30 Thread Lubomir Rintel
A rather trivial cosmetic improvement. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/common.c b/arch/arm/mach-mmp/common.c index 2ee08c78e8bc9..24c689a01ecb7 100644 ---

[PATCH v3 14/16] ARM: mmp: remove MMP3 USB PHY registers from regs-usb.h

2019-08-30 Thread Lubomir Rintel
Nothing in mach-mmp/ uses them and they belong to the PHY driver. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/regs-usb.h | 94 1 file changed, 94 deletions(-) diff --git a/arch/arm/mach-mmp/regs-usb.h b/arch/arm/mach-mmp/regs-usb.h index

[PATCH v3 05/16] dt-bindings: phy-mmp3-usb: Add bindings

2019-08-30 Thread Lubomir Rintel
This is the PHY chip for USB OTG on MMP3 platform. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Add Rob's Reviewed-by tag Changes since v1: - s/usbphy@/usb-phy@/ - Dropped a reference to Documentation/phy.txt .../devicetree/bindings/phy/phy-mmp3-usb.txt

  1   2   3   4   5   6   7   8   9   >