[PATCH v3 0/5] update kconfig parsing

2021-01-02 Thread Nicolai Fischer
This series updates the parsing of Kconfig files within checkpatch.pl to the current state, as discussed previously. Third iteration fixes patch 3 and adds one new patch. Patch 5 adds a new waring regarding the indentation of a Kconfig block Nicolai Fischer (5): checkpatch: kconfig: replace '-

[PATCH v3 4/5] checkpatch: kconfig: clarify warning for paragraph length

2021-01-02 Thread Nicolai Fischer
Currently checkpatch displays a warning if it detects a help text of a Kconfig option which is too short. However the warning does not contain any further information. This adds the expected and currently detected number of lines to the warning, which makes it more obvious why checkpatch is warning

[PATCH v3 2/5] checkpatch: kconfig: add missing types to regex

2021-01-02 Thread Nicolai Fischer
Kconfig parsing does not recognise all type attributes. This adds the missing 'int', 'string' and 'hex' types. Co-developed-by: Johannes Czekay Signed-off-by: Johannes Czekay Signed-off-by: Nicolai Fischer --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH v3 5/5] checkpatch: kconfig: enforce block indentation

2021-01-02 Thread Nicolai Fischer
Adds a new warning to checkpatch in case a new Kconfig block is not indented one sigle tab more than the keyword which starts it. Co-developed-by: Johannes Czekay Signed-off-by: Johannes Czekay Signed-off-by: Nicolai Fischer --- scripts/checkpatch.pl | 13 +++-- 1 file changed, 11 inse

[PATCH v3 3/5] checkpatch: kconfig: enforce help text indentation

2021-01-02 Thread Nicolai Fischer
Adds a new warning in case the indentation level of the first line of a Kconfig help message is not at least two spaces higher than the keyword itself. Blank lines between the message and the help keyword are ignored. Co-developed-by: Johannes Czekay Signed-off-by: Johannes Czekay Signed-off-by:

[PATCH v3 1/5] checkpatch: kconfig: replace '---help---' with 'help'

2021-01-02 Thread Nicolai Fischer
All '---help---' lines have been replaced by just 'help'. Therefore it is no longer necessary to include '---' in the regex. Co-developed-by: Johannes Czekay Signed-off-by: Johannes Czekay Signed-off-by: Nicolai Fischer Acked-by: Joe Perches --- scripts/checkpatch.pl | 2 +- 1 file changed, 1

Greetings

2021-01-02 Thread Stephen
Greetings I was searching through a local business directory when I found your profile. I am Soliciting On-Behalf of my private client who is interested in given out big loans to high profile individuals who are interested in a serious business investment or has a valid business, investment or

Re: [ANNOUNCE] [CFP] Call for Sessions - linux.conf.au Online 2021 Kernel Miniconf

