[PATCH v3 04/27] ipack: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Greg Kroah-Hartman Cc: industrypack-de...@lists.sourceforge.net Signed-off-by: Yisheng Xie --- drivers/ipack/devices/ipoctal.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/ipack/devices/ipoctal.c b/drivers/ipack/devices/ipoctal.c

[PATCH v3 05/27] media: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/media/platform/tegra-cec/tegra_cec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/tegra-cec/tegra_cec.c b/drivers/media/platform

[PATCH v3 06/27] gpio: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Linus Walleij Cc: linux-g...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/gpio/gpio-ath79.c | 3 +-- drivers/gpio/gpio-em.c| 6 ++ drivers/gpio/gpio-htc-egpio.c | 4 ++-- drivers/gpio/gpio-xgene.c | 3 +-- 4 files changed, 6 insertions(+), 10

[PATCH v3 07/27] mmc: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Ulf Hansson Cc: linux-...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/mmc/host/sdhci-acpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c index b988997..b1aa909 100644 --- a

[PATCH v3 09/27] platform/x86: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Darren Hart Cc: Andy Shevchenko Cc: platform-driver-...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/platform/x86/intel_pmc_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform

[PATCH v3 08/27] PCI: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/pci/dwc/pci-dra7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index e77a4cee..3f3712a 100644 --- a

[PATCH v3 10/27] tty: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Yisheng Xie --- drivers/tty/mips_ejtag_fdc.c| 4 ++-- drivers/tty/serial/8250/8250_omap.c | 3 +-- drivers/tty/serial/lantiq.c | 3 +-- drivers/tty/serial/meson_uart.c | 3 +-- drivers/tty/serial/owl

[PATCH v3 13/27] char: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Signed-off-by: Yisheng Xie --- drivers/char/hw_random/bcm63xx-rng.c | 3 +-- drivers/char/hw_random/octeon-rng.c | 10 -- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/char/hw_random/bcm63xx-rng.c b

[PATCH v3 14/27] mtd: nand: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Boris Brezillon Cc: Richard Weinberger Cc: Marek Vasut Cc: Cyrille Pitchen Cc: linux-...@lists.infradead.org Signed-off-by: Yisheng Xie --- drivers/mtd/nand/fsl_upm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/fsl_upm.c b

[PATCH v3 11/27] video: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Bartlomiej Zolnierkiewicz Cc: dri-de...@lists.freedesktop.org Cc: linux-fb...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/video/fbdev/mbx/mbxfb.c | 9 - drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 2 +- drivers/video/fbdev/pxa168fb.c| 4 ++-- 3

[PATCH v3 12/27] rtc: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Alessandro Zummo Cc: Alexandre Belloni Cc: linux-...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/rtc/rtc-sh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index 6c2d398..3e53039 100644 --- a

[PATCH v3 17/27] irqchip: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Signed-off-by: Yisheng Xie --- drivers/irqchip/irq-renesas-intc-irqpin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-intc

[PATCH v3 15/27] dmaengine: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Vinod Koul Cc: Dan Williams Cc: dmaeng...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/dma/altera-msgdma.c | 3 +-- drivers/dma/sprd-dma.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/dma/altera-msgdma.c b/drivers/dma

[PATCH v3 16/27] ata: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Tejun Heo Cc: linux-...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/ata/pata_arasan_cf.c | 3 +-- drivers/ata/pata_octeon_cf.c | 9 - drivers/ata/pata_rb532_cf.c | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/ata

[PATCH v3 19/27] drm: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Daniel Vetter Cc: Jani Nikula Cc: Sean Paul Cc: David Airlie Cc: dri-de...@lists.freedesktop.org Signed-off-by: Yisheng Xie --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- drivers/gpu/drm/msm/msm_drv.c | 2 +- drivers/gpu/drm/sti/sti_dvo.c

[PATCH v3 18/27] pinctrl: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Linus Walleij Cc: linux-g...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/pinctrl/bcm/pinctrl-ns2-mux.c | 2 +- drivers/pinctrl/bcm/pinctrl-nsp-mux.c | 4 ++-- drivers/pinctrl/freescale/pinctrl-imx1-core.c | 2 +- drivers/pinctrl/pinctrl-amd.c

[PATCH v3 22/27] tools/testing/nvdimm: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Dan Williams Cc: Andy Shevchenko Signed-off-by: Yisheng Xie --- tools/testing/nvdimm/Kbuild | 2 +- tools/testing/nvdimm/test/iomap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/nvdimm/Kbuild b/tools/testing/nvdimm/Kbuild index

[PATCH v3 20/27] regulator: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Liam Girdwood Cc: Mark Brown Signed-off-by: Yisheng Xie --- drivers/regulator/ti-abb-regulator.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/ti-abb-regulator.c b/drivers/regulator/ti-abb-regulator.c index d2f9942..5cec760

[PATCH v3 21/27] watchdog: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Wim Van Sebroeck Cc: Guenter Roeck Cc: linux-watch...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/watchdog/bcm63xx_wdt.c | 4 ++-- drivers/watchdog/rc32434_wdt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/watchdog

