Re: linux-next: build warning after merge of the akpm tree

2020-12-08 Thread Michael Ellerman
Stephen Rothwell writes: > Hi Stephen, > > On Fri, 4 Dec 2020 21:00:00 +1100 Stephen Rothwell > wrote: >> >> Hi all, >> >> After merging the akpm tree, today's linux-next build (powerpc >> allyesconfig) produced warnings like this: >> >> ld: warning: orphan section `.data..Lubsan_data177'

Re: [PATCH] bcache: consider the fragmentation when update the writeback rate

2020-12-08 Thread Dongdong Tao
Hi Dongsheng, I'm working on it, next step I'm gathering some testing data and upload (very sorry for the delay...) Thanks for the comment. One of the main concerns to alleviate this issue with the writeback process is that we need to minimize the impact on the client IO performance.

[PATCH] power: supply: axp288_fuel_gauge: Add the ECS EF20EA to the blacklist

2020-12-08 Thread Chris Chiu
The ECS EF20EA laptop ships an AXP288 but it is actually using a different, separate FG chip for AC and battery monitoring. On this laptop we need to keep using the regular ACPI driver and disable the AXP288 FG to avoid reporting two batteries to userspace. Signed-off-by: Chris Chiu ---

Re: [PATCH v8 00/16] Add support for Clang LTO

2020-12-08 Thread Fangrui Song
On 2020-12-08, 'Sami Tolvanen' via Clang Built Linux wrote: On Tue, Dec 8, 2020 at 4:15 AM Arnd Bergmann wrote: On Tue, Dec 1, 2020 at 10:37 PM 'Sami Tolvanen' via Clang Built Linux wrote: > > This patch series adds support for building the kernel with Clang's > Link Time Optimization

[PATCH] ALSA: hda/realtek - Enable headset mic of ASUS Q524UQK with ALC255

2020-12-08 Thread Chris Chiu
The ASUS laptop Q524UQK with ALC255 codec can't detect the headset microphone until ALC255_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] mm/madvise: remove racy mm ownership check

2020-12-08 Thread Linus Torvalds
On Tue, Dec 8, 2020 at 7:22 PM Minchan Kim wrote: > > Jann spotted the security hole due to race of mm ownership check. > If the task is sharing the mm_struct but goes through execve() > before mm_access(), it could skip process_madvise_behavior_valid > check. That makes *any advice hint* to

Re: [Ksummit-discuss] crediting bug reports and fixes folded into original patch

2020-12-08 Thread Joe Perches
On Tue, 2020-12-08 at 16:34 -0800, Kees Cook wrote: > If not "Adjusted-by", what about "Tweaked-by", "Helped-by", > "Corrected-by"? Improved-by: / Enhanced-by: / Revisions-by: Or simply don't use anything but a link to the conversion thread like Konstantin suggested. I still want to know what

[PATCH v11 0/4] Add support for mv88e6393x family of Marvell

2020-12-08 Thread Pavana Sharma
Updated patchset after incorporating feedback. Pavana Sharma (4): dt-bindings: net: Add 5GBASER phy interface mode net: phy: Add 5GBASER interface mode net: dsa: mv88e6xxx: Change serdes lane parameter type from u8 type to int net: dsa: mv88e6xxx: Add support for mv88e6393x family of

[PATCH v11 1/4] dt-bindings: net: Add 5GBASER phy interface mode

2020-12-08 Thread Pavana Sharma
Add 5gbase-r PHY interface mode. Signed-off-by: Pavana Sharma --- Documentation/devicetree/bindings/net/ethernet-controller.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml

[PATCH v11 2/4] net: phy: Add 5GBASER interface mode

2020-12-08 Thread Pavana Sharma
Add 5GBASE-R phy interface mode Signed-off-by: Pavana Sharma --- include/linux/phy.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index 56563e5e0dc7..8151e6ecf1b9 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -106,6 +106,7 @@

RE: [PATCH v2 1/2] RISC-V: Update l2 cache DT documentation to add support for SiFive FU740

2020-12-08 Thread Yash Shah
> -Original Message- > From: Rob Herring > Sent: 09 December 2020 04:52 > To: Yash Shah > Cc: linux-kernel@vger.kernel.org; linux-ri...@lists.infradead.org; > devicet...@vger.kernel.org; b...@suse.de; a...@brainfault.org; > jonathan.came...@huawei.com; w...@kernel.org; s...@ravnborg.org;

[PATCH v11 3/4] net: dsa: mv88e6xxx: Change serdes lane parameter type from u8 type to int

2020-12-08 Thread Pavana Sharma
Returning 0 is no more an error case with MV88E6393 family which has serdes lane numbers 0, 9 or 10. So with this change .serdes_get_lane will return lane number or -errno (-ENODEV or -EOPNOTSUPP). Signed-off-by: Pavana Sharma --- drivers/net/dsa/mv88e6xxx/chip.c | 28 ++--

Re: [PATCH v2 1/3] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling

2020-12-08 Thread Maulik Shah
Hi Doug, On 11/24/2020 11:17 PM, Douglas Anderson wrote: We have a problem if we use gpio-keys and configure wakeups such that we only want one edge to wake us up. AKA: wakeup-event-action = ; wakeup-source; Specifically we end up with a phantom interrupt that blocks suspend if the line

