Re: [PATCH-next 0/4] RDMA: sprintf to sysfs_emit conversions

2020-10-08 Thread Leon Romanovsky
On Wed, Oct 07, 2020 at 10:52:15PM -0700, Joe Perches wrote: > On Thu, 2020-10-08 at 08:41 +0300, Leon Romanovsky wrote: > > On Wed, Oct 07, 2020 at 07:36:23PM -0700, Joe Perches wrote: > > > A recent commit added a sysfs_emit and sysfs_emit_at to allow various > > > sysfs show functions to ensure

Re: Additional debug info to aid cacheline analysis

2020-10-08 Thread Peter Zijlstra
My appologies for adding a typo to the linux-kernel address, corrected now. On Wed, Oct 07, 2020 at 10:58:00PM -0700, Stephane Eranian wrote: > Hi Peter, > > On Tue, Oct 6, 2020 at 6:17 AM Peter Zijlstra wrote: > > > > Hi all, > > > > I've been trying to float this idea for a fair number of ye

[PATCH v1] hv_balloon: disable warning when floor reached

2020-10-08 Thread Olaf Hering
It is not an error if a the host requests to balloon down, but the VM refuses to do so. Without this change a warning is logged in dmesg every five minutes. Fixes commit b3bb97b8a49f3 Signed-off-by: Olaf Hering --- drivers/hv/hv_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Re: [PATCH] PCI: pciehp: Add check for DL_ACTIVE bit in pciehp_check_link_status()

2020-10-08 Thread Sanjay R Mehta
On 10/7/2020 1:08 AM, Lukas Wunner wrote: > [CAUTION: External Email] > > On Tue, Oct 06, 2020 at 01:24:28PM -0500, Sanjay R Mehta wrote: >> if DL_ACTIVE bit is set it means that there is no need to check >> PCI_EXP_LNKSTA_LT bit, as DL_ACTIVE would have set only if the link >> is already train