[PATCH v3 23/27] MIPS: pci: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Ralf Baechle Cc: linux-m...@linux-mips.org Signed-off-by: Yisheng Xie --- arch/mips/pci/pci-ar2315.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/mips/pci/pci-ar2315.c b/arch/mips/pci/pci-ar2315.c index b4fa641..8f3baf1 100644 --- a/arch/mips

[PATCH v3 24/27] can: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Wolfgang Grandegger Cc: Marc Kleine-Budde Cc: linux-...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/net/can/sja1000/sja1000_platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/sja1000

[PATCH v3 25/27] wireless: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Kalle Valo Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/net/wireless/ath/ath9k/ahb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath

[PATCH v3 26/27] ethernet: replace devm_ioremap_nocache with devm_ioremap

2017-12-23 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Jakub Kicinski Cc: "David S. Miller" Cc: nios2-...@lists.rocketboards.org Cc: net...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/net/ethernet/altera/altera_tse_main.c | 3 +-- drivers/net/ethernet/ethoc.c | 8 drivers/ne

[PATCH v3 27/27] devres: kill devm_ioremap_nocache

2017-12-23 Thread Yisheng Xie
Now, nobody use devm_ioremap_nocache anymore, can it can just be removed. After this patch the size of devres.o will be reduced from 20304 bytes to 18992 bytes. Suggested-by: Greg KH Signed-off-by: Yisheng Xie --- Documentation/driver-model/devres.txt | 1 - include/linux/io.h

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2017-12-24 Thread Yisheng Xie
hi Christophe and Greg, On 2017/12/24 16:55, christophe leroy wrote: > > > Le 23/12/2017 à 16:57, Guenter Roeck a écrit : >> On 12/23/2017 05:48 AM, Greg KH wrote: >>> On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote: >>>> Hi all, >>>>

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2017-12-24 Thread Yisheng Xie
On 2017/12/24 17:05, christophe leroy wrote: > > > Le 23/12/2017 à 14:48, Greg KH a écrit : >> On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote: >>> Hi all, >>> >>> When I tried to use devm_ioremap function and review related code, I found

Re: [PATCH v3 08/27] PCI: replace devm_ioremap_nocache with devm_ioremap

2017-12-24 Thread Yisheng Xie
Hi Fabio, Thanks for you reviewing and comment! On 2017/12/23 20:23, Fabio Estevam wrote: > On Sat, Dec 23, 2017 at 8:58 AM, Yisheng Xie wrote: >> Default ioremap is ioremap_nocache, so devm_ioremap has the same >> function with devm_ioremap_nocache, which can just be killed to &

Re: [PATCH v3 27/27] devres: kill devm_ioremap_nocache

