[PATCH] scsi: lpfc: fix typo

2020-08-20 Thread Kaige Li
Fix spelling mistake: "Cant" -> "Can't" Signed-off-by: Kaige Li --- drivers/scsi/lpfc/lpfc_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c index ae0a825..d6c07ee 100644

[PATCH] net: phy: mscc: Fix a couple of spelling mistakes "spcified" -> "specified"

2020-08-20 Thread Kaige Li
There are a couple of spelling mistakes in comment text. Fix these. Signed-off-by: Kaige Li --- drivers/net/phy/mscc/mscc_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/mscc/mscc_main.c b/drivers/net/phy/mscc/mscc_main.c index a4fbf3a..6bc7406

[RESEND] NTB: hw: amd: fix an issue about leak system resources

2020-08-10 Thread Kaige Li
The related system resources were not released when pci_set_dma_mask(), pci_set_consistent_dma_mask(), or pci_iomap() return error in the amd_ntb_init_pci() function. Add pci_release_regions() to fix it. Signed-off-by: Kaige Li --- changed commit massage. drivers/ntb/hw/amd/ntb_hw_amd.c | 1

Re: [RFC] ALSA: hda: Add workaround to adapt to Loongson 7A1000 controller

2020-07-31 Thread Kaige Li
On 07/31/2020 02:29 PM, Takashi Iwai wrote: On Fri, 31 Jul 2020 04:41:54 +0200, Kaige Li wrote: There's some issues that cause palyback without a sound on Loongson platform (3A3000 + 7A1000) with a Realtek ALC269 codec. After lengthy debugging sessions, we solved it by adding workaround

[RFC] ALSA: hda: Add workaround to adapt to Loongson 7A1000 controller

2020-07-30 Thread Kaige Li
There's some issues that cause palyback without a sound on Loongson platform (3A3000 + 7A1000) with a Realtek ALC269 codec. After lengthy debugging sessions, we solved it by adding workaround. Signed-off-by: Kaige Li --- sound/hda/hdac_controller.c| 63

[PATCH] NTB: hw: amd: Add missed pci_release_region

2020-07-24 Thread Kaige Li
The driver forgets to call pci_release_region() in init_pci failure. Add the missed call to fix it. Signed-off-by: Kaige Li --- drivers/ntb/hw/amd/ntb_hw_amd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index 88e1db6

Re: [PATCH 1/2] ALSA: hda/realtek: Fix headset mic on Loongson platform

2020-07-23 Thread Kaige Li
On 07/20/2020 09:58 AM, Kaige Li wrote: On 07/17/2020 02:57 PM, Takashi Iwai wrote: On Fri, 17 Jul 2020 04:51:31 +0200, Kaige Li wrote: Add pin quirks to enable use of the headset mic on Loongson platform. Signed-off-by: Kaige Li @@ -7654,6 +7663,7 @@ static const struct snd_pci_quirk

Re: [PATCH 1/2] ALSA: hda/realtek: Fix headset mic on Loongson platform

2020-07-19 Thread Kaige Li
On 07/17/2020 02:57 PM, Takashi Iwai wrote: On Fri, 17 Jul 2020 04:51:31 +0200, Kaige Li wrote: Add pin quirks to enable use of the headset mic on Loongson platform. Signed-off-by: Kaige Li @@ -7654,6 +7663,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK

[PATCH 2/2] ALSA: hda: Add support for Loongson 7A1000 controller

2020-07-16 Thread Kaige Li
Add the new PCI ID 0x0014 0x7a07 to support Loongson 7A1000 controller. Signed-off-by: Kaige Li --- sound/pci/hda/hda_intel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 1625721..ea1d535 100644 --- a/sound/pci/hda/hda_intel.c

[PATCH 1/2] ALSA: hda/realtek: Fix headset mic on Loongson platform

2020-07-16 Thread Kaige Li
Add pin quirks to enable use of the headset mic on Loongson platform. Signed-off-by: Kaige Li --- sound/pci/hda/patch_realtek.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 4c7e191..b227be3 100644 --- a/sound

Re: [PATCH RESEND] net/cisco: Fix a sleep-in-atomic-context bug in enic_init_affinity_hint()

2020-07-03 Thread Kaige Li
On 06/25/2020 12:59 AM, Jakub Kicinski wrote: On Wed, 24 Jun 2020 06:32:36 + Christian Benvenuti (benve) wrote: We/Cisco will also look into it, hopefully a small code reorg will be sufficient. Hi, Christian: I have seen some submissions and codes, and feel that spin_lock is

