Re: [Bug, sched, 5.8-rc2]: PREEMPT kernels crashing in check_preempt_wakeup() running fsx on XFS

2020-06-25 Thread Dave Chinner
On Fri, Jun 26, 2020 at 10:47:22AM +1000, Dave Chinner wrote: > Hi folks, > > I turned on CONFIG_PREEMPT=y yesterday to try to reproduce problems > Darrick was having with one of my patchsets. We've both been seeing > a dead stop panic on these configs, and I managed to find a > relatively

Re: [PATCH 1/2] xen/privcmd: Corrected error handling path and mark pages dirty

2020-06-25 Thread Jürgen Groß
On 25.06.20 05:02, Souptick Joarder wrote: Previously, if lock_pages() end up partially mapping pages, it used to return -ERRNO due to which unlock_pages() have to go through each pages[i] till *nr_pages* to validate them. This can be avoided by passing correct number of partially mapped pages &

Re: [PATCH 1/2] xen/privcmd: Corrected error handling path and mark pages dirty

2020-06-25 Thread Souptick Joarder
On Fri, Jun 26, 2020 at 5:01 AM Boris Ostrovsky wrote: > > On 6/24/20 11:02 PM, Souptick Joarder wrote: > > Previously, if lock_pages() end up partially mapping pages, it used > > to return -ERRNO due to which unlock_pages() have to go through > > each pages[i] till *nr_pages* to validate them.

Re: [PATCH v2] ring-buffer: Have nested events still record running time stamp

2020-06-25 Thread kernel test robot
Hi Steven, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/perf/core] [also build test ERROR on linux/master linus/master v5.8-rc2 next-20200625] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH 2/2] xen/privcmd: Convert get_user_pages*() to pin_user_pages*()

2020-06-25 Thread Souptick Joarder
On Thu, Jun 25, 2020 at 11:19 AM John Hubbard wrote: > > On 2020-06-24 20:02, Souptick Joarder wrote: > > In 2019, we introduced pin_user_pages*() and now we are converting > > get_user_pages*() to the new API as appropriate. [1] & [2] could > > be referred for more information. This is case 5 as

Re: [Tee-dev] [PATCHv8 1/3] optee: use uuid for sysfs driver entry

2020-06-25 Thread Sumit Garg
On Thu, 25 Jun 2020 at 18:22, Maxim Uvarov wrote: > > On Wed, 24 Jun 2020 at 18:44, Jerome Forissier wrote: > > > > > > > > On 6/24/20 5:21 PM, James Bottomley wrote: > > > On Wed, 2020-06-24 at 16:17 +0530, Sumit Garg wrote: > > >> Apologies for delay in my reply as I was busy with some other

Re: [PATCH net-next v2] xfrm: introduce oseq-may-wrap flag

2020-06-25 Thread Steffen Klassert
On Sat, May 30, 2020 at 02:39:12PM +0200, Petr Vaněk wrote: > RFC 4303 in section 3.3.3 suggests to disable anti-replay for manually > distributed ICVs in which case the sender does not need to monitor or > reset the counter. However, the sender still increments the counter and > when it reaches

Re: linux-next: umh: fix processed error when UMH_WAIT_PROC is used seems to break linux bridge on s390x (bisected)

2020-06-25 Thread Christian Borntraeger
On 26.06.20 04:54, Luis Chamberlain wrote: > On Wed, Jun 24, 2020 at 08:37:55PM +0200, Christian Borntraeger wrote: >> >> >> On 24.06.20 20:32, Christian Borntraeger wrote: >> [...]> >>> So the translations look correct. But your change is actually a sematic >>> change >>> if(ret) will only

[rcu:rcu/urgent] BUILD SUCCESS b58e733fd774f3f4b49d9e7640d172a57e35200e

2020-06-25 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/urgent branch HEAD: b58e733fd774f3f4b49d9e7640d172a57e35200e rcu: Fixup noinstr warnings elapsed time: 723m configs tested: 120 configs skipped: 5 The following configs have been built successfully. More

[rcu:rcu/test] BUILD SUCCESS 12f2d29942ce0b140b8f03679d9f1d36d552fa70

2020-06-25 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/test branch HEAD: 12f2d29942ce0b140b8f03679d9f1d36d552fa70 Merge remote-tracking branch 'linus/master' into HEAD elapsed time: 723m configs tested: 120 configs skipped: 5 The following configs have been

Re: [PATCH v6 0/6] workingset protection/detection on the anonymous LRU list

2020-06-25 Thread Joonsoo Kim
2020년 6월 17일 (수) 오후 2:26, 님이 작성: > > From: Joonsoo Kim > > Hello, > > This patchset implements workingset protection and detection on > the anonymous LRU list. > > * Changes on v6 > - rework to reflect a new LRU balance model > - remove memcg charge timing stuff on v5 since alternative is already

Re: [Tee-dev] [PATCHv8 1/3] optee: use uuid for sysfs driver entry

2020-06-25 Thread Sumit Garg
On Thu, 25 Jun 2020 at 18:22, Maxim Uvarov wrote: > > On Wed, 24 Jun 2020 at 18:44, Jerome Forissier wrote: > > > > > > > > On 6/24/20 5:21 PM, James Bottomley wrote: > > > On Wed, 2020-06-24 at 16:17 +0530, Sumit Garg wrote: > > >> Apologies for delay in my reply as I was busy with some other