2017-12-24 Thread Yisheng Xie
On 2017/12/23 21:45, Greg KH wrote: > On Sat, Dec 23, 2017 at 07:02:59PM +0800, Yisheng Xie wrote: >> --- a/lib/devres.c >> +++ b/lib/devres.c >> @@ -44,35 +44,6 @@ void __iomem *devm_ioremap(struct device *dev, >> resource_size_t offset, >

Re: [v3,21/27] watchdog: replace devm_ioremap_nocache with devm_ioremap

2017-12-27 Thread Yisheng Xie
Hi Guenter, On 2017/12/27 1:28, Guenter Roeck wrote: > On Sat, Dec 23, 2017 at 07:01:37PM +0800, Yisheng Xie wrote: >> > Default ioremap is ioremap_nocache, so devm_ioremap has the same >> > function with devm_ioremap_nocache, which can just be killed to >>

Re: [PATCH v3 06/27] gpio: replace devm_ioremap_nocache with devm_ioremap

2018-01-02 Thread Yisheng Xie
On 2018/1/2 16:41, Linus Walleij wrote: > On Sat, Dec 23, 2017 at 11:58 AM, Yisheng Xie wrote: > >> Default ioremap is ioremap_nocache, so devm_ioremap has the same >> function with devm_ioremap_nocache, which can just be killed to >> save the size of devres.o >&g

Re: [PATCH v3 18/27] pinctrl: replace devm_ioremap_nocache with devm_ioremap

2018-01-02 Thread Yisheng Xie
On 2018/1/2 16:43, Linus Walleij wrote: > On Sat, Dec 23, 2017 at 12:00 PM, Yisheng Xie wrote: > >> Default ioremap is ioremap_nocache, so devm_ioremap has the same >> function with devm_ioremap_nocache, which can just be killed to >> save the size of devres.o >&g

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2018-01-02 Thread Yisheng Xie
+ cris/ia64/mn10300/openrisc maintainers On 2017/12/25 9:09, Yisheng Xie wrote: > hi Christophe and Greg, > > On 2017/12/24 16:55, christophe leroy wrote: >> >> >> Le 23/12/2017 à 16:57, Guenter Roeck a écrit : >>> On 12/23/2017 05:48 AM, Greg KH wrote: >

[PATCH -next] zram: fix compr_data_size stat

2017-08-10 Thread Yisheng Xie
zram_rw_page() Signed-off-by: Yisheng Xie --- drivers/block/zram/zram_drv.c | 3 ++- drivers/block/zram/zram_drv.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index e27daca..b2b75b1 100644 --- a/drivers/block/zram

Re: [PATCH -next] zram: fix compr_data_size stat

2017-08-10 Thread Yisheng Xie
On 2017/8/11 9:38, Sergey Senozhatsky wrote: > On (08/11/17 10:35), Sergey Senozhatsky wrote: >> On (08/11/17 09:10), Yisheng Xie wrote: >>> The compr_data_size is a stat for compressed size of pages stored, which >>> should add comp_len when we compresse a page. >

Re: [PATCH -next] zram: fix compr_data_size stat

2017-08-10 Thread Yisheng Xie
On 2017/8/11 10:07, Yisheng Xie wrote: > > > On 2017/8/11 9:38, Sergey Senozhatsky wrote: >> On (08/11/17 10:35), Sergey Senozhatsky wrote: >>> On (08/11/17 09:10), Yisheng Xie wrote: >>>> The compr_data_size is a stat for compressed size of pages stored, wh

Re: [PATCH v6 03/11] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2017-09-12 Thread Yisheng Xie
On 2017/9/12 0:03, Juerg Haefliger wrote: > > > On 09/11/2017 04:50 PM, Tycho Andersen wrote: >> Hi Yisheng, >> >> On Mon, Sep 11, 2017 at 03:24:09PM +0800, Yisheng Xie wrote: >>>> +void xpfo_alloc_pages(struct page *page, int order, gfp_t gf

Re: [PATCH v6 00/11] Add support for eXclusive Page Frame Ownership

2017-09-12 Thread Yisheng Xie
On 2017/9/12 15:40, Juerg Haefliger wrote: > > > On 09/12/2017 09:07 AM, Yisheng Xie wrote: >> Hi Tycho, >> >> On 2017/9/11 23:02, Tycho Andersen wrote: >>> Hi Yisheng, >>> >>> On Mon, Sep 11, 2017 at 06:34:45PM +0800, Yisheng Xie wr

Re: [RFC PATCH 6/6] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD and CD.S

2017-09-13 Thread Yisheng Xie
Hi Will, On 2017/9/13 11:06, Will Deacon wrote: > On Tue, Sep 05, 2017 at 01:54:19PM +0100, Jean-Philippe Brucker wrote: >> On 31/08/17 09:20, Yisheng Xie wrote: >>> It is ILLEGAL to set STE.S1STALLD if STALL_MODEL is not 0b00, which >>> means we should not disable st

[PATCH] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD

2017-09-13 Thread Yisheng Xie
TALLS 0b1 0b01 !ARM_SMMU_FEAT_STALLS && !ARM_SMMU_FEAT_STALL_FORCE 0b0 0b10 ARM_SMMU_FEAT_STALLS && ARM_SMMU_FEAT_STALL_FORCE 0b0 Signed-off-by: Yisheng Xie --- drivers/iommu/arm-smmu-v3.c | 11 +++ 1 file changed, 7 insertions(+), 4 del

Re: [PATCH v6 03/11] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2017-09-13 Thread Yisheng Xie
Hi Tycho, On 2017/9/13 2:13, Tycho Andersen wrote: > Hi Yisheng, > >> On Tue, Sep 12, 2017 at 04:05:22PM +0800, Yisheng Xie wrote: >>> IMO, before a page is allocated, it is in buddy system, which means it is >>> free >>> and no other 'map' o

[RFC PATCH 3/6] ACPI: IORT: Add stall and pasid properties to iommu_fwspec

2017-08-31 Thread Yisheng Xie
32 pasid bits. And this should be enough for platform device. Anyway, this is just a RFC. Signed-off-by: Yisheng Xie --- drivers/acpi/arm64/iort.c | 20 include/acpi/actbl2.h | 5 + 2 files changed, 25 insertions(+) diff --git a/drivers/acpi/arm64/iort.c b/drivers

[RFC PATCH 6/6] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD and CD.S

2017-08-31 Thread Yisheng Xie
atch add ARM_SMMU_FEAT_TERMINATE feature bit for smmu, and use TERMINATE feature checking to ensue above ILLEGAL cases from happening. Signed-off-by: Yisheng Xie --- drivers/iommu/arm-smmu-v3.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/iommu/

[RFC PATCH 1/6] dt-bindings: document stall and PASID properties for IOMMU masters

2017-08-31 Thread Yisheng Xie
From: Jean-Philippe Brucker Document the bindings for stall and PASID capable platform devices. Signed-off-by: Jean-Philippe Brucker --- Documentation/devicetree/bindings/iommu/iommu.txt | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/

[RFC PATCH 0/6] Add platform device SVM support for ARM SMMUv3

2017-08-31 Thread Yisheng Xie
properties to iommu_fwspec iommu/arm-smmu-v3: Add SVM support for platform devices Yisheng Xie (3): ACPI: IORT: Add stall and pasid properties to iommu_fwspec iommu/arm-smmu-v3: fix panic when handle stall mode irq iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD and CD.S

[RFC PATCH 4/6] iommu/arm-smmu-v3: Add SVM support for platform devices

2017-08-31 Thread Yisheng Xie
From: Jean-Philippe Brucker Platform device can realise SVM function by using the stall mode. That is to say, when device access a memory via iova which is not populated, it will stalled and when SMMU try to translate this iova, it also will stall and meanwhile send an event to CPU via MSI. Afte

[RFC PATCH 5/6] iommu/arm-smmu-v3: fix panic when handle stall mode irq

2017-08-31 Thread Yisheng Xie
arm_smmu_bind_task() when smmu do not support the feature of SVM. Signed-off-by: Yisheng Xie --- drivers/iommu/arm-smmu-v3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index d44256a..dbda2eb 100644 --- a/drivers/iommu/arm-smmu-v3.c

[RFC PATCH 2/6] iommu/of: Add stall and pasid properties to iommu_fwspec

2017-08-31 Thread Yisheng Xie
From: Jean-Philippe Brucker Add stall and pasid properties to iommu_fwspec. Signed-off-by: Jean-Philippe Brucker --- drivers/iommu/of_iommu.c | 11 +++ include/linux/iommu.h| 2 ++ 2 files changed, 12 insertions(+) diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c

Re: [PATCH v6 03/11] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2017-09-11 Thread Yisheng Xie
if (!test_and_set_bit(XPFO_PAGE_USER, &xpfo->flags)) > + flush_tlb = 1; I'm not sure whether I am miss anything, however, when the page was previously allocated to kernel, should we unmap the physmap (the kernel's page table) here? For we allocate the page to user now Yisheng Xie Thanks

Re: [PATCH v6 00/11] Add support for eXclusive Page Frame Ownership

2017-09-11 Thread Yisheng Xie
g to the paper of Vasileios P. Kemerlis et al, the mainline kernel will not set the Pro. of physmap(direct map area) to RW(X), so do we really need XPFO to protect from ret2dir attack? Thanks Yisheng xie > > Cheers, > > Tycho > > Juerg Haefliger (6): > mm, x86: Add

Re: [PATCH v6 00/11] Add support for eXclusive Page Frame Ownership

2017-09-12 Thread Yisheng Xie
Hi Tycho, On 2017/9/11 23:02, Tycho Andersen wrote: > Hi Yisheng, > > On Mon, Sep 11, 2017 at 06:34:45PM +0800, Yisheng Xie wrote: >> Hi Tycho , >> >> On 2017/9/8 1:35, Tycho Andersen wrote: >>> Hi all, >>> >>> Here is v6 of the XPFO set; se

Re: [RFC PATCH 0/6] Add platform device SVM support for ARM SMMUv3

2017-09-05 Thread Yisheng Xie
Hi Jean-Philippe, On 2017/9/5 20:56, Jean-Philippe Brucker wrote: > On 31/08/17 09:20, Yisheng Xie wrote: >> Jean-Philippe has post a patchset for Adding PCIe SVM support to ARM SMMUv3: >> https://www.spinics.net/lists/arm-kernel/msg565155.html >> >> But for some p

Re: [RFC PATCH 4/6] iommu/arm-smmu-v3: Add SVM support for platform devices

2017-09-05 Thread Yisheng Xie
Hi Jean-Philippe, On 2017/9/6 8:51, Bob Liu wrote: > On 2017/9/5 20:53, Jean-Philippe Brucker wrote: >> On 31/08/17 09:20, Yisheng Xie wrote: >>> From: Jean-Philippe Brucker >>> >>> Platform device can realise SVM function by using the stall mode. That >&g

Re: [RFC PATCH 6/6] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD and CD.S

2017-09-05 Thread Yisheng Xie
Hi Jean-Philippe, On 2017/9/5 20:54, Jean-Philippe Brucker wrote: > On 31/08/17 09:20, Yisheng Xie wrote: >> It is ILLEGAL to set STE.S1STALLD if STALL_MODEL is not 0b00, which >> means we should not disable stall mode if stall/terminate mode is not >> configuable. >&g

[RFC] memory corruption caused by efi driver?

2017-06-24 Thread Yisheng Xie
ized = 0x0, state_in_sysfs = 0x1, state_add_uevent_sent = 0x0, state_remove_uevent_sent = 0x1, uevent_suppress = 0x0 }, scanning = 0x48, deleting = 0x59 } Any idea about it? Any comment is appreciative! Thanks Yisheng Xie detail log: -- [12476.033560] general protection fault: [#1] SMP

Re: [RFC PATCH] vmalloc: show more detail info in vmallocinfo for clarify

2017-05-30 Thread Yisheng Xie
Hi Tim, Thanks for comment! On 2017/5/31 8:56, Tim Chen wrote: > On 05/19/2017 11:47 PM, Yisheng Xie wrote: >> When ioremap a 67112960 bytes vm_area with the vmallocinfo: >> [..] >> 0xec79b000-0xec7fa000 389120 ftl_add_mtd+0x4d0/0x754 pages=94 vmalloc >> 0x

[BUG] boot fail with ARM_LPAE and VMSPLIT_3G_OPT

2017-06-06 Thread Yisheng Xie
depends on !ARM_LPAE bool "3G/1G user/kernel split (for full 1G low memory)" config VMSPLIT_2G bool "2G/2G user/kernel split" Any comment is more than welcome! Thanks Yisheng Xie

[PATCH] Revert "ARM: 8433/1: add a VMSPLIT_3G_OPT config option"

2017-06-07 Thread Yisheng Xie
fail with CONFIG_ARM_LPAE=y, which I reported: https://patchwork.kernel.org/patch/9768573/ For ARM_LPAE only support 3:1, 2:2, 1:3 split of TTBR1, which mention in: http://elinux.org/images/6/6a/Elce11_marinas.pdf - p16 Signed-off-by: Yisheng Xie --- arch/arm/Kconfig | 3 --- 1 file changed,

[PATCH] ion: hisilicon: check the right value after ion_heap_create

2017-05-04 Thread Yisheng Xie
From: Yisheng Xie It should check ipdev->heaps[i] whether it is error or null instead of ipdev->heaps, after ion_heap_create() for ipdev->heaps[i]. Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/hisilicon/hi6220_ion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] ion: hisilicon: check the right value after ion_heap_create

