[PATCH RFC 2/3] io_uring: add IOURING_REGISTER_RESTRICTIONS opcode

2020-07-10 Thread Stefano Garzarella
The new io_uring_register(2) IOURING_REGISTER_RESTRICTIONS opcode permanently installs a feature whitelist on an io_ring_ctx. The io_ring_ctx can then be passed to untrusted code with the knowledge that only operations present in the whitelist can be executed. The whitelist approach ensures that n

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

2020-07-10 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 1/2] iommu/intel: Avoid SAC address trick for PCIe devices

2020-07-10 Thread Joerg Roedel
On Wed, Jul 08, 2020 at 12:32:41PM +0100, Robin Murphy wrote: > For devices stuck behind a conventional PCI bus, saving extra cycles at > 33MHz is probably fairly significant. However since native PCI Express > is now the norm for high-performance devices, the optimisation to always > prefer 32-bit

Re: [PATCH v2 2/2] soc: mediatek: add mtk-devapc driver

2020-07-10 Thread Chun-Kuang Hu
Hi, Neal: Neal Liu 於 2020年7月10日 週五 上午11:23寫道: > > Hi Chun-Kuang, > > Thanks for your review. > > On Thu, 2020-07-09 at 21:01 +0800, Chun-Kuang Hu wrote: > > Hi, Neal: > > > > Neal Liu 於 2020年7月9日 週四 下午5:13寫道: > > > > > > MediaTek bus fabric provides TrustZone security support and data > > > prot

Re: [PATCH 2/4] mfd: mt6360: Remove handle_post_irq callback function

2020-07-10 Thread Matthias Brugger
On 07/07/2020 12:30, Gene Chen wrote: From: Gene Chen Remove handle_post_irq which is used to retrigger irq. Set irq level low trigger to keep irq always be handled. Signed-off-by: Gene Chen --- drivers/mfd/mt6360-core.c | 25 - include/linux/mfd/mt6360.h | 6 +

Re: [PATCH] SCSI RDMA PROTOCOL (SRP) TARGET: Replace HTTP links with HTTPS ones

2020-07-10 Thread Bart Van Assche
On 2020-07-09 12:48, Alexander A. Klimov wrote: > diff --git a/drivers/infiniband/ulp/srpt/Kconfig > b/drivers/infiniband/ulp/srpt/Kconfig > index 4b5d9b792cfa..f63b34d9ae32 100644 > --- a/drivers/infiniband/ulp/srpt/Kconfig > +++ b/drivers/infiniband/ulp/srpt/Kconfig > @@ -10,4 +10,4 @@ config IN

Re: [PATCH v2 1/2] video: fbdev: amifb: add FIXME about dead APUS support

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 6/2/20 2:03 PM, Geert Uytterhoeven wrote: > On Tue, Jun 2, 2020 at 1:50 PM Bartlomiej Zolnierkiewicz > wrote: >> On 5/14/20 10:21 PM, Geert Uytterhoeven wrote: >>> These #ifdefs are relics from APUS (Amiga Power-Up System), which >>> added a PPC board. APUS support was killed off a long time

Re: [PATCH v3] video: fbdev: ssd1307fb: Added support to Column offset

2020-07-10 Thread Bartlomiej Zolnierkiewicz
[ added dri-devel ML to Cc: ] Hi, Sorry for the delay. On 5/13/20 8:48 PM, Rodrigo Alencar wrote: > From: Rodrigo Rolim Mendes de Alencar > > This patch provides support for displays like VGM128064B0W10, > which requires a column offset of 2, i.e., its segments starts > in SEG2 and ends in S

Re: [PATCH v2 2/2] video: fbdev: amifb: add FIXMEs about {put,get}_user() failures

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 6/2/20 2:03 PM, Geert Uytterhoeven wrote: > On Tue, Jun 2, 2020 at 1:52 PM Bartlomiej Zolnierkiewicz > wrote: >> Since we lack the hardware (or proper emulator setup) for >> testing needed changes add FIXMEs to document the issues >> (so at least they are not forgotten). >> >> Cc: Al Viro >

Re: [PATCH][next] fbcon: Use array3_size() helper in scr_memcpyw()

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 6/16/20 1:15 AM, Gustavo A. R. Silva wrote: > Use array3_size() helper instead of the open-coded version in scr_memcpyw() > and scr_memsetw(). These sorts of multiplication factors need to be wrapped > in array3_size(). > > This issue was found with the help of Coccinelle and, audited and fix

Re: [PATCH][next] fbdev/fb.h: Use struct_size() helper in kzalloc()

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 6/20/20 1:27 PM, Sam Ravnborg wrote: > Hi Gustavo. > > On Wed, Jun 17, 2020 at 12:56:47PM -0500, Gustavo A. R. Silva wrote: >> Make use of the struct_size() helper instead of an open-coded version >> in order to avoid any potential type mistakes. >> >> This code was detected with the help of

Re: [PATCH][next] fbdev/fb.h: Use struct_size() helper in kzalloc()

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 6/17/20 7:56 PM, Gustavo A. R. Silva wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes. > > This code was detected with the help of Coccinelle and, audited and > fixed manually. > > Signed-off-by: Gustavo A. R. Silv