Re: [Tee-dev] [PATCHv8 1/3] optee: use uuid for sysfs driver entry

2020-06-25 Thread Sumit Garg
On Fri, 26 Jun 2020 at 05:01, James Bottomley wrote: > > On Thu, 2020-06-25 at 19:54 +0530, Sumit Garg wrote: > > On Wed, 24 Jun 2020 at 20:51, James Bottomley > > wrote: > > > > > > On Wed, 2020-06-24 at 16:17 +0530, Sumit Garg wrote: > > > > Apologies for delay in my reply as I was busy with

Re: [PATCH 08/12] driver-core: Introduce DEVICE_ATTR_ADMIN_{RO,RW}

2020-06-25 Thread Dan Williams
On Thu, Jun 25, 2020 at 10:06 PM Greg Kroah-Hartman wrote: > > On Thu, Jun 25, 2020 at 04:51:03PM -0700, Dan Williams wrote: > > A common pattern for using plain DEVICE_ATTR() instead of > > DEVICE_ATTR_RO() and DEVICE_ATTR_RW() is for attributes that want to > > limit read to only root. I.e.

Re: [PATCH v6 4/6] mm/swapcache: support to handle the exceptional entries in swapcache

2020-06-25 Thread Joonsoo Kim
2020년 6월 19일 (금) 오전 10:33, Joonsoo Kim 님이 작성: > > On Wed, Jun 17, 2020 at 05:17:17AM -0700, Matthew Wilcox wrote: > > On Wed, Jun 17, 2020 at 02:26:21PM +0900, js1...@gmail.com wrote: > > > From: Joonsoo Kim > > > > > > Swapcache doesn't handle the exceptional entries since there is no case > > >

Re: [PATCH 08/12] driver-core: Introduce DEVICE_ATTR_ADMIN_{RO,RW}

2020-06-25 Thread Greg Kroah-Hartman
On Thu, Jun 25, 2020 at 04:51:03PM -0700, Dan Williams wrote: > A common pattern for using plain DEVICE_ATTR() instead of > DEVICE_ATTR_RO() and DEVICE_ATTR_RW() is for attributes that want to > limit read to only root. I.e. many users of DEVICE_ATTR() are > specifying 0400 or 0600 for

Re: [PATCH v3 6/8] mm/gup: use a standard migration target allocation callback

2020-06-25 Thread Joonsoo Kim
2020년 6월 25일 (목) 오후 9:08, Michal Hocko 님이 작성: > > On Tue 23-06-20 15:13:46, Joonsoo Kim wrote: > > From: Joonsoo Kim > > > > There is a well-defined migration target allocation callback. > > It's mostly similar with new_non_cma_page() except considering CMA pages. > > > > This patch adds a CMA

Re: [PATCH v3 5/8] mm/migrate: make a standard migration target allocation function

2020-06-25 Thread Joonsoo Kim
2020년 6월 25일 (목) 오후 9:05, Michal Hocko 님이 작성: > > On Tue 23-06-20 15:13:45, Joonsoo Kim wrote: > > From: Joonsoo Kim > > > > There are some similar functions for migration target allocation. Since > > there is no fundamental difference, it's better to keep just one rather > > than keeping all

Re: [PATCH] mm/spase: never partially remove memmap for early section

2020-06-25 Thread David Hildenbrand
> Am 26.06.2020 um 00:40 schrieb Wei Yang : > > On Thu, Jun 25, 2020 at 07:53:37AM +0200, David Hildenbrand wrote: >> >> Am 25.06.2020 um 01:47 schrieb Dan Williams : >>> >>> On Wed, Jun 24, 2020 at 3:44 PM Wei Yang >>> wrote: >>> [..] > So, you are right that there is a

[PATCH RFC 1/5] dt-bindings: add binding for CDNSP-DRD controller

2020-06-25 Thread Pawel Laszczak
This patch aim at documenting USB related dt-bindings for the Cadence CDNSP-DRD controller. Signed-off-by: Pawel Laszczak --- .../devicetree/bindings/usb/cdns-cdnsp.yaml | 104 ++ 1 file changed, 104 insertions(+) create mode 100644

[PATCH RFC 3/5] usb: cdnsp: Device side header file for CDNSP driver

2020-06-25 Thread Pawel Laszczak
Patch defines macros, registers and structures used by Device side driver. Because the size of main patch is very big, I’ve decided to create separate patch for gadget.h. It should simplify reviewing the code. Signed-off-by: Pawel Laszczak --- drivers/usb/cdnsp/gadget.h | 1446

[PATCH RFC 2/5] usb:cdns3: Add pci to platform driver wrapper

2020-06-25 Thread Pawel Laszczak
Patch adds PCI specific glue driver that creates and registers in-system cdns-usbssp platform device. Thanks to that we will be able to use the cdns-usbssp platform driver for USBSS-DEV controller build on PCI board. Signed-off-by: Pawel Laszczak --- drivers/usb/Kconfig | 1 +

[PATCH RFC 5/5] usb: cdnsp: Add tracepoints for CDNSP driver

2020-06-25 Thread Pawel Laszczak
Patch adds the series of tracepoints that can be used for debugging issues detected in driver. Signed-off-by: Pawel Laszczak --- drivers/usb/cdnsp/Makefile | 5 + drivers/usb/cdnsp/debug.h | 583 ++ drivers/usb/cdnsp/ep0.c| 24 +- drivers/usb/cdnsp/gadget.c |

