Re: 3.11-rc7:BUG: soft lockup

2013-09-01 Thread Ding Tianhong
On 2013/9/2 14:06, Baoquan He wrote: > Hi both, > > Thanks for your patches. I tried to test your patches, first the 2nd > one, namely Hillf's patch, it's OK. Then when I wanted to reproduce and > test Cong's patch, it failed to happen again. > > I remember this bug happened randomly at the v

Re: 3.11-rc7:BUG: soft lockup

2013-09-02 Thread Ding Tianhong
On 2013/9/2 14:06, Baoquan He wrote: > Hi both, > > Thanks for your patches. I tried to test your patches, first the 2nd > one, namely Hillf's patch, it's OK. Then when I wanted to reproduce and > test Cong's patch, it failed to happen again. > > I remember this bug happened randomly at the v

Re: 3.11-rc7:BUG: soft lockup

2013-09-02 Thread Ding Tianhong
On 2013/9/2 16:24, Baoquan He wrote: > Hi Tianhong, > > I applied your patch and execute below cmd. > Then keyboard inputting problems happened, > I can't enter user/password correctly, then reboot again, it's OK now. Thanks for your work, I don't understand that the keyboard problem is the pat

Re: [PATCH] ipv6: ipv6_create_tempaddr cleanup

2013-09-02 Thread Ding Tianhong
missed that. Thanks a lot! Acked-by: Hannes Frederic Sowa Acked-by: Ding Tianhong -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- To u

Re: 3.11-rc6 genetlink locking fix offends lockdep

2013-08-19 Thread Ding Tianhong
On 2013/8/19 16:00, Johannes Berg wrote: > >> 3.11-rc6's commit 58ad436fcf49 ("genetlink: fix family dump race") >> gives me the lockdep trace below at startup. > > Hmm. Yes, I see now how this happens, not sure why I didn't run into it. > > The problem is that genl_family_rcv_msg() is called wi

[PATCH net 2/2] net: ixgbe: Use new IXGBE_FLAG2_ROOT_NO_RELAXED_ORDERING flag

2017-08-16 Thread Ding Tianhong
to do next. Signed-off-by: Ding Tianhong --- drivers/net/ethernet/intel/ixgbe/ixgbe.h| 1 + drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c | 37 - drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 32 +++-- drivers/net/ethernet/intel/ixgbe/ixgbe_m

[PATCH net 0/2] net: ixgbe: Use new flag to disable Relaxed Ordering

2017-08-16 Thread Ding Tianhong
could query PCIe configuration space to determine if it can send TLPs to Root Port with the Relaxed Ordering Attributes set. The ixgbe driver could use this flag to determine if it can send TLPs to Root Port with the Relaxed Ordering Attributes set. Ding Tianhong (2): Revert commit 1a8b6d76dc5b

[PATCH net 1/2] Revert commit 1a8b6d76dc5b ("net:add one common config...")

2017-08-16 Thread Ding Tianhong
ot;net:add one common config...") did, so revert this commit. Signed-off-by: Ding Tianhong --- arch/Kconfig| 3 --- arch/sparc/Kconfig | 1 - drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 2 +- 3 files changed, 1 insertion(

Re: [PATCH net RESEND] PCI: fix oops when try to find Root Port for a PCI device

2017-08-16 Thread Ding Tianhong
On 2017/8/17 4:59, David Miller wrote: > From: Bjorn Helgaas > Date: Wed, 16 Aug 2017 15:02:37 -0500 > >> Your fix looks right to me. > > Someone please submit this fix formally because this change is now in > Linus's tree. > I will send it. > Thank you. > > . >

Re: [PATCH net 0/2] net: ixgbe: Use new flag to disable Relaxed Ordering

2017-08-16 Thread Ding Tianhong
On 2017/8/17 1:56, David Miller wrote: > From: Ding Tianhong > Date: Wed, 16 Aug 2017 17:41:45 +0800 > >> The new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING has been added >> to indicate that Relaxed Ordering Attributes (RO) should not >> be used for Transaction Layer Pa

[PATCH net] PCI: fix the return value for the pci_find_pcie_root_port()

2017-08-16 Thread Ding Tianhong
Root Port for a PCI device") Suggested-by: Thierry Reding Suggested-by: Bjorn Helgaas Signed-off-by: Thierry Reding Signed-off-by: Ding Tianhong --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 7e2022

[PATCH net v2 2/2] net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-16 Thread Ding Tianhong
determine whether we should use the Relaxed Ordering Attributes or not, so use this new way in the ixgbe driver. Signed-off-by: Ding Tianhong --- drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c | 37 - drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 32

[PATCH net v2 0/2] net: ixgbe: Use new flag to disable Relaxed Ordering