Re: [PATCH] video: fbdev: savage: fix memory leak on error handling path in probe

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 6/19/20 6:21 PM, Evgeny Novikov wrote: > savagefb_probe() calls savage_init_fb_info() that can successfully > allocate memory for info->pixmap.addr but then fail when > fb_alloc_cmap() fails. savagefb_probe() goes to label failed_init and > does not free allocated memory. It is not valid to go

Re: [PATCH] omapfb: dss: Fix max fclk divider for omap36xx

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 6/30/20 8:26 PM, Adam Ford wrote: > The drm/omap driver was fixed to correct an issue where using a > divider of 32 breaks the DSS despite the TRM stating 32 is a valid > number. Through experimentation, it appears that 31 works, and > it is consistent with the value used by the drm/omap driv

Re: [PATCH] fbdev: da8xx-fb: go to proper label on error handling paths in probe

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 7/2/20 6:05 PM, Evgeny Novikov wrote: > fb_probe() can successfully allocate a new frame buffer, but then fail > to perform some operations with regulator. In these cases fb_probe() > goes to label err_pm_runtime_disable where the frame buffer is not > released. The patch makes fb_probe() to g

Re: [PATCH] omapfb: fix multiple reference count leaks due to pm_runtime_get_sync

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 6/14/20 5:05 AM, Aditya Pakki wrote: > On calling pm_runtime_get_sync() the reference count of the device > is incremented. In case of failure, decrement the > reference count before returning the error. > > Signed-off-by: Aditya Pakki Applied to drm-misc-next tree, thanks. Best regards, -

[PATCH v2 bpf-next 1/2] bpf: use dedicated bpf_trace_printk event instead of trace_printk()

2020-07-10 Thread Alan Maguire
The bpf helper bpf_trace_printk() uses trace_printk() under the hood. This leads to an alarming warning message originating from trace buffer allocation which occurs the first time a program using bpf_trace_printk() is loaded. We can instead create a trace event for bpf_trace_printk() and enable i

[PATCH v2 bpf-next 2/2] selftests/bpf: add selftests verifying bpf_trace_printk() behaviour

2020-07-10 Thread Alan Maguire
Simple selftests that verifies bpf_trace_printk() returns a sensible value and tracing messages appear. Signed-off-by: Alan Maguire --- .../selftests/bpf/prog_tests/trace_printk.c| 74 ++ tools/testing/selftests/bpf/progs/trace_printk.c | 21 ++ 2 files changed,

[PATCH v2] efi: avoid error message when booting under Xen

2020-07-10 Thread Juergen Gross
efifb_probe() will issue an error message in case the kernel is booted as Xen dom0 from UEFI as EFI_MEMMAP won't be set in this case. Avoid that message by calling efi_mem_desc_lookup() only if EFI_MEMMAP is set. Fixes: 38ac0287b7f4 ("fbdev/efifb: Honour UEFI memory map attributes when mapping th

Re: [PATCH] video: fbdev: neofb: fix memory leak in neo_scan_monitor()

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 6/30/20 9:54 PM, Evgeny Novikov wrote: > neofb_probe() calls neo_scan_monitor() that can successfully allocate a > memory for info->monspecs.modedb and proceed to case 0x03. There it does > not free the memory and returns -1. neofb_probe() goes to label > err_scan_monitor, thus, it does not fr

