Re: [Regression] "tpm: Require that all digests are present in TCG_PCR_EVENT2 structures" causes null pointer dereference

2020-10-08 Thread Kai-Heng Feng
> On Sep 30, 2020, at 10:20, Jarkko Sakkinen > wrote: > > On Tue, Sep 29, 2020 at 01:52:04PM -0400, Mimi Zohar wrote: >> On Mon, 2020-09-28 at 22:16 +0800, Kai-Heng Feng wrote: >>> Hi Jarkko, >>> On Sep 28, 2020, at 22:06, Jarkko Sakkinen wrote: On Mon, Sep 28, 2020 at

Re: ACPI _CST introduced performance regresions on Haswll

2020-10-08 Thread Mel Gorman
On Wed, Oct 07, 2020 at 05:45:30PM +0200, Rafael J. Wysocki wrote: > > pre-cst is just before your patch > > enable-cst is your patch that was bisected > > enable-cst-no-hsx-acpi is your patch with use_acpi disabled > > 5.9-rc8-vanilla is what it sounds like > > 5.9-rc8-no-hsx-acpi disables

Re: [PATCH] mmc: meson-gx: remove IRQF_ONESHOT

2020-10-08 Thread Ulf Hansson
On Tue, 6 Oct 2020 at 17:33, Thomas Gleixner wrote: > > Brad, > > On Wed, Oct 07 2020 at 00:45, Brad Harper wrote: > > I'm happy to test anything on a range of amlogic hardware with standard > > / rt and multiple mmc devices. Ill test Jerome's patch in next 24 > > hours to report the results. >

Re: [PATCH] perf inject: Flush ordered events on FINISHED_ROUND

2020-10-08 Thread Jiri Olsa
On Tue, Oct 06, 2020 at 02:40:32PM +0900, namhy...@kernel.org wrote: > On Tue, Oct 06, 2020 at 11:39:49AM +0900, namhy...@kernel.org wrote: > > > > On Fri, Oct 02, 2020 at 10:03:17PM +0900, Namhyung Kim wrote: > > > > > Below measures time and memory usage during the perf inject and > > > > >

Re: [PATCH 1/5] x86/boot: Initialize boot_params in startup code

2020-10-08 Thread Joerg Roedel
On Wed, Oct 07, 2020 at 03:53:47PM -0400, Arvind Sankar wrote: > Save the boot_params pointer passed in by the bootloader in > startup_32/64. This avoids having to initialize it in two different > places in C code, and having to preserve SI through the early assembly > code. > > Signed-off-by:

Re: linux-next: build warning after merge of the tip tree

2020-10-08 Thread Borislav Petkov
On Thu, Oct 08, 2020 at 03:28:32PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > WARNING: modpost: EXPORT symbol "copy_mc_fragile" [vmlinux] version > generation failed, symbol will not be

Re: [PATCH] printk: handle blank console arguments passed in.

2020-10-08 Thread Petr Mladek
On Thu 2020-10-08 14:52:38, Sergey Senozhatsky wrote: > On (20/10/08 01:29), Sergey Senozhatsky wrote: > > On (20/10/07 08:57), Guenter Roeck wrote: > > > On 10/7/20 5:30 AM, Sergey Senozhatsky wrote: > > > > [..] > > > > > I can see to options: Link /dev/console to /dev/null if there is no > >

Re: [PATCH v2] ext4/xfs: add page refcount helper

2020-10-08 Thread Jan Kara
On Wed 07-10-20 14:49:25, Ralph Campbell wrote: > There are several places where ZONE_DEVICE struct pages assume a reference > count == 1 means the page is idle and free. Instead of open coding this, > add helper functions to hide this detail. > > Signed-off-by: Ralph Campbell > Reviewed-by:

[tip: ras/core] x86/mce: Allow for copy_mc_fragile symbol checksum to be generated

2020-10-08 Thread tip-bot2 for Borislav Petkov
The following commit has been merged into the ras/core branch of tip: Commit-ID: b3149ffcdb31a8eb854cc442a389ae0b539bf28a Gitweb: https://git.kernel.org/tip/b3149ffcdb31a8eb854cc442a389ae0b539bf28a Author:Borislav Petkov AuthorDate:Wed, 07 Oct 2020 18:55:35 +02:00

Re: [PATCH 0/2] Enable GPIO and I2C configs for TI's J721e platform

2020-10-08 Thread Faiz Abbas
Tero, On 06/10/20 6:40 pm, Tero Kristo wrote: > On 06/10/2020 16:03, Faiz Abbas wrote: >> Hi Tero, >> >> On 06/10/20 5:21 pm, Tero Kristo wrote: >>> On 02/10/2020 19:45, Faiz Abbas wrote: The following patches enable configs in the arm64 defconfig to support GPIO and I2C support on TI's

Re: [PATCH] s390/idle: Fix suspicious RCU usage