2021-01-02 Thread Andrew Donnellan
On 30/11/20 1:45 pm, Andrew Donnellan wrote: LCA2021 Kernel Miniconf - Online - 2021-01-23 - LCA Kernel Miniconf submissions now open! (Ever wanted to present at LCA, but couldn't justify flying to Australia? Well, 2021 is your chance - we're going o

possible deadlock in lock_timer_base

2021-01-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d7a03a44 Add linux-next specific files for 20201223 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=155fb7b750 kernel config: https://syzkaller.appspot.com/x/.config?x=ea251547cbb170c5 dashboard

KMSAN: uninit-value in xfrm_user_rcv_msg_compat

2021-01-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:73d62e81 kmsan: random: prevent boot-time reports in _mix_.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=17e7a0eb50 kernel config: https://syzkaller.appspot.co

Re: [PATCH] PCI:tegra:Correct typo for PCIe endpoint mode in Tegra194

2021-01-02 Thread Vidya Sagar
Thanks for the patch. Acked-by: Vidya Sagar On 12/31/2020 8:55 AM, Wesley Sheng wrote: External email: Use caution opening links or attachments In config PCIE_TEGRA194_EP the mode incorrectly referred to host mode. Signed-off-by: Wesley Sheng --- drivers/pci/controller/dwc/Kconfig | 2 +-

[PATCH] kasan: fix incorrect arguments passing in kasan_add_zero_shadow

2021-01-02 Thread Lecopzer Chen
kasan_remove_zero_shadow() shall use original virtual address, start and size, instead of shadow address. Fixes: 0207df4fa1a86 ("kernel/memremap, kasan: make ZONE_DEVICE with work with KASAN") Signed-off-by: Lecopzer Chen --- mm/kasan/init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(

Re: Kconfig, DEFAULT_NETSCH, and shooting yourself in the foot..

2021-01-02 Thread Masahiro Yamada
On Sun, Jan 3, 2021 at 5:14 AM Valdis Klētnieks wrote: > > Consider the following own goal I just discovered I scored: > > [~] zgrep -i fq_codel /proc/config.gz > CONFIG_NET_SCH_FQ_CODEL=m > CONFIG_DEFAULT_FQ_CODEL=y > CONFIG_DEFAULT_NET_SCH="fq_codel" > > Obviously, fq_codel didn't get set as the

Re: Re: [PATCH] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-02 Thread dinghao . liu
> On 2021/1/3 12:08, dinghao@zju.edu.cn wrote: > >> Hi, > >> > >> On 2021/1/2 17:50, Dinghao Liu wrote: > >>> When irq_domain_get_irq_data() or irqd_cfg() fails > >>> meanwhile i == 0, data allocated by kzalloc() has not > >>> been freed before returning, which leads to memleak. > >>> > >>> Fix

drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c:1349:1: warning: stack frame size of 1040 bytes in function 'gf100_gr_trap_intr'

2021-01-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3516bd729358a2a9b090c1905bd2a3fa926e24c6 commit: 894fa235eb4ca0bfa692dbe4932c2f940cdc8c1e powerpc: inline iomap accessors date: 4 weeks ago config: powerpc64-randconfig-r031-20210103 (attached as .config) c

Re: [PATCH 1/4] ARM: dts: qcom: msm8974: add gpu support

2021-01-02 Thread Alexey Minnekhanov
Tested these patches on Samsung Galaxy S5 along with other patches that add panel driver and enable vram carve-out option on this device. Tested-by: Alexey Minnekhanov On 12/30/20 6:51 PM, Iskren Chernev wrote: From: Brian Masney Add support for the a3xx GPU Signed-off-by: Brian Masney --

Re: [PATCH 1/3] dt-bindings: input: cros-ec-keyb: Add a new property

2021-01-02 Thread Philip Chen
Hi Dmitry, I have one more question below. Could you take a look? On Sat, Jan 2, 2021 at 8:53 PM Philip Chen wrote: > > Hi Dmitry, > > I see. > I'll update these patch sets shortly based on your suggestion. > Thanks. > > On Sat, Jan 2, 2021 at 1:04 PM Dmitry Torokhov > wrote: > > > > On Sat, Ja

Re: [PATCH 1/2] drm/msm: Call msm_init_vram before binding the gpu

2021-01-02 Thread Alexey Minnekhanov
Tested these patches on Samsung Galaxy S5 along with other patches that add panel driver and enable GPU support on this device. Tested-by: Alexey Minnekhanov On 12/30/20 6:29 PM, Iskren Chernev wrote: From: Craig Tatlor vram.size is needed when binding a gpu without an iommu and is defined

Re: [PATCH 4/4] ARM: dts: qcom: msm8974-klte: Mark essential regulators

2021-01-02 Thread Alexey Minnekhanov
This indeed fixes device freeze+reboot issue when display powers off. Tested-by: Alexey Minnekhanov On 12/30/20 6:51 PM, Iskren Chernev wrote: s1 and l12 regulators are used for the memory and cache on the Samsung S5 (klte). If they are turned off the phone shuts down. So mark them as always-o

Re: [PATCH 2/2] drm/panel: simple: add samsung,s6e3fa2 panel

2021-01-02 Thread Alexey Minnekhanov
Tested this on Samsung Galaxy S5 along with other patches that enable GPU support on this device. Tested-by: Alexey Minnekhanov On 12/30/20 6:17 PM, Iskren Chernev wrote: From: Samuel Pascua This panel is used on the Samsung Galaxy S5 (klte). Signed-off-by: Samuel Pascua --- drivers/gpu

Re: [PATCH] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-02 Thread Lu Baolu
On 2021/1/3 12:08, dinghao@zju.edu.cn wrote: Hi, On 2021/1/2 17:50, Dinghao Liu wrote: When irq_domain_get_irq_data() or irqd_cfg() fails meanwhile i == 0, data allocated by kzalloc() has not been freed before returning, which leads to memleak. Fixes: b106ee63abccb ("irq_remapping/vt-d: En

Re: [PATCH 1/3] dt-bindings: input: cros-ec-keyb: Add a new property

2021-01-02 Thread Philip Chen
Hi Dmitry, I see. I'll update these patch sets shortly based on your suggestion. Thanks. On Sat, Jan 2, 2021 at 1:04 PM Dmitry Torokhov wrote: > > On Sat, Jan 02, 2021 at 11:39:34AM -0800, Philip Chen wrote: > > Hi Dmitry, > > > > Thanks for reviewing my patch over the holiday season. > > Please

kernel/bpf/verifier.c:9689:12: warning: stack frame size of 2128 bytes in function 'resolve_pseudo_ldimm64'

2021-01-02 Thread kernel test robot
Hi Hao, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3516bd729358a2a9b090c1905bd2a3fa926e24c6 commit: eaa6bcb71ef6ed3dc18fc525ee7e293b06b4882b bpf: Introduce bpf_per_cpu_ptr() date: 3 months ago config: powerpc

Re: Re: [PATCH] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-02 Thread dinghao . liu
> Hi, > > On 2021/1/2 17:50, Dinghao Liu wrote: > > When irq_domain_get_irq_data() or irqd_cfg() fails > > meanwhile i == 0, data allocated by kzalloc() has not > > been freed before returning, which leads to memleak. > > > > Fixes: b106ee63abccb ("irq_remapping/vt-d: Enhance Intel IR driver to

[PATCH 31/31] PM / devfreq: convert to devm_pm_opp_register_notifier and remove unused API

2021-01-02 Thread Yangtao Li
Use devm_pm_opp_* API to simplify code. Signed-off-by: Yangtao Li --- drivers/devfreq/devfreq.c | 66 +-- include/linux/devfreq.h | 23 -- 2 files changed, 1 insertion(+), 88 deletions(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq

[PATCH 29/31] PM / devfreq: imx-bus: convert to use devm_pm_opp_* API

2021-01-02 Thread Yangtao Li
Use devm_pm_opp_* API to simplify code. Signed-off-by: Yangtao Li --- drivers/devfreq/imx-bus.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/devfreq/imx-bus.c b/drivers/devfreq/imx-bus.c index 4f38455ad742..ff26ef049b1b 100644 --- a/drivers/devfreq/

[PATCH 30/31] PM / devfreq: exynos: convert to use devm_pm_opp_* API

2021-01-02 Thread Yangtao Li
Use devm_pm_opp_* API to simplify code, and remove opp_table from exynos_bus. Signed-off-by: Yangtao Li --- drivers/devfreq/exynos-bus.c | 42 1 file changed, 9 insertions(+), 33 deletions(-) diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos

[PATCH 26/31] PM / devfreq: tegra30: convert to use devm_pm_opp_* API

2021-01-02 Thread Yangtao Li
Use devm_pm_opp_* API to simplify code, and remove opp_table from tegra_devfreq. Signed-off-by: Yangtao Li --- drivers/devfreq/tegra30-devfreq.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30

[PATCH 28/31] PM / devfreq: imx8m-ddrc: convert to use devm_pm_opp_* API

2021-01-02 Thread Yangtao Li
Use devm_pm_opp_* API to simplify code. Signed-off-by: Yangtao Li --- drivers/devfreq/imx8m-ddrc.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/devfreq/imx8m-ddrc.c b/drivers/devfreq/imx8m-ddrc.c index bc82d3653bff..9383d6e5538b 100644 --- a/driver

[PATCH 25/31] memory: tegra30: convert to use devm_pm_opp_* API

2021-01-02 Thread Yangtao Li
Use devm_pm_opp_* API to simplify code. Signed-off-by: Yangtao Li --- drivers/memory/tegra/tegra30-emc.c | 29 + 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/drivers/memory/tegra/tegra30-emc.c b/drivers/memory/tegra/tegra30-emc.c index 44ac155936aa.

[PATCH 27/31] PM / devfreq: rk3399_dmc: convert to use devm_pm_opp_* API

2021-01-02 Thread Yangtao Li
Use devm_pm_opp_* API to simplify code. Since devres release can guarantee the order, let's remove devm_devfreq_unregister_opp_notifier(). Signed-off-by: Yangtao Li --- drivers/devfreq/rk3399_dmc.c | 22 +++--- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/driver

ptp_ines.c:undefined reference to `devm_platform_ioremap_resource'

2021-01-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3516bd729358a2a9b090c1905bd2a3fa926e24c6 commit: 00b5aac59966ec3d608dc150aba552121e7de4f0 ptp: ptp_ines: convert to devm_platform_ioremap_resource date: 8 months ago config: s390-randconfig-r021-20210103 (

Re: [PATCH 1/4] dt-bindings: mfd: qcom,qca639x: add binding for QCA639x defvice

2021-01-02 Thread Dmitry Baryshkov
Hello, On Fri, 1 Jan 2021 at 01:50, Rob Herring wrote: > > On Sun, Dec 20, 2020 at 07:58:42PM +0300, Dmitry Baryshkov wrote: > > Qualcomm QCA639x is a family of WiFi + Bluetooth SoCs, with BT part > > being controlled through the UART and WiFi being present on PCIe bus. > > Both blocks share comm

[PATCH fixes v3] platform/x86: ideapad-laptop: Disable touchpad_switch for ELAN0634

2021-01-02 Thread Jiaxun Yang
Newer ideapads (e.g.: Yoga 14s, 720S 14) come with ELAN0634 touchpad do not use EC to switch touchpad. Reading VPCCMD_R_TOUCHPAD will return zero thus touchpad may be blocked unexpectedly. Writing VPCCMD_W_TOUCHPAD may cause a spurious key press. Add has_touchpad_switch to workaround these machin

Re: [PATCH v4 5/7] power: reset: Add poweroff driver for ATC260x PMICs

2021-01-02 Thread Sebastian Reichel
Hi, On Tue, Dec 29, 2020 at 07:31:20PM +0200, Cristian Ciocaltea wrote: > This driver provides poweroff and reboot support for a system through > the ATC2603C and ATC2609A chip variants of the Actions Semi ATC260x > family of PMICs. > > Signed-off-by: Cristian Ciocaltea > --- > Changes in v4: >

[PATCH] x86/entry: Remove deprecated do_IRQ declaration

2021-01-02 Thread Hao Lee
do_IRQ has been replaced by common_interrupt in commit fa5e5c409213 ("x86/entry: Use idtentry for interrupts") Remove its declaration. Signed-off-by: Hao Lee --- arch/x86/include/asm/irq.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq

[PATCH fixes v2] platform/x86: ideapad-laptop: Disable touchpad_switch for ELAN0634

2021-01-02 Thread Jiaxun Yang
Newer ideapads (e.g.: Yoga 14s, 720S 14) come with ELAN0634 touchpad do not use EC to switch touchpad. Reading VPCCMD_R_TOUCHPAD will return zero thus touchpad may be blocked unexpectedly. Writing VPCCMD_W_TOUCHPAD may cause a spurious key press. Add has_touchpad_switch to workaround these machin

[PATCH] cgroup: Remove unnecessary call to strstrip()

2021-01-02 Thread Hao Lee
The string buf will be stripped in cgroup_procs_write_start() before it is converted to int, so remove this unnecessary call to strstrip(). Signed-off-by: Hao Lee --- kernel/cgroup/cgroup.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index

Re: [PATCH 1/4] net: sfp: add workaround for Realtek RTL8672 and RTL9601C chips

2021-01-02 Thread Pali Rohár
Hello! On Sunday 03 January 2021 03:25:23 Thomas Schreiber wrote: > Hi Pali, > I have a CarlitoxxPro module and I reported an issue about RX_LOS pin > to the manufacturer. > It looks to me that the module asserts "inverted LOS" through EEPROM > but does not implement it. So, it is broken :-( But

Re: [PATCH] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-02 Thread Lu Baolu
Hi, On 2021/1/2 17:50, Dinghao Liu wrote: When irq_domain_get_irq_data() or irqd_cfg() fails meanwhile i == 0, data allocated by kzalloc() has not been freed before returning, which leads to memleak. Fixes: b106ee63abccb ("irq_remapping/vt-d: Enhance Intel IR driver to support hierarchical irq

Re: [PATCH 1/4] net: sfp: add workaround for Realtek RTL8672 and RTL9601C chips

2021-01-02 Thread Thomas Schreiber
Hi Pali, I have a CarlitoxxPro module and I reported an issue about RX_LOS pin to the manufacturer. It looks to me that the module asserts "inverted LOS" through EEPROM but does not implement it. Consequently, the SFP state machine of my host router stays in check los state and link is not set up f

Re: [PATCH 1/7] selftests: gpio: rework and simplify test implementation

2021-01-02 Thread Kent Gibson
On Sun, Jan 03, 2021 at 12:20:26AM +0200, Andy Shevchenko wrote: > On Sat, Jan 2, 2021 at 4:32 AM Kent Gibson wrote: > > > > The GPIO mockup selftests are overly complicated with separate > > implementations of the tests for sysfs and cdev uAPI, and with the cdev > > implementation being dependent

Re: [PATCH 1/2] net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs

2021-01-02 Thread Martin Blumenstingl
Hi Andrew, On Sun, Jan 3, 2021 at 3:09 AM Andrew Lunn wrote: > > On Sun, Jan 03, 2021 at 02:25:43AM +0100, Martin Blumenstingl wrote: > > Enable GSWIP_MII_CFG_EN also for internal PHYs to make traffic flow. > > Without this the PHY link is detected properly and ethtool statistics > > for TX are i

Re: [PATCH 1/2] net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs

2021-01-02 Thread Andrew Lunn
On Sun, Jan 03, 2021 at 02:25:43AM +0100, Martin Blumenstingl wrote: > Enable GSWIP_MII_CFG_EN also for internal PHYs to make traffic flow. > Without this the PHY link is detected properly and ethtool statistics > for TX are increasing but there's no RX traffic coming in. > > Fixes: 14fceff4771e51

Re: [PATCH v6 3/8] power: supply: max8997_charger: Set CHARGER current limit

2021-01-02 Thread Sebastian Reichel
Hi, On Wed, Dec 30, 2020 at 08:52:15PM +, Timon Baetz wrote: > Register for extcon notification and set charging current depending on > the detected cable type. Current values are taken from vendor kernel, > where most charger types end up setting 650mA [0]. > > Also enable and disable the CH

drivers/net/wireless/intel/iwlwifi/queue/tx.c:310:18: warning: result of comparison of constant 262140 with expression of type 'u16' (aka 'unsigned short') is always false

2021-01-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3516bd729358a2a9b090c1905bd2a3fa926e24c6 commit: 0cd1ad2d7fd41e0de4969fd1dd0aa846c99830d1 iwlwifi: move all bus-independent TX functions to common code date: 3 months ago config: powerpc-randconfig-r001-20

Re: [PATCH 2/2] net: dsa: lantiq_gswip: Fix GSWIP_MII_CFG(p) register access

2021-01-02 Thread Hauke Mehrtens
On 1/3/21 2:25 AM, Martin Blumenstingl wrote: There is one GSWIP_MII_CFG register for each switch-port except the CPU port. The register offset for the first port is 0x0, 0x02 for the second, 0x04 for the third and so on. Update the driver to not only restrict the GSWIP_MII_CFG registers to port

Re: [PATCH 1/2] net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs

2021-01-02 Thread Hauke Mehrtens
On 1/3/21 2:25 AM, Martin Blumenstingl wrote: Enable GSWIP_MII_CFG_EN also for internal PHYs to make traffic flow. Without this the PHY link is detected properly and ethtool statistics for TX are increasing but there's no RX traffic coming in. Fixes: 14fceff4771e51 ("net: dsa: Add Lantiq / Intel

Re: [PATCH] drm/msm: Fix MSM_INFO_GET_IOVA with carveout

2021-01-02 Thread Konrad Dybcio
Kind reminder that MSM8974, 8994, 8992 and friends are held back by the lack of IOMMU support upstream. There has been an attempt back in 2014(!) [1], but it was either overlooked or forgotten about ever since. I'd be more than happy to see someone look into this, as I have some other bits (almo

Re: [PATCH v7 2/2] power: supply: bq256xx: Introduce the BQ256XX charger driver

2021-01-02 Thread Sebastian Reichel
Hi Ricardo, On Wed, Dec 30, 2020 at 05:01:16PM -0600, Ricardo Rivera-Matos wrote: > The BQ256XX family of devices are highly integrated buck chargers > for single cell batteries. > > Signed-off-by: Ricardo Rivera-Matos > > v5 - adds power_supply_put_battery_info() and devm_add_action_or_rest()

[PATCH 1/2] net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs

2021-01-02 Thread Martin Blumenstingl
Enable GSWIP_MII_CFG_EN also for internal PHYs to make traffic flow. Without this the PHY link is detected properly and ethtool statistics for TX are increasing but there's no RX traffic coming in. Fixes: 14fceff4771e51 ("net: dsa: Add Lantiq / Intel DSA driver for vrx200") Cc: sta...@vger.kernel.

[PATCH 2/2] net: dsa: lantiq_gswip: Fix GSWIP_MII_CFG(p) register access

2021-01-02 Thread Martin Blumenstingl
There is one GSWIP_MII_CFG register for each switch-port except the CPU port. The register offset for the first port is 0x0, 0x02 for the second, 0x04 for the third and so on. Update the driver to not only restrict the GSWIP_MII_CFG registers to ports 0, 1 and 5. Handle ports 0..5 instead but skip

[PATCH 0/2] net: dsa: lantiq_gswip: two fixes for -net/-stable

2021-01-02 Thread Martin Blumenstingl
While testing the lantiq_gswip driver in OpenWrt at least one board had a non-working Ethernet port connected to an internal 100Mbit/s PHY22F GPHY. The problem which could be observed: - the PHY would detect the link just fine - ethtool stats would see the TX counter rise - the RX counter in ethtoo

[PATCH v4 net RESEND] net/sonic: Fix some resource leaks in error handling paths

2021-01-02 Thread Finn Thain
From: Christophe JAILLET A call to dma_alloc_coherent() is wrapped by sonic_alloc_descriptors(). This is correctly freed in the remove function, but not in the error handling path of the probe function. Fix this by adding the missing dma_free_coherent() call. While at it, rename a label in orde

Re: [PATCH V2] drm/vkms: Decouple config data for configfs

2021-01-02 Thread Melissa Wen
Hi Sumera, Thanks for your patch. Please see some comments below. On 01/02, Sumera Priyadarsini wrote: > Currently, data for the device instance is held by vkms_device. > Add a separate type, vkms_config to contain configuration details > for the device and various modes to be later used by confi

Re: Linux 5.11-rc1

2021-01-02 Thread Ilkka Prusi
PATH for the root on Debian is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Note that /sbin is now just a symlink to /usr/sbin on Debian since 10 (Buster) as per FHS[1][2]. [1] https://wiki.linuxfoundation.org/lsb/fhs [2] https://arstechnica.com/information-technology/2019/09

Re: [PATCH RESEND] ide/falconide: Fix module unload

2021-01-02 Thread Finn Thain
Hi All, This patch was sent in September and subsequently resent in November. I've since learned that the maintainer has been ill. What's the best way forward for fixes like this? Regards, Finn On Fri, 20 Nov 2020, Finn Thain wrote: > Unloading the falconide module results in a crash: > > Un

INFO: task hung in virtio_cleanup

2021-01-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:cb4d9b52 usb: dwc3: drd: Improve dwc3_get_extcon() style git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=131bf58f50 kernel config:

: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 's64' {aka 'long long int'}

2021-01-02 Thread kernel test robot
Hi Greg, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3516bd729358a2a9b090c1905bd2a3fa926e24c6 commit: 239a5791ffd5559f51815df442c4dbbe7fc21ade dynamic_debug: allow to work if debugfs is disabled date: 11 month

drivers/rtc/rtc-pcf8523.c:35: warning: "REG_OFFSET" redefined

2021-01-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: eda809aef53426d044b519405d25d9da55319b76 commit: 7fd70c65faacd39628ba5f670be6490010c8132f ARM: irqstat: Get rid of duplicated declaration date: 6 weeks ago config: arm-randconfig-p001-20210103 (attached as

Re: possible deadlock in process_measurement (2)

2021-01-02 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 15a8d68e9dc23dc9def4bd7e9563db60f4f86580 Author: Wei Yang Date: Tue Oct 13 23:56:33 2020 + mm/hugetlb: a page from buddy is not on any list bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13612350d0 start commit:

Re: BTFIDS: FAILED unresolved symbol udp6_sock

2021-01-02 Thread Jiri Olsa
On Sat, Jan 02, 2021 at 02:25:34PM -0800, Andrii Nakryiko wrote: SNIP > > > > so your .config has > > CONFIG_CRYPTO_DEV_BCM_SPU=y > > > > and that defines 'struct device_private' which > > clashes with the same struct defined in drivers/base/base.h > > > > so several networking structs will be

Re: [PATCH] xfs: Wake CIL push waiters more reliably

2021-01-02 Thread Dave Chinner
On Sat, Jan 02, 2021 at 08:12:56PM +0100, Donald Buczek wrote: > On 31.12.20 22:59, Dave Chinner wrote: > > On Thu, Dec 31, 2020 at 12:48:56PM +0100, Donald Buczek wrote: > > > On 30.12.20 23:16, Dave Chinner wrote: > > One could argue that, but one should also understand the design > > constraint

Greetings My Dear Friend,

2021-01-02 Thread ABDERAZACK ZEBDANI
Greetings My Dear Friend, Before I introduce myself, I wish to inform you that this letter is not a hoax mail and I urge you to treat it serious.This letter must come to you as a big surprise, but I believe it is only a day that people meet and become great friends and business partners. Please I

Re: BTFIDS: FAILED unresolved symbol udp6_sock

2021-01-02 Thread Andrii Nakryiko
On Wed, Dec 30, 2020 at 5:28 AM Jiri Olsa wrote: > > On Wed, Dec 30, 2020 at 10:03:37AM +0100, Jiri Olsa wrote: > > On Tue, Dec 29, 2020 at 11:28:35PM +, Qais Yousef wrote: > > > Hi Jiri > > > > > > On 12/29/20 18:34, Jiri Olsa wrote: > > > > On Tue, Dec 29, 2020 at 03:13:52PM +, Qais Yous

Re: [PATCH 1/7] selftests: gpio: rework and simplify test implementation

2021-01-02 Thread Andy Shevchenko
On Sat, Jan 2, 2021 at 4:32 AM Kent Gibson wrote: > > The GPIO mockup selftests are overly complicated with separate > implementations of the tests for sysfs and cdev uAPI, and with the cdev > implementation being dependent on tools/gpio and libmount. > > Rework the test implementation to provide

Re: [PATCH v2 1/2] hwrng: iproc-rng200: Fix disable of the block.

2021-01-02 Thread Herbert Xu
On Fri, Dec 18, 2020 at 11:57:07AM +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > When trying to disable the block we bitwise or the control > register with value zero. This is confusing as using bitwise or with > value zero doesn't have any effect at all. Drop this as we alre

Re: [PATCH v2 2/2] hwrng: iproc-rng200: Move enable/disable in separate function

2021-01-02 Thread Herbert Xu
On Fri, Dec 18, 2020 at 11:57:08AM +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > We are calling the same code for enable and disable the block in various > parts of the driver. Put that code into a new function to reduce code > duplication. > > Signed-off-by: Matthias Brugge

Re: [PATCH] hwrng: ingenic - Fix a resource leak in an error handling path

2021-01-02 Thread Herbert Xu
On Sat, Dec 19, 2020 at 08:52:07AM +0100, Christophe JAILLET wrote: > In case of error, we should call 'clk_disable_unprepare()' to undo a > previous 'clk_prepare_enable()' call, as already done in the remove > function. > > Fixes: 406346d22278 ("hwrng: ingenic - Add hardware TRNG for Ingenic X183

Re: [PATCH v4 0/8] crypto: sun4i-ss: prevent always fallback for ciphers

2021-01-02 Thread Herbert Xu
On Mon, Dec 14, 2020 at 08:02:24PM +, Corentin Labbe wrote: > Hello > > For help testing on "crypto: sun4i-ss - Fix sparse endianness markers", > I have added "stats" support like other allwinner's crypto drivers. > Seeing stats showed a clear problem, the ciphers function were not used > at a

[PATCH 17/22] perf daemon: Add man page for perf-daemon

2021-01-02 Thread Jiri Olsa
Adding man page for perf-daemon usage. Signed-off-by: Jiri Olsa --- tools/perf/Documentation/perf-config.txt | 14 ++ tools/perf/Documentation/perf-daemon.txt | 187 +++ 2 files changed, 201 insertions(+) diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/D

[PATCH 22/22] perf test: Add daemon ping command test

2021-01-02 Thread Jiri Olsa
Adding test for perf daemon ping command. The tests verifies the ping command gets proper answer from sessions. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 40 1 file changed, 40 insertions(+) diff --git a/tools/perf/tests/shell/daemon.sh b/t

[PATCH 19/22] perf test: Add daemon reconfig test

2021-01-02 Thread Jiri Olsa
Adding test for daemon reconfiguration. The test changes the configuration file and checks that the session is changed properly. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 70 1 file changed, 70 insertions(+) diff --git a/tools/perf/tests/sh

[PATCH 21/22] perf test: Add daemon signal command test

2021-01-02 Thread Jiri Olsa
Adding test for perf daemon signal command. The test sends a signal to configured sessions and verifies the perf data files were generated accordingly. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 40 1 file changed, 40 insertions(+) diff --gi

[PATCH 18/22] perf test: Add daemon list command test

2021-01-02 Thread Jiri Olsa
Adding test for basic perf daemon listing via the CSV output mode (-x option). Checking that configured sessions display expected values. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 184 +++ 1 file changed, 184 insertions(+) create mode 100755 to

[PATCH 20/22] perf test: Add daemon stop command test

2021-01-02 Thread Jiri Olsa
Adding test for perf daemon stop command. The test stops the daemon and verifies all the configured sessions are properly terminated. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 54 1 file changed, 54 insertions(+) diff --git a/tools/perf/tes

[PATCH 01/22] perf tools: Make perf_config_from_file static

2021-01-02 Thread Jiri Olsa
It's not used outside config.c object. Signed-off-by: Jiri Olsa --- tools/perf/util/config.c | 2 +- tools/perf/util/config.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index 6969f82843ee..20be0504fb95 100644 --- a/too

[PATCH 16/22] perf daemon: Add up time for daemon/session list

2021-01-02 Thread Jiri Olsa
Display up time for both daemon and sessions. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* --overwrite --switch-output -a Starting the daemon: # perf daem

[PATCH 12/22] perf daemon: Allow only one daemon over base directory

2021-01-02 Thread Jiri Olsa
Add 'lock' file under daemon base and flock it, so only one perf daemon can run on top of it. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* --overwrite --switc

[PATCH 13/22] perf daemon: Set control fifo for session

2021-01-02 Thread Jiri Olsa
Setup control fifos for session and add --control option to session arguments. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* --overwrite --switch-output -a St

[PATCH 15/22] perf daemon: Use control to stop session

2021-01-02 Thread Jiri Olsa
Using 'stop' control command to stop perf record session. If that fails, falling back to current SIGTERM/SIGKILL pair. Signed-off-by: Jiri Olsa --- tools/perf/builtin-daemon.c | 56 ++--- 1 file changed, 46 insertions(+), 10 deletions(-) diff --git a/tools/perf/b

[PATCH 14/22] perf daemon: Add ping command

2021-01-02 Thread Jiri Olsa
Adding ping command to verify the perf record session is up and operational. It's used in following patches via test code to make sure perf record is ready to receive signals. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite

[PATCH 09/22] perf daemon: Add signalfd support

2021-01-02 Thread Jiri Olsa
Using signalfd fd for tracking SIGCHLD signals as notification for perf session termination. Suggested-by: Alexei Budankov Signed-off-by: Jiri Olsa --- tools/perf/builtin-daemon.c | 142 ++-- 1 file changed, 137 insertions(+), 5 deletions(-) diff --git a/tools/p

[PATCH 07/22] perf daemon: Add daemon command

2021-01-02 Thread Jiri Olsa
Adding daemon command that allows to run record sessions on background. Each session represents one perf record process and is configured in config file. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [

[PATCH 08/22] perf daemon: Add config file change check

2021-01-02 Thread Jiri Olsa
Adding support to detect daemon's config file changes and re-read the configuration when that happens. Using inotify file descriptor pluged into the main fdarray object for polling. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --over

[PATCH 10/22] perf daemon: Add signal command

2021-01-02 Thread Jiri Olsa
Allow perf daemon to send SIGUSR2 to all running sessions or just to a specific session. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* --overwrite --switch-out

[PATCH 11/22] perf daemon: Add stop command

2021-01-02 Thread Jiri Olsa
Add 'perf daemon stop' command to stop daemon process and all running sessions. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* --overwrite --switch-output -a S

[PATCH 05/22] perf tools: Make perf_config_system global

2021-01-02 Thread Jiri Olsa
Making perf_config_system global, it will be used outside the config.c object in following patches. Signed-off-by: Jiri Olsa --- tools/perf/util/config.c | 2 +- tools/perf/util/config.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/config.c b/tools/perf/ut

[PATCH 04/22] perf tools: Add perf_home_perfconfig function

2021-01-02 Thread Jiri Olsa
Factor out the perf_home_perfconfig, that looks for .perfconfig in home directory including check for PERF_CONFIG_NOGLOBAL and for proper permission. Signed-off-by: Jiri Olsa --- tools/perf/util/config.c | 89 tools/perf/util/config.h | 1 + 2 files chan

[PATCH 06/22] perf tools: Make perf_config_global gobal

2021-01-02 Thread Jiri Olsa
Making perf_config_global global, it will be used outside the config.c object in following patches. Signed-off-by: Jiri Olsa --- tools/perf/util/config.c | 2 +- tools/perf/util/config.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/config.c b/tools/perf/ut

[PATCH 03/22] perf tools: Add debug_set_display_time function

2021-01-02 Thread Jiri Olsa
Allow to display time in perf debug output via new debug_set_display_time function. It will be used in perf daemon command to get verbose output into log file. The debug time format is: [2020-12-03 18:25:31.822152] affinity: SYS [2020-12-03 18:25:31.822164] mmap flush: 1 [2020-12-03 18:25:

[PATCH 02/22] perf tools: Add config set interface

2021-01-02 Thread Jiri Olsa
Add interface to load config set from custom file by using perf_config_set__load_file function. It will be used in perf daemon command to process custom config file. Signed-off-by: Jiri Olsa --- tools/perf/util/config.c | 28 +++- tools/perf/util/config.h | 3 +++ 2 fil

[PATCHv2 00/22] perf tools: Add daemon command

2021-01-02 Thread Jiri Olsa
hi, we were asked for possibility to be able run record sessions on background. This patchset adds support to configure and run record sessions on background via new 'perf daemon' command. Please check below the example on usage. The patchset is based on following control changes: https://lore

Re: [PATCH 3/4] crypto: Remove PicoXcell driver

2021-01-02 Thread Herbert Xu
On Thu, Dec 10, 2020 at 02:03:14PM -0600, Rob Herring wrote: > PicoXcell has had nothing but treewide cleanups for at least the last 8 > years and no signs of activity. The most recent activity is a yocto vendor > kernel based on v3.0 in 2015. > > Cc: Jamie Iles > Cc: Herbert Xu > Cc: "David S.

Re: [PATCH] MAINTAINERS: crypto: s5p-sss: drop Kamil Konieczny

2021-01-02 Thread Herbert Xu
On Mon, Dec 07, 2020 at 05:55:20PM +0100, Krzysztof Kozlowski wrote: > E-mails to Kamil Konieczny to his Samsung address bounce with 550 (User > unknown). Kamil no longer takes care about Samsung S5P SSS driver so > remove the invalid email address from: > - mailmap, > - bindings maintainer entr

Re: [PATCH] crypto: mediatek - remove obsolete driver

2021-01-02 Thread Herbert Xu
On Mon, Dec 07, 2020 at 03:58:42PM +0800, Vic Wu wrote: > The crypto mediatek driver has been replaced by the inside-secure > driver now. Remove this driver to avoid having duplicate drivers. > > Signed-off-by: Vic Wu > Acked-by: Ryder Lee > --- > drivers/crypto/Kconfig | 15 -

[PATCH 2/2] Bluetooth: hci_h5: Add support for binding RTL8723DS with device tree

2021-01-02 Thread John-Eric Kamps
RTL8723DS could be handled by btrtl-driver, so add ability to bind it using device tree. Signed-off-by: John-Eric Kamps --- drivers/bluetooth/hci_h5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c index 7be16a7f653b..fb9817f97d45 10

[PATCH 1/2] dt-bindings: net: bluetooth: Add rtl8723ds-bluetooth

2021-01-02 Thread John-Eric Kamps
Add binding documentation for bluetooth part of RTL8723DS Signed-off-by: John-Eric Kamps --- Documentation/devicetree/bindings/net/realtek-bluetooth.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml b/Docum

Re: [PATCH v5 3/5] crypto: expose elliptic curve parameters as Crypto APIs

2021-01-02 Thread Herbert Xu
On Thu, Dec 24, 2020 at 02:08:25PM +0800, Meng Yu wrote: > Move elliptic curves definition to 'include/crypto/ecc_curve_defs.h', > so all can use it, > > Signed-off-by: Meng Yu > Reviewed-by: Zaibo Xu > --- > crypto/ecc.c| 1 - > crypto/ecc.h| 37 +--

Re: [PATCH 1/6] drivers: crypto: qce: sha: Restore/save sha1_state/sha256_state with qce_sha_reqctx in export/import

2021-01-02 Thread Herbert Xu
On Fri, Dec 18, 2020 at 10:30:22PM -0500, Thara Gopinath wrote: > Export and import interfaces save and restore partial transformation > states. The partial states were being stored and restored in struct > sha1_state for sha1/hmac(sha1) transformations and sha256_state for > sha256/hmac(sha256) tr

  1   2   >