Re: [PATCH] fbdev: sm712fb: set error code in probe

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 7/6/20 5:53 PM, Evgeny Novikov wrote: > If smtcfb_pci_probe() does not detect a valid chip it cleans up > everything and returns 0. This can result in various bad things later. > The patch sets the error code on the corresponding path. > > Found by Linux Driver Verification project (linuxtest

[PATCH v2 bpf-next 0/2] bpf: fix use of trace_printk() in BPF

2020-07-10 Thread Alan Maguire
Steven suggested a way to resolve the appearance of the warning banner that appears as a result of using trace_printk() in BPF [1]. Applying the patch and testing reveals all works as expected; we can call bpf_trace_printk() and see the trace messages in /sys/kernel/debug/tracing/trace_pipe and no

Re: a question of split_huge_page

2020-07-10 Thread Alex Shi
在 2020/7/10 下午6:33, Kirill A. Shutemov 写道: > On Fri, Jul 10, 2020 at 12:51:58PM +0800, Alex Shi wrote: >> >> >> 在 2020/7/10 上午12:07, Kirill A. Shutemov 写道: >>> Right, and it's never got removed from LRU during the split. The tail >>> pages have to be added to LRU because they now separate from t

Re: [PATCH 3/4] mfd: mt6360: Fix flow which is used to check ic exist

2020-07-10 Thread Matthias Brugger
On 07/07/2020 12:30, Gene Chen wrote: From: Gene Chen Fix flow which is used to check ic exist Signed-off-by: Gene Chen --- drivers/mfd/mt6360-core.c | 28 +++- include/linux/mfd/mt6360.h | 8 2 files changed, 23 insertions(+), 13 deletions(-) diff -

Re: [PATCH] video: fbdev: vt8623fb: Constify static vga_regsets

2020-07-10 Thread Bartlomiej Zolnierkiewicz
On 7/1/20 11:02 PM, Rikard Falkeborn wrote: > These are not modified so make them const to allow the compiler to put > them in read-only memory. > > Before: >textdata bss dec hex filename > 255097928 64 3350182dd drivers/video/fbdev/vt8623fb.o > > After: >

Re: [PATCH v2] efi: avoid error message when booting under Xen

2020-07-10 Thread Ard Biesheuvel
On Fri, 10 Jul 2020 at 17:24, Juergen Gross wrote: > > efifb_probe() will issue an error message in case the kernel is booted > as Xen dom0 from UEFI as EFI_MEMMAP won't be set in this case. Avoid > that message by calling efi_mem_desc_lookup() only if EFI_MEMMAP is set. > > Fixes: 38ac0287b7f4 ("

Re: [PATCH v3 00/16] Allwinner A100 Initial support

2020-07-10 Thread Maxime Ripard
Hi, On Wed, Jul 08, 2020 at 03:19:26PM +0800, Frank Lee wrote: > This patch set adds initial support for allwinner a100 soc, > which is a 64-bit tablet chip. > > v3: > -Add pmu and nmi support > -Add read data mask for calibration > -Code style > -Some trivial things in yaml files > > v2: > -Som

Re: [PATCH v4 08/17] perf: util: add general function to parse sublevel options

2020-07-10 Thread Namhyung Kim
On Fri, Jul 10, 2020 at 10:44 PM Changbin Du wrote: > > This factors out a general function perf_parse_sublevel_options() to parse > sublevel options. The 'sublevel' options is something like the '--debug' > options which allow more sublevel options. > > Signed-off-by: Changbin Du > > --- > v2: a

Re: [PATCH v8 03/14] media: rkisp1: Add user space ABI definitions

2020-07-10 Thread Dafna Hirschfeld
On 10.07.20 15:36, Laurent Pinchart wrote: Hi Dafna, On Fri, Jul 10, 2020 at 02:59:36PM +0200, Dafna Hirschfeld wrote: On 15.08.19 20:46, Laurent Pinchart wrote: On Tue, Jul 30, 2019 at 03:42:45PM -0300, Helen Koike wrote: From: Jeffy Chen Add the header for userspace Signed-off-by: Jef

Re: [PATCH v8 00/12] Introduce CAP_PERFMON to secure system performance monitoring and observability

2020-07-10 Thread Alexey Budankov
Hi Ravi, On 10.07.2020 16:31, Ravi Bangoria wrote: > Hi Alexey, > >> Currently access to perf_events, i915_perf and other performance >> monitoring and observability subsystems of the kernel is open only for >> a privileged process [1] with CAP_SYS_ADMIN capability enabled in the >> process eff

[PATCH v5 0/4] nvmem: qfprom: Patches for fuse blowing on Qualcomm SoCs

2020-07-10 Thread Douglas Anderson
This series enables blowing of fuses on Qualcomm SoCs by extending the existing qfprom driver with write support. A few notes: - Though I don't have any firsthand knowledge of it, it's my understanding that these changes could be used on any Qualcomm SoC. However, it's likely not very useful o

[PATCH v5 3/4] nvmem: qfprom: Add fuse blowing support

2020-07-10 Thread Douglas Anderson
From: Ravi Kumar Bokka This patch adds support for blowing fuses to the qfprom driver if the required properties are defined in the device tree. Signed-off-by: Ravi Kumar Bokka Signed-off-by: Douglas Anderson --- Changes in v5: - QFPROM_FUSE_BLOW_POLL_US 10 => 100 - QFPROM_FUSE_BLOW_TIMEOUT_U

Re: [PATCH v1] regmap: Switch to use fwnode instead of OF one

2020-07-10 Thread Andy Shevchenko
On Fri, Jul 10, 2020 at 05:15:27PM +0300, Andy Shevchenko wrote: > On Fri, Jul 10, 2020 at 5:13 PM Andy Shevchenko > wrote: > > > > On Fri, Jul 10, 2020 at 4:36 PM Mark Brown wrote: > > > > > > On Fri, Jul 10, 2020 at 01:08:56PM +0100, Mark Brown wrote: > > > > On Fri, Jul 10, 2020 at 02:46:22PM

[PATCH v5 1/4] dt-bindings: nvmem: qfprom: Convert to yaml

2020-07-10 Thread Douglas Anderson
From: Ravi Kumar Bokka This switches the bindings over from txt to yaml. Signed-off-by: Ravi Kumar Bokka Signed-off-by: Douglas Anderson Reviewed-by: Rob Herring --- Changes in v5: None Changes in v4: - Maintainer now listed as Srinivas. - Example under "soc" to get #address-cells and #size-

[PATCH v5 4/4] arm64: dts: qcom: sc7180: Add properties to qfprom for fuse blowing

2020-07-10 Thread Douglas Anderson
From: Ravi Kumar Bokka This patch adds properties to the qfprom node to enable fuse blowing. Signed-off-by: Ravi Kumar Bokka Signed-off-by: Douglas Anderson --- Presumably this patch to the device tree file should go through the Qualcomm tree. Now that bindings have been reviewed by Rob it co

[PATCH v5 2/4] dt-bindings: nvmem: Add properties needed for blowing fuses

2020-07-10 Thread Douglas Anderson
From: Ravi Kumar Bokka On some systems it's possible to actually blow the fuses in the qfprom from the kernel. Add properties to support that. NOTE: Whether this is possible depends on the BIOS settings and whether the kernel has permissions here, so not all boards will be able to blow fuses in

[PATCH v2] vt: Reject zero-sized screen buffer size.

2020-07-10 Thread Tetsuo Handa
syzbot is reporting general protection fault in do_con_write() [1] caused by vc->vc_screenbuf == ZERO_SIZE_PTR caused by vc->vc_screenbuf_size == 0 caused by vc->vc_cols == vc->vc_rows == vc->vc_size_row == 0 being passed to ioctl(FBIOPUT_VSCREENINFO) request on /dev/fb0 , for gotoxy(vc, 0, 0) fro

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

2020-07-10 Thread Dan Murphy
Add a dt binding for the TI dp83822 ethernet phy device. CC: 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 diff --git a

Re: [PATCH] iommu: Remove unused IOMMU_SYS_CACHE_ONLY flag

2020-07-10 Thread Will Deacon
On Fri, Jul 10, 2020 at 04:15:32PM +0200, Joerg Roedel wrote: > On Fri, Jul 10, 2020 at 02:05:27PM +0100, Will Deacon wrote: > > Ah, I'd already got this queued for 5.9: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/log/?h=for-joerg/arm-smmu/updates > > > > and I've queue

[PATCH net-next v2 0/2] DP83822 Fiber enablement

2020-07-10 Thread Dan Murphy
Hello The DP83822 Ethernet PHY has the ability to connect via a Fiber port. The derivative PHYs DP83825 and DP83826 do not have this ability. In fiber mode the DP83822 disables auto negotiation and has a fixed 100Mbps speed with support for full or half duplex modes. A devicetree binding was add

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

2020-07-10 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

[GIT PULL] arm64 fixes for -rc5

2020-07-10 Thread Will Deacon
Hi Linus, Please pull this unfortunately large collection of arm64 fixes for -rc5. Some of this is absolutely trivial, but the alternatives, vDSO and CPU errata workaround fixes are significant. At least people are finding and fixing these things, I suppose. Summary in the tag. Cheers, Will --

Re: [ANNOUNCE][CFP] Kernel Dependability & Assurance Micro Conference - LPC 2020

2020-07-10 Thread Shuah Khan
On 7/9/20 2:58 PM, Shuah Khan wrote: + de...@lists.elisa.tech This is the call for proposals for the Kernel Dependability & Assurance Micro Conference at the Linux Plumbers Conference 2020. It will take place online during the Linux Plumbers Conference on August 24th-28th, 2020. The Kernel De

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Krzysztof Kozlowski
On Fri, Jul 10, 2020 at 03:00:37PM +0100, Lukasz Luba wrote: > > > On 7/10/20 2:49 PM, Bartlomiej Zolnierkiewicz wrote: > > > > On 7/10/20 2:56 PM, Lukasz Luba wrote: > > > > > > > > > On 7/10/20 1:45 PM, Krzysztof Kozlowski wrote: > > > > On Fri, Jul 10, 2020 at 09:34:45AM +0100, Lukasz Luba

Re: [PATCH v3 6/9] drm/bridge: ti-sn65dsi86: Use 18-bit DP if we can

2020-07-10 Thread Doug Anderson
Hi, On Thu, Jul 9, 2020 at 11:15 PM Steev Klimaszewski wrote: > > Hi, > > On 7/9/20 11:12 PM, Doug Anderson wrote: > >> root@c630:~# bus=$(i2cdetect -l | grep sn65 | sed > >> 's/i2c-\([0-9]*\).*$/\1/') > >> root@c630:~# i2cdump ${bus} 0x50 i > edid > >> WARNING! This program can confuse your I2C

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Krzysztof Kozlowski
On Fri, Jul 10, 2020 at 02:41:28PM +0100, Lukasz Luba wrote: > > > On 7/10/20 2:19 PM, Krzysztof Kozlowski wrote: > > On Fri, Jul 10, 2020 at 03:13:18PM +0200, Marek Szyprowski wrote: > In such case, maybe as you said, let's switch to polling mode > > unconditionally? > > I can make happen that

[PATCH for-next v2 2/2] dt-bindings: tas2770: Convert tas2770 binding to yaml

2020-07-10 Thread Dan Murphy
Convert the tas2770 binding to yaml format. Add in the reset-gpio to the binding as it is in the code but not documented in the binding. Signed-off-by: Dan Murphy --- .../devicetree/bindings/sound/tas2770.txt | 37 - .../devicetree/bindings/sound/tas2770.yaml| 76

[PATCH for-next v2 1/2] ASoC: tas2770: Fix reset gpio property name

2020-07-10 Thread Dan Murphy
Fix the reset property name when allocating the GPIO descriptor. The gpiod_get_optional appends either the -gpio or -gpios suffix to the name. Fixes: 1a476abc723e6 ("tas2770: add tas2770 smart PA kernel driver") Signed-off-by: Dan Murphy --- sound/soc/codecs/tas2770.c | 3 +-- 1 file changed, 1

Re: [PATCH] MAINTAIERS: Add John Ogness as printk reviewer

2020-07-10 Thread Sergey Senozhatsky
On (20/07/10 11:44), Petr Mladek wrote: > John Ogness has started major rework of the printk code. Add him > as reviewer so that he is aware of all other coming changes and > could influence their integration. > > Signed-off-by: Petr Mladek Acked-by: Sergey Senozhatsky -ss

[RFC PATCH] irqchip/gic: Implement irq_chip->irq_retrigger()

2020-07-10 Thread Valentin Schneider
While digging around IRQCHIP_EOI_IF_HANDLED and irq/resend.c, it has come to my attention that the IRQ resend situation seems a bit precarious for the GIC(s). Below is a (somewhat structured) dump of my notes/thoughts about that. IRQCHIP_EOI_IF_HANDLED == If the irqchip doesn'

Re: [PATCH v9 1/2] PCI: xilinx-cpm: Add YAML schemas for Versal CPM Root Port

2020-07-10 Thread Rob Herring
On Tue, Jun 16, 2020 at 6:57 AM Bharat Kumar Gogada wrote: > > Add YAML schemas documentation for Versal CPM Root Port driver. > > Signed-off-by: Bharat Kumar Gogada > --- > .../devicetree/bindings/pci/xilinx-versal-cpm.yaml | 99 > ++ > 1 file changed, 99 insertions(+) > c

Re: [PATCH 3/5] vfio/pci: add qat devices to blocklist

2020-07-10 Thread Giovanni Cabiddu
On Wed, Jul 01, 2020 at 04:28:12PM -0500, Bjorn Helgaas wrote: > On Wed, Jul 01, 2020 at 12:03:00PM +0100, Giovanni Cabiddu wrote: > > The current generation of Intel® QuickAssist Technology devices > > are not designed to run in an untrusted environment because of the > > following issues reported

[PATCH V2 00/12] perf intel-pt: Add support for decoding FUP/TIP only

2020-07-10 Thread Adrian Hunter
Hi Here are some fixes and small improvements for Intel PT. Changes in V2: For d/e flags, use +/- alphabetic options instead of numbers Update help text Improve documentation Adrian Hunter (12): perf intel-pt: Fix FUP packet state perf intel-pt: Fix duplicate

[PATCH V2 01/12] perf intel-pt: Fix FUP packet state

2020-07-10 Thread Adrian Hunter
While walking code towards a FUP ip, the packet state is INTEL_PT_STATE_FUP or INTEL_PT_STATE_FUP_NO_TIP. That was mishandled resulting in the state becoming INTEL_PT_STATE_IN_SYNC prematurely. The result was an occasional lost EXSTOP event. Signed-off-by: Adrian Hunter Cc: sta...@vger.kernel.org

[PATCH V2 03/12] perf tools: Improve aux_output not supported error

2020-07-10 Thread Adrian Hunter
For example: Before: $ perf record -e '{intel_pt/branch=0/,branch-loads/aux-output/ppp}' -- ls -l Error: branch-loads: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat' After: $ perf record -e '{intel_pt/branch=0/,branch-loads/aux-output/ppp}' -- ls -l Err

[PATCH V2 02/12] perf intel-pt: Fix duplicate branch after CBR

2020-07-10 Thread Adrian Hunter
CBR events can result in a duplicate branch event, because the state type defaults to a branch. Fix by clearing the state type. Example: trace 'sleep' and hope for a frequency change Before: $ perf record -e intel_pt//u sleep 0.1 [ perf record: Woken up 1 times to write data ] [ perf r

[PATCH V2 04/12] perf auxtrace: Add missing itrace options to help text

2020-07-10 Thread Adrian Hunter
Add missing itrace options o, G and L. Signed-off-by: Adrian Hunter --- tools/perf/util/auxtrace.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/auxtrace.h b/tools/perf/util/auxtrace.h index 142ccf7d34df..e3ce5fb03ca0 100644 --- a/tools/perf/util/auxtra

[PATCH V2 07/12] perf auxtrace: Add optional log flags to the itrace 'd' option

2020-07-10 Thread Adrian Hunter
Allow the 'd' option to be followed by flags which will affect what debug messages will or will not be reported. Each flag must be preceded by either '+' or '-'. The flags are: a all perf events Signed-off-by: Adrian Hunter --- tools/perf/Documentation/itrace.txt | 5 + tools/

[PATCH V2 06/12] perf intel-pt: Use itrace error flags to suppress some errors

2020-07-10 Thread Adrian Hunter
The itrace "e" option may be followed by flags which affect what errors will or will not be reported. Each flag must be preceded by either '+' or '-'. The flags supported by Intel PT are: -o Suppress overflow errors -l Suppress trace data lost errors For e

[PATCH V2 09/12] perf intel-pt: Time filter logged perf events

2020-07-10 Thread Adrian Hunter
Change the debug logging (when used with the --time option) to time filter logged perf events, but allow that to be overridden by using "d+a" instead of plain "d". That can reduce the size of the log file. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/perf-intel-pt.txt | 3 +++ too

[PATCH V2 10/12] perf auxtrace: Add itrace 'q' option for quicker, less detailed decoding

2020-07-10 Thread Adrian Hunter
The 'q' option is for modes of decoding that are quicker because they skip or omit decoding some aspects of trace data. If supported, the 'q' option may be repeated to increase the effect. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/itrace.txt | 3 +++ tools/perf/util/auxtrace.c

[PATCH V2 08/12] perf intel-pt: Use itrace debug log flags to suppress some messages

2020-07-10 Thread Adrian Hunter
The "d" option may be followed by flags which affect what debug messages will or will not be logged. Each flag must be preceded by either '+' or '-'. The flags support by Intel PT are: -a Suppress logging of perf events Suppressing perf events is useful for decreasing the size

[PATCH V2 12/12] perf intel-pt: Add support for decoding PSB+ only

2020-07-10 Thread Adrian Hunter
A single q option decodes ip from only FUP/TIP packets. Make it so that repeating the q option (i.e. qq) decodes only PSB+, getting ip if there is a FUP packet within PSB+ (i.e. between PSB and PSBEND). Example: $ perf record -e intel_pt//u grep -rI pudding drivers [ perf record: Woken up 52 ti

Re: [PATCH v9 2/2] PCI: xilinx-cpm: Add Versal CPM Root Port driver

2020-07-10 Thread Rob Herring
On Tue, Jun 16, 2020 at 6:57 AM Bharat Kumar Gogada wrote: > > - Add support for Versal CPM as Root Port. > - The Versal ACAP devices include CCIX-PCIe Module (CPM). The integrated > block for CPM along with the integrated bridge can function > as PCIe Root Port. > - Bridge error and legacy in

[PATCH V2 11/12] perf intel-pt: Add support for decoding FUP/TIP only

2020-07-10 Thread Adrian Hunter
Use the new itrace 'q' option to add support for a mode of decoding that ignores TNT, does not walk object code, but gets the ip from FUP and TIP packets. Example: $ perf record -e intel_pt//u grep -rI pudding drivers [ perf record: Woken up 52 times to write data ] [ perf record: Captured and

Re: [RFC PATCH 0/2] PM / devfreq: Add delayed timer for polling

2020-07-10 Thread Willy Wolff
Hi Lukasz, On 2020-07-08-15-25-03, Lukasz Luba wrote: > Hi Willy, > > On 7/3/20 1:33 PM, Willy Wolff wrote: > > Hi Chanwoo, > > > > I think it doesn't help on the benchmark I suggested that is doing only > > memory > > accesses. With both timer, I have the same timing. > > > > To test the benc

[PATCH V2 05/12] perf auxtrace: Add optional error flags to the itrace 'e' option

2020-07-10 Thread Adrian Hunter
Allow the 'e' option to be followed by flags which will affect what errors will or will not be reported. Each flag must be preceded by either '+' or '-'. The flags are: o overflow l trace data lost Signed-off-by: Adrian Hunter --- tools/perf/Documentation/itrace.txt |

Re: [PATCH v2 1/2] thermal: mediatek: prepare to add support for other platforms

2020-07-10 Thread Matthias Brugger
On 30/04/2020 11:14, Henry Yen wrote: It is known that Mediatek owns two thermal systems, which only differ in the way of reading calibration data and converting temperature. MT8173, MT8183, MT2701 and MT2712 belongs to version 1 thermal system, and MT7622 belongs to version 2. In order to ha

[PATCH] hid-input: Fix devices that return multiple bytes in battery report

2020-07-10 Thread Grant Likely
Some devices, particularly the 3DConnexion Spacemouse wireless 3D controllers, return more than just the battery capacity in the battery report. The Spacemouse devices return an additional byte with a device specific field. However, hidinput_query_battery_capacity() only requests a 2 byte transfer.

Re: [PATCH] MAINTAINERS: XDP: restrict N: and K:

2020-07-10 Thread Daniel Borkmann
On 7/10/20 8:17 AM, Alexander A. Klimov wrote: Am 09.07.20 um 22:37 schrieb Daniel Borkmann: On 7/9/20 9:42 PM, Alexander A. Klimov wrote: Rationale: Documentation/arm/ixp4xx.rst contains "xdp" as part of "ixdp465" which has nothing to do with XDP. Signed-off-by: Alexander A. Klimov ---   See

Re: [PATCH v3] firewire: Remove function callback casts

2020-07-10 Thread Oscar Carter
Hi Takashi, On Wed, Jul 08, 2020 at 10:06:28PM +0900, Takashi Sakamoto wrote: > Hi, > > I'm sorry to be late but I was stuck at my work for ALSA control > service programs for audio and music units on IEEE 1394 bus[1]. > > On Sat, May 30, 2020 at 11:08:39AM +0200, Oscar Carter wrote: > > [...] > >

Re: [PATCH v2 2/2] thermal: mediatek: add tsensor support for V2 thermal system

2020-07-10 Thread Matthias Brugger
On 30/04/2020 11:14, Henry Yen wrote: This patch adds full support for ver 2 thermal system (e.g., MT7622 SoC). The new changes include reading calibration data, converting temperature and hardware initialization which are specific for version 2 system. Each platform decides which function to

[GIT PULL] Fix gfs2 readahead deadlocks

2020-07-10 Thread Andreas Gruenbacher
Hi Linus, could you please pull the following two commits to fix the gfs2 deadlocks resulting from the conversion to ->readahead in commit d4388340ae0b ("fs: convert mpage_readpages to mpage_readahead")? The first commit adds a new IOCB_NOIO flag to generic_file_read_iter. In the previous versio

Re: [PATCH v2] KVM: SVM: emulate MSR_IA32_PERF_CAPABILITIES

2020-07-10 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > On 18/06/20 14:54, Vitaly Kuznetsov wrote: >> Paolo Bonzini writes: >> >>> On 18/06/20 13:13, Vitaly Kuznetsov wrote: state_test/smm_test selftests are failing on AMD with: "Unexpected result from KVM_GET_MSRS, r: 51 (failed MSR was 0x345)" MSR_IA32_P

[PATCH v3] sched/fair: handle case of task_h_load() returning 0

2020-07-10 Thread Vincent Guittot
task_h_load() can return 0 in some situations like running stress-ng mmapfork, which forks thousands of threads, in a sched group on a 224 cores system. The load balance doesn't handle this correctly because env->imbalance never decreases and it will stop pulling tasks only after reaching loop_max,

Re: [PATCH v8 2/5] driver core: add deferring probe reason to devices_deferred property

2020-07-10 Thread Andrzej Hajda
On 10.07.2020 15:31, Greg Kroah-Hartman wrote: > On Thu, Jul 02, 2020 at 03:44:21PM +0200, Andrzej Hajda wrote: >> /sys/kernel/debug/devices_deferred property contains list of deferred >> devices. >> This list does not contain reason why the driver deferred probe, the patch >> improves it. >> Th

Re: clean up address limit helpers

2020-07-10 Thread Linus Torvalds
On Fri, Jul 10, 2020 at 6:57 AM Christoph Hellwig wrote: > > in preparation for eventually phasing out direct use of set_fs(), this > series removes the segment_eq() arch helper that is only used to > implement or duplicate the uaccess_kernel() API, and then adds > descriptive helpers to force the

[PATCH v3] KVM: x86: move MSR_IA32_PERF_CAPABILITIES emulation to common x86 code

2020-07-10 Thread Vitaly Kuznetsov
state_test/smm_test selftests are failing on AMD with: "Unexpected result from KVM_GET_MSRS, r: 51 (failed MSR was 0x345)" MSR_IA32_PERF_CAPABILITIES is an emulated MSR on Intel but it is not known to AMD code, we can move the emulation to common x86 code. For AMD, we basically just allow the host

Re: [PATCH] selftests/livepatch: adopt to newer sysctl error format

2020-07-10 Thread Petr Mladek
On Fri 2020-07-10 10:40:43, Kamalesh Babulal wrote: > With procfs v3.3.16, the sysctl command doesn't prints the set key and > value on error. This change breaks livepatch selftest test-ftrace.sh, > that tests the interaction of sysctl ftrace_enabled: > > # selftests: livepatch: test-ftrace.sh >

Re: [PATCH v1] arm64: tlb: don't set the ttl value in flush_tlb_page_nosync

2020-07-10 Thread Catalin Marinas
On Fri, 10 Jul 2020 17:41:58 +0800, Zhenyu Ye wrote: > flush_tlb_page_nosync() may be called from pmd level, so we > can not set the ttl = 3 here. > > The callstack is as follows: > > pmdp_set_access_flags > ptep_set_access_flags > flush_tlb_fix_spurious_

Re: [PATCH -next] : add stub for of_get_next_parent() to fix qcom build error

2020-07-10 Thread Rob Herring
On Mon, Jun 29, 2020 at 10:43 AM Randy Dunlap wrote: > > From: Randy Dunlap > > Fix a (COMPILE_TEST) build error when CONFIG_OF is not set/enabled > by adding a stub for of_get_next_parent(). > > ../drivers/soc/qcom/qcom-geni-se.c:819:11: error: implicit declaration of > function 'of_get_next_pa

[PATCH v8 0/5] driver core: add probe error check helper

2020-07-10 Thread Andrzej Hajda
Hi All, Thanks for comments. Changes since v7: - improved commit message - added R-Bs Changes since v6: - removed leftovers from old naming scheme in commit descritions, - added R-Bs. Changes since v5: - removed patch adding macro, dev_err_probe(dev, PTR_ERR(ptr), ...) should be used instead,

[PATCH v8 1/5] driver core: add device probe log helper

2020-07-10 Thread Andrzej Hajda
During probe every time driver gets resource it should usually check for error printk some message if it is not -EPROBE_DEFER and return the error. This pattern is simple but requires adding few lines after any resource acquisition code, as a result it is often omitted or implemented only partially

Re: [PATCH] of: Add stub for of_get_next_parent

2020-07-10 Thread Rob Herring
On Fri, Jul 10, 2020 at 2:19 AM Akash Asthana wrote: > > Fixes compilation error reported on x86 platform: > > drivers/soc/qcom/qcom-geni-se.c:819:11: error: implicit declaration of > function 'of_get_next_parent'. > > drivers/soc/qcom/qcom-geni-se.c:819:9: warning: incompatible integer to > point

[PATCH v8 2/5] driver core: add deferring probe reason to devices_deferred property

2020-07-10 Thread Andrzej Hajda
/sys/kernel/debug/devices_deferred property contains list of deferred devices. This list does not contain reason why the driver deferred probe, the patch improves it. The natural place to set the reason is dev_err_probe function introduced recently, ie. if dev_err_probe will be called with -EPROBE_

[PATCH v8 5/5] coccinelle: add script looking for cases where probe__err can be used

2020-07-10 Thread Andrzej Hajda
This is AD-HOC script, it should nt be merged. Signed-off-by: Andrzej Hajda --- probe_err.cocci | 247 1 file changed, 247 insertions(+) create mode 100644 probe_err.cocci diff --git a/probe_err.cocci b/probe_err.cocci new file mode 100644 index

[PATCH v8 4/5] drm/bridge: lvds-codec: simplify error handling

2020-07-10 Thread Andrzej Hajda
Using dev_err_probe code has following advantages: - shorter code, - recorded defer probe reason for debugging, - uniform error code logging. Signed-off-by: Andrzej Hajda Reviewed-by: Neil Armstrong --- drivers/gpu/drm/bridge/lvds-codec.c | 10 +++--- 1 file changed, 3 insertions(+), 7 dele

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-10 Thread Vlastimil Babka
On 7/9/20 4:48 AM, robbieko wrote: > From: Robbie Ko > > When a migrate page occurs, we first create a migration entry > to replace the original pte, and then go to fallback_migrate_page > to execute a writeout if the migratepage is not supported. > > In the writeout, we will clear the dirty bit

[PATCH v8 3/5] drm/bridge/sii8620: fix resource acquisition error handling

2020-07-10 Thread Andrzej Hajda
In case of error during resource acquisition driver should print error message only in case it is not deferred probe, using dev_err_probe helper solves the issue. Moreover it records defer probe reason for debugging. Signed-off-by: Andrzej Hajda Reviewed-by: Neil Armstrong --- drivers/gpu/drm/b

[GIT PULL] GPIO fixes for the v5.8 series

2020-07-10 Thread Linus Walleij
Hi Linus, here are some GPIO fixes, most of them for the PCA953x that Andy worked hard to fix up. Please pull them in! Yours, Linus Walleij The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git reposit

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

2020-07-10 Thread Konrad Rzeszutek Wilk
.snip.. > Just to recap the proposal, the idea is to add some restrictions to the > operations (sqe, register, fixed file) to safely allow untrusted applications > or guests to use io_uring queues. Hi! This is neat and quite cool - but one thing that keeps nagging me is what how much overhead doe

Re: [PATCH] spi: spi-cadence: add support for chip select high

2020-07-10 Thread Mark Brown
On Fri, Jul 10, 2020 at 02:51:40PM +1000, Shreyas Joshi wrote: > spi cadence driver should support spi-cs-high in mode bits > so that the peripherals that needs the chip select to be high active can > use it. Add the SPI-CS-HIGH flag in the supported mode bits. This doesn't apply against current

Re: [PATCH 3/5] vfio/pci: add qat devices to blocklist

2020-07-10 Thread Bjorn Helgaas
On Fri, Jul 10, 2020 at 04:08:19PM +0100, Giovanni Cabiddu wrote: > On Wed, Jul 01, 2020 at 04:28:12PM -0500, Bjorn Helgaas wrote: > > On Wed, Jul 01, 2020 at 12:03:00PM +0100, Giovanni Cabiddu wrote: > > > The current generation of Intel® QuickAssist Technology devices > > > are not designed to ru

Re: [PATCH 0/2] ASoC: fsl_spdif: Clear the validity bit for TX

2020-07-10 Thread Mark Brown
On Tue, 7 Jul 2020 16:54:24 +0800, Shengjiu Wang wrote: > Clear the validity bit for TX > Add kctl for configuring TX validity bit > > Shengjiu Wang (2): > ASoC: fsl_spdif: Clear the validity bit for TX > ASoC: fsl_spdif: Add kctl for configuring TX validity bit > > [...] Applied to http

Re: [PATCH v1] regmap: Switch to use fwnode instead of OF one

2020-07-10 Thread Mark Brown
On Wed, 8 Jul 2020 19:12:32 +0300, Andy Shevchenko wrote: > Make regmap firmware node type agnostic by switching it to use fwnode. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: Switch to use fwnode instead of OF one commit:

Re: [PATCH V3 0/3] Convert mxs/imx spi/cspi/lpspi binding to json-schema

2020-07-10 Thread Mark Brown
On Tue, 16 Jun 2020 12:26:12 +0800, Anson Huang wrote: > This patch series converts mxs/imx spi/cspi/lpspi binding to json-schema. > > In fsl-imx-cspi.yaml, also update compatible, remove obsolete properties > "fsl,spi-num-chipselects" and update the example based on latest DT file; > > In spi-fs

[GIT PULL] pin control fixes for the v5.8 series

2020-07-10 Thread Linus Walleij
Hi Linus, here are some two pin control fixes for the v5.8 series. Nothing special about them, please pull them in! Yours, Linus Walleij The following changes since commit 48778464bb7d346b47157d21ffde2af6b2d39110: Linux 5.8-rc2 (2020-06-21 15:45:29 -0700) are available in the Git repository

Re: [PATCH 3/5] vfio/pci: add qat devices to blocklist

2020-07-10 Thread Bjorn Helgaas
On Fri, Jul 10, 2020 at 10:37:45AM -0500, Bjorn Helgaas wrote: > On Fri, Jul 10, 2020 at 04:08:19PM +0100, Giovanni Cabiddu wrote: > > On Wed, Jul 01, 2020 at 04:28:12PM -0500, Bjorn Helgaas wrote: > > > On Wed, Jul 01, 2020 at 12:03:00PM +0100, Giovanni Cabiddu wrote: > > > > The current generatio

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Lukasz Luba
On 7/10/20 3:49 PM, Krzysztof Kozlowski wrote: On Fri, Jul 10, 2020 at 02:41:28PM +0100, Lukasz Luba wrote: On 7/10/20 2:19 PM, Krzysztof Kozlowski wrote: On Fri, Jul 10, 2020 at 03:13:18PM +0200, Marek Szyprowski wrote: > In such case, maybe as you said, let's switch to polling mode u

Re: [PATCH v3] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-07-10 Thread Pali Rohár
On Friday 10 July 2020 10:18:00 Lorenzo Pieralisi wrote: > I would be very grateful if you could describe what happens in HW > when these conditions trigger - I would like to understand if this > issue is aardvark specific or it isn't. Hello Lorenzo! We are not sure what is the problem and where i

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