Re: [RFC PATCH 4/4] i40e: don't open i40iw client for kdump

2021-02-24 Thread Coiby Xu
Hi Jakub, Thank you for reviewing the patch! On Tue, Feb 23, 2021 at 12:22:07PM -0800, Jakub Kicinski wrote: On Mon, 22 Feb 2021 15:07:01 +0800 Coiby Xu wrote: i40iw consumes huge amounts of memory. For example, on a x86_64 machine, i40iw consumed 1.5GB for Intel Corporation Ethernet

Re: [RFC PATCH 4/4] i40e: don't open i40iw client for kdump

2021-02-24 Thread Coiby Xu
On Wed, Feb 24, 2021 at 08:48:41AM -0800, Jakub Kicinski wrote: On Wed, 24 Feb 2021 19:41:41 +0800 Coiby Xu wrote: On Tue, Feb 23, 2021 at 12:22:07PM -0800, Jakub Kicinski wrote: >On Mon, 22 Feb 2021 15:07:01 +0800 Coiby Xu wrote: >> i40iw consumes huge amounts of memory. For exam

Re: [PATCH][next] staging: qlge: fix read of an uninitialized pointer

2021-02-03 Thread Coiby Xu
if (IS_ERR(priv->reporter)) netdev_warn(priv->ndev, "Failed to create reporter, err = %ld\n", - PTR_ERR(reporter)); + PTR_ERR(priv->reporter)); } -- 2.29.2 Thanks for fixing this issue. Reviewed-by: Coiby Xu -- Best regards, Coiby

Re: KASAN: use-after-free Read in netdevice_event_work_handler

2020-07-31 Thread Coiby Xu
On Fri, Jul 31, 2020 at 09:11:22PM +, Rustam Kovhaev wrote: On Thu, Jul 09, 2020 at 04:54:19PM -0700, syzbot wrote: Hello, syzbot found the following crash on: HEAD commit:0bddd227 Documentation: update for gcc 4.9 requirement git tree: upstream console output: https://syzkaller.

Re: BUG: corrupted list in kobject_add_internal

2020-08-19 Thread Coiby Xu
On Fri, Aug 07, 2020 at 09:47:20AM -0700, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:5a30a789 Merge tag 'x86-urgent-2020-08-02' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1660c85890 kernel config: http

Re: [RFC 1/3] Initialize devlink health dump framework for the dlge driver

2020-08-20 Thread Coiby Xu
On Sun, Aug 16, 2020 at 11:56:40AM +0900, Benjamin Poirier wrote: On 2020-08-15 00:05 +0800, Coiby Xu wrote: Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu --- drivers/staging/qlge/Makefile | 2 +- drivers

Re: [RFC 3/3] staging: qlge: clean up code that dump info to dmesg

2020-08-20 Thread Coiby Xu
On Sun, Aug 16, 2020 at 11:57:17AM +0900, Benjamin Poirier wrote: On 2020-08-15 00:06 +0800, Coiby Xu wrote: The related code are not necessary because, - Device status and general registers can be obtained by ethtool. - Coredump can be done via devlink health reporter. - Structure related to

[PATCH] Bluetooth: Delete both L2CAP connction and HCI channel when completing destroying logical link in AMP

