[PATCH] EDAC/mc: call edac_inc_ue_error() before panic

2020-06-09 Thread Zhenzhong Duan
By calling edac_inc_ue_error() before panic, we get a correct UE error count for core dump analysis. Signed-off-by: Zhenzhong Duan --- drivers/edac/edac_mc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 75ede27..c1f

[PATCH] EDAC, pnd2: set MCE_PRIO_EDAC priority for pnd2_mce_dec notifier

2020-06-09 Thread Zhenzhong Duan
...or else it has MCE_PRIO_LOWEST priority by default. Signed-off-by: Zhenzhong Duan --- drivers/edac/pnd2_edac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/edac/pnd2_edac.c b/drivers/edac/pnd2_edac.c index bc47328..368fae3 100644 --- a/drivers/edac/pnd2_edac.c +++ b/drivers/eda

[PATCH] EDAC, {skx,i10nm}: Advice mcelog that the error were handled

2020-06-09 Thread Zhenzhong Duan
If one MCE error has been processed in kernel, it's not necessory to pass it to user level mcelog. Signed-off-by: Zhenzhong Duan --- drivers/edac/skx_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/edac/skx_common.c b/drivers/edac/skx_common.c index 46be1a7

Re: [PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-09 Thread Eric Biggers
On Sun, Jun 07, 2020 at 01:03:45PM +, David Laight wrote: > From: Herbert Xu > > Sent: 05 June 2020 13:17 > ... > > Better yet use strscpy which will even return an error for you. > > It really ought to return the buffer length on truncation. > Then you can loop: > while(...) >

[PATCH v3 0/2] Recommend blocklist/allowlist instead of blacklist/whitelist

2020-06-09 Thread SeongJae Park
From: SeongJae Park This patchset 1) adds support of deprecated terms in the 'checkpatch.pl' and 2) set the 'blacklist' and 'whitelist' as deprecated with replacement suggestion of 'blocklist' and 'allowlist', because the suggestions are incontrovertible, doesn't make people hurt, and more self-e

[PATCH v3 2/2] scripts/deprecated_terms: Recommend blocklist/allowlist instead of blacklist/whitelist

2020-06-09 Thread SeongJae Park
From: SeongJae Park This commit recommends the patches to replace 'blacklist' and 'whitelist' with the 'blocklist' and 'allowlist', because the new suggestions are incontrovertible, doesn't make people hurt, and more self-explanatory. Signed-off-by: SeongJae Park --- scripts/deprecated_terms.t

[PATCH v3 1/2] checkpatch: support deprecated terms checking

2020-06-09 Thread SeongJae Park
From: SeongJae Park Some terms could be deprecated for various reasons, but it is hard to update the entire old usages. That said, we could at least encourage new patches to use the suggested replacements. This commit adds check of deprecated terms in the 'checkpatch.pl' for that. The script w

[PATCH V3] vdpa: introduce virtio pci driver

2020-06-09 Thread Jason Wang
This patch introduce a vDPA driver for virtio-pci device. It bridges the virtio-pci control command to the vDPA bus. This will be used for developing new features for both software vDPA framework and hardware vDPA feature. Compared to vdpa_sim, it has several advantages: - it's a real device driv

Re: [PATCH v4 01/17] media: dt-binding: mtk-vcodec: Separating mtk-vcodec encode node.

2020-06-09 Thread Alexandre Courbot
On Wed, Jun 10, 2020 at 6:21 AM Rob Herring wrote: > > On Sat, May 30, 2020 at 04:10:02PM +0800, Yong Wu wrote: > > From: Maoguang Meng > > > > Update binding document since the avc and vp8 hardware encoder in > > mt8173 are now separated. Separate "mediatek,mt8173-vcodec-enc" to > > "mediatek,mt

I await your urgent response immediately.

2020-06-09 Thread Mr Moussa Dauda
Dear Good Friend, Good Day, I am Mr. Moussa Dauda, Director In charge of Auditing and accounting department of Bank Of Africa, BOA, I hope that you will not betray or expose this trust and confident that i am about to repose on you for the mutual benefit of our both families. I need your u

Re: [PATCH v6 6/6] blktrace: fix debugfs use after free

2020-06-09 Thread Christoph Hellwig
On Tue, Jun 09, 2020 at 05:53:59PM +, Luis Chamberlain wrote: > > Feel free to add more comments, but please try to keep them short > > and crisp. At the some point long comments really distract from what > > is going on. > > Sure. > > Come to think of it, given the above, I think we can als

Re: [RFC] MFD's relationship with Device Tree (OF)

2020-06-09 Thread Lee Jones
On Tue, 09 Jun 2020, Rob Herring wrote: Thanks for replying Rob. > On Tue, Jun 9, 2020 at 5:01 AM Lee Jones wrote: > > > > Good morning, > > > > After a number of reports/queries surrounding a known long-term issue > > in the MFD core, including the submission of a couple of attempted > > soluti

[PATCH 2/2] USB: hub: Suspend and resume port with LPM enabled

2020-06-09 Thread Kai-Heng Feng
USB2 devices with LPM enabled may interrupt the system suspend: [ 932.510475] usb 1-7: usb suspend, wakeup 0 [ 932.510549] hub 1-0:1.0: hub_suspend [ 932.510581] usb usb1: bus suspend, wakeup 0 [ 932.510590] xhci_hcd :00:14.0: port 9 not suspended [ 932.510593] xhci_hcd :00:14.0: port