Re: [PATCH] media: ov8856: Remove 3280x2464 mode

2020-12-08 Thread Tomasz Figa
On Fri, Nov 27, 2020 at 10:38 PM Robert Foss wrote: > > Thanks for digging into this everyone! > > Assuming Tomasz doesn't find any stretching, I think we can conclude > that this mode works, and should be kept. Thanks Dongchun for parsing > the datasheet and finding the Bayer mode issue for the

[PATCH v11 4/4] net: dsa: mv88e6xxx: Add support for mv88e6393x family of Marvell

2020-12-08 Thread Pavana Sharma
The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family (88E6393X, 88E6193X and 88E6191X) Co-developed-by: Ashkan

Re: [RFC PATCH] vfio/pci: Allow force needs_pm_restore as specified by device:vendor

2020-12-08 Thread Colin Xu
On 11/27/20 11:35 PM, Alex Williamson wrote: On Fri, 27 Nov 2020 11:53:39 +0800 Colin Xu wrote: On 11/25/20 11:53 PM, Alex Williamson wrote: On Wed, 25 Nov 2020 10:18:24 +0800 Colin Xu wrote: Force specific device listed in params pm_restore_ids to follow device state save/restore as

Re: [PATCH v1 2/4] cpufreq: schedutil: Adjust utilization instead of frequency

2020-12-08 Thread Viresh Kumar
On 08-12-20, 18:01, Rafael J. Wysocki wrote: > On Tue, Dec 8, 2020 at 9:52 AM Viresh Kumar wrote: > > > > On 07-12-20, 17:29, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > When avoiding reduction of the frequency after the target CPU has > > > been busy since the previous

Re: [dm-devel] [RFC PATCH v2 1/2] block: add simple copy support

2020-12-08 Thread Damien Le Moal
On 2020/12/09 13:20, Martin K. Petersen wrote: > > SelvaKumar, > >> Add new BLKCOPY ioctl that offloads copying of multiple sources >> to a destination to the device. > > Your patches are limited in scope to what is currently possible with > NVMe. I.e. multiple source ranges to a single

[PATCH] docs: reporting-issues: move 'outdated, need help' note to proper place

2020-12-08 Thread Thorsten Leemhuis
Move the 'this section is a placeholder for now and needs help by someone with domain knowledge' note one section upwards to the place where it belongs: the 'Decode failure messages' section. Signed-off-by: Thorsten Leemhuis --- Brown paper bag fixup :-/ ---