2020-08-07 Thread Coiby Xu
hci_conn *hcon, int err)` could achieve this purpose. Make it a public function. Reported-and-tested-by: syzbot+305a91e025a73e4fd...@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?extid=305a91e025a73e4fd6ce Signed-off-by: Coiby Xu --- include/net/bluetooth/l2cap.h | 1 + net/bluetooth

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

2020-12-25 Thread Coiby Xu
Hi Greg and Barnabás, On Wed, Dec 09, 2020 at 04:44:35PM +0100, Greg KH wrote: On Wed, Dec 09, 2020 at 03:38:11PM +, Barnabás Pőcze wrote: 2020. december 9., szerda 8:00 keltezéssel, Greg KH írta: > On Tue, Dec 08, 2020 at 09:59:20PM +, Barnabás Pőcze wrote: > > > 2020. november 25.,

[PATCH] staging: qlge: deal with the case that devlink_health_reporter_create fails

2021-03-23 Thread Coiby Xu
From: Coiby Xu devlink_health_reporter_create may fail. In that case, do the cleanup work. Reported-by: Dan Carpenter Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_devlink.c | 10 +++--- drivers/staging/qlge/qlge_devlink.h | 2 +- drivers/staging/qlge/qlge_main.c| 8

Re: drivers/staging/qlge/qlge_main.c:4564 qlge_probe() warn: missing error code 'err'

2021-03-23 Thread Coiby Xu
On Mon, Mar 22, 2021 at 06:14:08PM +0300, Dan Carpenter wrote: On Wed, Mar 10, 2021 at 08:21:37AM +0800, Coiby Xu wrote: Hi Dan, Thanks for finding this issue! I'll submit all the patches including the one for the previous issue reported by you ("[bug report] staging: qlge: Initiali

Re: [RFC PATCH 4/4] i40e: don't open i40iw client for kdump

2021-03-03 Thread Coiby Xu
Hi Bhupesh, Glad to meet you here:) On Thu, Feb 25, 2021 at 03:41:55PM +0530, Bhupesh SHARMA wrote: Hello Coiby, On Mon, Feb 22, 2021 at 12:40 PM Coiby Xu wrote: i40iw consumes huge amounts of memory. For example, on a x86_64 machine, i40iw consumed 1.5GB for Intel Corporation Ethernet

[PATCH v1 1/3] i40e: use minimal tx and rx pairs for kdump

2021-03-03 Thread Coiby Xu
Set the number of the MSI-X vectors to 1. When MSI-X is enabled, it's not allowed to use more TC queue pairs than MSI-X vectors (pf->num_lan_msix) exist. Thus the number of tx and rx pairs (vsi->num_queue_pairs) will be equal to the number of MSI-X vectors, i.e., 1. Signed-off-b

[PATCH v1 3/3] i40e: use minimal admin queue for kdump

2021-03-03 Thread Coiby Xu
The minimum size of admin send/receive queue is 1 and 2 respectively. The admin send queue can't be set to 1 because in that case, the firmware would fail to init. Signed-off-by: Coiby Xu --- drivers/net/ethernet/intel/i40e/i40e.h | 2 ++ drivers/net/ethernet/intel/i40e/i40e_main.

[PATCH v1 2/3] i40e: use minimal rx and tx ring buffers for kdump

2021-03-03 Thread Coiby Xu
Use the minimum of the number of descriptors thus we will allocate the minimal ring buffers for kdump. Signed-off-by: Coiby Xu --- drivers/net/ethernet/intel/i40e/i40e_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net

[RFC PATCH 2/4] i40e: use minimal rx and tx ring buffers for kdump

2021-02-21 Thread Coiby Xu
Use the minimum of the number of descriptors thus we will allocate the minimal ring buffers for kdump. Signed-off-by: Coiby Xu --- drivers/net/ethernet/intel/i40e/i40e_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net

[RFC PATCH 1/4] i40e: use minimal tx and rx pairs for kdump

2021-02-21 Thread Coiby Xu
Set the number of the MSI-X vectors to 1. When MSI-X is enabled, it's not allowed to use more TC queue pairs than MSI-X vectors (pf->num_lan_msix) exist. Thus the number of tx and rx pairs (vsi->num_queue_pairs) will be equal to the number of MSI-X vectors, i.e., 1. Signed-off-b

[RFC PATCH 3/4] i40e: use minimal admin queue for kdump

2021-02-21 Thread Coiby Xu
The minimum size of admin send/receive queue is 1 and 2 respectively. The admin send queue can't be set to 1 because in that case, the firmware would fail to init. Signed-off-by: Coiby Xu --- drivers/net/ethernet/intel/i40e/i40e.h | 2 ++ drivers/net/ethernet/intel/i40e/i40e_main.

[RFC PATCH 4/4] i40e: don't open i40iw client for kdump

2021-02-21 Thread Coiby Xu
ge of i40iw to ~300M which is still too much for kdump. Disabling the client registration would spare us the client interface operation open , i.e., i40iw_open for iwarp/uda device. Thus memory is saved for kdump. Signed-off-by: Coiby Xu --- drivers/net/ethernet/intel/i40e/i40e_client.c | 7 ++

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

2020-11-23 Thread Coiby Xu
On Sun, Nov 22, 2020 at 01:33:01PM +, Barnabás Pőcze wrote: Hi 2020. november 22., vasárnap 11:15 keltezéssel, Coiby Xu írta: [...] >> +static int get_gpio_pin_state(struct irq_desc *irq_desc) >> +{ >> + struct gpio_chip *gc = irq_data_get_irq_chip_data(&

Re: [PATCH v4] pinctrl: amd: remove debounce filter setting in IRQ type setting

2020-12-04 Thread Coiby Xu
On Wed, Nov 25, 2020 at 03:24:20PM +0200, Andy Shevchenko wrote: On Wed, Nov 25, 2020 at 3:03 PM Coiby Xu wrote: Debounce filter setting should be independent from IRQ type setting because according to the ACPI specs, there are separate arguments for specifying debounce timeout and IRQ type

Re: [PATCH v4] pinctrl: amd: remove debounce filter setting in IRQ type setting

2020-12-04 Thread Coiby Xu
On Fri, Dec 04, 2020 at 10:03:43AM +0100, Linus Walleij wrote: On Wed, Nov 25, 2020 at 2:03 PM Coiby Xu wrote: Debounce filter setting should be independent from IRQ type setting because according to the ACPI specs, there are separate arguments for specifying debounce timeout and IRQ type in

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

2020-11-25 Thread Coiby Xu
On Mon, Nov 23, 2020 at 04:32:40PM +, Barnabás Pőcze wrote: [...] >> >> +static int get_gpio_pin_state(struct irq_desc *irq_desc) >> >> +{ >> >> + struct gpio_chip *gc = irq_data_get_irq_chip_data(&irq_desc->irq_data); >> >> + >> >> + return gc->get(gc, irq_desc->irq_data.hwirq); >>

[PATCH v4] pinctrl: amd: remove debounce filter setting in IRQ type setting

2020-11-25 Thread Coiby Xu
cwiGREBUJ0A06EEw-SyabqYsp%2Bdqs2DpSrhaY-2GVdAA%40mail.gmail.com/ Signed-off-by: Coiby Xu --- Changelog v4: - Note in the commit message that this patch depends on other two patches to fix the broken touchpad [Hans de Goede] - Add in the commit message that one more touchpad could be fixed. Cha

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

2020-11-25 Thread Coiby Xu
On Wed, Nov 25, 2020 at 12:39:02PM +, Barnabás Pőcze wrote: 2020. november 25., szerda 11:57 keltezéssel, Coiby Xu írta: On Mon, Nov 23, 2020 at 04:32:40PM +, Barnabás Pőcze wrote: >> [...] >> >> >> +static int get_gpio_pin_state(s

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

2020-11-25 Thread Coiby Xu
ts/235 Cc: Cc: Barnabás Pőcze BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190 Signed-off-by: Coiby Xu --- drivers/hid/i2c-hid/i2c-hid-core.c | 152 +++-- 1 file changed, 142 insertions(+), 10 deletions(-) diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c

Re: drivers/staging/qlge/qlge_main.c:4564 qlge_probe() warn: missing error code 'err'

2021-03-09 Thread Coiby Xu
2008-09-18 4545 const struct pci_device_id *pci_entry) c4e84bde1d595d drivers/net/qlge/qlge_main.c Ron Mercer 2008-09-18 4546 { 953b9400937741 drivers/staging/qlge/qlge_main.c Coiby Xu 2021-01-23 4547 struct qlge_netdev_priv *

[PATCH v4 5/8] staging: qlge: support force_coredump option for devlink health dump

2021-01-23 Thread Coiby Xu
With force_coredump module parameter set, devlink health dump will reset the MPI RISC first which takes 5 secs to be finished. Note that only NIC function that owns the firmware can do the force_dumping. Otherwise devlink will receive an EPERM error. Signed-off-by: Coiby Xu --- drivers/staging

[PATCH v4 2/8] staging: qlge: Initialize devlink health dump framework

2021-01-23 Thread Coiby Xu
private data of PCIe driver now points to qlge_adapter. Since devlink_alloc will zero out struct qlge_adapter, memset in qlge_init_device is not necessary. Signed-off-by: Coiby Xu --- drivers/staging/qlge/Kconfig| 1 + drivers/staging/qlge/Makefile | 2 +- drivers/staging/qlge

[PATCH v4 6/8] staging: qlge: remove mpi_core_to_log which sends coredump to the kernel ring buffer

2021-01-23 Thread Coiby Xu
devlink health could be used to get coredump. No need to send so much data to the kernel ring buffer. Signed-off-by: Coiby Xu --- drivers/staging/qlge/TODO | 2 -- drivers/staging/qlge/qlge.h | 3 --- drivers/staging/qlge/qlge_dbg.c | 11 --- drivers/staging/qlge

[PATCH v4 7/8] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land

2021-01-23 Thread Coiby Xu
related to the hardware (struct ql_adapter) can be obtained by crash or drgn. Link: https://lkml.org/lkml/2020/6/30/19 Suggested-by: Benjamin Poirier Signed-off-by: Coiby Xu --- drivers/staging/qlge/TODO | 4 - drivers/staging/qlge/qlge.h | 82 drivers/staging/qlge

[PATCH v4 8/8] staging: qlge: add documentation for debugging qlge

2021-01-23 Thread Coiby Xu
Instructions and examples on kernel data structures dumping and coredump. Signed-off-by: Coiby Xu --- .../networking/device_drivers/index.rst | 1 + .../device_drivers/qlogic/index.rst | 18 +++ .../networking/device_drivers/qlogic/qlge.rst | 118

[PATCH v4 4/8] staging: qlge: coredump via devlink health reporter

2021-01-23 Thread Coiby Xu
}, ... "Sem Registers": { "segment": 50, "values": [ 0,0,0,0 ] } } Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_devlink.c | 132 ++-- 1 file changed, 126 insertions(+), 6 deletions(-)

[PATCH v4 3/8] staging: qlge: re-write qlge_init_device

2021-01-23 Thread Coiby Xu
Stop calling ql_release_all in qlge_init_device and free things one step at a time. struct qlge_adapter *qdev is now a private structure of struct devlink and memset is not necessary. Link: https://lore.kernel.org/patchwork/patch/1321092/#1516928 Suggested-by: Dan Carpenter Signed-off-by: Coiby

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

2020-11-22 Thread Coiby Xu
Hi, On Thu, Oct 22, 2020 at 02:22:51PM +, Barnabás Pőcze wrote: Hi, I think this looks a lot better than the first version, the issues around suspend/resume are sorted out as far as I can see. However, I still have a couple comments, mainly minor ones. Thank you for reviewing this patch!

[PATCH 1/2] fix trailing */ in block comment

2020-06-25 Thread Coiby Xu
Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_main.c | 3 ++- drivers/staging/qlge/qlge_mpi.c | 10 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/qlge_main.c index 1650de13842f..aaecf2b0f9a1 100644

[PATCH 2/2] fix else after return or break

2020-06-25 Thread Coiby Xu
Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_dbg.c | 23 ++- drivers/staging/qlge/qlge_main.c | 8 drivers/staging/qlge/qlge_mpi.c | 4 ++-- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers

[PATCH 2/2] staging: qlge: fix else after return or break

2020-06-25 Thread Coiby Xu
Remove unnecessary elses after return or break. Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_dbg.c | 23 ++- drivers/staging/qlge/qlge_main.c | 8 drivers/staging/qlge/qlge_mpi.c | 4 ++-- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a

[PATCH 1/2] staging: qlge: fix trailing */ in block comment

2020-06-25 Thread Coiby Xu
Remove trailing "*/" in block comments. Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_main.c | 3 ++- drivers/staging/qlge/qlge_mpi.c | 10 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/q

Re: [PATCH 1/2] fix trailing */ in block comment

2020-06-25 Thread Coiby Xu
On Thu, Jun 25, 2020 at 08:25:10PM +0300, Dan Carpenter wrote: The subject isn't right (no subsystem prefix) and we need a commit message. regards, dan carpenter Thank you for pointing out the exact problems! -- Best regards, Coiby

Re: [PATCH 2/2] staging: qlge: fix else after return or break

2020-06-26 Thread Coiby Xu
On Fri, Jun 26, 2020 at 11:34:36AM +0300, Dan Carpenter wrote: On Fri, Jun 26, 2020 at 05:57:55AM +0800, Coiby Xu wrote: @@ -1404,11 +1403,10 @@ static void ql_dump_cam_entries(struct ql_adapter *qdev) pr_err("%s: Failed read of mac index regis

Re: [PATCH 2/2] staging: qlge: fix else after return or break

2020-06-26 Thread Coiby Xu
On Thu, Jun 25, 2020 at 03:13:14PM -0700, Joe Perches wrote: On Fri, 2020-06-26 at 05:57 +0800, Coiby Xu wrote: Remove unnecessary elses after return or break. unrelated trivia: diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c [] @@ -1391,12 +1391,11

Re: [PATCH v2 1/3] staging: greybus: fix warnings about endianness detected by sparse

2020-10-05 Thread Coiby Xu
On Tue, Oct 06, 2020 at 12:47:37AM +0530, Vaibhav Agarwal wrote: On Sat, Oct 3, 2020 at 5:01 AM Coiby Xu wrote: This patch fix the following warnings from sparse, $ make C=2 drivers/staging/greybus/ drivers/staging/greybus/audio_module.c:222:25: warning: incorrect type in assignment

[PATCH v2 3/3] staging: greybus: use __force when assigning __u8 value to snd_ctl_elem_type_t

2020-10-02 Thread Coiby Xu
-by: Alex Elder Signed-off-by: Coiby Xu --- drivers/staging/greybus/audio_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/audio_topology.c b/drivers/staging/greybus/audio_topology.c index 2091031659de..662e3e8b4b63 100644 --- a/drivers/stag

[PATCH v2 1/3] staging: greybus: fix warnings about endianness detected by sparse

2020-10-02 Thread Coiby Xu
(different base types) drivers/staging/greybus/audio_topology.c:889:25:expected unsigned int access drivers/staging/greybus/audio_topology.c:889:25:got restricted __le32 [usertype] access Suggested-by: Dan Carpenter Reviewed-by: Dan Carpenter Reviewed-by: Alex Elder Signed-off-by: Coiby Xu

[PATCH v2 2/3] staging: greybus: codecs: use SNDRV_PCM_FMTBIT_S16_LE for format bitmask

2020-10-02 Thread Coiby Xu
m_format_t [usertype] Reviewed-by: Alex Elder Signed-off-by: Coiby Xu --- drivers/staging/greybus/audio_codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c index 74538f8c5fa4..494aa823e998 10

[PATCH v4] staging: qlge: fix build breakage with dumping enabled

2020-10-02 Thread Coiby Xu
quot;) Reported-by: Benjamin Poirier Suggested-by: Benjamin Poirier Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge.h | 20 ++-- drivers/staging/qlge/qlge_dbg.c | 28 ++-- drivers/staging/qlge/qlge_main.c | 8 3 files changed, 32 insert

Re: [PATCH v4] staging: qlge: fix build breakage with dumping enabled

2020-10-04 Thread Coiby Xu
On Sat, Oct 03, 2020 at 02:53:48PM +0900, Benjamin Poirier wrote: On 2020-10-03 07:59 +0800, Coiby Xu wrote: This fixes commit 0107635e15ac ("staging: qlge: replace pr_err with netdev_err") which introduced an build breakage of missing `struct ql_adapter *qdev` for some functions and

Re: [RFC 1/3] Initialize devlink health dump framework for the dlge driver

2020-10-04 Thread Coiby Xu
On Fri, Aug 21, 2020 at 11:08:22AM +0800, Coiby Xu wrote: On Sun, Aug 16, 2020 at 11:56:40AM +0900, Benjamin Poirier wrote: On 2020-08-15 00:05 +0800, Coiby Xu wrote: Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby

Re: [PATCH] staging: qlge: fix build breakage with dumping enabled

2020-08-25 Thread Coiby Xu
On Fri, Aug 21, 2020 at 05:31:59PM +0900, Benjamin Poirier wrote: On 2020-08-21 15:03 +0800, Coiby Xu wrote: This fixes commit 0107635e15ac ("staging: qlge: replace pr_err with netdev_err") which introduced an build breakage with dumping enabled, i.e., $ QL_ALL_DUMP=1 QL

[PATCH v2] staging: qlge: fix build breakage with dumping enabled

2020-08-26 Thread Coiby Xu
5 |"%s: Routing Mask %d = 0x%.08x\n", | ^ | | | unsigned int Fixes: 0107635e15ac ("staging: qlge: replace pr_err with netdev_err") Reported-by: Benjamin Poirier Suggested-by: Benjamin Poirier Signed-off-by: Coiby Xu --- drivers/stag

[PATCH v1 4/6] staging: qlge: remove mpi_core_to_log which sends coredump to the kernel ring buffer

2020-10-08 Thread Coiby Xu
devlink health could be used to get coredump. No need to send so much data to the kernel ring buffer. Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge.h | 3 --- drivers/staging/qlge/qlge_dbg.c | 11 --- drivers/staging/qlge/qlge_ethtool.c | 1 - drivers/staging/qlge

[PATCH v1 6/6] staging: qlge: add documentation for debugging qlge

2020-10-08 Thread Coiby Xu
Instructions and examples on kernel data structures dumping and coredump. Signed-off-by: Coiby Xu --- .../networking/device_drivers/index.rst | 1 + .../device_drivers/qlogic/index.rst | 18 +++ .../networking/device_drivers/qlogic/qlge.rst | 118

[PATCH v1 3/6] staging: qlge: support force_coredump option for devlink health dump

2020-10-08 Thread Coiby Xu
With force_coredump module paramter set, devlink health dump will reset the MPI RISC first which takes 5 secs to be finished. Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_devlink.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/qlge/qlge_devlink.c b/drivers

[PATCH v1 2/6] staging: qlge: coredump via devlink health reporter

2020-10-08 Thread Coiby Xu
}, ... "Sem Registers": { "segment": 50, "values": [ 0,0,0,0 ] } } Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_devlink.c | 131 ++-- 1 file changed, 125 insertions(+), 6 deletions(-)

[PATCH v1 5/6] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land

2020-10-08 Thread Coiby Xu
related to the hardware (struct ql_adapter) can be obtained by crash or drgn. Suggested-by: Benjamin Poirier Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge.h | 82 drivers/staging/qlge/qlge_dbg.c | 688 drivers/staging/qlge/qlge_ethtool.c

[PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-08 Thread Coiby Xu
Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu --- drivers/staging/qlge/Kconfig| 1 + drivers/staging/qlge/Makefile | 2 +- drivers/staging/qlge/qlge.h | 9 +++ drivers/staging/qlge

Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-08 Thread Coiby Xu
On Thu, Oct 08, 2020 at 08:22:44AM -0400, Willem de Bruijn wrote: On Thu, Oct 8, 2020 at 7:58 AM Coiby Xu wrote: Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu @@ -4556,6 +4559,13 @@ static int qlge_probe

Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-08 Thread Coiby Xu
On Thu, Oct 08, 2020 at 04:31:42PM +0300, Dan Carpenter wrote: On Thu, Oct 08, 2020 at 07:58:03PM +0800, Coiby Xu wrote: Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu --- drivers/staging/qlge/Kconfig

Re: [PATCH v1 2/6] staging: qlge: coredump via devlink health reporter

2020-10-08 Thread Coiby Xu
On Thu, Oct 08, 2020 at 04:39:40PM +0300, Dan Carpenter wrote: On Thu, Oct 08, 2020 at 07:58:04PM +0800, Coiby Xu wrote: -static int -qlge_reporter_coredump(struct devlink_health_reporter *reporter, - struct devlink_fmsg *fmsg, void *priv_ctx

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

2020-10-09 Thread Coiby Xu
is related to the interrupt. Two module parameters are added to i2c-hid, - polling_mode: by default set to 0, i.e., polling is disabled - polling_interval (ms): user can change this runtime parameter by writing to /sys/module/i2c_hid/parameters/polling_interval Signed-off-by: Coiby Xu

Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-10 Thread Coiby Xu
On Sat, Oct 10, 2020 at 04:35:14PM +0900, Benjamin Poirier wrote: On 2020-10-08 19:58 +0800, Coiby Xu wrote: Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu --- drivers/staging/qlge/Kconfig| 1 + drivers

Re: [PATCH v1 5/6] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land

2020-10-10 Thread Coiby Xu
On Sat, Oct 10, 2020 at 05:01:26PM +0900, Benjamin Poirier wrote: On 2020-10-08 19:58 +0800, Coiby Xu wrote: The debugging code in the following ifdef land - QL_ALL_DUMP - QL_REG_DUMP - QL_DEV_DUMP - QL_CB_DUMP - QL_IB_DUMP - QL_OB_DUMP becomes unnecessary because, - Device status and

Re: [PATCH v1 2/6] staging: qlge: coredump via devlink health reporter

2020-10-10 Thread Coiby Xu
On Sat, Oct 10, 2020 at 04:48:09PM +0900, Benjamin Poirier wrote: On 2020-10-08 19:58 +0800, Coiby Xu wrote: $ devlink health dump show DEVICE reporter coredump -p -j { "Core Registers": { "segment": 1,

Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-12 Thread Coiby Xu
On Thu, Oct 08, 2020 at 08:22:44AM -0400, Willem de Bruijn wrote: On Thu, Oct 8, 2020 at 7:58 AM Coiby Xu wrote: Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu @@ -4556,6 +4559,13 @@ static int qlge_probe

Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-12 Thread Coiby Xu
On Sat, Oct 10, 2020 at 10:48:55PM +0900, Benjamin Poirier wrote: On 2020-10-10 18:24 +0800, Coiby Xu wrote: On Sat, Oct 10, 2020 at 04:35:14PM +0900, Benjamin Poirier wrote: > On 2020-10-08 19:58 +0800, Coiby Xu wrote: > > Initialize devlink health dump framework for the dlge driv

Re: [PATCH v1 5/6] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land

2020-10-12 Thread Coiby Xu
On Sat, Oct 10, 2020 at 10:40:55PM +0900, Benjamin Poirier wrote: On 2020-10-10 18:00 +0800, Coiby Xu wrote: [...] > > Please also update drivers/staging/qlge/TODO accordingly. There is still > a lot of debugging code IMO (the netif_printk statements - kernel > tracing can be use

Re: [PATCH v1 2/6] staging: qlge: coredump via devlink health reporter

2020-10-12 Thread Coiby Xu
On Sat, Oct 10, 2020 at 10:22:30PM +0900, Benjamin Poirier wrote: On 2020-10-10 18:02 +0800, Coiby Xu wrote: [...] > > + do { \ > > + err = fill_seg_(fmsg, &dump->seg_hdr, dump->seg_regs); \ >

Re: [PATCH 3/3] [PATCH] staging: greybus: __u8 is sufficient for snd_ctl_elem_type_t and snd_ctl_elem_iface_t

2020-09-25 Thread Coiby Xu
On Thu, Sep 24, 2020 at 01:00:57PM +0200, Greg Kroah-Hartman wrote: On Thu, Sep 24, 2020 at 06:20:39PM +0800, Coiby Xu wrote: Use __8 to replace int and remove the unnecessary __bitwise type attribute. Found by sparse, $ make C=2 drivers/staging/greybus/ drivers/staging/greybus

Re: [greybus-dev] [PATCH 1/3] [PATCH] staging: greybus: fix warnings about endianness detected by sparse

2020-09-25 Thread Coiby Xu
On Thu, Sep 24, 2020 at 07:50:57AM -0500, Alex Elder wrote: On 9/24/20 5:20 AM, Coiby Xu wrote: This patch fix the following warnings from sparse, You need to address Greg's comment. But in general this looks good. I have one comment below, which you can address in v2. If you (or o

Re: [PATCH 3/3] [PATCH] staging: greybus: __u8 is sufficient for snd_ctl_elem_type_t and snd_ctl_elem_iface_t

2020-09-25 Thread Coiby Xu
On Thu, Sep 24, 2020 at 10:54:50AM +, David Laight wrote: From: Coiby Xu Sent: 24 September 2020 11:21 Use __8 to replace int and remove the unnecessary __bitwise type attribute. Found by sparse, ... diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h index

Re: [greybus-dev] [PATCH 3/3] [PATCH] staging: greybus: __u8 is sufficient for snd_ctl_elem_type_t and snd_ctl_elem_iface_t

2020-09-25 Thread Coiby Xu
On Fri, Sep 25, 2020 at 11:02:23AM -0500, Alex Elder wrote: On 9/25/20 9:11 AM, Coiby Xu wrote: On Thu, Sep 24, 2020 at 10:54:50AM +, David Laight wrote: From: Coiby Xu Sent: 24 September 2020 11:21 Use __8 to replace int and remove the unnecessary __bitwise type attribute. Found by

Re: [PATCH 3/3] [PATCH] staging: greybus: __u8 is sufficient for snd_ctl_elem_type_t and snd_ctl_elem_iface_t

2020-09-25 Thread Coiby Xu
On Fri, Sep 25, 2020 at 10:57:27AM -0500, Alex Elder wrote: On 9/25/20 9:07 AM, Coiby Xu wrote: On Thu, Sep 24, 2020 at 01:00:57PM +0200, Greg Kroah-Hartman wrote: On Thu, Sep 24, 2020 at 06:20:39PM +0800, Coiby Xu wrote: Use __8 to replace int and remove the unnecessary __bitwise type

[PATCH] staging: greybus: fix warnings detected by sparse

2020-08-23 Thread Coiby Xu
(different base types) drivers/staging/greybus/audio_topology.c:889:25:expected unsigned int access drivers/staging/greybus/audio_topology.c:889:25:got restricted __le32 [usertype] access Signed-off-by: Coiby Xu --- drivers/staging/greybus/audio_codec.c| 4 ++-- drivers/staging/greybus

Re: [PATCH] Bluetooth: fix "list_add double add" in hci_conn_complete_evt

2020-09-02 Thread Coiby Xu
appspot.com/bug?extid=dd768a260f7358adbaf9 Signed-off-by: Coiby Xu --- net/bluetooth/hci_event.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 4b7fc430793c..1233739ce760 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth

[PATCH v3] staging: qlge: fix build breakage with dumping enabled

2020-09-02 Thread Coiby Xu
5 |"%s: Routing Mask %d = 0x%.08x\n", | ^ | | | unsigned int Fixes: 0107635e15ac ("staging: qlge: replace pr_err with netdev_err") Reported-by: Benjamin Poirier Suggested-by: Benjamin Poirier Signed-off-by: Coiby Xu --- drivers/stag

Re: [PATCH v2] staging: qlge: fix build breakage with dumping enabled

2020-09-02 Thread Coiby Xu
On Thu, Aug 27, 2020 at 09:50:10AM +0900, Benjamin Poirier wrote: On 2020-08-27 07:27 +0800, Coiby Xu wrote: This fixes commit 0107635e15ac ("staging: qlge: replace pr_err with netdev_err") which introduced an build breakage of missing `struct ql_adapter *qdev` for some functions and

Re: [PATCH v3] staging: qlge: fix build breakage with dumping enabled

2020-09-04 Thread Coiby Xu
On Thu, Sep 03, 2020 at 12:49:18PM +0900, Benjamin Poirier wrote: On 2020-09-02 22:00 +0800, Coiby Xu wrote: This fixes commit 0107635e15ac ("staging: qlge: replace pr_err with netdev_err") which introduced an build breakage of missing `struct ql_adapter *qdev` for some functions and

[PATCH] Bluetooth: Initialize the TX queue lock when creating struct l2cap_chan in 6LOWPAN

2020-08-04 Thread Coiby Xu
uct l2cap_chan in 6LOWPAN to fix this problem. Reported-by: syzbot+fadfba6a911f6bf71...@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?extid=fadfba6a911f6bf71842 Signed-off-by: Coiby Xu --- net/bluetooth/6lowpan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/blueto

Re: [Linux-kernel-mentees] [PATCH] Bluetooth: Initialize the TX queue lock when creating struct l2cap_chan in 6LOWPAN

2020-08-04 Thread Coiby Xu
On Tue, Aug 04, 2020 at 11:42:53AM +0200, Greg KH wrote: On Tue, Aug 04, 2020 at 05:39:37PM +0800, Coiby Xu wrote: When L2CAP channel is destroyed by hci_unregister_dev, it will acquire the spin lock of the (struct l2cap_chan *)->tx_q list to delete all the buffers. But sometimes w

[RFC 1/3] Initialize devlink health dump framework for the dlge driver

2020-08-14 Thread Coiby Xu
Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu --- drivers/staging/qlge/Makefile | 2 +- drivers/staging/qlge/qlge.h| 9 +++ drivers/staging/qlge/qlge_health.c | 43

[RFC 2/3] staging: qlge: coredump via devlink health reporter

2020-08-14 Thread Coiby Xu
}, ... "Sem Registers": { "segment": 50, "values": [ 0,0,0,0 ] } } Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_health.c | 125 +++-- 1 file changed, 119 insertions(+), 6 deletions(-)

[RFC 3/3] staging: qlge: clean up code that dump info to dmesg

2020-08-14 Thread Coiby Xu
The related code are not necessary because, - Device status and general registers can be obtained by ethtool. - Coredump can be done via devlink health reporter. - Structure related to the hardware (struct ql_adapter) can be obtained by crash or drgn. Signed-off-by: Coiby Xu --- drivers

[PATCH v2 2/7] staging: qlge: Initialize devlink health dump framework

2020-10-14 Thread Coiby Xu
-off-by: Coiby Xu --- drivers/staging/qlge/Kconfig| 1 + drivers/staging/qlge/Makefile | 2 +- drivers/staging/qlge/qlge.h | 5 +++ drivers/staging/qlge/qlge_devlink.c | 31 +++ drivers/staging/qlge/qlge_devlink.h | 9 ++ drivers/staging/qlge/qlge_main.c

[PATCH v2 3/7] staging: qlge: coredump via devlink health reporter

2020-10-14 Thread Coiby Xu
}, ... "Sem Registers": { "segment": 50, "values": [ 0,0,0,0 ] } } Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_devlink.c | 130 ++-- 1 file changed, 124 insertions(+), 6 deletions(-)

[PATCH v2 4/7] staging: qlge: support force_coredump option for devlink health dump

2020-10-14 Thread Coiby Xu
With force_coredump module parameter set, devlink health dump will reset the MPI RISC first which takes 5 secs to be finished. Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_devlink.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/qlge/qlge_devlink.c b

[PATCH v2 5/7] staging: qlge: remove mpi_core_to_log which sends coredump to the kernel ring buffer

2020-10-14 Thread Coiby Xu
devlink health could be used to get coredump. No need to send so much data to the kernel ring buffer. Signed-off-by: Coiby Xu --- drivers/staging/qlge/TODO | 2 -- drivers/staging/qlge/qlge.h | 3 --- drivers/staging/qlge/qlge_dbg.c | 11 --- drivers/staging/qlge

[PATCH v2 6/7] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land

2020-10-14 Thread Coiby Xu
related to the hardware (struct ql_adapter) can be obtained by crash or drgn. Suggested-by: Benjamin Poirier Signed-off-by: Coiby Xu --- drivers/staging/qlge/TODO | 4 - drivers/staging/qlge/qlge.h | 82 drivers/staging/qlge/qlge_dbg.c | 688

[PATCH v2 7/7] staging: qlge: add documentation for debugging qlge

2020-10-14 Thread Coiby Xu
Instructions and examples on kernel data structures dumping and coredump. Signed-off-by: Coiby Xu --- .../networking/device_drivers/index.rst | 1 + .../device_drivers/qlogic/index.rst | 18 +++ .../networking/device_drivers/qlogic/qlge.rst | 118

Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-14 Thread Coiby Xu
On Tue, Oct 13, 2020 at 09:37:04AM +0900, Benjamin Poirier wrote: On 2020-10-12 19:24 +0800, Coiby Xu wrote: [...] > I think, but didn't check in depth, that in those drivers, the devlink > device is tied to the pci device and can exist independently of the > netdev, at leas

Re: [PATCH v2 2/7] staging: qlge: Initialize devlink health dump framework

2020-10-14 Thread Coiby Xu
On Wed, Oct 14, 2020 at 04:08:46PM +0300, Dan Carpenter wrote: On Wed, Oct 14, 2020 at 06:43:01PM +0800, Coiby Xu wrote: static int qlge_probe(struct pci_dev *pdev, const struct pci_device_id *pci_entry) { struct net_device *ndev = NULL; struct

Re: [PATCH v2 1/7] staging: qlge: replace ql_* with qlge_* to avoid namespace clashes with other qlogic drivers

2020-10-14 Thread Coiby Xu
On Thu, Oct 15, 2020 at 10:01:36AM +0900, Benjamin Poirier wrote: On 2020-10-14 18:43 +0800, Coiby Xu wrote: To avoid namespace clashes with other qlogic drivers and also for the sake of naming consistency, use the "qlge_" prefix as suggested in drivers/staging/qlge/TODO. Su

Re: [PATCH v2 1/7] staging: qlge: replace ql_* with qlge_* to avoid namespace clashes with other qlogic drivers

2020-10-14 Thread Coiby Xu
On Thu, Oct 15, 2020 at 12:26:28PM +0800, Coiby Xu wrote: On Thu, Oct 15, 2020 at 10:01:36AM +0900, Benjamin Poirier wrote: On 2020-10-14 18:43 +0800, Coiby Xu wrote: To avoid namespace clashes with other qlogic drivers and also for the sake of naming consistency, use the "qlge_"

Re: [PATCH v3 2/8] staging: qlge: Initialize devlink health dump framework

2020-10-20 Thread Coiby Xu
Hi, Thank you for testing this patch! On Tue, Oct 20, 2020 at 06:27:41PM +0800, Shung-Hsi Yu wrote: On Tue, Oct 20, 2020 at 04:57:11PM +0800, Shung-Hsi Yu wrote: Hi, This patch trigger the following KASAN error inside qlge_init_device(). [...] general protection fault, probably for non-canon

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

2020-10-21 Thread Coiby Xu
c_hid/parameters/polling_interval_{idle_ms,active_us}. Cc: Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190 Signed-off-by: Coiby Xu --- drivers/hid/i2c-hid/i2c-hid-core.c | 145 +++-- 1 file changed, 135 insertions(+), 10 deletions(-) diff --git a/driver

[PATCH] HID: i2c-hid: show the error of failing to fetch the HID Descriptor

2020-10-21 Thread Coiby Xu
i2c_hid_probe should notify the user of the error of failing to fetch the HID Descriptor instead of silently exiting. Link: https://forum.manjaro.org/t/elan-touchpad-working-in-live-but-not-in-native-os/31860/55 Cc: Barnabás Pőcze Signed-off-by: Coiby Xu --- drivers/hid/i2c-hid/i2c-hid-core.c

[PATCH] power: supply: olpc_battery: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Coiby Xu
SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- arch/x86/platform/olpc/olpc-xo15-sci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c b/arch/x86/platform/olpc/olpc-xo15-sci.c index 85f4638764d6

[PATCH 10/25] ASoC: tegra: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Coiby Xu
SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- sound/soc/tegra/tegra30_i2s.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c index db5a8587bfa4..df55b90c3cf4 100644 --- a

[PATCH 15/25] ASoC: stm32: sai: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Coiby Xu
SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- sound/soc/stm/stm32_sai.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/stm/stm32_sai.c b/sound/soc/stm/stm32_sai.c index 058757c721f0..40c9e554a3d7 100644 --- a/sound/soc/stm

[PATCH 11/25] ASoC: hdac: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Coiby Xu
SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- sound/soc/intel/skylake/skl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c index 8b993722f74e..da32d68080be 100644 --- a

  1   2   3   >