2017-05-04 Thread Yisheng Xie
Hi Laura, On 2017/5/5 1:47, Laura Abbott wrote: > On 05/04/2017 07:45 AM, Yisheng Xie wrote: >> From: Yisheng Xie >> >> It should check ipdev->heaps[i] whether it is error or null instead of >> ipdev->heaps, after ion_heap_create() for ipdev->heaps[

[PATCH -next] staging/android/ion: remove useless document file

2017-05-06 Thread Yisheng Xie
From: Yisheng Xie After commit 9828282e33a0 ("staging: android: ion: Remove old platform support"), the document about devicetree of ion is no need anymore, so just remove it. Signed-off-by: Yisheng Xie --- .../devicetree/bindings/staging/ion/hi6220-ion.txt | 31 - M

Re: [PATCH] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD

2017-09-20 Thread Yisheng Xie
Hi Jean-Philippe, Thanks for reviewing. On 2017/9/19 19:43, Jean-Philippe Brucker wrote: > On 14/09/17 06:08, Yisheng Xie wrote: >> According to Spec, it is ILLEGAL to set STE.S1STALLD if STALL_MODEL >> is not 0b00, which means we should not disable stall mode if stall >> or

[PATCH v2] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD and CD.S

2017-09-21 Thread Yisheng Xie
FORCE0b0 0b1 after apply this patch. Signed-off-by: Yisheng Xie --- v2: * Keep the feature bits backward compatible and add new one at the end * Avoid ILLEGAL of CD.S - both as Jean's suggestion. drivers/iommu/arm-smmu-v3.c | 15 --- 1 file changed, 12 insertions(+), 3

Re: [PATCH] Revert "ARM: 8433/1: add a VMSPLIT_3G_OPT config option"

2017-06-07 Thread Yisheng Xie
Hi Russell, Thanks for comment! On 2017/6/7 17:33, Russell King - ARM Linux wrote: > On Wed, Jun 07, 2017 at 04:59:32PM +0800, Yisheng Xie wrote: >> This reverts commit 63ce446c9b5787a94ed875bab20772e1a2b3092f. > > There's no real reason to revert this, thereby removing it f

[PATCH] ARM/Kconfig: make VMSPLIT_3G_OPT depends on !ARM_LPAE

2017-06-07 Thread Yisheng Xie
Linux... done, booting the kernel. For ARM_LPAE only support 3:1, 2:2, 1:3 split of TTBR1, which mention in: http://elinux.org/images/6/6a/Elce11_marinas.pdf - p16 So we should make VMSPLIT_3G_OPT depends on !ARM_LPAE to avoid trigger this bug. Signed-off-by: Yisheng Xie --- arch/arm/Kconfig

[PATCH v2] vmalloc: show more detail info in vmallocinfo for clarify

2017-06-05 Thread Yisheng Xie
ce83000 20480 vm_map_ram 0xf0099000-0xf00aa000 69632 vm_map_ram after apply this patch. Signed-off-by: Yisheng Xie --- v2: - changed "freeing vm_area" to "unpurged vm_area" to be clearer - Tim mm/vmalloc.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --g

Re: [PATCH -next] zram: fix compr_data_size stat

2017-08-14 Thread Yisheng Xie
Hi, Minchan Thanks for your comment! On 2017/8/14 16:08, Minchan Kim wrote: > Hi Yisheng, > > Thanks for the all fixup! > A minor nitpick below: > > On Fri, Aug 11, 2017 at 09:10:32AM +0800, Yisheng Xie wrote: >> The compr_data_size is a stat for compressed size of pages

[PATCH -next 2/2] zram: fix typo in comment

2017-08-14 Thread Yisheng Xie
ZRAM_SAME means page consists the same element not the entirely zero page. Signed-off-by: Yisheng Xie --- drivers/block/zram/zram_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/zram/zram_drv.h b/drivers/block/zram/zram_drv.h index 5573dc2..31762db 100644

[PATCH -next 1/2] zram: fix compr_data_size stat

2017-08-14 Thread Yisheng Xie
The compr_data_size is a stat for compressed size of pages stored, which should be updated when we compresse a page. Meanwhile fix a typo in comment: * read_from_bdev_async() return 1 to avoid call page_endio() in zram_rw_page() Signed-off-by: Yisheng Xie --- Hi Minchan, It this ok for you to

Re: [PATCH -next] zram: fix compr_data_size stat

2017-08-14 Thread Yisheng Xie
On 2017/8/14 17:34, Minchan Kim wrote: > On Mon, Aug 14, 2017 at 05:24:16PM +0800, Yisheng Xie wrote: >> Hi, Minchan >> >> Thanks for your comment! >> On 2017/8/14 16:08, Minchan Kim wrote: >>> Hi Yisheng, >>> >>> Thanks for the all fixup! &

Re: [PATCH v2] vmalloc: show more detail info in vmallocinfo for clarify

2017-08-01 Thread Yisheng Xie
Hi Michael, Thanks for comment! On 2017/8/1 19:00, Michael Ellerman wrote: > Yisheng Xie writes: > >> When ioremap a 67112960 bytes vm_area with the vmallocinfo: >> [..] >> 0xec79b000-0xec7fa000 389120 ftl_add_mtd+0x4d0/0x754 pages=94 vmalloc >>

Re: [PATCH v3 3/3] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2017-11-27 Thread Yisheng Xie
Hi Vlastimil, Thanks for your comment! On 2017/11/28 1:25, Vlastimil Babka wrote: > On 11/17/2017 02:37 AM, Yisheng Xie wrote: >> As manpage of migrate_pages, the errno should be set to EINVAL when >> none of the node IDs specified by new_nodes are on-line and allowed >> by

Re: [PATCH v3 3/3] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2017-11-28 Thread Yisheng Xie
On 2017/11/28 10:03, Yisheng Xie wrote: > Hi Vlastimil, > > Thanks for your comment! > On 2017/11/28 1:25, Vlastimil Babka wrote: >> On 11/17/2017 02:37 AM, Yisheng Xie wrote: >>> As manpage of migrate_pages, the errno should be set to EINVAL when >>> none of

[PATCH v4 3/3] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2017-12-01 Thread Yisheng Xie
RM on CAP_SYS_NICE. Hi Vlastimil and Christopher, Could you please help to review this version? Thanks Yisheng Xie mm/mempolicy.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 65df28d..4da74b6 100644 --- a/mm/mempolicy.c +++

Re: [PATCH v4 3/3] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2017-12-03 Thread Yisheng Xie
Hi Vlastimil, On 2017/12/1 23:18, Vlastimil Babka wrote: > On 12/01/2017 10:55 AM, Yisheng Xie wrote: >> As in manpage of migrate_pages, the errno should be set to EINVAL when >> none of the node IDs specified by new_nodes are on-line and allowed by the >> process's

Re: a racy access flag clearing warning when calling mmap system call

2017-12-06 Thread Yisheng Xie
thp, it will cause this call trace in the old kernel, right? It seems this is normal scene but will cause call trace for this old kernel, therefore, for this old kernel, we should just remove this WARN_ON_ONCE, right? Thanks Yisheng Xie > > Thanks, > > Will > >> Modules linke

[PATCH] mm/huge_memory: fix comment in __split_huge_pmd_locked

2017-12-06 Thread Yisheng Xie
pmd_trans_splitting has been remove after THP refcounting redesign, therefore related comment should be updated. Signed-off-by: Yisheng Xie --- mm/huge_memory.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 86fe697..f2467a0

Re: [PATCH] mm/mempolicy: add node_empty check in SYSC_migrate_pages

2017-10-19 Thread Yisheng Xie
Hi Vlastimil, Thanks for your comment! On 2017/10/18 18:46, Vlastimil Babka wrote: > On 10/18/2017 11:34 AM, Yisheng Xie wrote: >>>> For MAX_NUMNODES is 4, so 0x10 nodemask will tread as empty set which makes >>>>nodes_subset(*new, node_states[N_MEMORY]) >

Re: [PATCH v2] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD and CD.S

2017-10-20 Thread Yisheng Xie
Hi Will & Jean, Any comment about this version? Thanks Yisheng Xie On 2017/9/21 20:36, Yisheng Xie wrote: > According to Spec, it is ILLEGAL to set STE.S1STALLD if STALL_MODEL > is not 0b00, which means we should not disable stall mode if stall > or terminate mode is no

Re: [PATCH v2] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD and CD.S

2017-10-20 Thread Yisheng Xie
Hi Will, On 2017/10/20 16:36, Will Deacon wrote: > On Fri, Oct 20, 2017 at 03:00:01PM +0800, Yisheng Xie wrote: >> Any comment about this version? > > I have it queued up and plan to send a pull request to Joerg today for 4.15. Fine, thanks. Thanks Yisheng Xie > > Will > > . >

Re: [PATCH RFC v2 4/4] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2017-11-09 Thread Yisheng Xie
Hi Christopher, On 2017/11/8 23:02, Christopher Lameter wrote: > On Wed, 8 Nov 2017, Yisheng Xie wrote: > >> Another case is current process is *not* the same as target process, and >> when current process try to migrate pages of target process from old_nodes >> to

[PATCH] devres: use MACRO instead of function for devm_ioremap_nocache

2017-11-20 Thread Yisheng Xie
devres.o from 206824 Bytes to 203912 Bytes. Signed-off-by: Yisheng Xie --- include/linux/io.h | 3 +-- lib/devres.c | 29 - 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/include/linux/io.h b/include/linux/io.h index 32e30e8..1516ccd 100644 --- a

Re: [PATCH] kmemcheck: add scheduling point to kmemleak_scan

2017-11-20 Thread Yisheng Xie
Hi Catalin, On 2017/11/18 2:27, Catalin Marinas wrote: > Please fix the subject as the tool is called "kmemleak" rather than > "kmemcheck". Yeah, this really is a terrible typo. > > On Fri, Nov 17, 2017 at 03:03:56PM +0800, Yisheng Xie wrote: >> diff

Re: [PATCH] devres: use MACRO instead of function for devm_ioremap_nocache

2017-11-20 Thread Yisheng Xie
On 2017/11/20 17:32, Yisheng Xie wrote: > Default ioremap is ioremap_nocache, so devm_ioremap has the same function > with devm_ioremap_nocache, which may just be killed. However, there > are many places which use devm_ioremap_nocache instead of devm_ioremap. > > This patch is t

Re: [PATCH RFC v2 4/4] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2017-11-07 Thread Yisheng Xie
which may have different cpu set restrictions!). So you means the specified nodes should be a subset of target cpu set, right? Thanks Yisheng Xie > The cap should not allow migrating pages to nodes that are not allowed by > the cpuset of the current process. > > > > . >