[rcu:dev.2020.12.08c 96/104] nds32le-linux-ld: slab_common.c:undefined reference to `kmem_provenance'

2020-12-08 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.12.08c head: 0168e03a513cd576ca6ab24f428ce85cec1e3ff3 commit: fc2cf07ea6773cc71c15e5477f35b28080b824c8 [96/104] mm: Add mem_dump_obj() to print source of memory block config: nds32-randconfig-r014-20201208

Re: [PATCH v8 00/16] Add support for Clang LTO

2020-12-08 Thread Fāng-ruì Sòng
On Tue, Dec 8, 2020 at 1:02 PM Arnd Bergmann wrote: > > On Tue, Dec 8, 2020 at 9:59 PM Arnd Bergmann wrote: > > > > Attaching the config for "ld.lld: error: Never resolved function from > > blockaddress (Producer: 'LLVM12.0.0' Reader: 'LLVM 12.0.0')" > > And here is a new one: "ld.lld: error:

Re: [PATCH v4 0/3] New documentation text describing how to report issues (aka "reporting-bugs rewritten")

2020-12-08 Thread Thorsten Leemhuis
Am 08.12.20 um 18:44 schrieb Jonathan Corbet: On Fri, 4 Dec 2020 07:43:47 +0100 Thorsten Leemhuis wrote: This series adds a new and mostly finished document describing how to report issues with the Linux kernel to its developers. OK, I have applied this series. Great, many thx! When I

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

2020-12-08 Thread Stephen Rothwell
Hi all, Commit 2259c17f0188 ("kvm: x86: Sink cpuid update into vendor-specific set_cr4 functions") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpvvIqGP1WPK.pgp Description: OpenPGP digital signature

[PATCH] tools/bootconfig: Add tracing_on support to helper scripts

2020-12-08 Thread Masami Hiramatsu
Add ftrace.instance.INSTANCE.tracing_on support to ftrace2bconf.sh and bconf2ftrace.sh. commit 8490db06f914 ("tracing/boot: Add per-instance tracing_on option support") added the per-instance tracing_on option, but forgot to update the helper scripts. Signed-off-by: Masami Hiramatsu ---

Re: [PATCH 2/4] sched/fair: Move avg_scan_cost calculations under SIS_PROP

2020-12-08 Thread Li, Aubrey
On 2020/12/9 0:03, Vincent Guittot wrote: > On Tue, 8 Dec 2020 at 16:35, Mel Gorman wrote: >> >> As noted by Vincent Guittot, avg_scan_costs are calculated for SIS_PROP >> even if SIS_PROP is disabled. Move the time calculations under a SIS_PROP >> check and while we are at it, exclude the cost

[PATCH v4 4/6] powerpc/mm: Move the WARN() out of bad_kuap_fault()

2020-12-08 Thread Christophe Leroy
In order to prepare the removal of calls to search_exception_tables() on the fast path, move the WARN() out of bad_kuap_fault(). Signed-off-by: Christophe Leroy --- v4: New --- arch/powerpc/include/asm/book3s/32/kup.h | 6 +- arch/powerpc/include/asm/book3s/64/kup.h | 6 ++

[PATCH v4 2/6] powerpc/mm: sanity_check_fault() should work for all, not only BOOK3S

2020-12-08 Thread Christophe Leroy
The verification and message introduced by commit 374f3f5979f9 ("powerpc/mm/hash: Handle user access of kernel address gracefully") applies to all platforms, it should not be limited to BOOK3S. Make the BOOK3S version of sanity_check_fault() the one for all, and bail out earlier if not BOOK3S.

[PATCH v4 5/6] powerpc/fault: Avoid heavy search_exception_tables() verification

2020-12-08 Thread Christophe Leroy
search_exception_tables() is an heavy operation, we have to avoid it. When KUAP is selected, we'll know the fault has been blocked by KUAP. When it is blocked by KUAP, check whether we are in an expected userspace access place. If so, emit a warning to spot something is going work. Otherwise, just

[PATCH v4 1/6] powerpc/book3s64/kuap: Improve error reporting with KUAP

2020-12-08 Thread Christophe Leroy
From: Aneesh Kumar K.V This partially reverts commit eb232b162446 ("powerpc/book3s64/kuap: Improve error reporting with KUAP") and update the fault handler to print [ 55.022514] Kernel attempted to access user page (7e6725b7) - exploit attempt? (uid: 0) [ 55.022528] BUG: Unable to

[PATCH v4 6/6] powerpc/fault: Perform exception fixup in do_page_fault()

2020-12-08 Thread Christophe Leroy
Exception fixup doesn't require the heady full regs saving, do it from do_page_fault() directly. For that, split bad_page_fault() in two parts. As bad_page_fault() can also be called from other places than handle_page_fault(), it will still perform exception fixup and fallback on

[PATCH v4 3/6] powerpc/fault: Unnest definition of page_fault_is_write() and page_fault_is_bad()

2020-12-08 Thread Christophe Leroy
To make it more readable, separate page_fault_is_write() and page_fault_is_bad() to avoir several levels of #ifdefs Reviewed-by: Nicholas Piggin Signed-off-by: Christophe Leroy --- arch/powerpc/mm/fault.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

Re: [PATCH next v4 2/2] printk: remove logbuf_lock writer-protection of ringbuffer

2020-12-08 Thread Sergey Senozhatsky
On (20/12/09 01:50), John Ogness wrote: > Since the ringbuffer is lockless, there is no need for it to be > protected by @logbuf_lock. Remove @logbuf_lock writer-protection of > the ringbuffer. The reader-protection is not removed because some > some variables used by readers are using

Re: [PATCH v3 4/5] powerpc/fault: Avoid heavy search_exception_tables() verification

2020-12-08 Thread Christophe Leroy
Le 08/12/2020 à 16:07, Christophe Leroy a écrit : Le 08/12/2020 à 15:52, Aneesh Kumar K.V a écrit : Christophe Leroy writes: search_exception_tables() is an heavy operation, we have to avoid it. When KUAP is selected, we'll know the fault has been blocked by KUAP. Otherwise, it behaves

[PATCH v2 0/9] soundwire/regmap: use _no_pm routines

2020-12-08 Thread Bard Liao
When a Slave device is resumed, it may resume the bus and restart the enumeration. And Slave drivers will wait for initialization_complete complete in their resume function, however initialization_complete will complete after sdw_update_slave_status function is finished and codec driver usually

[PATCH v2 2/9] soundwire: bus: use sdw_write_no_pm when setting the bus scale registers

2020-12-08 Thread Bard Liao
From: Pierre-Louis Bossart When a Slave device is resumed, it may resume the bus and restart the enumeration. During that process, we absolutely don't want to call regular read/write routines which will wait for the resume to complete, otherwise a deadlock occurs. This patch fixes the same

[PATCH v2 1/9] soundwire: bus: use sdw_update_no_pm when initializing a device

2020-12-08 Thread Bard Liao
From: Pierre-Louis Bossart When a Slave device is resumed, it may resume the bus and restart the enumeration. During that process, we absolutely don't want to call regular read/write routines which will wait for the resume to complete, otherwise a deadlock occurs. Fixes: 60ee9be25571

[PATCH v2 3/9] soundwire: bus: use no_pm IO routines for all interrupt handling

2020-12-08 Thread Bard Liao
From: Pierre-Louis Bossart There is no need to play with pm_runtime reference counts, if needed the codec drivers are already explicitly resumed. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Signed-off-by: Bard Liao --- drivers/soundwire/bus.c | 26 +-

[PATCH v2 4/9] soundwire: export sdw_write/read_no_pm functions

2020-12-08 Thread Bard Liao
sdw_write_no_pm and sdw_read_no_pm are useful when we want to do IO without touching PM. Fixes: 0231453bc08f ('soundwire: bus: add clock stop helpers') Fixes: 60ee9be25571 ('soundwire: bus: add PM/no-PM versions of read/write functions') Signed-off-by: Bard Liao --- drivers/soundwire/bus.c

[PATCH v2 5/9] regmap: sdw: use _no_pm functions in regmap_read/write

2020-12-08 Thread Bard Liao
sdw_update_slave_status will be invoked when a codec is attached, and the codec driver will initialize the codec with regmap functions while the codec device is pm_runtime suspended. regmap routines currently rely on regular SoundWire IO functions, which will call

[PATCH v2 6/9] regmap: sdw: use no_pm routines for SoundWire 1.2 MBQ

2020-12-08 Thread Bard Liao
Use no_pm versions for write and read. Signed-off-by: Bard Liao Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang --- drivers/base/regmap/regmap-sdw-mbq.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/base/regmap/regmap-sdw-mbq.c

[PATCH v2 7/9] regmap: sdw-mbq: use MODULE_LICENSE("GPL")

2020-12-08 Thread Bard Liao
"GPL v2" is the same as "GPL". It exists for historic reasons. See Documentation/process/license-rules.rst Signed-off-by: Pierre-Louis Bossart Signed-off-by: Bard Liao --- drivers/base/regmap/regmap-sdw-mbq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 8/9] soundwire: bus: fix confusion on device used by pm_runtime

2020-12-08 Thread Bard Liao
From: Pierre-Louis Bossart Intel stress-tests routinely report IO timeouts and invalid power management transitions. Upon further analysis, we seem to be using the wrong devices in pm_runtime calls. Before reading and writing registers, we first need to make sure the Slave is fully resumed. The

Re: [PATCH bpf-next v4 04/11] bpf: Rename BPF_XADD and prepare to encode other atomics in .imm

2020-12-08 Thread John Fastabend
Brendan Jackman wrote: > Hi John, thanks a lot for the reviews! > > On Mon, Dec 07, 2020 at 01:56:53PM -0800, John Fastabend wrote: > > Brendan Jackman wrote: > > > A subsequent patch will add additional atomic operations. These new > > > operations will use the same opcode field as the existing

Re: [SPECIFICATION RFC] The firmware and bootloader log specification

2020-12-08 Thread Frank Rowand
On 12/4/20 7:23 AM, Paul Menzel wrote: > Dear Wim, dear Daniel, > > > First, thank you for including all parties in the discussion. > Am 04.12.20 um 13:52 schrieb Wim Vervoorn: > >> I agree with you. Using an existing standard is better than inventing >> a new one in this case. I think using

[PATCH v2 9/9] soundwire: bus: clarify dev_err/dbg device references

2020-12-08 Thread Bard Liao
From: Pierre-Louis Bossart The SoundWire bus code confuses bus and Slave device levels for dev_err/dbg logs. That's not impacting functionality but the accuracy of kernel logs. We should only use bus->dev for bus-level operations and handling of Device0. For all other logs where the device

Re: [PATCH v4 3/4] scmi-cpufreq: get opp_shared_cpus from opp-v2 for EM

2020-12-08 Thread Viresh Kumar
On 08-12-20, 11:20, Sudeep Holla wrote: > It is because of per-CPU vs per domain drama here. Imagine a system with > 4 CPUs which the firmware puts in individual domains while they all are > in the same perf domain and hence OPP is marked shared in DT. > > Since this probe gets called for all the

[PATCH] gpio: eic-sprd: break loop when getting NULL device resource

2020-12-08 Thread Chunyan Zhang
From: Chunyan Zhang EIC controller have unfixed numbers of banks on different Spreadtrum SoCs, and each bank has its own base address, the loop of getting there base address in driver should break if the resource gotten via platform_get_resource() is NULL already. The later ones would be all

Re: [PATCH v2 3/3] pinctrl: qcom: Clear possible pending irq when remuxing GPIOs

2020-12-08 Thread Maulik Shah
Hi Doug, On 12/4/2020 2:34 AM, Doug Anderson wrote: Hi, On Thu, Dec 3, 2020 at 3:22 AM Maulik Shah wrote: + /* + * Clear IRQs if switching to/from GPIO mode since muxing to/from + * the GPIO path can cause phantom edges. + */ + old_i = (oldval & mask) >> g->mux_bit; +

Re: [PATCH v5 0/4] CPUFreq: Add support for opp-sharing cpus

2020-12-08 Thread Viresh Kumar
On 08-12-20, 17:42, Nicola Mazzucato wrote: > Hi All, > > In this V5 posting I have addressed suggestions on opp/of and scmi-cpufreq > driver. > > This is to support systems where exposed cpu performance controls are more > fine-grained that the platform's ability to scale cpus independently. >

Re: [PATCH] vdpa/mlx5: Use write memory barrier after updating CQ index

2020-12-08 Thread Eli Cohen
On Tue, Dec 08, 2020 at 04:45:04PM -0500, Michael S. Tsirkin wrote: > On Sun, Dec 06, 2020 at 12:57:19PM +0200, Eli Cohen wrote: > > Make sure to put write memory barrier after updating CQ consumer index > > so the hardware knows that there are available CQE slots in the queue. > > > > Failure to

Re: memory leak in generic_parse_monolithic [+PATCH]

2020-12-08 Thread Dmitry Vyukov
On Wed, Dec 9, 2020 at 12:15 AM Randy Dunlap wrote: > > On 12/8/20 2:54 PM, David Howells wrote: > > Randy Dunlap wrote: > > > >>> Now the backtrace only shows what the state was when the string was > >>> allocated; > >>> it doesn't show what happened to it after that, so another possibility is

[PATCH v16 2/9] arm/arm64: KVM: Advertise KVM UID to guests via SMCCC

2020-12-08 Thread Jianyong Wu
From: Will Deacon We can advertise ourselves to guests as KVM and provide a basic features bitmap for discoverability of future hypervisor services. Cc: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Jianyong Wu --- arch/arm64/kvm/hypercalls.c | 27 ++- 1

[PATCH v16 0/9] Enable ptp_kvm for arm/arm64

2020-12-08 Thread Jianyong Wu
Currently, we offen use ntp (sync time with remote network clock) to sync time in VM. But the precision of ntp is subject to network delay so it's difficult to sync time in a high precision. kvm virtual ptp clock (ptp_kvm) offers another way to sync time in VM, as the remote clock locates in the

[PATCH v16 3/9] ptp: Reorganize ptp_kvm module to make it arch-independent.

2020-12-08 Thread Jianyong Wu
Currently, ptp_kvm modules implementation is only for x86 which includes large part of arch-specific code. This patch moves all of this code into a new arch related file in the same directory. Signed-off-by: Jianyong Wu --- drivers/ptp/Makefile| 1 +

[PATCH v16 4/9] time: Add mechanism to recognize clocksource in time_get_snapshot

2020-12-08 Thread Jianyong Wu
From: Thomas Gleixner System time snapshots are not conveying information about the current clocksource which was used, but callers like the PTP KVM guest implementation have the requirement to evaluate the clocksource type to select the appropriate mechanism. Introduce a clocksource id field

[PATCH v16 5/9] clocksource: Add clocksource id for arm arch counter

2020-12-08 Thread Jianyong Wu
Add clocksource id for arm arch counter to let it be identified easily and elegantly in ptp_kvm implementation for arm. Signed-off-by: Jianyong Wu --- drivers/clocksource/arm_arch_timer.c | 2 ++ include/linux/clocksource_ids.h | 1 + 2 files changed, 3 insertions(+) diff --git

[PATCH v16 8/9] doc: add ptp_kvm introduction for arm64 support

2020-12-08 Thread Jianyong Wu
PTP_KVM implementation depends on hypercall using SMCCC. So we introduce a new SMCCC service ID. This doc explains how does the ID define and how does PTP_KVM works on arm/arm64. Signed-off-by: Jianyong Wu --- Documentation/virt/kvm/api.rst | 9 +++

[PATCH v16 7/9] ptp: arm/arm64: Enable ptp_kvm for arm/arm64

2020-12-08 Thread Jianyong Wu
Currently, there is no mechanism to keep time sync between guest and host in arm/arm64 virtualization environment. Time in guest will drift compared with host after boot up as they may both use third party time sources to correct their time respectively. The time deviation will be in order of

[PATCH v16 9/9] arm64: Add kvm capability check extension for ptp_kvm

2020-12-08 Thread Jianyong Wu
Let userspace check if there is kvm ptp service in host. Before VMs migrate to another host, VMM may check if this cap is available to determine the next behavior. Signed-off-by: Jianyong Wu Suggested-by: Marc Zyngier --- arch/arm64/kvm/arm.c | 1 + include/uapi/linux/kvm.h | 1 + 2 files

[PATCH v16 1/9] arm64: Probe for the presence of KVM hypervisor

2020-12-08 Thread Jianyong Wu
From: Will Deacon Although the SMCCC specification provides some limited functionality for describing the presence of hypervisor and firmware services, this is generally applicable only to functions designated as "Arm Architecture Service Functions" and no portable discovery mechanism is

[PATCH v16 6/9] arm64/kvm: Add hypercall service for kvm ptp.

2020-12-08 Thread Jianyong Wu
ptp_kvm will get this service through SMCC call. The service offers wall time and cycle count of host to guest. The caller must specify whether they want the host cycle count or the difference between host cycle count and cntvoff. Signed-off-by: Jianyong Wu --- arch/arm64/kvm/hypercalls.c | 59

Re: memory leak in generic_parse_monolithic [+PATCH]

2020-12-08 Thread Randy Dunlap
On 12/8/20 10:03 PM, Dmitry Vyukov wrote: > On Wed, Dec 9, 2020 at 12:15 AM Randy Dunlap wrote: >> >> On 12/8/20 2:54 PM, David Howells wrote: >>> Randy Dunlap wrote: >>> > Now the backtrace only shows what the state was when the string was > allocated; > it doesn't show what

Re: scheduling while atomic in z3fold

2020-12-08 Thread Mike Galbraith
On Wed, 2020-12-09 at 00:26 +0100, Vitaly Wool wrote: > Hi Mike, > > On 2020-12-07 16:41, Mike Galbraith wrote: > > On Mon, 2020-12-07 at 16:21 +0100, Vitaly Wool wrote: > >> On Mon, Dec 7, 2020 at 1:34 PM Mike Galbraith wrote: > >>> > >> > >>> Unfortunately, that made zero difference. > >> > >>

Re: [PATCH -next] net/mlx5_core: remove unused including

2020-12-08 Thread Leon Romanovsky
On Tue, Dec 08, 2020 at 11:22:26AM -0800, Jakub Kicinski wrote: > On Mon, 7 Dec 2020 20:14:00 +0800 Zou Wei wrote: > > Remove including that don't need it. > > > > Signed-off-by: Zou Wei > > --- > > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 1 - > > 1 file changed, 1 deletion(-) > > >

[PATCH RESEND 1/6] f2fs: compress: support chksum

2020-12-08 Thread Chao Yu
This patch supports to store chksum value with compressed data, and verify the integrality of compressed data while reading the data. The feature can be enabled through specifying mount option 'compress_chksum'. Signed-off-by: Chao Yu --- Documentation/filesystems/f2fs.rst | 1 +

[PATCH RESEND 6/6] f2fs: introduce sb_status sysfs node

2020-12-08 Thread Chao Yu
Introduce /sys/fs/f2fs//stat/sb_status to show superblock status in real time as below: IS_DIRTY: no IS_CLOSE: no IS_SHUTDOWN:no IS_RECOVERED: no IS_RESIZEFS:no NEED_FSCK: no POR_DOING: no NEED_SB_WRITE:

[PATCH RESEND 2/6] f2fs: compress: add compress_inode to cache compressed blocks

2020-12-08 Thread Chao Yu
Support to use address space of inner inode to cache compressed block, in order to improve cache hit ratio of random read. Signed-off-by: Chao Yu --- Documentation/filesystems/f2fs.rst | 3 + fs/f2fs/compress.c | 198 +++-- fs/f2fs/data.c

[PATCH RESEND 3/6] f2fs: compress: support compress level

2020-12-08 Thread Chao Yu
Expand 'compress_algorithm' mount option to accept parameter as format of :, by this way, it gives a way to allow user to do more specified config on lz4 and zstd compression level, then f2fs compression can provide higher compress ratio. In order to set compress level for lz4 algorithm, it needs

[RFC PATCH v7] sched/fair: select idle cpu from idle cpumask for task wakeup

2020-12-08 Thread Aubrey Li
Add idle cpumask to track idle cpus in sched domain. Every time a CPU enters idle, the CPU is set in idle cpumask to be a wakeup target. And if the CPU is not in idle, the CPU is cleared in idle cpumask during scheduler tick to ratelimit idle cpumask update. When a task wakes up to select an idle

[PATCH RESEND 4/6] f2fs: compress: deny setting unsupported compress algorithm

2020-12-08 Thread Chao Yu
If kernel doesn't support certain kinds of compress algorithm, deny to set them as compress algorithm of f2fs via 'compress_algorithm=%s' mount option. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 16 1 file changed, 16 insertions(+) diff --git a/fs/f2fs/super.c

[PATCH RESEND 5/6] f2fs: introduce a new per-sb directory in sysfs

2020-12-08 Thread Chao Yu
Add a new directory 'stat' in path of /sys/fs/f2fs//, later we can add new readonly stat sysfs file into this directory, it will make directory less mess. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 5 +++- fs/f2fs/sysfs.c | 69 + 2 files

Re: [f2fs-dev] [PATCH v4] f2fs: compress: support chksum

2020-12-08 Thread Chao Yu
On 2020/12/9 12:28, Chao Yu wrote: On 2020/12/9 11:54, Jaegeuk Kim wrote: Ah, could you please write another patch to adjust the new changes? No problem, will drop "f2fs: compress:support chksum" based on your dev branch, and apply all compress related patches on top of dev branch.

[PATCH 0/1] scsi: ufs-mediatek: use correct path to fix compiling error

2020-12-08 Thread Zhen Lei
This patch is based on the latest linux-next code. So the Fixes commit-id maybe changed when it merged int v5.11-rc1. Zhen Lei (1): scsi: ufs-mediatek: use correct path to fix compiling error drivers/scsi/ufs/ufs-mediatek-trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --

[PATCH v2 0/5] phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2020-12-08 Thread Liu Ying
Hi, This series adds i.MX8qxp LVDS PHY mode support for the Mixel PHY in the Freescale i.MX8qxp SoC. The Mixel PHY is MIPI DPHY + LVDS PHY combo, which can works in either MIPI DPHY mode or LVDS PHY mode. The PHY mode is controlled by i.MX8qxp SCU firmware. The PHY driver would call a SCU

[PATCH v2 1/5] drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_enable()

2020-12-08 Thread Liu Ying
The Northwest Logic MIPI DSI host controller embedded in i.MX8qxp works with a Mixel MIPI DPHY + LVDS PHY combo to support either a MIPI DSI display or a LVDS display. So, this patch calls phy_set_mode() from nwl_dsi_enable() to set PHY mode to MIPI DPHY explicitly. Cc: Guido Günther Cc: Robert

[PATCH 1/1] scsi: ufs-mediatek: use correct path to fix compiling error

2020-12-08 Thread Zhen Lei
When the kernel is compiled with allmodconfig, the following error is reported: In file included from drivers/scsi/ufs/ufs-mediatek-trace.h:36:0, from drivers/scsi/ufs/ufs-mediatek.c:28: ./include/trace/define_trace.h:95:42: fatal error: ./ufs-mediatek-trace.h: No such file or

Re: scheduling while atomic in z3fold

2020-12-08 Thread Mike Galbraith
On Wed, 2020-12-09 at 07:13 +0100, Mike Galbraith wrote: > On Wed, 2020-12-09 at 00:26 +0100, Vitaly Wool wrote: > > Hi Mike, > > > > On 2020-12-07 16:41, Mike Galbraith wrote: > > > On Mon, 2020-12-07 at 16:21 +0100, Vitaly Wool wrote: > > >> On Mon, Dec 7, 2020 at 1:34 PM Mike Galbraith wrote:

Re: "irq 4: Affinity broken due to vector space exhaustion." warning on restart of ttyS0 console

2020-12-08 Thread Shung-Hsi Yu
Hi Thomas, On Tue, Nov 10, 2020 at 09:56:27PM +0100, Thomas Gleixner wrote: > The real problem is irqbalanced aggressively exhausting the vector space > of a _whole_ socket to the point that there is not a single vector left > for serial. That's the problem you want to fix. I believe this

[PATCH v2 3/5] dt-bindings: phy: Convert mixel,mipi-dsi-phy to json-schema

2020-12-08 Thread Liu Ying
This patch converts the mixel,mipi-dsi-phy binding to DT schema format using json-schema. Comparing to the plain text version, the new binding adds the 'assigned-clocks', 'assigned-clock-parents' and 'assigned-clock-rates' properites, otherwise 'make dtbs_check' would complain that there are

[PATCH v2 4/5] dt-bindings: phy: mixel: mipi-dsi-phy: Add Mixel combo PHY support for i.MX8qxp

2020-12-08 Thread Liu Ying
Add support for Mixel MIPI DPHY + LVDS PHY combo IP as found on Freescale i.MX8qxp SoC. Cc: Guido Günther Cc: Kishon Vijay Abraham I Cc: Vinod Koul Cc: Rob Herring Cc: NXP Linux Team Signed-off-by: Liu Ying --- v1->v2: * Add the binding for i.MX8qxp Mixel combo PHY based on the converted

[PATCH v2 2/5] phy: Add LVDS configuration options

2020-12-08 Thread Liu Ying
This patch allows LVDS PHYs to be configured through the generic functions and through a custom structure added to the generic union. The parameters added here are based on common LVDS PHY implementation practices. The set of parameters should cover all potential users. Cc: Kishon Vijay Abraham

[PATCH v2 5/5] phy: freescale: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2020-12-08 Thread Liu Ying
i.MX8qxp SoC embeds a Mixel MIPI DPHY + LVDS PHY combo which supports either a MIPI DSI display or a LVDS display. The PHY mode is controlled by SCU firmware and the driver would call a SCU firmware function to configure the PHY mode. The single LVDS PHY has 4 data lanes to support a LVDS

Re: [PATCH RFC 10/39] KVM: x86/xen: support upcall vector

2020-12-08 Thread Ankur Arora
On 2020-12-08 8:08 a.m., David Woodhouse wrote: On Wed, 2020-12-02 at 19:02 +, David Woodhouse wrote: I feel we could just accommodate it as subtype in KVM_XEN_ATTR_TYPE_CALLBACK_VIA. Don't see the adavantage in having another xen attr type. Yeah, fair enough. But kinda have mixed

Re: [PATCH] powerpc/mm: Refactor the floor/ceiling check in hugetlb range freeing functions

2020-12-08 Thread Aneesh Kumar K.V
Christophe Leroy writes: > All hugetlb range freeing functions have a verification like the following, > which only differs by the mask used, depending on the page table level. > > start &= MASK; > if (start < floor) > return; > if (ceiling) { >

Re: [PATCH v4 2/7] Input: use input_device_enabled()

2020-12-08 Thread Dmitry Torokhov
On Tue, Dec 08, 2020 at 11:05:42AM +0100, Marek Szyprowski wrote: > Hi Andrzej, > > On 07.12.2020 16:50, Andrzej Pietrasiewicz wrote: > > Hi Marek, > > > > W dniu 07.12.2020 o 14:32, Marek Szyprowski pisze: > >> Hi Andrzej, > >> > >> On 08.06.2020 13:22, Andrzej Pietrasiewicz wrote: > >>> Use the

答复: [PATCH -next] net/mlx5_core: remove unused including

2020-12-08 Thread Zouwei (Samuel)
ok, I will add the Fixes line and send the v2 soon. -邮件原件- 发件人: Leon Romanovsky [mailto:l...@kernel.org] 发送时间: 2020年12月9日 14:21 收件人: Jakub Kicinski 抄送: Zouwei (Samuel) ; sae...@nvidia.com; da...@davemloft.net; net...@vger.kernel.org; linux-r...@vger.kernel.org;

Re: [f2fs-dev] [PATCH v3] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-12-08 Thread Chao Yu
On 2020/12/3 14:56, Daeho Jeong wrote: From: Daeho Jeong + f2fs_balance_fs(F2FS_I_SB(inode), true); Trivial cleanup: f2fs_balance_fs(sbi, true); + f2fs_balance_fs(F2FS_I_SB(inode), true); Ditto, Jaegeuk could fix this directly? Thanks,

Re: [PATCH] vdpa/mlx5: Use write memory barrier after updating CQ index

2020-12-08 Thread Michael S. Tsirkin
On Wed, Dec 09, 2020 at 08:02:30AM +0200, Eli Cohen wrote: > On Tue, Dec 08, 2020 at 04:45:04PM -0500, Michael S. Tsirkin wrote: > > On Sun, Dec 06, 2020 at 12:57:19PM +0200, Eli Cohen wrote: > > > Make sure to put write memory barrier after updating CQ consumer index > > > so the hardware knows

Re: [PATCH 1/1] scsi: ufs-mediatek: use correct path to fix compiling error

2020-12-08 Thread Stanley Chu
Hi Zhen, On Wed, 2020-12-09 at 14:31 +0800, Zhen Lei wrote: > When the kernel is compiled with allmodconfig, the following error is > reported: > In file included from drivers/scsi/ufs/ufs-mediatek-trace.h:36:0, > from drivers/scsi/ufs/ufs-mediatek.c:28: >

[PATCH -next v2] net/mlx5_core: remove unused including

2020-12-08 Thread Zou Wei
Remove including that don't need it. Fixes: 17a7612b99e6 ("net/mlx5_core: Clean driver version and name") Signed-off-by: Zou Wei --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c

Re: [RFC 0/2] nocopy bvec for direct IO

2020-12-08 Thread Christoph Hellwig
On Wed, Dec 09, 2020 at 02:19:50AM +, Pavel Begunkov wrote: > A benchmark got me 430KIOPS vs 540KIOPS, or +25% on bare metal. And perf > shows that bio_iov_iter_get_pages() was taking ~20%. The test is pretty > silly, but still imposing. I'll redo it closer to reality for next > iteration,

Re: [PATCH 1/1] crypto: Fix possible buffer overflows in pkey_protkey_aes_attr_read

2020-12-08 Thread Christian Borntraeger
On 09.12.20 07:47, Xiaohui Zhang wrote: > From: Zhang Xiaohui > > pkey_protkey_aes_attr_read() calls memcpy() without checking the > destination size may trigger a buffer overflower. To me it looks like protkey.len is generated programmatically in pkey_genprotkey/pkey_clr2protkey and this

[PATCH v1 1/2] scsi: ufs: Protect some contexts from unexpected clock scaling

2020-12-08 Thread Can Guo
In contexts like suspend, shutdown and error handling, we need to suspend devfreq to make sure these contexts won't be disturbed by clock scaling. However, suspending devfreq is not enough since users can still trigger a clock scaling by manipulating the sysfs node clkscale_enable and devfreq

[PATCH v1 2/2] scsi: ufs: Clean up some lines from ufshcd_hba_exit()

2020-12-08 Thread Can Guo
ufshcd_hba_exit() is always called after ufshcd_exit_clk_scaling() and ufshcd_exit_clk_gating(), so no need to suspend clock scaling again in ufshcd_hba_exit(). Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

Re: [PATCH] vdpa/mlx5: Use write memory barrier after updating CQ index

2020-12-08 Thread Eli Cohen
On Wed, Dec 09, 2020 at 01:46:22AM -0500, Michael S. Tsirkin wrote: > On Wed, Dec 09, 2020 at 08:02:30AM +0200, Eli Cohen wrote: > > On Tue, Dec 08, 2020 at 04:45:04PM -0500, Michael S. Tsirkin wrote: > > > On Sun, Dec 06, 2020 at 12:57:19PM +0200, Eli Cohen wrote: > > > > Make sure to put write

Re: [PATCH v4] HID: i2c-hid: add polling mode based on connected GPIO chip's pin status

2020-12-08 Thread Greg KH
On Tue, Dec 08, 2020 at 09:59:20PM +, Barnabás Pőcze wrote: > 2020. november 25., szerda 16:07 keltezéssel, Greg KH írta: > > > [...] > > > +static u8 polling_mode; > > > +module_param(polling_mode, byte, 0444); > > > +MODULE_PARM_DESC(polling_mode, "How to poll (default=0) - 0 disabled; 1 >

[PATCH] kexec: Fix error code in kexec_calculate_store_digests()

2020-12-08 Thread Dan Carpenter
Return -ENOMEM on allocation failure instead of returning success. Fixes: a43cac0d9dc2 ("kexec: split kexec_file syscall code to kexec_file.c") Signed-off-by: Dan Carpenter --- kernel/kexec_file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/kexec_file.c

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

2020-12-08 Thread Greg KH
On Tue, Dec 08, 2020 at 11:01:50PM +0200, Vasyl Vavrychuk wrote: > From: Mathias Crombez > > Without multi-touch slots allocated, ABS_MT_SLOT events will be lost by > input_handle_abs_event. > > Signed-off-by: Mathias Crombez > Signed-off-by: Vasyl Vavrychuk > Tested-by: Vasyl Vavrychuk >

RE: [PATCH v3 1/4] Input: adp5589-keys - add default platform data

2020-12-08 Thread Ardelean, Alexandru
> -Original Message- > From: Alexandru Ardelean > Sent: Friday, November 27, 2020 1:14 PM > To: linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org > Cc: l...@metafoo.de; dmitry.torok...@gmail.com; robh...@kernel.org; > Ardelean, Alexandru >

[tip:x86/cpu] BUILD SUCCESS 262bd5724afdefd4c48a260d6100e78cc43ee06b

2020-12-08 Thread kernel test robot
mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a004-20201208 i386

  1   2   3   4   5   6   7   8   9   10   >