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

2021-01-15 Thread Paolo Bonzini
On 15/01/21 01:14, Sean Christopherson wrote: + trace_kvm_nested_vmlaunch_resume(kvm_rip_read(vcpu), Hmm, won't this RIP be wrong for the migration case? I.e. it'll be L2, not L1 as is the case for the "true" nested VM-Enter path. It will be the previous RIP---might as well be 0xfff

Re: [PATCH 00/10] Fix documentation warnings at linux-next

2021-01-15 Thread Jonathan Cameron
On Fri, 15 Jan 2021 10:49:47 +0100 Mauro Carvalho Chehab wrote: > Hi Lukas, > > Em Fri, 15 Jan 2021 07:12:38 +0100 > Lukas Bulwahn escreveu: > > > [reduced the recipient list to the main responsible ones and list] > > > > Hi Mauro, hi Jonathan, > > > > We both, Mauro and I, have been submitt

Re: [PATCH v3 14/15] kasan: add a test for kmem_cache_alloc/free_bulk

2021-01-15 Thread Alexander Potapenko
On Fri, Jan 15, 2021 at 2:16 PM Marco Elver wrote: > > On Thu, Jan 14, 2021 at 08:36PM +0100, Andrey Konovalov wrote: > > Add a test for kmem_cache_alloc/free_bulk to make sure there are no > > false-positives when these functions are used. > > > > Link: > > https://linux-review.googlesource.com/

Re: [PATCH] KVM: Documentation: Fix spec for KVM_CAP_ENABLE_CAP_VM

2021-01-15 Thread Quentin Perret
On Friday 08 Jan 2021 at 16:53:49 (+), Quentin Perret wrote: > The documentation classifies KVM_ENABLE_CAP with KVM_CAP_ENABLE_CAP_VM > as a vcpu ioctl, which is incorrect. Fix it by specifying it as a VM > ioctl. Anything I should do on this one? Thanks, Quentin

Re: general protection fault in xsk_recvmsg

2021-01-15 Thread Dmitry Vyukov
On Fri, Jan 15, 2021 at 1:50 PM Björn Töpel wrote: > > #syz fix: xsk: Validate socket state in xsk_recvmsg, prior touching > socket members -most This got unrecoverably corrupted with line wraps by email client. As my client does the same, there is a special hack that allows to send a least a li

Re: [PATCH v2 2/3] KVM: x86: introduce definitions to support static calls for kvm_x86_ops

2021-01-15 Thread Paolo Bonzini
On 15/01/21 10:26, Peter Zijlstra wrote: +#define KVM_X86_OP(func)\ + DEFINE_STATIC_CALL_NULL(kvm_x86_##func, \ + *(((struct kvm_x86_ops *)0)->func)); +#define KVM_X86_OP_NULL KVM_X86_OP +#include

Re: [PATCH v2 2/5] lib: add error_report_notify to collect debugging tools' reports

2021-01-15 Thread Greg KH
Minor comments, if in the future, you really do want to mess around in sysfs: On Fri, Jan 15, 2021 at 02:03:33PM +0100, Alexander Potapenko wrote: > diff --git a/lib/error_report_notify.c b/lib/error_report_notify.c > new file mode 100644 > index ..66176cd94ba0 > --- /dev/null > +++ b/

Re: [PATCH v3 05/17] KVM: x86/pmu: Reprogram guest PEBS event to emulate guest PEBS counter

2021-01-15 Thread Xu, Like
On 2021/1/15 19:33, Peter Zijlstra wrote: On Mon, Jan 04, 2021 at 09:15:30PM +0800, Like Xu wrote: When a guest counter is configured as a PEBS counter through IA32_PEBS_ENABLE, a guest PEBS event will be reprogrammed by configuring a non-zero precision level in the perf_event_attr. The guest P

Re: drivers/scsi/myrs.c:2449:13: sparse: sparse: incorrect type in assignment (different base types)

2021-01-15 Thread Kefeng Wang
o config: riscv-randconfig-s032-20210115 (attached as .config) compiler: riscv32-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse #

[RFC PATCH v3 0/8] Adding the Sparx5 Switch Driver

2021-01-15 Thread Steen Hegelund
This series provides the Microchip Sparx5 Switch Driver The Sparx5 Carrier Ethernet and Industrial switch family delivers 64 Ethernet ports and up to 200 Gbps of switching bandwidth. It provides a rich set of Ethernet switching features such as hierarchical QoS, hardware-based OAM and service ac

[RFC PATCH v3 5/8] net: sparx5: add switching, vlan and mactable support

2021-01-15 Thread Steen Hegelund
This adds SwitchDev support by hardware offloading the SW bridge and setting up the Sparx5 MAC/VLAN tables, and listening for MAC table updates. Signed-off-by: Steen Hegelund Signed-off-by: Bjarni Jonasson Signed-off-by: Lars Povlsen --- .../net/ethernet/microchip/sparx5/Makefile| 3 +-

[RFC PATCH v3 1/8] dt-bindings: net: sparx5: Add sparx5-switch bindings

2021-01-15 Thread Steen Hegelund
Document the Sparx5 switch device driver bindings Signed-off-by: Steen Hegelund Signed-off-by: Lars Povlsen --- .../bindings/net/microchip,sparx5-switch.yaml | 211 ++ 1 file changed, 211 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/microchip,sparx5-s

[RFC PATCH v3 3/8] net: sparx5: add hostmode with phylink support

2021-01-15 Thread Steen Hegelund
This adds phylink support for ports and register base injection and extraction. Signed-off-by: Steen Hegelund Signed-off-by: Bjarni Jonasson Signed-off-by: Lars Povlsen --- .../net/ethernet/microchip/sparx5/Makefile| 2 +- .../ethernet/microchip/sparx5/sparx5_main.c | 83 -- .../e

[RFC PATCH v3 4/8] net: sparx5: add port module support

2021-01-15 Thread Steen Hegelund
This add configuration of the Sparx5 port module instances. Signed-off-by: Steen Hegelund Signed-off-by: Bjarni Jonasson Signed-off-by: Lars Povlsen --- .../net/ethernet/microchip/sparx5/Makefile|3 +- .../ethernet/microchip/sparx5/sparx5_main.c | 24 +- .../ethernet/microchip/spar

[RFC PATCH v3 7/8] net: sparx5: add ethtool configuration and statistics support

2021-01-15 Thread Steen Hegelund
This adds statistic counters for the network interfaces provided by the driver. It also adds CPU port counters (which are not exposed by ethtool). This also adds support for configuring the network interface parameters via ethtool: speed, duplex, aneg etc. Signed-off-by: Steen Hegelund Signed-of

[RFC PATCH v3 6/8] net: sparx5: add calendar bandwidth allocation support

2021-01-15 Thread Steen Hegelund
This configures the Sparx5 calendars according to the bandwidth requested in the Device Tree nodes. It also checks if the total requested bandwidth is within the specs of the detected Sparx5 models limits. Signed-off-by: Steen Hegelund Signed-off-by: Bjarni Jonasson Signed-off-by: Lars Povlsen

[RFC PATCH v3 8/8] arm64: dts: sparx5: Add the Sparx5 switch node

2021-01-15 Thread Steen Hegelund
This provides switchdev support for the Microchip Sparx5 PCB134 and PCB135 reference boards. This commit depends on the following series currently on their way into the kernel: - Sparx5 SerDes Driver Link: https://lore.kernel.org/r/20201211090541.157926-1-steen.hegel...@microchip.com/ - Seria

Re: [PATCH v2 3/3] KVM: x86: use static calls to reduce kvm_x86_ops overhead

2021-01-15 Thread Paolo Bonzini
On 15/01/21 10:45, Peter Zijlstra wrote: On Thu, Jan 14, 2021 at 10:27:56PM -0500, Jason Baron wrote: diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 5060922..9d4492b 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1350,

I Need Your Assistance

2021-01-15 Thread Kane Richmond
Let me start by introducing myself my name is Mr.Kane, I am a banker i need your assistance from my section in the bank i discovered an abandoned sum of $11.6million dollars that belongs to one of our foreign customer who died along with his supposed next of kin since July 22, 2003. I need your urg

Re: [f2fs-dev] [PATCH v2 1/2] f2fs: introduce checkpoint=merge mount option

2021-01-15 Thread Daeho Jeong
2021년 1월 15일 (금) 오후 6:22, Chao Yu 님이 작성: > > On 2021/1/14 14:23, Daeho Jeong wrote: > > From: Daeho Jeong > > > > We've added a new mount option "checkpoint=merge", which creates a > > kernel daemon and makes it to merge concurrent checkpoint requests as > > much as possible to eliminate redundant

[PATCH v2 4/5] ASoC: tegra: ahub: Use clk_bulk helpers

2021-01-15 Thread Dmitry Osipenko
Use clk_bulk helpers to make code cleaner. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra30_ahub.c | 30 +++--- sound/soc/tegra/tegra30_ahub.h | 4 ++-- 2 files changed, 9 insertions(+), 25 deletions(-) diff -

[PATCH v2 1/5] ALSA: hda/tegra: Use clk_bulk helpers

2021-01-15 Thread Dmitry Osipenko
Use clk_bulk helpers to make code cleaner. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Signed-off-by: Dmitry Osipenko --- sound/pci/hda/hda_tegra.c | 68 ++- 1 file changed, 9 insertions(+), 59 deletions(-) diff --git a/sound/pci/hda/hda_tegra.c b/soun

[PATCH v2 2/5] ALSA: hda/tegra: Reset hardware

2021-01-15 Thread Dmitry Osipenko
Reset hardware in order to bring it into a predictable state. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Signed-off-by: Dmitry Osipenko --- sound/pci/hda/hda_tegra.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegr

[PATCH v2 5/5] ASoC: tegra: ahub: Reset hardware properly

2021-01-15 Thread Dmitry Osipenko
Assert hardware reset before clocks are enabled and then de-assert it after clocks are enabled. This brings hardware into a predictable state and removes relying on implicit de-assertion of resets which is done by the clk driver. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Signed-off-by: Dm

[PATCH v2 3/5] ASoC: tegra: ahub: Use of_reset_control_array_get_exclusive()

2021-01-15 Thread Dmitry Osipenko
Some of resets are erroneously missed in the configlink_mods[], like APBIF for example. Use of_reset_control_array_get_exclusive() which requests all the resets. The problem was hidden by the clk driver which implicitly de-asserts the missing resets. Tested-by: Peter Geis Tested-by: Nicolas Chauv

[PATCH v2 0/5] Clock and reset improvements for Tegra ALSA drivers

2021-01-15 Thread Dmitry Osipenko
This series improves the handling of clock and reset controls of NVIDA Tegra ALSA drivers. Tegra HDA and AHUB drivers aren't handling resets properly, which needs to be fixed in order to unblock other patches related to fixes of the reset controller driver since HDA/AHUB are bound to fail once rese

How to Block Polycom Root Call IP Addresses in HPE MSR2003 Router

2021-01-15 Thread Turritopsis Dohrnii Teo En Ming
Subject: How to Block Polycom Root Call IP Addresses in HPE MSR2003 Router Author: Mr. Turritopsis Dohrnii Teo En Ming (TARGETED INDIVIDUAL) Country: Singapore Date: 15 Jan 2021 Friday Singapore Time Type of Publication: Plain Text Document version: 20210115.01 DETAILED STEPS ==

Re: [PATCH v3 12/15] kasan: fix bug detection via ksize for HW_TAGS mode

2021-01-15 Thread Alexander Potapenko
On Fri, Jan 15, 2021 at 2:18 PM Marco Elver wrote: > > On Thu, Jan 14, 2021 at 08:36PM +0100, Andrey Konovalov wrote: > > The currently existing kasan_check_read/write() annotations are intended > > to be used for kernel modules that have KASAN compiler instrumentation > > disabled. Thus, they are

Re: [PATCH v2] drm: Improve the output_poll_changed description

2021-01-15 Thread Daniel Vetter
On Fri, Jan 15, 2021 at 11:33:28AM +0800, ZhiJie.Zhang wrote: > From: zhangzhijie > > this callback was used by drm_kms_helper_hotplug_event() > > V2: (Thanks for Daniel's suggestions) > - remove the FIXME below.since with the drm_client > - infrastructure and the generic fbdev emulation we've >

Re: [PATCH v3 11/15] kasan: move _RET_IP_ to inline wrappers

2021-01-15 Thread Alexander Potapenko
On Fri, Jan 15, 2021 at 2:19 PM Marco Elver wrote: > > On Thu, Jan 14, 2021 at 08:36PM +0100, Andrey Konovalov wrote: > > Generic mm functions that call KASAN annotations that might report a bug > > pass _RET_IP_ to them as an argument. This allows KASAN to include the > > name of the function tha

Re: [PATCH] regulator: bd718x7, bd71828, Fix dvs voltage levels

2021-01-15 Thread Vaittinen, Matti
On Fri, 2021-01-15 at 13:47 +, Lee Jones wrote: > On Fri, 15 Jan 2021, Matti Vaittinen wrote: > > > The ROHM BD718x7 and BD71828 drivers support setting HW state > > specific voltages from device-tree. This is used also by various > > in-tree DTS files. > > > > These drivers do incorrectly t

Re: [PATCH v2] brcmfmac: add support for CQM RSSI notifications

2021-01-15 Thread Arend Van Spriel
+ Johannes - netdevs On 1/14/2021 5:36 PM, 'Alvin Šipraga' via BRCM80211-DEV-LIST,PDL wrote: Add support for CQM RSSI measurement reporting and advertise the NL80211_EXT_FEATURE_CQM_RSSI_LIST feature. This enables a userspace supplicant such as iwd to be notified of changes in the RSSI for roami

Re: [PATCH][next] drm/vkms: Fix missing kmalloc allocation failure check

2021-01-15 Thread Sumera Priyadarsini
On Fri, Jan 15, 2021 at 6:39 PM Colin King wrote: > > From: Colin Ian King > > Currently the kmalloc allocation for config is not being null > checked and could potentially lead to a null pointer dereference. > Fix this by adding the missing null check. > > Addresses-Coverity: ("Dereference null

Re: [PATCH v3 08/15] kasan: add compiler barriers to KUNIT_EXPECT_KASAN_FAIL

2021-01-15 Thread Alexander Potapenko
On Thu, Jan 14, 2021 at 8:36 PM Andrey Konovalov wrote: > > It might not be obvious to the compiler that the expression must be > executed between writing and reading to fail_data. In this case, the > compiler might reorder or optimize away some of the accesses, and > the tests will fail. > > Add

[PATCH v2] mm, oom: Fix a comment in dump_task

2021-01-15 Thread Tang Yizhou
If p is a kthread, it will be checked in oom_unkillable_task() so we can delete the corresponding comment. Signed-off-by: Tang Yizhou Cc: David Rientjes Cc: KOSAKI Motohiro Cc: Shakeel Butt Cc: Michal Hocko --- v2: Update Cc list mm/oom_kill.c | 5 ++--- 1 file changed, 2 insertions(+), 3 de

[PATCH 1/2] usb typec: tcpci: mt6360: Add vsafe0v support and external vbus supply control

2021-01-15 Thread cy_huang
From: ChiYuan Huang MT6360 not support for TCPC command to control source and sink. Uses external 5V vbus regulator as the vbus source control. Also adds the capability to report vsafe0v. Signed-off-by: ChiYuan Huang --- drivers/usb/typec/tcpm/tcpci_mt6360.c | 29 +

[PATCH 2/2] usb typec: tcpci: mt6360: Add vbus supply into dt-binding description

2021-01-15 Thread cy_huang
From: ChiYuan Huang Add external vbus source into dt-binding description. Signed-off-by: ChiYuan Huang --- Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml

Re: [PATCH 02/10] drm: Rename plane atomic_check state names

2021-01-15 Thread Maxime Ripard
Hi, On Fri, Jan 15, 2021 at 02:46:36PM +0100, Thomas Zimmermann wrote: > Hi > > Am 15.01.21 um 13:56 schrieb Maxime Ripard: > > diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c > > b/drivers/gpu/drm/imx/ipuv3-plane.c > > index 8a4235d9d9f1..2cb09e9d9306 100644 > > --- a/drivers/gpu/drm/imx/ipuv3-p

Re: [PATCH] printk: fix buffer overflow potential for print_text()

2021-01-15 Thread John Ogness
Hi Petr, I noticed some minor errors in the commit log and comments... On 2021-01-14, John Ogness wrote: > Before commit b6cf8b3f3312 ("printk: add lockless ringbuffer"), > msg_print_text() The correct commit where the change was made is: 896fbe20b4e2333fb55 ("printk: use the lockless ringbuffe

Re: [PATCH v4 1/2] arm64: dts: sdm845: add oneplus6/6t devices

2021-01-15 Thread Bjorn Andersson
On Fri 15 Jan 06:28 CST 2021, Konrad Dybcio wrote: > > Please move gpio-keys before reserved-memory to keep things sorted. > > > > + vreg_l25a_3p3: ldo25 { > > + regulator-min-microvolt = <330>; > > + regulator-max-microvolt = <3312000>; > > +

Re: cBPF socket filters failing - inexplicably?

2021-01-15 Thread Eric Dumazet
On Fri, Jan 15, 2021 at 7:52 AM Alexei Starovoitov wrote: > > Adding appropriate mailing list to cc... > > My wild guess is that as soon as socket got created: > socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); > the packets were already queued to it. > So later setsockopt() is too late to filter. >

[GIT PULL] MIPS fixes for v5.11

2021-01-15 Thread Thomas Bogendoerfer
The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e: Linux 5.11-rc1 (2020-12-27 15:30:22 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/ tags/mips_fixes_5.11.1 for you to fetch changes up to 7b490a8ab0f2d3

Re: [f2fs-dev] [PATCH v2 1/2] f2fs: introduce checkpoint=merge mount option

2021-01-15 Thread Daeho Jeong
2021년 1월 15일 (금) 오후 11:00, Daeho Jeong 님이 작성: > > 2021년 1월 15일 (금) 오후 6:22, Chao Yu 님이 작성: > > > > On 2021/1/14 14:23, Daeho Jeong wrote: > > > From: Daeho Jeong > > > > > > We've added a new mount option "checkpoint=merge", which creates a > > > kernel daemon and makes it to merge concurrent chec

Re: [PATCH v2 5/5] ASoC: tegra: ahub: Reset hardware properly

2021-01-15 Thread Dmitry Osipenko
15.01.2021 17:01, Dmitry Osipenko пишет: > @@ -65,12 +65,32 @@ static int tegra30_ahub_runtime_resume(struct device *dev) > { > int ret; > > + ret = reset_control_assert(ahub->reset); > + if (ret) > + return ret; > + > ret = clk_bulk_prepare_enable(ahub->nclocks,

[PATCH v3] Documentation: livepatch: document reliable stacktrace

2021-01-15 Thread Mark Brown
From: Mark Rutland Add documentation for reliable stacktrace. This is intended to describe the semantics and to be an aid for implementing architecture support for HAVE_RELIABLE_STACKTRACE. Unwinding is a subtle area, and architectures vary greatly in both implementation and the set of concerns

Re: [PATCH] iommu: check for the deferred attach when attaching a device

2021-01-15 Thread lijiang
Hi, Robin Thank you for the comment. 在 2021年01月13日 01:29, Robin Murphy 写道: > On 2021-01-05 07:52, lijiang wrote: >> 在 2021年01月05日 11:55, lijiang 写道: >>> Hi, >>> >>> Also add Joerg to cc list. >>> >> >> Also add more people to cc list, Jerry Snitselaar and Tom Lendacky. >> >> Thanks. >> >>> Thanks

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

2021-01-15 Thread Eric Dumazet
On Fri, Jan 15, 2021 at 12:55 AM Alexander Lobakin wrote: > > 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. > Howeve

Re: [PATCH v3 04/17] perf: x86/ds: Handle guest PEBS overflow PMI and inject it to guest

2021-01-15 Thread Xu, Like
On 2021/1/15 20:01, Peter Zijlstra wrote: On Thu, Jan 14, 2021 at 11:39:00AM +0800, Xu, Like wrote: Why do we need to? Can't we simply always forward the PMI if the guest has bits set in MSR_IA32_PEBS_ENABLE ? Surely we can access the guest MSRs at a reasonable rate.. Sure, it'll send too many

[RFC PATCH net 2/2] net: can: j1939: fix check for valid CAN devices

2021-01-15 Thread Oleksij Rempel
With the last patch a dedicated struct can_ml pointer was added to the struct netdevice to store CAN stack related private data. The data is only allocated and the pointer is only set by CAN devices. Now we use a NULL pointer check on ndev->can to check for real CAN devices. Only checking the ARPH

Re: [PATCH 0/2] page_count can't be used to decide when wp_page_copy

2021-01-15 Thread Jan Kara
On Sat 09-01-21 11:46:46, Linus Torvalds wrote: > On Sat, Jan 9, 2021 at 11:33 AM Matthew Wilcox wrote: > > > > On Thu, Jan 07, 2021 at 01:05:19PM -0800, Linus Torvalds wrote: > > > Side note, and not really related to UFFD, but the mmap_sem in > > > general: I was at one point actually hoping tha

[RFC PATCH net 1/2] net: introduce CAN specific pointer in the struct net_device

2021-01-15 Thread Oleksij Rempel
Since 20dd3850bcf8 ("can: Speed up CAN frame receiption by using ml_priv") the CAN framework uses per device specific data in the AF_CAN protocol. For this purpose the struct net_device->ml_priv is used. Later the ml_priv usage in CAN was extended for other users, one of them being CAN_J1939. Late

Re: [PATCH v2 9/9] KVM: arm64: Add UBSan tests for PKVM.

2021-01-15 Thread kernel test robot
Hi Elena, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on arm64/for-next/core] [cannot apply to kvmarm/next soc/for-next arm/for-next xlnx/master v5.11-rc3 next-20210115] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH v1] drm/panel: simple: add SGD GKTW70SDAD1SD

2021-01-15 Thread Neil Armstrong
Hi, On 10/01/2021 21:06, Oliver Graute wrote: > On 10/01/21, Fabio Estevam wrote: >> Hi Oliver, >> >> On Sun, Jan 10, 2021 at 12:35 PM Oliver Graute >> wrote: >> >>> the first two errors are gone. But I still get this: >>> >>> [ 42.387107] mxsfb 21c8000.lcdif: Cannot connect bridge: -517 >>>

[GIT PULL] xen: branch for v5.11-rc4

2021-01-15 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.11-rc4-tag xen: branch for v5.11-rc4 It contains: - A series for fixing a regression when running as a fully virtualized guest on an old Xen hypervisor not supporting PV interrup

[GIT PULL] xen: branch for v5.11-rc4

2021-01-15 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.11-rc4-tag xen: branch for v5.11-rc4 It contains: - A series for fixing a regression when running as a fully virtualized guest on an old Xen hypervisor not supporting PV interrup

[PATCH] media: cec: add stm32 driver

2021-01-15 Thread Yannick Fertre
Missing stm32 directory to Makefile. Signed-off-by: Yannick Fertre --- drivers/media/cec/platform/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/cec/platform/Makefile b/drivers/media/cec/platform/Makefile index 3a947159b25a..ea6f8ee8161c 100644 --- a/drivers/media/ce

Re: [f2fs-dev] [PATCH v2 1/2] f2fs: introduce checkpoint=merge mount option

2021-01-15 Thread Chao Yu
On 2021/1/15 22:00, Daeho Jeong wrote: ktime_get() returns time based ns unit, in extreme scenario, average time cp cost will overflow 32-bit variable, I doubt. sum_diff is already turned into msec using ktime_ms_delta() above. Yup, I missed ktime_ms_delta(). On 2021/1/15 22:23, Daeho Jeong

Re: [PATCH][next] power: supply: cpcap-charger: Fix power_supply_put on null battery pointer

2021-01-15 Thread Sebastian Reichel
Hi, On Fri, Jan 15, 2021 at 03:24:17PM +0200, Tony Lindgren wrote: > * Colin King [210115 13:15]: > > From: Colin Ian King > > > > Currently if the pointer battery is null there is a null pointer > > dereference on the call to power_supply_put. Fix this by only > > performing the put if batter

[PATCH] ARM: multi_v7_defconfig: add STM32 CEC support

2021-01-15 Thread Yannick Fertre
Enable CEC support for STMicroelectronics as loadable module. Signed-off-by: Yannick Fertre --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index c5f25710fedc..05cc0607a9ad 1006

[PATCH] regulator: bd718x7, bd71828, Fix dvs voltage levels

2021-01-15 Thread Matti Vaittinen
The ROHM BD718x7 and BD71828 drivers support setting HW state specific voltages from device-tree. This is used also by various in-tree DTS files. These drivers do incorrectly try to compose bit-map using enum values. By a chance this works for first two valid levels having values 1 and 2 - but set

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

2021-01-15 Thread Alexander Lobakin
From: Eric Dumazet Date: Fri, 15 Jan 2021 15:28:37 +0100 > On Fri, Jan 15, 2021 at 12:55 AM Alexander Lobakin wrote: >> >> 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 exce

Re: [PATCH 6/6] sched/deadline: Fixes cpu/rd/dl_bw references for suspended tasks

2021-01-15 Thread Dietmar Eggemann
On 12/01/2021 16:53, Daniel Bristot de Oliveira wrote: [...] > - %< - > #!/bin/bash > # Enter on the cgroup directory > cd /sys/fs/cgroup/ > > # Check it if is cgroup v2 and enable cpuset > if [ -e cgroup.subtree_control ]; then > # Enable cpuset controller on cgroup v2 >

Re: [PATCH v2 5/6] perf stat: Enable iiostat mode for x86 platforms

2021-01-15 Thread Alexander Antonov
On 1/15/2021 10:33 AM, Namhyung Kim wrote: On Fri, Jan 15, 2021 at 1:41 AM Alexander Antonov wrote: On 1/14/2021 6:39 AM, Namhyung Kim wrote: On Wed, Jan 13, 2021 at 9:08 PM Alexander Antonov wrote: On 1/6/2021 12:02 PM, Namhyung Kim wrote: On Wed, Dec 23, 2020 at 10:03 PM Alexander Anton

Re: [PATCH] regulator: bd718x7, bd71828, Fix dvs voltage levels

2021-01-15 Thread Lee Jones
On Fri, 15 Jan 2021, Matti Vaittinen wrote: > The ROHM BD718x7 and BD71828 drivers support setting HW state > specific voltages from device-tree. This is used also by various > in-tree DTS files. > > These drivers do incorrectly try to compose bit-map using enum > values. By a chance this works f

Re: [PATCH v4 2/6] dt-bindings: audio-graph-card: Add plls and sysclks properties

2021-01-15 Thread Richard Fitzgerald
On 15/01/2021 13:11, Mark Brown wrote: On Fri, Jan 15, 2021 at 10:35:23AM +, Richard Fitzgerald wrote: On 13/01/2021 16:09, Mark Brown wrote: On Wed, Jan 13, 2021 at 09:22:25AM -0600, Rob Herring wrote: some_codec { pll: pll { compatible = "fixed-clock";

Re: [PATCH 3/3] i2c: i2c-qcom-geni: Add support for 'assigned-performance-states'

2021-01-15 Thread Bjorn Andersson
On Thu 24 Dec 05:12 CST 2020, Roja Rani Yarubandi wrote: > @@ -629,6 +658,16 @@ static int __maybe_unused > geni_i2c_runtime_suspend(struct device *dev) > struct geni_i2c_dev *gi2c = dev_get_drvdata(dev); > > disable_irq(gi2c->irq); > + > + /* Drop the assigned performance state

Re: [PATCH v3 04/17] perf: x86/ds: Handle guest PEBS overflow PMI and inject it to guest

2021-01-15 Thread Peter Zijlstra
On Fri, Jan 15, 2021 at 10:30:13PM +0800, Xu, Like wrote: > > Are you sure? Spurious NMI/PMIs are known to happen anyway. We have far > > too much code to deal with them. > > https://lore.kernel.org/lkml/20170628130748.GI5981@leverpostej/T/ > > In the rr workload, the commit change "the PMI inte

Re: [PATCH] MIPS: Compare __SYNC_loongson3_war against 0

2021-01-15 Thread Thomas Bogendoerfer
On Thu, Jan 14, 2021 at 10:34:16AM -0700, Nathan Chancellor wrote: > When building with clang when CONFIG_CPU_LOONGSON3_WORKAROUNDS is > enabled: > > In file included from lib/errseq.c:4: > In file included from ./include/linux/atomic.h:7: > ./arch/mips/include/asm/atomic.h:52:1: warning: conve

Re: [PATCH] MIPS: Support binutils configured with --enable-mips-fix-loongson3-llsc=yes

2021-01-15 Thread Thomas Bogendoerfer
On Sat, Jan 09, 2021 at 08:30:47PM +0100, Aurelien Jarno wrote: > >From version 2.35, binutils can be configured with > --enable-mips-fix-loongson3-llsc=yes, which means it defaults to > -mfix-loongson3-llsc. This breaks labels which might then point at the > wrong instruction. > > The workaround

Re: [PATCH v5 mips-next 0/9] MIPS: vmlinux.lds.S sections fixes & cleanup

2021-01-15 Thread Thomas Bogendoerfer
On Sun, Jan 10, 2021 at 11:53:50AM +, Alexander Lobakin wrote: > This series hunts the problems discovered after manual enabling of > ARCH_WANT_LD_ORPHAN_WARN. Notably: > - adds the missing PAGE_ALIGNED_DATA() section affecting VDSO >placement (marked for stable); > - stops blind catching

Re: [PATCH v3 06/17] KVM: x86/pmu: Add IA32_PEBS_ENABLE MSR emulation for extended PEBS

2021-01-15 Thread Peter Zijlstra
On Mon, Jan 04, 2021 at 09:15:31PM +0800, Like Xu wrote: > + if (cpuc->pebs_enabled & ~cpuc->intel_ctrl_host_mask) { > + arr[1].msr = MSR_IA32_PEBS_ENABLE; > + arr[1].host = cpuc->pebs_enabled & ~cpuc->intel_ctrl_guest_mask; > + arr[1].guest = cpuc->pebs_ena

Re: [PATCH] regulator: bd718x7, bd71828, Fix dvs voltage levels

2021-01-15 Thread Vaittinen, Matti
On Fri, 2021-01-15 at 14:41 +, Lee Jones wrote: > On Fri, 15 Jan 2021, Matti Vaittinen wrote: > > > The ROHM BD718x7 and BD71828 drivers support setting HW state > > specific voltages from device-tree. This is used also by various > > in-tree DTS files. > > > > These drivers do incorrectly t

Re: [PATCH 1/4] MIPS: process: Reorder header files

2021-01-15 Thread Thomas Bogendoerfer
On Tue, Jan 12, 2021 at 08:29:14PM +0800, Jinyang He wrote: > Just reorder the header files. This alone isn't worth a commit, IMHO. I bet there are lots of includes no longer needed, so removing and sorting them is ok for me. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's

Re: [PATCH v2] brcmfmac: add support for CQM RSSI notifications

2021-01-15 Thread Andrew Zaborowski
On Fri, 15 Jan 2021 at 15:12, Arend Van Spriel wrote:> > + Johannes > - netdevs > > On 1/14/2021 5:36 PM, 'Alvin Šipraga' via BRCM80211-DEV-LIST,PDL wrote: > > Add support for CQM RSSI measurement reporting and advertise the > > NL80211_EXT_FEATURE_CQM_RSSI_LIST feature. This enables a userspace >

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

2021-01-15 Thread Alex Deucher
On Fri, Jan 15, 2021 at 3:46 AM Huang, Ray wrote: > > [AMD Public Use] > > Could you please help to check whether this patch can fix the issue? Looks good. Might want to add a comment where you set cpu_core_num that this is only used on APUs which are x86 only. Reviewed-by: Alex Deucher > > T

Re: [PATCH v2] brcmfmac: add support for CQM RSSI notifications

2021-01-15 Thread Alvin Šipraga
Hi Arend, On 1/15/21 3:10 PM, Arend Van Spriel wrote: > + Johannes > - netdevs > > On 1/14/2021 5:36 PM, 'Alvin Šipraga' via BRCM80211-DEV-LIST,PDL wrote: >> Add support for CQM RSSI measurement reporting and advertise the >> NL80211_EXT_FEATURE_CQM_RSSI_LIST feature. This enables a userspace >>

Re: [PATCH mips-next 0/2] MIPS: fix -Wshadow in include files

2021-01-15 Thread Thomas Bogendoerfer
On Thu, Jan 14, 2021 at 06:29:26PM +, Alexander Lobakin wrote: > Fix two -Wshadow warnings coming from the include files and thus > repetitive and very annoying when building lots of sources. > > Alexander Lobakin (2): > MIPS: bitops: fix -Wshadow in asm/bitops.h > MIPS: pgtable: fix -Wsha

[RFC PATCH v3 0/8] Count rlimits in each user namespace

2021-01-15 Thread Alexey Gladkov
Preface --- These patches are for binding the rlimit counters to a user in user namespace. This patch set can be applied on top of: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v5.11-rc2 Problem --- The RLIMIT_NPROC, RLIMIT_MEMLOCK, RLIMIT_SIGPENDING, RLIMIT_MSGQUEUE rlimits

[RFC PATCH v3 4/8] Move RLIMIT_MSGQUEUE counter to ucounts

2021-01-15 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- include/linux/sched/user.h | 4 include/linux/user_namespace.h | 1 + ipc/mqueue.c | 29 +++-- kernel/fork.c | 1 + kernel/ucount.c| 1 + kernel/user_namespace.c| 1 +

[RFC PATCH v3 1/8] Use refcount_t for ucounts reference counting

2021-01-15 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- include/linux/user_namespace.h | 2 +- kernel/ucount.c| 20 +++- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h index 64cf8ebdc4ec..f84fc2d9ce20 1006

[RFC PATCH v3 3/8] Move RLIMIT_NPROC counter to ucounts

2021-01-15 Thread Alexey Gladkov
RLIMIT_NPROC is implemented on top of ucounts. The process counter is tied to the user in the user namespace. Therefore, there is no longer one single counter for the user. Instead, there is now one counter for each user namespace. Thus, getting the RLIMIT_NPROC counter value to check the rlimit be

[RFC PATCH v3 2/8] Add a reference to ucounts for each cred

2021-01-15 Thread Alexey Gladkov
For RLIMIT_NPROC and some other rlimits the user_struct that holds the global limit is kept alive for the lifetime of a process by keeping it in struct cred. Add a ucounts reference to struct cred, so that RLIMIT_NPROC can switch from using a per user limit to using a per user per user namespace l

Re: [PATCH v8 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2021-01-15 Thread Benjamin Tissoires
Hi, On Wed, Jan 13, 2021 at 8:35 PM Benjamin Tissoires wrote: On Wed, Jan 13, 2021 at 5:05 PM Doug Anderson wrote: > > Hi, > > On Wed, Jan 13, 2021 at 7:09 AM Benjamin Tissoires > wrote: > > > > > I wanted to apply the series yesterday, but for these kinds of changes > > > I like giving it

[RFC PATCH v3 7/8] Move RLIMIT_NPROC check to the place where we increment the counter

2021-01-15 Thread Alexey Gladkov
After calling set_user(), we always have to call commit_creds() to apply new credentials upon the current task. There is no need to separate limit check and counter incrementing. Signed-off-by: Alexey Gladkov --- kernel/cred.c | 22 +- kernel/sys.c | 13 - 2 file

[RFC PATCH v3 5/8] Move RLIMIT_SIGPENDING counter to ucounts

2021-01-15 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- fs/proc/array.c| 2 +- include/linux/sched/user.h | 1 - include/linux/signal_types.h | 4 ++- include/linux/user_namespace.h | 1 + kernel/fork.c | 1 + kernel/signal.c| 53 ++---

[RFC PATCH v3 6/8] Move RLIMIT_MEMLOCK counter to ucounts

2021-01-15 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- fs/hugetlbfs/inode.c | 17 - include/linux/hugetlb.h| 3 +-- include/linux/mm.h | 4 ++-- include/linux/shmem_fs.h | 2 +- include/linux/user_namespace.h | 1 + ipc/shm.c | 31 ++

Re: [f2fs-dev] [PATCH v3 1/5] f2fs: compress: add compress_inode to cache compressed blocks

2021-01-15 Thread Jaegeuk Kim
On 01/15, Chao Yu wrote: > On 2021/1/14 12:06, Jaegeuk Kim wrote: > > On 01/14, Chao Yu wrote: > > > On 2021/1/13 23:41, Jaegeuk Kim wrote: > > > > [58690.961685] F2FS-fs (vdb) : inject page get in > > > > f2fs_pagecache_get_page of f2fs_quota_write+0x150/0x1f0 [f2fs] > > > > [58691.071481] F2FS-f

[RFC PATCH v3 8/8] kselftests: Add test to check for rlimit changes in different user namespaces

2021-01-15 Thread Alexey Gladkov
The testcase runs few instances of the program with RLIMIT_NPROC=1 from user uid=6, in different user namespaces. Signed-off-by: Alexey Gladkov --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/rlimits/.gitignore| 2 + tools/testing/selftests/rlimits/Ma

Re: [PATCH 05/11] kasan, arm64: allow using KUnit tests with HW_TAGS mode

2021-01-15 Thread Vincenzo Frascino
Hi Andrey, On 1/5/21 6:27 PM, Andrey Konovalov wrote: > On a high level, this patch allows running KUnit KASAN tests with the > hardware tag-based KASAN mode. > > Internally, this change reenables tag checking at the end of each KASAN > test that triggers a tag fault and leads to tag checking bei

Re: [PATCH v2 0/3] Remove one more platform_device_add_properties() call

2021-01-15 Thread Greg KH
On Tue, Jan 12, 2021 at 12:49:14PM +0100, Greg KH wrote: > On Mon, Jan 11, 2021 at 05:10:42PM +0300, Heikki Krogerus wrote: > > Hi Felipe, Rafael, > > > > This is the second version of this series. There are no real changes, > > but I added the Tiger Lake ID patch to this series in hope that it >

Re: [PATCH v2 1/5] clk: tegra30: Use 300MHz for video decoder by default

2021-01-15 Thread Thierry Reding
On Tue, Jan 12, 2021 at 03:27:20PM +0300, Dmitry Osipenko wrote: > The 600MHz is a too high clock rate for some SoC versions for the video > decoder hardware and this may cause stability issues. Use 300MHz for the > video decoder by default, which is supported by all hardware versions. > > Fixes:

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

2021-01-15 Thread Nirmoy
Hi Stephen, On 1/15/21 2:23 AM, Stephen Rothwell wrote: 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/

Re: [PATCH v2 2/3] KVM: x86: introduce definitions to support static calls for kvm_x86_ops

2021-01-15 Thread Jason Baron
On 1/15/21 8:50 AM, Paolo Bonzini wrote: > On 15/01/21 10:26, Peter Zijlstra wrote: >>> +#define KVM_X86_OP(func) \ >>> +    DEFINE_STATIC_CALL_NULL(kvm_x86_##func, \ >>> +    *(((struct kvm_x86_ops *)0)->func)); >>> +#define KVM_X86_OP_NULL KV

Re: [PATCH v2 0/3] Remove one more platform_device_add_properties() call

2021-01-15 Thread Greg KH
On Fri, Jan 15, 2021 at 04:01:37PM +0100, Greg KH wrote: > On Tue, Jan 12, 2021 at 12:49:14PM +0100, Greg KH wrote: > > On Mon, Jan 11, 2021 at 05:10:42PM +0300, Heikki Krogerus wrote: > > > Hi Felipe, Rafael, > > > > > > This is the second version of this series. There are no real changes, > > >

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

2021-01-15 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 fix adressed only __napi_alloc_skb() (primarily for virtio_net a

Re: [PATCH v2 1/3] KVM: X86: append vmx/svm prefix to additional kvm_x86_ops functions

2021-01-15 Thread Jason Baron
On 1/15/21 4:22 AM, Peter Zijlstra wrote: > > On Thu, Jan 14, 2021 at 10:27:54PM -0500, Jason Baron wrote: > >> -static void update_exception_bitmap(struct kvm_vcpu *vcpu) >> +static void svm_update_exception_bitmap(struct kvm_vcpu *vcpu) > > Just to be a total pendant: s/append/Prepend/ on $

Re: [PATCH v3 1/4] kasan, arm64: Add KASAN light mode

2021-01-15 Thread Mark Rutland
On Fri, Jan 15, 2021 at 12:00:40PM +, Vincenzo Frascino wrote: > Architectures supported by KASAN HW can provide a light mode of > execution. On an MTE enabled arm64 hw for example this can be identified > with the asynch mode of execution. > In this mode, if a tag check fault occurs, the TFSR_

Re: [PATCH 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-15 Thread Catalin Marinas
On Fri, Jan 15, 2021 at 02:12:24PM +0100, Andrey Konovalov wrote: > On Wed, Jan 13, 2021 at 5:54 PM Catalin Marinas > wrote: > > > > On Wed, Jan 13, 2021 at 05:03:30PM +0100, Andrey Konovalov wrote: > > > As of the "arm64: expose FAR_EL1 tag bits in siginfo" patch, the address > > > that is passe

Re: [PATCH v2] brcmfmac: add support for CQM RSSI notifications

2021-01-15 Thread Arend van Spriel
On 1/15/2021 3:51 PM, Andrew Zaborowski wrote: On Fri, 15 Jan 2021 at 15:12, Arend Van Spriel wrote:> + Johannes - netdevs On 1/14/2021 5:36 PM, 'Alvin Šipraga' via BRCM80211-DEV-LIST,PDL wrote: Add support for CQM RSSI measurement reporting and advertise the NL80211_EXT_FEATURE_CQM_RSSI_LIST

Re: [PATCH v2 14/14] KVM: SVM: Skip SEV cache flush if no ASIDs have been used

2021-01-15 Thread Tom Lendacky
On 1/13/21 6:37 PM, Sean Christopherson wrote: Skip SEV's expensive WBINVD and DF_FLUSH if there are no SEV ASIDs waiting to be reclaimed, e.g. if SEV was never used. This "fixes" an issue where the DF_FLUSH fails during hardware teardown if the original SEV_INIT failed. Ideally, SEV wouldn't b

<    3   4   5   6   7   8   9   10   11   12   >