[PATCH 1/2] xhci: Suspend ports to U3 directly from U1 or U2

2020-06-09 Thread Kai-Heng Feng
xHCI spec "4.15.1 Port Suspend" states that port can be put to U3 as long as Enabled bit is set and from U0, U1 or U2 state. Currently only USB_PORT_FEAT_LINK_STATE puts port to U3 directly, let's do the same for USB_PORT_FEAT_SUSPEND and bus suspend case. This is particularly useful for USB2 dev

Re: [kbuild-all] Re: gcc-5: error: -gz is not supported in this configuration

2020-06-09 Thread Fangrui Song
But if that gcc was originally _configured_ with a version of binutils that doesn't support -gz=zlib, I agree with this theory :) On 2020-06-10, Arvind Sankar wrote: On Tue, Jun 09, 2020 at 11:23:31PM -0400, Arvind Sankar wrote: On Tue, Jun 09, 2020 at 11:12:25PM -0400, Arvind Sankar wrote: >

Re: [PATCH v3 1/7] Documentation: dynamic-debug: Add description of level bitmask

2020-06-09 Thread Joe Perches
On Wed, 2020-06-10 at 08:31 +0200, Greg Kroah-Hartman wrote: > On Tue, Jun 09, 2020 at 09:58:07AM -0700, Joe Perches wrote: > > On Tue, 2020-06-09 at 13:16 +0200, Greg Kroah-Hartman wrote: > > > What is wrong with the existing control of dynamic > > > debug messages that you want to add another typ

Re: [PATCH 5.6 00/41] 5.6.18-rc1 review

2020-06-09 Thread Naresh Kamboju
On Tue, 9 Jun 2020 at 23:25, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.6.18 release. > There are 41 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Respo

Re: [PATCH v3 1/7] Documentation: dynamic-debug: Add description of level bitmask

2020-06-09 Thread Greg Kroah-Hartman
On Tue, Jun 09, 2020 at 09:58:07AM -0700, Joe Perches wrote: > On Tue, 2020-06-09 at 13:16 +0200, Greg Kroah-Hartman wrote: > > What is wrong with the existing control of dynamic > > debug messages that you want to add another type of arbitrary grouping > > to it? > > There is no existing groupin

Re: [PATCH RESEND V2] vdpa: introduce virtio pci driver

2020-06-09 Thread Jason Wang
On 2020/6/10 下午2:21, Michael S. Tsirkin wrote: On Wed, Jun 10, 2020 at 02:16:26PM +0800, Jason Wang wrote: On 2020/6/10 下午2:07, Michael S. Tsirkin wrote: On Wed, Jun 10, 2020 at 01:49:51PM +0800, Jason Wang wrote: This patch introduce a vDPA driver for virtio-pci device. It bridges the virti

Re: [PATCH] net: mvneta: Fix Serdes configuration for 2.5Gbps modes

2020-06-09 Thread Sascha Hauer
Hi Andrew, +Cc Maxime Chevallier On Tue, Jun 09, 2020 at 03:28:48PM +0200, Andrew Lunn wrote: > On Tue, Jun 09, 2020 at 03:11:52PM +0200, Sascha Hauer wrote: > > The Marvell MVNETA Ethernet controller supports a 2.5Gbps SGMII mode > > called DRSGMII. Depending on the Port MAC Control Register0 Po

Re: [PATCH] usb/gadget/function: introduce Built-in CDROM support

2020-06-09 Thread Greg Kroah-Hartman
On Wed, Jun 10, 2020 at 10:32:29AM +0800, Macpaul Lin wrote: > Introduce Built-In CDROM (BICR) support. > This feature depends on USB_CONFIGFS_MASS_STORAGE option. > > 1. Some settings and new function is introduced for BICR. > 2. Some work around for adapting Android settings is intorduced as wel

Re: [PATCH 1/1] leds: fix spelling mistake

2020-06-09 Thread Alexander Dahl
That one made me laugh. :-) Reviewed-by: Alexander Dahl Am Dienstag, 9. Juni 2020, 17:49:29 CEST schrieb Flavio Suligoi: > Fix typo: "Tigger" --> "Trigger" > > Signed-off-by: Flavio Suligoi > --- > drivers/leds/led-triggers.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

Re: [PATCH RESEND V2] vdpa: introduce virtio pci driver

2020-06-09 Thread Michael S. Tsirkin
On Wed, Jun 10, 2020 at 02:16:26PM +0800, Jason Wang wrote: > > On 2020/6/10 下午2:07, Michael S. Tsirkin wrote: > > On Wed, Jun 10, 2020 at 01:49:51PM +0800, Jason Wang wrote: > > > This patch introduce a vDPA driver for virtio-pci device. It bridges > > > the virtio-pci control command to the vDPA

Re: [PATCH v4 09/17] media: mtk-vcodec: Get rid of mtk_smi_larb_get/put

2020-06-09 Thread Tiffany Lin
On Wed, 2020-06-10 at 13:47 +0800, CK Hu wrote: > + Tiffany & Maoguang. > > On Sat, 2020-05-30 at 16:10 +0800, Yong Wu wrote: > > MediaTek IOMMU has already added the device_link between the consumer > > and smi-larb device. If the vcodec device call the pm_runtime_get_sync, > > the smi-larb's pm_

Re: close() on some Intel CNP-LP PCI devices takes up to 2.7 s

