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

2020-09-13 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) produced this warning: mm/madvise.c: In function 'madvise_inject_error': mm/madvise.c:875:15: warning: unused variable 'zone' [-Wunused-variable] 875 | struct zone *zone; | ^~~~ Int

Re: [PATCH 2/3] KVM: SVM: Move svm_complete_interrupts() into svm_vcpu_run()

2020-09-13 Thread Wanpeng Li
On Sat, 12 Sep 2020 at 14:20, Paolo Bonzini wrote: > > On 09/09/20 10:47, Wanpeng Li wrote: > >> One more thing: > >> > >> VMX version does > >> > >> vmx_complete_interrupts(vmx); > >> if (is_guest_mode(vcpu)) > >> return EXIT_FASTPATH_NONE; > >> > >> and on SVM we

[PATCH] KVM: SVM: Analyze is_guest_mode() in svm_vcpu_run()

2020-09-13 Thread Wanpeng Li
From: Wanpeng Li Analyze is_guest_mode() in svm_vcpu_run() instead of svm_exit_handlers_fastpath() in conformity with VMX version. Suggested-by: Vitaly Kuznetsov Signed-off-by: Wanpeng Li --- arch/x86/kvm/svm/svm.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ar

Re: [PATCH v4 1/3] media: i2c: ov772x: Parse endpoint properties

2020-09-13 Thread Sakari Ailus
Hi Prabhakar, Thanks for the patchset. On Sun, Sep 13, 2020 at 07:42:45PM +0100, Lad Prabhakar wrote: > Parse endpoint properties using v4l2_fwnode_endpoint_alloc_parse() > to determine bus-type and store it locally in priv data. > > Also for backward compatibility with the existing DT where bus

Re: [PATCH v2 1/4] Input: ep93xx_keypad - Fix handling of platform_get_irq() error

2020-09-13 Thread Dmitry Torokhov
Hi Krzysztof, On Fri, Aug 28, 2020 at 04:57:41PM +0200, Krzysztof Kozlowski wrote: > platform_get_irq() returns -ERRNO on error. In such case comparison > to 0 would pass the check. platform_get_irq() is a bit of a mess. Historically we allowed defining interrupt resource with r->start == 0 and

Re: [PATCH v4 1/1] i2c: algo-pca: Reapply i2c bus settings after reset

