Re: [PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-15 Thread Wei Xu
On Thu, Apr 15, 2021 at 8:35 AM Dave Hansen wrote: > > This can help enable more flexible demotion policies to be > > configured, such as to allow a cgroup to allocate from all fast tier > > nodes, but only demote to a local slow tier node. Such a policy can > > reduce memory stranding at the

Re: [PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-14 Thread Wei Xu
On Wed, Apr 14, 2021 at 1:08 AM Oscar Salvador wrote: > > Hi Wei Xu, > > I have some questions about it > > Fast class/memory are pictured as those nodes with CPUs, while Slow > class/memory > are PMEM, right? > Then, what stands for medium class/memory? That is Dave'

Re: [PATCH 10/10] mm/migrate: new zone_reclaim_mode to enable reclaim migration

2021-04-09 Thread Wei Xu
On Thu, Apr 1, 2021 at 11:35 AM Dave Hansen wrote: > This proposes extending the existing "zone_reclaim_mode" (now > now really node_reclaim_mode) as a method to enable it. Nit: now now -> now > We are open to any alternative that allows end users to enable > this mechanism or disable it it

Re: [PATCH 06/10] mm/vmscan: add page demotion counter

2021-04-09 Thread Wei Xu
m_events() a bit, and made them look at the THP > size directly rather than getting data from migrate_pages() > ] > > Signed-off-by: Yang Shi > Signed-off-by: Dave Hansen > Reviewed-by: Yang Shi > Cc: Wei Xu > Cc: David Rientjes > Cc: Huang Ying > Cc: Dan Willi

Re: [PATCH 05/10] mm/migrate: demote pages during reclaim

2021-04-09 Thread Wei Xu
> +static unsigned int demote_page_list(struct list_head *demote_pages, > +struct pglist_data *pgdat, > +struct scan_control *sc) sc is not needed and can be removed from demote_page_list(). Reviewed-by: Wei Xu

Re: [PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-09 Thread Wei Xu
On Thu, Apr 1, 2021 at 11:35 AM Dave Hansen wrote: > +/* > + * node_demotion[] example: > + * > + * Consider a system with two sockets. Each socket has > + * three classes of memory attached: fast, medium and slow. > + * Each memory class is placed in its own NUMA node. The > + * CPUs are

Re: [PATCH 04/10] mm/migrate: make migrate_pages() return nr_succeeded

2021-04-09 Thread Wei Xu
On Fri, Apr 9, 2021 at 8:50 AM Dave Hansen wrote: > I also considered passing NULL to mean "I don't care about > nr_succeeded". I mostly avoided it to reduce churn. But, looking at it > here, it does seem cleaner. > > Any objections to moving over to Oscar's suggestion? I like this approach

Re: [PATCH 04/10] mm/migrate: make migrate_pages() return nr_succeeded

2021-04-08 Thread Wei Xu
I agree that it is a good further improvement to make nr_succeeded an optional output argument of migrate_pages() given that most callers don't need it. IMHO, the most important thing in this matter is to ensure that nr_succeeded only returns (when its return value is needed) the successfully

Re: [PATCH 01/10] mm/numa: node demotion data structure and lookup

2021-04-08 Thread Wei Xu
. Reviewed-by: Wei Xu On Thu, Apr 1, 2021 at 11:35 AM Dave Hansen wrote: > > > From: Dave Hansen > > Prepare for the kernel to auto-migrate pages to other memory nodes > with a user defined node migration table. This allows creating single > migration target for each NUMA node

Re: [PATCH 07/10] mm/vmscan: add helper for querying ability to age anonymous pages

2021-04-07 Thread Wei Xu
> +/* > + * Anonymous LRU management is a waste if there is > + * ultimately no way to reclaim the memory. > + */ > +bool anon_should_be_aged(struct lruvec *lruvec) > +{ > + struct pglist_data *pgdat = lruvec_pgdat(lruvec); > + > + /* Aging the anon LRU is valuable if swap is present:

Re: [PATCH] ARM: hisi: use the correct HiSilicon copyright

2021-04-02 Thread Wei Xu
Hi Hao Fang, On 2021/3/30 14:51, Hao Fang wrote: > s/Hisilicon/HiSilicon/ > It should use capital S, according to > https://www.hisilicon.com/en/terms-of-use. > > Signed-off-by: Hao Fang Thanks! Applied to the hisilicon arm32 SoC tree. Best Regards, Wei > --- >

Re: [PATCH 08/10] mm/vmscan: Consider anonymous pages without swap

2021-04-01 Thread Wei Xu
possibility of future reclaim. > > #Signed-off-by: Keith Busch > Cc: Keith Busch > Signed-off-by: Dave Hansen > Reviewed-by: Yang Shi > Cc: Wei Xu > Cc: David Rientjes > Cc: Huang Ying > Cc: Dan Williams > Cc: David Hildenbrand > Cc: osalvador > &

Re: [PATCH 09/10] mm/vmscan: never demote for memcg reclaim

2021-04-01 Thread Wei Xu
al is to reduce the > total memory consumption of the entire memcg, across all > nodes. Migration does not assist memcg reclaim because > it just moves page contents between nodes rather than > actually reducing memory consumption. > > Signed-off-by: Dave Hansen > Suggested-by:

Re: [PATCH 04/10] mm/migrate: make migrate_pages() return nr_succeeded

2021-04-01 Thread Wei Xu
> cases. > > Signed-off-by: Yang Shi > Signed-off-by: Dave Hansen > Reviewed-by: Yang Shi > Cc: Wei Xu > Cc: Huang Ying > Cc: Dan Williams > Cc: David Hildenbrand > Cc: osalvador > > -- > > Note: Yang Shi originally wrote the patch, thus the SoB. Th

Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon

2021-01-28 Thread Wei Xu
Hi Arnd, On 2021/1/29 9:02, Wei Xu wrote: > Hi Arnd, > > On 2021/1/28 22:08, Arnd Bergmann wrote: >> On Wed, Jan 27, 2021 at 1:42 AM Wei Xu wrote: >>> On 2021/1/27 6:23, Arnd Bergmann wrote: >>>> On Tue, Dec 8, 2020 at 1:46 PM Zhen Lei wrote: >>>>

Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon

2021-01-28 Thread Wei Xu
Hi Arnd, On 2021/1/28 22:08, Arnd Bergmann wrote: > On Wed, Jan 27, 2021 at 1:42 AM Wei Xu wrote: >> On 2021/1/27 6:23, Arnd Bergmann wrote: >>> On Tue, Dec 8, 2020 at 1:46 PM Zhen Lei wrote: >>>> >>>> The vendor prefix of "Hisilicon Limited"

Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon

2021-01-26 Thread Wei Xu
Hi Arnd, On 2021/1/27 6:23, Arnd Bergmann wrote: > On Tue, Dec 8, 2020 at 1:46 PM Zhen Lei wrote: >> >> The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly >> stated in "vendor-prefixes.yaml". >> >> Fixes: 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC") >>

Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon

2021-01-26 Thread Wei Xu
Hi Zhen Lei, On 2020/12/8 20:46, Zhen Lei wrote: > The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly > stated in "vendor-prefixes.yaml". > > Fixes: 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC") > Fixes: dd8c7b78c11b ("arm64: dts: Add devicetree for

Re: [PATCH v2 0/3] Added some missing DT settings for Hikey 970

2021-01-26 Thread Wei Xu
Hi Mauro, On 2021/1/15 19:53, Mauro Carvalho Chehab wrote: > The Hikey 970 device tree has a few missing pieces that are required > in order for it to be able to support USB and DRM drivers upstream. > > Besides PM, USB and DRM specific bits, the hardware's binding > for I2C buses and pinctrl

Re: [v2] Old platforms: bring out your dead

2021-01-18 Thread Wei Xu
Hi Arnd, On 2021/1/15 20:04, Arnd Bergmann wrote: > On Fri, Jan 15, 2021 at 12:09 PM Leizhen (ThunderTown) > wrote: >> On 2021/1/15 17:26, Arnd Bergmann wrote: >>> On Fri, Jan 15, 2021 at 8:08 AM Wei Xu wrote: >>>> On 2021/1/14 0:14, Arnd Bergmann wrote: >

Re: [v2] Old platforms: bring out your dead

2021-01-14 Thread Wei Xu
Hi Arnd, On 2021/1/14 0:14, Arnd Bergmann wrote: > On Fri, Jan 8, 2021 at 11:55 PM Arnd Bergmann wrote: > > Just to catch up on the replies I received on my initial email, here > is the updated status of all the Arm platforms I listed earlier, thanks > for everyone that contributed information

Re: [PATCH 4/8] arm64: dts: hisilicon: Use generic "ngpios" rather than "snps,nr-gpios"

2020-11-24 Thread Wei Xu
Hi Jisheng, On 2020/11/9 17:05, Jisheng Zhang wrote: > This is to remove similar errors as below: > > OF: /.../gpio-port@0: could not find phandle > > Commit 7569486d79ae ("gpio: dwapb: Add ngpios DT-property support") > explained the reason of above errors well and added the generic > "ngpios"

Re: [PATCH v2 04/18] arm: dts: hisi-x5hd2: Harmonize EHCI/OHCI DT nodes name

2020-11-24 Thread Wei Xu
Hi Serge, On 2020/11/11 17:15, Serge Semin wrote: > In accordance with the Generic EHCI/OHCI bindings the corresponding node > name is suppose to comply with the Generic USB HCD DT schema, which > requires the USB nodes to have the name acceptable by the regexp: > "^usb(@.*)?" . Make sure the

Re: [PATCH v2 06/18] arm64: dts: hisi: Harmonize EHCI/OHCI DT nodes name

2020-11-24 Thread Wei Xu
Hi Serge, On 2020/11/11 17:15, Serge Semin wrote: > In accordance with the Generic EHCI/OHCI bindings the corresponding node > name is suppose to comply with the Generic USB HCD DT schema, which > requires the USB nodes to have the name acceptable by the regexp: > "^usb(@.*)?" . Make sure the

Re: [PATCH v2 16/18] arm64: dts: hi3660: Harmonize DWC USB3 DT nodes name

2020-11-24 Thread Wei Xu
Hi Serge, On 2020/11/11 17:15, Serge Semin wrote: > In accordance with the DWC USB3 bindings the corresponding node > name is suppose to comply with the Generic USB HCD DT schema, which > requires the USB nodes to have the name acceptable by the regexp: > "^usb(@.*)?" . Make sure the

Re: [PATCH 00/11] clean up some Hisilicon-related errors detected by DT schema on arm64

2020-11-24 Thread Wei Xu
Hi Zhen, On 2020/10/12 21:17, Zhen Lei wrote: > These patches are based on the latest linux-next. Because some txt files have > not converted to DT schema, so a lot of errors can not be fixed now. This > time, > only some obvious errors are cleared. > > Zhen Lei (11): > arm64: dts: hisilicon:

Re: [PATCH v2 00/10] clean up all Hisilicon-related errors detected by DT schema on arm32

2020-11-24 Thread Wei Xu
Hi Zhen, On 2020/10/12 14:12, Zhen Lei wrote: > v1 --> v2: > Too deep in arm32. I forgot arm64. Add property "#reset-cells" into > sysctrl.yaml (Patch 9). > > > v1: > These patches are based on the latest linux-next. > > Zhen Lei (10): > ARM: dts: hisilicon: fix errors detected by

Re: [PATCH v5 09/17] ARM: dts: hisilicon: fix ststem controller compatible node

2020-09-29 Thread Wei Xu
Hi Zhen Lei, On 2020/9/29 22:14, Zhen Lei wrote: > The DT binding for Hisilicon system controllers requires to have a > "syscon" compatible string. > > Signed-off-by: Zhen Lei Thanks! Applied to the hisilicon arm32 dt tree. Best Regards, Wei > --- > arch/arm/boot/dts/hi3620.dtsi | 2 +- >

Re: [PATCH v5 08/17] ARM: dts: add SD5203 dts

2020-09-29 Thread Wei Xu
Hi Zhen Lei, On 2020/9/29 22:14, Zhen Lei wrote: > From: Kefeng Wang > > Add sd5203.dts for Hisilicon SD5203 SoC platform. > > Signed-off-by: Kefeng Wang > Signed-off-by: Zhen Lei Thanks! Applied to the hisilicon arm32 dt tree. Best Regards, Wei > --- > arch/arm/boot/dts/Makefile | 2

Re: [PATCH v5 07/17] ARM: debug: add UART early console support for SD5203

2020-09-29 Thread Wei Xu
Hi Zhen Lei, On 2020/9/29 22:14, Zhen Lei wrote: > From: Kefeng Wang > > Add support of early console for SD5203. > > Signed-off-by: Kefeng Wang > Signed-off-by: Zhen Lei Thanks! Applied to the hisilicon arm32 SoC tree. Best Regards, Wei > --- > arch/arm/Kconfig.debug | 11 ++- >

Re: [PATCH v5 06/17] ARM: hisi: add support for SD5203 SoC

2020-09-29 Thread Wei Xu
Hi Zhen Lei, On 2020/9/29 22:14, Zhen Lei wrote: > From: Kefeng Wang > > Enable support for the Hisilicon SD5203 SoC. The core is ARM926EJ-S. > > Signed-off-by: Kefeng Wang > Signed-off-by: Zhen Lei Thanks! Applied to the hisilicon arm32 SoC tree. Best Regards, Wei > --- >

Re: [PATCH v3 02/21] dt-bindings: arm: hisilicon: split the dt-bindings of each controller into a separate file

2020-09-28 Thread Wei Xu
Hi Zhen Lei, On 2020/9/27 14:21, Zhen Lei wrote: > Split the devicetree bindings of each Hisilicon controller from > hisilicon.txt into a separate file, the file name is the compatible name > attach the .txt file name extension. > > All Hi6220 dedicated controllers are grouped into

Re: [PATCH v3 03/21] dt-bindings: arm: hisilicon: convert Hisilicon board/soc bindings to json-schema

2020-09-28 Thread Wei Xu
vicetree/bindings/arm/hisilicon/hisilicon.yaml > b/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.yaml > new file mode 100644 > index 00000000000..362decf3b85c6fb > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.yaml > @@ -0,0 +1,77 @@ &

Re: [PATCH v3 4/6] arm64: dts: hisilicon: Fix SP805 clocks

2020-09-15 Thread Wei Xu
Hi Andre, On 2020/9/7 20:18, Andre Przywara wrote: > The SP805 DT binding requires two clocks to be specified, but > Hisilicon platform DTs currently only specify one clock. > > In practice, Linux would pick a clock named "apb_pclk" for the bus > clock, and the Linux and U-Boot SP805 driver

Re: [PATCH v3 1/6] ARM: dts: hisilicon: Fix SP804 users

2020-09-15 Thread Wei Xu
Hi Andre, On 2020/9/7 20:18, Andre Przywara wrote: > The SP804 binding only specifies one or three clocks, but does not allow > just two clocks. > The HiSi 3620 .dtsi specified two clocks for the two timers, plus gave > one "apb_pclk" clock-name to appease the primecell bus driver. > > Extend

Re: [PATCH v3 6/6] ARM: dts: hisilicon: Fix SP805 clocks

2020-09-15 Thread Wei Xu
On 2020/9/7 20:18, Andre Przywara wrote: > The SP805 DT binding requires two clocks to be specified, but > Hisilicon platform DTs currently only specify one clock. > > In practice, Linux would pick a clock named "apb_pclk" for the bus > clock, and the Linux and U-Boot SP805 driver would use

[PATCH] misc: hisi_hikey_usb: fix the uninitialized ret

2020-09-14 Thread Wei Xu
The uninitialized ret in hisi_hikey_usb_parse_kirin970 is useless. Simply remove it and return 0 on success to fix the issue reported by Coverity Scan. Fixes: d210a0023590 ("misc: hisi_hikey_usb: add support for Hikey 970") Signed-off-by: Wei Xu --- drivers/misc/hisi_hikey_usb.c | 3 +

Re: [PATCH 3/3] ARM: dts: add SD5203 dts

2020-09-14 Thread Wei Xu
Hi Zhen, On 2020/9/3 20:27, Zhen Lei wrote: > From: Kefeng Wang > > Add sd5203.dts for Hisilicon SD5203 SoC platform. > > Signed-off-by: Kefeng Wang > Signed-off-by: Zhen Lei > --- > arch/arm/boot/dts/Makefile | 2 + > arch/arm/boot/dts/sd5203.dts | 90

[net-next] net: iavf: Use the ARRAY_SIZE macro for aq_to_posix

2020-09-09 Thread Wei Xu
Use the ARRAY_SIZE macro to calculate the size of an array. This code was detected with the help of Coccinelle. Signed-off-by: Wei Xu --- drivers/net/ethernet/intel/iavf/iavf_adminq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/iavf

[net-next] net: i40e: Use the ARRAY_SIZE macro for aq_to_posix

2020-09-09 Thread Wei Xu
Use the ARRAY_SIZE macro to calculate the size of an array. This code was detected with the help of Coccinelle. Signed-off-by: Wei Xu --- drivers/net/ethernet/intel/i40e/i40e_adminq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e

[net-next] net: smsc911x: Remove unused variables

2020-09-07 Thread Wei Xu
‘smsc911x_eeprom_write_location’: drivers/net/ethernet/smsc/smsc911x.c:2058:6: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable] Signed-off-by: Wei Xu --- drivers/net/ethernet/smsc/smsc911x.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers

Re: [PATCH] PCI: exynos: simplify with PTR_ERR_OR_ZERO

2020-09-03 Thread Wei Xu
Hi All, Sorry for the noise and please ignore it. I found these kind of changes have been sent and rejected before. Best Regards, Wei On 2020/9/3 17:05, Wei Xu wrote: > Use PTR_ERR_OR_ZERO to make the code a little bit simpler. > This code was detected with the help of Coccinelle. >

Re: [PATCH] net/mlx5e: kTLS, Fix GFP_KERNEL in spinlock context

2020-09-03 Thread Wei Xu
Hi All, Sorry for the noise and please ignore it! I found a nearly same patch has been sent out 2 days before. Best Regards, Wei On 2020/9/3 19:45, Wei Xu wrote: > Replace GFP_KERNEL with GFP_ATOMIC while resync_post_get_progress_params > is invoked in a spinlock context. >

[PATCH] net/mlx5e: kTLS, Fix GFP_KERNEL in spinlock context

2020-09-03 Thread Wei Xu
Replace GFP_KERNEL with GFP_ATOMIC while resync_post_get_progress_params is invoked in a spinlock context. This code was detected with the help of Coccinelle. Signed-off-by: Wei Xu --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] PCI: exynos: simplify with PTR_ERR_OR_ZERO

2020-09-03 Thread Wei Xu
Use PTR_ERR_OR_ZERO to make the code a little bit simpler. This code was detected with the help of Coccinelle. Signed-off-by: Wei Xu --- drivers/pci/controller/dwc/pci-exynos.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-exynos.c b

Re: [PATCH] ARM: dts: hisilicon: Align L2 cache-controller nodename with dtschema

2020-07-20 Thread Wei Xu
Hi Krzysztof, On 2020/6/26 16:06, Krzysztof Kozlowski wrote: > Fix dtschema validator warnings like: > l2-cache: $nodename:0: 'l2-cache' does not match > '^(cache-controller|cpu)(@[0-9a-f,]+)*$' > > Signed-off-by: Krzysztof Kozlowski Thanks! Applied to the hisilicon arm32 dt tree. Best

Re: [PATCH 1/2] arm64: dts: hisilicon: Use phandles for overriding nodes in hi6220

2020-07-20 Thread Wei Xu
Hi Krzysztof On 2020/6/29 16:16, Krzysztof Kozlowski wrote: > When overriding nodes, usage of phandles instead of full paths reduces > possible mistakes (e.g. in duplicated unit address) and removes > duplicate data. The UART nodes were extended via full path and phandle > which makes it

Re: [RESEND][PATCH] dts: hi3660: Add support for basic usb gadget on Hikey960

2020-07-20 Thread Wei Xu
; port to function in gadget mode (unfortunately not in host, as > the hub/mux functionality is needed to enable vbus output to > power devices in host mode). > > This is based on an old patch originally by Yu Chen. > > Cc: Yu Chen > Cc: Chunfeng Yun > Cc: Wei Xu > C

Re: [PATCH v2 0/3] io.h, logic_pio: Allow barriers for inX() and outX() be overridden

2020-05-15 Thread Wei Xu
Hi John, On 2020/3/28 0:06, John Garry wrote: > Since commits a7851aa54c0c ("io: change outX() to have their own IO > barrier overrides") and 87fe2d543f81 ("io: change inX() to have their own > IO barrier overrides"), the outX() and inX() functions have memory > barriers which can be overridden

Re: [PATCH v3] gpio: pl061: Fix the issue failed to register the ACPI interrtupion

2019-08-20 Thread Wei Xu
Hi Linus, On 2019/8/20 16:01, Linus Walleij wrote: On Mon, Aug 19, 2019 at 3:29 PM Wei Xu wrote: Invoke acpi_gpiochip_request_interrupts after the acpi data has been attached to the pl061 acpi node to register interruption. Otherwise it will be failed to register interruption for the ACPI

[PATCH v3] gpio: pl061: Fix the issue failed to register the ACPI interrtupion

2019-08-19 Thread Wei Xu
ent Fixes: 04ce935c6b2a ("gpio: pl061: Pass irqchip when adding gpiochip") Signed-off-by: Wei Xu --- v2 -> v3: * addressed the comments of Andy to show only affected output of /proc/interrupts and drop the whole log of v5.2.0-rc7 v1- > v2: * rebased on https://git.kernel.org/pub/scm/lin

Re: [PATCH v2] gpio: pl061: Fix the issue failed to register the ACPI interrtupion

2019-08-19 Thread Wei Xu
Hi Andy, Thanks! On 2019/8/16 21:40, Andy Shevchenko wrote: On Fri, Aug 16, 2019 at 12:07 PM Wei Xu wrote: Invoke acpi_gpiochip_request_interrupts after the acpi data has been attached to the pl061 acpi node to register interruption. Otherwise it will be failed to register interruption

[PATCH v2] gpio: pl061: Fix the issue failed to register the ACPI interrtupion

2019-08-16 Thread Wei Xu
80677] Run /init as init process [9.767007] random: sshd: uninitialized urandom read (32 bytes read) estuary:/$ Fixes: 04ce935c6b2a ("gpio: pl061: Pass irqchip when adding gpiochip") Signed-off-by: Wei Xu --- v1- > v2: * rebased on https://git.kernel.org/pub/scm/

Re: [PATCH] gpio: pl061: Fix the issue failed to register the ACPI interruption

2019-08-16 Thread Wei Xu
. Thanks to review! I just sent out the v2 based on that. On Mon, Aug 12, 2019 at 1:28 PM Wei Xu wrote: Invoke acpi_gpiochip_request_interrupts after the acpi data has been attached to the pl061 acpi node to register interruption. Makes sense. Fixes: 04ce935c6b2a ("gpio: pl061: Pass irqc

[GIT PULL] Hisilicon fixes for v5.3

2019-08-15 Thread Wei Xu
Hi ARM-SoC team, Please consider to pull the following fixes. Thanks! Best Regards, Wei --- The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at:

Re: [PATCH v4 0/5] Fixes for HiSilicon LPC driver and logical PIO code

2019-08-15 Thread Wei Xu
Hi John, On 2019/7/30 21:29, John Garry wrote: As reported in [1], the hisi-lpc driver has certain issues in handling logical PIO regions, specifically unregistering regions. This series add a method to unregister a logical PIO region, and fixes up the driver to use them. RCU usage in logical

[PATCH] gpio: pl061: Fix the issue failed to register the ACPI interruption

2019-08-12 Thread Wei Xu
broadcast interrupts IPI5: 0 IRQ work interrupts IPI6: 0 CPU wake-up interrupts Err: 0 Fixes: 04ce935c6b2a ("gpio: pl061: Pass irqchip when adding gpiochip") Signed-off-by: Wei Xu --- drivers/gpio/gpio-pl061.c | 7 +++ 1 file changed, 7 inser

Re: [GIT PULL] Hisilicon fixes for v5.2

2019-07-01 Thread Wei Xu
Hi Olof, On 2019/6/27 10:19, Olof Johansson wrote: On Tue, Jun 25, 2019 at 02:31:26PM +0100, John Garry wrote: On 25/06/2019 14:03, Olof Johansson wrote: are available in the Git repository at: git://github.com/hisilicon/linux-hisi.git tags/hisi-fixes-for-5.2 for you to fetch changes up

Re: [GIT PULL] Hisilicon fixes for v5.2

2019-06-25 Thread Wei Xu
Hi ARM-SoC team, Sorry, I forgot to mention that one or two patches in this patch set are not pure fix. We are also OK to queue for v5.3. Thanks! Best Regards, Wei On 6/25/2019 11:23 AM, Wei Xu wrote: > Hi ARM-SoC team, > > Please consider to pull the following changes. > Thank

[GIT PULL] Hisilicon fixes for v5.2

2019-06-25 Thread Wei Xu
Hi ARM-SoC team, Please consider to pull the following changes. Thanks! Best Regards, Wei --- The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at:

Re: [PATCH v2 0/6] Fixes for HiSilicon LPC driver and logical PIO code

2019-06-25 Thread Wei Xu
Hi John, On 6/24/2019 3:35 PM, John Garry wrote: > As reported in [1], the hisi-lpc driver has certain issues in handling > logical PIO regions, specifically unregistering regions. > > This series add a method to unregister a logical PIO region, and fixes up > the driver to use them. > > RCU

Re: [PATCH 6/6] ARM: hisilicon: DT: Switch to SPDX header

2019-06-19 Thread Wei Xu
Hi Lubomir, On 6/11/2019 8:29 AM, Lubomir Rintel wrote: > The original license text had a typo ("publishhed") which would be > likely to confuse automated licensing auditing tools. Let's just switch > to SPDX instead of fixing the wording. > > Signed-off-by: Lubomir Rintel Thanks! I found

Re: [PATCH] arm64: dts: hisilicon: Switch to SPDX header

2019-06-19 Thread Wei Xu
Hi Lubomir, On 6/11/2019 8:20 AM, Lubomir Rintel wrote: > The original license text had a typo ("publishhed") which would be > likely to confuse automated licensing auditing tools. Let's just switch > to SPDX instead of fixing the wording. > > Signed-off-by: Lubomir Rintel Thanks! I found

Re: [PATCH v4] arm64: dts: hi3660: Add CoreSight support

2019-06-19 Thread Wei Xu
Hi Leo, Wanglai On 5/16/2019 5:11 AM, Leo Yan wrote: > On Sat, Apr 20, 2019 at 10:00:35PM +0800, Wanglai Shi wrote: >> This patch adds DT bindings for the CoreSight trace components >> on hi3660, which is used by 96boards Hikey960. >> >> Signed-off-by: Wanglai Shi > > Hi Wei, > > Mathieu and

Re: [PATCH v2 01/11] ARM: dts: hip04: Update coresight DT bindings

2019-06-19 Thread Wei Xu
el and > static replicator, so can dismiss warning during initialisation. > > Cc: Wei Xu > Cc: Guodong Xu > Cc: Zhangfei Gao > Cc: Haojian Zhuang > Cc: Mathieu Poirier > Cc: Suzuki K Poulose > Signed-off-by: Leo Yan Applied to the hisilicon dt tree. Thanks! Best Regards, Wei

Re: [PATCH v2 07/11] arm64: dts: hi6220: Update coresight DT bindings

2019-06-19 Thread Wei Xu
el and > static replicator, so can dismiss warning during initialisation. > > Cc: Wei Xu > Cc: Guodong Xu > Cc: Zhangfei Gao > Cc: Haojian Zhuang > Cc: Mathieu Poirier > Cc: Suzuki K Poulose > Signed-off-by: Leo Yan Applied to the hisilicon dt tree. Thanks! Best Regards, Wei

Re: [RESEND][PATCH 0/3] DMA dts changes for hi3660

2019-04-15 Thread Wei Xu
t; > Cc: Tanglei Han > Cc: Zhuangluan Su > Cc: Ryan Grachek > Cc: Manivannan Sadhasivam > Cc: Wei Xu > Cc: Rob Herring > Cc: Mark Rutland > Cc: linux-arm-ker...@lists.infradead.org > Cc: devicet...@vger.kernel.org > > > John Stultz (2): > arm64

Re: [PATCH 0/3] Add MMC controller support for HI3670 SoC

2019-04-15 Thread Wei Xu
Hi Manivannan, On 2/28/2019 3:45 PM, Manivannan Sadhasivam wrote: > Hello, > > This patchset adds MMC controller support for HI3670 SoC. Since HI3670 > SoC is architecturally same as the HI3660 SoC, HI3660 DWMMC driver is > reused here with DT compatible fallback approach. Also, SD and WiFi >

Re: [PATCH v2 0/2] Add Reset controller support for HI3670 SoC

2019-04-15 Thread Wei Xu
Hi Manivannan, On 2/15/2019 5:49 AM, Manivannan Sadhasivam wrote: > Hello, > > This patchset adds Reset controller support for HiSilicon HI3670 SoC. > HI3670 SoC is architecturally same as HI3660 SoC, hence the same driver > is reused. > > This patchset has been tested on HiKey970 board. > >

Re: [PATCH] HISI LPC: Don't fail probe for unrecognised child devices

2019-02-08 Thread Wei Xu
Hi John, On 1/3/2019 11:57 AM, John Garry wrote: > Currently for ACPI-based FW we fail the probe for an unrecognised child > HID. > > However, there is FW in the field with LPC child devices having fake HIDs, > namely "IPI0002", which was an IPMI device invented to support the > initial

Re: [PATCH v2] arm64: dts: hikey: Give wifi some time after power-on

2019-02-04 Thread Wei Xu
Hi Ulf, On 2/4/2019 6:06 AM, Ulf Hansson wrote: > On Fri, 1 Feb 2019 at 17:34, Wei Xu wrote: >> >> Hi Jan, >> >> On 1/24/2019 7:52 AM, Jan Kiszka wrote: >>> From: Jan Kiszka >>> >>> Somewhere along recent changes to power control of the wl

Re: [PATCH v2] arm64/hisilicon: fix SDcard detection

2019-02-01 Thread Wei Xu
Hi Vincent, On 1/14/2019 8:24 AM, Vincent Guittot wrote: > The SDcard detection of hikey960 is active low so cd-inverted is wrong. > Instead of adding cd-inverted, we should better set correctly cd-gpios > to use GPIO_ACTIVE_LOW. > > Signed-off-by: Vincent Guittot Updated the subject as Leo

Re: [PATCH][RESEND] arm64: dts: hikey: Add DMA entries for Bluetooth UART

2019-02-01 Thread Wei Xu
Hi John, On 1/23/2019 8:30 PM, John Stultz wrote: > Add dma0 references for bluetooth uart to enable dma > for bt transfers. > > Cc: Manivannan Sadhasivam > Cc: Ryan Grachek > Cc: Wei Xu > Cc: Rob Herring > Cc: Mark Rutland > Cc: linux-arm-ker...@lists.

Re: [PATCH] arm64: dts: hikey: Revert "Enable HS200 mode on eMMC"

2019-02-01 Thread Wei Xu
orruption regression"). > > This change appears to cause controller resets and block read failures > which prevents successful booting on some hikey boards. > > Cc: Ryan Grachek > Cc: Wei Xu > Cc: Manivannan Sadhasivam > Cc: Rob Herring > Cc: Mark Rutland >

Re: [PATCH v2] arm64: dts: hikey: Give wifi some time after power-on

2019-02-01 Thread Wei Xu
Hi Jan, On 1/24/2019 7:52 AM, Jan Kiszka wrote: > From: Jan Kiszka > > Somewhere along recent changes to power control of the wl1835, power-on > became very unreliable on the hikey, failing like this: > > wl1271_sdio: probe of mmc2:0001:1 failed with error -16 > wl1271_sdio: probe of

Re: [PATCH 05/10] ARM64: dts: hisilicon: Add all CPUs in cooling maps

2018-11-29 Thread Wei Xu
Hi Viresh, On 2018/11/16 10:04, Viresh Kumar wrote: > Each CPU can (and does) participate in cooling down the system but the > DT only captures a handful of them, normally CPU0, in the cooling maps. > Things work by chance currently as under normal circumstances its the > first CPU of each

Re: [PATCH 05/10] ARM64: dts: hisilicon: Add all CPUs in cooling maps

2018-11-29 Thread Wei Xu
Hi Viresh, On 2018/11/16 10:04, Viresh Kumar wrote: > Each CPU can (and does) participate in cooling down the system but the > DT only captures a handful of them, normally CPU0, in the cooling maps. > Things work by chance currently as under normal circumstances its the > first CPU of each

Re: [PATCH 04/10] arm64: dts: hi3660: Add missing cooling device properties for CPUs

2018-11-29 Thread Wei Xu
Hi Viresh, On 2018/11/16 10:04, Viresh Kumar wrote: > The cooling device properties, like "#cooling-cells" and > "dynamic-power-coefficient", should either be present for all the CPUs > of a cluster or none. If these are present only for a subset of CPUs of > a cluster then things will start

Re: [PATCH 04/10] arm64: dts: hi3660: Add missing cooling device properties for CPUs

2018-11-29 Thread Wei Xu
Hi Viresh, On 2018/11/16 10:04, Viresh Kumar wrote: > The cooling device properties, like "#cooling-cells" and > "dynamic-power-coefficient", should either be present for all the CPUs > of a cluster or none. If these are present only for a subset of CPUs of > a cluster then things will start

Re: [PATCH v3 0/7] Standardize onboard LED support for 96Boards

2018-11-29 Thread Wei Xu
Hi Manivannan, On 2018/10/31 13:38, Linus Walleij wrote: > On Mon, Oct 29, 2018 at 10:43 AM Manivannan Sadhasivam > wrote: > >> This patchset standardizes the onboard LEDs on 96Boards by maintaining >> common labels and triggers as below: >> >> green:user1 default-trigger: heartbeat >>

Re: [PATCH v3 0/7] Standardize onboard LED support for 96Boards

2018-11-29 Thread Wei Xu
Hi Manivannan, On 2018/10/31 13:38, Linus Walleij wrote: > On Mon, Oct 29, 2018 at 10:43 AM Manivannan Sadhasivam > wrote: > >> This patchset standardizes the onboard LEDs on 96Boards by maintaining >> common labels and triggers as below: >> >> green:user1 default-trigger: heartbeat >>

Re: [PATCH 0/5] Add Pinctrl and GPIO support for HI3670 SoC

2018-11-29 Thread Wei Xu
Hi Manivannan, On 2018/11/12 7:17, Manivannan Sadhasivam wrote: > On Wed, Oct 31, 2018 at 10:43:00AM +0100, Linus Walleij wrote: >> On Tue, Oct 23, 2018 at 9:07 PM Manivannan Sadhasivam >> wrote: >> >>> This patchset adds Pinctrl and GPIO support for HI3670 SoC from HiSilicon >>> found in the

Re: [PATCH 0/5] Add Pinctrl and GPIO support for HI3670 SoC

2018-11-29 Thread Wei Xu
Hi Manivannan, On 2018/11/12 7:17, Manivannan Sadhasivam wrote: > On Wed, Oct 31, 2018 at 10:43:00AM +0100, Linus Walleij wrote: >> On Tue, Oct 23, 2018 at 9:07 PM Manivannan Sadhasivam >> wrote: >> >>> This patchset adds Pinctrl and GPIO support for HI3670 SoC from HiSilicon >>> found in the

Re: [PATCH 3/4] arm64: dts: hisilicon: Source SoC clock for UART6

2018-11-29 Thread Wei Xu
Hi Manivannan, On 2018/9/21 7:01, Manivannan Sadhasivam wrote: > Remove fixed clock and source SoC clock for UART6 for > HiSilicon Hi3670 SoC. > > Signed-off-by: Manivannan Sadhasivam Applied to the hisilicon soc dt tree. Thanks! Best Regards, Wei > --- >

Re: [PATCH 3/4] arm64: dts: hisilicon: Source SoC clock for UART6

2018-11-29 Thread Wei Xu
Hi Manivannan, On 2018/9/21 7:01, Manivannan Sadhasivam wrote: > Remove fixed clock and source SoC clock for UART6 for > HiSilicon Hi3670 SoC. > > Signed-off-by: Manivannan Sadhasivam Applied to the hisilicon soc dt tree. Thanks! Best Regards, Wei > --- >

Re: [PATCH 2/4] arm64: dts: hisilicon: Add clock nodes for Hi3670 SoC

2018-11-29 Thread Wei Xu
Hi Manivannan, On 2018/9/21 7:01, Manivannan Sadhasivam wrote: > Add clock nodes for HiSilicon Hi3670 SoC. > > Signed-off-by: Manivannan Sadhasivam Applied to the hisilicon soc dt tree. Thanks! Best Regards, Wei > --- > arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 43 +++

Re: [PATCH 2/4] arm64: dts: hisilicon: Add clock nodes for Hi3670 SoC

2018-11-29 Thread Wei Xu
Hi Manivannan, On 2018/9/21 7:01, Manivannan Sadhasivam wrote: > Add clock nodes for HiSilicon Hi3670 SoC. > > Signed-off-by: Manivannan Sadhasivam Applied to the hisilicon soc dt tree. Thanks! Best Regards, Wei > --- > arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 43 +++

Re: [PATCH v2 03/11] arm64: dts: hi6220: Update coresight bindings for hardware ports

2018-09-21 Thread Wei Xu
Hi Suzuki, On 2018/9/12 14:53, Suzuki K Poulose wrote: > Switch to updated coresight bindings for hw ports. > > Cc: xuw...@hisilicon.com > Cc: lipengche...@huawei.com > Cc: Mathieu Poirier > Tested-by: Leo Yan > Signed-off-by: Suzuki K Poulose Thanks! Applied to the hisilicon dt tree. Best

Re: [PATCH v2 03/11] arm64: dts: hi6220: Update coresight bindings for hardware ports

2018-09-21 Thread Wei Xu
Hi Suzuki, On 2018/9/12 14:53, Suzuki K Poulose wrote: > Switch to updated coresight bindings for hw ports. > > Cc: xuw...@hisilicon.com > Cc: lipengche...@huawei.com > Cc: Mathieu Poirier > Tested-by: Leo Yan > Signed-off-by: Suzuki K Poulose Thanks! Applied to the hisilicon dt tree. Best

Re: [PATCH v2 06/11] arm: dts: hip04: Update coresight bindings for hardware ports

2018-09-21 Thread Wei Xu
Hi Suzuki, On 2018/9/12 14:53, Suzuki K Poulose wrote: > Switch to the new the hardware port bindings. > > Cc: Wei Xu > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose Thanks! Applied to the hisilicon dt tree. Best Regards, Wei > --- > arch/arm/boot

Re: [PATCH v2 06/11] arm: dts: hip04: Update coresight bindings for hardware ports

2018-09-21 Thread Wei Xu
Hi Suzuki, On 2018/9/12 14:53, Suzuki K Poulose wrote: > Switch to the new the hardware port bindings. > > Cc: Wei Xu > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose Thanks! Applied to the hisilicon dt tree. Best Regards, Wei > --- > arch/arm/boot

Re: [PATCH 0/4] Add HiSilicon Hi3670 SoC and HiKey970 board

2018-09-19 Thread Wei Xu
Hi Manivannan, On 2018/8/10 18:53, Manivannan Sadhasivam wrote: > This patchset adds support for Hi3670 SoC and HiKey970 board. Hi3670 SoC > is very similar to the Hi3660 SoC with additional NPU support. For now, > only UART6 has been enabled which is configured by the bootloader for > console

Re: [PATCH 0/4] Add HiSilicon Hi3670 SoC and HiKey970 board

2018-09-19 Thread Wei Xu
Hi Manivannan, On 2018/8/10 18:53, Manivannan Sadhasivam wrote: > This patchset adds support for Hi3670 SoC and HiKey970 board. Hi3670 SoC > is very similar to the Hi3660 SoC with additional NPU support. For now, > only UART6 has been enabled which is configured by the bootloader for > console

Re: [PATCH] arm64: dts: hisilicon: Add missing clocks property for CPUs

2018-08-08 Thread Wei Xu
Hi Viresh, On 2018/7/31 8:24, Viresh Kumar wrote: > On 23-07-18, 08:36, Viresh Kumar wrote: >> The clocks property should either be present for all the CPUs of a >> cluster or none. If these are present only for a subset of CPUs of a >> cluster then things will start falling apart as soon as the

Re: [PATCH] arm64: dts: hisilicon: Add missing clocks property for CPUs

2018-08-08 Thread Wei Xu
Hi Viresh, On 2018/7/31 8:24, Viresh Kumar wrote: > On 23-07-18, 08:36, Viresh Kumar wrote: >> The clocks property should either be present for all the CPUs of a >> cluster or none. If these are present only for a subset of CPUs of a >> cluster then things will start falling apart as soon as the

Re: [PATCH 0/2] dt: thermal: Fix broken cooling-maps

2018-07-19 Thread Wei Xu
Hi Viresh, On 2018/7/19 3:40, Viresh Kumar wrote: > On 18-07-18, 16:34, Wei Xu wrote: >> Hi Viresh, >> >> On 2018/7/5 6:09, Viresh Kumar wrote: >>> Hi, >>> >>> This is an attempt to fix the broken or partially defined DT bindings >>> for co

Re: [PATCH 0/2] dt: thermal: Fix broken cooling-maps

2018-07-19 Thread Wei Xu
Hi Viresh, On 2018/7/19 3:40, Viresh Kumar wrote: > On 18-07-18, 16:34, Wei Xu wrote: >> Hi Viresh, >> >> On 2018/7/5 6:09, Viresh Kumar wrote: >>> Hi, >>> >>> This is an attempt to fix the broken or partially defined DT bindings >>> for co

Re: [PATCH 0/3] ARM: hisi: fix of_iomap errors

2018-07-18 Thread Wei Xu
Hi Nicholas, On 2018/7/12 10:28, Nicholas Mc Guire wrote: > This patch set addresses two issues in arch/arm/mach-hisi/hotplug.c > > 1) The hisi hotplug functions were using a few unchecked >of_iomap() while at the same time the system relied on >those mappings. Checks for !NULL were

Re: [PATCH 0/3] ARM: hisi: fix of_iomap errors

2018-07-18 Thread Wei Xu
Hi Nicholas, On 2018/7/12 10:28, Nicholas Mc Guire wrote: > This patch set addresses two issues in arch/arm/mach-hisi/hotplug.c > > 1) The hisi hotplug functions were using a few unchecked >of_iomap() while at the same time the system relied on >those mappings. Checks for !NULL were

Re: [PATCH] arm64: dts: hikey960: Remove deprecated MMC properties

2018-07-18 Thread Wei Xu
Hi Ryan, On 2018/6/18 19:08, Ryan Grachek wrote: > Signed-off-by: Ryan Grachek Thanks! Applied to the hisilicon dt tree. Best Regards, Wei > --- > arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 1 - > arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 > 2 files changed, 9

  1   2   3   4   5   >