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

2020-09-14 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?

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

2020-09-14 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

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

2020-09-14 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 v2] drivers: input: Use single i2c_transfer transaction when using RM_CMD_BANK_SWITCH

2020-09-14 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

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

2020-09-14 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-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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 08/15] net/mlx5: Handle sync reset now event

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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-14 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: [PATCH 01/26] bpf: Move stack_map_get_build_id into lib

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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:

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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) }

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

2020-09-14 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

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

2020-09-14 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.

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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,

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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 ---

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

2020-09-14 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: > > > >

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

2020-09-14 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 ---

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

2020-09-14 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 [

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

2020-09-14 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

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

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

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

2020-09-14 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

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

2020-09-14 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: >

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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,

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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(),

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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 > >

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

2020-09-14 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: [PATCH v3] Input: elants_i2c - Report resolution of ABS_MT_TOUCH_MAJOR by FW information.

2020-09-14 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

Re: general protection fault in unlink_file_vma

2020-09-14 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: >

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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 v2 1/4] Input: ep93xx_keypad - Fix handling of platform_get_irq() error

2020-09-14 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/3] media: i2c: ov772x: Parse endpoint properties

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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

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

2020-09-14 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; | ^~~~

Re: [PATCH v2 3/4] sparc64: remove mm_cpumask clearing to fix kthread_use_mm race

2020-09-14 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of September 14, 2020 2:52 pm: [...] > The basic fix for sparc64 is to remove its mm_cpumask clearing code. The > optimisation could be effectively restored by sending IPIs to mm_cpumask > members and having them remove themselves from mm_cpumask. This is

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

2020-09-14 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from lib/test_kasan_module.c:16: lib/../mm/kasan/kasan.h:232:6: warning: conflicting types for built-in function '__asan_register_globals'; expected 'void(void *,

Re: [PATCH v6 2/3] irqchip: Add Actions Semi Owl SIRQ controller

2020-09-14 Thread Cristian Ciocaltea
Hi Marc, On Fri, Sep 11, 2020 at 05:22:41PM +0100, Marc Zyngier wrote: > On 2020-09-08 09:20, Cristian Ciocaltea wrote: > > This interrupt controller is found in the Actions Semi Owl SoCs (S500, > > S700 and S900) and provides support for handling up to 3 external > > interrupt lines. > > > >

[PATCH] ALSA: hda/realtek: Enable front panel headset LED on Lenovo ThinkStation P520

2020-09-14 Thread Kai-Heng Feng
On Lenovo P520, the front panel headset LED isn't lit up right now. Realtek states that the LED needs to be enabled by ALC233's GPIO2, so let's do it accordingly to light the LED up. Signed-off-by: Kai-Heng Feng --- sound/pci/hda/patch_realtek.c | 7 +++ 1 file changed, 7 insertions(+)

Re: [PATCH v6 0/8] crpyto: introduce OSCCA certificate and SM2 asymmetric algorithm

2020-09-14 Thread Tianjia Zhang
Hi, On 9/11/20 12:24 PM, Herbert Xu wrote: On Thu, Sep 03, 2020 at 09:12:34PM +0800, Tianjia Zhang wrote: --- v6 changes: 1. remove mpi_sub_ui function from mpi library. 2. rebase on mainline. This series is still missing acks for patches 6-8. Without them it cannot proceed. Thanks,

Re: MSI/MSIX for VFIO platform

2020-09-14 Thread Vikas Gupta
Hi Eric/Alex, Thanks for your valuable suggestions and get back to you if anything is required. Thanks, Vikas On Fri, Sep 11, 2020 at 7:23 PM Auger Eric wrote: > > Hi Vikas, > > On 9/10/20 6:57 PM, Alex Williamson wrote: > > On Thu, 10 Sep 2020 16:15:27 +0530 > > Vikas Gupta wrote: > > > >> Hi

Re: [PATCH v5] i3c: master: fix for SETDASA and DAA process

2020-09-14 Thread Boris Brezillon
On Tue, 25 Aug 2020 08:31:49 +0200 Parshuram Thombare wrote: > This patch fix following issue. > Controller slots blocked for devices with static_addr > but no init_dyn_addr may limit the number of I3C devices > on the bus which gets dynamic address in DAA. So > instead of attaching all the

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

2020-09-14 Thread Lukas Bulwahn
On Sat, 12 Sep 2020, Joe Perches wrote: > On Sat, 2020-09-12 at 14:40 +0200, Greg Kroah-Hartman wrote: > > On Sat, Sep 12, 2020 at 02:19:02PM +0200, Lukas Bulwahn wrote: > > > > > > On Sat, 12 Sep 2020, Lukas Bulwahn wrote: > > > > > > > This patch submission will also show me if linux-usb

RE: [PATCH 1/3] dt-bindings: rtc-2127: Add bindings for nxp,rtc-2127.txt