Re: [PATCH RFC v2 4/4] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2017-11-07 Thread Yisheng Xie
Hi Christopher, On 2017/11/7 23:55, Christopher Lameter wrote: > On Tue, 7 Nov 2017, Vlastimil Babka wrote: > >>> Migrate pages moves the pages of a single process there is no TARGET >>> process. >> >> migrate_pages(2) takes a pid argument >> >> "migrate_pages() attempts to move all pages of t

Re: [PATCH v2] devres: use MACRO instead of function for devm_ioremap

2017-12-11 Thread Yisheng Xie
Ping... and sorry to disturb. Hi maintainers, Could you please help to review this patch? Thanks Yisheng xie On 2017/11/25 17:23, Yisheng Xie wrote: > Default ioremap is ioremap_nocache, so devm_ioremap has the same function > with devm_ioremap_nocache, which may just be killed. However,

[PATCH v2] devres: use MACRO instead of function for devm_ioremap

2017-11-25 Thread Yisheng Xie
devres.o from 206824 Bytes to 203768 Bytes. Signed-off-by: Yisheng Xie --- v2: * MACRO devm_ioremap instead of devm_ioremap_nocache include/linux/io.h | 4 ++-- lib/devres.c | 30 +- 2 files changed, 3 insertions(+), 31 deletions(-) diff --git a/include/linux