2017-08-16 Thread Ding Tianhong
x27;s suggestion, remove the new ixgbe flag2 and only check the bit4 in the PCIe Device Control register. Ding Tianhong (2): Revert commit 1a8b6d76dc5b ("net:add one common config...") net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

[PATCH net v2 1/2] Revert commit 1a8b6d76dc5b ("net:add one common config...")

2017-08-16 Thread Ding Tianhong
ot;net:add one common config...") did, so revert this commit. Signed-off-by: Ding Tianhong --- arch/Kconfig| 3 --- arch/sparc/Kconfig | 1 - drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 2 +- 3 files changed, 1 insertion(

Re: [PATCH net] PCI: fix the return value for the pci_find_pcie_root_port()

2017-08-17 Thread Ding Tianhong
On 2017/8/17 18:51, Thierry Reding wrote: > On Thu, Aug 17, 2017 at 10:25:30AM +0800, Ding Tianhong wrote: >> The pci_find_pcie_root_port() would return NULL if the given >> dev is already a Root Port, it looks like unfriendly to the >> PCIe Root Port device, Thierry and

Re: [PATCH net] PCI: fix the return value for the pci_find_pcie_root_port()

2017-08-17 Thread Ding Tianhong
On 2017/8/17 21:30, Thierry Reding wrote: > On Thu, Aug 17, 2017 at 08:40:16PM +0800, Ding Tianhong wrote: >> >> >> On 2017/8/17 18:51, Thierry Reding wrote: >>> On Thu, Aug 17, 2017 at 10:25:30AM +0800, Ding Tianhong wrote: >>>> The pci_find_pcie_

Re: [PATCH net v2 2/2] net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-17 Thread Ding Tianhong
On 2017/8/17 22:17, Tantilov, Emil S wrote: >> ret_val = ixgbe_start_hw_generic(hw); >> >> -#ifndef CONFIG_SPARC >> -/* Disable relaxed ordering */ >> -for (i = 0; ((i < hw->mac.max_tx_queues) && >> - (i < IXGBE_DCA_MAX_QUEUES_82598)); i++) { >> -regval = IXGBE_R

Re: [PATCH net v2 2/2] net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-17 Thread Ding Tianhong
On 2017/8/18 13:04, Tantilov, Emil S wrote: >> -Original Message- >> From: Ding Tianhong [mailto:dingtianh...@huawei.com] >> Sent: Thursday, August 17, 2017 5:39 PM >> To: Tantilov, Emil S ; da...@davemloft.net; >> Kirsher, Jeffrey T ; keesc...

[PATCH v3 net 1/2] Revert commit 1a8b6d76dc5b ("net:add one common config...")

2017-08-17 Thread Ding Tianhong
ot;net:add one common config...") did, so revert this commit. Signed-off-by: Ding Tianhong --- arch/Kconfig| 3 --- arch/sparc/Kconfig | 1 - drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 2 +- 3 files changed, 1 insertion(

[PATCH v3 net 0/2] net: ixgbe: Use new flag to disable Relaxed Ordering

2017-08-17 Thread Ding Tianhong
program according Alex's suggestion, remove the new ixgbe flag2 and only check the bit4 in the PCIe Device Control register. v3: Remove the code that clears the bits in DCA_T/RXCTRL, relaxed ordering should be enabled by the HW when the bus allow it. Ding Tianhong (2): Revert c

[PATCH v3 net 2/2] net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-17 Thread Ding Tianhong
determine whether we should use the Relaxed Ordering Attributes or not, so use this new way in the ixgbe driver. Signed-off-by: Ding Tianhong --- drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c | 22 -- drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 19

Re: [PATCH v5 3/3] net/cxgb4: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-06-21 Thread Ding Tianhong
On 2017/6/22 2:28, Alexander Duyck wrote: > On Sun, Jun 18, 2017 at 11:53 PM, Ding Tianhong > wrote: >> From: Casey Leedom >> >> cxgb4 Ethernet driver now queries PCIe configuration space to determine >> if it can send TLPs to it with the Relaxed Ordering Attr

[PATCH v6 1/3] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-06-22 Thread Ding Tianhong
Control Credit Performance Problem and AMD A1100 ARM ("SEATTLE") Root Complex Ports which don't obey PCIe 3.0 ordering rules which can lead to Data Corruption. Signed-off-by: Casey Leedom Signed-off-by: Ding Tianhong --- drivers/pci/quirks.c | 38

[PATCH v6 3/3] net/cxgb4: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-06-22 Thread Ding Tianhong
From: Casey Leedom cxgb4 Ethernet driver now queries PCIe configuration space to determine if it can send TLPs to it with the Relaxed Ordering Attribute set. Signed-off-by: Casey Leedom Signed-off-by: Ding Tianhong --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net

