Re: [RFC PATCH net-next 07/10] mlxsw: spectrum_ethtool: Add link extended state

2020-06-08 Thread Amit Cohen
On 07-Jun-20 21:25, Florian Fainelli wrote: > > > On 6/7/2020 7:59 AM, Amit Cohen wrote: >> Implement .get_down_ext_state() as part of ethtool_ops. >> Query link down reason from PDDR register and convert it to ethtool >> ext_state. >> >> In case that more information than common ext_state is pro

[RFC v11 8/8] Documentation/admin-guide/mm: Document DAMON-based operation schemes

2020-06-08 Thread SeongJae Park
From: SeongJae Park This commit documents DAMON-based operation schemes in the DAMON document. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/guide.rst | 35 + Documentation/admin-guide/mm/damon/plans.rst | 26 +--- Documentation/admin-guide/mm/damon/usage.rst | 127

[RFC v11 6/8] mm/damon/selftests: Add 'schemes' debugfs tests

2020-06-08 Thread SeongJae Park
From: SeongJae Park This commit adds simple selftets for 'schemes' debugfs file of DAMON. Signed-off-by: SeongJae Park --- .../testing/selftests/damon/debugfs_attrs.sh | 29 +++ 1 file changed, 29 insertions(+) diff --git a/tools/testing/selftests/damon/debugfs_attrs.sh b/to

[RFC v11 7/8] damon/tools: Support more human friendly 'schemes' control

2020-06-08 Thread SeongJae Park
From: SeongJae Park This commit implements 'schemes' subcommand of the damon userspace tool. It can be used to describe and apply the data access monitoring-based operation schemes in more human friendly fashion. Signed-off-by: SeongJae Park --- tools/damon/_convert_damos.py | 128

Re: [PATCH AUTOSEL 5.7 264/274] vxlan: Avoid infinite loop when suppressing NS messages with invalid options

2020-06-08 Thread Ido Schimmel
On Mon, Jun 08, 2020 at 07:05:57PM -0400, Sasha Levin wrote: > From: Ido Schimmel > > [ Upstream commit 8066e6b449e050675df48e7c4b16c29f00507ff0 ] Hi, In the same patch set I also included a similar fix for the bridge module: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/co

[RFC v11 4/8] mm/damon/schemes: Implement a debugfs interface

2020-06-08 Thread SeongJae Park
From: SeongJae Park This commit implements a debugfs interface for the data access monitoring oriented memory management schemes. It is supposed to be used by administrators and/or privileged user space programs. Users can read and update the rules using ``/damon/schemes`` file. The format is:

[RFC v11 3/8] mm/damon: Implement data access monitoring-based operation schemes

2020-06-08 Thread SeongJae Park
From: SeongJae Park In many cases, users might use DAMON for simple data access aware memory management optimizations such as applying an operation scheme to a memory region of a specific size having a specific access frequency for a specific time. For example, "page out a memory region larger t

[RFC v11 5/8] mm/damon/schemes: Implement statistics feature

2020-06-08 Thread SeongJae Park
From: SeongJae Park To tune the DAMON-based operation schemes, knowing how many and how large regions are affected by each of the schemes will be helful. Those stats could be used for not only the tuning, but also monitoring of the working set size and the number of regions, if the scheme does n

[PATCH 1/1] iommu/vt-d: Update scalable mode paging structure coherency

2020-06-08 Thread Lu Baolu
The Scalable-mode Page-walk Coherency (SMPWC) field in the VT-d extended capability register indicates the hardware coherency behavior on paging structures accessed through the pasid table entry. This is ignored in current code and using ECAP.C instead which is only valid in legacy mode. Fix this s

[RFC v11 0/8] Implement Data Access Monitoring-based Memory Operation Schemes

2020-06-08 Thread SeongJae Park
From: SeongJae Park DAMON[1] can be used as a primitive for data access awared memory management optimizations. For that, users who want such optimizations should run DAMON, read the monitoring results, analyze it, plan a new memory management scheme, and apply the new scheme by themselves. Suc

[RFC v11 1/8] mm/madvise: Export do_madvise() to external GPL modules

2020-06-08 Thread SeongJae Park
From: SeongJae Park This commit exports 'do_madvise()' to external GPL modules, so that other modules including DAMON could use the function. Signed-off-by: SeongJae Park --- mm/madvise.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/madvise.c b/mm/madvise.c index 1ad7522567d4..fcd951

[RFC v11 2/8] mm/damon: Account age of target regions

2020-06-08 Thread SeongJae Park
From: SeongJae Park DAMON can be used as a primitive for data access pattern aware memory management optimizations. However, users who want such optimizations should run DAMON, read the monitoring results, analyze it, plan a new memory management scheme, and apply the new scheme by themselves.

[PATCH v4.19.y 1/2] btrfs: merge btrfs_find_device and find_device

2020-06-08 Thread Vikash Bansal
From: Anand Jain commit 09ba3bc9dd150457c506e4661380a6183af651c1 upstream Both btrfs_find_device() and find_device() does the same thing except that the latter does not take the seed device onto account in the device scanning context. We can merge them. Signed-off-by: Anand Jain Reviewed-by: D

Re: [PATCH v2] f2fs: allow writeback on error status filesystem

2020-06-08 Thread Chao Yu
Jaegeuk, Let's consider this patch in next Linux version. BTW, do you still encounter consistency problem w/o this version? On 2020/6/8 20:01, Chao Yu wrote: > 71.07% 0.01% kworker/u256:1+ [kernel.kallsyms] [k] wb_writeback > | > --71.06%--wb_writeback >

