Re: Aw: [PATCH 00/18] Convert arch/arm to use iommu-dma

2020-08-27 Thread Matthias Brugger
On 27/08/2020 14:31, Frank Wunderlich wrote: Tested full series on bananapi r2 (mt7623/mt2701, 5.9-rc1 + hdmi-patches), works so far fbcon+x without issues Tested-by: Frank Wunderlich Thanks for testing. Robin this is especially relevant for: [PATCH 09/18] iommu/mediatek-v1: Add IOMMU_D

[PATCH 0/1] USB: PHY: JZ4770: Next time, please test it

2020-08-27 Thread Paul Cercueil
Hi, Here's a fix for the phy-jz4770 driver, which is broken in 5.9-rc2 starting from commit 2a6c0b82e651 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs."). I'm not amused by this, considering that this patch was obviously not tested, yet it has a Tested-by tag. Next time, please test your

Re: [ANNOUNCE] v5.9-rc2-rt1

2020-08-27 Thread Daniel Wagner
> Would be interesting to see the size numbers for v5.6-rt? Hmm, I'll > just start the compiler. It's all scripted anyway :) v5.6-rt: -rw-r--r-- 1 wagi users 28688896 Aug 27 13:38 rpi3-image-ll-v5.6.19-rt12 -rw-r--r-- 1 wagi users 28688896 Aug 27 13:34 rpi3-image-nohz-v5.6.19-rt12 -rw-r--r-- 1 wa

Re: [PATCH v3 1/2] iio: adc: mt6360: Add ADC driver for MT6360

2020-08-27 Thread kernel test robot
Hi Gene, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on iio/togreg] [also build test WARNING on v5.9-rc2 next-20200827] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

[PATCH 1/1] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Paul Cercueil
The 'reg' value was written to a hardware register in ingenic_usb_phy_init(), while not being initialized anywhere. Fixes: 2a6c0b82e651 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs.") Signed-off-by: Paul Cercueil --- drivers/usb/phy/phy-jz4770.c | 28 +++- 1 file

Re: [PATCH] ASoC: meson: cards: deal dpcm flag change

2020-08-27 Thread Marek Szyprowski
Hi Jerome, On 31.07.2020 14:06, Jerome Brunet wrote: > Commit b73287f0b074 ("ASoC: soc-pcm: dpcm: fix playback/capture checks") > changed the meaning of dpcm_playback/dpcm_capture and now requires the > CPU DAI BE to aligned with those flags. > > This broke all Amlogic cards with uni-directional b

Re: [RFC] perf/jevents: Add new structure to pass json fields.

2020-08-27 Thread kajoljain
On 8/26/20 5:03 PM, John Garry wrote: > On 26/08/2020 12:24, kajoljain wrote: >> >> >> On 8/26/20 4:30 PM, Jiri Olsa wrote: >>> On Tue, Aug 25, 2020 at 09:14:11AM +0100, John Garry wrote: >>> >>> SNIP >>> >    goto free_strings; >    } > -    err = func(da

Re: [PATCH 21/35] arm64: mte: Add in-kernel tag fault handler

2020-08-27 Thread Andrey Konovalov
On Thu, Aug 27, 2020 at 11:54 AM Catalin Marinas wrote: > > On Fri, Aug 14, 2020 at 07:27:03PM +0200, Andrey Konovalov wrote: > > diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c > > index 5e832b3387f1..c62c8ba85c0e 100644 > > --- a/arch/arm64/mm/fault.c > > +++ b/arch/arm64/mm/fault.c >

[PATCH] scsi: dpt_i2o: remove set but not used 'pHba'

2020-08-27 Thread Jason Yan
This addresses the following gcc warning with "make W=1": drivers/scsi/dpt_i2o.c: In function ‘adpt_slave_configure’: drivers/scsi/dpt_i2o.c:411:12: warning: variable ‘pHba’ set but not used [-Wunused-but-set-variable] 411 | adpt_hba* pHba; |^~~~ Reported-by: Hulk Robot Sign

[PATCH] scsi: isci: remove set but not used 'index'

2020-08-27 Thread Jason Yan
This addresses the following gcc warning with "make W=1": drivers/scsi/isci/host.c: In function ‘sci_controller_complete_io’: drivers/scsi/isci/host.c:2674:6: warning: variable ‘index’ set but not used [-Wunused-but-set-variable] 2674 | u16 index; | ^ Reported-by: Hulk Robot Sig

Re: [PATCH 1/1] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Felipe Balbi
Hi, Paul Cercueil writes: > The 'reg' value was written to a hardware register in > ingenic_usb_phy_init(), while not being initialized anywhere. your patch does a lot more than fix the bug :-) > Fixes: 2a6c0b82e651 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs.") > Signed-off-by: Paul

Re: [PATCH 2/8] mm: Use find_get_swap_page in memcontrol

2020-08-27 Thread Matthew Wilcox
On Wed, Aug 26, 2020 at 10:20:02AM -0400, Johannes Weiner wrote: > The refactor makes sense to me, but the name is confusing. We're not > looking for a swap page, we're primarily looking for a file page in > the page cache mapping that's handed in. Only in the special case > where it's a shmem mapp

Re: [PATCH v2 15/15] kprobes: Free kretprobe_instance with rcu callback

2020-08-27 Thread Masami Hiramatsu
On Thu, 27 Aug 2020 13:49:19 +0200 pet...@infradead.org wrote: > On Thu, Aug 27, 2020 at 08:37:49PM +0900, Masami Hiramatsu wrote: > > > +void recycle_rp_inst(struct kretprobe_instance *ri) > > Also note, that at this point there is no external caller of this > function anymore. OK, actually, t