[PATCH RFC 0/5] Introduced new Cadence USBSSP DRD Driver.

2020-06-25 Thread Pawel Laszczak
This patch introduce new Cadence USBSS DRD driver to linux kernel. The Cadence USBSS DRD Controller is a highly configurable IP Core which can be instantiated as Dual-Role Device (DRD), Peripheral Only and Host Only (XHCI)configurations. The current driver has been validated with FPGA burned. We

Re: [PATCH 06/10] media: mtk-vcodec: venc: specify supported formats per-chip

2020-06-25 Thread Alexandre Courbot
Hi Tiffany, On Tue, Jun 23, 2020 at 10:29 AM Tiffany Lin wrote: > > On Mon, 2020-06-22 at 21:44 +0900, Alexandre Courbot wrote: > > On Fri, Jun 19, 2020 at 4:26 PM Tiffany Lin > > wrote: > > > > > > On Wed, 2020-05-20 at 17:27 +0900, Alexandre Courbot wrote: > > > > Different chips have

Re: [PATCH v3 4/8] mm/hugetlb: make hugetlb migration callback CMA aware

2020-06-25 Thread Joonsoo Kim
2020년 6월 25일 (목) 오후 8:54, Michal Hocko 님이 작성: > > On Tue 23-06-20 15:13:44, Joonsoo Kim wrote: > > From: Joonsoo Kim > > > > new_non_cma_page() in gup.c which try to allocate migration target page > > requires to allocate the new page that is not on the CMA area. > > new_non_cma_page() implements

Re: [PATCH] powerpc/fixmap: Fix FIX_EARLY_DEBUG_BASE when page size is 256k

2020-06-25 Thread Michael Ellerman
On Mon, 15 Jun 2020 07:48:25 + (UTC), Christophe Leroy wrote: > FIX_EARLY_DEBUG_BASE reserves a 128k area for debuging. > > When page size is 256k, the calculation results in a 0 number of > pages, leading to the following failure: > > CC arch/powerpc/kernel/asm-offsets.s > In file

Re: [PATCH v3 0/2] powerpc: CMDLINE config cleanup

2020-06-25 Thread Michael Ellerman
On Fri, 12 Jun 2020 10:42:18 +1200, Chris Packham wrote: > This series cleans up the config options related to the boot command line. > > Chris Packham (2): > powerpc: Remove inaccessible CMDLINE default > powerpc: configs: remove CMDLINE_BOOL > > arch/powerpc/Kconfig

Re: [PATCH 2/2] pci: Add parameter to disable attaching untrusted devices

2020-06-25 Thread Greg Kroah-Hartman
On Thu, Jun 25, 2020 at 05:27:10PM -0700, Rajat Jain wrote: > Introduce a PCI parameter that disables the automatic attachment of > untrusted devices to their drivers. You didn't document this new api anywhere :(

Re: [PATCH] powerpc/8xx: Modify ptep_get()

2020-06-25 Thread Michael Ellerman
On Thu, 18 Jun 2020 12:07:46 + (UTC), Christophe Leroy wrote: > Move ptep_get() close to pte_update(), in an ifdef section already > dedicated to powerpc 8xx. This section contains explanation about > the layout of page table entries. > > Also modify it to return 4 times the pte value instead

Re: [PATCH 0/3] powerpc/dt_cpu_ftrs: Make use of ISA_V3_* macros

2020-06-25 Thread Michael Ellerman
On Wed, 10 Jun 2020 18:51:11 -0300, Murilo Opsfelder Araujo wrote: > The first patch removes unused macro ISA_V2_07B. The second and third > patches make use of macros ISA_V3_0B and ISA_V3_1, respectively, > instead their corresponding literals. > > Murilo Opsfelder Araujo (3): >

Re: [PATCH 1/3] crypto: pass the flag CRYPTO_ALG_ALLOCATES_MEMORY

2020-06-25 Thread Herbert Xu
On Wed, Jun 17, 2020 at 11:09:28AM -0400, Mikulas Patocka wrote: > > Index: linux-2.6/include/linux/crypto.h > === > --- linux-2.6.orig/include/linux/crypto.h > +++ linux-2.6/include/linux/crypto.h > @@ -97,9 +97,18 @@ > #define

Re: [PATCH V2] powerpc/pseries/svm: Drop unused align argument in alloc_shared_lppaca() function

2020-06-25 Thread Michael Ellerman
On Fri, 12 Jun 2020 19:59:53 +0530, Satheesh Rajendran wrote: > Argument "align" in alloc_shared_lppaca() was unused inside the > function. Let's drop it and update code comment for page alignment. Applied to powerpc/next. [1/1] powerpc/pseries/svm: Drop unused align argument in

Re: [PATCH] powerpc/mm: Fix typo in IS_ENABLED()

2020-06-25 Thread Michael Ellerman
On Fri, 5 Jun 2020 07:18:06 -0700, Kees Cook wrote: > IS_ENABLED() matches names exactly, so the missing "CONFIG_" prefix > means this code would never be built. > > Also fixes a missing newline in pr_warn(). Applied to powerpc/next. [1/1] powerpc/mm: Fix typo in IS_ENABLED()

Re: [PATCH] powerpc/ptdump: Fix build failure in hashpagetable.c