[PATCH v4.19.y 2/2] btrfs: Detect unbalanced tree with empty leaf before crashing btree operations

2020-06-08 Thread Vikash Bansal
From: Qu Wenruo commit 62fdaa52a3d00a875da771719b6dc537ca79fce1 upstream [BUG] With crafted image, btrfs will panic at btree operations: kernel BUG at fs/btrfs/ctree.c:3894! invalid opcode: [#1] SMP PTI CPU: 0 PID: 1138 Comm: btrfs-transacti Not tainted 5.0.0-rc8+ #9 RIP: 0010:__pu

RE: [RFC PATCH 3/5] scsi: ufs: Introduce HPB module

2020-06-08 Thread Avri Altman
> > > +unsigned int ufshpb_host_map_kbytes = 1 * 1024; > > > +module_param(ufshpb_host_map_kbytes, uint, 0644); > > > +MODULE_PARM_DESC(ufshpb_host_map_kbytes, > > > +"ufshpb host mapping memory kilo-bytes for ufshpb memory-pool"); > > You should introduce this module parameter in the patch

[PATCH v4.19.y 0/2] btrfs: Fix for CVE-2019-18885

2020-06-08 Thread Vikash Bansal
CVE Description: NVD Site Link: https://nvd.nist.gov/vuln/detail?vulnId=CVE-2019-18885 It was discovered that the btrfs file system in the Linux kernel did not properly validate metadata, leading to a NULL pointer dereference. An attacker could use this to specially craft a file system image that,

Re: [PATCH] bpf: alloc_record_per_cpu Add null check after malloc

2020-06-08 Thread Jesper Dangaard Brouer
On Sat, 6 Jun 2020 19:59:48 -0400 gaurav singh wrote: > Hi, > > The memset call is made right after malloc call. To fix this, add the null > check right after malloc and then do memset. > > Please find the patch below. The fix in your patch seem correct (although there are more places), but th

Re: [PATCH v2] s390: vdso: Use $(LD) instead of $(CC) to link vDSO

2020-06-08 Thread Heiko Carstens
On Tue, Jun 02, 2020 at 12:52:26PM -0700, Nick Desaulniers wrote: > On Tue, Jun 2, 2020 at 12:25 PM Nathan Chancellor > wrote: > > > > Currently, the VDSO is being linked through $(CC). This does not match > > how the rest of the kernel links objects, which is through the $(LD) > > variable. > > >

RE: [RFC PATCH 4/5] scsi: ufs: L2P map management for HPB read

2020-06-08 Thread Avri Altman
> > > dev_info(&hpb->hpb_lu_dev, "ufshpb resume"); > > > ufshpb_set_state(hpb, HPB_PRESENT); > > > + if (!ufshpb_is_empty_rsp_lists(hpb)) > > > + queue_work(ufshpb_drv.ufshpb_wq, &hpb->map_work); > > Ahha - so you are using the ufs

Re: [PATCH v4 02/11] mfd: Add support for Kontron sl28cpld management controller

2020-06-08 Thread Lee Jones
On Mon, 08 Jun 2020, Michael Walle wrote: > Am 2020-06-08 20:56, schrieb Lee Jones: > > On Mon, 08 Jun 2020, Michael Walle wrote: > > > > > Am 2020-06-08 12:02, schrieb Andy Shevchenko: > > > > +Cc: some Intel people WRT our internal discussion about similar > > > > problem and solutions. > > > >

Re: [PATCH v2] overflow.h: Add flex_array_size() helper

2020-06-08 Thread Joe Perches
On Mon, 2020-06-08 at 20:22 -0500, Gustavo A. R. Silva wrote: > Add flex_array_size() helper for the calculation of the size, in bytes, > of a flexible array member contained within an enclosing structure. [] > diff --git a/include/linux/overflow.h b/include/linux/overflow.h [] > +/** > + * flex_ar

Re: [PATCH v3 07/13] iio: imu: add Kconfig and Makefile for inv_icm42600 driver

2020-06-08 Thread kernel test robot
Hi Jean-Baptiste, Thank you for the patch! Yet something to improve: [auto build test ERROR on iio/togreg] [also build test ERROR on robh/for-next linus/master v5.7 next-20200608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also

[PATCH 1/3] dt-bindings: thermal: qcom-tsens: Add compatible for sm8150, sm8250

2020-06-08 Thread Amit Kucheria
Added tsens bindings for sm8150 and sm8250 Signed-off-by: Amit Kucheria --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-

[PATCH 3/3] arm64: dts: qcom: sm8250: Add thermal zones and throttling support

2020-06-08 Thread Amit Kucheria
sm8250 has 24 thermal sensors split across two tsens controllers. Add the thermal zones to expose them and wireup the cpus to throttle on crossing passive temperature thresholds. Update the comment in the drivers to list the SoCs it supports. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts

[PATCH 2/3] arm64: dts: qcom: sm8150: Add thermal zones and throttling support

2020-06-08 Thread Amit Kucheria
sm8150 has 27 thermal sensors split across two tsens controllers. Add the thermal zones to expose them and wireup the cpus to throttle their frequencies on crossing passive temperature thresholds. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 811 +++

Re: [PATCH v3] driver core: Break infinite loop when deferred probe can't be satisfied

2020-06-08 Thread Marco Felsch
On 20-06-08 13:11, Andrzej Hajda wrote: > > On 08.06.2020 11:17, Marco Felsch wrote: > > On 20-03-26 18:31, Andy Shevchenko wrote: > >> On Thu, Mar 26, 2020 at 03:01:22PM +, Grant Likely wrote: > >>> On 25/03/2020 12:51, Andy Shevchenko wrote: > On Tue, Mar 24, 2020 at 08:29:01PM -0700, S

[PATCH 0/3] Add thermal support for SM8150, SM8250

2020-06-08 Thread Amit Kucheria
Add two new compatibles, the devicetree entries for the thermal zones and wire it up to the cpufreq cooling device. Amit Kucheria (3): dt-bindings: thermal: qcom-tsens: Add compatible for sm8150, sm8250 arm64: dts: qcom: sm8150: Add thermal zones and throttling support arm64: dts: qcom: sm

Re: [RFC][PATCH v4 27/32] objtool: mcount: Generic location and relocation table types

2020-06-08 Thread Kamalesh Babulal
On 6/3/20 1:20 AM, Matt Helsley wrote: > Rather than building the exact ELF section data we need and > avoiding libelf's conversion step, use more GElf types > and then libelf's elfxx_xlatetof() functions to convert > the mcount locations (GElf_Addr) and associated relocations. > > This converts s

RE: [RFC PATCH 4/5] scsi: ufs: L2P map management for HPB read

2020-06-08 Thread Avri Altman
> > > + switch (rsp_field->hpb_type) { > > > + case HPB_RSP_REQ_REGION_UPDATE: > > > + WARN_ON(data_seg_len != DEV_DATA_SEG_LEN); > > > + ufshpb_rsp_req_region_update(hpb, rsp_field); > > > + break; > > What about hpb dev reset - oper 0x2? > Yes

Re: [PATCH 3/9] net: wireless: ath: fix wiki website url

2020-06-08 Thread Kalle Valo
Flavio Suligoi wrote: > In some ath files, the wiki url is still the old > "wireless.kernel.org" instead of the new > "wireless.wiki.kernel.org" > > Signed-off-by: Flavio Suligoi > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 1141215c745b ath: fix wiki websi

Re: [PATCH] ath10k: Acquire tx_lock in tx error paths

2020-06-08 Thread Kalle Valo
Evan Green wrote: > ath10k_htt_tx_free_msdu_id() has a lockdep assertion that htt->tx_lock > is held. Acquire the lock in a couple of error paths when calling that > function to ensure this condition is met. > > Fixes: 6421969f248fd ("ath10k: refactor tx pending management") > Fixes: e62ee5c381c

Re: [PATCH] kbuild: make module name conflict fatal error

2020-06-08 Thread Greg Kroah-Hartman
On Sun, Jun 07, 2020 at 07:02:56PM -0700, Guenter Roeck wrote: > Hi, > > On Mon, May 11, 2020 at 01:21:49PM +0900, Masahiro Yamada wrote: > > I think all the warnings have been fixed by now. Make it a fatal error. > > > > Not entirely. With this patch in the tree, I get: > > Building sparc64:al

[PATCH] sysctl: Delete the code of sys_sysctl

2020-06-08 Thread Xiaoming Ni
Since the commit 61a47c1ad3a4dc ("sysctl: Remove the sysctl system call"), sys_sysctl has lost its actual role: any input can only return an error. Delete the code and return -ENOSYS directly at the function entry Signed-off-by: Xiaoming Ni --- kernel/sysctl_binary.c | 146 +

Re: [RFC PATCH 2/2] PM: hibernate: introduce opportunistic memory reclaim

2020-06-08 Thread Andrea Righi
On Mon, Jun 08, 2020 at 03:23:22PM -0700, Luigi Semenzato wrote: > Hi Andrea, > > 1. This mechanism is quite general. It is possible that, although > hibernation may be an important use, there will be other uses for it. > I suggest leaving the hibernation example and performance analysis, > but n

[PATCH] ipmi: code cleanup and prevent potential issue.

2020-06-08 Thread wu000273
From: Qiushi Wu All the previous get/put operations against intf->refcount are inside the mutex. Thus, put the last kref_put() also inside mutex to make sure get/put functions execute in order and prevent the potential race condition. Signed-off-by: Qiushi Wu --- drivers/char/ipmi/ipmi_msghand

[PATCH] videobuf2: always re-init queue memory consistency attribute

2020-06-08 Thread Sergey Senozhatsky
We need a combination of two factors in order to permit modification of queue's memory consistency attribute in set_queue_consistency(): (1) queue should allow user-space cache hints (2) queue should be used for MMAP-ed I/O Therefore the code in videobuf2 core looks as follows: q->mem

[PATCH] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-06-08 Thread Daeho Jeong
From: Daeho Jeong Added a new ioctl to send discard commands or/and zero out to whole data area of a regular file for security reason. Signed-off-by: Daeho Jeong --- fs/f2fs/f2fs.h | 8 +++ fs/f2fs/file.c | 149 + 2 files changed, 157 insertion

Re: [PATCH] powerpc/powernv: Fix a warning message

2020-06-08 Thread Michael Ellerman
On Sat, 2020-05-02 at 11:59:49 UTC, Christophe JAILLET wrote: > Fix a cut'n'paste error in a warning message. This should be > 'cpu-idle-state-residency-ns' to match the property searched in the > previous 'of_property_read_u32_array()' > > Fixes: 9c7b185ab2fe ("powernv/cpuidle: Parse dt idle prop

Re: [RFC] Restrict the untrusted devices, to bind to only a set of "whitelisted" drivers

2020-06-08 Thread Greg Kroah-Hartman
On Mon, Jun 08, 2020 at 11:29:58AM -0700, Jesse Barnes wrote: > > Now, as to you all getting some sort of "Hardware flag" to determine > > "inside" vs. "outside" devices, hah, good luck! It took us a long time > > to get that for USB, and even then, BIOSes lie and get it wrong all the > > time. S

Re: [PATCH] vhost/test: fix up after API change

2020-06-08 Thread Jason Wang
On 2020/6/9 下午1:53, Jason Wang wrote: On 2020/6/8 下午8:42, Michael S. Tsirkin wrote: Pass a flag to request kernel thread use. Fixes: 01fcb1cbc88e ("vhost: allow device that does not depend on vhost worker") Signed-off-by: Michael S. Tsirkin ---   drivers/vhost/test.c | 2 +-   1 file chang

Re: [PATCH 5/6] vdpa: introduce virtio pci driver

2020-06-08 Thread Jason Wang
On 2020/6/8 下午9:29, Michael S. Tsirkin wrote: On Mon, Jun 08, 2020 at 06:07:36PM +0800, Jason Wang wrote: On 2020/6/8 下午5:54, Michael S. Tsirkin wrote: On Mon, Jun 08, 2020 at 05:46:52PM +0800, Jason Wang wrote: On 2020/6/8 下午5:45, Michael S. Tsirkin wrote: On Mon, Jun 08, 2020 at 05:43:58P

Re: [PATCH] vhost/test: fix up after API change

2020-06-08 Thread Jason Wang
On 2020/6/8 下午8:42, Michael S. Tsirkin wrote: Pass a flag to request kernel thread use. Fixes: 01fcb1cbc88e ("vhost: allow device that does not depend on vhost worker") Signed-off-by: Michael S. Tsirkin --- drivers/vhost/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [PATCH] powerpc/kprobes: Use probe_address() to read instructions

2020-06-08 Thread Christoph Hellwig
On Tue, Jun 09, 2020 at 03:28:38PM +1000, Michael Ellerman wrote: > On Mon, 24 Feb 2020 18:02:10 + (UTC), Christophe Leroy wrote: > > In order to avoid Oopses, use probe_address() to read the > > instruction at the address where the trap happened. > > Applied to powerpc/next. > > [1/1] powerp

Re: [PATCH] USB: gadget: serial: fix null pointer access in tty_wakeup()

2020-06-08 Thread Jiri Slaby
On 09. 06. 20, 7:00, Kyungtae Kim wrote: > FuzzUSB (a variant of syzkaller) found an illegal memory access > while finalizing an enumeration for a serial (acm) gadget. > > Reference: https://lkml.org/lkml/2020/6/7/3 > > The bug arises because of accessing null instance of tty_struct > during USB

Re: next-0519 on thinkpad x60: sound related? window manager crash

2020-06-08 Thread Christoph Hellwig
On Mon, Jun 08, 2020 at 07:31:47PM -0700, David Rientjes wrote: > On Mon, 8 Jun 2020, Alex Xu (Hello71) wrote: > > > Excerpts from Christoph Hellwig's message of June 8, 2020 2:19 am: > > > Can you do a listing using gdb where this happens? > > > > > > gdb vmlinux > > > > > > l *(snd_pcm_hw_para

Re: [PATCH v2 10/11] xen/arm: introduce phys/dma translations in xen_dma_sync_for_*

2020-06-08 Thread Christoph Hellwig
On Mon, Jun 08, 2020 at 10:38:02PM -0700, Christoph Hellwig wrote: > On Mon, Jun 08, 2020 at 05:38:28PM -0700, Stefano Stabellini wrote: > > Yeah, the pfn_valid check is a bit weird by definition because we are > > using it to understand whether the address belong to us or to another > > VM. To do

Re: [PATCH v2 10/11] xen/arm: introduce phys/dma translations in xen_dma_sync_for_*

2020-06-08 Thread Christoph Hellwig
On Mon, Jun 08, 2020 at 05:38:28PM -0700, Stefano Stabellini wrote: > Yeah, the pfn_valid check is a bit weird by definition because we are > using it to understand whether the address belong to us or to another > VM. To do the pfn_valid check we need to translate the dma address into > something t

mmotm 2020-06-08-22-35 uploaded

2020-06-08 Thread Andrew Morton
The mm-of-the-moment snapshot 2020-06-08-22-35 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

[PATCH 2/2] perf parse-events: fix an old style declaration

2020-06-08 Thread Ian Rogers
Fixes: a26e47162d76 (perf tools: Move ALLOC_LIST into a function) Signed-off-by: Ian Rogers --- tools/perf/util/parse-events.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y index d4e076c9c2ab..acef87d9af58 10064

[PATCH 1/2] perf parse-events: fix an incompatible pointer

2020-06-08 Thread Ian Rogers
Arrays are pointer types and don't need their address taking. Fixes: 8255718f4bed (perf pmu: Expand PMU events by prefix match) Signed-off-by: Ian Rogers --- tools/perf/util/parse-events.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.y b/tools/

mmotm 2020-06-08-22-33 uploaded

2020-06-08 Thread Andrew Morton
The mm-of-the-moment snapshot 2020-06-08-22-33 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH v2 08/11] swiotlb-xen: introduce phys_to_dma/dma_to_phys translations

2020-06-08 Thread Christoph Hellwig
On Mon, Jun 08, 2020 at 04:06:57PM -0700, Stefano Stabellini wrote: > I understand what you are suggesting about having something like: > > xen_phys_to_dma(...) > { > phys_addr_t phys = xen_phys_to_bus(dev, paddr) > return phys_to_dma(phys); > } > > I thought about it

Re: [PATCH v2 1/1] powerpc/crash: Use NMI context for printk when starting to crash

2020-06-08 Thread Michael Ellerman
On Tue, 12 May 2020 18:45:35 -0300, Leonardo Bras wrote: > Currently, if printk lock (logbuf_lock) is held by other thread during > crash, there is a chance of deadlocking the crash on next printk, and > blocking a possibly desired kdump. > > At the start of default_machine_crash_shutdown, make pr

Re: [PATCH v6 0/2] Implement reentrant rtas call

2020-06-08 Thread Michael Ellerman
On Mon, 18 May 2020 20:42:43 -0300, Leonardo Bras wrote: > Patch 2 implement rtas_call_reentrant() for reentrant rtas-calls: > "ibm,int-on", "ibm,int-off",ibm,get-xive" and "ibm,set-xive", > according to LoPAPR Version 1.1 (March 24, 2016). > > For that, it's necessary that every call uses a diff

Re: [PATCH] hw_breakpoint: Fix build warnings with clang

2020-06-08 Thread Michael Ellerman
On Tue, 2 Jun 2020 09:42:08 +0530, Ravi Bangoria wrote: > kbuild test robot reported few build warnings with hw_breakpoint code > when compiled with clang[1]. Fix those. > > [1]: > https://lore.kernel.org/linuxppc-dev/202005192233.oi9cjrta%25...@intel.com/ Applied to powerpc/next. [1/1] hw-brea

Re: [PATCH] powerpc/wii: Fix declaration made after definition

2020-06-08 Thread Michael Ellerman
On Mon, 13 Apr 2020 12:06:45 -0700, Nathan Chancellor wrote: > A 0day randconfig uncovered an error with clang, trimmed for brevity: > > arch/powerpc/platforms/embedded6xx/wii.c:195:7: error: attribute > declaration must precede definition [-Werror,-Wignored-attributes] > if (!machine_is(w

Re: [PATCH] powerpc/kprobes: Use probe_address() to read instructions

2020-06-08 Thread Michael Ellerman
On Mon, 24 Feb 2020 18:02:10 + (UTC), Christophe Leroy wrote: > In order to avoid Oopses, use probe_address() to read the > instruction at the address where the trap happened. Applied to powerpc/next. [1/1] powerpc/kprobes: Use probe_address() to read instructions https://git.kernel.org

Re: [PATCH] powerpc/32: disable KASAN with pages bigger than 16k

2020-06-08 Thread Michael Ellerman
On Thu, 28 May 2020 10:17:04 + (UTC), Christophe Leroy wrote: > Mapping of early shadow area is implemented by using a single static > page table having all entries pointing to the same early shadow page. > The shadow area must therefore occupy full PGD entries. > > The shadow area has a size

Re: [PATCH] input: i8042: Remove special PowerPC handling

2020-06-08 Thread Michael Ellerman
On Mon, 18 May 2020 11:10:43 -0700, Nathan Chancellor wrote: > This causes a build error with CONFIG_WALNUT because kb_cs and kb_data > were removed in commit 917f0af9e5a9 ("powerpc: Remove arch/ppc and > include/asm-ppc"). > > ld.lld: error: undefined symbol: kb_cs > > referenced by i8042-ppcio.h

Re: [PATCH v3 1/1] powerpc/kernel: Enables memory hot-remove after reboot on pseries guests

2020-06-08 Thread Michael Ellerman
On Thu, 2 Apr 2020 16:51:57 -0300, Leonardo Bras wrote: > While providing guests, it's desirable to resize it's memory on demand. > > By now, it's possible to do so by creating a guest with a small base > memory, hot-plugging all the rest, and using 'movable_node' kernel > command-line parameter,

Re: [PATCH v2] powerpc/32s: Fix another build failure with CONFIG_PPC_KUAP_DEBUG

2020-06-08 Thread Michael Ellerman
On Sat, 30 May 2020 17:16:33 + (UTC), Christophe Leroy wrote: > 'thread' doesn't exist in kuap_check() macro. > > Use 'current' instead. Applied to powerpc/next. [1/1] powerpc/32s: Fix another build failure with CONFIG_PPC_KUAP_DEBUG https://git.kernel.org/powerpc/c/74016701fe5f873ae23

Re: [PATCH] powerpc/uaccess: Don't set KUEP by default on book3s/32

2020-06-08 Thread Michael Ellerman
On Wed, 15 Apr 2020 14:57:11 + (UTC), Christophe Leroy wrote: > On book3s/32, KUEP is an heavy process as it requires to > set/unset the NX bit in each of the 12 user segments > everytime the kernel is entered/exited from/to user space. > > Don't select KUEP by default on book3s/32. Applied t

Re: [PATCH] macintosh/ams-input: switch to using input device polling mode

2020-06-08 Thread Michael Ellerman
On Wed, 2 Oct 2019 14:48:54 -0700, Dmitry Torokhov wrote: > Now that instances of input_dev support polling mode natively, > we no longer need to create input_polled_dev instance. Applied to powerpc/next. [1/1] macintosh/ams-input: switch to using input device polling mode https://git.kerne

Re: [PATCH v2 01/12] powerpc/52xx: Blacklist functions running with MMU disabled for kprobe

2020-06-08 Thread Michael Ellerman
On Tue, 31 Mar 2020 16:03:36 + (UTC), Christophe Leroy wrote: > kprobe does not handle events happening in real mode, all > functions running with MMU disabled have to be blacklisted. Applied to powerpc/next. [01/12] powerpc/52xx: Blacklist functions running with MMU disabled for kprobe

Re: [PATCH] powerpc/uaccess: Don't set KUAP by default on book3s/32

2020-06-08 Thread Michael Ellerman
On Wed, 15 Apr 2020 14:57:09 + (UTC), Christophe Leroy wrote: > On book3s/32, KUAP is an heavy process as it requires to > determine which segments are impacted and unlock/lock > each of them. > > And since the implementation of user_access_begin/end, it > is even worth for the time being beca

Re: [PATCH] powerpc/8xx: Reduce time spent in allow_user_access() and friends

2020-06-08 Thread Michael Ellerman
On Wed, 15 Apr 2020 10:06:09 + (UTC), Christophe Leroy wrote: > To enable/disable kernel access to user space, the 8xx has to > modify the properties of access group 1. This is done by writing > predefined values into SPRN_Mx_AP registers. > > As of today, a __put_user() gives: > > 0d64 :

Re: [PATCH v5 00/13] Modernise powerpc 40x

2020-06-08 Thread Michael Ellerman
On Thu, 21 May 2020 16:55:51 + (UTC), Christophe Leroy wrote: > v1 and v2 of this series were aiming at removing 40x entirely, > but it led to protests. > > v3 is trying to start modernising powerpc 40x: > - Rework TLB miss handlers to not use PTE_ATOMIC_UPDATES and _PAGE_HWWRITE > - Remove ol

Re: [PATCH v4 00/45] Use hugepages to map kernel mem on 8xx

2020-06-08 Thread Michael Ellerman
On Tue, 19 May 2020 05:48:42 + (UTC), Christophe Leroy wrote: > The main purpose of this big series is to: > - reorganise huge page handling to avoid using mm_slices. > - use huge pages to map kernel memory on the 8xx. > > The 8xx supports 4 page sizes: 4k, 16k, 512k and 8M. > It uses 2 Level

Re: [PATCH v3] powerpc/64s/pgtable: fix an undefined behaviour

2020-06-08 Thread Michael Ellerman
On Thu, 5 Mar 2020 23:48:52 -0500, Qian Cai wrote: > Booting a power9 server with hash MMU could trigger an undefined > behaviour because pud_offset(p4d, 0) will do, > > 0 >> (PAGE_SHIFT:16 + PTE_INDEX_SIZE:8 + H_PMD_INDEX_SIZE:10) > > Fix it by converting pud_index() and friends to static inline

Re: [PATCH -next] powerpc/powernv: add NULL check after kzalloc

2020-06-08 Thread Michael Ellerman
On Sat, 9 May 2020 10:08:38 +0800, Chen Zhou wrote: > Fixes coccicheck warning: > > ./arch/powerpc/platforms/powernv/opal.c:813:1-5: > alloc with no test, possible model on line 814 > > Add NULL check after kzalloc. Applied to powerpc/next. [1/1] powerpc/powernv: add NULL check after kzal

Re: [PATCH 3/5] soundwire: qcom: add v1.5.1 compatible

2020-06-08 Thread Vinod Koul
On 08-06-20, 16:43, Jonathan Marek wrote: > Add a compatible string for HW version v1.5.1 on sm8250 SoCs. Please document this new compatible -- ~Vinod

RE: [PATCH v9 RESEND 01/13] spi: imx: add dma_sync_sg_for_device after fallback from dma

2020-06-08 Thread Robin Gong
On 2020/06/09 0:44 Robin Murphy wrote: > On 2020-06-08 16:31, Mark Brown wrote: > > On Mon, Jun 08, 2020 at 03:08:45PM +, Robin Gong wrote: > > > +if (transfer->rx_sg.sgl) { > +struct device *rx_dev = > spi->controller->dma_rx->device->dev; > + > >>

Re: [PATCH] sample-trace-array: Fix sleeping function called from invalid context

2020-06-08 Thread Divya Indi
Hi Kefeng, Thanks for catching this issue. Please find my comments line - On 6/8/20 12:54 AM, Kefeng Wang wrote: > BUG: sleeping function called from invalid context at > kernel/locking/mutex.c:935 > in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/5 > 1 lock held by s

Re: [RFC PATCH] uvcvideo: Add mapping for HEVC payloads

2020-06-08 Thread Dmitry Buzdyk
On Sun, Jun 07, 2020 at 04:07:19AM +0300, Laurent Pinchart wrote: > Hi Dmitry, > > Thank you for the patch. > > On Fri, May 29, 2020 at 11:05:47AM +1000, Dmitry Buzdyk wrote: > > Add HEVC GUID and assotiate with HEVC pixel format so that frame > > based format descriptors recognized by the UVC vi

Re: [PATCH] virtio-mem: drop unnecessary initialization

2020-06-08 Thread Pankaj Gupta
> rc is initialized to -ENIVAL but that's never used. Drop it. > > Fixes: 5f1f79bbc9e2 ("virtio-mem: Paravirtualized memory hotplug") > Reported-by: kernel test robot > Signed-off-by: Michael S. Tsirkin > --- > drivers/virtio/virtio_mem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[rcu:rcu-tasks.2020.06.08a.v5.6] BUILD SUCCESS 5366602725fe22519c438d9f69c4af9403256a4a

2020-06-08 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu-tasks.2020.06.08a.v5.6 branch HEAD: 5366602725fe22519c438d9f69c4af9403256a4a ftrace: Use synchronize_rcu_tasks_rude() instead of ftrace_sync() elapsed time: 483m configs tested: 98 configs skipped: 3 The

Re: [PATCH 2/5] soundwire: qcom: add support for mmio soundwire devices

2020-06-08 Thread Vinod Koul
Hi Jonathan, On 08-06-20, 16:43, Jonathan Marek wrote: > Adds support for qcom soundwire devices with memory mapped IO registers. Please use 'SoundWire Master devices' instead :) > > Signed-off-by: Jonathan Marek > --- > drivers/soundwire/qcom.c | 25 +++-- > 1 file change

Re: [PATCH AUTOSEL 5.7 244/274] xfs: force writes to delalloc regions to unwritten

2020-06-08 Thread Darrick J. Wong
On Mon, Jun 08, 2020 at 10:10:21PM -0400, Sasha Levin wrote: > On Mon, Jun 08, 2020 at 06:07:27PM -0700, Darrick J. Wong wrote: > > On Mon, Jun 08, 2020 at 07:05:37PM -0400, Sasha Levin wrote: > > > From: "Darrick J. Wong" > > > > > > [ Upstream commit a5949d3faedf492fa7863b914da408047ab46eb0 ] >

[RFC 1/2] Eliminate over- and under-counting of io_ticks

2020-06-08 Thread Josh Snyder
Previously, io_ticks could be under-counted. Consider these I/Os along the time axis (in jiffies): t 012345678 io1|| io2|---| Under the old approach, io_ticks would count up to 6, like so: t 012345678 io1|| io2|---|

[RFC 0/2] Increase accuracy and precision of sampled io_ticks

2020-06-08 Thread Josh Snyder
Commit 5b18b5a73760 ("block: delete part_round_stats and switch to less precise counting") introduces a sampling technique for calculating io_ticks. The sampling algorithm introduces bias in the calculation of I/O utilization. In my production system, this bias means that a workload which previousl

[RFC 2/2] Track io_ticks at microsecond granularity.

2020-06-08 Thread Josh Snyder
Previously, we performed truncation of I/O issue/completion times during calculation of io_ticks, counting only I/Os which cross a jiffy boundary. The effect is a sampling of I/Os: at every boundary between jiffies we ask "is there an outstanding I/O" and increment a counter if the answer is yes. T

Re: [PATCH 0/2] Introduce PCI_FIXUP_IOMMU

2020-06-08 Thread Zhangfei Gao
Hi, Bjorn On 2020/6/9 上午12:41, Bjorn Helgaas wrote: On Mon, Jun 08, 2020 at 10:54:15AM +0800, Zhangfei Gao wrote: On 2020/6/6 上午7:19, Bjorn Helgaas wrote: On Thu, Jun 04, 2020 at 09:33:07PM +0800, Zhangfei Gao wrote: On 2020/6/2 上午1:41, Bjorn Helgaas wrote: On Thu, May 28, 2020 at 09:33:44AM

[PATCH v3 0/3] platform/x86: dell-wmi: new keys

2020-06-08 Thread Y Paritcher
Extended data and events like Fn lock are currently ignored. This is consistent with what was done until now. Changing this is out of scope of this patch and would require rethinking how events are processed, as on some devices the status is sent as it own event, and on some devices via extended da

[PATCH v3 3/3] platform/x86: dell-wmi: add new dmi mapping for keycode 0xffff

2020-06-08 Thread Y Paritcher
This looks to be a special value for some sort of custom scancode. This code could not be triggered for any keypress and is included from the 0xB2 DMI table. This prevents the following messages from being logged at startup on a Dell Inspiron 5593: dell_wmi: firmware scancode 0x48 maps to unr

[PATCH v3 2/3] platform/x86: dell-wmi: add new keymap type 0x0012

2020-06-08 Thread Y Paritcher
These are events with extended data. The extended data is currently ignored as userspace does not have a way to deal it. Ignore event with a type of 0x0012 and a code of 0xe035, as the keyboard controller takes care of Fn lock events by itself. This silences the following messages being logged whe

[PATCH v3 1/3] platform/x86: dell-wmi: add new backlight events

2020-06-08 Thread Y Paritcher
Add events with a type of 0x0010 and a code of 0x57 / 0x58, this silences the following messages being logged on a Dell Inspiron 5593: dell_wmi: Unknown key with type 0x0010 and code 0x0057 pressed dell_wmi: Unknown key with type 0x0010 and code 0x0058 pressed These are brightness events and will

[rcu:dev.2020.06.05a 91/92] kernel/sched/fair.c:447 find_matching_se() warn: inconsistent indenting

2020-06-08 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.06.05a head: c5432e18c8bfe9283bf5e0bc5e2460ae8f39a7ee commit: c2e2e4194231b2da0a1cc415a63220d24377381c [91/92] EXP sched: Experimental patch config: x86_64-randconfig-m001-20200608 (attached as .config

[PATCH v6 5/5] drm/msm/dpu: add display port support in DPU

2020-06-08 Thread Tanmay Shah
From: Jeykumar Sankaran Add display port support in DPU by creating hooks for DP encoder enumeration and encoder mode initialization. This change is based on the Snapdragon Display port driver changes[1]. changes in v2: - rebase on [2] (Sean Paul) - remove unwanted error checks

[PATCH v6 4/5] drm/msm/dp: add support for DP PLL driver

2020-06-08 Thread Tanmay Shah
From: Chandan Uddaraju Add the needed DP PLL specific files to support display port interface on msm targets. The DP driver calls the DP PLL driver registration. The DP driver sets the link and pixel clock sources. Changes in v2: -- Update copyright markings on all relevant files. -- Use DRM_DE

Re: [PATCH v2 08/11] swiotlb-xen: introduce phys_to_dma/dma_to_phys translations

2020-06-08 Thread Stefano Stabellini
On Mon, 8 Jun 2020, Stefano Stabellini wrote: > On Mon, 8 Jun 2020, Christoph Hellwig wrote: > > On Wed, Jun 03, 2020 at 03:22:44PM -0700, Stefano Stabellini wrote: > > > From: Stefano Stabellini > > > > > > With some devices physical addresses are different than dma addresses. > > > To be able t

Re: [PATCH v2 1/3] capabilities: Introduce CAP_CHECKPOINT_RESTORE

2020-06-08 Thread Andrei Vagin
On Wed, Jun 03, 2020 at 06:23:26PM +0200, Adrian Reber wrote: > This patch introduces CAP_CHECKPOINT_RESTORE, a new capability facilitating > checkpoint/restore for non-root users. > > Over the last years, The CRIU (Checkpoint/Restore In Userspace) team has been > asked numerous times if it is pos

Re: [PATCH V3 3/3] mmc: sdhci-msm: Use internal voltage control

2020-06-08 Thread Veerabhadrarao Badiganti
Hi Bjorn, Do you have any comments on V3 patchset? Thanks Veera On 6/2/2020 4:17 PM, Veerabhadrarao Badiganti wrote: On qcom SD host controllers voltage switching be done after the HW is ready for it. The HW informs its readiness through power irq. The voltage switching should happen only the

Lieber Freund (Assalamu Alaikum),?

2020-06-08 Thread AISHA GADDAFI
-- Lieber Freund (Assalamu Alaikum), Ich bin vor einer privaten Suche auf Ihren E-Mail-Kontakt gestoßen Ihre Hilfe. Mein Name ist Aisha Al-Qaddafi, eine alleinerziehende Mutter und eine Witwe mit drei Kindern. Ich bin die einzige leibliche Tochter des Spätlibyschen Präsident (verstorbener Oberst

linux-next: build warning after merge of the vhost tree

2020-06-08 Thread Stephen Rothwell
Hi all, After merging the vhost tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/linux/device.h:15, from include/linux/virtio.h:9, from drivers/virtio/virtio_mem.c:10: drivers/virtio/virtio_mem.c: In functi

Re: [PATCH v2 2/2] regulator: Add support for sync_state() callbacks

2020-06-08 Thread Saravana Kannan
On Mon, Jun 1, 2020 at 10:23 AM Mark Brown wrote: > > On Fri, May 29, 2020 at 07:39:33PM -0700, Saravana Kannan wrote: > > On Fri, May 29, 2020 at 6:00 AM Mark Brown wrote: > > > On Thu, May 28, 2020 at 12:06:10PM -0700, Saravana Kannan wrote: > > > > > especially important for regulators that mi

[PATCH] x86/cpu: Use pinning mask for CR4 bits needing to be 0

2020-06-08 Thread Kees Cook
The X86_CR4_FSGSBASE bit of CR4 should not change after boot[1]. Older kernels should enforce this bit to zero, and newer kernels need to enforce it depending on boot-time configuration (e.g. "nofsgsbase"). To support a pinned bit being either 1 or 0, use an explicit mask in combination with the ex

Re: FATAL: drivers/phy/intel/phy-intel-emmc: sizeof(struct of_device_id)=200 is not a modulo of the size of section __mod_of___device_table=512.

2020-06-08 Thread Ramuthevar, Vadivel MuruganX
Hi, On 8/6/2020 10:23 am, kernel test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: af7b4801030c07637840191c69eb666917e4135d commit: 9227942383307f97fa6992416f73af4a23ef972c phy: intel-lgm-emmc: Add support for eMMC PHY date: 5 months

Re: [PATCH] dtc: also check for libyaml

2020-06-08 Thread Jiping Ma
On 06/09/2020 10:52 AM, Masahiro Yamada wrote: On Tue, Jun 9, 2020 at 10:01 AM Jiping Ma wrote: On 06/09/2020 03:09 AM, Rob Herring wrote: On Mon, Jun 8, 2020 at 2:42 AM Jiping Ma wrote: yamltree.c includes , If /usr/include/yaml.h does not exist, it fails to build. Does this patch fix

Re: [PATCH RFC v4 00/13] virtio-mem: paravirtualized memory

2020-06-08 Thread Alex Shi
在 2020/6/5 下午8:18, David Hildenbrand 写道: > On 05.06.20 12:46, Alex Shi wrote: >> >> >> 在 2020/6/5 下午6:05, David Hildenbrand 写道: I guess I know what's happening here. In case we only have DMA memory when booting, we don't reserve swiotlb buffers. Once we hotplug memory and online Z

  1   2   3   4   5   6   7   8   9   10   >