2020-10-08 Thread Sven Schnelle
Hi Peter, Peter Zijlstra writes: > On Wed, Oct 07, 2020 at 12:05:51PM +0200, Peter Zijlstra wrote: >> On Wed, Oct 07, 2020 at 09:53:25AM +0200, Sven Schnelle wrote: >> > Hi Peter, >> > >> > pet...@infradead.org writes: >> > >> > > After commit eb1f00237aca ("lockdep,trace: Expose

[PATCH 0/6] spelling: Fix typo related to "arbitrary"

2020-10-08 Thread Naoki Hayama
I found some typos related to "arbitrary". s/abitrary/arbitrary/ s/arbitary/arbitrary/ This series fixes them. These typos have been reported in the past in other codes, but correction 'abitrary||arbitrary' wasn't added to scripts/spelling.txt. Therefore, PATCH #6 adds it to spelling.txt.

Re: [PATCH] drm/fourcc: Add AXBXGXRX106106106106 format

2020-10-08 Thread Matteo Franchin
Hi Joe, Thanks for looking at this. On Wed, Oct 07, 2020 at 11:47:57PM +0100, Joe Perches wrote: > On Wed, 2020-10-07 at 10:27 +0100, Matteo Franchin wrote: > > Add ABGR format with 10-bit components packed in 64-bit per pixel. > > This format can be used to handle > >

[PATCH 5/6] drm/etnaviv: Fix typo arbitary

2020-10-08 Thread Naoki Hayama
Fix comment typo. s/arbitary/arbitrary/ Signed-off-by: Naoki Hayama --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index c6404b8d067f..5077004f7fbf

[PATCH 4/6] ALSA: hdspm: Fix typo arbitary

2020-10-08 Thread Naoki Hayama
Fix comment typo. s/arbitary/arbitrary/ Signed-off-by: Naoki Hayama --- sound/pci/rme9652/hdspm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index 572350aaf18d..a808b445afd8 100644 --- a/sound/pci/rme9652/hdspm.c +++

[PATCH 1/6] net: tlan: Fix typo abitrary

2020-10-08 Thread Naoki Hayama
Fix comment typo. s/abitrary/arbitrary/ Signed-off-by: Naoki Hayama --- drivers/net/ethernet/ti/tlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c index 76a342ea3797..e922258cae3f 100644 ---

[PATCH 3/6] dt-bindings: pinctrl: sirf: Fix typo abitrary

2020-10-08 Thread Naoki Hayama
Fix comment typo. s/abitrary/arbitrary/ Signed-off-by: Naoki Hayama --- Documentation/devicetree/bindings/pinctrl/pinctrl-atlas7.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-atlas7.txt

[PATCH 2/6] dt-bindings: pinctrl: qcom: Fix typo abitrary

2020-10-08 Thread Naoki Hayama
Fix comment typo. s/abitrary/arbitrary/ Signed-off-by: Naoki Hayama --- .../devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.txt| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.txt

[PATCH 6/6] scripts/spelling.txt: Add "arbitrary" typo

2020-10-08 Thread Naoki Hayama
Add "abitrary||arbitrary". Signed-off-by: Naoki Hayama --- scripts/spelling.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/spelling.txt b/scripts/spelling.txt index feb2efaaa5e6..a77b628e3af0 100644 --- a/scripts/spelling.txt +++ b/scripts/spelling.txt @@ -9,6 +9,7 @@ #

Re: [PATCH 5.8 05/85] Revert "usbip: Implement a match function to fix usbip"

2020-10-08 Thread M. Vefa Bicakci
On 07/10/2020 12.13, Greg Kroah-Hartman wrote: On Tue, Oct 06, 2020 at 04:26:27PM +0300, M. Vefa Bicakci wrote: On 05/10/2020 18.26, Greg Kroah-Hartman wrote: From: M. Vefa Bicakci commit d6407613c1e2ef90213dee388aa16b6e1bd08cbc upstream. This commit reverts commit 7a2f2974f265 ("usbip:

Re: [PATCH 4/4] mailbox: arm_mhu: Add ARM MHU doorbell driver

2020-10-08 Thread Sudeep Holla
On Wed, Oct 07, 2020 at 10:43:19AM -0500, Jassi Brar wrote: > On Wed, Oct 7, 2020 at 6:40 AM Sudeep Holla wrote: > > > > On Fri, Oct 02, 2020 at 02:42:37PM -0500, Jassi Brar wrote: > > > On Mon, Sep 28, 2020 at 6:45 AM Sudeep Holla wrote: > > > > > > > + > > > > +static void

Re: [PATCH] printk: handle blank console arguments passed in.

2020-10-08 Thread Petr Mladek
On Wed 2020-10-07 21:30:44, Sergey Senozhatsky wrote: > On (20/10/07 09:28), Petr Mladek wrote: > > > > /* > > * Dirty hack to prevent using any console with tty > > * binding as a fallback and adding the empty > > * name into console_cmdline

KMSAN: uninit-value in ieee80211_sta_tx_notify

2020-10-08 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:5edb1df2 kmsan: drop the _nosanitize string functions git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=1279b1c050 kernel config:

Re: [PATCH v4 1/4] firmware: keembay: Add support for Arm Trusted Firmware Service call

2020-10-08 Thread Andy Shevchenko
On Thu, Oct 8, 2020 at 5:48 AM wrote: > > From: Muhammad Husaini Zulkifli > > Add header file to handle API function for device driver to communicate > with Arm Trusted Firmware. Arm -> ARM ? ... > .../linux/firmware/intel/keembay_firmware.h | 47 +++ Please, drop dup of

Re: [PATCH v7 2/2] soc: mediatek: add mt6779 devapc driver

2020-10-08 Thread Matthias Brugger
On 08/10/2020 04:35, Neal Liu wrote: On Wed, 2020-10-07 at 12:44 +0200, Matthias Brugger wrote: On 27/08/2020 05:06, Neal Liu wrote: MediaTek bus fabric provides TrustZone security support and data protection to prevent slaves from being accessed by unexpected masters. The security

[PATCH v2] MIPS: replace add_memory_region with memblock

2020-10-08 Thread Thomas Bogendoerfer
add_memory_region was the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions. Signed-off-by: Thomas Bogendoerfer --- Changes in v2: fixed missing memblock include in fw/sni/sniprom.c tested on

Re: WARNING: ODEBUG bug in exit_to_user_mode_prepare

2020-10-08 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 9c516e0e4554e8f26ab73d46cbc789d7d8db664d Author: Brian Foster Date: Tue Aug 18 15:05:58 2020 + xfs: finish dfops on every insert range shift iteration bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=157f71e050

Re: [PATCH] docs: net: 80211: reduce docs build time

2020-10-08 Thread Johannes Berg
On Mon, 2020-10-05 at 11:38 +0200, Mauro Carvalho Chehab wrote: > the files under /80211 calls kernel-doc script 207 times, one for each > single function and doc chapter. Due to that, it takes a lot of time > handling it: > > $ touch Documentation/driver-api/80211/*rst && time make >

Re: [PATCH 5/5] x86/head/64: Disable stack protection for head$(BITS).o

2020-10-08 Thread Joerg Roedel
On Wed, Oct 07, 2020 at 03:53:51PM -0400, Arvind Sankar wrote: > On 64-bit, the startup_64_setup_env() function added in > 866b556efa12 ("x86/head/64: Install startup GDT") > has stack protection enabled because of set_bringup_idt_handler(). > > At this point, %gs is not yet initialized, and

Re: [PATCH 09/18] dt-bindings: dma: ti: Add document for K3 BCDMA

2020-10-08 Thread Peter Ujfalusi
On 07/10/2020 18.46, Rob Herring wrote: > On Wed, Oct 07, 2020 at 12:09:06PM +0300, Peter Ujfalusi wrote: >> >> >> On 06/10/2020 22.29, Rob Herring wrote: >>> On Wed, Sep 30, 2020 at 12:14:03PM +0300, Peter Ujfalusi wrote: New binding document for Texas Instruments K3 Block Copy DMA

Re: [PATCH 10/13] PCI: revoke mappings like devmem

2020-10-08 Thread Dan Williams
On Thu, Oct 8, 2020 at 1:13 AM Daniel Vetter wrote: > > On Thu, Oct 8, 2020 at 9:50 AM Dan Williams wrote: > > > > On Wed, Oct 7, 2020 at 4:25 PM Jason Gunthorpe wrote: > > > > > > On Wed, Oct 07, 2020 at 12:33:06PM -0700, Dan Williams wrote: > > > > On Wed, Oct 7, 2020 at 11:11 AM Daniel

Re: [PATCH 0/3] IRQ stack support for ARM

2020-10-08 Thread Russell King - ARM Linux admin
On Thu, Oct 08, 2020 at 12:45:30PM +0530, Maninder Singh wrote: > Observed Stack Overflow on 8KB kernel stack on ARM specially > incase on network interrupts, which results in undeterministic behaviour. > So there is need for per cpu dedicated IRQ stack for ARM. > > As ARm does not have extra

[PATCH v7 2/2] PHY: Ingenic: Add USB PHY driver using generic PHY framework.

2020-10-08 Thread Zhou Yanjie
Used the generic PHY framework API to create the PHY, this driver supoorts USB OTG PHY used in JZ4770 SoC, JZ4780 SoC, X1000 SoC, and X1830 SoC. Tested-by: 周正 (Zhou Zheng) Tested-by: H. Nikolaus Schaller Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰

[PATCH v7 1/2] USB: PHY: JZ4770: Remove unnecessary function calls.

2020-10-08 Thread Zhou Yanjie
Remove unnecessary "of_match_ptr()", because Ingenic SoCs all depend on Device Tree. Suggested-by: Paul Cercueil Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil --- Notes: v3: New patch. v3->v4: No change. v4->v5: Add Paul Cercueil's Reviewed-by.

[PATCH v7 0/2] Use the generic PHY framework for Ingenic USB PHY.

2020-10-08 Thread Zhou Yanjie
v3->v4: Only add new generic-PHY driver, without removing the old one. Because the jz4740-musb driver is not ready to use the generic PHY framework. When the jz4740-musb driver is modified to use the generic PHY framework, the old jz4770-phy driver can be "retired". v4->v5: 1.Add an extra blank

Re: [PATCH] arm/arm64: xen: Fix to convert percpu address to gfn correctly

2020-10-08 Thread Masami Hiramatsu
On Tue, 6 Oct 2020 10:56:52 -0700 (PDT) Stefano Stabellini wrote: > On Tue, 6 Oct 2020, Masami Hiramatsu wrote: > > On Mon, 5 Oct 2020 18:13:22 -0700 (PDT) > > Stefano Stabellini wrote: > > > > > On Mon, 5 Oct 2020, Julien Grall wrote: > > > > Hi Masami, > > > > > > > > On 05/10/2020 14:39,

Re: [PATCH 2/3] drm/msm: add DRM_MSM_GEM_SYNC_CACHE for non-coherent cache maintenance

2020-10-08 Thread Joerg Roedel
On Tue, Oct 06, 2020 at 08:23:06AM +0100, Christoph Hellwig wrote: > If people want to use the "raw" IOMMU API with not cache coherent > devices we'll need a cache maintainance API that goes along with it. > It could either be formally part of the IOMMU API or be separate. The IOMMU-API does not

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-08 Thread Ville Syrjälä
On Wed, Oct 07, 2020 at 09:44:09AM -0700, Rob Clark wrote: > On Mon, Oct 5, 2020 at 5:15 AM Ville Syrjälä > wrote: > > > > On Fri, Oct 02, 2020 at 10:55:52AM -0700, Rob Clark wrote: > > > On Fri, Oct 2, 2020 at 4:05 AM Ville Syrjälä > > > wrote: > > > > > > > > On Fri, Oct 02, 2020 at 01:52:56PM

Re: [Bug 209321] DMAR: [DMA Read] Request device [03:00.0] PASID ffffffff fault addr fffd3000 [fault reason 06] PTE Read access is not set

2020-10-08 Thread Joerg Roedel
Hi Bjorn, On Wed, Oct 07, 2020 at 10:43:14AM -0500, Bjorn Helgaas wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=209321 > > Not much detail in the bugzilla yet, but apparently this started in > v5.8.0-rc1: > > DMAR: [DMA Read] Request device [03:00.0] PASID fault addr >

Re: [PATCH 01/18] dmaengine: of-dma: Add support for optional router configuration callback

2020-10-08 Thread Peter Ujfalusi
On 07/10/2020 8.44, Vinod Koul wrote: > Hi Peter, > > On 30-09-20, 12:13, Peter Ujfalusi wrote: >> Additional configuration for the DMA event router might be needed for a >> channel which can not be done during device_alloc_chan_resources callback >> since the router information is not yet

Re: [PATCH 10/13] PCI: revoke mappings like devmem

2020-10-08 Thread Daniel Vetter
On Thu, Oct 8, 2020 at 9:50 AM Dan Williams wrote: > > On Wed, Oct 7, 2020 at 4:25 PM Jason Gunthorpe wrote: > > > > On Wed, Oct 07, 2020 at 12:33:06PM -0700, Dan Williams wrote: > > > On Wed, Oct 7, 2020 at 11:11 AM Daniel Vetter > > > wrote: > > > > > > > > Since 3234ac664a87 ("/dev/mem:

Re: [PATCH 10/13] PCI: revoke mappings like devmem

2020-10-08 Thread Daniel Vetter
On Thu, Oct 8, 2020 at 12:29 AM Dan Williams wrote: > > On Wed, Oct 7, 2020 at 3:23 PM Dan Williams wrote: > > > > On Wed, Oct 7, 2020 at 12:49 PM Daniel Vetter > > wrote: > > > > > > On Wed, Oct 7, 2020 at 9:33 PM Dan Williams > > > wrote: > > > > > > > > On Wed, Oct 7, 2020 at 11:11 AM

Re: [PATCH v5 4/5] docs: counter: Document character device interface

2020-10-08 Thread Pavel Machek
Hi! > +int main(void) > +{ > +struct pollfd pfd = { .events = POLLIN }; > +struct counter_event event_data[2]; > + > +pfd.fd = open("/dev/counter0", O_RDWR); > + > +ioctl(pfd.fd, COUNTER_SET_WATCH_IOCTL, watches); > +

Re: [PATCH v2 1/2] net: usb: qmi_wwan: add Cellient MPL200 card

2020-10-08 Thread Bjørn Mork
Wilken Gottwalt writes: > Add usb ids of the Cellient MPL200 card. > > Signed-off-by: Wilken Gottwalt > --- > drivers/net/usb/qmi_wwan.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c > index 07c42c0719f5..5ca1356b8656 100644 >

[PATCH 22/35] kvm, x86: Distinguish dmemfs page from mmio page

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Dmem page is pfn invalid but not mmio. Support cacheable dmem page for kvm. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- arch/x86/kvm/mmu/mmu.c | 5 +++-- include/linux/dmem.h | 7 +++ mm/dmem.c | 7 +++ 3 files changed, 17 insertions(+), 2

[PATCH 27/35] mm: add pud_special() to support dmem huge pud

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Add pud_special() and follow_special_pud() to support dmem huge pud as we do for dmem huge pmd. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- arch/x86/include/asm/pgtable.h | 2 +- include/linux/huge_mm.h| 2 +- mm/gup.c | 46

[PATCH 32/35] mm, dmemfs: register and handle the dmem mce

2020-10-08 Thread yulei . kernel
From: Yulei Zhang dmemfs register the mce handler, send signal to the procs whose vma is mapped in mce pfn. Signed-off-by: Haiwei Li Signed-off-by: Yulei Zhang --- fs/dmemfs/inode.c| 141 +++ include/linux/dmem.h | 7 +++ include/linux/mm.h |

[PATCH 21/35] mm: support dmem huge pmd for follow_pfn()

2020-10-08 Thread yulei . kernel
From: Yulei Zhang follow_pfn() will get pfn of pmd if huge pmd is encountered. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- mm/memory.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 2d2c0f8a966b..ca42a6e56e9b

[PATCH 35/35] Add documentation for dmemfs

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Introduce dmemfs.rst to document the basic usage of dmemfs. Signed-off-by: Yulei Zhang --- Documentation/filesystems/dmemfs.rst | 59 1 file changed, 59 insertions(+) create mode 100644 Documentation/filesystems/dmemfs.rst diff --git

[PATCH 30/35] dmem: introduce dmem_bitmap_alloc() and dmem_bitmap_free()

2020-10-08 Thread yulei . kernel
From: Yulei Zhang If dmem contained in dmem region is too large and dmemfs is mounted as 4K pagesize, size of bitmap in this dmem region maybe exceed maximal available memory of kzalloc(). It would cause kzalloc() fail. So introduce dmem_bitmap_alloc() and use vzalloc() if bitmap is larger than

[PATCH 34/35] dmem: add dmem unit tests

2020-10-08 Thread yulei . kernel
From: Yulei Zhang This test case is used to test dmem management system. Signed-off-by: Xiao Guangrong Signed-off-by: Yulei Zhang --- tools/testing/dmem/Kbuild | 1 + tools/testing/dmem/Makefile| 10 ++ tools/testing/dmem/dmem-test.c | 184 + 3

[PATCH 28/35] mm, dmemfs: support huge_fault() for dmemfs

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Introduce __dmemfs_huge_fault() to handle 1G huge pud for dmemfs. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- fs/dmemfs/inode.c | 40 1 file changed, 40 insertions(+) diff --git a/fs/dmemfs/inode.c b/fs/dmemfs/inode.c

[PATCH 23/35] kvm, x86: introduce VM_DMEM

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Currently dmemfs do not support memory readonly, so change_protection() will be disabled for dmemfs vma. Since vma->vm_flags could be changed to new flag in mprotect_fixup(), so we introduce a new vma flag VM_DMEM and check this flag in mprotect_fixup() to avoid changing

[PATCH 26/35] mm, dmem: introduce pud_special()

2020-10-08 Thread yulei . kernel
From: Yulei Zhang pud_special() will check both _PAGE_SPECIAL and _PAGE_DMEM bit as pmd_special() does. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- arch/x86/include/asm/pgtable.h | 13 + include/linux/pgtable.h| 10 ++ 2 files changed, 23 insertions(+)

[PATCH 31/35] dmem: introduce mce handler

2020-10-08 Thread yulei . kernel
From: Yulei Zhang dmem handle the mce if the pfn belongs to dmem when mce occurs. 1. check whether the pfn is handled by dmem. return if true. 2. mark the pfn in a new error bitmap defined in page. 3. a series of mechanism to ensure that the mce pfn is not allocated. Signed-off-by: Haiwei Li

[PATCH 33/35] kvm, x86: temporary disable record_steal_time for dmem

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Temporarily disable record_steal_time when entering the guest for dmem. Signed-off-by: Yulei Zhang --- arch/x86/kvm/x86.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1994602a0851..409b5a68aa60 100644 ---

[PATCH 29/35] mm: add follow_pte_pud()

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Since we had supported dmem huge pud, here support dmem huge pud for hva_to_pfn(). Similar to follow_pte_pmd(), follow_pte_pud() allows a PTE lead or a huge page PMD or huge page PUD to be found and returned. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang ---

[PATCH 17/35] mm, dmemfs: support unmap_page_range() for dmemfs pmd

2020-10-08 Thread yulei . kernel
From: Yulei Zhang It is required by munmap() for dmemfs mapping. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- mm/huge_memory.c | 2 ++ mm/memory.c | 8 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index

[PATCH 15/35] mm: add pmd_special() check for pmd_trans_huge_lock()

2020-10-08 Thread yulei . kernel
From: Yulei Zhang As dmem-pmd had been distinguished from thp-pmd, we need to add pmd_special() such that pmd_trans_huge_lock could fetch ptl for dmem huge pmd and treat it as stable pmd. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- include/linux/huge_mm.h | 3 ++-

[PATCH 25/35] mm, x86, dmem: fix estimation of reserved page for vaddr_get_pfn()

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Fix estimation of reserved page for vaddr_get_pfn() and check 'ret' before checking writable permission Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- drivers/vfio/vfio_iommu_type1.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 14/35] mm, dmem: dmem-pmd vs thp-pmd

2020-10-08 Thread yulei . kernel
From: Yulei Zhang A dmem huge page is ultimately not a transparent huge page. As we decided to use pmd_special() to distinguish dmem-pmd from thp-pmd, we should make some slightly different semantics between pmd_special() and pmd_trans_huge(), just as pmd_devmap() in upstream. This distinction

[PATCH 24/35] dmemfs: support hugepage for dmemfs

2020-10-08 Thread yulei . kernel
From: Yulei Zhang It add hugepage support for dmemfs. We use PFN_DMEM to notify vmf_insert_pfn_pmd, and dmem huge pmd will be marked with _PAGE_SPECIAL and _PAGE_DMEM. So that GUP-fast can separate dmemfs page from other page type and handle it correctly. Signed-off-by: Chen Zhuo

[PATCH 19/35] mm: gup_huge_pmd() for dmem huge pmd

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Add pmd_special() check in gup_huge_pmd() to support dmem huge pmd. GUP will return zero if enconter dmem page, and we could handle it outside GUP routine. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- mm/gup.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH 16/35] dmemfs: introduce ->split() to dmemfs_vm_ops

2020-10-08 Thread yulei . kernel
From: Yulei Zhang It is required by __split_vma() to adjust vma. munmap() which create hole unaligned to pagesize in dmemfs-mapping should be forbidden. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- fs/dmemfs/inode.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 20/35] mm: support dmem huge pmd for vmf_insert_pfn_pmd()

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Since vmf_insert_pfn_pmd will BUG_ON non-pmd-devmap, we make pfn dmem pass the check. Dmem huge pmd will be marked with _PAGE_SPECIAL and _PAGE_DMEM, so that follow_pfn() could recognize it. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- mm/huge_memory.c | 4 +++-

[PATCH 09/35] dmemfs: support remote access

2020-10-08 Thread yulei . kernel
From: Yulei Zhang It is required by ptrace_writedata and ptrace_readdata to access dmem memory remotely. The typical user is gdb, after this patch, gdb is able to read & write memory owned by the attached process Signed-off-by: Xiao Guangrong Signed-off-by: Yulei Zhang --- fs/dmemfs/inode.c

Re: [PATCH v3 02/18] iommu/vt-d: Add DEV-MSI support

2020-10-08 Thread David Woodhouse
On Wed, 2020-09-30 at 20:32 +0200, Thomas Gleixner wrote: > On Tue, Sep 15 2020 at 16:27, Dave Jiang wrote: > > @@ -1303,9 +1303,10 @@ static void intel_irq_remapping_prepare_irte(struct > > intel_ir_data *data, > > case X86_IRQ_ALLOC_TYPE_HPET: > > case X86_IRQ_ALLOC_TYPE_PCI_MSI: > >

[PATCH 18/35] mm: follow_pmd_mask() for dmem huge pmd

2020-10-08 Thread yulei . kernel
From: Yulei Zhang While follow_pmd_mask(), dmem huge pmd should be recognized and return error pointer of '-EEXIST' to indicate that proper page table entry exists in pmd special but no corresponding struct page, because dmem page means non struct page backend. We update pmd if foll_flags takes

[PATCH 11/35] mm: export mempolicy interfaces to serve dmem allocator

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Export interface interleave_nid() to serve dmem allocator. Signed-off-by: Yulei Zhang --- include/linux/mempolicy.h | 3 +++ mm/mempolicy.c| 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/linux/mempolicy.h

[PATCH 08/35] dmem: show some statistic in debugfs

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Create 'dmem' directory under debugfs and show some statistic for dmem pool, track total and free dpages on dmem pool and each numa node. Signed-off-by: Xiao Guangrong Signed-off-by: Yulei Zhang --- mm/Kconfig | 9 + mm/dmem.c | 100

[PATCH 13/35] mm, dmem: introduce PFN_DMEM and pfn_t_dmem

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Introduce PFN_DMEM as a new pfn flag for dmem pfn, define it by setting (BITS_PER_LONG_LONG - 6) bit. Introduce pfn_t_dmem() helper to recognize dmem pfn. Signed-off-by: Chen Zhuo Signed-off-by: Yulei Zhang --- include/linux/pfn_t.h | 17 - 1 file changed,

[PATCH 10/35] dmemfs: introduce max_alloc_try_dpages parameter

2020-10-08 Thread yulei . kernel
From: Yulei Zhang It specifies the dmem page number allocated at one time, then multiple radix entries can be created. That will relief the allocation pressure and make page fault more fast. However that could cause no dmem page mmapped to userspace even if there are some free dmem pages. Set

[PATCH 12/35] dmem: introduce mempolicy support

2020-10-08 Thread yulei . kernel
From: Yulei Zhang It adds mempolicy support for dmem to allocates memory from mempolicy specified nodes. Signed-off-by: Haiwei Li Signed-off-by: Yulei Zhang --- arch/x86/Kconfig | 1 + arch/x86/include/asm/pgtable.h | 7 arch/x86/include/asm/pgtable_types.h

[PATCH 04/35] dmem: let pat recognize dmem

2020-10-08 Thread yulei . kernel
From: Yulei Zhang x86 pat uses 'struct page' by only checking if it's system ram, however it is not true if dmem is used, let's teach pat to recognize this case if it is ram but it is !pfn_valid() We always use WB for dmem and any attempt to change this behavior will be rejected and WARN_ON is

[PATCH 01/35] fs: introduce dmemfs module

2020-10-08 Thread yulei . kernel
From: Yulei Zhang dmemfs (Direct Memory filesystem) is device memory or reserved memory based filesystem. This kind of memory is special as it is not managed by kernel and it is without 'struct page'. The original purpose of dmemfs is to drop the usage of 'struct page' to save extra system

[PATCH 07/35] dmem: trace core functions

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Add tracepoints for alloc_init, alloc and free functions, that helps us to figure out what is happening inside dmem allocator Signed-off-by: Xiao Guangrong Signed-off-by: Yulei Zhang --- fs/dmemfs/Makefile | 1 + fs/dmemfs/inode.c | 5 +++

[PATCH 02/35] mm: support direct memory reservation

2020-10-08 Thread yulei . kernel
From: Yulei Zhang Introduce 'dmem=' to reserve system memory for DMEM (direct memory), comparing with 'mem=' and 'memmap', it reserves memory based on the topology of NUMA, for the detailed info, please refer to kernel-parameters.txt Signed-off-by: Xiao Guangrong Signed-off-by: Yulei Zhang

[PATCH 05/35] dmemfs: support mmap

2020-10-08 Thread yulei . kernel
From: Yulei Zhang It adds mmap support. Note the file will be extended if it's beyond mmap's offset, that drops the requirement of write() operation, however, it has not supported cutting file down. Signed-off-by: Xiao Guangrong Signed-off-by: Yulei Zhang --- fs/dmemfs/inode.c| 337

[PATCH 06/35] dmemfs: support truncating inode down

2020-10-08 Thread yulei . kernel
From: Yulei Zhang To support cut inode down, it will introduce the race between page fault handler and truncating handler as the entry to be deleted is being mapped into process's VMA in order to make page fault faster (as it's the hot path), we use RCU to sync these two handlers. When inode's

[PATCH 03/35] dmem: implement dmem memory management

2020-10-08 Thread yulei . kernel
From: Yulei Zhang It introduces the interfaces to manage dmem pages that include: - dmem_region_register(), it registers the reserved memory to the dmem management system, later it can be allocated out for dmemfs - dmem_alloc_init(), initiate dmem allocator, note the page size the

Re: [PATCH 0/3] IRQ stack support for ARM

2020-10-08 Thread Sebastian Andrzej Siewior
On 2020-10-08 12:45:30 [+0530], Maninder Singh wrote: > Observed Stack Overflow on 8KB kernel stack on ARM specially > incase on network interrupts, which results in undeterministic behaviour. > So there is need for per cpu dedicated IRQ stack for ARM. You could try to look where this stack

[PATCH 00/35] Enhance memory utilization with DMEMFS

2020-10-08 Thread yulei . kernel
From: Yulei Zhang In current system each physical memory page is assocaited with a page structure which is used to track the usage of this page. But due to the memory usage rapidly growing in cloud environment, we find the resource consuming for page structure storage becomes highly remarkable.

Re: [PATCH v7 03/12] dt-bindings: mfd: Fix schema warnings for pwm-leds

2020-10-08 Thread Pavel Machek
Hi! > > > The node names for devices using the pwm-leds driver follow a certain > > > naming scheme (now). Parent node name is not enforced, but recommended > > > by DT project. > > > > > > DTC Documentation/devicetree/bindings/mfd/iqs62x.example.dt.yaml > > > CHECK

Re: [PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-08 Thread Enric Balletbo i Serra
Hi Chun-Kuang, On 8/10/20 2:01, Chun-Kuang Hu wrote: > Hi, Enric: > > Enric Balletbo i Serra 於 2020年10月7日 週三 > 上午3:33寫道: >> >> From: CK Hu >> >> Actually, setting the registers for routing, use multiple 'if-else' for >> different >> routes, but this code would be more and more complicated

Re: [PATCH 10/13] PCI: revoke mappings like devmem

2020-10-08 Thread Dan Williams
On Wed, Oct 7, 2020 at 4:25 PM Jason Gunthorpe wrote: > > On Wed, Oct 07, 2020 at 12:33:06PM -0700, Dan Williams wrote: > > On Wed, Oct 7, 2020 at 11:11 AM Daniel Vetter > > wrote: > > > > > > Since 3234ac664a87 ("/dev/mem: Revoke mappings when a driver claims > > > the region") /dev/kmem zaps

Re: [PATCH] docs: w1: w1_therm: Fix broken xref, mistakes, clarify text

2020-10-08 Thread Greg Kroah-Hartman
On Thu, Oct 08, 2020 at 08:42:59AM +0300, Ivan Zaentsev wrote: > sysfs attribute names are mixed with the same normal text terms. > Use ReST to distinguish. > > Fix typos and mistakes. > > Signed-off-by: Ivan Zaentsev You forgot a "Reported-by:" line in here. I'll go add that... thanks,

Re: [PATCH v10 00/15] TCPM support for FRS and AutoDischarge Disconnect

2020-10-08 Thread Greg Kroah-Hartman
On Wed, Oct 07, 2020 at 11:15:41PM -0700, Badhri Jagan Sridharan wrote: > Hi, > > Made two changes: > > 1. Added "additionalProperties: false" as suggested by Rob Herring in > https://lore.kernel.org/linux-usb/20201005144618.GA154206@bogus/ > > 2. Removed FRS dts binding constants to address

[PATCH 1/3] trace: events: devfreq: Use fixed indentation size to improve readability

2020-10-08 Thread Chanwoo Choi
Each tracepoint infromation consist of the different size value. So, in order to improve the readability, use the fixed indentation size. Signed-off-by: Chanwoo Choi --- include/trace/events/devfreq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/3] PM / devfreq: Unify frequency change to devfreq_update_target func

2020-10-08 Thread Chanwoo Choi
The update_devfreq() and update_passive_devfreq() have the duplicate code when changing the target frequency on final stage. So, unify frequency change code to devfreq_update_target() to remove the duplicate code and to centralize the frequency change code. Signed-off-by: Chanwoo Choi ---

[PATCH 3/3] PM / devfreq: Add tracepoint for frequency changes

2020-10-08 Thread Chanwoo Choi
From: Matthias Kaehlcke Add a tracepoint for frequency changes of devfreq devices and use it. Signed-off-by: Matthias Kaehlcke [cw00.choi: Move print position of tracepoint and add more information] Signed-off-by: Chanwoo Choi --- drivers/devfreq/devfreq.c | 8

[PATCH 0/3] PM / devfreq: Add devfreq_frequency tracepoint to track frequency change

2020-10-08 Thread Chanwoo Choi
Add devfreq_tracepoint to track the correct timing of frequency change with following information: - device name - current frequency - previous frequency - load when change frequency - tracepoint path : /sys/kernel/debug/tracing/events/devfreq_frequency And add devfreq_update_target() function to

Re: [PATCH v2 2/2] mmap_lock: add tracepoints around lock acquisition

2020-10-08 Thread Michel Lespinasse
On Wed, Oct 7, 2020 at 11:44 AM Axel Rasmussen wrote: > The goal of these tracepoints is to be able to debug lock contention > issues. This lock is acquired on most (all?) mmap / munmap / page fault > operations, so a multi-threaded process which does a lot of these can > experience significant

WARNING in ieee80211_ibss_csa_beacon

2020-10-08 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c85fb28b Merge tag 'arm64-fixes' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15b2b40050 kernel config: https://syzkaller.appspot.com/x/.config?x=de7f697da23057c7

Re: [PATCH v3 11/18] dmaengine: idxd: ims setup for the vdcm

2020-10-08 Thread Thomas Gleixner
On Wed, Oct 07 2020 at 14:54, Dave Jiang wrote: > On 9/30/2020 12:57 PM, Thomas Gleixner wrote: >> Aside of that this is fiddling in the IMS storage array behind the irq >> chips back without any comment here and a big fat comment about the >> shared usage of ims_slot::ctrl in the irq chip driver.

Re: [PATCH net-next v2 03/16] devlink: Add devlink reload limit option

2020-10-08 Thread Jiri Pirko
Wed, Oct 07, 2020 at 08:00:44AM CEST, mo...@mellanox.com wrote: >Add reload limit to demand restrictions on reload actions. >Reload limits supported: >no_reset: No reset allowed, no down time allowed, no link flap and no > configuration is lost. > >By default reload limit is unspecified

Re: [PATCH v4 4/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-08 Thread Michal Simek
On 08. 10. 20 4:09, muhammad.husaini.zulki...@intel.com wrote: > From: Muhammad Husaini Zulkifli > > Voltage switching sequence is needed to support UHS-1 interface. > There are 2 places to control the voltage. > 1) By setting the AON register using firmware driver calling > system-level

Re: [PATCH v4 2/4] dt-bindings: mmc: Add uhs-gpio for Keem Bay UHS-1 Support

2020-10-08 Thread Michal Simek
On 08. 10. 20 4:09, muhammad.husaini.zulki...@intel.com wrote: > From: Muhammad Husaini Zulkifli > > Add DT bindings of uhs-gpio for Keem Bay SOC UHS Mode Support > > Signed-off-by: Muhammad Husaini Zulkifli > --- > Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml | 8 +++- > 1

Re: [PATCH v2 04/11] drivers/base/devcoredump: convert devcd_count to counter_atomic32

2020-10-08 Thread Kees Cook
On Thu, Oct 08, 2020 at 08:42:22AM +0200, Johannes Berg wrote: > 1) each value that we derive from this ever-incrementing (modulo 2^32) > variable only get used for a limited amount of time (max. 5 minutes) Ah! That's what I misunderstood, the resulting value is only used for 5 minutes. Got

Re: [PATCH v2 1/2] dt-bindings: gpio: pca953x: Add support for the NXP PCAL9554B/C

2020-10-08 Thread Mike Looijmans
Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: mike.looijm...@topicproducts.com W: www.topicproducts.com Please consider the environment before printing this e-mail On

Re: [PATCH v4 1/4] firmware: keembay: Add support for Arm Trusted Firmware Service call

2020-10-08 Thread Michal Simek
On 08. 10. 20 4:09, muhammad.husaini.zulki...@intel.com wrote: > From: Muhammad Husaini Zulkifli > > Add header file to handle API function for device driver to communicate > with Arm Trusted Firmware. > > Signed-off-by: Muhammad Husaini Zulkifli > --- >

<    5   6   7   8   9   10   11   >