2020-09-13 Thread Wolfram Sang
> I'm happy to route it to stable@ if you think it's worth it but I don't > think there's a specific Fixes: reference that can be used. The current > behavior appears to have been that way since before git (looks like we > noticed in 2014 but it's taken me 6 years to nag people into sending >

Re: [PATCH v1 1/1] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-09-13 Thread Michal Simek
Hi, +Arnd, On 14. 09. 20 7:12, muhammad.husaini.zulki...@intel.com wrote: > From: Muhammad Husaini Zulkifli > > Voltage switching sequence is needed to support UHS-1 interface > as Keem Bay EVM is using external voltage regulator to switch between > 1.8V and 3.3V. > > Signed-off-by: Muhammad Hu

drivers/net/hamradio/dmascc.c:1238:56: sparse: sparse: non size-preserving pointer to integer cast

2020-09-13 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 856deb866d16e29bd65952e0289066f6078af773 commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 10 months ago config: alpha-randconfig-s031-20200914 (attached as .config

Re: [PATCH 24/26] perf tools: Add buildid-list --store option

2020-09-13 Thread Namhyung Kim
On Mon, Sep 14, 2020 at 6:05 AM Jiri Olsa wrote: > > Adding buildid-list --store option to populate > .debug data with build id files. Hmm.. isn't it better to add it to the buildid-cache command? > > $ rm -rf ~/.debug/ > > $ perf buildid-list > 1805c738c8f3ec0f47b7ea09080c28f34d18a82b /us

Re: general protection fault in unlink_file_vma

2020-09-13 Thread linmiaohe
Tue, 08 Sep 2020 17:19:17 -0700 > syzbot found the following issue on: > > HEAD commit:59126901 Merge tag 'perf-tools-fixes-for-v5.9-2020-09-03' .. > git tree: upstream > console output: > https://syzkaller.appspot.com/x/log.txt?x=1166cb5d90 > kernel config: > https://syzkaller.ap

Re: [PATCH v3] Input: elants_i2c - Report resolution of ABS_MT_TOUCH_MAJOR by FW information.

2020-09-13 Thread Dmitry Torokhov
On Fri, Aug 28, 2020 at 10:19:55AM +0800, Johnny Chuang wrote: > This patch adds a new behavior to report touch major resolution > based on information provided by firmware. > > In initial process, driver acquires touch information from touch ic. > It contains one byte about the resolution value o

Re: [PATCH 02/26] perf: Introduce mmap3 version of mmap event

2020-09-13 Thread Stephane Eranian
On Sun, Sep 13, 2020 at 2:03 PM Jiri Olsa wrote: > > Add new version of mmap event. The MMAP3 record is an > augmented version of MMAP2, it adds build id value to > identify the exact binary object behind memory map: > > struct { > struct perf_event_header header; > > u32

Re: [RFC PATCH V3 13/21] mmc: sdhci: UHS-II support, skip signal_voltage_switch()

2020-09-13 Thread AKASHI Takahiro
Adrian, On Fri, Aug 21, 2020 at 05:09:01PM +0300, Adrian Hunter wrote: > On 10/07/20 2:11 pm, Ben Chuang wrote: > > From: AKASHI Takahiro > > > > sdhci_start_signal_voltage_switch() should be called only in UHS-I mode, > > and not for UHS-II mode. > > > > Signed-off-by: Ben Chuang > > Signed-o

Re: [PATCH -next] EDAC/aspeed: use module_platform_driver to simplify the code

2020-09-13 Thread Joel Stanley
On Mon, 14 Sep 2020 at 06:31, Liu Shixin wrote: > > module_platform_driver() makes the code simpler by eliminating > boilerplate code. > > Signed-off-by: Liu Shixin Reviewed-by: Joel Stanley > --- > drivers/edac/aspeed_edac.c | 18 +- > 1 file changed, 1 insertion(+), 17 delet

Re: [PATCH 2/2] crypto: caam - support tagged keys for skcipher algorithms

2020-09-13 Thread Richard Weinberger
On Thu, Jul 16, 2020 at 4:12 PM Richard Weinberger wrote: > > On Mon, Jul 13, 2020 at 12:09 AM Iuliana Prodan > wrote: > > > > Tagged keys are keys that contain metadata indicating what > > they are and how to handle them using tag_object API. > > > > Add support, for tagged keys, to skcipher al

Re: [RFC PATCH V3 15/21] mmc: sdhci: UHS-II support, modify set_power() to handle vdd2

2020-09-13 Thread Adrian Hunter
On 14/09/20 8:45 am, AKASHI Takahiro wrote: > Adrian, > > On Fri, Aug 21, 2020 at 05:11:18PM +0300, Adrian Hunter wrote: >> On 10/07/20 2:11 pm, Ben Chuang wrote: >>> From: AKASHI Takahiro >>> >>> VDD2 is used for powering UHS-II interface. >>> Modify sdhci_set_power_and_bus_voltage(), sdhci_set_

Re: [PATCH v6 0/3] SCMI System Power Support

2020-09-13 Thread Sudeep Holla
On Mon, 7 Sep 2020 18:46:54 +0100, Cristian Marussi wrote: > this series wants to add the core SCMI System Power support and related > events' handling logic: the protocol support itself is trivial and boils > down to some bare initializations and supporting one SCMI System Power > notification eve

Re: [PATCH v6 7/8] X.509: support OSCCA sm2-with-sm3 certificate verification

2020-09-13 Thread Tianjia Zhang
Hi Gilad, On 9/13/20 3:12 PM, Gilad Ben-Yossef wrote: Hi, On Thu, Sep 3, 2020 at 4:13 PM Tianjia Zhang wrote: The digital certificate format based on SM2 crypto algorithm as specified in GM/T 0015-2012. It was published by State Encryption Management Bureau, China. The method of generating

Re: [PATCH v2] drivers: input: Use single i2c_transfer transaction when using RM_CMD_BANK_SWITCH

2020-09-13 Thread Dmitry Torokhov
On Sun, Sep 13, 2020 at 11:04:48PM -0700, Furquan Shaikh wrote: > Hi Dmitry, > > On Tue, Sep 8, 2020 at 5:44 PM Dmitry Torokhov > wrote: > > > > Hi Furquan, > > > > On Thu, Aug 20, 2020 at 07:40:06PM -0700, Furquan Shaikh wrote: > > > On an AMD chromebook, where the same I2C bus is shared by both

Re: [PATCH] MAINTAINERS: mark linux-samsung-soc list non-moderated

2020-09-13 Thread Lukas Bulwahn
On Mon, 14 Sep 2020, Lukas Bulwahn wrote: > In fifteen entries mentioning linux-samsung-...@vger.kernel.org in > MAINTAINERS, seven entries mention the list being moderated for > non-subscribers and eight entries do not. Clearly only one can be right, > though. > > Joe Perches suggested that a

Re: [V9fs-developer] [PATCH RFC 4/4] 9p: fix race issue in fid contention.

2020-09-13 Thread Dominique Martinet
Dominique Martinet wrote on Mon, Sep 14, 2020: > Jianyong Wu wrote on Mon, Sep 14, 2020: > - Ideally base yourself of my 9p-test branch to have async clunk: > https://github.com/martinetd/linux/commits/9p-test > I've been promising to push it to next this week™ for a couple of weeks > but if somet

[PATCH -next] EDAC/aspeed: use module_platform_driver to simplify the code

2020-09-13 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/edac/aspeed_edac.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c index fbec28dc6

Re: [RFC v4 1/1] selftests/cpuidle: Add support for cpuidle latency measurement

2020-09-13 Thread Pratik Sampat
On 03/09/20 8:20 pm, Artem Bityutskiy wrote: On Thu, 2020-09-03 at 17:30 +0530, Pratik Sampat wrote: I certainly did not know about that the Intel architecture being aware of timers and pre-wakes the CPUs which makes the timer experiment observations void. Well, things depend on platform, it

[PATCH -next] scsi: use module_platform_driver to simplify the code

2020-09-13 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/scsi/jazz_esp.c | 14 +- drivers/scsi/mac_esp.c| 14 +- drivers/scsi/qlogicpti.c | 14 +- drivers/scsi/sni_53c710.c | 14 +

[PATCH -next] iio: adc: palmas_gpadc: use module_platform_driver to simplify the code

2020-09-13 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/iio/adc/palmas_gpadc.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/iio/adc/palmas_gpadc.c b/drivers/iio/adc/palmas_gpadc.c index 1c

[PATCH -next] pinctrl: sprd: use module_platform_driver to simplify the code

2020-09-13 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/pinctrl/sprd/pinctrl-sprd-sc9860.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd-sc9860.c b/drivers/pinctr

[PATCH -next] extcon: axp288: use module_platform_driver to simplify the code

2020-09-13 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/extcon/extcon-axp288.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index 52

Re: [PATCH 14/26] perf tools: Add mmap3 events to --show-mmap-events option

2020-09-13 Thread Namhyung Kim
On Mon, Sep 14, 2020 at 6:04 AM Jiri Olsa wrote: > > Displaying mmap3 events for --show-mmap-events option, > the build id is displayed within <> braces: > > $ perf script --show-mmap-events > kill 12148 13893.519014: PERF_RECORD_MMAP3 12148/12148: > <43938d0803c5e3130ea679cd569aaf44b98d9ae8>

Re: [RFC PATCH v2] PCI/portdrv: Only disable Bus Master on kexec reboot and connected PCI devices

2020-09-13 Thread Tiezhu Yang
On 09/14/2020 02:13 PM, Tiezhu Yang wrote: On 09/14/2020 12:06 PM, Lukas Wunner wrote: On Mon, Sep 14, 2020 at 04:29:10AM +0800, Tiezhu Yang wrote: --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -143,6 +144,28 @@ static void pcie_portdrv_remove(struct pci_dev *dev

Re: [PATCH 09/26] perf tools: Try load vmlinux from buildid database

2020-09-13 Thread Namhyung Kim
On Mon, Sep 14, 2020 at 6:04 AM Jiri Olsa wrote: > > Currently we don't check on kernel's vmlinux the same way as > we do for normal binaries, but we either look for kallsyms > file in build id database or check on known vmlinux locations > (plus some other optional paths). > > This patch adds the

Re: [PATCH net-next] drivers/net/wan/x25_asy: Remove an unnecessary x25_type_trans call

2020-09-13 Thread Xie He
On Sun, Sep 13, 2020 at 10:32 PM Martin Schiller wrote: > > Acked-by: Martin Schiller Thank you, Martin!

linux-next: build failure after merge of the v4l-dvb tree

2020-09-13 Thread Stephen Rothwell
Hi all, After merging the v4l-dvb tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_sdt_serv_get_desc_loop_len': include/linux/build_bug.h:16:51: error: negative width in bit-field '' 16 | #define BUIL

Re: [Cocci] [RFC PATCH] scripts: coccicheck: Improve error feedback when coccicheck fails

2020-09-13 Thread Julia Lawall
On Mon, 14 Sep 2020, Markus Elfring wrote: > … > > +++ b/scripts/coccicheck > > @@ -126,8 +126,14 @@ run_cmd_parmap() { > > if [ $VERBOSE -ne 0 ] ; then > > echo "Running ($NPROC in parallel): $@" > > fi > > - echo $@ >>$DEBUG_FILE > > - $@ 2>>$DEBUG_FILE > > + if [ "$D

Re: [PATCH 02/26] perf: Introduce mmap3 version of mmap event

2020-09-13 Thread Song Liu
On Sun, Sep 13, 2020 at 10:40 PM Namhyung Kim wrote: > > On Mon, Sep 14, 2020 at 6:03 AM Jiri Olsa wrote: > > > > Add new version of mmap event. The MMAP3 record is an > > augmented version of MMAP2, it adds build id value to > > identify the exact binary object behind memory map: > > > > struc

[PATCH v2] usb: gadget: bcm63xx_udc: fix up the error of undeclared usb_debug_root

2020-09-13 Thread Chunfeng Yun
Fix up the build error caused by undeclared usb_debug_root Cc: stable Fixes: a66ada4f241c ("usb: gadget: bcm63xx_udc: create debugfs directory under usb root") Reported-by: kernel test robot Signed-off-by: Chunfeng Yun --- v2: add a blank space after fixes change-id suggested by Greg --- driv

[PATCH] zstd: Fix decompression of large window archives on 32-bit platforms

2020-09-13 Thread Petr Malat
It seems some optimization has been removed from the code without removing the if condition which should activate it only on 64-bit platforms and as a result the code responsible for decompression with window larger than 8MB was disabled on 32-bit platforms. Signed-off-by: Petr Malat --- lib/zst

Re: [PATCH net v2] drivers/net/wan/hdlc_fr: Add needed_headroom for PVC devices

2020-09-13 Thread Xie He
On Sun, Sep 13, 2020 at 10:26 PM Krzysztof Hałasa wrote: > > Xie He writes: > > > The HDLC device is not actually prepending any header when it is used > > with this driver. When the PVC device has prepended its header and > > handed over the skb to the HDLC device, the HDLC device just hands it

Re: [PATCH] usb: gadget: bcm63xx_udc: fix up the error of undeclared usb_debug_root

2020-09-13 Thread Chunfeng Yun
On Mon, 2020-09-14 at 08:12 +0200, Greg Kroah-Hartman wrote: > On Mon, Sep 14, 2020 at 01:38:50PM +0800, Chunfeng Yun wrote: > > Fix up the build error caused by undeclared usb_debug_root > > > > Cc: stable > > Fixes: a66ada4f241c("usb: gadget: bcm63xx_udc: create debugfs directory > > under usb

Re: [PATCH v2] arm64/mm: Refactor {pgd, pud, pmd, pte}_ERROR()

2020-09-13 Thread Anshuman Khandual
On 09/14/2020 05:17 AM, Gavin Shan wrote: > The function __{pgd, pud, pmd, pte}_error() are introduced so that > they can be called by {pgd, pud, pmd, pte}_ERROR(). However, some > of the functions could never be called when the corresponding page > table level isn't enabled. For example, __{pud

Re: [RFC PATCH v2] PCI/portdrv: Only disable Bus Master on kexec reboot and connected PCI devices

2020-09-13 Thread Tiezhu Yang
On 09/14/2020 12:31 PM, Huacai Chen wrote: Hi, Tiezhu -- Original -- From: "Tiezhu Yang"; Date: Mon, Sep 14, 2020 04:29 AM To: "Bjorn Helgaas"; Cc: "Konstantin Khlebnikov"; "Khalid Aziz"; "Vivek Goyal"; "Lukas Wunner"; "oohall"; "rafael.j.wysocki"; "Xuefeng

[PATCH] media: flexcop-usb: remove needless check before usb_free_coherent()

2020-09-13 Thread Qinglang Miao
usb_free_coherent() is safe with NULL addr and this check is not required. Signed-off-by: Qinglang Miao --- drivers/media/usb/b2c2/flexcop-usb.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c

[PATCH] MAINTAINERS: mark linux-samsung-soc list non-moderated

2020-09-13 Thread Lukas Bulwahn
In fifteen entries mentioning linux-samsung-...@vger.kernel.org in MAINTAINERS, seven entries mention the list being moderated for non-subscribers and eight entries do not. Clearly only one can be right, though. Joe Perches suggested that all vger.kernel.org are not moderated for non-subscribers.

Re: [RFC PATCH v2] PCI/portdrv: Only disable Bus Master on kexec reboot and connected PCI devices

2020-09-13 Thread Tiezhu Yang
On 09/14/2020 12:06 PM, Lukas Wunner wrote: On Mon, Sep 14, 2020 at 04:29:10AM +0800, Tiezhu Yang wrote: --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -143,6 +144,28 @@ static void pcie_portdrv_remove(struct pci_dev *dev) } pcie_port_device_remove(dev

[PATCH -next] macintosh: windfarm: use for_each_child_of_node() macro

2020-09-13 Thread Qinglang Miao
Use for_each_child_of_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- drivers/macintosh/windfarm_smu_sat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/macintosh/windfarm_smu_sat.c b/drivers/macintosh/windfarm_smu_sat.c index cb75dc035..

[PATCH -next] mtd: spear_smi: use for_each_child_of_node() macro

2020-09-13 Thread Qinglang Miao
Use for_each_child_of_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- drivers/mtd/devices/spear_smi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index 79dcca164..2e0086238 1006

Re: [PATCH] usb: gadget: bcm63xx_udc: fix up the error of undeclared usb_debug_root

2020-09-13 Thread Greg Kroah-Hartman
On Mon, Sep 14, 2020 at 01:38:50PM +0800, Chunfeng Yun wrote: > Fix up the build error caused by undeclared usb_debug_root > > Cc: stable > Fixes: a66ada4f241c("usb: gadget: bcm63xx_udc: create debugfs directory under > usb root") Nit, you need a ' ' before the '(' character... thanks, greg k

[PATCH net-next RFC v4 04/15] devlink: Add reload actions stats to dev get

2020-09-13 Thread Moshe Shemesh
Expose devlink reload actions stats to the user through devlink dev get command. Examples: $ devlink dev show pci/:82:00.0: reload_action_stats: driver_reinit 2 fw_activate 1 driver_reinit_no_reset 0 fw_activate_no_reset 0 pci/:82:00.1: reload_action_stats: driver_r

Re: [PATCH 01/26] bpf: Move stack_map_get_build_id into lib

2020-09-13 Thread Song Liu
On Sun, Sep 13, 2020 at 2:05 PM Jiri Olsa wrote: > > Moving stack_map_get_build_id into lib with > prototype in linux/buildid.h header: > > int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id); > > This function returns build id for given struct vm_area_struct. > There is no f

[PATCH net-next RFC v4 05/15] net/mlx5: Add functions to set/query MFRL register

2020-09-13 Thread Moshe Shemesh
Add functions to query and set the MFRL reset options supported by firmware. Signed-off-by: Moshe Shemesh --- .../net/ethernet/mellanox/mlx5/core/Makefile | 2 +- .../ethernet/mellanox/mlx5/core/fw_reset.c| 46 +++ .../ethernet/mellanox/mlx5/core/fw_reset.h| 13 ++

[PATCH net-next RFC v4 00/15] Add devlink reload action and

2020-09-13 Thread Moshe Shemesh
Introduce new options on devlink reload API to enable the user to select the reload action required and contrains limits on these actions that he may want to ensure. Complete support for reload actions in mlx5. The following reload actions are supported: driver_reinit: driver entities re-initiali

[PATCH net-next RFC v4 03/15] devlink: Add reload action stats

2020-09-13 Thread Moshe Shemesh
Add reload action stats to hold the history per reload action type and limit level. For example, the number of times fw_activate has been performed on this device since the driver module was added or if the firmware activation was performed with or without reset. Add devlink notification on stats u

[PATCH net-next RFC v4 12/15] net/mlx5: Add devlink param enable_remote_dev_reset support

2020-09-13 Thread Moshe Shemesh
The enable_remote_dev_reset devlink param flags that the host admin allows resets by other hosts. In case it is cleared mlx5 host PF driver will send NACK on pci sync for firmware update reset request and the command will fail. By default enable_remote_dev_reset parameter is true, so pci sync for f

[PATCH net-next RFC v4 06/15] net/mlx5: Set cap for pci sync for fw update event

2020-09-13 Thread Moshe Shemesh
Set capability to notify the firmware that this host driver is capable of handling pci sync for firmware update events. Signed-off-by: Moshe Shemesh --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/m

[PATCH net-next RFC v4 11/15] devlink: Add enable_remote_dev_reset generic parameter

2020-09-13 Thread Moshe Shemesh
The enable_remote_dev_reset devlink param flags that the host admin allows device resets that can be initiated by other hosts. This parameter is useful for setups where a device is shared by different hosts, such as multi-host setup. Once the user set this parameter to false, the driver should NACK

[PATCH net-next RFC v4 15/15] devlink: Add Documentation/networking/devlink/devlink-reload.rst

2020-09-13 Thread Moshe Shemesh
Add devlink reload rst documentation file. Update index file to include it. Signed-off-by: Moshe Shemesh --- v3 -> v4: - Remove reload action fw_activate_no_reset - Add reload actions limit levels and document the no_reset limit level constrains v2 -> v3: - Devlink reload returns the actions do

[PATCH net-next RFC v4 01/15] devlink: Add reload action option to devlink reload command

2020-09-13 Thread Moshe Shemesh
Add devlink reload action to allow the user to request a specific reload action. The action parameter is optional, if not specified then devlink driver re-init action is used (backward compatible). Note that when required to do firmware activation some drivers may need to reload the driver. On the

[PATCH net-next RFC v4 13/15] net/mlx5: Add support for fw live patch event

2020-09-13 Thread Moshe Shemesh
Firmware live patch event notifies the driver that the firmware was just updated using live patch. In such case the driver should not reload or re-initiate entities, part to updating the firmware version and re-initiate the firmware tracer which can be updated by live patch with new strings databas

[PATCH net-next RFC v4 08/15] net/mlx5: Handle sync reset now event

2020-09-13 Thread Moshe Shemesh
On sync_reset_now event the driver does reload and PCI link toggle to activate firmware upgrade reset. When the firmware sends this event it syncs the event on all PFs, so all PFs will do PCI link toggle at once. To do PCI link toggle, the driver ensures that no other device ID under the same bridg

[PATCH net-next RFC v4 07/15] net/mlx5: Handle sync reset request event

2020-09-13 Thread Moshe Shemesh
Once the driver gets sync_reset_request from firmware it prepares for the coming reset and sends acknowledge. After getting this event the driver expects device reset, either it will trigger PCI reset on sync_reset_now event or such PCI reset will be triggered by another PF of the same device. So i

[PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-13 Thread Moshe Shemesh
Add support for devlink reload action fw_activate. To activate firmware image the mlx5 driver resets the firmware and reloads it from flash. If a new image was stored on flash it will be loaded. Once this reload command is executed the driver initiates fw sync reset flow, where the firmware synchro

[PATCH net-next RFC v4 02/15] devlink: Add reload action limit level

2020-09-13 Thread Moshe Shemesh
Add reload action limit level to demand restrictions on actions. Reload action limit levels supported: none (default): No constrains on actions. Driver implementation may include reset or downtime as needed to perform the actions. no_reset: No reset allowed, no down

[PATCH net-next RFC v4 14/15] net/mlx5: Add support for devlink reload action limit level no reset

2020-09-13 Thread Moshe Shemesh
Add support for devlink reload action fw_activate with limit level no_reset which does firmware live patching, updating the firmware image without reset, no downtime and no configuration lose. The driver checks if the firmware is capable of handling the pending firmware changes as a live patch. If

[PATCH net-next RFC v4 09/15] net/mlx5: Handle sync reset abort event

2020-09-13 Thread Moshe Shemesh
If firmware sends sync_reset_abort to driver the driver should clear the reset requested mode as reset is not expected any more. Signed-off-by: Moshe Shemesh --- .../net/ethernet/mellanox/mlx5/core/fw_reset.c| 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/eth

Re: [PATCH v2] drivers: input: Use single i2c_transfer transaction when using RM_CMD_BANK_SWITCH

2020-09-13 Thread Furquan Shaikh
Hi Dmitry, On Tue, Sep 8, 2020 at 5:44 PM Dmitry Torokhov wrote: > > Hi Furquan, > > On Thu, Aug 20, 2020 at 07:40:06PM -0700, Furquan Shaikh wrote: > > On an AMD chromebook, where the same I2C bus is shared by both Raydium > > touchscreen and a trackpad device, it is observed that interleaving o

Re: [BUG RT] dump-capture kernel not executed for panic in interrupt context

2020-09-13 Thread Joerg Vehlow
Hi Eric, What is this patch supposed to be doing? What bug is it fixing? This information is part in the first message of this mail thread. The patch was intendedfor the active discussion in this thread, not for a broad review. A short summary: In the rt kernel, a panic in an interrupt context

Re: [PATCH v3 3/4] perf record: Don't clear event's period if set by a term

2020-09-13 Thread Adrian Hunter
On 12/09/20 5:56 am, Ian Rogers wrote: > If events in a group explicitly set a frequency or period with leader > sampling, don't disable the samples on those events. > > Prior to 5.8: > perf record -e '{cycles/period=12345000/,instructions/period=6789000/}:S' > would clear the attributes then appl

Re: [PATCH RFC 1/4] fs/9p: fix create-unlink-getattr idiom

2020-09-13 Thread Dominique Martinet
Jianyong Wu wrote on Mon, Sep 14, 2020: > Signed-off-by: Greg Kurz Just on a note on that mail: gk...@linux.vnet.ibm.com has no longer been working for a while, probably want to update to gr...@kaod.org in both first two patches. Greg, sorry I had forgotten to fix Cc earlier, can you confirm? I

Re: [PATCH] Input: trackpoint - add new trackpoint variant IDs

2020-09-13 Thread Dmitry Torokhov
Hi Vincent, On Wed, Sep 09, 2020 at 04:36:32PM +0800, Vincent Huang wrote: > Add trackpoint variant IDs to allow supported control > on Synaptics trackpoints > > Signed-off-by: Vincent Huang > --- > drivers/input/mouse/trackpoint.c | 2 ++ > drivers/input/mouse/trackpoint.h | 2 ++ > 2 files ch

Re: [PATCH RFC 4/4] 9p: fix race issue in fid contention.

2020-09-13 Thread Dominique Martinet
Thanks for having a look a this! Jianyong Wu wrote on Mon, Sep 14, 2020: > Eric's and Greg's patch offer a mechanism to fix open-unlink-f*syscall > bug in 9p. But there is race issue in fid comtention. > As Greg's patch stores all of fids from opened files into according inode, > so all the look

Re: [PATCH 07/26] perf tools: Add check for existing link in buildid dir

2020-09-13 Thread Namhyung Kim
On Mon, Sep 14, 2020 at 6:05 AM Jiri Olsa wrote: > > When adding new build id link we fail if the link is already > there. Adding check for existing link and warn/replace the > link with new target. > > Signed-off-by: Jiri Olsa > --- > tools/perf/util/build-id.c | 20 +++- > 1 fi

[PATCH] dmaengine: sf-pdma: remove unused 'desc'

2020-09-13 Thread Vinod Koul
'desc' variable is now defined but not used in sf_pdma_donebh_tasklet(), causing this warning: drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet': drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable 'desc' [-Wunused-variable] Remove this unused variable Reported-by:

Re: [PATCH v18 2/3] drivers: input:keyboard: Add mtk keypad driver

2020-09-13 Thread Dmitry Torokhov
Hi Fengping, On Wed, Sep 09, 2020 at 03:22:00PM +0800, Fengping Yu wrote: > From: "fengping.yu" > > This patch adds matrix keypad support for Mediatek SoCs. I am generally happy with the driver, however I do not believe this will be the only Mediatek driver ever. Do you think we could rename it

Re: [PATCH v18 1/3] dt-bindings: Add bindings for Mediatek matrix keypad

2020-09-13 Thread Dmitry Torokhov
Hi Rob, On Wed, Sep 09, 2020 at 03:21:58PM +0800, Fengping Yu wrote: > From: "fengping.yu" > > This patch add devicetree bindings for Mediatek matrix keypad driver. I am generally happy with the driver itself, do you have any concerns with the binding? Thanks! > > Signed-off-by: fengping.yu

Re: [PATCH 13/15] selftests/seccomp: powerpc: Set syscall return during ptrace syscall exit

2020-09-13 Thread Michael Ellerman
Kees Cook writes: > Some archs (like ppc) only support changing the return code during > syscall exit when ptrace is used. As the syscall number might not > be available anymore during syscall exit, it needs to be saved > during syscall enter. Adjust the ptrace tests to do this. I'm not that acro

Re: [PATCH] cpuidle: add riscv cpuidle driver

2020-09-13 Thread Daniel Lezcano
On 14/09/2020 03:52, liush wrote: > This patch adds a cpuidle driver for systems based RISCV architecture. > This patch supports state WFI. Other states will be supported in the > future. > > Signed-off-by: liush > --- [ ... ] > > obj-$(CONFIG_RISCV_M_MODE) += traps_misaligned.o > diff --g

Re: [RFC PATCH V3 15/21] mmc: sdhci: UHS-II support, modify set_power() to handle vdd2

2020-09-13 Thread AKASHI Takahiro
Adrian, On Fri, Aug 21, 2020 at 05:11:18PM +0300, Adrian Hunter wrote: > On 10/07/20 2:11 pm, Ben Chuang wrote: > > From: AKASHI Takahiro > > > > VDD2 is used for powering UHS-II interface. > > Modify sdhci_set_power_and_bus_voltage(), sdhci_set_power_noreg() > > and sdhci_set_power_noreg() to h

Re: [PATCH 05/26] perf tools: Add build_id__is_defined function

2020-09-13 Thread Namhyung Kim
On Mon, Sep 14, 2020 at 6:05 AM Jiri Olsa wrote: > > Adding build_id__is_defined helper to check build id > is defined and is != zero build id. > > Signed-off-by: Jiri Olsa > --- > tools/perf/util/build-id.c | 11 +++ > tools/perf/util/build-id.h | 1 + > 2 files changed, 12 insertions(

Re: [PATCH v2] arm64/mm: Refactor {pgd, pud, pmd, pte}_ERROR()

2020-09-13 Thread Gavin Shan
Hi Anshuman, On 9/14/20 3:31 PM, Anshuman Khandual wrote: On 09/14/2020 05:17 AM, Gavin Shan wrote: The function __{pgd, pud, pmd, pte}_error() are introduced so that they can be called by {pgd, pud, pmd, pte}_ERROR(). However, some of the functions could never be called when the corresponding

Re: [PATCH v2] x86/boot/compressed: Disable relocation relaxation

2020-09-13 Thread Ard Biesheuvel
On Mon, 14 Sep 2020 at 01:34, Arvind Sankar wrote: > > On Tue, Aug 25, 2020 at 10:56:52AM -0400, Arvind Sankar wrote: > > On Sat, Aug 15, 2020 at 01:56:49PM -0700, Nick Desaulniers wrote: > > > Hi Ingo, > > > I saw you picked up Arvind's other series into x86/boot. Would you > > > mind please inc

[PATCH] usb: gadget: bcm63xx_udc: fix up the error of undeclared usb_debug_root

2020-09-13 Thread Chunfeng Yun
Fix up the build error caused by undeclared usb_debug_root Cc: stable Fixes: a66ada4f241c("usb: gadget: bcm63xx_udc: create debugfs directory under usb root") Reported-by: kernel test robot Signed-off-by: Chunfeng Yun --- drivers/usb/gadget/udc/bcm63xx_udc.c | 1 + 1 file changed, 1 insertion

Re: [PATCH net-next] drivers/net/wan/x25_asy: Remove an unnecessary x25_type_trans call

2020-09-13 Thread Martin Schiller
On 2020-09-12 04:18, Xie He wrote: x25_type_trans only needs to be called before we call netif_rx to pass the skb to upper layers. It does not need to be called before lapb_data_received. The LAPB module does not need the fields that are set by calling it. In the other two X.25 drivers - lapb

Re: [PATCH] MAINTAINERS: make linux-mediatek list remarks consistent

2020-09-13 Thread Lukas Bulwahn
On Mon, 14 Sep 2020, Lukas Bulwahn wrote: > Commit 637cfacae96f ("PCI: mediatek: Add MediaTek PCIe host controller > support") does not mention that linux-media...@lists.infradead.org is > moderated for non-subscribers, but the other eight entries for > linux-media...@lists.infradead.org do. >

Re: [PATCH 03/26] tools headers uapi: Sync tools/include/uapi/linux/perf_event.h

2020-09-13 Thread Namhyung Kim
On Mon, Sep 14, 2020 at 6:03 AM Jiri Olsa wrote: > > Sync uapi header with kernel version for mmap3 support. > > Signed-off-by: Jiri Olsa > --- > tools/include/uapi/linux/perf_event.h | 27 ++- > 1 file changed, 26 insertions(+), 1 deletion(-) > > diff --git a/tools/inclu

Re: [PATCH 02/26] perf: Introduce mmap3 version of mmap event

2020-09-13 Thread Namhyung Kim
On Mon, Sep 14, 2020 at 6:03 AM Jiri Olsa wrote: > > Add new version of mmap event. The MMAP3 record is an > augmented version of MMAP2, it adds build id value to > identify the exact binary object behind memory map: > > struct { > struct perf_event_header header; > > u32

Re: [PATCH] tty: hvcs: Don't NULL tty->driver_data until hvcs_cleanup()

2020-09-13 Thread Jiri Slaby
On 21. 08. 20, 1:46, Tyrel Datwyler wrote: > The code currently NULLs tty->driver_data in hvcs_close() with the > intent of informing the next call to hvcs_open() that device needs to be > reconfigured. However, when hvcs_cleanup() is called we copy hvcsd from > tty->driver_data which was previouls

Re: [PATCH v2] arm64/mm: Refactor {pgd, pud, pmd, pte}_ERROR()

2020-09-13 Thread Anshuman Khandual
On 09/14/2020 05:17 AM, Gavin Shan wrote: > The function __{pgd, pud, pmd, pte}_error() are introduced so that > they can be called by {pgd, pud, pmd, pte}_ERROR(). However, some > of the functions could never be called when the corresponding page > table level isn't enabled. For example, __{pud

[PATCH] MAINTAINERS: make linux-mediatek list remarks consistent

2020-09-13 Thread Lukas Bulwahn
Commit 637cfacae96f ("PCI: mediatek: Add MediaTek PCIe host controller support") does not mention that linux-media...@lists.infradead.org is moderated for non-subscribers, but the other eight entries for linux-media...@lists.infradead.org do. Adjust this entry to be consistent with all others. Si

Re: [PATCH 0/5] Some improvements for blk-throttle

2020-09-13 Thread Baolin Wang
Hi Tejun and Jens, On Mon, Sep 07, 2020 at 04:10:12PM +0800, Baolin Wang wrote: > Hi All, > > This patch set did some clean-ups, as well as removing some unnecessary > bps/iops limitation calculation when checking if can dispatch a bio or > not for a tg. Please help to review. Thanks. Any commen

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

2020-09-13 Thread Vinod Koul
Hi Stephen, On 14-09-20, 14:29, Stephen Rothwell wrote: > Hi all, > > After merging the dmaengine tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet': > drivers/dma/sf-pdma/sf-pdma.c:287:23: warning

Re: [PATCH net-next] octeontx2-af: Constify npc_kpu_profile_{action,cam}

2020-09-13 Thread Joe Perches
On Sat, 2020-09-12 at 00:00 +0200, Rikard Falkeborn wrote: > These are never modified, so constify them to allow the compiler to > place them in read-only memory. This moves about 25kB to read-only > memory as seen by the output of the size command. Nice. Did you find this by tool or inspection?

Re: [PATCH net v2] drivers/net/wan/hdlc_fr: Add needed_headroom for PVC devices

2020-09-13 Thread Krzysztof Hałasa
Xie He writes: > The HDLC device is not actually prepending any header when it is used > with this driver. When the PVC device has prepended its header and > handed over the skb to the HDLC device, the HDLC device just hands it > over to the hardware driver for transmission without prepending any

Re: [PATCH] brcmfmac: initialize variable

2020-09-13 Thread Arend Van Spriel
On September 13, 2020 4:35:44 PM t...@redhat.com wrote: From: Tom Rix clang static analysis flags this problem sdio.c:3265:13: warning: Branch condition evaluates to a garbage value } else if (pending) { ^~~ brcmf_sdio_dcmd_resp_wait() only sets pending to true.

Re: [RFC 00/26] perf: Add mmap3 support

2020-09-13 Thread Namhyung Kim
Hi Jiri, On Mon, Sep 14, 2020 at 6:03 AM Jiri Olsa wrote: > > hi, > while playing with perf daemon support I realized I need > the build id data in mmap events, so we don't need to care > about removed/updated binaries during long perf runs. > > This RFC patchset adds new mmap3 events that copies

dma-coherent property for PCIe Root

2020-09-13 Thread Valmiki
Hi All, How does "dma-coherent" property will work for PCIe as RC on an ARM SOC ? Because the end point device drivers are the one which will request dma buffers and Root port driver doesn't involve in data path of end point except for handling interrupts. How does EP DMA buffers will be hardw

RE: drivers/net/wireless/realtek/rtw88/pci.c:1477:5: warning: no previous prototype for 'rtw_pci_probe'

2020-09-13 Thread Tony Chuang
nfig: i386-randconfig-r034-20200913 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 > reproduce (this is a W=1 build): > git checkout ba0fbe236fb8a7b992e82d6eafb03a600f5eba43 > # save the attached .config to linux build tree > make W=1 ARCH=i386 &

Re: [PATCH v2 12/14] habanalabs/gaudi: Add ethtool support using coresight

2020-09-13 Thread Oded Gabbay
On Mon, Sep 14, 2020 at 4:37 AM Andrew Lunn wrote: > > > +static int gaudi_nic_get_module_eeprom(struct net_device *netdev, > > + struct ethtool_eeprom *ee, u8 *data) > > +{ > > + struct gaudi_nic_device **ptr = netdev_priv(netdev); > > + struct gaudi_ni

Re: [PATCH v2 12/14] habanalabs/gaudi: Add ethtool support using coresight

2020-09-13 Thread Oded Gabbay
On Mon, Sep 14, 2020 at 4:39 AM Florian Fainelli wrote: > > > > On 9/12/2020 7:41 AM, Oded Gabbay wrote: > > From: Omer Shpigelman > > > > The driver supports ethtool callbacks and provides statistics using the > > device's profiling infrastructure (coresight). > > Is there any relationship near

[PATCH v1 1/1] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-09-13 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Voltage switching sequence is needed to support UHS-1 interface as Keem Bay EVM is using external voltage regulator to switch between 1.8V and 3.3V. Signed-off-by: Muhammad Husaini Zulkifli Reviewed-by: Andy Shevchenko Reviewed-by: Adrian Hunter --- drivers/mm

Re: [Linux-kernel-mentees] [PATCH] net: fix uninit value error in __sys_sendmmsg

2020-09-13 Thread Anant Thazhemadam
I can assure you that when I said "I think", I meant it in an assertive manner, and not an assumptive one, but I can understand how that could easily get lost in translation. I wouldn't have sent in the patch if I had caught the build warning, and once again, my apologies for not fixing it sooner

Re: [PATCH v2 2/3] soundwire: SDCA: add helper macro to access controls

2020-09-13 Thread Vinod Koul
Hi Pierre, On 11-09-20, 09:50, Pierre-Louis Bossart wrote: > > > > > > > > > + * 25 0 (Reserved) > > > > > > > > > + * 24:22 Function Number [2:0] > > > > > > > > > + * 21 Entity[6] > > > > > > > > > + * 20:19 Control Selector[5:4] > > > > > >

  1   2   3   4   5   >