[PATCH] scsi: mptscsih: remove set but not used 'timeleft'

2020-08-27 Thread Jason Yan
This addresses the following gcc warning with "make W=1": drivers/message/fusion/mptscsih.c: In function ‘mptscsih_IssueTaskMgmt’: drivers/message/fusion/mptscsih.c:1519:17: warning: variable ‘timeleft’ set but not used [-Wunused-but-set-variable] 1519 | unsigned long timeleft; |

Re: [RFC] perf/jevents: Add new structure to pass json fields.

2020-08-27 Thread kajoljain
On 8/26/20 5:29 PM, Jiri Olsa wrote: > On Wed, Aug 26, 2020 at 05:02:04PM +0530, kajoljain wrote: >> >> >> On 8/26/20 4:26 PM, Jiri Olsa wrote: >>> On Tue, Aug 25, 2020 at 01:10:41PM +0530, Kajol Jain wrote: >>> >>> SNIP >>> { /* try to find matching event from arch standard values

Re: [PATCH 3/3] usb: cdns3: Enable workaround for USB2.0 PHY Rx compliance test PHY lockup

2020-08-27 Thread Felipe Balbi
Hi, Roger Quadros writes: > From: Pawel Laszczak > > USB2.0 PHY hangs in Rx Compliance test when the incoming packet > amplitude is varied below and above the Squelch Level of Receiver > during the active packet multiple times. > > Version

Re: [PATCH v3] usb: mtu3: fix panic in mtu3_gadget_stop()

2020-08-27 Thread Felipe Balbi
Macpaul Lin writes: > This patch fixes a possible issue when mtu3_gadget_stop() > already assigned NULL to mtu->gadget_driver during mtu_gadget_disconnect(). > > [] notifier_call_chain+0xa4/0x128 > [] __atomic_notifier_call_chain+0x84/0x138 > [] notify_die+0xb0/0x120 > [] die+0x1f8/0x5d0 > [] __d

[PATCH v6 3/5] perf jevents: Add support for parsing perchip/percore events

2020-08-27 Thread Kajol Jain
Initially, every time we want to add new terms like chip, core thread etc, we need to create corrsponding fields in pmu_events and event struct. This patch adds an enum called 'aggr_mode_class' which store all these aggregation like perchip/percore. It also adds new field 'aggr_mode' to capture the

Re: [PATCH 1/1] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Paul Cercueil
Hi Felipe, Le jeu. 27 août 2020 à 15:58, Felipe Balbi a écrit : Hi, Paul Cercueil writes: The 'reg' value was written to a hardware register in ingenic_usb_phy_init(), while not being initialized anywhere. your patch does a lot more than fix the bug :-) Fixes: 2a6c0b82e651 ("USB: PHY

[PATCH v6 4/5] perf/tools: Pass pmu_event structure as a parameter for arch_get_runtimeparam

2020-08-27 Thread Kajol Jain
This patch adds passing of pmu_event as a parameter in function 'arch_get_runtimeparam' which can be used to get details like if the event is percore/perchip. Signed-off-by: Kajol Jain Acked-by: Ian Rogers --- tools/perf/arch/powerpc/util/header.c | 7 +-- tools/perf/util/metricgroup.c

[PATCH] MAINTAINERS: Add security docs to SECURITY CONTACT

2020-08-27 Thread Krzysztof Kozlowski
When changing the documents related to kernel security workflow, notify the security mailing list as its concerned by this. Cc: Greg Kroah-Hartman Signed-off-by: Krzysztof Kozlowski --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8107b3d5d6d

[PATCH] drm/nouveau/svm: remove set but not used 'ret'

2020-08-27 Thread Jason Yan
This addresses the following gcc warning with "make W=1": drivers/gpu/drm/nouveau/nouveau_svm.c: In function ‘nouveau_pfns_map’: drivers/gpu/drm/nouveau/nouveau_svm.c:818:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 818 | int ret; | ^~~ Reported-by: Hulk R

Re: [net] mwifiex: Increase AES key storage size to 256 bits

2020-08-27 Thread Kalle Valo
Maximilian Luz wrote: > Following commit e18696786548 ("mwifiex: Prevent memory corruption > handling keys") the mwifiex driver fails to authenticate with certain > networks, specifically networks with 256 bit keys, and repeatedly asks > for the password. The kernel log repeats the following line

Re: [PATCH] usb: atm: don't use snprintf() for sysfs attrs

2020-08-27 Thread Alex Dewar
On Thu, Aug 27, 2020 at 09:15:37AM +0200, Greg Kroah-Hartman wrote: > On Thu, Aug 27, 2020 at 08:42:06AM +0200, Rasmus Villemoes wrote: > > On 25/08/2020 00.23, Alex Dewar wrote: > > > kernel/cpu.c: don't use snprintf() for sysfs attrs > > > > > > As per the documentation (Documentation/filesystem

[PATCH] video: fbdev: remove set but not used 'ulCoreClock'

2020-08-27 Thread Jason Yan
This addresses the following gcc warning with "make W=1": drivers/video/fbdev/kyro/STG4000InitDevice.c: In function ‘SetCoreClockPLL’: drivers/video/fbdev/kyro/STG4000InitDevice.c:247:6: warning: variable ‘ulCoreClock’ set but not used [-Wunused-but-set-variable] // yanaijie fixed 247 | u32 ulC

Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-08-27 Thread Florian Weimer
* Dave Martin: > You're right that this has implications: for i386, libc probably pulls > more arguments off the stack than are really there in some situations. > This isn't a new problem though. There are already generic prctls with > fewer than 4 args that are used on x86. As originally posted

Re: [PATCH v1 4/9] powerpc/vdso: Remove unnecessary ifdefs in vdso_pagelist initialization

2020-08-27 Thread Michael Ellerman
Christophe Leroy writes: > On 08/26/2020 02:58 PM, Michael Ellerman wrote: >> Christophe Leroy writes: >>> diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c >>> index daef14a284a3..bbb69832fd46 100644 >>> --- a/arch/powerpc/kernel/vdso.c >>> +++ b/arch/powerpc/kernel/vdso.c >>>

Re: [PATCH] MAINTAINERS: Add security docs to SECURITY CONTACT

2020-08-27 Thread Krzysztof Kozlowski
On Thu, Aug 27, 2020 at 03:18:27PM +0200, Greg Kroah-Hartman wrote: > On Thu, Aug 27, 2020 at 03:13:30PM +0200, Krzysztof Kozlowski wrote: > > When changing the documents related to kernel security workflow, notify > > the security mailing list as its concerned by this. > > > > Cc: Greg Kroah-Hart

Re: [PATCH] selftests/livepatch: Do not check order when using "comm" for dmesg checking

2020-08-27 Thread Joe Lawrence
On Thu, Aug 27, 2020 at 01:07:09PM +0200, Miroslav Benes wrote: > check_result() uses "comm" to check expected results of selftests output > in dmesg. Everything works fine if timestamps in dmesg are unique. If > not, like in this example > > [ 86.844422] test_klp_callbacks_demo: pre_unpatch_cal

Re: [PATCH 1/1] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Felipe Balbi
Hi, Paul Cercueil writes: >>> @@ -172,7 +172,8 @@ static int ingenic_usb_phy_init(struct usb_phy >>> *phy) >>> return err; >>> } >>> >>> - priv->soc_info->usb_phy_init(phy); >>> + reg = priv->soc_info->usb_phy_init(phy); >>> + writel(reg, priv->base + REG_USBPCR_OFFSET);

Re: [net v3 PATCH] net: ethernet: ti: cpsw_new: fix error handling in cpsw_ndo_vlan_rx_kill_vid()

2020-08-27 Thread Murali Karicheri
Hi Dave, On 8/25/20 12:36 PM, David Miller wrote: From: Murali Karicheri Date: Mon, 24 Aug 2020 13:01:00 -0400 + ret = cpsw_ale_del_vlan(cpsw->ale, vid, 0); + if (ret) + dev_err(priv->dev, "%s: failed %d: ret %d\n", + __func__, __LINE__, ret); +

Re: [PATCH v36 12/24] x86/sgx: Add SGX_IOC_ENCLAVE_CREATE

2020-08-27 Thread Jarkko Sakkinen
On Wed, Aug 26, 2020 at 04:52:39PM +0200, Borislav Petkov wrote: > On Thu, Jul 16, 2020 at 04:52:51PM +0300, Jarkko Sakkinen wrote: > > diff --git a/Documentation/userspace-api/ioctl/ioctl-number.rst > > b/Documentation/userspace-api/ioctl/ioctl-number.rst > > index 59472cd6a11d..35f713e3a267 1006

Re: [PATCH] security/keys: use kvfree_sensitive()

2020-08-27 Thread Jarkko Sakkinen
On Thu, Aug 27, 2020 at 10:29:23AM +0300, Denis Efremov wrote: > Use kvfree_sensitive() instead of open-coding it. > > Signed-off-by: Denis Efremov Reviewed-by: Jarkko Sakkinen /Jarkko

Re: [PATCH] selftests/livepatch: Do not check order when using "comm" for dmesg checking

2020-08-27 Thread Jiri Kosina
On Thu, 27 Aug 2020, Joe Lawrence wrote: > > , "comm" fails with "comm: file 2 is not in sorted order". Suppress the > > order checking with --nocheck-order option. > > > > Signed-off-by: Miroslav Benes > > Acked-by: Joe Lawrence > > And not so important for selftests, but helpful for backpor

Re: [PATCH v6 6/6] Documentation: ACPI: Document allow-low-power-probe _DSD property

2020-08-27 Thread Sakari Ailus
On Wed, Aug 26, 2020 at 11:06:22AM -0700, Randy Dunlap wrote: > On 8/26/20 4:54 AM, Sakari Ailus wrote: > > Document the probe-low-power _DSD property and how it is used with I²C > > drivers. > > > > Signed-off-by: Sakari Ailus > > --- > > .../acpi/dsd/allow-low-power-probe.rst| 28 +

Re: [PATCH 1/2] docs: process: Add cross-link to security-bugs

2020-08-27 Thread Felipe Balbi
Hi, On Thu, Aug 27, 2020 at 1:54 PM Krzysztof Kozlowski wrote: > > The submitting patches mentions criteria for a fix to be called > "security fix". Add a link to document explaining the entire process > of handling security bugs. > > Cc: Greg KH > Cc: Marek Szyprowski > Cc: Linus Torvalds >

Re: [PATCH] ASoC: meson: cards: deal dpcm flag change

2020-08-27 Thread Jerome Brunet
On Thu 27 Aug 2020 at 14:43, Marek Szyprowski wrote: > Hi Jerome, > > On 31.07.2020 14:06, Jerome Brunet wrote: >> Commit b73287f0b074 ("ASoC: soc-pcm: dpcm: fix playback/capture checks") >> changed the meaning of dpcm_playback/dpcm_capture and now requires the >> CPU DAI BE to aligned with tho

Re: [PATCH] staging: ion: remove from the tree

2020-08-27 Thread Laura Abbott
On 8/27/20 8:36 AM, Greg Kroah-Hartman wrote: The ION android code has long been marked to be removed, now that we dma-buf support merged into the real part of the kernel. It was thought that we could wait to remove the ion kernel at a later time, but as the out-of-tree Android fork of the ion c

Re: [RFC PATCH] selinux: Add denied trace with permssion filter

2020-08-27 Thread Paul Moore
On Wed, Aug 26, 2020 at 11:06 AM peter enderborg wrote: > On 8/26/20 4:45 PM, Paul Moore wrote: > > On Wed, Aug 26, 2020 at 10:34 AM peter enderborg > > wrote: > >> On 8/26/20 3:42 PM, Paul Moore wrote: > >>> On Mon, Aug 24, 2020 at 9:23 AM Peter Enderborg > >>> wrote: > This adds tracing o

Re: [PATCH] interconnect: Show bandwidth for disabled paths as zero in debugfs

2020-08-27 Thread Georgi Djakov
Hi Matthias, Thanks for the patch! On 8/25/20 03:08, Matthias Kaehlcke wrote: > On Wed, Jul 29, 2020 at 10:50:12AM -0700, Matthias Kaehlcke wrote: >> For disabled paths the 'interconnect_summary' in debugfs currently shows >> the orginally requested bandwidths. This is confusing, since the bandwi

Re: [PATCH v11 00/11] PCI: brcmstb: enable PCIe for STB chips

2020-08-27 Thread Jim Quinlan
On Thu, Aug 27, 2020 at 2:35 AM Christoph Hellwig wrote: > > On Tue, Aug 25, 2020 at 10:40:27AM -0700, Florian Fainelli wrote: > > Hi, > > > > On 8/24/2020 12:30 PM, Jim Quinlan wrote: > >> > >> Patchset Summary: > >>Enhance a PCIe host controller driver. Because of its unusual design > >>

[PATCH][next] regulator: mt6360: fix spelling mistake: "regulaotr" -> "regulator"

2020-08-27 Thread Piyush Goyal
There are some spelling mistakes in two dev_err messages. Fix these. Signed-off-by: Piyush Goyal --- drivers/regulator/mt6360-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/mt6360-regulator.c b/drivers/regulator/mt6360-regulator.c index 89c

Re: [PATCH 21/35] arm64: mte: Add in-kernel tag fault handler

2020-08-27 Thread Andrey Konovalov
On Thu, Aug 27, 2020 at 3:10 PM Catalin Marinas wrote: > > On Thu, Aug 27, 2020 at 02:31:23PM +0200, Andrey Konovalov wrote: > > On Thu, Aug 27, 2020 at 11:54 AM Catalin Marinas > > wrote: > > > On Fri, Aug 14, 2020 at 07:27:03PM +0200, Andrey Konovalov wrote: > > > > +static int do_tag_recovery(

Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-08-27 Thread H.J. Lu
On Thu, Aug 27, 2020 at 6:19 AM Florian Weimer wrote: > > * Dave Martin: > > > You're right that this has implications: for i386, libc probably pulls > > more arguments off the stack than are really there in some situations. > > This isn't a new problem though. There are already generic prctls wi

Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-08-27 Thread Florian Weimer
* H. J. Lu: > On Thu, Aug 27, 2020 at 6:19 AM Florian Weimer wrote: >> >> * Dave Martin: >> >> > You're right that this has implications: for i386, libc probably pulls >> > more arguments off the stack than are really there in some situations. >> > This isn't a new problem though. There are alre

Re: [perf/core] 16fb162e78: WARNING:at_kernel/events/core.c:#list_add_event

2020-08-27 Thread kajoljain
On 8/27/20 2:07 PM, kernel test robot wrote: > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: 16fb162e7868b8f3c1fc09ef0d683c9554cb6404 ("[RFC] perf/core: Fixes > hung issue on perf stat command during cpu hotplug") > url: > https://github.com/0day-ci/linux

[PATCH v2 7/7] dt-bindings: phy: cadence-torrent: Update Torrent PHY bindings for generic use

2020-08-27 Thread Swapnil Jakhade
Torrent PHY can be used in different multi-link multi-protocol configurations including protocols other than DisplayPort also, such as PCIe, USB, SGMII, QSGMII etc. Update the bindings to have support for these configurations. Signed-off-by: Swapnil Jakhade --- .../bindings/phy/phy-cadence-torre

[PATCH v2 4/7] phy: cadence-torrent: Add separate regmap functions for torrent and DP

2020-08-27 Thread Swapnil Jakhade
Added separate functions for regmap initialization of torrent PHY generic registers and DP specific registers. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 99 +++ 1 file changed, 66 insertions(+), 33 deletions(-) diff --git a/drivers/phy/ca

[PATCH v2 0/7] PHY: Prepare Cadence Torrent PHY driver to support multilink configurations

2020-08-27 Thread Swapnil Jakhade
Cadence Torrent PHY is a multiprotocol PHY supporting different multilink PHY configurations including DisplayPort, PCIe, USB, SGMII, QSGMII etc. Existing Torrent PHY driver supports only DisplayPort. This patch series prepares Torrent PHY driver so that different multilink configurations can be su

[PATCH v2 5/7] phy: cadence-torrent: Check total lane count for all subnodes is within limit

2020-08-27 Thread Swapnil Jakhade
Add checking if total number of lanes for all subnodes is not greater than number of lanes supported by PHY. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/drivers/phy/cadence/p

Re: [PATCH 1/1] watchdog: remove unneeded inclusion of

2020-08-27 Thread Guenter Roeck
On 8/26/20 11:21 PM, Zhen Lei wrote: > There has been no reference to "struct sched_param" since > commit 94beddacb53c ("sched,watchdog: Convert to sched_set_fifo()"), so > there's no need to include any more, delete > it. > > Signed-off-by: Zhen Lei Reviewed-by: Guenter Roeck > --- > driver

Re: [PATCH 26/35] kasan, arm64: Enable TBI EL1

2020-08-27 Thread Vincenzo Frascino
Hi Andrey, On 8/27/20 1:43 PM, Andrey Konovalov wrote: > On Thu, Aug 27, 2020 at 1:15 PM Vincenzo Frascino > wrote: >> >> >> >> On 8/27/20 12:13 PM, Catalin Marinas wrote: >>> On Thu, Aug 27, 2020 at 12:05:55PM +0100, Vincenzo Frascino wrote: On 8/27/20 11:40 AM, Catalin Marinas wrote: >

Re: [PATCH for v5.9] mm/page_alloc: handle a missing case for memalloc_nocma_{save/restore} APIs

2020-08-27 Thread Mel Gorman
On Wed, Aug 26, 2020 at 02:12:44PM +0900, Joonsoo Kim wrote: > > > And, it requires to break current code > > > layering that order-0 page is always handled by the pcplist. I'd prefer > > > to avoid it so this patch uses different way to skip CMA page allocation > > > from the pcplist. > > > > Well

Aw: Re: [PATCH v5 3/7] drm/mediatek: disable tmds on mt2701

2020-08-27 Thread Frank Wunderlich
Hi Matthias, any opinions about the dts-changes? maybe series except the tmds-Patch get merged...so i add it only to my own repo till we find a better way? currently mainline does not support hdmi at all for the board. the tmds-patch is only a fix for specific resolutions which have a "flickeri

[PATCH v5 3/3] io_uring: allow disabling rings during the creation

2020-08-27 Thread Stefano Garzarella
This patch adds a new IORING_SETUP_R_DISABLED flag to start the rings disabled, allowing the user to register restrictions, buffers, files, before to start processing SQEs. When IORING_SETUP_R_DISABLED is set, SQE are not processed and SQPOLL kthread is not started. The restrictions registration

Re: [PATCH v2 1/2] usb typec: mt6360: Add support for mt6360 Type-C driver

2020-08-27 Thread Guenter Roeck
On 8/27/20 4:32 AM, 啟原黃 wrote: > Chunfeng Yun 於 2020年8月27日 週四 下午4:05寫道: >> >> On Thu, 2020-08-27 at 12:50 +0800, cy_huang wrote: >>> From: ChiYuan Huang >>> >>> Mediatek MT6360 is a multi-functional IC that includes USB Type-C. >>> It works with Type-C Port Controller Manager to provide USB PD >>

[PATCH net-next v3 1/2] dt-bindings: net: dp83822: Add TI dp83822 phy

2020-08-27 Thread Dan Murphy
Add a dt binding for the TI dp83822 ethernet phy device. Reviewed-by: Rob Herring Signed-off-by: Dan Murphy --- .../devicetree/bindings/net/ti,dp83822.yaml | 80 +++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/ti,dp83822.yaml dif

Re: [PATCH v3 1/3] usb typec: mt6360: Add support for mt6360 Type-C driver

2020-08-27 Thread Heikki Krogerus
On Thu, Aug 27, 2020 at 07:18:55PM +0800, cy_huang wrote: > From: ChiYuan Huang > > Mediatek MT6360 is a multi-functional IC that includes USB Type-C. > It works with Type-C Port Controller Manager to provide USB PD > and USB Type-C functionalities. > > v1 to v2 > 1. Add fix to Prevent the race

Re: [PATCH v5 09/20] drm/i915/dp: Extract drm_dp_read_mst_cap()

2020-08-27 Thread Jani Nikula
On Wed, 26 Aug 2020, Lyude Paul wrote: > Just a tiny drive-by cleanup, we can consolidate i915's code for > checking for MST support into a helper to be shared across drivers. > > v5: > * Drop !!() > * Move drm_dp_has_mst() out of header > * Change name from drm_dp_has_mst() to drm_dp_read_mst_cap

[PATCH net-next v3 2/2] net: phy: DP83822: Add ability to advertise Fiber connection

2020-08-27 Thread Dan Murphy
The DP83822 can be configured to use a Fiber connection. The strap register is read to determine if the device has been configured to use a fiber connection. With the fiber connection the PHY can be configured to detect whether the fiber connection is active by either a high signal or a low signa

Re: [PATCH v5 0/3] io_uring: add restrictions to support untrusted applications and guests

2020-08-27 Thread Jens Axboe
On 8/27/20 7:40 AM, Stefano Garzarella wrote: > v5: > - explicitly assigned enum values [Kees] > - replaced kmalloc/copy_from_user with memdup_user [kernel test robot] > - added Kees' R-b tags > > v4: > https://lore.kernel.org/io-uring/20200813153254.93731-1-sgarz...@redhat.com/ > v3: > https

Re: [PATCH 5.8 130/232] sched/uclamp: Protect uclamp fast path code with static key

2020-08-27 Thread Qais Yousef
On 08/20/20 11:19, Greg Kroah-Hartman wrote: > From: Qais Yousef > > [ Upstream commit 46609ce227039fd192e0ecc7d940bed587fd2c78 ] > > There is a report that when uclamp is enabled, a netperf UDP test > regresses compared to a kernel compiled without uclamp. > > https://lore.kernel.org/lkml/2020

[PATCH v5 17/20] tools: gpio: port gpio-hammer to v2 uAPI

2020-08-27 Thread Kent Gibson
Port the gpio-hammer tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-hammer.c | 32 +++ tools/gpio/gpio-utils.c | 119 ++- tools/gpio/gpio-utils.h | 50 +--- 3 files changed, 128 insertions(+), 73 deletions(

[PATCH v5 16/20] tools: gpio: rename nlines to num_lines

2020-08-27 Thread Kent Gibson
Rename nlines to num_lines to be consistent with other usage for fields describing the number of entries in an array. Signed-off-by: Kent Gibson --- tools/gpio/gpio-hammer.c | 26 +- tools/gpio/gpio-utils.c | 20 ++-- tools/gpio/gpio-utils.h | 6 +++---

[PATCH v5 20/20] tools: gpio: add debounce support to gpio-event-mon

2020-08-27 Thread Kent Gibson
Add support for debouncing monitored lines to gpio-event-mon. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index e50bb107ea3a..bd5ea3c

[PATCH v5 18/20] tools: gpio: port gpio-event-mon to v2 uAPI

2020-08-27 Thread Kent Gibson
Port the gpio-event-mon tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 91 +++-- 1 file changed, 47 insertions(+), 44 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index 1a303a81aee

Re: [PATCH 1/3] dt-bindings: dmaengine: Document qcom,gpi dma binding

2020-08-27 Thread Rob Herring
On Wed, Aug 26, 2020 at 10:50 PM Vinod Koul wrote: > > On 26-08-20, 08:35, Rob Herring wrote: > > On Wed, Aug 26, 2020 at 12:32 AM Vinod Koul wrote: > > > > > > On 25-08-20, 20:21, Vinod Koul wrote: > > > > Hey Rob, > > > > > > > > On 24-08-20, 11:40, Rob Herring wrote: > > > > > On Mon, 24 Aug 2

[PATCH V2 topic-edac-5.1 0/2] EDAC: Add support for reporting the non-standard errors to vendor drivers

2020-08-27 Thread Shiju Jose
Presently non-standard HW errors are not reported to the vendor drivers for the recovery. This patch set adds support for reporting the non-standard errors to the registered vendor drivers. Also adds HIP08 EDAC driver, for the recovery of the PCIe OEM errors on HiSilicon HIP08. RFC -> V2 1.Add er

[PATCH v5 15/20] tools: gpio: port gpio-watch to v2 uAPI

2020-08-27 Thread Kent Gibson
Port the gpio-watch tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-watch.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/gpio/gpio-watch.c b/tools/gpio/gpio-watch.c index 5cea24fddfa7..6f048350a27e 100644 --- a/tools/gpio

[PATCH v2 1/1] EDAC/ghes: Fix for NULL pointer dereference in ghes_edac_register()

2020-08-27 Thread Shiju Jose
After the 'commit b9cae27728d1 ("EDAC/ghes: Scan the system once on driver init")' applied, following error has occurred in the ghes_edac_register() when CONFIG_DEBUG_TEST_DRIVER_REMOVE is enabled. The null ghes_hw.dimms pointer in the mci_for_each_dimm() of ghes_edac_register() caused the error.

[PATCH net-next] netfilter: xt_HMARK: Use ip_is_fragment() helper

2020-08-27 Thread YueHaibing
Use ip_is_fragment() to simpify code. Signed-off-by: YueHaibing --- net/netfilter/xt_HMARK.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/xt_HMARK.c b/net/netfilter/xt_HMARK.c index 713fb38541df..8928ec56c388 100644 --- a/net/netfilter/xt_HMARK.c +++ b/net/ne

[PATCH v5 19/20] tools: gpio: add multi-line monitoring to gpio-event-mon

2020-08-27 Thread Kent Gibson
Extend gpio-event-mon to support monitoring multiple lines. This would require multiple lineevent requests to implement using uAPI v1, but can be performed with a single line request using uAPI v2. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 45 --

Re: [PATCH v5 0/3] io_uring: add restrictions to support untrusted applications and guests

2020-08-27 Thread Jens Axboe
On 8/27/20 8:10 AM, Stefano Garzarella wrote: > On Thu, Aug 27, 2020 at 07:50:44AM -0600, Jens Axboe wrote: >> On 8/27/20 7:40 AM, Stefano Garzarella wrote: >>> v5: >>> - explicitly assigned enum values [Kees] >>> - replaced kmalloc/copy_from_user with memdup_user [kernel test robot] >>> - added

Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-08-27 Thread H.J. Lu
On Thu, Aug 27, 2020 at 6:36 AM Florian Weimer wrote: > > * H. J. Lu: > > > On Thu, Aug 27, 2020 at 6:19 AM Florian Weimer wrote: > >> > >> * Dave Martin: > >> > >> > You're right that this has implications: for i386, libc probably pulls > >> > more arguments off the stack than are really there i

Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-08-27 Thread H.J. Lu
On Thu, Aug 27, 2020 at 7:07 AM H.J. Lu wrote: > > On Thu, Aug 27, 2020 at 6:36 AM Florian Weimer wrote: > > > > * H. J. Lu: > > > > > On Thu, Aug 27, 2020 at 6:19 AM Florian Weimer wrote: > > >> > > >> * Dave Martin: > > >> > > >> > You're right that this has implications: for i386, libc probab

Re: [PATCH v5 2/3] io_uring: add IOURING_REGISTER_RESTRICTIONS opcode

2020-08-27 Thread Stefano Garzarella
On Thu, Aug 27, 2020 at 07:49:45AM -0600, Jens Axboe wrote: > On 8/27/20 7:40 AM, Stefano Garzarella wrote: > > @@ -6414,6 +6425,19 @@ static int io_init_req(struct io_ring_ctx *ctx, > > struct io_kiocb *req, > > if (unlikely(sqe_flags & ~SQE_VALID_FLAGS)) > > return -EINVAL; > >

Re: [PATCH v5 0/3] io_uring: add restrictions to support untrusted applications and guests

2020-08-27 Thread Stefano Garzarella
On Thu, Aug 27, 2020 at 07:50:44AM -0600, Jens Axboe wrote: > On 8/27/20 7:40 AM, Stefano Garzarella wrote: > > v5: > > - explicitly assigned enum values [Kees] > > - replaced kmalloc/copy_from_user with memdup_user [kernel test robot] > > - added Kees' R-b tags > > > > v4: > > https://lore.ke

[PATCH v5 00/20] gpio: cdev: add uAPI v2

2020-08-27 Thread Kent Gibson
This patchset defines and implements a new version of the GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add support for debounce, event sequence numbers, and allow for requested lines with different configurations. It provides some future proofing by adding optional configuration f

[PATCH v5 03/20] gpio: uapi: define GPIO_MAX_NAME_SIZE for array sizes

2020-08-27 Thread Kent Gibson
Replace constant array sizes with a macro constant to clarify the source of array sizes, provide a place to document any constraints on the size, and to simplify array sizing in userspace if constructing structs from their composite fields. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.

[PATCH v5 02/20] gpiolib: cdev: replace strncpy with strscpy

2020-08-27 Thread Kent Gibson
Replace usage of strncpy with strscpy to remove -Wstringop-truncation warnings. The structs being populated are zeroed, to prevent stack leakage as they are returned to userspace, so strscpy performs the equivalent function without the warnings. Reported-by: kernel test robot Signed-off-by: Kent

[PATCH v5 01/20] gpiolib: cdev: desc_to_lineinfo should set info offset

2020-08-27 Thread Kent Gibson
Set the value of the line info offset in desc_to_lineinfo, rather than relying on it being passed in the info. This makes the function behave as you would expect from the name - it generates the line info corresponding to a given GPIO desc. Signed-off-by: Kent Gibson --- There are some instance

Re: [PATCH 0/4] mm: Simplfy cow handling

2020-08-27 Thread Peter Xu
On Fri, Aug 21, 2020 at 07:49:54PM -0400, Peter Xu wrote: > This is a small series that I picked up from Linus's suggestion [0] to > simplify > cow handling (and also more strict) by checking against page refcounts rather > than mapcounts. > > I'm CCing the author and reviewer of commit 52d1e606e

RE: [PATCH] hwrng: cctrn - Simplify with dev_err_probe()

2020-08-27 Thread Hadar Gat
Hi Krzysztof, > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/char/hw_random/cctrng.c | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) > >

[PATCH] clk: qcom: lpass: Correct goto target in lpass_core_sc7180_probe()

2020-08-27 Thread Jing Xiangfeng
lpass_core_sc7180_probe() misses to call pm_clk_destroy() and pm_runtime_disable() in error paths. Correct goto target to fix it. This issue is found by code inspection. Signed-off-by: Jing Xiangfeng --- drivers/clk/qcom/lpasscorecc-sc7180.c | 7 --- 1 file changed, 4 insertions(+), 3 deleti

Re: [RFC PATCH] selinux: Add denied trace with permssion filter

2020-08-27 Thread peter enderborg
On 8/27/20 3:30 PM, Paul Moore wrote: > On Wed, Aug 26, 2020 at 11:06 AM peter enderborg > wrote: >> On 8/26/20 4:45 PM, Paul Moore wrote: >>> On Wed, Aug 26, 2020 at 10:34 AM peter enderborg >>> wrote: On 8/26/20 3:42 PM, Paul Moore wrote: > On Mon, Aug 24, 2020 at 9:23 AM Peter Enderbo

Re: [PATCH 32/35] kasan, arm64: print report from tag fault handler

2020-08-27 Thread Catalin Marinas
On Thu, Aug 27, 2020 at 02:34:31PM +0200, Andrey Konovalov wrote: > On Thu, Aug 27, 2020 at 12:48 PM Catalin Marinas > wrote: > > On Fri, Aug 14, 2020 at 07:27:14PM +0200, Andrey Konovalov wrote: > > > diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c > > > index c62c8ba85c0e..cf00b394256

NTP adjustments to CLOCK_MONATONIC

2020-08-27 Thread David Laight
I've just noticed some strange behaviour of some code that is comparing CLOCK_MONATONIC to a second (external) clock source. Normally the difference is between +/-200ns in 10ms. Which is well within the ppm errors of the crystals. However for around 90 seconds after system boot the error was mass

Re: [PATCH] drm/radeon: Prefer lower feedback dividers

2020-08-27 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Aug 27, 2020 at 7:18 AM Christian König wrote: > > Am 25.08.20 um 19:33 schrieb Kai-Heng Feng: > > Commit 2e26ccb119bd ("drm/radeon: prefer lower reference dividers") > > fixed screen flicker for HP Compaq nx9420 but breaks other laptops like > > Asus X50SL. > > >

Re: [PATCH v10 02/16] s390/vfio-ap: use new AP bus interface to search for queue devices

2020-08-27 Thread Tony Krowiak
On 8/25/20 6:13 AM, Cornelia Huck wrote: On Fri, 21 Aug 2020 15:56:02 -0400 Tony Krowiak wrote: This patch refactor's the vfio_ap device driver to use the AP bus's s/refactor's/refactors/ Of course, what was I thinking?:) ap_get_qdev() function to retrieve the vfio_ap_queue struct cont

Re: [PATCH 5/7 net-next] vxlan: add VXLAN_NL2FLAG macro

2020-08-27 Thread David Miller
From: Michal Kubecek Date: Thu, 27 Aug 2020 11:50:25 +0200 > On Thu, Aug 27, 2020 at 08:50:19AM +0200, Fabian Frederick wrote: >> Replace common flag assignment with a macro. >> This could yet be simplified with changelink/supported but it would >> remove clarity >> >> Signed-off-by: Fabian Fred

RE: [PATCH V2 topic-edac-5.1 0/2] EDAC: Add support for reporting the non-standard errors to vendor drivers

2020-08-27 Thread Shiju Jose
Sorry. Please ignore this. >-Original Message- >From: linux-edac-ow...@vger.kernel.org [mailto:linux-edac- >ow...@vger.kernel.org] On Behalf Of Shiju Jose >Sent: 27 August 2020 15:01 >To: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org; b...@alien8.de; >mche...@kernel.org; tony.l.

Re: [PATCH 2/8] mm: Use find_get_swap_page in memcontrol

2020-08-27 Thread Johannes Weiner
On Thu, Aug 27, 2020 at 01:59:41PM +0100, Matthew Wilcox wrote: > On Wed, Aug 26, 2020 at 10:20:02AM -0400, Johannes Weiner wrote: > > The refactor makes sense to me, but the name is confusing. We're not > > looking for a swap page, we're primarily looking for a file page in > > the page cache mapp

[PATCH 2/2] perf tools: Call test_attr__open directly

2020-08-27 Thread Jiri Olsa
There's no longer need to have test_attr__open inside sys_perf_event_open call, because both record and stat call evsel__open_cpu, so we can call it directly from there and not polute perf-sys.h header. Signed-off-by: Jiri Olsa --- tools/perf/perf-sys.h | 22 ++ tools/perf/

Re: [PATCH v5 13/20] drm/i915/dp: Extract drm_dp_read_downstream_info()

2020-08-27 Thread Jani Nikula
On Wed, 26 Aug 2020, Lyude Paul wrote: > We're going to be doing the same probing process in nouveau for > determining downstream DP port capabilities, so let's deduplicate the > work by moving i915's code for handling this into a shared helper: > drm_dp_read_downstream_info(). > > Note that when

Re: Aw: Re: [PATCH v5 3/7] drm/mediatek: disable tmds on mt2701

2020-08-27 Thread Matthias Brugger
On 27/08/2020 15:41, Frank Wunderlich wrote: Hi Matthias, any opinions about the dts-changes? they look good to me. maybe series except the tmds-Patch get merged...so i add it only to my own repo till we find a better way? currently mainline does not support hdmi at all for the board. t

[PATCH] fs/cachefiles: Drop superfluous readpages aops NULL check

2020-08-27 Thread Takashi Iwai
After the recent actions to convert readpages aops to readahead, the NULL checks of readpages aops in cachefiles_read_or_alloc_page() may hit falsely. More badly, it's an ASSERT() call, and this panics. Drop the superfluous NULL checks for fixing this regression. BugLink: https://bugzilla.kernel

Re: [PATCH v2 5/7][next] printk: ringbuffer: add finalization/extension support

2020-08-27 Thread John Ogness
Hi Petr, Thanks for the review. Most of your suggested changes are fine and I'll integrate them for the next version. Here a few comments on some open issues. On 2020-08-27, Petr Mladek wrote: >> +static struct prb_desc *desc_reopen_last(struct prb_desc_ring *desc_ring, >> +

Re: [PATCH 1/3] fpga manager: xilinx-spi: remove stray comment

2020-08-27 Thread Luca Ceresoli
Hi Moritz, On 20/08/20 06:11, Moritz Fischer wrote: > On Mon, Aug 17, 2020 at 06:59:09PM +0200, Luca Ceresoli wrote: >> Remove comment committed by mistake. >> >> Fixes: dd2784c01d93 ("fpga manager: xilinx-spi: check INIT_B pin during >> write_init") >> Signed-off-by: Luca Ceresoli >> --- >> dr

Re: [PATCH 2/3] fpga manager: xilinx-spi: provide better diagnostics on programming failure

2020-08-27 Thread Luca Ceresoli
Hi Tom, On 19/08/20 18:32, Luca Ceresoli wrote: > On 18/08/20 16:21, Tom Rix wrote: >> >> On 8/18/20 3:20 AM, Luca Ceresoli wrote: >>> [a question for GPIO maintainers below] >>> >>> Hi Tom, >>> >>> thanks for your review! >>> >>> On 17/08/20 20:15, Tom Rix wrote: The other two patches are fi

[NAK] Re: [PATCH] fs: Optimized fget to improve performance

2020-08-27 Thread Al Viro
On Thu, Aug 27, 2020 at 06:19:44PM +0800, Shaokun Zhang wrote: > From: Yuqi Jin > > It is well known that the performance of atomic_add is better than that of > atomic_cmpxchg. > The initial value of @f_count is 1. While @f_count is increased by 1 in > __fget_files, it will go through three phase

<    1   2   3   4   5   6   7   8   9   10   >