Re: Errant readings on LM81 with T2080 SoC

2021-03-08 Thread Guenter Roeck
On 3/8/21 8:36 PM, Chris Packham wrote: > > On 9/03/21 11:10 am, Chris Packham wrote: >> >> On 8/03/21 5:59 pm, Guenter Roeck wrote: >>> On 3/7/21 8:37 PM, Chris Packham wrote: >>> [ ... ] > That's from -ENXIO which is used in only one place in i2c-mpc.c. I'll > enable some debug and see

Re: [PATCH v1 1/2] watchdog: add global watchdog kernel module parameters structure

2021-03-08 Thread Randy Dunlap
Hi, On 3/8/21 3:21 AM, Flavio Suligoi wrote: > Different watchdog modules frequently require the same type of parameters > (for example: timeout, nowayout feature, start wdog on module insertion, > etc.). > Instead of adding this kind of module parameters independently to each > driver, the best

[PATCH v11 5/6] staging: mt7621-dts: use valid vendor 'mediatek' instead of invalid 'mtk'

2021-03-08 Thread Sergio Paracuellos
Vendor listed for mediatek in kernel vendor file 'vendor-prefixes.yaml' contains 'mediatek' as a valid vendor string. Some nodes in the device tree are using an invalid vendor string vfor 'mtk' instead. Fix all of them in dts file. Update also ralink mt7621 related code to properly match new