2020-06-25 Thread Michael Ellerman
On Mon, 15 Jun 2020 13:18:39 + (UTC), Christophe Leroy wrote: > H_SUCCESS is only defined when CONFIG_PPC_PSERIES is defined. > > != H_SUCCESS means != 0. Modify the test accordingly. Applied to powerpc/next. [1/1] powerpc/ptdump: Fix build failure in hashpagetable.c

Re: [PATCH] arch: powerpc: ppc4xx compile flag optimizations

2020-06-25 Thread Michael Ellerman
On Thu, 22 Dec 2016 09:06:08 +0100, John Crispin wrote: > This patch splits up the compile flags between ppc40x and ppc44x. Applied to powerpc/next. [1/1] powerpc/4xx: ppc4xx compile flag optimizations https://git.kernel.org/powerpc/c/548ad77d10f7ad6e5f84a0026978da2ed1df0dae cheers

Re: [PATCH] powerpc/fsl_booke/32: fix build with CONFIG_RANDOMIZE_BASE

2020-06-25 Thread Michael Ellerman
On Sat, 13 Jun 2020 23:28:01 +0700, Arseny Solokha wrote: > Building the current 5.8 kernel for a e500 machine with > CONFIG_RANDOMIZE_BASE set yields the following failure: > > arch/powerpc/mm/nohash/kaslr_booke.c: In function 'kaslr_early_init': > arch/powerpc/mm/nohash/kaslr_booke.c:387:2:

Re: [fedora-arm] Banana Pi-R1 - kernel 5.6.0 and later broken - b43 DSA

2020-06-25 Thread Florian Fainelli
On 6/25/2020 4:23 PM, Peter Robinson wrote: >> I'm having troubles with the Banana Pi-R1 router with newer kernels. No >> config changes, config works well since a lot of lernel updates ... >> Banana Pi-R1 is configured via systemd-networkd and uses the DSA >> (Distributed Switch Architecture)

Re: [klibc] process '/usr/bin/rsync' started with executable stack

2020-06-25 Thread Christophe Leroy
Le 25/06/2020 à 22:20, Kees Cook a écrit : On Thu, Jun 25, 2020 at 01:04:29PM +0300, Dan Carpenter wrote: On Wed, Jun 24, 2020 at 12:39:24PM -0700, Kees Cook wrote: On Wed, Jun 24, 2020 at 07:51:48PM +0300, Dan Carpenter wrote: In Debian testing the initrd triggers the warning. [

Re: [PATCH] platform/chrome: Clarify SPDX license with GPL-2.0-only

2020-06-25 Thread Greg Kroah-Hartman
On Thu, Jun 25, 2020 at 10:06:03PM +0300, Andy Shevchenko wrote: > On Thu, Jun 25, 2020 at 9:25 PM Enric Balletbo i Serra > wrote: > > > > Remove the ambiguity with GPL-2.0 and use an explicit GPL-2.0-only > > tag. > > Is there any? Last time IIRC Greg told me that in the kernel the old > and

Re: [PATCH] fixing ERROR: Macros with complex values must be enclosed within parentheses.

2020-06-25 Thread Greg Kroah-Hartman
On Thu, Jun 25, 2020 at 10:17:23PM -0400, B K Karthik wrote: > soc_camera.c: > > fixing ERROR: Macros with complex values must be enclused within parentheses. > > Signed-off-by: B K Karthik > --- > drivers/staging/media/soc_camera/soc_camera.c | 3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH v2] ring-buffer: Have nested events still record running time stamp

2020-06-25 Thread kernel test robot
Hi Steven, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/perf/core] [also build test WARNING on linux/master linus/master v5.8-rc2 next-20200625] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest

[git pull] drm fixes for v5.8-rc3

2020-06-25 Thread Dave Airlie
Hi Linus, Usual rc3 pickup, lots of little fixes all over, The core VT registration regression fix is probably the largest, otherwise ttm, amdgpu and tegra are the bulk, with some minor driver fixes. No i915 pull this week which may or may not mean I get 2x of it next week, we'll see how it goes.

Re: [PATCH] Bluetooth: btusb: Comment on unbalanced pm reference

2020-06-25 Thread Marcel Holtmann
Hi Abhishek, > Add a comment clarifying that a PM reference in btusb_qca_cmd_timeout is > not unbalanced because it results in a device reset. > > Signed-off-by: Abhishek Pandit-Subedi > --- > > drivers/bluetooth/btusb.c | 1 + > 1 file changed, 1 insertion(+) patch has been applied to

[PATCH v3 2/2] USB: serial: cp210x: Proper RTS control when buffers fill

2020-06-25 Thread Phu Luu
From: Brant Merryman CP210x hardware disables auto-RTS but leaves auto-CTS when in hardware flow control mode and UART on cp210x hardware is disabled. This allows data to flow out, but new data will not come into the port. When re-opening the port, if auto-CTS is enabled on the cp210x, then

[PATCH v3 1/2] USB: serial: cp210x: Enable usb generic throttle/unthrottle

2020-06-25 Thread Phu Luu
From: Brant Merryman Assign the .throttle and .unthrottle functions to be generic function in the driver structure to prevent data loss that can otherwise occur if the host does not enable USB throttling. Signed-off-by: Phu Luu Signed-off-by: Brant Merryman --- 06/09/2020: Patch v3 1/2

Re: [PATCH] cpufreq: schedutil: force frequency update when limits change