[PATCH v6 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-06-22 Thread Ding Tianhong
PCI_DEV_FLAGS_NO_RELAXED_ORDERING net/cxgb4: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag Ding Tianhong (1): PCI: Enable PCIe Relaxed Ordering if supported drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 17 ++ drivers/net/ethernet

[PATCH v6 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-22 Thread Ding Tianhong
ause we are probably running in a guest machine. Signed-off-by: Ding Tianhong --- drivers/pci/pci.c | 29 + drivers/pci/probe.c | 37 + include/linux/pci.h | 2 ++ 3 files changed, 68 insertions(+) diff --git a/drivers/pci/pci.c

[PATCH 1/2] arm64: hip05-d02: Document devicetree bindings for Hisilicon Hip05-D02 Board

2015-08-29 Thread Ding Tianhong
This patch adds documentation for the devicetree bindings used by the DT files of Hisilicon Hip05-D02 development board. Signed-off-by: Ding Tianhong Signed-off-by: Kefeng Wang --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff

[PATCH 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-08-29 Thread Ding Tianhong
Add initial dtsi file to support Hisilicon Hip05-D02 Board with support of CPUs in four clusters and each cluster has quard Cortex-A57. Also add dts file to support Hip05-D02 development board. Signed-off-by: Ding Tianhong Signed-off-by: Kefeng Wang --- arch/arm64/boot/dts/hisilicon/Makefile

[PATCH 0/2] arm64: Support Hisilicon Hip05-D02 board

2015-08-29 Thread Ding Tianhong
, and the CPU hotplug is also working now, you can download and compile the latest firmware based on the following link to run this patch set. https://github.com/hisilicon/estuary/blob/master/README Ding Tianhong (2): arm64: hip05-d02: Document devicetree bindings for Hisilicon Hip05-D02 Board

[PATCH 1/2] arm64: hip05-d02: Document devicetree bindings for Hisilicon Hip05-D02 Board

2015-08-29 Thread Ding Tianhong
This patch adds documentation for the devicetree bindings used by the DT files of Hisilicon Hip05-D02 development board. Signed-off-by: Ding Tianhong Signed-off-by: Kefeng Wang --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff

[PATCH 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-08-29 Thread Ding Tianhong
Add initial dtsi file to support Hisilicon Hip05-D02 Board with support of CPUs in four clusters and each cluster has quard Cortex-A57. Also add dts file to support Hip05-D02 development board. Signed-off-by: Ding Tianhong Signed-off-by: Kefeng Wang --- arch/arm64/boot/dts/hisilicon/Makefile

[PATCH 0/2] arm64: Support Hisilicon Hip05-D02 board

2015-08-29 Thread Ding Tianhong
, and the CPU hotplug is also working now, you can download and compile the latest firmware based on the following link to run this patch set. https://github.com/hisilicon/estuary/blob/master/README Ding Tianhong (2): arm64: hip05-d02: Document devicetree bindings for Hisilicon Hip05-D02 Board

Re: [PATCH 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-08-31 Thread Ding Tianhong
On 2015/8/31 21:12, Leo Yan wrote: > On Sat, Aug 29, 2015 at 04:52:41PM +0800, Ding Tianhong wrote: >> Add initial dtsi file to support Hisilicon Hip05-D02 Board with >> support of CPUs in four clusters and each cluster has quard Cortex-A57. >> >> Also add dts file to su

Re: [PATCH 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-08-31 Thread Ding Tianhong
On 2015/8/31 22:40, Leo Yan wrote: > On Mon, Aug 31, 2015 at 09:44:38PM +0800, Ding Tianhong wrote: >> On 2015/8/31 21:12, Leo Yan wrote: >>> On Sat, Aug 29, 2015 at 04:52:41PM +0800, Ding Tianhong wrote: >>>> Add initial dtsi file to support Hisilicon Hip05-D02 Boar

Re: [PATCH 0/2] arm64: Support Hisilicon Hip05-D02 board

2015-09-05 Thread Ding Tianhong
On 2015/9/5 17:18, Marc Zyngier wrote: > On Sat, 5 Sep 2015 10:58:57 +0800 > Ding Tianhong wrote: > >> Hip05-D02 Development Board is based on Cortex-A57, this patchset >> contains initial support for Hip05-D02 Soc and Board. Initial support >> is minimal and includes

Re: [PATCH 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-09-05 Thread Ding Tianhong
On 2015/9/5 17:28, Marc Zyngier wrote: > On Sat, 5 Sep 2015 10:58:59 +0800 > Ding Tianhong wrote: > >> Add initial dtsi file to support Hisilicon Hip05-D02 Board with >> support of CPUs in four clusters and each cluster has quard Cortex-A57. >> >> Also

[PATCH v3 1/2] arm64: hip05-d02: Document devicetree bindings for Hisilicon Hip05-D02 Board

2015-09-06 Thread Ding Tianhong
This patch adds documentation for the devicetree bindings used by the DT files of Hisilicon Hip05-D02 development board. Signed-off-by: Ding Tianhong --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation

[PATCH v3 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-09-06 Thread Ding Tianhong
Add initial dtsi file to support Hisilicon Hip05-D02 Board with support of CPUs in four clusters and each cluster has quard Cortex-A57. Also add dts file to support Hip05-D02 development board. Signed-off-by: Ding Tianhong Signed-off-by: Kefeng Wang --- arch/arm64/boot/dts/hisilicon/Makefile

[PATCH v3 0/2] arm64: Support Hisilicon Hip05-D02 board

2015-09-06 Thread Ding Tianhong
to 256k. v1->v2: - 1. Change the compatible name for per CPU. 2. Remove the GIC_CPU_MASK_SIMPLE(xx) which is not used for gicv3 from hip05.dtsi. Ding Tianhong (2): arm64: hip05-d02: Document devicetree bindings for Hisilicon Hip05-D02 Board arm64: dts: add dts files for Hisilicon

Re: Problem about CPU stalling in hrtimer_intterrupts()

2015-10-22 Thread Ding Tianhong
On 2015/10/22 15:43, Thomas Gleixner wrote: > On Thu, 22 Oct 2015, Yang Yingliang wrote: >> I use the kernel-4.1.6 running on arm64. >> My testcase is that it calls clock_settime and clock_adjtime alternately with >> random params on each core. My system has 32 cores. >> >> I found the cpu stalling

Re: [PATCH 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-09-01 Thread Ding Tianhong
Hi,Marc: Can you check this, I am not sure whether the GIC_CPU_MASK_SIMPLE(xx) is used for gic-v3, maybe we should remove it, thanks. Ding On 2015/8/31 21:44, Ding Tianhong wrote: > On 2015/8/31 21:12, Leo Yan wrote: >> On Sat, Aug 29, 2015 at 04:52:41PM +0800, Ding Tianhong wrote

Re: [PATCH 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-09-02 Thread Ding Tianhong
On 2015/9/2 15:58, Marc Zyngier wrote: > [Don't top-post, this is very annoying] > > On 02/09/15 05:28, Ding Tianhong wrote: >> Hi,Marc: >> >> Can you check this, I am not sure whether the GIC_CPU_MASK_SIMPLE(xx) >> is used for gic-v3, maybe we shou

[PATCH 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-09-04 Thread Ding Tianhong
Add initial dtsi file to support Hisilicon Hip05-D02 Board with support of CPUs in four clusters and each cluster has quard Cortex-A57. Also add dts file to support Hip05-D02 development board. Signed-off-by: Ding Tianhong Signed-off-by: Kefeng Wang --- arch/arm64/boot/dts/hisilicon/Makefile

[PATCH 1/2] arm64: hip05-d02: Document devicetree bindings for Hisilicon Hip05-D02 Board

2015-09-04 Thread Ding Tianhong
This patch adds documentation for the devicetree bindings used by the DT files of Hisilicon Hip05-D02 development board. Signed-off-by: Ding Tianhong --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation

[PATCH 0/2] arm64: Support Hisilicon Hip05-D02 board

2015-09-04 Thread Ding Tianhong
is not used for gicv3 from hip05.dtsi. Ding Tianhong (2): arm64: hip05-d02: Document devicetree bindings for Hisilicon Hip05-D02 Board arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board .../bindings/arm/hisilicon/hisilicon.txt | 4 + arch/arm64/boot/

Re: [patch 4/5] net: hip04: Make tx coalesce timer actually work

2015-04-14 Thread Ding Tianhong
On 2015/4/14 6:08, Thomas Gleixner wrote: > On Tue, 14 Apr 2015, Arnd Bergmann wrote: >> On Monday 13 April 2015 23:42:03 Thomas Gleixner wrote: Question: this looks to me like it sets both the minimum and maximum time to priv->tx_coalesce_usecs/2, when the intention was to set

Re: [patch v2] net: hip04: Make tx coalesce timer actually work

2015-04-14 Thread Ding Tianhong
he absolut expiry time (now + expiry). > > So once the timer expired, a new call to hrtimer_start_expires results > in an immidiately expired timer, because the expiry value is > already in the past. > > Use the proper mechanisms to (re)start the timer in the intended way. > Ack

Re: [PATCH v12 13/14] mm/vmalloc: Hugepage vmalloc mappings

2021-02-18 Thread Ding Tianhong
Hi Nicholas: I met some problem for this patch, like this: kva = vmalloc(3*1024k); remap_vmalloc_range(xxx, kva, xxx) It failed because that the check for page_count(page) is null so return, it break the some logic for current modules. because the new huge page is not valid for composed page.

Re: [PATCH v12 13/14] mm/vmalloc: Hugepage vmalloc mappings

2021-02-19 Thread Ding Tianhong
On 2021/2/19 15:45, Nicholas Piggin wrote: > Excerpts from Ding Tianhong's message of February 19, 2021 1:45 pm: >> Hi Nicholas: >> >> I met some problem for this patch, like this: >> >> kva = vmalloc(3*1024k); >> >> remap_vmalloc_range(xxx, kva, xxx) >> >> It failed because that the check for page

Re: [PATCH v12 01/14] ARM: mm: add missing pud_page define to 2-level page tables

2021-02-02 Thread Ding Tianhong
On 2021/2/2 19:47, Ding Tianhong wrote: > On 2021/2/2 19:13, Russell King - ARM Linux admin wrote: >> On Tue, Feb 02, 2021 at 09:05:02PM +1000, Nicholas Piggin wrote: >>> diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h >>> index c02f24

Re: [PATCH v12 01/14] ARM: mm: add missing pud_page define to 2-level page tables

2021-02-02 Thread Ding Tianhong
On 2021/2/2 19:13, Russell King - ARM Linux admin wrote: > On Tue, Feb 02, 2021 at 09:05:02PM +1000, Nicholas Piggin wrote: >> diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h >> index c02f24400369..d63a5bb6bd0c 100644 >> --- a/arch/arm/include/asm/pgtable.h >> +++ b/arc

Re: [PATCH v9 11/12] mm/vmalloc: Hugepage vmalloc mappings

2020-12-25 Thread Ding Tianhong
> +again: > + size = PAGE_ALIGN(size); > + area = __get_vm_area_node(size, align, VM_ALLOC | VM_UNINITIALIZED | > vm_flags, start, end, node, gfp_mask, caller); > if (!area) > goto fail; > > - addr = __vmalloc_area_node(area, gfp_mas

Re: [PATCH v11 12/13] mm/vmalloc: Hugepage vmalloc mappings

2021-01-26 Thread Ding Tianhong
On 2021/1/26 12:45, Nicholas Piggin wrote: > Support huge page vmalloc mappings. Config option HAVE_ARCH_HUGE_VMALLOC > enables support on architectures that define HAVE_ARCH_HUGE_VMAP and > supports PMD sized vmap mappings. > > vmalloc will attempt to allocate PMD-sized pages if allocating PMD si

Re: [PATCH v11 12/13] mm/vmalloc: Hugepage vmalloc mappings

2021-01-26 Thread Ding Tianhong
On 2021/1/26 17:47, Nicholas Piggin wrote: > Excerpts from Ding Tianhong's message of January 26, 2021 4:59 pm: >> On 2021/1/26 12:45, Nicholas Piggin wrote: >>> Support huge page vmalloc mappings. Config option HAVE_ARCH_HUGE_VMALLOC >>> enables support on architectures that define HAVE_ARCH_HUGE_

Re: [PATCH v11 05/13] mm: HUGE_VMAP arch support cleanup

2021-01-26 Thread Ding Tianhong
Reviewed-by: Ding Tianhong On 2021/1/26 12:45, Nicholas Piggin wrote: > This changes the awkward approach where architectures provide init > functions to determine which levels they can provide large mappings for, > to one where the arch is queried for each call. > > This r

Re: [PATCH v9 05/12] mm: HUGE_VMAP arch support cleanup

2021-01-04 Thread Ding Tianhong
On 2020/12/5 14:57, Nicholas Piggin wrote: > This changes the awkward approach where architectures provide init > functions to determine which levels they can provide large mappings for, > to one where the arch is queried for each call. > > This removes code and indirection, and allows constant-fo

Re: [PATCH v11 01/13] mm/vmalloc: fix HUGE_VMAP regression by enabling huge pages in vmalloc_to_page

2021-01-27 Thread Ding Tianhong
On 2021/1/26 12:44, Nicholas Piggin wrote: > vmalloc_to_page returns NULL for addresses mapped by larger pages[*]. > Whether or not a vmap is huge depends on the architecture details, > alignments, boot options, etc., which the caller can not be expected > to know. Therefore HUGE_VMAP is a regressi

Re: [PATCH net RESEND] vlan: don't allow to add VLAN on VLAN device

2014-03-04 Thread Ding Tianhong
On 2014/3/5 8:10, Ben Hutchings wrote: > On Thu, 2014-02-27 at 19:45 -0800, John Fastabend wrote: >> On 2/27/2014 6:43 PM, Ding Tianhong wrote: >>> I run these steps: >>> >>> modprobe 8021q >>> vconfig add eth2 20 >>> vconfig add eth2.20 20 >

[PATCH net] vlan: don't allow to add VLAN on VLAN device

2014-02-27 Thread Ding Tianhong
_addr_lock again, so deadlock happened. Don't allow to add vlan on vlan dev to fix this problem. Signed-off-by: Ding Tianhong --- net/8021q/vlan.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 16fb0f4..052d201 100644 --- a/net/8021q/vlan

Re: [PATCH net] vlan: don't allow to add VLAN on VLAN device

2014-02-27 Thread Ding Tianhong
On 2014/2/28 10:08, Ding Tianhong wrote: > I run these steps: > > modprobe 8021q > vconfig add eth2 20 > vconfig add eth2.20 20 > ifconfig eth2 xx.xx.xx.xx > > then the Call Trace happened: > > [32524.386288] = >

[PATCH net RESEND] vlan: don't allow to add VLAN on VLAN device

2014-02-27 Thread Ding Tianhong
_addr_lock again, so deadlock happened. Don't allow to add vlan on vlan dev to fix this problem. Signed-off-by: Ding Tianhong --- net/8021q/vlan.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 16fb0f4..052d201 100644 --- a/net/8021q/vlan

Re: [PATCH net RESEND] vlan: don't allow to add VLAN on VLAN device

2014-02-27 Thread Ding Tianhong
On 2014/2/28 11:45, John Fastabend wrote: > On 2/27/2014 6:43 PM, Ding Tianhong wrote: >> I run these steps: >> >> modprobe 8021q >> vconfig add eth2 20 >> vconfig add eth2.20 20 >> ifconfig eth2 xx.xx.x

Re: [PATCH net RESEND] vlan: don't allow to add VLAN on VLAN device

2014-02-27 Thread Ding Tianhong
On 2014/2/28 13:41, Florian Fainelli wrote: > 2014-02-27 21:26 GMT-08:00 Ding Tianhong : >> On 2014/2/28 11:45, John Fastabend wrote: >>> On 2/27/2014 6:43 PM, Ding Tianhong wrote: >>>> I run these steps: >>>> >>>> modprobe 8021q >>>

Re: [PATCH] bonding: Inactive slaves should keep inactive flag's value to 1.

2014-03-20 Thread Ding Tianhong
On 2014/3/20 16:51, Zheng Li wrote: > Except bond mode 1, in other bond modes, inactive slaves should keep inactive > flag to > 1 to refuse to receive broadcast packets. Now, active slave send broadcast > packets > (for example ARP requests) which will arrive inactive slaves on same host > from

Re: [PATCH] bonding: Inactive slaves should keep inactive flag's value to 1.

2014-03-21 Thread Ding Tianhong
On 2014/3/21 10:39, zheng.li wrote: > 于 2014年03月21日 01:02, Jay Vosburgh 写道: >> Zheng Li wrote: >> >>> Except bond mode 1, in other bond modes, inactive slaves should keep >>> inactive flag to 1 to refuse to receive broadcast packets. Now, active >>> slave send broadcast packets (for example ARP re

Re: [PATCH net-next 0/3] bonding: More ether_addr_copy and neatenings.

2014-02-18 Thread Ding Tianhong
-- > drivers/net/bonding/bond_main.c | 6 +++--- > 3 files changed, 21 insertions(+), 23 deletions(-) > Reviewed-by: Ding Tianhong -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More m

Re: [PATCH v3 13/19] media: dvb_core: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
On 2014/1/7 21:54, Mauro Carvalho Chehab wrote: > Em Thu, 26 Dec 2013 19:09:10 +0800 > Ding Tianhong escreveu: > >> On 2013/12/25 18:57, Sergei Shtylyov wrote: >>> Hello. >>> >>> On 25-12-2013 7:29, Ding Tianhong wrote: >>> >>>> Use

[PATCH v3.6 02/19] net: pcnet: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal to instead of memcmp. Cc: Don Fry Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ding Tianhong --- drivers/net/ethernet/amd/pcnet32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net

[PATCH v3.6 14/19] hostap: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Jouni Malinen Cc: John W. Linville Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Weilong Chen Signed-off-by: Ding Tianhong --- drivers/net/wireless/hostap

[PATCH v3.6 08/19] ozwpan: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Rupesh Gujare Cc: Greg Kroah-Hartman Cc: de...@driverdev.osuosl.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Tan Xiaojun Signed-off-by: Ding Tianhong --- drivers/staging/ozwpan/ozcdev.c | 2 +- drivers/staging/ozwpan

[PATCH v3.6 18/19] rtlwifi: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal_unaligned instead of memcmp. Cc: Larry Finger Cc: Chaoming Li Cc: John W. Linville Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Weilong Chen Signed-off-by: Ding Tianhong --- drivers

[PATCH v3.6 13/19] media: dvb_core: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Yang Yingliang Signed-off-by: Ding Tianhong Acked-by: Mauro Carvalho Chehab --- drivers/media/dvb-core/dvb_net.c | 10

[PATCH v3.6 05/19] ppp: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal to instead of memcmp. Cc: Michal Ostrowski Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ding Tianhong --- drivers/net/ppp/pppoe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ppp

[PATCH v3.6 07/19] zd1211rw: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Daniel Drake Cc: Ulrich Kunitz Cc: "John W. Linville" Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Tan Xiaojun Signed-off-by: Ding Tianhong --- d

[PATCH v3.6 12/19] isdn: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Karsten Keil Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Yang Yingliang Signed-off-by: Ding Tianhong --- drivers/isdn/i4l/isdn_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3.6 04/19] hamradio: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal to instead of memcmp. Cc: Joerg Reuter Cc: linux-h...@vger.kernel.org Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ding Tianhong --- drivers/net/hamradio/bpqether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v3.6 09/19] infiniband: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use the possibly more efficient ether_addr_equal to instead of memcmp. Cc: Roland Dreier Cc: Sean Hefty Cc: Hal Rosenstock Cc: Faisal Latif Cc: linux-r...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Wang Weidong Signed-off-by: Ding Tianhong --- drivers/infiniband/hw/nes

[PATCH v3.6 10/19] mac8011: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use the possibly more efficient ether_addr_equal to instead of memcmp. Cc: Johannes Berg Cc: John W. Linville Cc: David Miller Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-by: Wang Weidong Signed-off-by: Ding Tianhong --- net/mac80211/iface.c | 7 +++ 1 file

[PATCH v3.6 00/19] slight optimization of addr compare for some modules

2014-01-07 Thread Ding Tianhong
Carvalho Chehab Best Regards Ding Ding Tianhong (5): net: freescale: remove unused compare_addr() net: pcnet: slight optimization of addr compare net: atl1: slight optimization of addr compare hamradio: slight optimization of addr compare ppp: slight optimization of addr compare

[PATCH v3.6 06/19] batman-adv: use batadv_compare_eth for concise

2014-01-07 Thread Ding Tianhong
Signed-off-by: Ding Tianhong Acked-by: Antonio Quartulli --- net/batman-adv/originator.c| 2 +- net/batman-adv/translation-table.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c index 8ab1434..803ab4b 100644

[PATCH v3.6 01/19] net: freescale: remove unused compare_addr()

2014-01-07 Thread Ding Tianhong
The function did not be used any more, so remove it. Cc: Li Yang Cc: net...@vger.kernel.org Cc: linuxppc-...@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ding Tianhong --- drivers/net/ethernet/freescale/ucc_geth.c | 5 - 1 file changed, 5 deletions(-) diff --git a

[PATCH v3.6 17/19] mwifiex: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Bing Zhao Cc: John W. Linville Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Weilong Chen Signed-off-by: Ding Tianhong --- drivers/net/wireless/mwifiex/11n.c

[PATCH v3.6 03/19] net: atl1: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use the recently added and possibly more efficient ether_addr_equal_unaligned to instead of memcmp. Cc: Jay Cliburn Cc: Chris Snook Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Weilong Chen Signed-off-by: Ding Tianhong --- drivers/net/ethernet/atheros/atlx/atl1

[PATCH v3.6 15/19] cw1200: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Solomon Peachy Cc: John W. Linville Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Weilong Chen Signed-off-by: Ding Tianhong --- drivers/net/wireless/cw1200

Re: [PATCH v3.5 17/19] mwifiex: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
On 2014/1/8 10:50, Bing Zhao wrote: > Hi Ding, > >> Use possibly more efficient ether_addr_equal >> instead of memcmp. > >> @@ -782,8 +782,7 @@ static int mwifiex_ret_ibss_coalescing_status(struct >> mwifiex_private *priv, >> } >> >> /* If BSSID is diff, modify current BSS parameters *

[PATCH v3.6 11/19] atm: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Chas Williams Cc: linux-atm-gene...@lists.sourceforge.net Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Yang Yingliang Signed-off-by: Ding Tianhong --- drivers/atm/nicstar.c | 4 ++-- 1 file

[PATCH v3.6 16/19] ipw2x00: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Stanislav Yakovlev Cc: John W. Linville Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Weilong Chen Signed-off-by: Ding Tianhong --- drivers/net/wireless/ipw2x00

[PATCH v3.6 19/19] wireless: slight optimization of addr compare

2014-01-07 Thread Ding Tianhong
Use possibly more efficient ether_addr_equal or ether_addr_equal_unaligned instead of memcmp. Cc: John W. Linville Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Weilong Chen Signed-off-by: Ding Tianhong --- drivers/net/wireless

Re: [B.A.T.M.A.N.] [PATCH v3.6 06/19] batman-adv: use batadv_compare_eth for concise

2014-01-07 Thread Ding Tianhong
On 2014/1/8 15:06, Antonio Quartulli wrote: > On 08/01/14 03:53, Ding Tianhong wrote: >> It is better to use batadv_compate_eth instead of memcpy for >> concise style. >> >> Cc: Marek Lindner >> Cc: Simon Wunderlich >> Cc: Antonio Quartulli &

Re: [RFC] sysfs_rename_link() and its usage

2014-01-14 Thread Ding Tianhong
On 2014/1/15 1:17, Veaceslav Falico wrote: > Hi, > > I'm hitting a strange issue and/or I'm completely lost in sysfs internals. > > Consider having two net_device *a, *b; which are registered normally. > Now, to create a link from /sys/class/net/a->name/linkname to b, one should > use: > > sysfs

[PATCH] arm64: add OProfile support

2014-04-26 Thread Ding Tianhong
Signed-off-by: Ding Tianhong --- arch/arm64/Kconfig | 1 + arch/arm64/Makefile | 2 + arch/arm64/include/asm/stacktrace.h | 1 + arch/arm64/kernel/perf_event.c | 13 - arch/arm64/oprofile/Makefile| 13 + arch/arm64/oprofile/common.c

Re: [PATCH] arm64: add OProfile support

2014-04-26 Thread Ding Tianhong
On 2014/4/26 17:23, Catalin Marinas wrote: > On 26 Apr 2014, at 09:38, Ding Tianhong wrote: >> Add OProfile support for arm64, using the perf backend, and failing back >> to generic timer based sampling if PMU interrupt is not supported. >> >> I have test this patch o

Re: [PATCH] arm64: add OProfile support

2014-04-27 Thread Ding Tianhong
On 2014/4/26 18:22, Ding Tianhong wrote: > On 2014/4/26 17:23, Catalin Marinas wrote: >> On 26 Apr 2014, at 09:38, Ding Tianhong wrote: >>> Add OProfile support for arm64, using the perf backend, and failing back >>> to generic timer based sampling if PMU interrupt

Re: [PATCH net-next 0/4] bonding cleaning

2014-02-16 Thread Ding Tianhong
--- > drivers/net/bonding/bond_netlink.c | 6 +- > drivers/net/bonding/bond_options.c | 102 > drivers/net/bonding/bond_procfs.c | 8 +- > drivers/net/bonding/bond_sysfs.c | 8 +- > 9 files changed, 288 insertions(+), 307 deletions(-

Re: [PATCH net-next] vlan: rename __vlan_find_dev_deep() to __vlan_find_dev_deep_rcu_rcu()

2014-05-08 Thread Ding Tianhong
On 2014/5/8 10:29, Ding Tianhong wrote: > The __vlan_find_dev_deep should always called in RCU, according > David's suggestion, rename to __vlan_find_dev_deep_rcu looks more > reasonable. > > Signed-off-by: Ding Tianhong Self Nacked, I make this patch from net repository, a

[PATCH net-next RESEND] vlan: rename __vlan_find_dev_deep() to __vlan_find_dev_deep_rcu_rcu()

2014-05-08 Thread Ding Tianhong
The __vlan_find_dev_deep should always called in RCU, according David's suggestion, rename to __vlan_find_dev_deep_rcu looks more reasonable. Signed-off-by: Ding Tianhong --- drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

Re: [PATCH] bonding: Inactive slaves should keep inactive flag's value to 1 in tlb and alb mode.

2014-03-24 Thread Ding Tianhong
On 2014/3/25 11:00, Zheng Li wrote: > In bond mode tlb and alb, inactive slaves should keep inactive flag to > 1 to refuse to receive broadcast packets. Now, active slave send broadcast > packets > (for example ARP requests) which will arrive inactive slaves on same host > from switch, > but inac

Re: [PATCH] bonding: Inactive slaves should keep inactive flag's value to 1 in tlb and alb mode.

2014-03-25 Thread Ding Tianhong
On 2014/3/25 16:36, zheng.li wrote: > 于 2014年03月25日 11:42, Ding Tianhong 写道: >> On 2014/3/25 11:00, Zheng Li wrote: >>> In bond mode tlb and alb, inactive slaves should keep inactive flag to >>> 1 to refuse to receive broadcast packets. Now, active slave send broa

[PATCH] arm64: Flush the process's mm context TLB entries when switching

2014-04-14 Thread Ding Tianhong
e the old TLB entries which was in the inner shareable caches, and then if the process schedule to another core, the old TLB entries may occur MMU faults. Signed-off-by: Ding Tianhong --- arch/arm64/kernel/process.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/kernel/

Re: [PATCH] arm64: Flush the process's mm context TLB entries when switching

2014-04-14 Thread Ding Tianhong
On 2014/4/14 21:01, Will Deacon wrote: > Hi Ding, > > On Mon, Apr 14, 2014 at 01:03:12PM +0100, Ding Tianhong wrote: >> I met a problem when migrating process by following steps: >> >> 1) The process was already running on core 0. >> 2) Set the CPU affinity of t

  1   2   3   4   5   >