2020-09-14 Thread Qiang Zhao
On Fri, Sep 11, 2020 at 22:03, Rob Herring wrote: > -Original Message- > From: Rob Herring > Sent: 2020年9月11日 22:03 > To: Qiang Zhao > Cc: a.zu...@towertech.it; alexandre.bell...@bootlin.com; > linux-...@vger.kernel.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org >

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

2020-09-14 Thread Vasundhara Volam
On Mon, Sep 14, 2020 at 11:39 AM Moshe Shemesh wrote: > > 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

Re: [PATCH v2] iommu/dma: Fix IOVA reserve dma ranges

2020-09-14 Thread Srinath Mannam
On Fri, Sep 11, 2020 at 8:47 PM Bjorn Helgaas wrote: > Hi Bjorn, Thanks for review. > On Fri, Sep 11, 2020 at 03:55:34PM +0530, Srinath Mannam wrote: > > Fix IOVA reserve failure in the case when address of first memory region > > listed in dma-ranges is equal to 0x0. > > > > Fixes: aadad097cd46f

[PATCH] thermal: cooling: Remove unused variable *tz

2020-09-14 Thread zhuguangqing83
From: zhuguangqing 1. devfreq_cooling.c: The variable *tz is not used in devfreq_cooling_get_requested_power(), devfreq_cooling_state2power() and devfreq_cooling_power2state(). 2. cpufreq_cooling.c: After 84fe2cab48590, the variable *tz is not used anymore in cpufreq_get_requested_power(),

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

2020-09-14 Thread Julia Lawall
On Mon, 14 Sep 2020, Markus Elfring wrote: > >> How do you think about to use the following check variant? > >> > >> + if [ "${DEBUG_FILE}" != '/dev/null' -a "${DEBUG_FILE}" != '' ]; then > > > > What difference does it make? > > I propose two implementation details for further development

[Linux-kernel-mentees] [PATCH] idr: remove WARN_ON_ONCE() when trying to check id