Re: arceb-elf-ld: include/linux/leds.h:193: undefined reference to `devm_led_classdev_register_ext'

2020-10-08 Thread Pavel Machek
ago > config: arc-randconfig-r035-20201008 (attached as .config) > compiler: arceb-elf-gcc (GCC) 9.3.0 > reproduce (this is a W=1 build): > wget > https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O > ~/bin/make.cross > chmod +x ~/bin/make.cros

Re: [PATCH 2/2] usb: serial: option: add Cellient MPL200 card

2020-10-08 Thread Johan Hovold
On Thu, Oct 08, 2020 at 08:47:33AM +0200, Wilken Gottwalt wrote: > On Tue, 6 Oct 2020 09:02:01 +0200 > Johan Hovold wrote: > > > On Mon, Oct 05, 2020 at 02:07:23PM +0200, Wilken Gottwalt wrote: > > > On Mon, 5 Oct 2020 18:36:36 +0700 Lars Melin wrote: > > > > It is very likely that Cellient has

Re: [PATCH] mm: mmap: Fix general protection fault in unlink_file_vma()

2020-10-08 Thread linmiaohe
Andrew Morton wrote: > On Wed, 16 Sep 2020 05:07:33 -0400 Miaohe Lin wrote: > >> The syzbot reported the below general protection fault: >> >> general protection fault, probably for non-canonical address >> 0xe00eeaee003b: [#1] PREEMPT SMP KASAN >> KASAN: maybe wild-memory-access in ran

[PATCH 3/3] arm: Modify stack trace and dump for use with irq stack

2020-10-08 Thread Maninder Singh
This patch allows unwind_frame() to traverse from interrupt stack to task stack correctly. A similar approach is taken to modify dump_backtrace_entry(), which expects to find struct pt_regs underneath any call to functions marked __exception. When on an irq_stack, the struct pt_regs is stored on t

[PATCH 0/3] IRQ stack support for ARM

2020-10-08 Thread Maninder Singh
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 co-processor register to save thread info pointer, IRQ stack will be at some

[PATCH 1/3] arm: introduce self pointer in thread info

2020-10-08 Thread Maninder Singh
self pointer to thread info is added in thread info. It is base change required for IRQ stack on ARM. both stacks will have pointer to thread_info at bottom. Co-developed-by: Vaneet Narang Signed-off-by: Vaneet Narang Signed-off-by: Maninder Singh --- arch/arm/Kconfig | 10 +

[PATCH 2/3] arm: introduce IRQ stacks

2020-10-08 Thread Maninder Singh
This patch adds code for switching to IRQ stack. IRQ stack and Kernel SVC stack have below design. IRQ STACK:- IRQ stack top | | . . . .

Re: [PATCH v1] hv_balloon: disable warning when floor reached

2020-10-08 Thread Olaf Hering
Am Thu, 8 Oct 2020 09:12:15 +0200 schrieb Olaf Hering : > warning is logged in dmesg Actually it is logged on the system console, depending on how logging is configured. Olaf pgpdjkpjAh1xK.pgp Description: Digitale Signatur von OpenPGP

Re: [PATCH 00/14] drm/amd/pm: Replace one-element arrays with flexible-array members

2020-10-08 Thread Christian König
Am 07.10.20 um 18:01 schrieb Gustavo A. R. Silva: Hi all, This series aims to replace one-element arrays with flexible-array members. There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always u

Re: [PATCH v2] rcu/tree: nocb: Avoid raising softirq when there are ready to execute CBs

2020-10-08 Thread Neeraj Upadhyay
On 10/8/2020 4:04 AM, Paul E. McKenney wrote: On Sun, Oct 04, 2020 at 10:11:32PM -0400, Joel Fernandes (Google) wrote: During testing, I see it is possible that rcu_pending() returns 1 when offloaded callbacks are ready to execute thus raising the RCU softirq. However, softirq does not execu

Re: [PATCH v2 00/29] [Set 1,2,3] Rid W=1 warnings in Wireless

2020-10-08 Thread Kalle Valo
Luca Coelho writes: > On Tue, 2020-10-06 at 10:10 +0300, Kalle Valo wrote: >> Lee Jones writes: >> >> > On Tue, 06 Oct 2020, Kalle Valo wrote: >> > >> > > Lee Jones writes: >> > > >> > > > On Thu, 10 Sep 2020, Lee Jones wrote: >> > > > >> > > > > This is a rebased/re-worked set of patches w

[PATCH v2 0/2] add Cellient MPL200 card

2020-10-08 Thread Wilken Gottwalt
Add the Cellient MPL200 card to usb/qmi_wwan and serial/option. The serial/option patch got already applied. Changes v2: Picked proper subject for qmi_wwan patch, moved the MPL200 device to the section of the combined devices and changed the comment about the device to be more precise. Wilken Got

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

2020-10-08 Thread Wilken Gottwalt
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 --- a/drivers/net/usb/qmi_wwan.c +++ b/driver

[PATCH v2 2/2] usb: serial: option: add Cellient MPL200 card

2020-10-08 Thread Wilken Gottwalt
Add usb ids of the Cellient MPL200 card. Signed-off-by: Wilken Gottwalt --- drivers/usb/serial/option.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 0c6f160a214a..a65e620b2277 100644 --- a/drivers/usb/serial/option.c +++ b

Re: [PATCH v2 1/2] tracing: support "bool" type in synthetic trace events

2020-10-08 Thread Michel Lespinasse
On Wed, Oct 7, 2020 at 11:44 AM Axel Rasmussen wrote: > It's common [1] to define tracepoint fields as "bool" when they contain > a true / false value. Currently, defining a synthetic event with a > "bool" field yields EINVAL. It's possible to work around this by using > e.g. u8 (assuming sizeof(b

Re: [PATCH v2 1/6] mfd: intel-m10-bmc: support for MAX10 BMC Security Engine

2020-10-08 Thread Lee Jones
On Wed, 07 Oct 2020, Russ Weight wrote: > On 10/7/20 12:00 AM, Lee Jones wrote: > > On Fri, 02 Oct 2020, Russ Weight wrote: > > > >> Add macros and definitions required by the MAX10 BMC > >> Security Engine driver. > >> > >> Signed-off-by: Russ Weight > >> --- > >> v2: > >> - These functions and

Re: [PATCH 07/13] mm: close race in generic_access_phys

2020-10-08 Thread Daniel Vetter
On Thu, Oct 8, 2020 at 2:44 AM John Hubbard wrote: > > On 10/7/20 9:44 AM, Daniel Vetter wrote: > > Way back it was a reasonable assumptions that iomem mappings never > > change the pfn range they point at. But this has changed: > > > > - gpu drivers dynamically manage their memory nowadays, inval

Re: [PATCH v10 3/3] clk: mediatek: add UART0 clock support

2020-10-08 Thread Matthias Brugger
Hi Stephen, On 08/10/2020 04:00, Stephen Boyd wrote: Quoting Hanks Chen (2020-10-03 03:06:47) Hi Michael & Stephen, Please kindly let me know your comments about this patch. Thanks What's the base for this patch? I tried applying to v5.9-rc1 and it didn't work. Can you please double chec

Re: [PATCH 1/2] usb: cdns3: Rids of duplicate error message

2020-10-08 Thread Roger Quadros
On 08/10/2020 07:18, Pawel Laszczak wrote: Hi Roger, On 07/10/2020 06:35, Pawel Laszczak wrote: On failure, the platform_get_irq_byname prints an error message so, patch removes error message related to this function from core.c file. A change was suggested during reviewing CDNSP driver b

Re: [PATCH V8 1/5] PCI: Add defines for Designated Vendor-Specific Extended Capability

2020-10-08 Thread Lee Jones
On Wed, 07 Oct 2020, Hans de Goede wrote: > Hi, > > On 10/7/20 8:54 AM, Lee Jones wrote: > > On Tue, 06 Oct 2020, David E. Box wrote: > > > > > On Tue, 2020-10-06 at 19:51 -0500, Bjorn Helgaas wrote: > > > > On Tue, Oct 06, 2020 at 03:45:54PM -0700, David E. Box wrote: > > > > > Hi Bjorn, > > >

Re: [PATCH 2/2] usb: cdns3: Variable ‘length’ set but not used

2020-10-08 Thread Roger Quadros
Pawel, On 08/10/2020 06:57, Pawel Laszczak wrote: Siergei, On 10/7/20 11:15 AM, Roger Quadros wrote: [...] Patch removes not used variable 'length' from cdns3_wa2_descmiss_copy_data function. Signed-off-by: Pawel Laszczak Fixes: commit 141e70fef4ee ("usb: cdns3: gadget: need to handle s

Re: [PATCH 0/7] wfx: move out from the staging area

2020-10-08 Thread Kalle Valo
Greg Kroah-Hartman writes: > On Wed, Oct 07, 2020 at 12:19:36PM +0200, Jerome Pouiller wrote: >> From: Jérôme Pouiller >> >> I think the wfx driver is now mature enough to be accepted in the >> drivers/net/wireless directory. >> >> There is still one item on the TODO list. It is an idea to imp

Re: [PATCH v2 2/2] usb: serial: option: add Cellient MPL200 card

2020-10-08 Thread Johan Hovold
On Thu, Oct 08, 2020 at 09:22:19AM +0200, Wilken Gottwalt wrote: > Add usb ids of the Cellient MPL200 card. > > Signed-off-by: Wilken Gottwalt > --- So I had already applied this one (which didn't change since v1). Thanks again. Johan

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

2020-10-08 Thread Daniel Vetter
On Thu, Oct 8, 2020 at 1:24 AM 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 p

Re: [PATCH V8 2/5] mfd: Intel Platform Monitoring Technology support

2020-10-08 Thread Lee Jones
On Wed, 07 Oct 2020, David E. Box wrote: > On Wed, 2020-10-07 at 07:57 +0100, Lee Jones wrote: > > On Fri, 02 Oct 2020, David E. Box wrote: > > > > > Intel Platform Monitoring Technology (PMT) is an architecture for > > > enumerating and accessing hardware monitoring facilities. PMT > > > support

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

2020-10-08 Thread Lee Jones
On Wed, 07 Oct 2020, Pavel Machek wrote: > 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

Re: [PATCH v4 3/4] mmc: sdhci-of-arasan: Add structure device pointer in probe

2020-10-08 Thread Michal Simek
On 08. 10. 20 4:09, muhammad.husaini.zulki...@intel.com wrote: > From: Muhammad Husaini Zulkifli > > Add struct device *dev in probe func() so that it can widely use in > probe to make code more readable. > > Signed-off-by: Muhammad Husaini Zulkifli > --- > drivers/mmc/host/sdhci-of-arasan.

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 > --- > .../linux/firmware/intel/keembay_fir

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 0

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 i

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 platf

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 f

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 an

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 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 co

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 das

[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 --- driver

[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 include/trace/ev

[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

[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 a/include/trace/events/devfre

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, greg

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 Rob

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 whi

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 p

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 Documentation/devic

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 over

[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. S

[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 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 allo

[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 +++ fs/dmemfs/trac

[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 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 t

[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 memor

[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, 1

[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 i

[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

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 F

[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 b/include/linux/mempolicy.

[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 deletio

[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 a/fs/dme

[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 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 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 |

[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 is

[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 531493a0bc8

[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 ++- mm/huge_memory.c

[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 a/drivers/vfio/vfio_iommu_typ

[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 Signed-off-by:

[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 Si

[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 vma->vm

[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 a/Documenta

[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 file

[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 ind

[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 --- a/arch/x86/kvm/x

[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 --- mm/memory

[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 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 100

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 > -

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 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 Dani

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: Revo

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 pres

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 > fffd300

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: [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 c

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, Ma

[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 li

[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: 周琰杰 (Zh

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 co

  1   2   3   4   5   6   7   8   9   10   >