[PATCH] ACPICA: arm64: fix compile apci tools fail for arm64

2016-10-13 Thread Yisheng Xie
7;s64' was here typedef signed long long s64; ^ Fix this compile problem. Fixes: e323c02dee59 ("ACPICA: MSVC9: Fix inclusion order issue") Signed-off-by: Yisheng Xie --- include/acpi/platform/acenv.h | 4 1 file changed, 4 insertions(+) diff --git a/i

Re: [PATCH] base memory: introduce CONFIG_MEMORY_DEVICE

2016-10-14 Thread Yisheng Xie
+ mm mail list On 2016/10/10 19:26, Yisheng Xie wrote: > MEMORY_FAILURE do not depend on SPARSEMEM_MANUAL, > nor MEMORY_HOTPLUG_SPARSE. However, when I tried to use sysfs: > /sys/devices/system/memory/soft_offline_page > /sys/devices/system/memory/hard_offline_page > to test

[PATCH v4 2/2] arm64 Kconfig: Select gigantic page

2016-09-30 Thread Yisheng Xie
y: Michal Hocko Acked-by: Catalin Marinas Signed-off-by: Yisheng Xie --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index bc3f00f..92217f6 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -9,6 +9,7 @@ config ARM64

[PATCH v4 0/2] arm64/hugetlb: enable gigantic page