2020-09-14 Thread Anmol Karn
idr_get_next() gives WARN_ON_ONCE() when it gets (id > INT_MAX) true and this happens when syzbot does fuzzing, and that warning is expected, but WARN_ON_ONCE() is not required here and, cecking the condition and returning NULL value would be suffice. Reference: commit b9959c7a347 ("filldir[64]:

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

2020-09-14 Thread Kalle Valo
Tony Chuang writes: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> master >> head: ef2e9a563b0cd7965e2a1263125dcbb1c86aa6cc >> commit: ba0fbe236fb8a7b992e82d6eafb03a600f5eba43 rtw88: extract: make >> 8822c an individual kernel module >> date: 4 months ago

Dr

2020-09-14 Thread westernuniondirecto...@gmail.com

[PATCH V4] serial: qcom_geni_serial: To correct QUP Version detection logic

2020-09-14 Thread Paras Sharma
The current implementation reduces the sampling rate by half if qup HW version is greater is than 2.5 by checking if the geni SE major version is greater than 2 and geni SE minor version is greater than 5.This implementation fails when the version is greater than or equal to 3. Hence, a new

[PATCH] blk-mq: fix hang issue in blk_queue_enter()

2020-09-14 Thread Yang Yang
There is a race between blk_queue_enter() and block layer's runtime suspend. CPU0CPU1 - --- blk_pre_runtime_suspend(q) {blk_queue_enter() { /* q->rpm_status=RPM_ACTIVE */

[PATCH v3] iommu/dma: Fix IOVA reserve dma ranges

2020-09-14 Thread Srinath Mannam
Fix IOVA reserve failure in the case when address of first memory region listed in dma-ranges is equal to 0x0. Fixes: aadad097cd46f ("iommu/dma: Reserve IOVA for PCIe inaccessible DMA address") Signed-off-by: Srinath Mannam --- Changes from v2: Modify error message with useful information

Re: [RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication

2020-09-14 Thread Kishon Vijay Abraham I
Hi Jason, On 01/09/20 2:20 pm, Jason Wang wrote: > > On 2020/9/1 下午1:24, Kishon Vijay Abraham I wrote: >> Hi, >> >> On 28/08/20 4:04 pm, Cornelia Huck wrote: >>> On Thu, 9 Jul 2020 14:26:53 +0800 >>> Jason Wang wrote: >>> >>> [Let me note right at the beginning that I first noted this while >>>

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

2020-09-14 Thread Julia Lawall
On Mon, 14 Sep 2020, Markus Elfring wrote: > How do you think about to use the following check variant? > > +if [ "${DEBUG_FILE}" != '/dev/null' -a "${DEBUG_FILE}" != '' ]; > then > … > > I have no idea. Why can't they be nclosed by double quotes as well? > > Both

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

2020-09-14 Thread Jianyong Wu
Hi Dominique, > -Original Message- > From: Dominique Martinet > Sent: Monday, September 14, 2020 1:56 PM > To: Jianyong Wu > Cc: eri...@gmail.com; lu...@ionkov.net; v9fs- > develo...@lists.sourceforge.net; linux-kernel@vger.kernel.org; Justin He > ; Greg Kurz > Subject: Re: [PATCH RFC

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

2020-09-14 Thread Hans de Goede
Hi, On 9/14/20 8:54 AM, Liu Shixin wrote: module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin Thank you for the cleanup, patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans --- drivers/extcon/extcon-axp288.c | 13

Re: [PATCH] s390/zcrypt: remove set_fs() invocation in zcrypt device driver

2020-09-14 Thread Harald Freudenberger
On 11.09.20 08:21, Christoph Hellwig wrote: > On Thu, Sep 10, 2020 at 12:28:38PM +0200, Harald Freudenberger wrote: >> +static inline unsigned long z_copy_from_user(bool userspace, >> + void *to, const void __user *from, >> unsigned long n) > Can you avoid

support range based offsets in dma-direct v2

2020-09-14 Thread Christoph Hellwig
Hi all, this series adds range-based offsets to the dma-direct implementation. The guts of the change are a patch from Jim with some modifications from me, but to do it nicely we need to ARM patches to prepare for it as well. Changes since v1: - rebased on top of the latests dma-mapping

[PATCH 1/6] ARM/dma-mapping: remove a __arch_page_to_dma #error

2020-09-14 Thread Christoph Hellwig
The __arch_page_to_dma hook is long gone. Signed-off-by: Christoph Hellwig --- arch/arm/include/asm/dma-mapping.h | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index bdd80ddbca3451..70d95677656044 100644 ---

[PATCH 2/6] ARM/dma-mapping: remove dma_to_virt

2020-09-14 Thread Christoph Hellwig
dma_to_virt is entirely unused, remove it. Signed-off-by: Christoph Hellwig --- arch/arm/include/asm/dma-mapping.h| 18 +- arch/arm/mach-omap1/include/mach/memory.h | 4 2 files changed, 1 insertion(+), 21 deletions(-) diff --git

Re: [PATCH] Revert "net: linkwatch: add check for netdevice being present to linkwatch_do_dev"

2020-09-14 Thread Geert Uytterhoeven
Hi David, CC bridge On Sun, Sep 13, 2020 at 3:34 AM David Miller wrote: > From: Geert Uytterhoeven > Date: Sat, 12 Sep 2020 14:33:59 +0200 > > > "dev" is not the bridge device, but the physical Ethernet interface, which > > may already be suspended during s2ram. > > Hmmm, ok. > > Looking more

[PATCH net-next v2] net/packet: Fix a comment about hard_header_len and headroom allocation

2020-09-14 Thread Xie He
This comment is outdated and no longer reflects the actual implementation of af_packet.c. Reasons for the new comment: 1. In af_packet.c, the function packet_snd first reserves a headroom of length (dev->hard_header_len + dev->needed_headroom). Then if the socket is a SOCK_DGRAM socket, it

[PATCH 3/6] ARM/dma-mapping: move various helpers from dma-mapping.h to dma-direct.h

2020-09-14 Thread Christoph Hellwig
Move the helpers to translate to and from direct mapping DMA addresses to dma-direct.h. This not only is the most logical place, but the new placement also avoids dependency loops with pending commits. Signed-off-by: Christoph Hellwig Reviewed-by: Robin Murphy --- arch/arm/common/dmabounce.c

[PATCH 4/6] ARM/keystone: move the DMA offset handling under ifdef CONFIG_ARM_LPAE

2020-09-14 Thread Christoph Hellwig
The DMA offset notifier can only be used if PHYS_OFFSET is at least KEYSTONE_HIGH_PHYS_START, which can't be represented by a 32-bit phys_addr_t. Currently the code compiles fine despite that, a pending change to the DMA offset handling would create a compiler warning for this case. Add an ifdef

Re: [v2 PATCH] crypto: sun4i-ss - Fix sparse endianness markers

2020-09-14 Thread Corentin Labbe
On Fri, Sep 11, 2020 at 02:13:55PM +1000, Herbert Xu wrote: > On Thu, Sep 10, 2020 at 02:22:48PM +0200, Corentin Labbe wrote: > > > > I get some md5 error on both A20+BE: > > alg: ahash: md5 test failed (wrong result) on test vector \"random: > > psize=129 ksize=0\", cfg=\"random: inplace

Re: [PATCH 3/3] virtio-mem: Constify mem_id_table

2020-09-14 Thread David Hildenbrand
On 11.09.20 22:35, Rikard Falkeborn wrote: > mem_id_table is not modified, so make it const to allow the compiler to > put it in read-only memory. > > Signed-off-by: Rikard Falkeborn > --- > drivers/virtio/virtio_mem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

  1   2   3   4   5   6   7   8   9   10   >