2020-06-09 Thread Paul Menzel
Dear Mika, Am 09.06.20 um 17:44 schrieb Mika Westerberg: On Tue, Jun 09, 2020 at 05:39:21PM +0200, Paul Menzel wrote: On the Intel Cannon Point-LP laptop Dell Precision 3540 with a dedicated AMD graphics card (both graphics devices can be used) with Debian Sid/unstable with Linux 5.6.14, run

Re: [PATCH 5.7 00/24] 5.7.2-rc1 review

2020-06-09 Thread Naresh Kamboju
On Tue, 9 Jun 2020 at 23:25, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.7.2 release. > There are 24 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Respon

Re: [PATCH RESEND V2] vdpa: introduce virtio pci driver

2020-06-09 Thread Jason Wang
On 2020/6/10 下午2:07, Michael S. Tsirkin wrote: On Wed, Jun 10, 2020 at 01:49:51PM +0800, Jason Wang wrote: This patch introduce a vDPA driver for virtio-pci device. It bridges the virtio-pci control command to the vDPA bus. This will be used for developing new features for both software vDPA f

[PATCH v2] usb/gadget/function: introduce Built-in CDROM support

2020-06-09 Thread Macpaul Lin
Introduce Built-In CDROM (BICR) support. This feature depends on USB_CONFIGFS_MASS_STORAGE option. 1. Some settings and new function is introduced for BICR. 2. Some work around for adapting Android settings is introduced as well. Signed-off-by: Justin Hsieh Signed-off-by: Hakieyin Hsieh Signed-

Re: [PATCH v4 08/17] media: mtk-vcodec: separate mtk-vcodec-enc node.

2020-06-09 Thread Tiffany Lin
On Wed, 2020-06-10 at 13:45 +0800, CK Hu wrote: > + Tiffany & Maoguang. > > > On Sat, 2020-05-30 at 16:10 +0800, Yong Wu wrote: > > From: Maoguang Meng > > > > MTK H264 Encoder(VENC_SYS) and VP8 Encoder(VENC_LT_SYS) are two > > independent hardware instance. They have their owner interrupt, > >

Re: [PATCH 2/2] clk: bcm63xx-gate: add BCM6318 support

