Re: [PATCH v3 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS

2021-01-14 Thread Xu, Like
Hi Sean, Thanks for your comments ! On 2021/1/15 3:10, Sean Christopherson wrote: On Mon, Jan 04, 2021, Like Xu wrote: 2) Slow path (part 3, patch 0012-0017) This is when the host assigned physical PMC has a different index from the virtual PMC (e.g. using physical PMC1 to emulate virtual

arch/arm/mach-omap2/board-generic.c:44:6: warning: no previous prototype for 'tick_broadcast'

2021-01-14 Thread kernel test robot
-20210114 (attached as .config) compiler: arm-linux-gnueabi-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 # https://git.kernel.org/pub/scm/linux

Re: general protection fault in io_uring_setup

2021-01-14 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger any issue: Reported-and-tested-by: syzbot+06b7d55a62acca161...@syzkaller.appspotmail.com Tested on: commit: 06585c49 io_uring: do sqo disable on install_fd error git tree:

Re: [PATCH v2] cgroup-v1: add disabled controller check in cgroup1_parse_param()

2021-01-14 Thread chenzhou
On 2021/1/15 0:54, Michal Koutný wrote: > On Thu, Jan 14, 2021 at 10:08:19PM +0800, chenzhou > wrote: >> In this case, at the beginning of function check_cgroupfs_options(), the mask >> ctx->subsys_mask will be 0. And if we mount without 'none' and 'name=' >> options, >> then in

Re: [PATCH V2 07/11] arm64: Add TRBE definitions

2021-01-14 Thread Anshuman Khandual
On 1/13/21 2:51 PM, Suzuki K Poulose wrote: > On 1/13/21 4:18 AM, Anshuman Khandual wrote: >> This adds TRBE related registers and corresponding feature macros. >> >> Cc: Mathieu Poirier >> Cc: Mike Leach >> Cc: Suzuki K Poulose >> Signed-off-by: Anshuman Khandual >> --- >>  

[v2][PATCH] Revert "mfd: syscon: Don't free allocated name for regmap_config"

2021-01-14 Thread meng . li
From: Limeng This reverts commit 529a1101212a785c5df92c314b0e718287150c3b. The reverted patch moves the memory free to error path, but introduce a memory leak. There is another commit 94cc89eb8fa5("regmap: debugfs: Fix handling of name string for debugfs init delays") fixing this debugfs init

[PATCH] lib: dynamic_queue_limits: use memset and offsetof init

2021-01-14 Thread Yejune Deng
In dql_reset(), use memset and offsetof instead of '= 0'. Signed-off-by: Yejune Deng --- lib/dynamic_queue_limits.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/dynamic_queue_limits.c b/lib/dynamic_queue_limits.c index fde0aa2..21f0745 100644 ---

Re: [PATCH v3] x86/sgx: Synchronize encl->srcu in sgx_encl_release().

2021-01-14 Thread Jarkko Sakkinen
On Wed, Jan 13, 2021 at 09:46:02AM -0800, Paul E. McKenney wrote: > On Wed, Jan 13, 2021 at 07:18:23PM +0200, Jarkko Sakkinen wrote: > > On Tue, Jan 12, 2021 at 07:35:50PM +0100, Borislav Petkov wrote: > > > + paulmck. > > > > > > On Tue, Jan 12, 2021 at 02:08:10AM +0200, Jarkko Sakkinen wrote: >

Re: [PATCH v4 01/21] ibmvfc: add vhost fields and defaults for MQ enablement

2021-01-14 Thread Ming Lei
On Thu, Jan 14, 2021 at 11:24:35AM -0600, Brian King wrote: > On 1/13/21 7:27 PM, Ming Lei wrote: > > On Wed, Jan 13, 2021 at 11:13:07AM -0600, Brian King wrote: > >> On 1/12/21 6:33 PM, Tyrel Datwyler wrote: > >>> On 1/12/21 2:54 PM, Brian King wrote: > On 1/11/21 5:12 PM, Tyrel Datwyler

Re: [PATCH v2 1/4] dt-bindings: hwmon: Add Aspeed AST2600 PWM/Fan

2021-01-14 Thread Troy Lee
Hi Rob, Thanks for reviewing. The 01/14/2021 22:13, Rob Herring wrote: > On Wed, Jan 13, 2021 at 07:08:45AM +, Troy Lee wrote: > > We add binding for supporting a new AST2600 PWM/Fan hwmon driver. > > > > Changes since v1: > > - dt binding with DT schema format > > > > Signed-off-by: Troy

Re: [PATCH v2 4/4] phy: phy-hi3670-usb3: move driver from staging into phy

2021-01-14 Thread Rob Herring
On Thu, Jan 14, 2021 at 06:35:44PM +0100, Mauro Carvalho Chehab wrote: > The phy USB3 driver for Hisilicon 970 (hi3670) is ready > for mainstream. Mode it from staging into the main driver's > phy/ directory. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../bindings/phy/phy-hi3670-usb3.yaml

[PATCH wireless v2] scsi: megaraid: Remove unnecessary memset

2021-01-14 Thread Zheng Yongjun
memcpy operation is next to memset code, and the size to copy is equals to the size to memset, so the memset operation is unnecessary, remove it. Signed-off-by: Zheng Yongjun --- drivers/net/wireless/ath/wcn36xx/smd.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH v13 06/15] s390/vfio-ap: allow assignment of unavailable AP queues to mdev device