2016-09-30 Thread Yisheng Xie
G_CMA=y or other related configs is enabled. You can see the former discussions at: https://lkml.org/lkml/2016/8/18/310 https://lkml.org/lkml/2016/8/21/410 https://lkml.org/lkml/2016/8/22/319 Yisheng Xie (2): mm/hugetlb: Introduce ARCH_HAS_GIGANTIC_PAGE arm64 Kconfig: Select gigantic page

[PATCH v4 1/2] mm/hugetlb: Introduce ARCH_HAS_GIGANTIC_PAGE

2016-09-30 Thread Yisheng Xie
Avoid making ifdef get pretty unwieldy if many ARCHs support gigantic page. No functional change with this patch. Signed-off-by: Yisheng Xie Suggested-by: Michal Hocko Acked-by: Michal Hocko Acked-by: Naoya Horiguchi --- arch/s390/Kconfig | 1 + arch/x86/Kconfig | 1 + fs/Kconfig| 3

Re: [PATCH] ACPICA: arm64: fix compile apci tools fail for arm64

2016-10-18 Thread Yisheng Xie
Hi, Lv On 2016/10/18 6:26, Zheng, Lv wrote: > Hi, Yisheng > >> From: Yisheng Xie [mailto:xieyishe...@huawei.com] >> Subject: [PATCH] ACPICA: arm64: fix compile apci tools fail for arm64 >> >> when try to cross compile acpi tool in dir kernel/tools >> for arm64