2020-06-09 Thread Álvaro Fernández Rojas
Hi Florian, > El 10 jun 2020, a las 4:27, Florian Fainelli escribió: > > > > On 6/9/2020 4:30 AM, Álvaro Fernández Rojas wrote: >> +static const struct clk_bcm63xx_table_entry bcm6318_clocks[] = { >> +{ .name = "adsl_asb", .bit = 0, }, >> +{ .name = "usb_asb", .bit = 1, }, >> +{ .n

Re: [PATCH 3/7] reset: add BCM6345 reset controller driver

2020-06-09 Thread Álvaro Fernández Rojas
Hi Florian, > El 9 jun 2020, a las 22:17, Florian Fainelli escribió: > > > > On 6/9/2020 9:41 AM, Álvaro Fernández Rojas wrote: > If you can do without this, with I think this driver could be made to > use reset-simple. Yes, but only if I can add reset support with a configu

Re: [PATCH ethtool v1] netlink: add master/slave configuration support

2020-06-09 Thread Oleksij Rempel
On Tue, Jun 09, 2020 at 02:48:51PM -0700, Dan Williams wrote: > On Tue, Jun 9, 2020 at 12:57 PM David Miller wrote: > > > > From: "Williams, Dan J" > > Date: Tue, 9 Jun 2020 19:30:50 + > > > > > On Tue, 2020-06-09 at 11:36 -0700, David Miller wrote: > > >> From: Stephen Hemminger > > >> Date

Re: [PATCH RESEND V2] vdpa: introduce virtio pci driver

2020-06-09 Thread Michael S. Tsirkin
On Wed, Jun 10, 2020 at 01:49:51PM +0800, Jason Wang wrote: > This patch introduce a vDPA driver for virtio-pci device. It bridges > the virtio-pci control command to the vDPA bus. This will be used for > developing new features for both software vDPA framework and hardware > vDPA feature. > > Com

Re: [PATCH v2 3/7] drivers: reset: simple: add BCM6345 reset support

2020-06-09 Thread Álvaro Fernández Rojas
Hi Florian, > El 10 jun 2020, a las 3:05, Florian Fainelli escribió: > > > > On 6/9/2020 9:02 AM, Álvaro Fernández Rojas wrote: >> Add support for resetting blocks through the Linux reset controller >> subsystem for BCM63xx SoCs. >> >> Signed-off-by: Álvaro Fernández Rojas > > This looks go

Re: [PATCH v2 4/7] mips: bmips: dts: add BCM6328 reset controller support

2020-06-09 Thread Álvaro Fernández Rojas
Hi Florian, > El 10 jun 2020, a las 3:08, Florian Fainelli escribió: > > > > On 6/9/2020 9:02 AM, Álvaro Fernández Rojas wrote: >> BCM6328 SoCs have a reset controller for certain components. >> >> Signed-off-by: Álvaro Fernández Rojas > > Acked-by: Florian Fainelli > > You should probabl

[RFC PATCH v1 01/18] dt-bindings: i2c: tegra: Document Tegra210 VI I2C clocks and power-domains

2020-06-09 Thread Sowjanya Komatineni
This patch documents missing clocks and power-domains of Tegra210 VI I2C. Signed-off-by: Sowjanya Komatineni --- .../devicetree/bindings/i2c/nvidia,tegra20-i2c.txt| 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/nv

[RFC PATCH v1 03/18] i2c: tegra: Don't mark VI I2C as IRQ safe runtime PM

2020-06-09 Thread Sowjanya Komatineni
Tegra VI I2C is part of VE power domain and typically used for camera usecases. VE power domain is not always on and is non-IRQ safe. So, IRQ safe device cannot be attached to a non-IRQ safe domain as it prevents powering off the PM domain and generic power domain driver will warn. Current driver

[RFC PATCH v1 11/18] media: tegra-video: Add support for external sensor capture

2020-06-09 Thread Sowjanya Komatineni
This patch adds support to capture from the external sensor based on device graph in the device tree. Driver walks through the device graph to create media links between the entities and registers and unregisters video devices when the corresponding sub-devices are bound and unbound. Channel form

[RFC PATCH v1 06/18] i2c: tegra: Avoid tegra_i2c_init_dma() for Tegra210 vi i2c

2020-06-09 Thread Sowjanya Komatineni
VI I2C is on host1x bus so APB DMA can't be used for Tegra210 VI I2C and there are no tx and rx dma channels for VI I2C. So, avoid attempt of requesting DMA channels. Signed-off-by: Sowjanya Komatineni --- drivers/i2c/busses/i2c-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[RFC PATCH v1 13/18] gpu: host1x: mipi: Add of_tegra_mipi_request() API

2020-06-09 Thread Sowjanya Komatineni
This patch adds an API of_tegra_mipi_request() to allow creating mipi device for specific device node rather than a device so Tegra CSI driver can use it for calibrating MIPI pads for each stream independently. Signed-off-by: Sowjanya Komatineni --- drivers/gpu/host1x/mipi.c | 10 -- inc

[RFC PATCH v1 15/18] media: tegra-video: Add CSI MIPI pads calibration

2020-06-09 Thread Sowjanya Komatineni
CSI MIPI pads need to be enabled and calibrated for capturing from the external sensor or transmitter. MIPI CAL unit calibrates MIPI pads pull-up, pull-down and termination impedances. Calibration is done by co-work of MIPI BIAS pad and MIPI CAL control unit. Triggering calibration start can happ

[RFC PATCH v1 12/18] media: tegra-video: Add support for selection ioctl ops

2020-06-09 Thread Sowjanya Komatineni
This patch adds selection v4l2 ioctl operations to allow configuring a selection rectangle in the sensor through the Tegra video device node. Some sensor drivers supporting crop uses try_crop rectangle from v4l2_subdev_pad_config during try format for computing binning. So with selection ops supp

[RFC PATCH v1 04/18] i2c: tegra: Fix the error path in tegra_i2c_runtime_resume

2020-06-09 Thread Sowjanya Komatineni
tegra_i2c_runtime_resume does not disable prior enabled clocks properly. This patch fixes it. Signed-off-by: Sowjanya Komatineni --- drivers/i2c/busses/i2c-tegra.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/bus

[RFC PATCH v1 05/18] i2c: tegra: Fix runtime resume to re-init VI I2C

2020-06-09 Thread Sowjanya Komatineni
VI I2C is on host1x bus and is part of VE power domain. During suspend/resume VE power domain goes through power off/on. So, controller reset followed by i2c re-initialization is required after the domain power up. This patch fixes it. Signed-off-by: Sowjanya Komatineni --- drivers/i2c/busses

[RFC PATCH v1 16/18] media: tegra-video: Compute settle times based on the clock rate

2020-06-09 Thread Sowjanya Komatineni
Settle time determines the number of cil clock cyles to wait after LP00 when moving from LP to HS. This patch computes T-CLK-SETTLE and T-HS-SETTLE times based on cil clock rate and pixel rate from the sensor and programs them during streaming. T-CLK-SETTLE time is the interval during which recei

[RFC PATCH v1 08/18] media: tegra-video: Enable TPG based on kernel config

2020-06-09 Thread Sowjanya Komatineni
Tegra internal TPG mode is only for Tegra vi and csi testing without a real sensor and driver should default support real sensor. So, This patch adds CONFIG_VIDEO_TEGRA_TPG and enables Tegra internal TPG mode only when this config is selected. Signed-off-by: Sowjanya Komatineni --- drivers/stag

[RFC PATCH v1 14/18] gpu: host1x: mipi: Split tegra_mipi_calibrate and tegra_mipi_wait

2020-06-09 Thread Sowjanya Komatineni
SW can trigger MIPI pads calibration any time after power on but calibration results will be latched and applied to the pads by MIPI CAL unit only when the link is in LP-11 state and then status register will be updated. For CSI, trigger of pads calibration happen during CSI stream enable where CS

Re: [PATCH 1/4] dt-bindings: soc: brcm: add BCM63xx power domain binding

2020-06-09 Thread Álvaro Fernández Rojas
Ok, I will send v2 with a separate YAML file. > El 10 jun 2020, a las 3:15, Florian Fainelli escribió: > > > > On 6/9/2020 3:52 AM, Álvaro Fernández Rojas wrote: >> BCM6318, BCM6328, BCM6362 and BCM63268 SoCs have a power domain controller >> to enable/disable certain components in order to sa

[RFC PATCH v1 17/18] arm64: tegra: jetson-tx1: Add camera supplies

2020-06-09 Thread Sowjanya Komatineni
Jetson TX1 development board has a camera expansion connector which has 2V8, 1V8 and 1V2 supplies to power up the camera sensor on the supported camera modules. Camera module designed as per Jetson TX1 camera expansion connector may use these supplies for camera sensor avdd 2V8, digital core 1V8,

[RFC PATCH v1 10/18] dt-bindings: tegra: Document VI and CSI port nodes

2020-06-09 Thread Sowjanya Komatineni
This patch documents Tegra VI and CSI port and endpoint nodes along with the other required properties. Signed-off-by: Sowjanya Komatineni --- .../display/tegra/nvidia,tegra20-host1x.txt| 87 ++ 1 file changed, 87 insertions(+) diff --git a/Documentation/devicetree/

[RFC PATCH v1 18/18] arm64: tegra: Enable Tegra VI CSI support for Jetson Nano

2020-06-09 Thread Sowjanya Komatineni
This patch enables VI and CSI in device tree for Jetson Nano. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210-p3450-.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p3450-.dts b/arch/arm64/boot/dts/nvidia

[RFC PATCH v1 07/18] media: tegra-video: Fix channel format alignment

2020-06-09 Thread Sowjanya Komatineni
Pixel format width is mistakenly aligned to surface align bytes and altering width to aligned value may force sensor mode change other than the requested one and also cause mismatch in width programmed between sensor and vi which can lead to capture errors. This patch removes width alignment and c

[RFC PATCH v1 09/18] media: tegra-video: Update format lookup to offset based

2020-06-09 Thread Sowjanya Komatineni
Tegra VI supported video formats are more for non TPG and there can be multiple pixel formats for the same media bus format. This patch updates the helper function for format lookup based on mbus code from pre-defined Tegra supported format list to look from the specified list index offset. Offse

[RFC PATCH v1 02/18] arm64: tegra: Add missing clocks and power-domains to Tegra210 VI I2C

2020-06-09 Thread Sowjanya Komatineni
Tegra210 VI I2C is in VE power domain and i2c-vi node should have power-domains property. Current Tegra210 i2c-vi device node is missing both VI I2C clocks and power-domains property. This patch adds them. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 6

[RFC PATCH v1 00/18] Support for Tegra video capture from external sensor

2020-06-09 Thread Sowjanya Komatineni
This series adds support for video capture from external camera sensor to Tegra video driver. Jetson TX1 has camera expansion connector and supports custom camera module designed as per TX1 design specification. This series also enables camera capture support for Jetson Nano which has Raspberry P

Re: stress-ng --hrtimers hangs system

2020-06-09 Thread Kurt Kanzenbach
Hi Vladimir, On Tue Jun 09 2020, Vladimir Oltean wrote: > Just out of curiosity, what and how many CPU cores does your ARM64 box > have, and what frequency are you running them at? > Mine is a dual-core A72 machine running at 1500 MHz. That particular machine has a dual core Cortex A53 running at

KASAN: use-after-free Read in tipc_named_reinit

2020-06-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:cb8e59cc Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=12eccfd210 kernel config: https://syzkaller.appspot.com/x/.config?x=a16ddbc78955e3a9 das

Re: [PATCH v3] docs: deprecated.rst: Add zero-length and one-element arrays

2020-06-09 Thread Kees Cook
On Mon, Jun 08, 2020 at 04:37:11PM -0500, Gustavo A. R. Silva wrote: > Add zero-length and one-element arrays to the list. > > While I continue replacing zero-length and one-element arrays with > flexible-array members, I need a reference to point people to, so > they don't introduce more instance

Re: [PATCH] mm/page_alloc: silence a KASAN false positive

2020-06-09 Thread Dmitry Vyukov
On Wed, Jun 10, 2020 at 7:22 AM Qian Cai wrote: > > kernel_init_free_pages() will use memset() on s390 to clear all pages > from kmalloc_order() which will override KASAN redzones because a > redzone was setup from the end of the allocation size to the end of the > last page. Silence it by not rep

Re: [PATCH v3 4/7] selftests/ftrace: Convert required interface checks into requires list

2020-06-09 Thread Masami Hiramatsu
Hi Shuah, On Tue, 9 Jun 2020 14:41:27 -0600 Shuah Khan wrote: > On 6/2/20 8:40 PM, Masami Hiramatsu wrote: > > Convert the required tracefs interface checking code with > > requires: list. > > > > Signed-off-by: Masami Hiramatsu > > Reviewed-by: Tom Zanussi > > --- > >Changes in v2: Fix t

[PATCH] symlink.7: document magic-links more completely

2020-06-09 Thread Aleksa Sarai
Hi Michael, Sorry for the delay and here is the patch I promised in this thread. --8<-8<-- Traditionally, magic-links have not been a well-understood topic in Linux. This helps clarify some of the terminology used in openat2.2.

Re: [PATCH] Fix null pointer dereference in vector_user_bpf

2020-06-09 Thread Greg KH
On Tue, Jun 09, 2020 at 11:43:00PM -0400, Gaurav Singh wrote: > Signed-off-by: Gaurav Singh > > The bpf_prog is being checked for !NULL after uml_kmalloc but > later its used directly for example: > bpf_prog->filter = bpf and is also later returned upon success. > Fix this, do a NULL check and r

[PATCH RESEND V2] vdpa: introduce virtio pci driver

2020-06-09 Thread Jason Wang
This patch introduce a vDPA driver for virtio-pci device. It bridges the virtio-pci control command to the vDPA bus. This will be used for developing new features for both software vDPA framework and hardware vDPA feature. Compared to vdpa_sim, it has several advantages: - it's a real device driv

Re: [PATCH v4 09/17] media: mtk-vcodec: Get rid of mtk_smi_larb_get/put

2020-06-09 Thread CK Hu
+ Tiffany & Maoguang. On Sat, 2020-05-30 at 16:10 +0800, Yong Wu wrote: > MediaTek IOMMU has already added the device_link between the consumer > and smi-larb device. If the vcodec device call the pm_runtime_get_sync, > the smi-larb's pm_runtime_get_sync also be called automatically. > > CC: Tiff

Re: [PATCH v4 08/17] media: mtk-vcodec: separate mtk-vcodec-enc node.

2020-06-09 Thread CK Hu
+ Tiffany & Maoguang. On Sat, 2020-05-30 at 16:10 +0800, Yong Wu wrote: > From: Maoguang Meng > > MTK H264 Encoder(VENC_SYS) and VP8 Encoder(VENC_LT_SYS) are two > independent hardware instance. They have their owner interrupt, > register mapping, and special clocks. > > This patch seperates t

Re: [PATCH V2] vdpa: introduce virtio pci driver

2020-06-09 Thread Jason Wang
On 2020/6/10 下午12:47, Michael S. Tsirkin wrote: On Wed, Jun 10, 2020 at 11:59:20AM +0800, Jason Wang wrote: This patch introduce a vDPA driver for virtio-pci device. It bridges the virtio-pci control command to the vDPA bus. This will be used for developing new features for both software vDPA

Re: ipr crashes due to NULL dma_need_drain since cc97923a5bcc ("block: move dma drain handling to scsi")

2020-06-09 Thread Michael Ellerman
Christoph Hellwig writes: > Can you try this patch? > > --- > From 1c9913360a0494375c5655b133899cb4323bceb4 Mon Sep 17 00:00:00 2001 > From: Christoph Hellwig > Date: Tue, 9 Jun 2020 14:07:31 +0200 > Subject: scsi: wire up ata_scsi_dma_need_drain for SAS HBA drivers > > We need ata_scsi_dma_need_

Re: [PATCH v7 2/4] lib/test_bitmap.c: Add for_each_set_clump test cases

2020-06-09 Thread Rong Chen
On 6/7/20 7:15 AM, Syed Nayyar Waris wrote: On Fri, Jun 5, 2020 at 5:54 PM Andy Shevchenko wrote: On Fri, Jun 05, 2020 at 02:12:54AM +0530, Syed Nayyar Waris wrote: On Sun, May 31, 2020 at 12:50 AM kbuild test robot wrote: WARNING: modpost: lib/test_bitmap.o(.data+0xe80): Section mismatch

[PATCH v1 0/2] scsi: ufs: Fix and cleanup device quirk

2020-06-09 Thread Stanley Chu
Hi, this series provides some device quirk fixes and cleanups. Stanley Chu (2): scsi: ufs: Add DELAY_BEFORE_LPM quirk for Micron devices scsi: ufs: Cleanup device vendor and quirk definition drivers/scsi/ufs/ufs_quirks.h | 3 ++- drivers/scsi/ufs/ufshcd.c | 6 +++--- 2 files changed, 5 i

[PATCH v1 1/2] scsi: ufs: Add DELAY_BEFORE_LPM quirk for Micron devices

2020-06-09 Thread Stanley Chu
It is confirmed that Micron device needs DELAY_BEFORE_LPM quirk to have a delay before VCC is powered off. So add Micron vendor ID and this quirk for Micron devices. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs_quirks.h | 1 + drivers/scsi/ufs/ufshcd.c | 2 ++ 2 files changed, 3 inser

[PATCH v1 2/2] scsi: ufs: Cleanup device vendor and quirk definition

2020-06-09 Thread Stanley Chu
Cleanup below items, - Arrange vendor name in alphabetical order - Squash device quirks as compact as possible in device quirk table to enhance performance of the lookup. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs_quirks.h | 2 +- drivers/scsi/ufs/ufshcd.c | 6 ++ 2 files chan

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

2020-06-09 Thread Christophe JAILLET
Le 10/06/2020 à 04:41, Martin K. Petersen a écrit : On Sat, 30 May 2020 09:29:33 +0200, Christophe JAILLET wrote: The dev_id used in 'request_irq()' and 'free_irq()' should match. So use 'host' in both cases. Applied to 5.8/scsi-queue, thanks! [1/1] scsi: powertec: Fix different dev_id betwee

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

2020-06-09 Thread Christophe JAILLET
Le 10/06/2020 à 04:41, Martin K. Petersen a écrit : On Sat, 30 May 2020 09:34:18 +0200, Christophe JAILLET wrote: The dev_id used in 'request_irq()' and 'free_irq()' should match. So use 'host' in both cases. Applied to 5.8/scsi-queue, thanks! [1/1] scsi: eesox: Fix different dev_id between r

Re: Re: [PATCH v2] scripts/spelling: Recommend blocklist/allowlist instead of blacklist/whitelist

2020-06-09 Thread SeongJae Park
On Tue, 09 Jun 2020 18:35:46 -0700 Joe Perches wrote: > On Tue, 2020-06-09 at 14:25 +0200, SeongJae Park wrote: > > From: SeongJae Park > > > > This commit recommends the patches to replace 'blacklist' and > > 'whitelist' with the 'blocklist' and 'allowlist', because the new > > suggestions are

Re: [RFC PATCH v4 07/10] vfio/pci: introduce a new irq type VFIO_IRQ_TYPE_REMAP_BAR_REGION

2020-06-09 Thread Yan Zhao
On Fri, Jun 05, 2020 at 10:13:01AM -0600, Alex Williamson wrote: > On Thu, 4 Jun 2020 22:02:31 -0400 > Yan Zhao wrote: > > > On Wed, Jun 03, 2020 at 10:10:58PM -0600, Alex Williamson wrote: > > > On Wed, 3 Jun 2020 22:42:28 -0400 > > > Yan Zhao wrote: > > > > > > > On Wed, Jun 03, 2020 at 05:

Re: [PATCH v3 1/4] fs, net: Standardize on file_receive helper to move fds across processes

2020-06-09 Thread Kees Cook
On Tue, Jun 09, 2020 at 11:27:30PM +0200, Christian Brauner wrote: > On June 9, 2020 10:55:42 PM GMT+02:00, Kees Cook > wrote: > >LOL. And while we were debating this, hch just went and cleaned stuff up: > > > >2618d530dd8b ("net/scm: cleanup scm_detach_fds") > > > >So, um, yeah, now my proposal

Re: [PATCH v2] HID: usbhid: do not sleep when opening device

2020-06-09 Thread Guenter Roeck
On Tue, Jun 9, 2020 at 9:38 PM Dmitry Torokhov wrote: > > usbhid tries to give the device 50 milliseconds to drain its queues when > opening the device, but dies it naively by simply sleeping in open handler, > which slows down device probing (and thus may affect overall boot time). > > However we

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

2020-06-09 Thread David Rientjes
On Tue, 9 Jun 2020, Christoph Hellwig wrote: > > Working theory is that CONFIG_DMA_NONCOHERENT_MMAP getting set is causing > > the error_code in the page fault path. Debugging with Alex off-thread we > > found that dma_{alloc,free}_from_pool() are not getting called from the > > new code in dm

Re: [PATCH] docs/zh_CN: update sysfs.txt about show() usage

2020-06-09 Thread Alex Shi
Reviewed-by: Alex Shi Thanks Alex 在 2020/6/10 上午10:53, Chen Zhou 写道: > Update the show() usage according to the English version. > > Signed-off-by: Chen Zhou > --- > Documentation/translations/zh_CN/filesystems/sysfs.txt | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff

Re: [patch 113/131] mm: balance LRU lists based on relative thrashing

2020-06-09 Thread Joonsoo Kim
2020년 6월 9일 (화) 오후 11:46, Johannes Weiner 님이 작성: > > On Tue, Jun 09, 2020 at 05:15:33PM +0800, Alex Shi wrote: > > > > > > 在 2020/6/4 上午7:03, Andrew Morton 写道: > > > > > > + /* XXX: Move to lru_cache_add() when it supports new vs putback */ > > > > Hi Hannes, > > > > Sorry for a bit lost, would y

[PATCH] mm/page_alloc: silence a KASAN false positive

2020-06-09 Thread Qian Cai
kernel_init_free_pages() will use memset() on s390 to clear all pages from kmalloc_order() which will override KASAN redzones because a redzone was setup from the end of the allocation size to the end of the last page. Silence it by not reporting it there. An example of the report is, BUG: KASAN:

[PATCH 1/2] perf expr: Add d_ratio operation

2020-06-09 Thread Ian Rogers
This simplifies computing ratios in json expressions. Signed-off-by: Ian Rogers --- tools/perf/util/expr.l | 1 + tools/perf/util/expr.y | 14 -- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/expr.l b/tools/perf/util/expr.l index f397bf8b1a48..298d8

[PATCH 2/2] perf expr: Add < and > operators

2020-06-09 Thread Ian Rogers
These are broadly useful and necessary for Intel's top-down analysis. Signed-off-by: Ian Rogers --- tools/perf/util/expr.l | 2 ++ tools/perf/util/expr.y | 5 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/expr.l b/tools/perf/util/expr.l index 298d86660a96..1

Re: [PATCH v2 07/12] mm/hugetlb: do not modify user provided gfp_mask

2020-06-09 Thread Joonsoo Kim
2020년 6월 9일 (화) 오후 10:54, Michal Hocko 님이 작성: > > On Wed 27-05-20 15:44:58, Joonsoo Kim wrote: > > From: Joonsoo Kim > > > > It's not good practice to modify user input. Instead of using it to > > build correct gfp_mask for APIs, this patch introduces another gfp_mask > > field, __gfp_mask, for in

Dear: Sir/Madam,

2020-06-09 Thread Mr. David Lance Bowdich
Date: 10th June 2020. Time: 09:45am (Washington DC Time GMT) Dear: Sir/Madam, This official memorandum is to know if you receive our previous mail. Officially Sealed. Mr. David Lance Bowdich. bakhti...@azn.ir | metallo.com Disclaimer: This message (including any attachments) is intended fo

回复: 回复: [PATCH v2] usb: gadget: function: printer: fix use-after-free in __lock_acquire

2020-06-09 Thread Zhang, Qiang
cdev object reference count and "struct printer_dev" object reference count(kref), This two reference counts do not conflict. in file usb-skeleton.c also used a similar method, "struct usb_skel" contains kref members. thanks, Zqiang 发件人: Greg KH 发送时

[PATCH 0/2] Use __scm_install_fd() more widely

2020-06-09 Thread Kees Cook
Hi, This extends the recent work hch did for scm_detach_fds(), and updates the compat path as well, fixing bugs in the process. Additionally, an effectively incomplete and open-coded __scm_install_fd() is fixed in pidfd_getfd(). Thanks! -Kees Kees Cook (2): net/scm: Regularize compat handling

[PATCH 2/2] pidfd: Replace open-coded partial __scm_install_fd()

2020-06-09 Thread Kees Cook
The sock counting (sock_update_netprioidx() and sock_update_classid()) was missing from this implementation of fd installation, compared to SCM_RIGHTS. Use the new scm helper to get the work done, after adjusting it to return the installed fd and accept a NULL user pointer. Fixes: 8649c322f75c ("p

[PATCH 1/2] net/scm: Regularize compat handling of scm_detach_fds()

2020-06-09 Thread Kees Cook
Duplicate the cleanups from commit 2618d530dd8b ("net/scm: cleanup scm_detach_fds") into the compat code. Also moves the check added in commit 1f466e1f15cf ("net: cleanly handle kernel vs user buffers for ->msg_control") to before the compat call, even though it should be impossible for an in-kern

Re: [PATCH v2 0/2] fw_devlink: Improve cycle detection in DT

2020-06-09 Thread John Stultz
On Tue, Jun 9, 2020 at 6:19 PM Saravana Kannan wrote: > > Patch 2/2 explain the series. Just using a cover letter to thread the > series and add CC's. > > -Saravana > > v1 -> v2: > Patch 2/2: > - Added more comments > - Fixed missing put_device() > - Fixed stupid fall through in the error case > >

[git pull] Input updates for v5.8-rc0

2020-06-09 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get: - a new driver for Azoteq IQS269A capacitive touch controller - a new driver for Cypress CY8CTMA140 touchscreen - updates to Elan

Re: [PATCH V2] vdpa: introduce virtio pci driver

2020-06-09 Thread Michael S. Tsirkin
On Wed, Jun 10, 2020 at 11:59:20AM +0800, Jason Wang wrote: > This patch introduce a vDPA driver for virtio-pci device. It bridges > the virtio-pci control command to the vDPA bus. This will be used for > developing new features for both software vDPA framework and hardware > vDPA feature. The mai

[GIT PULL] virtio: features, fixes

2020-06-09 Thread Michael S. Tsirkin
There's a single commit here that I tweaked since linux-next - the change is in printk format string which I consider trivial enough not force wait for more testing. A couple of hashes are different from what's in linux-next though. I also upgraded the machine I used to sign the tag (didn't change

Re: [PATCH] usb/gadget/function: introduce Built-in CDROM support

2020-06-09 Thread Peter Chen
On 20-06-10 10:32:29, Macpaul Lin wrote: > Introduce Built-In CDROM (BICR) support. > This feature depends on USB_CONFIGFS_MASS_STORAGE option. > > 1. Some settings and new function is introduced for BICR. > 2. Some work around for adapting Android settings is intorduced as well. %s/intorduced/in

[PATCH v2] HID: usbhid: do not sleep when opening device

2020-06-09 Thread Dmitry Torokhov
usbhid tries to give the device 50 milliseconds to drain its queues when opening the device, but dies it naively by simply sleeping in open handler, which slows down device probing (and thus may affect overall boot time). However we do not need to sleep as we can instead mark a point of time in th

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

2020-06-09 Thread Kamalesh Babulal
On 6/9/20 11:42 PM, Matt Helsley wrote: [...] >> Hi Matt, >> >> I was trying out the patch series on ppc64le and found that __mcount_loc >> and .rela__mcount_loc section pairs do not get generated. >> >> # readelf -S fs/proc/cmdline.o|grep mcount >> # >> >> Debugged the cause to get_mcountsym()'

Re: [PATCH 2/2] regulator: Add driver for cros-ec-regulator

2020-06-09 Thread Pi-Hsun Shih
Thanks for the review, some inline reply: On Tue, Jun 9, 2020 at 7:19 PM Mark Brown wrote: > > On Tue, Jun 09, 2020 at 03:59:55PM +0800, Pi-Hsun Shih wrote: > > > +static int cros_ec_regulator_set_state(struct regulator_dev *dev, bool > > enable) > > +{ > > + struct cros_ec_regulator_data *d

[PATCH] x86/microcode: Do not select FW_LOADER

2020-06-09 Thread Herbert Xu
The x86 microcode support works just fine without FW_LOADER. In fact these days most people load them early in boot so FW_LOADER never gets into the picture anyway. People who need the FW_LOADER capability can still enable it. Signed-off-by: Herbert Xu diff --git a/arch/x86/Kconfig b/arch/x86/

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

2020-06-09 Thread Bart Van Assche
On 2020-06-04 18:38, Daejun Park wrote: > + if (total_srgn_cnt != 0) { > + dev_err(hba->dev, "ufshpb(%d) error total_subregion_count %d", > + hpb->lun, total_srgn_cnt); > + goto release_srgn_table; > + } > + > + return 0; > +release_srgn_table

Re: two more fixes for sysctl

2020-06-09 Thread Al Viro
On Tue, Jun 09, 2020 at 07:08:17PM +0200, Christoph Hellwig wrote: > Hi Al, > > two more fixes for the kernel pointers in the sysctl handlers. Applied and pushed. Let me beat it up a bit, if it survives - to Linus it goes...

  1   2   3   4   5   6   7   8   9   10   >