2020-06-25 Thread Wei Wang
On Thu, Jun 25, 2020 at 7:32 PM Viresh Kumar wrote: > > On 26-06-20, 07:44, Viresh Kumar wrote: > > On 25-06-20, 13:47, Wei Wang wrote: > > > On Thu, Jun 25, 2020 at 3:23 AM Viresh Kumar > > > wrote: > > > > I am sorry but I am not fully sure of what the problem is. Can you > > > > describe

[GIT RFC PULL rcu/urgent] Fix noinstr warnings for KCSAN

2020-06-25 Thread Paul E. McKenney
Hello! This pull request contains a single commit that uses "arch_" atomic operations to avoid the instrumentation that comes with the non-"arch_" versions. In preparation for that commit, it also has another commit that makes these "arch_" atomic operations available to generic code. Without

[PATCH net-next] bonding: Remove extraneous parentheses in bond_setup

2020-06-25 Thread Nathan Chancellor
Clang warns: drivers/net/bonding/bond_main.c:4657:23: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((BOND_MODE(bond) == BOND_MODE_ACTIVEBACKUP)) ^ drivers/net/bonding/bond_main.c:4681:23:

[PATCH V2] scsi: eesox: Fix different dev_id between 'request_irq()' and 'free_irq()'

2020-06-25 Thread Christophe JAILLET
The dev_id used in 'request_irq()' and 'free_irq()' should match. So use 'info' in both cases. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christophe JAILLET --- V2: update free_irq instead of request_irq in order not to obviously break code --- drivers/scsi/arm/eesox.c | 2 +-

Re: [PATCH v3 3/8] mm/hugetlb: unify migration callbacks

2020-06-25 Thread Joonsoo Kim
2020년 6월 25일 (목) 오후 8:26, Michal Hocko 님이 작성: > > On Tue 23-06-20 15:13:43, Joonsoo Kim wrote: > > From: Joonsoo Kim > > > > There is no difference between two migration callback functions, > > alloc_huge_page_node() and alloc_huge_page_nodemask(), except > > __GFP_THISNODE handling. This patch

[PATCH V2] scsi: powertec: Fix different dev_id between 'request_irq()' and 'free_irq()'

2020-06-25 Thread Christophe JAILLET
The dev_id used in 'request_irq()' and 'free_irq()' should match. So use 'info' in both cases. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christophe JAILLET --- V2: update free_irq instead of request_irq in order not to obviously break code --- drivers/scsi/arm/powertec.c | 2

Re: [PATCH 1/2] HID: wiimote: Initialize the controller LEDs with a device ID value

2020-06-25 Thread David Korth
On Thursday, June 25, 2020 3:09:46 AM EDT David Rheinsberg wrote: > Hi > > On Thu, 25 Jun 2020 at 00:09, David Korth wrote: > > I've been manually setting the player IDs on Wii controllers when running > > multiplayer games by writing to the /sys/class/leds/ directory. Having the > > hid-wiimote

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-06-25 Thread Bart Van Assche
On 2020-06-25 01:16, Martin Kepplinger wrote: > Also, why isn't "autopm" used in its ioctl() implementation > (as opposed to in "sr")? Some of the scsi_autopm_{get,put}_device() calls in the sr driver have been introduced by me before I fully understood runtime pm. I will have a another look to

[PATCH] samples cn_test: fix cn leakage

2020-06-25 Thread libolingjl
From: liboling Error return when add the second cn_test_id, we need del the first cn_test_id. Signed-off-by: liboling --- samples/connector/cn_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/connector/cn_test.c b/samples/connector/cn_test.c index 0958a171d0..275e3f9082

[PATCH V3 1/3] cpufreq: Fix locking issues with governors

2020-06-25 Thread Viresh Kumar
The locking around governors handling isn't adequate currently. The list of governors should never be traversed without locking in place. Also we must make sure the governor isn't removed while it is still referenced by code. Reported-by: Quentin Perret Signed-off-by: Viresh Kumar ---

[PATCH V3 2/3] cpufreq: Register governors at core_initcall

2020-06-25 Thread Viresh Kumar
From: Quentin Perret Currently, most CPUFreq governors are registered at core_initcall time when used as default, and module_init otherwise. In preparation for letting users specify the default governor on the kernel command line, change all of them to use core_initcall unconditionally, as is

[PATCH V3 3/3] cpufreq: Specify default governor on command line

2020-06-25 Thread Viresh Kumar
From: Quentin Perret Currently, the only way to specify the default CPUfreq governor is via Kconfig options, which suits users who can build the kernel themselves perfectly. However, for those who use a distro-like kernel (such as Android, with the Generic Kernel Image project), the only way to

[PATCH v3 0/3] cpufreq: Allow default governor on cmdline and fix locking issues

2020-06-25 Thread Viresh Kumar
Hi, I have picked Quentin's series over my patch, modified both and tested. V2->V3: - default_governor is a string now and we don't set it on governor registration or unregistration anymore. - Fixed locking issues in cpufreq_init_policy(). -- Viresh Original cover letter fro Quentin: This

RE: [PATCH v2 2/2] arm64: mm: reserve per-numa CMA after numa_init

2020-06-25 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Thursday, June 25, 2020 11:16 PM > To: Song Bao Hua (Barry Song) ; h...@lst.de; > m.szyprow...@samsung.com; w...@kernel.org; > ganapatrao.kulka...@cavium.com; catalin.mari...@arm.com > Cc:

[PATCH 1/1] drm/bridge: analogix_dp: Add enable_psr param

2020-06-25 Thread Shawn Anastasio
Add a toggle to enable/disable PSR from the kernel commandline. This is useful in situations where PSR is supported by the hardware but is not desired by the user. One such use case is working around hardware errata. Signed-off-by: Shawn Anastasio ---

[PATCH 0/1] drm/bridge: analogix_dp: Add PSR toggle

2020-06-25 Thread Shawn Anastasio
This patch adds a commandline toggle for the Panel Self-Refresh feature to the analogix_dp bridge driver, much like the one in i915. This is required to work around a hardware fault in some Pinebook Pro units from the May 2020 batch whose display panels seem to behave sporadically when PSR is

mmotm 2020-06-25-20-36 uploaded

2020-06-25 Thread akpm
The mm-of-the-moment snapshot 2020-06-25-20-36 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

Re: [RFC][PATCH] ring-buffer: Have nested events still record running time stamp

2020-06-25 Thread Steven Rostedt
On Thu, 25 Jun 2020 22:36:11 -0400 Steven Rostedt wrote: > +static void rb_time_set(rb_time_t *t, u64 val) > +{ > + struct rb_time_read r; > + > + rb_time_read_set(, val); > + > + do { > + r.start_cnt = local_inc_return(>start_cnt); > + local_set(>top, r.top);

[PATCH v4] selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3

2020-06-25 Thread Pengfei Xu
Python 2 is no longer supported by the Python upstream project, so upgrade TPM2 tests to Python 3. Signed-off-by: Pengfei Xu --- tools/testing/selftests/tpm2/test_smoke.sh | 4 +- tools/testing/selftests/tpm2/test_space.sh | 2 +- tools/testing/selftests/tpm2/tpm2.py | 56

linux-next: manual merge of the usb tree with the usb.current tree

2020-06-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the usb tree got a conflict in: drivers/usb/cdns3/ep0.c between commit: c0e2a0341cd8 ("usb: cdns3: ep0: fix the test mode set incorrectly") from the usb.current tree and commit: 62fb45d317c5 ("USB: ch9: add "USB_" prefix in front of TEST defines")

Re: [PATCH v3] selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3

2020-06-25 Thread Pengfei Xu
Hi Jarkko, I missed this improvement in previous mail. Will do. Thanks! BR. On 2020-06-26 at 00:51:45 +0300, Jarkko Sakkinen wrote: > On Fri, Jun 26, 2020 at 12:37:54AM +0800, Pengfei Xu wrote: > > Python 2 is no longer supported by the Python upstream project, so > > upgrade TPM2 tests to

linux-next: manual merge of the rcu tree with the tip tree

2020-06-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rcu tree got a conflict in: include/linux/compiler.h between commit: 1d8fcbb76bb1 ("compiler.h: Move instrumentation_begin()/end() into new header") from the tip tree and commit: 3b9946ebaf2b ("rcu: Fixup noinstr warnings") from the rcu tree.

Re: [PATCH v2 0/2] zone-append support in io-uring and aio

2020-06-25 Thread Damien Le Moal
On 2020/06/26 2:18, Kanchan Joshi wrote: > [Revised as per feedback from Damien, Pavel, Jens, Christoph, Matias, Wilcox] > > This patchset enables zone-append using io-uring/linux-aio, on block IO path. > Purpose is to provide zone-append consumption ability to applications which > are > using

Re: [RFC PATCH 10/11] efi: Rename arm-init to efi-init common for all arch

2020-06-25 Thread Heinrich Schuchardt
On 6/26/20 1:45 AM, Atish Patra wrote: > arm-init is responsible for setting up efi runtime and doesn't actually > do any ARM specific stuff. RISC-V can use the same source code as it is. > > Rename it to efi-init so that RISC-V can use it. > > Signed-off-by: Atish Patra > --- >

Re: linux-next: umh: fix processed error when UMH_WAIT_PROC is used seems to break linux bridge on s390x (bisected)

2020-06-25 Thread Luis Chamberlain
On Wed, Jun 24, 2020 at 08:37:55PM +0200, Christian Borntraeger wrote: > > > On 24.06.20 20:32, Christian Borntraeger wrote: > [...]> > > So the translations look correct. But your change is actually a sematic > > change > > if(ret) will only trigger if there is an error > > if

Re: [PATCH v2 2/2] cpufreq: Specify default governor on command line

2020-06-25 Thread Viresh Kumar
On 23-06-20, 15:21, Quentin Perret wrote: > @@ -2789,7 +2796,13 @@ static int __init cpufreq_core_init(void) > cpufreq_global_kobject = kobject_create_and_add("cpufreq", > _subsys.dev_root->kobj); > BUG_ON(!cpufreq_global_kobject); > > + mutex_lock(_governor_mutex); > + if

[PATCH v2] ring-buffer: Have nested events still record running time stamp

2020-06-25 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Up until now, if an event is interrupted while it is recorded by an interrupt, and that interrupt records events, the time of those events will all be the same. This is because events only record the delta of the time since the previous event (or beginning of a

Re: [PATCH] fixing ERROR: Macros with complex values must be enclosed within parentheses.

2020-06-25 Thread Laurent Pinchart
Hi Karthik, Thank you for the patch. On Thu, Jun 25, 2020 at 10:17:23PM -0400, B K Karthik wrote: > soc_camera.c: > > fixing ERROR: Macros with complex values must be enclused within parentheses. > > Signed-off-by: B K Karthik > --- > drivers/staging/media/soc_camera/soc_camera.c | 3 +-- >

Re: [PATCH v2 1/2] fs,block: Introduce RWF_ZONE_APPEND and handling in direct IO path

2020-06-25 Thread Damien Le Moal
On 2020/06/26 2:18, Kanchan Joshi wrote: > Introduce RWF_ZONE_APPEND flag to represent zone-append. User-space > sends this with write. Add IOCB_ZONE_APPEND which is set in > kiocb->ki_flags on receiving RWF_ZONE_APPEND. > Make direct IO submission path use IOCB_ZONE_APPEND to send bio with >

Re: [RFC PATCH 01/11] efi: Fix gcc error around __umoddi3 for 32 bit builds

2020-06-25 Thread Heinrich Schuchardt
On 6/26/20 1:45 AM, Atish Patra wrote: > 32bit gcc doesn't support modulo operation on 64 bit data. It results in > a __umoddi3 error while building EFI for 32 bit. > > Use bitwise operations instead of modulo operations to fix the issue. > > Signed-off-by: Atish Patra > --- >

Re: [RFC][PATCH] ring-buffer: Have nested events still record running time stamp

2020-06-25 Thread Steven Rostedt
On Thu, 25 Jun 2020 15:35:02 -0400 (EDT) Mathieu Desnoyers wrote: > Those performance and reentrancy concerns are why I always stick to local_t > (long), and never use a full 64-bit type for anything that has to > do with concurrent store/load between execution contexts in lttng. Although the

Re: [PATCH] ima: AppArmor satisfies the audit rule requirements

2020-06-25 Thread Mimi Zohar
On Tue, 2020-06-23 at 18:38 -0500, Tyler Hicks wrote: > AppArmor meets all the requirements for IMA in terms of audit rules > since commit e79c26d04043 ("apparmor: Add support for audit rule > filtering"). Update IMA's Kconfig section for CONFIG_IMA_LSM_RULES to > reflect this. > > Fixes:

Re: [PATCH] cpufreq: schedutil: force frequency update when limits change

2020-06-25 Thread Viresh Kumar
On 26-06-20, 07:44, Viresh Kumar wrote: > On 25-06-20, 13:47, Wei Wang wrote: > > On Thu, Jun 25, 2020 at 3:23 AM Viresh Kumar > > wrote: > > > I am sorry but I am not fully sure of what the problem is. Can you > > > describe that by giving an example with some random frequency, and > > > tell

[PATCH] fixing ERROR: Macros with complex values must be enclosed within parentheses.

2020-06-25 Thread B K Karthik
soc_camera.c: fixing ERROR: Macros with complex values must be enclused within parentheses. Signed-off-by: B K Karthik --- drivers/staging/media/soc_camera/soc_camera.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/soc_camera/soc_camera.c

Re: [PATCH] cpufreq: schedutil: force frequency update when limits change

2020-06-25 Thread Viresh Kumar
On 25-06-20, 13:47, Wei Wang wrote: > On Thu, Jun 25, 2020 at 3:23 AM Viresh Kumar wrote: > > I am sorry but I am not fully sure of what the problem is. Can you > > describe that by giving an example with some random frequency, and > > tell the expected and actual behavior ? > > > The problem is

Re: [PATCH] Ability to read the MKTME status from userspace (patch v2)

2020-06-25 Thread Alison Schofield
On Thu, Jun 25, 2020 at 06:10:29PM -0300, Daniel Gutson wrote: > The intent of this patch is to provide visibility of the > MKTME status to userspace. This is an important factor for > firmware security related applilcations. > > Changes since v1: > *

Re: [PATCH 2/2] irqchip/gic-v3: Support pseudo-NMIs when SCR_EL3.FIQ == 0

2020-06-25 Thread kernel test robot
Hi Alexandru, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on tip/irq/core v5.8-rc2 next-20200625] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest

Re: [RFC PATCH 00/13] Core scheduling v5

2020-06-25 Thread Joel Fernandes
On Thu, Jun 25, 2020 at 4:12 PM Vineeth Remanan Pillai wrote: [...] > TODO lists: > > - Interface discussions could not come to a conclusion in v5 and hence would >like to restart the discussion and reach a consensus on it. >- >

Re: [PATCH v4 12/12] x86/traps: Fix up invalid PASID

2020-06-25 Thread Lu Baolu
Hi Fenghua, On 2020/6/26 4:17, Fenghua Yu wrote: A #GP fault is generated when ENQCMD instruction is executed without a valid PASID value programmed in the current thread's PASID MSR. The #GP fault handler will initialize the MSR if a PASID has been allocated for this process. Decoding the

Re: linux-next: build failure after merge of the amdgpu tree

2020-06-25 Thread Stephen Rothwell
Hi all, On Fri, 12 Jun 2020 10:25:52 +1000 Stephen Rothwell wrote: > > After merging the amdgpu tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c: In function > 'kfd_sdma_activity_worker': >

Re: [PATCH v4 01/12] iommu: Change type of pasid to u32

2020-06-25 Thread Lu Baolu
Hi Fenghua, On 2020/6/26 4:17, Fenghua Yu wrote: PASID is defined as a few different types in iommu including "int", "u32", and "unsigned int". To be consistent and to match with uapi definitions, define PASID and its variations (e.g. max PASID) as "u32". "u32" is also shorter and a little more

Re: [PATCH v4 10/12] x86/mmu: Allocate/free PASID

2020-06-25 Thread Lu Baolu
Hi Fenghua, On 2020/6/26 4:17, Fenghua Yu wrote: A PASID is allocated for an "mm" the first time any thread attaches to an SVM capable device. Later device attachments (whether to the same device or another SVM device) will re-use the same PASID. The PASID is freed when the process exits (so

linux-next: manual merge of the drm-misc tree with Linus' tree

2020-06-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c between commit: eaad0c3aa978 ("drm/amdgpu: rename direct to immediate for VM updates") from the Linus' and commit: b1a8ef952a25 ("drm/amdgpu: move ttm bo->offset to

Re: [PATCH 00/13] iommu: Remove usage of dev->archdata.iommu

2020-06-25 Thread Jerry Snitselaar
On Thu Jun 25 20, Joerg Roedel wrote: From: Joerg Roedel Hi, here is a patch-set to remove the usage of dev->archdata.iommu from the IOMMU code in the kernel and replace its uses by the iommu per-device private data field. The changes also remove the field entirely from the architectures

Re: [GIT] Networking

2020-06-25 Thread pr-tracker-bot
The pull request you sent on Thu, 25 Jun 2020 16:43:48 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4a21185cda0fbb860580eeeb4f1a70a9cda332a4 Thank you! -- Deet-doot-dot, I

Re: [PATCH v5 3/3] media: vimc: Add a control to display info on test image

2020-06-25 Thread Helen Koike
Hi Kaaira, Thanks for your patch, I tested and it works great, just some other comments below. On 6/24/20 10:43 AM, Kaaira Gupta wrote: > Add a control in VIMC to display information such as the correct order of > colors for a given test pattern, brightness, hue, saturation, contrast, > width

Re: [PATCH v4 02/12] iommu/vt-d: Change flags type to unsigned int in binding mm

2020-06-25 Thread Lu Baolu
Hi Fenghua, On 2020/6/26 4:17, Fenghua Yu wrote: "flags" passed to intel_svm_bind_mm() is a bit mask and should be defined as "unsigned int" instead of "int". Change its type to "unsigned int". Reviewed-by: Lu Baolu Best regards, baolu Suggested-by: Thomas Gleixner Signed-off-by:

Re: [PATCH 1/3] v4l2-subdev: Add subdev ioctl support for ENUM/GET/SET INPUT

2020-06-25 Thread Laurent Pinchart
Hi Steve, On Thu, Jun 25, 2020 at 10:41:09AM -0700, Steve Longerbeam wrote: > On 6/24/20 7:01 PM, Laurent Pinchart wrote: > > On Wed, Jun 24, 2020 at 09:53:07AM +0200, Jacopo Mondi wrote: > >> On Tue, Jun 16, 2020 at 12:00:15PM +0200, Ramzi BEN MEFTAH wrote: > >>> From: Steve Longerbeam > >>

Re: [PATCH v4 4/5] dm: pci: Assign controller device node to root bridge

2020-06-25 Thread Simon Glass
Hi Nicolas, On Wed, 17 Jun 2020 at 13:15, Nicolas Saenz Julienne wrote: > > On Tue, 2020-06-16 at 17:31 -0600, Simon Glass wrote: > > Hi Nicolas, > > > > On Tue, 16 Jun 2020 at 08:09, Nicolas Saenz Julienne > > wrote: > > > On Tue, 2020-06-16 at 07:43 -0600, Simon Glass wrote: > > > > Hi

[PATCH] net: phy: mscc: fix ptr_ret.cocci warnings

2020-06-25 Thread kernel test robot
From: kernel test robot drivers/net/phy/mscc/mscc_ptp.c:1496:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Fixes: 7d272e63e097 ("net: phy: mscc: timestamping and PHC support") CC:

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-06-25 Thread Robert O'Callahan
On Fri, Jun 26, 2020 at 11:49 AM Gabriel Krisman Bertazi wrote: > We couldn't patch Windows code because of the aforementioned DRM and > anti-cheat mechanisms, but I suppose this limitation doesn't apply to > Wine/native code, and if this assumption is correct, this approach could > work. > > One

[PATCH v5 01/13] dt-bindings: vendor-prefixes: Add Xingbangda

2020-06-25 Thread Ondrej Jirman
From: Icenowy Zheng Shenzhen Xingbangda Display Technology Co., Ltd is a company which produces LCD modules. It supplies the LCD panels for the PinePhone. Add the vendor prefix of it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman Acked-by: Rob Herring ---

[PATCH v5 05/13] drm/panel: st7703: Rename functions from jh057n prefix to st7703

2020-06-25 Thread Ondrej Jirman
This is done so that code that's not specific to a particular jh057n panel is named after the controller. Functions specific to the panel are kept named after the panel. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 90 ++- 1 file changed, 46

[PATCH v5 03/13] dt-bindings: panel: Add compatible for Xingbangda XBD599 panel

2020-06-25 Thread Ondrej Jirman
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller just like rocktech,jh057n00900. It is used in PinePhone. Add a compatible for it. Signed-off-by: Ondrej Jirman --- .../bindings/display/panel/rocktech,jh057n00900.yaml| 6 +- 1

  1   2   3   4   5   6   7   8   9   10   >