2021-01-14 Thread Halil Pasic
On Thu, 14 Jan 2021 12:54:39 -0500 Tony Krowiak wrote: > >> /** > >>* vfio_ap_mdev_verify_no_sharing > >>* > >> - * Verifies that the APQNs derived from the cross product of the AP > >> adapter IDs > >> - * and AP queue indexes comprising the AP matrix are not configured for > >>

Re: [PATCH v1 1/3] x86/cpufeatures: Add low performance CRC32C instruction CPU feature

2021-01-14 Thread Tony W Wang-oc
On 11/01/2021 19:03, Borislav Petkov wrote: > On Mon, Jan 11, 2021 at 06:51:59PM +0800, Tony W Wang-oc wrote: >> This issue will be enhanced by hardware and patch submit will be pending. > > I have no clue what that has to do with your current patch... you might > need to explain more verbosely.

[PATCH 2/2] fpga: Add support for Xilinx DFX AXI Shutdown manager

2021-01-14 Thread Nava kishore Manne
This patch adds support for Xilinx Dynamic Function eXchange(DFX) AXI shutdown manager IP. It can be used to safely handling the AXI traffic on a Reconfigurable Partition when it is undergoing dynamic reconfiguration and there by preventing system deadlock that may occur if AXI transactions are

[PATCH 1/2] dt-bindings: fpga: Add compatible value for Xilinx DFX AXI shutdown manger

2021-01-14 Thread Nava kishore Manne
This patch Adds compatible value for Xilinx Dynamic Function eXchnage(DFX) AXI Shutdown manager IP. Signed-off-by: Nava kishore Manne --- .../bindings/fpga/xilinx-pr-decoupler.txt | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git

[PATCH 2/2] scsi: ufs-qcom: Disable interrupt in reset path

2021-01-14 Thread Can Guo
From: Nitin Rawat Disable interrupt in reset path to flush pending IRQ handler in order to avoid possible NoC issues. Signed-off-by: Nitin Rawat Signed-off-by: Can Guo diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 2206b1e..e55201f 100644 ---

[PATCH 1/2] scsi: ufs: Minor adjustments to error handling

2021-01-14 Thread Can Guo
In error handling prepare stage, after SCSI requests are blocked, do a down/up_write(clk_scaling_lock) to clean up the queuecommand() path. Meanwhile, stop eeh_work in case it disturbs error recovery. Moreover, reset ufshcd_state at the entrance of ufshcd_probe_hba(), since it may be called

Re: [PATCH] mlxsw: pci: switch from 'pci_' to 'dma_' API

2021-01-14 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Thu, 14 Jan 2021 09:47:57 +0100 you wrote: > The wrappers in include/linux/pci-dma-compat.h should go away. > > The patch has been generated with the coccinelle script below and has been > hand modified to replace GFP_

Re: [PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts

2021-01-14 Thread Kevin Herbert
The loop sends either one or two events to the slave driver. If the state is I2C_SLAVE_READ_REQUESTED, we synthesize the I2C_SLAVE_READ_PROCESSED event, and then our state becomes I2C_SLAVE_READ_PROCESSED. In all other states, we transition to I2C_SLAVE_STOP and exit the loop. It is not a busy

Re: [PATCH v2 2/2] kbuild: handle excessively long argument lists

2021-01-14 Thread Masahiro Yamada
On Fri, Jan 15, 2021 at 10:01 AM Nick Desaulniers wrote: > > On Thu, Jan 14, 2021 at 1:50 PM Jeff Johnson wrote: > > > > From: Mahesh Kumar Kalikot Veetil > > > > Modules with a large number of compilation units may be > > exceeding AR and LD command argument list. Handle this gracefully by > >

[PATCH] drm/panel-simple: Undo enable if HPD never asserts

2021-01-14 Thread Douglas Anderson
If the HPD signal never asserts in panel_simple_prepare() and we return an error, we should unset the enable GPIO and disable the regulator to make it consistent for the caller. At the moment I have some hardware where HPD sometimes doesn't assert. Obviously that needs to be debugged, but this

Re: [PATCH] mailbox: bcm: Replace tasklet with threaded irq

2021-01-14 Thread Jassi Brar
On Thu, Jan 14, 2021 at 6:21 PM Davidlohr Bueso wrote: > > Tasklets have long been deprecated as being too heavy on the system > by running in irq context - and this is not a performance critical > path. If a higher priority process wants to run, it must wait for > the tasklet to finish before

linux-next: build warnings after merge of the drm-misc tree

2021-01-14 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c: In function 'amdgpu_display_user_framebuffer_create': drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:929:24: warning: unused variable 'adev'

RE: [PATCH v9 00/18] Add AMD SEV guest live migration support

2021-01-14 Thread Kalra, Ashish
[AMD Public Use] Hello Steve, I don't think we have ever discussed supporting this command, maybe we can support it in a future follow up patch. Thanks, Ashish -Original Message- From: Steve Rutherford Sent: Thursday, January 14, 2021 6:32 PM To: Kalra, Ashish Cc: Paolo Bonzini ;

Re: [PATCH] KVM: kvmclock: Fix vCPUs > 64 can't be online/hotpluged

2021-01-14 Thread Wanpeng Li
On Thu, 14 Jan 2021 at 21:45, Vitaly Kuznetsov wrote: > > Wanpeng Li writes: > > > From: Wanpeng Li > > > > The per-cpu vsyscall pvclock data pointer assigns either an element of the > > static array hv_clock_boot (#vCPU <= 64) or dynamically allocated memory > > hvclock_mem (vCPU > 64), the

Re: [PATCH v2 2/2] kbuild: handle excessively long argument lists

2021-01-14 Thread Masahiro Yamada
On Fri, Jan 15, 2021 at 6:50 AM Jeff Johnson wrote: > > From: Mahesh Kumar Kalikot Veetil > > Modules with a large number of compilation units may be > exceeding AR and LD command argument list. Handle this gracefully by > writing the long argument list in a file. The command line options > read

Re: [PATCH v13 06/15] s390/vfio-ap: allow assignment of unavailable AP queues to mdev device

2021-01-14 Thread Halil Pasic
On Thu, 14 Jan 2021 12:54:39 -0500 Tony Krowiak wrote: > On 1/11/21 3:40 PM, Halil Pasic wrote: > > On Tue, 22 Dec 2020 20:15:57 -0500 > > Tony Krowiak wrote: > > > >> The current implementation does not allow assignment of an AP adapter or > >> domain to an mdev device if each APQN resulting

Re: [PATCH 1/2] kbuild: simplify cmd_mod

2021-01-14 Thread Nick Desaulniers
> From: Mahesh Kumar Kalikot Veetil > > Modules with a large number of compilation units can exceed execv > argument list resulting in E2BIG (Argument list too long) error. > > Fix this by replacing shell 'echo > file' into a more native > $(file op filename[,text]) option. > > Signed-off-by:

[PATCH] arm: OABI compat: fix build when EPOLL is not enabled

2021-01-14 Thread Randy Dunlap
When CONFIG_EPOLL is not set/enabled, sys_oabi-compat.c has build errors. Fix these by surrounding them with ifdef CONFIG_EPOLL/endif and providing stubs for the "EPOLL is not set" case. ../arch/arm/kernel/sys_oabi-compat.c: In function 'sys_oabi_epoll_ctl':

linux-next: build warning after merge of the amdgpu tree

2021-01-14 Thread Stephen Rothwell
Hi all, After merging the amdgpu tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'dm_set_vblank': drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5380:33: warning: unused variable 'dm'

Re: [PATCH v2 2/2] kbuild: handle excessively long argument lists

2021-01-14 Thread Nick Desaulniers
On Thu, Jan 14, 2021 at 1:50 PM Jeff Johnson wrote: > > From: Mahesh Kumar Kalikot Veetil > > Modules with a large number of compilation units may be > exceeding AR and LD command argument list. Handle this gracefully by > writing the long argument list in a file. The command line options > read

[PATCH] alpha: remove CONFIG_EXPERIMENTAL from defconfigs

2021-01-14 Thread Randy Dunlap
: linux-al...@vger.kernel.org Cc: Andrew Morton --- arch/alpha/configs/defconfig |1 - 1 file changed, 1 deletion(-) --- linux-next-20210114.orig/arch/alpha/configs/defconfig +++ linux-next-20210114/arch/alpha/configs/defconfig @@ -1,4 +1,3 @@ -CONFIG_EXPERIMENTAL=y CONFIG

[PATCH] hexagon: remove CONFIG_EXPERIMENTAL from defconfigs

2021-01-14 Thread Randy Dunlap
rew Morton --- arch/hexagon/configs/comet_defconfig |1 - 1 file changed, 1 deletion(-) --- linux-next-20210114.orig/arch/hexagon/configs/comet_defconfig +++ linux-next-20210114/arch/hexagon/configs/comet_defconfig @@ -1,7 +1,6 @@ CONFIG_SMP=y CONFIG_DEFAULT_MMAP_MIN_ADDR=0 CONFI

Re: [PATCH 17/21] x86/acpi: Convert indirect jump to retpoline

2021-01-14 Thread Andrew Cooper
On 14/01/2021 23:47, Josh Poimboeuf wrote: > On Thu, Jan 14, 2021 at 10:59:39PM +, Andrew Cooper wrote: >> On 14/01/2021 19:40, Josh Poimboeuf wrote: >>> It's kernel policy to not have (unannotated) indirect jumps because of >>> Spectre v2. This one's probably harmless, but better safe than

linux-next: manual merge of the amdgpu tree with Linus' tree

2021-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the amdgpu tree got a conflict in: drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c between commit: 61d791365b72 ("drm/amd/display: avoid uninitialized variable warning") from Linus' tree and commit: f03e80d2e82c ("drm/amd/display: Initialize stack

Re: [PATCH v4 1/3] kunit: tool: surface and address more typing issues

2021-01-14 Thread Brendan Higgins
On Thu, Jan 14, 2021 at 4:39 PM Daniel Latypov wrote: > > The authors of this tool were more familiar with a different > type-checker, https://github.com/google/pytype. > > That's open source, but mypy seems more prevalent (and runs faster). > And unlike pytype, mypy doesn't try to infer types so

[PATCH 1/1] iommu/vt-d: Preset Access/Dirty bits for IOVA over FL

2021-01-14 Thread Lu Baolu
The Access/Dirty bits in the first level page table entry will be set whenever a page table entry was used for address translation or write permission was successfully translated. This is always true when using the first-level page table for kernel IOVA. Instead of wasting hardware cycles to

Re: [PATCH v4 2/3] kunit: tool: fix minor typing issue with None status

2021-01-14 Thread Brendan Higgins
On Thu, Jan 14, 2021 at 4:39 PM Daniel Latypov wrote: > > The code to handle aggregating statuses didn't check that the status > actually got set to some non-None value. > Default the value to SUCCESS instead of adding a bunch of `is None` > checks. > > This sorta follows the precedent in commit

Re: [PATCH v4 3/3] kunit: tool: move kunitconfig parsing into __init__, make it optional

2021-01-14 Thread Brendan Higgins
On Thu, Jan 14, 2021 at 4:39 PM Daniel Latypov wrote: > > LinuxSourceTree will unceremoniously crash if the user doesn't call > read_kunitconfig() first in a number of functions. > > And currently every place we create an instance, the caller also calls > create_kunitconfig() and

Re: [PATCH 00/21] objtool: vmlinux.o and CLANG LTO support

2021-01-14 Thread Nick Desaulniers
On Thu, Jan 14, 2021 at 4:41 PM Sami Tolvanen wrote: > > I can confirm that all the warnings I previously saw are now fixed, > but I'm seeing a few new ones: > > vmlinux.o: warning: objtool: balance_leaf_when_delete()+0x17d4: stack > state mismatch: cfa1=7+192 cfa2=7+176 > vmlinux.o: warning:

Re: [PATCH v5] scripts: use pkg-config to locate libcrypto

2021-01-14 Thread Jarkko Sakkinen
On Wed, Jan 13, 2021 at 01:49:12PM +0100, Rolf Eike Beer wrote: > Otherwise build fails if the headers are not in the default location. While at > it also ask pkg-config for the libs, with fallback to the existing value. > > Signed-off-by: Rolf Eike Beer > Cc: sta...@vger.kernel.org # 5.6.x

Re: [PATCH 00/21] objtool: vmlinux.o and CLANG LTO support

2021-01-14 Thread Sami Tolvanen
Hi Josh, On Thu, Jan 14, 2021 at 11:40 AM Josh Poimboeuf wrote: > > Add support for proper vmlinux.o validation, which will be needed for > Sami's upcoming x86 LTO set. (And vmlinux validation is the future for > objtool anyway, for other reasons.) > > This isn't 100% done -- most notably,

[PATCH v4 2/3] kunit: tool: fix minor typing issue with None status

2021-01-14 Thread Daniel Latypov
The code to handle aggregating statuses didn't check that the status actually got set to some non-None value. Default the value to SUCCESS instead of adding a bunch of `is None` checks. This sorta follows the precedent in commit 3fc48259d525 ("kunit: Don't fail test suites if one of them is

[PATCH v4 3/3] kunit: tool: move kunitconfig parsing into __init__, make it optional

2021-01-14 Thread Daniel Latypov
LinuxSourceTree will unceremoniously crash if the user doesn't call read_kunitconfig() first in a number of functions. And currently every place we create an instance, the caller also calls create_kunitconfig() and read_kunitconfig(). Move these instead into __init__() so they can't be forgotten

[PATCH v4 1/3] kunit: tool: surface and address more typing issues

2021-01-14 Thread Daniel Latypov
The authors of this tool were more familiar with a different type-checker, https://github.com/google/pytype. That's open source, but mypy seems more prevalent (and runs faster). And unlike pytype, mypy doesn't try to infer types so it doesn't check unanotated functions. So annotate ~all

[PATCH] KVM: x86/mmu: Remove the defunct update_pte() paging hook

2021-01-14 Thread Sean Christopherson
Remove the update_pte() shadow paging logic, which was obsoleted by commit 4731d4c7a077 ("KVM: MMU: out of sync shadow core"), but never removed. As pointed out by Yu, KVM never write protects leaf page tables for the purposes of shadow paging, and instead marks their associated shadow page as

[PATCH v3] x86/mce: Avoid infinite loop for copy from user recovery

2021-01-14 Thread Tony Luck
Recovery action when get_user() triggers a machine check uses the fixup path to make get_user() return -EFAULT. Also queue_task_work() sets up so that kill_me_maybe() will be called on return to user mode to send a SIGBUS to the current process. But there are places in the kernel where the code

[PATCH RESEND v3] virtio-input: add multi-touch support

2021-01-14 Thread Vasyl Vavrychuk
From: Mathias Crombez Without multi-touch slots allocated, ABS_MT_SLOT events will be lost by input_handle_abs_event. Implementation is based on uinput_create_device. Signed-off-by: Mathias Crombez Co-developed-by: Vasyl Vavrychuk Signed-off-by: Vasyl Vavrychuk --- v2: fix patch corrupted

Re: [PATCH 1/1] usb: xhci: setup packets don't need DMA mapping

2021-01-14 Thread Peter Chen
On 21-01-14 13:00:21, Alan Stern wrote: > On Thu, Jan 14, 2021 at 01:04:02PM +0800, Peter Chen wrote: > > On 21-01-14 11:59:07, Daewoong Kim wrote: > > > DMA mapping of urb->setup_packet is not necessary for xHCI host > > > controllers. The xHCI specification says that Setup Stage TRB includes > >

Re: [PATCH v3 1/3] kunit: tool: surface and address more typing issues

2021-01-14 Thread Brendan Higgins
On Thu, Jan 7, 2021 at 3:48 PM Daniel Latypov wrote: > > The authors of this tool were more familiar with a different > type-checker, https://github.com/google/pytype. > > That's open source, but mypy seems more prevalent (and runs faster). > And unlike pytype, mypy doesn't try to infer types so

Re: [PATCH 15/21] x86/xen/pvh: Convert indirect jump to retpoline

2021-01-14 Thread boris . ostrovsky
On 1/14/21 2:40 PM, Josh Poimboeuf wrote: > It's kernel policy to not have (unannotated) indirect jumps because of > Spectre v2. This one's probably harmless, but better safe than sorry. > Convert it to a retpoline. > > Cc: Boris Ostrovsky > Cc: Juergen Gross > Signed-off-by: Josh Poimboeuf

Re: [PATCH 14/21] x86/xen: Support objtool vmlinux.o validation in xen-head.S

2021-01-14 Thread boris . ostrovsky
On 1/14/21 2:40 PM, Josh Poimboeuf wrote: > The Xen hypercall page is filled with zeros, causing objtool to fall > through all the empty hypercall functions until it reaches a real > function, resulting in a stack state mismatch. > > The build-time contents of the hypercall page don't matter,

Re: [PATCH v9 00/18] Add AMD SEV guest live migration support

2021-01-14 Thread Steve Rutherford
Forgot to ask this: is there an intention to support SEND_CANCEL in a follow up patch? On Tue, Dec 8, 2020 at 2:03 PM Ashish Kalra wrote: > > From: Ashish Kalra > > The series add support for AMD SEV guest live migration commands. To protect > the > confidentiality of an SEV protected guest

Re: [PATCH 13/21] x86/xen: Support objtool validation in xen-asm.S

2021-01-14 Thread boris . ostrovsky
On 1/14/21 2:40 PM, Josh Poimboeuf wrote: > The OBJECT_FILES_NON_STANDARD annotation is used to tell objtool to > ignore a file. File-level ignores won't work when validating vmlinux.o. > > Tweak the ELF metadata and unwind hints to allow objtool to follow the > code. > > Cc: Boris Ostrovsky >

Re: [PATCH] compiler.h: Raise minimum version of GCC to 5.1 for arm64

2021-01-14 Thread Joe Perches
On Thu, 2021-01-14 at 13:18 -0800, Linus Torvalds wrote: > On Thu, Jan 14, 2021 at 11:52 AM Joe Perches wrote: > > > > Given the upgrade requirement, and how clang version requirements > > constantly change, how much more difficult would it be for others > > to use gcc 7.1 or higher now instead

Re: [PATCH v2 3/3] KVM: VMX: read idt_vectoring_info a bit earlier

2021-01-14 Thread Sean Christopherson
On Thu, Jan 14, 2021, Maxim Levitsky wrote: > This allows it to be printed correctly by the trace print It'd be helpful to explicitly say which tracepoint, and explain that the value is read by vmx_get_exit_info(). It's far from obvious how this gets consumed. > that follows. > Fixes:

Re: [PATCH] kunit: tool: Fix spelling of "diagnostic" in kunit_parser

2021-01-14 Thread Brendan Higgins
On Fri, Dec 11, 2020 at 2:32 PM David Gow wrote: > > Various helper functions were misspelling "diagnostic" in their names. > It finally got annoying, so fix it. > > Signed-off-by: David Gow Tested-by: Brendan Higgins

Re: [PATCH] kunit: tool: Fix spelling of "diagnostic" in kunit_parser

2021-01-14 Thread Brendan Higgins
On Fri, Dec 11, 2020 at 2:32 PM David Gow wrote: > > Various helper functions were misspelling "diagnostic" in their names. > It finally got annoying, so fix it. > > Signed-off-by: David Gow Reviewed-by: Brendan Higgins

Re: Old platforms: bring out your dead

2021-01-14 Thread William Breathitt Gray
On Fri, Jan 15, 2021 at 01:03:14AM +0100, Bernd Petrovitsch wrote: > On Wed, 2021-01-13 at 14:21 +0200, Andy Shevchenko wrote: > [...] > > WRT x86 I run the search > > https://pc104.org/product-search-results/?kw=x86_tag=_typeFilter+by+Member+Company > > seems like all of them are based on

[PATCH] platform/goldfish: Convert pipe tasklet to threaded irq

2021-01-14 Thread Davidlohr Bueso
Tasklets have long been deprecated as being too heavy on the system by running in irq context - and this is not a performance critical path. If a higher priority process wants to run, it must wait for the tasklet to finish before doing so. A more suitable equivalent is to converted to threaded irq

[PATCH] mailbox: bcm: Replace tasklet with threaded irq

2021-01-14 Thread Davidlohr Bueso
Tasklets have long been deprecated as being too heavy on the system by running in irq context - and this is not a performance critical path. If a higher priority process wants to run, it must wait for the tasklet to finish before doing so. Use a more suitable alternative such as threaded irqs and

[PATCH] parisc: Remove leftover reference to the power_tasklet

2021-01-14 Thread Davidlohr Bueso
This was removed long ago, back in: 6e16d9409e1 ([PARISC] Convert soft power switch driver to kthread) Signed-off-by: Davidlohr Bueso --- arch/parisc/include/asm/irq.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/parisc/include/asm/irq.h b/arch/parisc/include/asm/irq.h index

Re: [PATCH v2 2/3] KVM: nVMX: add kvm_nested_vmlaunch_resume tracepoint

2021-01-14 Thread Sean Christopherson
On Thu, Jan 14, 2021, Maxim Levitsky wrote: > This is very helpful for debugging nested VMX issues. > > Signed-off-by: Maxim Levitsky > --- > arch/x86/kvm/trace.h | 30 ++ > arch/x86/kvm/vmx/nested.c | 6 ++ > arch/x86/kvm/x86.c| 1 + > 3 files

[PATCH] kgdb: Schedule breakpoints via workqueue

2021-01-14 Thread Davidlohr Bueso
The original functionality was added back in: 1cee5e35f15 (kgdb: Add the ability to schedule a breakpoint via a tasklet) However tasklets have long been deprecated as being too heavy on the system by running in irq context - and this is not a performance critical path. If a higher priority

[PATCH] audit: Remove leftover reference to the audit_tasklet

2021-01-14 Thread Davidlohr Bueso
This was replaced with a kauditd_wait kthread long ago, back in: b7d1125817c (AUDIT: Send netlink messages from a separate kernel thread) Update the stale comment. Signed-off-by: Davidlohr Bueso --- kernel/audit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

drivers/gpu/drm/i915/i915_sw_fence.c:41:20: error: unused function 'debug_fence_init_onstack'

2021-01-14 Thread kernel test robot
Hi Masahiro, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 146620506274bd24d52fb1c589110a30eed8240b commit: 6863f5643dd717376c2fdc85a47a00f9d738a834 kbuild: allow Clang to find unused static inline functions for

Re: [PATCH net-next v2 0/2] Add 100 base-x mode

2021-01-14 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Wed, 13 Jan 2021 12:56:24 +0100 you wrote: > Adding support for 100 base-x in phylink. > The Sparx5 switch supports 100 base-x pcs (IEEE 802.3 Clause 24) 4b5b encoded. > These patches adds phylink support for that

Re: [PATCH v2 05/11] clk: qcom: gcc-msm8998: Mark gpu_cfg_ahb_clk as critical

2021-01-14 Thread Jeffrey Hugo
On Thu, Jan 14, 2021 at 4:05 PM AngeloGioacchino Del Regno wrote: > > Il 14/01/21 23:37, Jeffrey Hugo ha scritto: > > On Thu, Jan 14, 2021 at 3:13 PM AngeloGioacchino Del Regno > > wrote: > >> > >> The GPU IOMMU depends on this clock and the hypervisor will crash > >> the SoC if this clock gets

Re: Old platforms: bring out your dead

2021-01-14 Thread Bernd Petrovitsch
On Wed, 2021-01-13 at 14:21 +0200, Andy Shevchenko wrote: [...] > WRT x86 I run the search > https://pc104.org/product-search-results/?kw=x86_tag=_typeFilter+by+Member+Company > seems like all of them are based on Vortex86DX. There are some real/true PC104 boards left - still in production -

Re: [PATCH] x86/lib: don't use MMX before FPU initialization

2021-01-14 Thread Krzysztof Mazur
On Thu, Jan 14, 2021 at 08:31:30AM -0800, Andy Lutomirski wrote: > This is gross. I realize this is only used for old CPUs that we don't > care about perf-wise Performance might be still important for embedded systems (Geode LX seems to be supported "until at least 2021"). > , but this code is

Re: [PATCH] Documentation: livepatch: document reliable stacktrace

2021-01-14 Thread Josh Poimboeuf
On Thu, Jan 14, 2021 at 06:10:13PM +, Mark Rutland wrote: > On Wed, Jan 13, 2021 at 04:25:41PM -0600, Josh Poimboeuf wrote: > > On Wed, Jan 13, 2021 at 08:23:15PM +, Mark Brown wrote: > > > On Wed, Jan 13, 2021 at 01:33:13PM -0600, Josh Poimboeuf wrote: > > > > > > > I think it's worth

Re: [RFC PATCH v3 1/2] iommu: Add capability IOMMU_CAP_VIOMMU

2021-01-14 Thread Lu Baolu
Hi Leon, On 1/14/21 9:26 PM, Leon Romanovsky wrote: On Thu, Jan 14, 2021 at 09:30:02AM +0800, Lu Baolu wrote: Some vendor IOMMU drivers are able to declare that it is running in a VM context. This is very valuable for the features that only want to be supported on bare metal. Add a capability

Re: Live patching on ARM64

2021-01-14 Thread Josh Poimboeuf
Hi Madhavan, I'd also recommend subscribing to the live-patching mailing list (Cc'ed). On Thu, Jan 14, 2021 at 04:07:55PM -0600, Madhavan T. Venkataraman wrote: > Hi all, > > My name is Madhavan Venkataraman. > > Microsoft is very interested in Live Patching support for ARM64. > On behalf of

Re: [PATCH v2 1/3] KVM: nVMX: Always call sync_vmcs02_to_vmcs12_rare on migration

2021-01-14 Thread Sean Christopherson
Subject is confusing, and technically wrong. Confusing because there is no call to sync_vmcs02_to_vmcs12_rare(). Technically wrong because sync_...() won't be called if need_sync_vmcs02_to_vmcs12_rare==false. Maybe something like? KVM: nVMX: Sync unsync'd vmcs02 state to vmcs12 on migration

[PATCH net] skbuff: back tiny skbs with kmalloc() in __netdev_alloc_skb() too

2021-01-14 Thread Alexander Lobakin
Commit 3226b158e67c ("net: avoid 32 x truesize under-estimation for tiny skbs") ensured that skbs with data size lower than 1025 bytes will be kmalloc'ed to avoid excessive page cache fragmentation and memory consumption. However, the same issue can still be achieved manually via

[tip:x86/urgent] BUILD SUCCESS 1eb8f690bcb565a6600f8b6dcc78f7b239ceba17

2021-01-14 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20210114 i386 randconfig-a005-20210114 i386 randconfig-a006-20210114 i386 randconfig

Re: [PATCH 17/21] x86/acpi: Convert indirect jump to retpoline

2021-01-14 Thread Josh Poimboeuf
On Thu, Jan 14, 2021 at 10:59:39PM +, Andrew Cooper wrote: > On 14/01/2021 19:40, Josh Poimboeuf wrote: > > It's kernel policy to not have (unannotated) indirect jumps because of > > Spectre v2. This one's probably harmless, but better safe than sorry. > > Convert it to a retpoline. > > > >

[tip:locking/core] BUILD SUCCESS 7e923e6a3ceb877497dd9ee70d71fa33b94f332b

2021-01-14 Thread kernel test robot
powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20210114 i386 randconfig-a005-20210114 i386 randconfig-a006-20210114 i386 randconfig-a001-20210114 i386

Re: [PATCH bpf-next 2/3] bpf: Add size arg to build_id_parse function

2021-01-14 Thread Yonghong Song
On 1/14/21 2:02 PM, Jiri Olsa wrote: On Thu, Jan 14, 2021 at 01:05:33PM -0800, Yonghong Song wrote: On 1/14/21 12:01 PM, Jiri Olsa wrote: On Thu, Jan 14, 2021 at 10:56:33AM -0800, Yonghong Song wrote: On 1/14/21 5:40 AM, Jiri Olsa wrote: It's possible to have other build id types

[PATCH v6 2/4] pinctrl: qcom: No need to read-modify-write the interrupt status

2021-01-14 Thread Douglas Anderson
When the Qualcomm pinctrl driver wants to Ack an interrupt, it does a read-modify-write on the interrupt status register. On some SoCs it makes sure that the status bit is 1 to "Ack" and on others it makes sure that the bit is 0 to "Ack". Presumably the first type of interrupt controller is a

[PATCH v6 3/4] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-14 Thread Douglas Anderson
In commit 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") we tried to Ack interrupts during unmask. However, that patch forgot to check "intr_ack_high" so, presumably, it only worked for a certain subset of SoCs. Let's add a small accessor so we don't need to open-code the

[PATCH v6 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-14 Thread Douglas Anderson
In Linux, if a driver does disable_irq() and later does enable_irq() on its interrupt, I believe it's expecting these properties: * If an interrupt was pending when the driver disabled then it will still be pending after the driver re-enables. * If an edge-triggered interrupt comes in while an

[PATCH v6 1/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2021-01-14 Thread Douglas Anderson
There's currently a comment in the code saying function 0 is GPIO. Instead of hardcoding it, let's add a member where an SoC can specify it. No known SoCs use a number other than 0, but this just makes the code clearer. NOTE: no SoC code needs to be updated since we can rely on

Re: [PATCH v9, 05/11] drm/mediatek: add fifo_size into rdma private data

2021-01-14 Thread Chun-Kuang Hu
Hi, Yongqiang: Chun-Kuang Hu 於 2021年1月7日 週四 下午6:05寫道: > > Hi, Yongqiang: > > Yongqiang Niu 於 2021年1月7日 週四 上午11:12寫道: > > > > Get the fifo size from device tree > > because each rdma in the same SoC may have different fifo size > > Reviewed-by: Chun-Kuang Hu Applied to mediatek-drm-next [1],

Re: [PATCH net-next 0/6] net: ipa: GSI interrupt updates

2021-01-14 Thread Saeed Mahameed
On Wed, 2021-01-13 at 11:15 -0600, Alex Elder wrote: > This series implements some updates for the GSI interrupt code, > buliding on some bug fixes implemented last month. > > The first two are simple changes made to improve readability and > consistency. The third replaces all msleep() calls

[PATCH v4 1/1] mfd: intel-m10-bmc: expose mac address and count

2021-01-14 Thread Russ Weight
Create two sysfs entries for exposing the MAC address and count from the MAX10 BMC register space. The MAC address is the first in a sequential block of MAC addresses reserved for the FPGA card. The MAC count is the number of MAC addresses in the reserved block. Signed-off-by: Russ Weight

[PATCH v4 0/1] mfd: intel-m10-bmc: add sysfs files for mac_address

2021-01-14 Thread Russ Weight
Add two sysfs nodes to the Intel MAX10 BMC driver: mac_address and mac_count. The mac_address provides the first of a series of sequential MAC addresses assigned to the FPGA card. The mac_count indicates how many MAC addresses are assigned to the card. Changelog v3 -> v4: - Changed local

[PATCH] initramfs: Panic with memory information

2021-01-14 Thread Florian Fainelli
On systems with large amounts of reserved memory we may fail to successfully complete unpack_to_rootfs() and be left with: Kernel panic - not syncing: write error this is not too helpful to understand what happened, so let's wrap the panic() calls with a surrounding show_mem() such that we have

Re: [PATCH v3 1/1] mfd: intel-m10-bmc: expose mac address and count

2021-01-14 Thread Russ Weight
On 1/14/21 5:23 AM, Lee Jones wrote: > On Tue, 05 Jan 2021, Russ Weight wrote: > >> Create two sysfs entries for exposing the MAC address >> and count from the MAX10 BMC register space. The MAC >> address is the first in a sequential block of MAC addresses >> reserved for the FPGA card. The MAC

Re: Old platforms: bring out your dead

2021-01-14 Thread Max Filippov
Hi Arnd, On Thu, Jan 14, 2021 at 1:25 PM Arnd Bergmann wrote: > | arch/mips/Kconfig:config HIGHMEM > | arch/xtensa/Kconfig:config HIGHMEM > > AFAICT On MIPS (prior to MIPS32r3) and xtensa, you have at > most 512MB in the linear map, so the VMSPLIT_2G or VMSPLIT_4G_4G > tricks won't work.

Re: [PATCH v2 05/11] clk: qcom: gcc-msm8998: Mark gpu_cfg_ahb_clk as critical

2021-01-14 Thread AngeloGioacchino Del Regno
Il 14/01/21 23:37, Jeffrey Hugo ha scritto: On Thu, Jan 14, 2021 at 3:13 PM AngeloGioacchino Del Regno wrote: The GPU IOMMU depends on this clock and the hypervisor will crash the SoC if this clock gets disabled because the secure contexts that have been set on this IOMMU by the bootloader

[tip:sched/core] BUILD SUCCESS 65bcf072e20ed7597caa902f170f293662b0af3c

2021-01-14 Thread kernel test robot
ips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20210114 i386 randconfig-a005-20210

Re: [PATCH 17/21] x86/acpi: Convert indirect jump to retpoline

2021-01-14 Thread Andrew Cooper
On 14/01/2021 19:40, Josh Poimboeuf wrote: > It's kernel policy to not have (unannotated) indirect jumps because of > Spectre v2. This one's probably harmless, but better safe than sorry. > Convert it to a retpoline. > > Cc: "Rafael J. Wysocki" > Cc: Len Brown > Cc: Pavel Machek >

[tip:perf/core] BUILD SUCCESS 9a7832ce3d920426a36cdd78eda4b3568d4d09e3

2021-01-14 Thread kernel test robot
rpc allnoconfig i386 randconfig-a002-20210114 i386 randconfig-a005-20210114 i386 randconfig-a006-20210114 i386 randconfig-a001-20210114 i386 randconfig-a003-20210114 i386 randconfig-a004-20210114 x86

Re: [PATCH v3, 11/15] drm/mediatek: fix aal size config

2021-01-14 Thread Chun-Kuang Hu
Hi, Yongqiang: Yongqiang Niu 於 2021年1月11日 週一 下午3:48寫道: > > the orginal setting is not correct, fix it follow hardware data sheet. > if keep this error setting, mt8173/mt8183 display ok > but mt8192 display abnormal. > Applied to mediatek-drm-next [1], thanks. [1]

Undesirable code, was Re: Old platforms etc.

2021-01-14 Thread Finn Thain
On Thu, 14 Jan 2021, Arnd Bergmann wrote: > I think it's mainly a misunderstanding of what I am trying to do > in finding the platforms that have been completely abandoned. Have you tried to identify those drivers and Kconfig symbols in mainline that are used only by devices that don't function

Re: [PATCH v2 4/4] phy: phy-hi3670-usb3: move driver from staging into phy

2021-01-14 Thread Rob Herring
On Thu, 14 Jan 2021 18:35:44 +0100, Mauro Carvalho Chehab wrote: > The phy USB3 driver for Hisilicon 970 (hi3670) is ready > for mainstream. Mode it from staging into the main driver's > phy/ directory. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../bindings/phy/phy-hi3670-usb3.yaml

Re: [PATCH v2 13/14] KVM: SVM: Remove an unnecessary prototype declaration of sev_flush_asids()

2021-01-14 Thread Tom Lendacky
On 1/13/21 6:37 PM, Sean Christopherson wrote: Remove the forward declaration of sev_flush_asids(), which is only a few lines above the function itself. No functional change intended. Signed-off-by: Sean Christopherson Reviewed-by: Tom Lendacky --- arch/x86/kvm/svm/sev.c | 1 - 1 file

Re: [LKP] Re: [btrfs] e076ab2a2c: fio.write_iops -18.3% regression

2021-01-14 Thread David Sterba
On Wed, Jan 13, 2021 at 01:58:18PM +0800, Xing Zhengjun wrote: > > > On 1/12/2021 11:45 PM, David Sterba wrote: > > On Tue, Jan 12, 2021 at 11:36:14PM +0800, kernel test robot wrote: > >> Greeting, > >> > >> FYI, we noticed a -18.3% regression of fio.write_iops due to commit: > >> > >> > >>

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