[PATCH v11 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-03-08 Thread Sergio Paracuellos
The documentation for this SOC only talks about two registers regarding to the clocks: * SYSC_REG_CPLL_CLKCFG0 - provides some information about boostrapped refclock. PLL and dividers used for CPU and some sort of BUS. * SYSC_REG_CPLL_CLKCFG1 - a banch of gates to enable/disable clocks for all or

[PATCH v11 2/6] dt: bindings: add mt7621-sysc device tree binding documentation

2021-03-08 Thread Sergio Paracuellos
Adds device tree binding documentation for clocks in the MT7621 SOC. Reviewed-by: Rob Herring Signed-off-by: Sergio Paracuellos --- .../bindings/clock/mediatek,mt7621-sysc.yaml | 68 +++ 1 file changed, 68 insertions(+) create mode 100644

[PATCH v11 4/6] staging: mt7621-dts: make use of new 'mt7621-clk'

2021-03-08 Thread Sergio Paracuellos
Clocks for SoC mt7621 have been properly integrated so there is no need to declare fixed clocks at all in the device tree. Remove all of them, add new device tree nodes for mt7621-clk and update the rest of the nodes to use them. Acked-by: Greg Kroah-Hartman Signed-off-by: Sergio Paracuellos

[PATCH v11 6/6] MAINTAINERS: add MT7621 CLOCK maintainer

2021-03-08 Thread Sergio Paracuellos
Adding myself as maintainer for mt7621 clock driver. Signed-off-by: Sergio Paracuellos --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 809a68af5efd..ecad5d972122 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11288,6 +11288,12 @@ L:

[PATCH v11 1/6] dt-bindings: clock: add dt binding header for mt7621 clocks

2021-03-08 Thread Sergio Paracuellos
Adds dt binding header for 'mediatek,mt7621-clk' clocks. Acked-by: Rob Herring Signed-off-by: Sergio Paracuellos --- include/dt-bindings/clock/mt7621-clk.h | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 include/dt-bindings/clock/mt7621-clk.h diff --git

[PATCH v11 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-03-08 Thread Sergio Paracuellos
This patchset ports CPU clock detection for MT7621 from OpenWrt and adds a complete clock plan for the mt7621 SOC. The documentation for this SOC only talks about two registers regarding to the clocks: * SYSC_REG_CPLL_CLKCFG0 - provides some information about boostrapped refclock. PLL and

[PATCH 2/2] usb: cdns3: Optimize DMA request buffer allocation

2021-03-08 Thread Sanket Parmar
dma_alloc_coherent() might fail on the platform with a small DMA region. To avoid such failure in cdns3_prepare_aligned_request_buf(), dma_alloc_coherent() is replaced with kmalloc and dma_map API to allocate aligned request buffer of dynamic length. Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence

[PATCH 1/2] usb: cdns3: Use dma_pool_* api to alloc trb pool

2021-03-08 Thread Sanket Parmar
Allocation of DMA coherent memory in atomic context using dma_alloc_coherent() might fail on platforms with smaller DMA region. To fix it, dma_alloc_coherent() is replaced with dma_pool API to allocate a smaller chunk of DMA coherent memory for TRB rings. Fixes: 7733f6c32e36 ("usb: cdns3: Add

[PATCH v2 2/2] mm: fs: Invalidate BH LRU during page migration

2021-03-08 Thread Minchan Kim
Pages containing buffer_heads that are in one of the per-CPU buffer_head LRU caches will be pinned and thus cannot be migrated. This can prevent CMA allocations from succeeding, which are often used on platforms with co-processors (such as a DSP) that can only use physically contiguous memory. It

[PATCH v2 1/2] mm: disable LRU pagevec during the migration temporarily

2021-03-08 Thread Minchan Kim
LRU pagevec holds refcount of pages until the pagevec are drained. It could prevent migration since the refcount of the page is greater than the expection in migration logic. To mitigate the issue, callers of migrate_pages drains LRU pagevec via migrate_prep or lru_add_drain_all before

Re: [PATCH v4 2/3] xen/events: don't unmask an event channel when an eoi is pending

2021-03-08 Thread Jürgen Groß
On 08.03.21 21:33, Boris Ostrovsky wrote: On 3/6/21 11:18 AM, Juergen Gross wrote: An event channel should be kept masked when an eoi is pending for it. When being migrated to another cpu it might be unmasked, though. In order to avoid this keep three different flags for each event channel to

Re: [PATCH] arch: x86: kernel: Adjust the words to suit sentences in the file vmlinux.lds.S

2021-03-08 Thread Randy Dunlap
On 3/8/21 7:41 PM, Bhaskar Chowdhury wrote: > > > s/percpu/per CPU/ > s/baremetal/bare metal/ > > Signed-off-by: Bhaskar Chowdhury Yeah, "bare metal" is a little better than "baremetal". OTOH, "percpu" is a kernel construct's name. It doesn't have to be proper English IMHO. (2 cents worth)

Re: [PATCH 5.4 00/22] 5.4.104-rc1 review

2021-03-08 Thread Naresh Kamboju
On Mon, 8 Mar 2021 at 18:02, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.104 release. > There are 22 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

RE: [PATCH v10 01/20] dlb: add skeleton for DLB driver

2021-03-08 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > On Mon, Mar 08, 2021 at 08:00:00PM +, Chen, Mike Ximing wrote: > > > > Hi Greg, > > > > While waiting for the feedback from the networking maintainers, I am > > wondering if you have any other comments/suggestions that I should address > > in

[PATCH] net: add net namespace inode for all net_dev events

2021-03-08 Thread Tony Lu
There are lots of net namespaces on the host runs containers like k8s. It is very common to see the same interface names among different net namespaces, such as eth0. It is not possible to distinguish them without net namespace inode. This adds net namespace inode for all net_dev events, help us

Re: [PATCH 5.10 00/42] 5.10.22-rc1 review

2021-03-08 Thread Naresh Kamboju
On Mon, 8 Mar 2021 at 18:04, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.22 release. > There are 42 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: Errant readings on LM81 with T2080 SoC

2021-03-08 Thread Chris Packham
On 9/03/21 11:10 am, Chris Packham wrote: > > On 8/03/21 5:59 pm, Guenter Roeck wrote: >> On 3/7/21 8:37 PM, Chris Packham wrote: >> [ ... ] That's from -ENXIO which is used in only one place in i2c-mpc.c. I'll enable some debug and see what we get. >>> For the errant readings there was

Re: [PATCH] opp: Invalidate current opp when draining the opp list

2021-03-08 Thread Viresh Kumar
On 08-03-21, 18:14, Beata Michalska wrote: > > -bool _opp_remove_all_static(struct opp_table *opp_table) > > +/* > > + * Can't remove the OPP from under the lock, debugfs removal needs to > > happen > > + * lock less to avoid circular dependency issues. This must be called > > without > > + *

Re: [PATCH 06/10] staging: greybus: spilib: use 'spi_delay_to_ns' for getting xfer delay

2021-03-08 Thread Viresh Kumar
On 08-03-21, 16:54, Alexandru Ardelean wrote: > The intent is the removal of the 'delay_usecs' field from the > spi_transfer struct, as there is a 'delay' field that does the same > thing. > > The spi_delay_to_ns() can be used to get the transfer delay. It works by > using the 'delay_usecs' field

Re: [PATCH 5.11 00/44] 5.11.5-rc1 review

2021-03-08 Thread Naresh Kamboju
On Mon, 8 Mar 2021 at 18:06, wrote: > > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.11.5 release. > There are 44 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v2] MIPS: Check __clang__ to avoid performance influence with GCC in csum_tcpudp_nofold()

2021-03-08 Thread Tiezhu Yang
The asm code in csum_tcpudp_nofold() is performance-critical, I am sorry for the poorly considered implementation about the performance influence with GCC in the commit 198688edbf77 ("MIPS: Fix inline asm input/output type mismatch in checksum.h used with Clang"). With this patch, we can build

Re: [PATCH V5 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback

2021-03-08 Thread Viresh Kumar
On 08-03-21, 14:52, Will Deacon wrote: > On Mon, Mar 01, 2021 at 12:21:17PM +0530, Viresh Kumar wrote: > > +EXPORT_SYMBOL_GPL(topology_set_scale_freq_source); > > I don't get why you need to export this in this patch. The arm64 topology > code is never built as a module. > > >

Re: [LTP] [f2fs] 02eb84b96b: ltp.swapon03.fail

2021-03-08 Thread Matthew Wilcox
On Tue, Mar 09, 2021 at 10:23:35AM +0800, Weichao Guo wrote: > Hi Richard, > > On 2021/3/8 19:53, Richard Palethorpe wrote: > > Hello, > > > > > kern :err : [ 187.461914] F2FS-fs (sda1): Swapfile does not align to > > > section > > > commit 02eb84b96bc1b382dd138bf60724edbefe77b025 > > >

linux-next: Tree for Mar 9

2021-03-08 Thread Stephen Rothwell
Merging afs/afs-next (8409f67b6437 afs: Adjust the fileserver rotation algorithm to reprobe/retry more quickly) Merging btrfs/for-next (c4e9b6a42a43 Merge branch 'for-next-next-v5.12-20210308' into for-next-20210308) Merging ceph/master (558b4510f622 ceph: defer flushing the capsnap if the Fb is us

Re: [PATCH] net: ethernet: chelsio: inline_crypto: Mundane typos fixed throughout the file chcr_ktls.c

2021-03-08 Thread Randy Dunlap
On 3/6/21 1:20 PM, Bhaskar Chowdhury wrote: > > > Mundane typos fixes throughout the file. typo fixes and in Subject: > > s/establised/established/ > s/availbale/available/ > s/vaues/values/ > s/Incase/In case/ > > Signed-off-by: Bhaskar Chowdhury with the above fixes: Acked-by:

Re: [PATCH] soc: qcom: Fix typos in the file qmi_encdec.c

2021-03-08 Thread Randy Dunlap
On 3/6/21 1:35 PM, Bhaskar Chowdhury wrote: > > Rudimentory spelling fixes throughout the file. > > s/descibing/describing/ > s/inforation/information/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/soc/qcom/qmi_encdec.c | 8 > 1 file changed, 4

答复: [PATCH] vfio/pci: make the vfio_pci_mmap_fault reentrant

2021-03-08 Thread Zengtao (B)
Hi guys: Thanks for the helpful comments, after rethinking the issue, I have proposed the following change: 1. follow_pte instead of follow_pfn. 2. vmf_insert_pfn loops instead of io_remap_pfn_range 3. proper undos when some call fails. 4. keep the bigger lock range to avoid unessary pte

Re: [PATCH] arch: x86: boot: compressed: Fix a typo in the file head_64.S

2021-03-08 Thread Randy Dunlap
On 3/8/21 7:20 PM, Bhaskar Chowdhury wrote: > > > s/performend/performed/ Subject: does not need "arch: " in it. Check git log for other x86 commits to see how they look. With that fixed: Acked-by: Randy Dunlap > > > Signed-off-by: Bhaskar Chowdhury > --- >

Re: [PATCH] HID: intel_ish-hid: HBM: Use connected standby state bit during suspend/resume

2021-03-08 Thread Ye, Xiang
Hi Srinivas, Jiri On Mon, Mar 08, 2021 at 08:00:41AM -0800, Srinivas Pandruvada wrote: > On Mon, 2021-03-08 at 11:26 +0100, Jiri Kosina wrote: > > On Wed, 3 Mar 2021, Ye Xiang wrote: > > > > > ISH firmware uses connected standby state bit > > > (CONNECTED_STANDBY_STATE_BIT bit 1) > > > to notify

Re: [PATCH] [v26,1/4] scsi: ufs: Introduce HPB feature

2021-03-08 Thread Wang Qing
According to Samsung's iozone test result, HPB is going to boost random performance of rom on mobile, we believe it will help our customers on several occasions.

[PATCH] arch: x86: kernel: Adjust the words to suit sentences in the file vmlinux.lds.S

2021-03-08 Thread Bhaskar Chowdhury
s/percpu/per CPU/ s/baremetal/bare metal/ Signed-off-by: Bhaskar Chowdhury --- arch/x86/kernel/vmlinux.lds.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index efd9e9ea17f2..592a44ad13b1 100644 ---

[PATCH] scsi: dc395x: Use bitwise instead of arithmetic operator for flags

2021-03-08 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/scsi/dc395x.c:2921:28-29: WARNING: sum of probable bitmasks, consider |. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/dc395x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/dc395x.c

Re: [PATCH 0/6] mm: some config cleanups

2021-03-08 Thread Anshuman Khandual
On 3/8/21 12:11 PM, Anshuman Khandual wrote: > This series contains config cleanup patches which reduces code duplication > across platforms and also improves maintainability. There is no functional > change intended with this series. This has been boot tested on arm64 but > only build tested on

[PATCH] security/apparmor: fix misspellings using codespell tool

2021-03-08 Thread menglong8 . dong
From: Xiong Zhenwu A typo is found out by codespell tool in 204th line of apparmorfs.c: $ codespell ./security/apparmor/ ./apparmorfs.c:204: seting ==> setting Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- security/apparmor/apparmorfs.c | 2 +- 1 file changed, 1

[PATCH 1/1] drm/amdkfd: fix build error with AMD_IOMMU_V2=m

2021-03-08 Thread Felix Kuehling
Using 'imply AMD_IOMMU_V2' does not guarantee that the driver can link against the exported functions. If the GPU driver is built-in but the IOMMU driver is a loadable module, the kfd_iommu.c file is indeed built but does not work: x86_64-linux-ld: drivers/gpu/drm/amd/amdkfd/kfd_iommu.o: in

Re: [PATCH] [v26,1/4] scsi: ufs: Introduce HPB feature

2021-03-08 Thread Wang Qing

[PATCH] arch: x86: boot: compressed: Fix a typo in the file head_64.S

2021-03-08 Thread Bhaskar Chowdhury
s/performend/performed/ Signed-off-by: Bhaskar Chowdhury --- arch/x86/boot/compressed/head_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index e94874f4bbc1..a8c4095ee115 100644 ---

Re: [PATCH] [variant b] drm/amdkfd: fix build error with missing AMD_IOMMU_V2

2021-03-08 Thread Felix Kuehling
Am 2021-03-08 um 3:45 p.m. schrieb Arnd Bergmann: > From: Arnd Bergmann > > Using 'imply AMD_IOMMU_V2' does not guarantee that the driver can link > against the exported functions. If the GPU driver is built-in but the > IOMMU driver is a loadable module, the kfd_iommu.c file is indeed > built

[PATCH 2/3] tpm: acpi: Check eventlog signature before using it

2021-03-08 Thread Stefan Berger
Check the eventlog signature before using it. This avoids using an empty log, as may be the case when QEMU created the ACPI tables, rather than probing the EFI log next. This resolves an issue where the EFI log was empty since an empty ACPI log was used. Fixes: 85467f63a05c ("tpm: Add support for

[PATCH 3/3] tpm: vtpm_proxy: Avoid reading host log when using a virtual device

2021-03-08 Thread Stefan Berger
Avoid allocating memory and reading the host log when a virtual device is used since this log is of no use to that driver. A virtual device can be identified through the flag TPM_CHIP_FLAG_VIRTUAL, which is only set for the tpm_vtpm_proxy driver. Fixes: 6f99612e2500 ("tpm: Proxy driver for

[PATCH 1/3] tpm: efi: Use local variable for calculating final log size

2021-03-08 Thread Stefan Berger
When tpm_read_log_efi was called multiple times, which happens when one loads and unloads a TPM2 driver multiple times, then the global variable efi_tpm_final_log_size will at some point become a negative number due to the subtraction of final_events_preboot_size occurring each time. Use a

[PATCH 0/3] Fix bugs related to TPM2 event log

2021-03-08 Thread Stefan Berger
This series of patches fixes a couple of issues related to TPM2 event logs, such as the disappearance of the TPM2 log on QEMU machines running with UEFI (my fault) and a kernel fault due to an integer under- flow when reading the TPM 2 log multiple times. Regards, Stefan Stefan Berger (3):

Re: [PATCH v2 3/3] PCI: set dma-can-stall for HiSilicon chip

2021-03-08 Thread Zhangfei Gao
Hi, Krzysztof On 2021/3/8 上午1:54, Krzysztof Wilczyński wrote: Hi, [...] Property dma-can-stall depends on patchset https://lore.kernel.org/linux-iommu/20210108145217.2254447-1-jean-phili...@linaro.org/ [...] If you plan to post another version of this patch to include the above link into

Re: [PATCH v3 1/2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2021-03-08 Thread Thinh Nguyen
Wesley Cheng wrote: > > On 3/6/2021 3:41 PM, Thinh Nguyen wrote: >> Wesley Cheng wrote: >>> On 1/8/2021 4:44 PM, Thinh Nguyen wrote: Hi, John Stultz wrote: > On Fri, Jan 8, 2021 at 4:26 AM Felipe Balbi wrote: >> Hi, >> >> John Stultz writes: >>> From: Yu Chen

[PATCH v3 3/3] PCI: Set dma-can-stall for HiSilicon chips

2021-03-08 Thread Zhangfei Gao
HiSilicon KunPeng920 and KunPeng930 have devices appear as PCI but are actually on the AMBA bus. These fake PCI devices can support SVA via SMMU stall feature, by setting dma-can-stall for ACPI platforms. Property dma-can-stall depends on patchset

[PATCH v3 2/3] PCI: Add a quirk to set pasid_no_tlp for HiSilicon chips

2021-03-08 Thread Zhangfei Gao
HiSilicon KunPeng920 and KunPeng930 have devices appear as PCI but are actually on the AMBA bus. These fake PCI devices have PASID capability though not supporting TLP. Add a quirk to set pasid_no_tlp for these devices. Signed-off-by: Zhangfei Gao Signed-off-by: Jean-Philippe Brucker

[PATCH v3 1/3] PCI: PASID can be enabled without TLP prefix

2021-03-08 Thread Zhangfei Gao
A PASID-like feature is implemented on AMBA without using TLP prefixes and these devices have PASID capability though not supporting TLP. Adding a pasid_no_tlp bit for "PASID works without TLP prefixes" and pci_enable_pasid() checks pasid_no_tlp as well as eetlp_prefix_path. Suggested-by: Bjorn

[PATCH v3 0/3] PCI: Add a quirk to enable SVA for HiSilicon chip

2021-03-08 Thread Zhangfei Gao
HiSilicon KunPeng920 and KunPeng930 have devices appear as PCI but are actually on the AMBA bus. These fake PCI devices have PASID capability though not supporting TLP. Add a quirk to set pasid_no_tlp and dma-can-stall for these devices. v3: Rebase to Linux 5.12-rc1 Change commit msg adding:

Re: [PATCH v3] perf pmu: Validate raw event with sysfs exported format bits

2021-03-08 Thread Jin, Yao
Hi Jiri, On 3/8/2021 9:14 PM, Jiri Olsa wrote: On Mon, Mar 08, 2021 at 08:57:49PM +0800, Jin, Yao wrote: Hi Jiri, On 3/8/2021 6:35 PM, Jiri Olsa wrote: On Mon, Mar 08, 2021 at 11:15:06AM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index

[PATCH 4.4 2/3] futex: Cure exit race

2021-03-08 Thread Zheng Yejian
From: Thomas Gleixner commit da791a667536bf8322042e38ca85d55a78d3c273 upstream. Stefan reported, that the glibc tst-robustpi4 test case fails occasionally. That case creates the following race between sys_exit() and sys_futex_lock_pi(): CPU0 CPU1 sys_exit()

[PATCH 4.4 1/3] futex: Change locking rules

2021-03-08 Thread Zheng Yejian
From: Peter Zijlstra Currently futex-pi relies on hb->lock to serialize everything. But hb->lock creates another set of problems, especially priority inversions on RT where hb->lock becomes a rt_mutex itself. The rt_mutex::wait_lock is the most obvious protection for keeping the futex user

[PATCH 4.4 0/3] Backport patch series to update Futex from 4.9

2021-03-08 Thread Zheng Yejian
Lee sent a patchset to update Futex for 4.9, see https://www.spinics.net/lists/stable/msg443081.html, Then Xiaoming sent a follow-up patch for it, see https://lore.kernel.org/lkml/20210225093120.GD641347@dell/. These patchsets may also resolve following issues in 4.4.260 which have been

[PATCH 4.4 3/3] futex: fix dead code in attach_to_pi_owner()

2021-03-08 Thread Zheng Yejian
From: Thomas Gleixner The handle_exit_race() function is defined in commit 9c3f39860367 ("futex: Cure exit race"), which never returns -EBUSY. This results in a small piece of dead code in the attach_to_pi_owner() function: int ret = handle_exit_race(uaddr, uval, p); /* Never return

Re: [PATCH 1/2] zram: fix crashes due to use of cpu hotplug multistate

2021-03-08 Thread Minchan Kim
On Sat, Mar 06, 2021 at 02:20:34AM +, Luis Chamberlain wrote: > The zram driver makes use of cpu hotplug multistate support, > whereby it associates a zram compression stream per CPU. To > support CPU hotplug multistate a callback enabled to allow > the driver to do what it needs when a CPU

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

2021-03-08 Thread Stephen Rothwell
Hi all, After merging the amdgpu tree, today's linux-next build (htmldocs) produced this warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:380: warning: Function parameter or member 'crc_rd_wrk' not described in 'amdgpu_display_manager' Introduced by commit 9a65df193108

Re: [f2fs-dev] [PATCH] f2fs: expose # of overprivision segments

2021-03-08 Thread Chao Yu
On 2021/3/9 8:07, Jaegeuk Kim wrote: On 03/05, Chao Yu wrote: On 2021/3/5 1:50, Jaegeuk Kim wrote: On 03/04, Chao Yu wrote: On 2021/3/3 2:44, Jaegeuk Kim wrote: On 03/02, Jaegeuk Kim wrote: On 03/02, Chao Yu wrote: On 2021/3/2 13:42, Jaegeuk Kim wrote: This is useful when checking

Re: [f2fs-dev] [PATCH v4] f2fs: compress: add compress_inode to cache compressed blockst

2021-03-08 Thread Chao Yu
On 2021/3/9 8:01, Jaegeuk Kim wrote: On 03/05, Chao Yu wrote: On 2021/3/5 4:20, Jaegeuk Kim wrote: On 02/27, Jaegeuk Kim wrote: On 02/04, Chao Yu wrote: Jaegeuk, On 2021/2/2 16:00, Chao Yu wrote: - for (i = 0; i < dic->nr_cpages; i++) { + for (i = 0; i < cc->nr_cpages; i++) {

Re: [PATCH 16/19] dt-bindings: ipmi: Convert ASPEED KCS binding to schema

2021-03-08 Thread Andrew Jeffery
On Sat, 6 Mar 2021, at 09:37, Rob Herring wrote: > On Sat, Feb 20, 2021 at 12:55:20AM +1030, Andrew Jeffery wrote: > > Given the deprecated binding, improve the ability to detect issues in > > the platform devicetrees. Further, a subsequent patch will introduce a > > new interrupts property for

Re: [PATCH 17/19] dt-bindings: ipmi: Add optional SerIRQ property to ASPEED KCS devices

2021-03-08 Thread Andrew Jeffery
On Sat, 6 Mar 2021, at 09:39, Rob Herring wrote: > On Sat, Feb 20, 2021 at 12:55:21AM +1030, Andrew Jeffery wrote: > > Allocating IO and IRQ resources to LPC devices is in-theory an operation > > for the host, however ASPEED don't appear to expose this capability > > outside the BMC (e.g.

Re: [PATCH V2 2/4] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-08 Thread Jason Wang
On 2021/3/9 10:28 上午, Zhu, Lingshan wrote: On 3/9/2021 10:23 AM, Jason Wang wrote: On 2021/3/8 4:35 下午, Zhu Lingshan wrote: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan ---   drivers/vdpa/ifcvf/ifcvf_base.h | 5 +  

[PATCH] kernel/futex: Change pi_state_update_owner() to an inline function

2021-03-08 Thread Xiangyang Yu
In our performance tests, we find that the performance of sysbench is descend. Function call consumes too many instructions, change pi_state_update_owner() to an inline function. Test environment: CPU: Intel(R) Xeon(R) Gold 6154 CPU @ 3.00GHz * 2 MEM: 312G Test case:

Re: [PATCH v2] certs: Fix wrong kconfig option used for x509_revocation_list

2021-03-08 Thread Eric Snowberg
> On Mar 5, 2021, at 2:50 PM, David Howells wrote: > > Eric Snowberg wrote: > >> @@ -11,7 +11,7 @@ hostprogs-always-$(CONFIG_ASN1) >> += asn1_compiler >> hostprogs-always-$(CONFIG_MODULE_SIG_FORMAT) += sign-file >>

[PATCH] net: bridge: fix error return code of do_update_counters()

2021-03-08 Thread Jia-Ju Bai
When find_table_lock() returns NULL to t, no error return code of do_update_counters() is assigned. To fix this bug, ret is assigned with -ENOENT in this case. Fixes: 49facff9f925 ("netfilter: ebtables: split update_counters into two functions") Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai

[tip:x86/core] BUILD SUCCESS d0962f2b24c99889a386f0658c71535f56358f77

2021-03-08 Thread kernel test robot
-20210308 x86_64 randconfig-a001-20210308 x86_64 randconfig-a004-20210308 x86_64 randconfig-a002-20210308 x86_64 randconfig-a005-20210308 x86_64 randconfig-a003-20210308 i386 randconfig-a005-20210308 i386

Re: [PATCH V2 2/4] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-08 Thread Zhu, Lingshan
On 3/9/2021 10:23 AM, Jason Wang wrote: On 2021/3/8 4:35 下午, Zhu Lingshan wrote: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan ---   drivers/vdpa/ifcvf/ifcvf_base.h | 5 +   drivers/vdpa/ifcvf/ifcvf_main.c | 5 +   2 files changed,

[PATCH] scsi: ufs: Don't spew log for enabling WB in ufshcd_wb_config()

2021-03-08 Thread Yue Hu
From: Yue Hu Since ufshcd_wb_ctrl() will spew error/debug log firstly, no need to spew similar error/info log again in the caller ufshcd_wb_config(). Also, several log words in ufshcd_wb_ctrl() are not consistent with other sites, let's improve them. And remove unhelpful ret from debug log due

Re: [PATCH v3] x86/fault: Send a SIGBUS to user process always for hwpoison page access.

2021-03-08 Thread Aili Yao
On Tue, 9 Mar 2021 10:14:52 +0800 Aili Yao wrote: > On Mon, 8 Mar 2021 18:31:07 + > "Luck, Tony" wrote: > > > > Can you point me at that SIGBUS code in a current kernel? > > > > It is in kill_me_maybe(). mce_vaddr is setup when we disassemble whatever > > get_user() > > or copy from

Re: [PATCH V2 4/4] vDPA/ifcvf: remove the version number string

2021-03-08 Thread Jason Wang
On 2021/3/8 4:35 下午, Zhu Lingshan wrote: This commit removes the version number string, using kernel version is enough. Signed-off-by: Zhu Lingshan --- Acked-by: Jason Wang drivers/vdpa/ifcvf/ifcvf_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [PATCH V2 3/4] vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids

2021-03-08 Thread Jason Wang
On 2021/3/8 4:35 下午, Zhu Lingshan wrote: IFCVF driver probes multiple types of devices now, to distinguish the original device driven by IFCVF from others, it is renamed as "N3000". Signed-off-by: Zhu Lingshan Acked-by: Jason Wang You probably need to rename the driver. Thanks ---

Re: [PATCH V2 2/4] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-08 Thread Jason Wang
On 2021/3/8 4:35 下午, Zhu Lingshan wrote: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 5 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 2 files changed, 10 insertions(+) diff --git

Re: [LTP] [f2fs] 02eb84b96b: ltp.swapon03.fail

2021-03-08 Thread Weichao Guo
Hi Richard, On 2021/3/8 19:53, Richard Palethorpe wrote: Hello, kern :err : [ 187.461914] F2FS-fs (sda1): Swapfile does not align to section commit 02eb84b96bc1b382dd138bf60724edbefe77b025 Author: huangjia...@oppo.com Date: Mon Mar 1 12:58:44 2021 +0800 f2fs: check if swapfile is

Re: [kbuild-all] Re: [PATCH v2] mm: page_alloc: dump migrate-failed pages

2021-03-08 Thread Minchan Kim
On Tue, Mar 09, 2021 at 08:41:44AM +0800, Rong Chen wrote: > > > On 3/9/21 6:29 AM, Minchan Kim wrote: > > On Tue, Mar 09, 2021 at 05:29:30AM +0800, kernel test robot wrote: > > > Hi Minchan, > > > > > > I love your patch! Perhaps something to improve: > > > > > > [auto build test WARNING on

Re: [PATCH] MIPS: Check __clang__ to avoid performance influence with GCC in csum_tcpudp_nofold()

2021-03-08 Thread Tiezhu Yang
On 03/09/2021 12:52 AM, David Laight wrote: From: Tiezhu Yang Sent: 08 March 2021 12:50 The asm code in csum_tcpudp_nofold() is performance-critical, I am sorry for the poorly considered implementation about the performance influence with GCC in the commit 198688edbf77 ("MIPS: Fix inline asm

Re: [PATCH v2] mm: page_alloc: dump migrate-failed pages

2021-03-08 Thread Minchan Kim
On Mon, Mar 08, 2021 at 04:21:28PM -0800, Andrew Morton wrote: > On Mon, 8 Mar 2021 12:20:47 -0800 Minchan Kim wrote: > > > alloc_contig_range is usually used on cma area or movable zone. > > It's critical if the page migration fails on those areas so > > dump more debugging message. > > > >

[PATCH 2/2] KVM: x86/mmu: Exclude the MMU_PRESENT bit from MMIO SPTE's generation

2021-03-08 Thread Sean Christopherson
Drop bit 11, used for the MMU_PRESENT flag, from the set of bits used to store the generation number in MMIO SPTEs. MMIO SPTEs with bit 11 set, which occurs when userspace creates 128+ memslots in an address space, get false positives for is_shadow_present_spte(), which lead to a variety of

[PATCH 0/2] Fixups to hide our goofs

2021-03-08 Thread Sean Christopherson
Please squash away our mistakes and hide them from the world. :-) Stuffed the MMIO generation to start at 0x3ff0 (bits 61:4 set) and role over into bit 62. Bit 63 is used for the "update in-progress" so I'm fairly confident there are no more collisions with other SPTE bits. For the

[PATCH 1/2] KVM: x86: Fixup "Get active PCID only when writing a CR3 value"

2021-03-08 Thread Sean Christopherson
From: Sean Christopherson Fix SME and PCID, which got horribly mangled on application. Fixes: a16241ae56fa ("KVM: x86: Get active PCID only when writing a CR3 value") Signed-off-by: Sean Christopherson Signed-off-by: Sean Christopherson --- arch/x86/kvm/svm/svm.c | 9 +++-- 1 file

Re: [PATCH V2 1/4] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-08 Thread Jason Wang
On 2021/3/8 4:35 下午, Zhu Lingshan wrote: In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 - 1 file changed, 4

[RESEND PATCH v3] seccomp: Improve performance by optimizing rmb()

2021-03-08 Thread wanghongzhe
As Kees haved accepted the v2 patch at a381b70a1 which just replaced rmb() with smp_rmb(), this patch will base on that and just adjust the smp_rmb() to the correct position. As the original comment shown (and indeed it should be): /* * Make sure that any changes to mode from another

Re: [PATCH v3] x86/fault: Send a SIGBUS to user process always for hwpoison page access.

2021-03-08 Thread Aili Yao
On Mon, 8 Mar 2021 18:31:07 + "Luck, Tony" wrote: > > Can you point me at that SIGBUS code in a current kernel? > > It is in kill_me_maybe(). mce_vaddr is setup when we disassemble whatever > get_user() > or copy from user variant was in use in the kernel when the poison memory was >

Re: [PATCH 1/2] parisc: syscalls: switch to generic syscalltbl.sh

2021-03-08 Thread Masahiro Yamada
On Tue, Mar 9, 2021 at 5:49 AM Helge Deller wrote: > > On 3/1/21 3:58 PM, Masahiro Yamada wrote: > > Many architectures duplicate similar shell scripts. > > > > This commit converts parisc to use scripts/syscalltbl.sh. This also > > unifies syscall_table_64.h and syscall_table_c32.h. > > > >

Re: [PATCH] mm/memory-failure: Use a mutex to avoid memory_failure() races

2021-03-08 Thread Aili Yao
On Mon, 8 Mar 2021 14:55:04 -0800 "Luck, Tony" wrote: > There can be races when multiple CPUs consume poison from the same > page. The first into memory_failure() atomically sets the HWPoison > page flag and begins hunting for tasks that map this page. Eventually > it invalidates those mappings

[PATCH 2/3] powerpc/spinlock: Unserialize spin_is_locked

2021-03-08 Thread Davidlohr Bueso
c6f5d02b6a0f (locking/spinlocks/arm64: Remove smp_mb() from arch_spin_is_locked()) made it pretty official that the call semantics do not imply any sort of barriers, and any user that gets creative must explicitly do any serialization. This creativity, however, is nowadays pretty limited: 1.

[PATCH 0/3] powerpc/qspinlock: Some tuning updates

2021-03-08 Thread Davidlohr Bueso
Hi, A few updates while going through the powerpc port of the qspinlock. Patches 1 and 2 are straightforward, while patch 3 can be considered more of an rfc as I've only tested on a single machine, and there could be an alternative way if it doesn't end up being nearly a universal performance

[PATCH 1/3] powerpc/spinlock: Define smp_mb__after_spinlock only once

2021-03-08 Thread Davidlohr Bueso
Instead of both queued and simple spinlocks doing it. Move it into the arch's spinlock.h. Signed-off-by: Davidlohr Bueso --- arch/powerpc/include/asm/qspinlock.h | 2 -- arch/powerpc/include/asm/simple_spinlock.h | 3 --- arch/powerpc/include/asm/spinlock.h| 3 +++ 3 files

[PATCH 3/3] powerpc/qspinlock: Use generic smp_cond_load_relaxed

2021-03-08 Thread Davidlohr Bueso
49a7d46a06c3 (powerpc: Implement smp_cond_load_relaxed()) added busy-waiting pausing with a preferred SMT priority pattern, lowering the priority (reducing decode cycles) during the whole loop slowpath. However, data shows that while this pattern works well with simple spinlocks, queued spinlocks

Re: [PATCH 5.4 00/22] 5.4.104-rc1 review

2021-03-08 Thread Samuel Zou
On 2021/3/8 20:30, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.104 release. There are 22 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

linux-next: manual merge of the vhost tree with the sound tree

2021-03-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the vhost tree got conflicts in: sound/virtio/virtio_card.c sound/virtio/virtio_card.h sound/virtio/virtio_ctl_msg.c sound/virtio/virtio_pcm.c sound/virtio/virtio_pcm.h sound/virtio/virtio_pcm_msg.c sound/virtio/virtio_pcm_ops.c between commits:

Re: [PATCH v1 3/7] PCI: New Primary to Sideband (P2SB) bridge support library

2021-03-08 Thread Bjorn Helgaas
On Mon, Mar 08, 2021 at 09:16:50PM +0200, Andy Shevchenko wrote: > On Mon, Mar 08, 2021 at 12:52:12PM -0600, Bjorn Helgaas wrote: > > On Mon, Mar 08, 2021 at 02:20:16PM +0200, Andy Shevchenko wrote: > > > From: Jonathan Yong > > > > > > There is already one and at least one more user is coming

[PATCH v2 22/25] KVM: VMX: Add emulation of SGX Launch Control LE hash MSRs

2021-03-08 Thread Kai Huang
From: Sean Christopherson Emulate the four Launch Enclave public key hash MSRs (LE hash MSRs) that exist on CPUs that support SGX Launch Control (LC). SGX LC modifies the behavior of ENCLS[EINIT] to use the LE hash MSRs when verifying the key used to sign an enclave. On CPUs without LC

[PATCH v2 24/25] KVM: VMX: Enable SGX virtualization for SGX1, SGX2 and LC

2021-03-08 Thread Kai Huang
From: Sean Christopherson Enable SGX virtualization now that KVM has the VM-Exit handlers needed to trap-and-execute ENCLS to ensure correctness and/or enforce the CPU model exposed to the guest. Add a KVM module param, "sgx", to allow an admin to disable SGX virtualization independent of the

[PATCH v2 21/25] KVM: VMX: Add SGX ENCLS[ECREATE] handler to enforce CPUID restrictions

2021-03-08 Thread Kai Huang
From: Sean Christopherson Add an ECREATE handler that will be used to intercept ECREATE for the purpose of enforcing and enclave's MISCSELECT, ATTRIBUTES and XFRM, i.e. to allow userspace to restrict SGX features via CPUID. ECREATE will be intercepted when any of the aforementioned masks

[PATCH v2 23/25] KVM: VMX: Add ENCLS[EINIT] handler to support SGX Launch Control (LC)

2021-03-08 Thread Kai Huang
From: Sean Christopherson Add a VM-Exit handler to trap-and-execute EINIT when SGX LC is enabled in the host. When SGX LC is enabled, the host kernel may rewrite the hardware values at will, e.g. to launch enclaves with different signers, thus KVM needs to intercept EINIT to ensure it is

[PATCH v2 25/25] KVM: x86: Add capability to grant VM access to privileged SGX attribute

2021-03-08 Thread Kai Huang
From: Sean Christopherson Add a capability, KVM_CAP_SGX_ATTRIBUTE, that can be used by userspace to grant a VM access to a priveleged attribute, with args[0] holding a file handle to a valid SGX attribute file. The SGX subsystem restricts access to a subset of enclave attributes to provide

[PATCH v2 19/25] KVM: VMX: Add basic handling of VM-Exit from SGX enclave

2021-03-08 Thread Kai Huang
From: Sean Christopherson Add support for handling VM-Exits that originate from a guest SGX enclave. In SGX, an "enclave" is a new CPL3-only execution environment, wherein the CPU and memory state is protected by hardware to make the state inaccesible to code running outside of the enclave.

[PATCH v2 18/25] KVM: x86: Add reverse-CPUID lookup support for scattered SGX features

2021-03-08 Thread Kai Huang
From: Sean Christopherson Define a new KVM-only feature word for advertising and querying SGX sub-features in CPUID.0x12.0x0.EAX. Because SGX1 and SGX2 are scattered in the kernel's feature word, they need to be translated so that the bit numbers match those of hardware. Signed-off-by: Sean

[PATCH v2 17/25] KVM: x86: Add support for reverse CPUID lookup of scattered features

2021-03-08 Thread Kai Huang
From: Sean Christopherson Introduce a scheme that allows KVM's CPUID magic to support features that are scattered in the kernel's feature words. To advertise and/or query guest support for CPUID-based features, KVM requires the bit number of an X86_FEATURE_* to match the bit number in its

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