Re: [PATCH] ACPICA: arm64: fix compile apci tools fail for arm64

2016-10-19 Thread Yisheng Xie
Hi, On 2016/10/19 6:07, Zheng, Lv wrote: > Hi, > > I'm not sure what you mean. > I mean you need ACPI_USE_SYSTEM_INTTYPES in case s64 has already been defined > in that environment. > Are you sure s64 should be defined for your environment? > s64 is not defined in my build environment but in ke

Re: [PATCH] arm64/efi: efi_init error handling fix

2016-09-05 Thread Yisheng Xie
Hi all, Could someone help to give some comments? Really thanks for that. Thanks. Xie Yisheng On 2016/9/2 18:26, Will Deacon wrote: > On Fri, Sep 02, 2016 at 06:18:39PM +0800, Xie Yisheng wrote: >> From: Yisheng Xie >> >> There's an early memmap leak in efi_init error

Re: [RFC PATCH v2 1/2] mm/hugetlb: Introduce ARCH_HAS_GIGANTIC_PAGE

2016-08-22 Thread Yisheng Xie
On 2016/8/22 16:01, Michal Hocko wrote: > On Mon 22-08-16 10:56:42, Xie Yisheng wrote: >> >> +config ARCH_HAS_GIGANTIC_PAGE >> +depends on HUGETLB_PAGE >> +bool >> + > > but is this really necessary? The code where we use > ARCH_HAS_GIGANTIC_PAGE already depends on HUGETLB_PAGE. > Hi

Re: [RFC PATCH v2 2/2] arm64 Kconfig: Select gigantic page

2016-08-22 Thread Yisheng Xie
On 2016/8/22 18:00, Catalin Marinas wrote: > On Mon, Aug 22, 2016 at 10:03:58AM +0200, Michal Hocko wrote: >> On Mon 22-08-16 10:56:43, Xie Yisheng wrote: >>> Arm64 supports gigantic page after >>> commit 084bd29810a5 ("ARM64: mm: HugeTLB support.") >>> however, it got broken by >>> commit 944d9

[tip:perf/core] perf top: Fix top.call-graph config option reading

2018-03-19 Thread tip-bot for Yisheng Xie
Commit-ID: a3a4a3b37c9b911af4c375b2475cea0fd2b84d38 Gitweb: https://git.kernel.org/tip/a3a4a3b37c9b911af4c375b2475cea0fd2b84d38 Author: Yisheng Xie AuthorDate: Mon, 12 Mar 2018 19:25:56 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 16 Mar 2018 13:56:04 -0300 perf top: Fix

[tip:perf/core] perf record: Avoid duplicate call of perf_default_config()

2018-03-19 Thread tip-bot for Yisheng Xie
Commit-ID: cff17205d6bd363703034510a84d66044aff176e Gitweb: https://git.kernel.org/tip/cff17205d6bd363703034510a84d66044aff176e Author: Yisheng Xie AuthorDate: Mon, 12 Mar 2018 19:25:57 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 16 Mar 2018 13:55:58 -0300 perf record

[tip:perf/core] perf mmap: Discard head in overwrite_rb_find_range()

2018-03-19 Thread tip-bot for Yisheng Xie
Commit-ID: 699db111058798bcc9f92a93767062905a561bef Gitweb: https://git.kernel.org/tip/699db111058798bcc9f92a93767062905a561bef Author: Yisheng Xie AuthorDate: Tue, 13 Mar 2018 20:31:13 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 16 Mar 2018 16:33:05 -0300 perf mmap

<    1   2   3   4   5   >