Re: [PATCH RESEND] net/cisco: Fix a sleep-in-atomic-context bug in enic_init_affinity_hint()

2020-06-23 Thread Kaige Li
On 06/24/2020 11:23 AM, David Miller wrote: From: Kaige Li Date: Wed, 24 Jun 2020 09:56:47 +0800 On 06/24/2020 06:26 AM, David Miller wrote: From: David Miller Date: Tue, 23 Jun 2020 14:33:11 -0700 (PDT) Calling a NIC driver open function from a context holding a spinlock is very much

Re: [PATCH RESEND] net/cisco: Fix a sleep-in-atomic-context bug in enic_init_affinity_hint()

2020-06-23 Thread Kaige Li
On 06/24/2020 04:50 AM, Jakub Kicinski wrote: On Tue, 23 Jun 2020 16:13:09 +0800 Kaige Li wrote: The kernel module may sleep with holding a spinlock. The function call paths (from bottom to top) are: [FUNC] zalloc_cpumask_var(GFP_KERNEL) drivers/net/ethernet/cisco/enic/enic_main.c, 125

Re: [PATCH RESEND] net/cisco: Fix a sleep-in-atomic-context bug in enic_init_affinity_hint()

2020-06-23 Thread Kaige Li
On 06/24/2020 06:26 AM, David Miller wrote: From: David Miller Date: Tue, 23 Jun 2020 14:33:11 -0700 (PDT) Calling a NIC driver open function from a context holding a spinlock is very much the real problem, so many operations have to sleep and in face that ->ndo_open() method is defined as

[PATCH RESEND] net/cisco: Fix a sleep-in-atomic-context bug in enic_init_affinity_hint()

2020-06-23 Thread Kaige Li
: enic_init_affinity_hint in enic_open drivers/net/ethernet/cisco/enic/enic_main.c, 2348: enic_open in enic_reset drivers/net/ethernet/cisco/enic/enic_main.c, 2341: spin_lock in enic_reset To fix this bug, GFP_KERNEL is replaced with GFP_ATOMIC. Signed-off-by: Kaige Li --- +cc net...@vger.kernel.org

Re: [PATCH RESEND] net/cisco: Fix a sleep-in-atomic-context bug in enic_init_affinity_hint()

2020-06-23 Thread Kaige Li
On 06/23/2020 12:09 PM, David Miller wrote: Networking changes must be submitted with net...@vger.kernel.org Thanks for your reply, sorry for that. I will resend this patch. Thank you.

[PATCH RESEND] net/cisco: Fix a sleep-in-atomic-context bug in enic_init_affinity_hint()

2020-06-22 Thread Kaige Li
: enic_init_affinity_hint in enic_open drivers/net/ethernet/cisco/enic/enic_main.c, 2348: enic_open in enic_reset drivers/net/ethernet/cisco/enic/enic_main.c, 2341: spin_lock in enic_reset To fix this bug, GFP_KERNEL is replaced with GFP_ATOMIC. Signed-off-by: Kaige Li --- drivers/net/ethernet/cisco

[PATCH] net/cisco: Fix a sleep-in-atomic-context bug in enic_init_affinity_hint()

2020-06-22 Thread Kaige Li
: enic_init_affinity_hint in enic_open drivers/net/ethernet/cisco/enic/enic_main.c, 2348: enic_open in enic_reset drivers/net/ethernet/cisco/enic/enic_main.c, 2341: spin_lock in enic_reset To fix this bug, GFP_KERNEL is replaced with GFP_ATOMIC. Signed-off-by: Kaige Li --- drivers/net/ethernet/cisco

Re: [PATCH] perf/core: Do not initialise statics to 0 and add space before '{'

2020-05-08 Thread Kaige Li
Ok, I will pay attation. thank you. On 05/08/2020 04:25 PM, Peter Zijlstra wrote: Checkpatch can sod off. Please don't ever submit pure checkpatch patches to anything I maintain

[PATCH] perf/core: Do not initialise statics to 0 and add space before '{'

2020-05-07 Thread Kaige Li
-off-by: Kaige Li --- kernel/events/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index 80cf996..8d47d30 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -10618,7 +10618,7 @@ int perf_pmu_register(struct pmu