Re: [PATCH v1 2/9] extcon: extcon-ptn5150: Switch to GENMASK() for VBUS detection macro

2020-08-26 Thread Krzysztof Kozlowski
On Tue, Aug 18, 2020 at 02:57:20PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Switch to GENMASK() for VBUS detection macro. > > Signed-off-by: Ramuthevar Vadivel Murugan > > --- > drivers/extcon/extcon-ptn5150.c | 9 +++-- > 1 file changed, 3 insertio

Re: [PATCH v1 3/9] extcon: extcon-ptn5150: Switch to BIT() macro for cable attach

2020-08-26 Thread Krzysztof Kozlowski
On Tue, Aug 18, 2020 at 02:57:21PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Switch to BIT() macro for the cable attach. Squash it. > > Signed-off-by: Ramuthevar Vadivel Murugan > > --- > drivers/extcon/extcon-ptn5150.c | 4 +--- > 1 file changed, 1 in

[PATCH 18/19] z2ram: use separate gendisk for the different modes

2020-08-26 Thread Christoph Hellwig
Use separate gendisks (which share a tag_set) for the different operating modes instead of redirecting the gendisk lookup using a probe callback. This avoids potential problems with aliased block_device instances and will eventually allow for removing the blk_register_region framework. Signed-off-

[PATCH 15/19] amiflop: use separate gendisks for Amiga vs MS-DOS mode

2020-08-26 Thread Christoph Hellwig
Use separate gendisks (which share a tag_set) for the native Amgiga vs the MS-DOS mode instead of redirecting the gendisk lookup using a probe callback. This avoids potential problems with aliased block_device instances and will eventually allow for removing the blk_register_region framework. Sig

[PATCH 19/19] block: switch gendisk lookup to a simple xarray

2020-08-26 Thread Christoph Hellwig
Now that bdev_map is only used for finding gendisks, we can use a simple xarray instead of the regions tracking structure for it. Signed-off-by: Christoph Hellwig --- block/genhd.c | 210 -- include/linux/genhd.h | 7 -- 2 files changed, 38 inser

Re: [PATCH v1 4/9] extcon: extcon-ptn5150: Switch to BIT() for cable detach macro

2020-08-26 Thread Krzysztof Kozlowski
On Tue, Aug 18, 2020 at 02:57:22PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Switch to BIT() macro for the cable detach. Squash it. Best regards, Krzysztof > > Signed-off-by: Ramuthevar Vadivel Murugan > > --- > drivers/extcon/extcon-ptn5150.c | 5 +--

[PATCH 16/19] ataflop: use a separate gendisk for each media format

2020-08-26 Thread Christoph Hellwig
The Atari floppy driver usually autodetects the media when used with the ormal /dev/fd? devices, which also are the only nodes created by udev. But it also supports various aliases that force a given media format. That is currently supported using the blk_register_region framework which finds the f

[PATCH 17/19] z2ram: reindent

2020-08-26 Thread Christoph Hellwig
reindent the driver using Lident as the code style was far away from normal Linux code. Signed-off-by: Christoph Hellwig --- drivers/block/z2ram.c | 497 -- 1 file changed, 237 insertions(+), 260 deletions(-) diff --git a/drivers/block/z2ram.c b/drivers/b

Re: [PATCH v1 5/9] extcon: extcon-ptn5150: Switch to GENMASK() for port attachment macro

2020-08-26 Thread Krzysztof Kozlowski
On Tue, Aug 18, 2020 at 02:57:23PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Switch to GENMASK() macro for the port attachment. Squash it. Best regards, Krzysztof > > Signed-off-by: Ramuthevar Vadivel Murugan > > --- > drivers/extcon/extcon-ptn5150.c

Re: [PATCH] iio: dpot-dac: fix code comment in dpot_dac_read_raw()

2020-08-26 Thread Peter Rosin
Hi! On 2020-08-26 02:08, Gustavo A. R. Silva wrote: > After the replacement of the /* fall through */ comment with the > fallthrough pseudo-keyword macro, the natural reading of a code > comment was broken. > > Fix the natural reading of such a comment and make it intelligible. > > Reported-by:

Re: [RFC PATCH 2/3] dmaengine: add peripheral configuration

2020-08-26 Thread Peter Ujfalusi
Hi Vinod, On 25/08/2020 14.02, Vinod Koul wrote: >> The only thing which might be an issue is that with the DMA_PREP_CMD the >> config_data is dma_addr_t (via dmaengine_prep_slave_single). > > Yes I came to same conclusion > >>> I did have a prototype with metadata but didnt work very well, the

Re: [RFC v4 16/20] drm/i915/dp: Extract drm_dp_get_sink_count()

2020-08-26 Thread Jani Nikula
On Tue, 25 Aug 2020, Lyude Paul wrote: > And of course, we'll also need to read the sink count from other drivers > as well if we're checking whether or not it's supported. So, let's > extract the code for this into another helper. > > v2: > * Fix drm_dp_dpcd_readb() ret check > * Add back comment

RE: x86/kprobes: kretprobe fails to triggered if kprobe at function entry is not optimized (trigger by int3 breakpoint)

2020-08-26 Thread eddy...@trendmicro.com
> -Original Message- > From: pet...@infradead.org > Sent: Tuesday, August 25, 2020 8:09 PM > To: Masami Hiramatsu > Cc: Eddy Wu (RD-TW) ; linux-kernel@vger.kernel.org; > x...@kernel.org; David S. Miller > > Subject: Re: x86/kprobes: kretprobe fails to triggered if kprobe at function

Re: [PATCH 1/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-08-26 Thread Geert Uytterhoeven
On Tue, Aug 25, 2020 at 8:02 PM Andrew Lunn wrote: > On Tue, Aug 25, 2020 at 07:03:09PM +0200, Łukasz Stelmach wrote: > > + if (netif_msg_pktdata(ax_local)) { > > + int loop; > > + netdev_info(ndev, "TX packet len %d, total len %d, seq %d\n", > > +

Re: [PATCH v7 05/10] arm64: hyperv: Add interrupt handlers for VMbus and stimer

2020-08-26 Thread Arnd Bergmann
On Wed, Aug 26, 2020 at 12:04 AM Michael Kelley wrote: > From: Arnd Bergmann Sent: Monday, August 24, 2020 11:54 AM > > > > I'm not sure what the correct solution should be, but what I'd try to > > do here is to move every function that just considers the platform > > rather than the architectur

Re: [PATCH] net: cdc_ncm: Fix build error

2020-08-26 Thread Bjørn Mork
YueHaibing writes: > If USB_NET_CDC_NCM is y and USB_NET_CDCETHER is m, build fails: > > drivers/net/usb/cdc_ncm.o:(.rodata+0x1d8): undefined reference to > `usbnet_cdc_update_filter' > > Select USB_NET_CDCETHER for USB_NET_CDC_NCM to fix this. Ouch. For some reason I assumed that was always s

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

2020-08-26 Thread Peter Chen
On 20-08-26 04:04:01, Pawel Laszczak wrote: > >On 20-08-25 15:00:59, Roger Quadros wrote: > >> 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 multipl

[PATCH 3/4] media: docs: use SPDX GPL-2.0 OR GFDL-1.1 instead of text on *.rst files

2020-08-26 Thread Mauro Carvalho Chehab
There are some files that are dual licensed GPL and GFDL. As SPDX v3.10 gained support for GFDL-1.1 with no invariant sections: https://spdx.org/licenses/GFDL-1.1-no-invariants-or-later.html Let's remove the dual license text, replacing them by: SPDX-License-Identifier: GPL-2.0

[PATCH 2/4] media: docs: use the new SPDX header for GFDL-1.1 on *.svg files

2020-08-26 Thread Mauro Carvalho Chehab
SPDX v3.10 gained support for GFDL-1.1 with no invariant sections: https://spdx.org/licenses/GFDL-1.1-no-invariants-or-later.html So, remove the license text, replacing them by this new SPDX license. Signed-off-by: Mauro Carvalho Chehab --- .../userspace-api/media/typical_media_device.

Re: [PATCH v7 07/10] arm64: hyperv: Initialize hypervisor on boot

2020-08-26 Thread Arnd Bergmann
On Tue, Aug 25, 2020 at 11:20 PM Michael Kelley wrote: > From: Arnd Bergmann Sent: Monday, August 24, 2020 11:34 AM > > On Mon, Aug 24, 2020 at 6:48 PM Michael Kelley > > wrote: > > > > I think this has come up before, and I still don't consider it an acceptable > > hack to hook platform initia

[PATCH 4/4] media: docs: use SPDX GPL-2.0 OR GFDL-1.1 instead of text on *.svg files

2020-08-26 Thread Mauro Carvalho Chehab
There are some files that are dual licensed GPL and GFDL. As SPDX v3.10 gained support for GFDL-1.1 with no invariant sections: https://spdx.org/licenses/GFDL-1.1-no-invariants-or-later.html Let's remove the dual license text, replacing them by: SPDX-License-Identifier: GPL-2.0

[PATCH] ARM: config: aspeed: Fix selection of media drivers

2020-08-26 Thread Joel Stanley
In the 5.7 merge window the media kconfig was restructued. For most platforms these changes set CONFIG_MEDIA_SUPPORT_FILTER=y which keeps unwanted drivers disabled. The exception is if a config sets EMBEDDED or EXPERT (see b0cd4fb27665). In that case the filter is set to =n, causing a bunch of DVB

Re: [PATCH v2 3/6] netlink/compat: Append NLMSG_DONE/extack to frag_list

2020-08-26 Thread Johannes Berg
On Wed, 2020-08-26 at 02:49 +0100, Dmitry Safonov wrote: > Modules those use netlink may supply a 2nd skb, (via frag_list) > that contains an alternative data set meant for applications > using 32bit compatibility mode. Do note, however, that until this day the facility here was only used by (and

Re: [PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-26 Thread kernel test robot
e' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sergey-Senozhatsky/i2c-consider-devices-with-of_match_table-during-i2c-device-probing/20200826-123138 base:d012a7190fc1fd72ed48911e77ca97ba4521bccd config: sh-allmodconfig (a

Re: [PATCH RESEND] fs: Move @f_count to different cacheline with @f_mode

2020-08-26 Thread Shaokun Zhang
Hi Will, 在 2020/8/22 0:02, Will Deacon 写道: > On Wed, Jun 24, 2020 at 04:32:28PM +0800, Shaokun Zhang wrote: >> get_file_rcu_many, which is called by __fget_files, has used >> atomic_try_cmpxchg now and it can reduce the access number of the global >> variable to improve the performance of atomic i

Re: [PATCH v8 2/3] drm: bridge: Add support for Cadence MHDP DPI/DP bridge

2020-08-26 Thread Tomi Valkeinen
Hi, On 11/08/2020 05:36, Laurent Pinchart wrote: >> +{ >> +u32 max_bw, req_bw, bpp; >> + >> +bpp = cdns_mhdp_get_bpp(&mhdp->display_fmt); >> +req_bw = mode->clock * bpp / 8; >> +max_bw = lanes * rate; > mode->clock is in kHz, while rate is expressed in 10kHz unit if I'm not > mista

[PATCH v1] scsi: libsas: set data_dir as DMA_NONE if libata mark qc as NODATA

2020-08-26 Thread Luo Jiaxing
We found that it will fail every time when set feature to SATA disk by "sdparm -s WCE=0 /dev/sde". After checking protocol, we know that MODE SELECT is the SCSI command for setting WCE, and it do not exist in the SATA protocol. Therefore, this commands are encapsulated in the SET FEATURE command i

Re: [PATCH] MAINTAINERS: add namespace entry

2020-08-26 Thread Aleksa Sarai
On 2020-08-25, Eric W. Biederman wrote: > C) You have overstated what I have agreed to here. >I have have previously said that I agree that having a MAINTAINERS >entry so people who are unfamiliar with the situation with namespaces >can find us. Given that most of the changes going fo

[PATCH] mm: memcg: Fix memcg reclaim soft lockup

2020-08-26 Thread Xunlei Pang
We've met softlockup with "CONFIG_PREEMPT_NONE=y", when the target memcg doesn't have any reclaimable memory. It can be easily reproduced as below: watchdog: BUG: soft lockup - CPU#0 stuck for 111s![memcg_test:2204] CPU: 0 PID: 2204 Comm: memcg_test Not tainted 5.9.0-rc2+ #12 Call Trace: shri

[PATCH] docs: trace: ring-buffer-design.rst: use the new SPDX tag

2020-08-26 Thread Mauro Carvalho Chehab
SPDX v3.10 gained support for GFDL-1.2 with no invariant sections: https://spdx.org/licenses/GFDL-1.2-invariants-only.html Let's use it, instead of keeping a license text for this file. Signed-off-by: Mauro Carvalho Chehab --- Documentation/trace/ring-buffer-design.rst | 26 +--

Re: [PATCH 2/5] Add manpages for move_mount(2) and open_tree(2)

2020-08-26 Thread Michael Kerrisk (man-pages)
On 8/24/20 12:08 PM, David Howells wrote: > Michael Kerrisk (man-pages) wrote: > >>> +To access the source mount object or the destination mountpoint, no >>> +permissions are required on the object itself, but if either pathname is >>> +supplied, execute (search) permission is required on all of

RE: [PATCH v3] exfat: integrates dir-entry getting and validation

2020-08-26 Thread Namjae Jeon
> Thank you for quick reply! > > On 2020/08/26 13:19, Namjae Jeon wrote: > >> On 2020/08/26 10:03, Namjae Jeon wrote: > Second: Range validation and type validation should not be separated. > When I started making this patch, I intended to add only range > validation. > Howeve

Re: [PATCH v1 2/9] extcon: extcon-ptn5150: Switch to GENMASK() for VBUS detection macro

2020-08-26 Thread Ramuthevar, Vadivel MuruganX
Hi, On 26/8/2020 2:59 pm, Krzysztof Kozlowski wrote: On Tue, Aug 18, 2020 at 02:57:20PM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Switch to GENMASK() for VBUS detection macro. Signed-off-by: Ramuthevar Vadivel Murugan --- drivers/extcon/extcon-ptn5150.c |

Re: [PATCH v2] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-26 Thread CK Hu
Hi, Chih-En: On Wed, 2020-08-26 at 14:21 +0800, Chih-En Hsu wrote: > This patch is to remove function "mtk_reg_write" since > Mediatek EFUSE hardware only supports read functionality > for NVMEM consumers. > Reviewed-by: CK Hu > Fixes: 4c7e4fe37766 ("nvmem: mediatek: Add Mediatek EFUSE driver"

RE: [PATCH 00/13] lib/generic-radix-tree: genradix bug fix and optimisations.

2020-08-26 Thread David Laight
From: Kent Overstreet > Sent: 25 August 2020 17:32 > > On Tue, Aug 25, 2020 at 04:00:35PM +, David Laight wrote: > > From: 'Marcelo Ricardo Leitner' > > > Sent: 25 August 2020 16:41 > > > > > > On Tue, Aug 25, 2020 at 02:52:34PM +, David Laight wrote: > > > > The genradix code is used by S

Re: [PATCH 8/9] rpmsg: virtio: use rpmsg_ns driver to manage ns announcement

2020-08-26 Thread Arnaud POULIQUEN
Hi mathieu, I Sent my V2 few seconds before receiving your comment :) Please find my answer below On 8/25/20 6:54 PM, Mathieu Poirier wrote: > Hi Arnaud, > > On Fri, Jul 31, 2020 at 01:47:31PM +0200, Arnaud Pouliquen wrote: >> Use the new rpmsg_ns API to send the name service announcements if >>

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

2020-08-26 Thread Pawel Laszczak
> >On 20-08-26 04:04:01, Pawel Laszczak wrote: >> >On 20-08-25 15:00:59, Roger Quadros wrote: >> >> 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 pac

Re: [PATCH v2 11/17] clk: imx: Add blk_ctrl combo driver

2020-08-26 Thread Philipp Zabel
On Tue, 2020-08-25 at 21:30 +0300, Abel Vesa wrote: [...] > > if (assert) > > pm_runtime_get_sync(); > > spin_lock_irqsave(); > > /* ... */ > > spin_unlock_irqrestore(); > > if (assert && asserted_before) > > pm_runtime_put(); > > > > On a second though

Re: [PATCH v1 3/9] extcon: extcon-ptn5150: Switch to BIT() macro for cable attach

2020-08-26 Thread Ramuthevar, Vadivel MuruganX
Hi, On 26/8/2020 2:59 pm, Krzysztof Kozlowski wrote: On Tue, Aug 18, 2020 at 02:57:21PM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Switch to BIT() macro for the cable attach. Squash it. Sure, will squash it and rebase over your patches then send it, thanks! B

Re: [PATCH 2/2] dt-bindings: interrupt-controller: Add MStar interrupt controller

2020-08-26 Thread Mark-PK Tsai
From: Rob Herring >> + >> + "#interrupt-cells": >> +const: 3 >> +description: | >> + Use the same format as specified by GIC in arm,gic.yaml. > >That's odd. You have the same SPI and PPI stuff? > No, but I just want to keep the format same as arm,gic, and let the driver bypass 1st

Re: [PATCH 1/2] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-08-26 Thread mkrishn
On 2020-08-25 04:27, Rob Herring wrote: On Mon, Aug 10, 2020 at 07:08:02PM +0530, Krishna Manikandan wrote: MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks like DPU display controller, DSI etc. Add YAML schema for the device tree bindings for the same. Signed-off-by: Krishna Manikand

RE: [PATCH] [v2] blk-mq: use BLK_MQ_NO_TAG for no tag

2020-08-26 Thread Tianxianting
Hi Ming Lei Thanks for your quick comment. As the function request_to_qc_t() in 'include/linux/blk-mq.h ' used the magic '-1', Seems it is hard to replace it with BLK_MQ_NO_TAG :( -Original Message- From: Ming Lei [mailto:ming@redhat.com] Sent: Wednesday, August 26, 2020 12:29 PM To:

[PATCH] drm/hisilicon: Removed the dependency on the mmu

2020-08-26 Thread Tian Tao
hibmc can only be used in ARM64 architectures, and mmu defaults to y in arch/arm64/Kconfig, so there is no need to add a dependency on mmu in hibmc's kconfig. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

Re: [PATCH] iommu: Add support to filter non-strict/lazy mode based on device names

2020-08-26 Thread Sai Prakash Ranjan
Hi, On 2020-08-26 03:45, Doug Anderson wrote: Hi, On Tue, Aug 25, 2020 at 12:01 PM Sai Prakash Ranjan wrote: Hi, On 2020-08-25 21:40, Doug Anderson wrote: > Hi, > > On Tue, Aug 25, 2020 at 8:43 AM Sai Prakash Ranjan > wrote: >> >> Currently the non-strict or lazy mode of TLB invalidation c

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

2020-08-26 Thread Peter Chen
> > > > > >On 20-08-26 04:04:01, Pawel Laszczak wrote: > >> >On 20-08-25 15:00:59, Roger Quadros wrote: > >> >> 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 > >> >>

Re: [PATCH 4.19 00/71] 4.19.142-rc1 review

2020-08-26 Thread Pavel Machek
Hi! > This is the start of the stable review cycle for the 4.19.142 release. > There are 71 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. > > Responses should be made by Wed, 26 Aug 2020 08:23:34 +

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

2020-08-26 Thread Daniel Wagner
Hi Sebastian, On Mon, Aug 24, 2020 at 05:46:05PM +0200, Sebastian Andrzej Siewior wrote: > I'm pleased to announce the v5.9-rc2-rt1 patch set. I gave it a quick run on my test system. Can't boot the system at this point. Didn't look closer at it, maybe it's something obvious... stack segment: 0

Re: [PATCH 4.4 00/33] 4.4.234-rc1 review

2020-08-26 Thread Pavel Machek
Hi! > Responses should be made by Wed, 26 Aug 2020 08:23:34 +. > Anything received after that time might be too late. > > The whole patch series can be found in one patch at: > > https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.4.234-rc1.gz > or in the git tree and br

Re: [PATCH] mm: memcg: Fix memcg reclaim soft lockup

2020-08-26 Thread Michal Hocko
On Wed 26-08-20 15:27:02, Xunlei Pang wrote: > We've met softlockup with "CONFIG_PREEMPT_NONE=y", when > the target memcg doesn't have any reclaimable memory. Do you have any scenario when this happens or is this some sort of a test case? > It can be easily reproduced as below: > watchdog: BUG:

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

2020-08-26 Thread Sebastian Andrzej Siewior
On 2020-08-26 10:08:02 [+0200], Daniel Wagner wrote: > Hi Sebastian, Hi, > On Mon, Aug 24, 2020 at 05:46:05PM +0200, Sebastian Andrzej Siewior wrote: > > I'm pleased to announce the v5.9-rc2-rt1 patch set. > > I gave it a quick run on my test system. Can't boot the system at this > point. Didn't

Re: [PATCH] coccinelle: api: update kzfree script to kfree_sensitive

2020-08-26 Thread Denis Efremov
Ping? On 8/11/20 10:49 AM, Denis Efremov wrote: > Commit 453431a54934 ("mm, treewide: rename kzfree() to kfree_sensitive()") > renames kzfree to kfree_sensitive and uses memzero_explicit(...) instead of > memset(..., 0, ...) internally. Update cocci script to reflect these > changes. > > Signed-o

[PATCH v2 5/5] drm/bridge: ps8640: Rework power state handling

2020-08-26 Thread Enric Balletbo i Serra
The get_edid() callback can be triggered anytime by an ioctl, i.e drm_mode_getconnector (ioctl) -> drm_helper_probe_single_connector_modes -> drm_bridge_connector_get_modes -> ps8640_bridge_get_edid Actually if the bridge pre_enable() function was not called before get_edid

[PATCH v2 1/5] drm/bridge_connector: Set default status connected for eDP connectors

2020-08-26 Thread Enric Balletbo i Serra
In an eDP application, HPD is not required and on most bridge chips useless. If HPD is not used, we need to set initial status as connected, otherwise the connector created by the drm_bridge_connector API remains in an unknown state. Reviewed-by: Laurent Pinchart Acked-by: Sam Ravnborg Signed-of

[PATCH v2 0/5] drm/bridge: ps8640: Make sure all needed is powered to get the EDID

2020-08-26 Thread Enric Balletbo i Serra
The first patch was initially part of the series [1] but for some reason was not picked when the series were merged, so I included in this series because it is needed to make the others to work properly. The same happened for the second patch, was part of series [1] but not merged. The third patc

[PATCH v2 2/5] drm/bridge: ps8640: Get the EDID from eDP control

2020-08-26 Thread Enric Balletbo i Serra
The PS8640 DSI-to-eDP bridge can retrieve the EDID, so implement the .get_edid callback and set the flag to indicate the core to use it. Reviewed-by: Laurent Pinchart Acked-by: Sam Ravnborg Signed-off-by: Enric Balletbo i Serra --- Changes in v2: - Included the patch `drm/bridge: ps8640: Get t

[PATCH v2 3/5] drm/bridge: ps8640: Return an error for incorrect attach flags

2020-08-26 Thread Enric Balletbo i Serra
Bridge drivers that implement the new model only shall return an error from their attach() handler when the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag is not set. So make sure we return an error because only the new drm_bridge model is supported. Reviewed-by: Sam Ravnborg Signed-off-by: Enric Balletbo i

[PATCH v2 4/5] drm/bridge: ps8640: Print an error if VDO control fails

2020-08-26 Thread Enric Balletbo i Serra
Print an error message inside ps8640_bridge_vdo_control() function when it fails so we can simplify a bit the callers, they will only need to check the error code. Reviewed-by: Sam Ravnborg Signed-off-by: Enric Balletbo i Serra --- Changes in v2: None drivers/gpu/drm/bridge/parade-ps8640.c |

Re: [net-next v5 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-08-26 Thread Vadym Kochan
On Tue, Aug 25, 2020 at 05:20:03PM -0700, David Miller wrote: > From: Vadym Kochan > Date: Tue, 25 Aug 2020 15:20:08 +0300 > > > +int prestera_dsa_parse(struct prestera_dsa *dsa, const u8 *dsa_buf) > > +{ > > + __be32 *dsa_words = (__be32 *)dsa_buf; > > + enum prestera_dsa_cmd cmd; > > + u3

Re: [PATCH 01/19] char_dev: replace cdev_map with an xarray

2020-08-26 Thread Greg Kroah-Hartman
On Wed, Aug 26, 2020 at 08:24:28AM +0200, Christoph Hellwig wrote: > None of the complicated overlapping regions bits of the kobj_map are > required for the character device lookup, so just a trivial xarray > instead. > > Signed-off-by: Christoph Hellwig Really? This is ok to use and just as fa

Re: [PATCH 02/19] block: merge drivers/base/map.c into block/genhd.c

2020-08-26 Thread Greg Kroah-Hartman
On Wed, Aug 26, 2020 at 08:24:29AM +0200, Christoph Hellwig wrote: > Now that there is just a single user of the kobj_map functionality left, > merge it into the user to prepare for additional simplications. > > Signed-off-by: Christoph Hellwig YES!!! Reviewed-by: Greg Kroah-Hartman

RE: [PATCH] spi: spi-fsl-dspi: Add ACPI support

2020-08-26 Thread Qiang Zhao
On Mon, Aug 24, 2020 at 19:25, Mark Brown wrote: > -Original Message- > From: Mark Brown > Sent: 2020年8月24日 19:25 > To: Vladimir Oltean > Cc: kuldip dwivedi ; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Qiang Zhao > ; Pankaj Bansal ; Varun Sethi > ; Tanveer Alam > Subje

Re: x86/kprobes: kretprobe fails to triggered if kprobe at function entry is not optimized (trigger by int3 breakpoint)

2020-08-26 Thread Masami Hiramatsu
On Wed, 26 Aug 2020 07:07:09 + "eddy...@trendmicro.com" wrote: > > > -Original Message- > > From: pet...@infradead.org > > Sent: Tuesday, August 25, 2020 8:09 PM > > To: Masami Hiramatsu > > Cc: Eddy Wu (RD-TW) ; linux-kernel@vger.kernel.org; > > x...@kernel.org; David S. Miller >

Re: [PATCH RESEND] fs: Move @f_count to different cacheline with @f_mode

2020-08-26 Thread Aleksa Sarai
On 2020-08-26, Shaokun Zhang wrote: > 在 2020/8/22 0:02, Will Deacon 写道: > > - This thing is tagged with __randomize_layout, so it doesn't help anybody > > using that crazy plugin > > This patch isolated the @f_count with @f_mode absolutely and we don't care the > base address of the structu

Re: [PATCH v4 0/7] Convert mtk-dsi to drm_bridge API and get EDID for ps8640 bridge

2020-08-26 Thread Enric Balletbo i Serra
Hi Bilal, On 24/8/20 21:01, Bilal Wasim wrote: > Hi Chun-Kuan, Enric, > > Is there any plan to merge the following commits in this series to the > mainline? > > drm/bridge: ps8640: Get the EDID from eDP control > drm/bridge_connector: Set default status connected for eDP connectors > Just

Re: [PATCH] Documentation: add minimum clang/llvm version

2020-08-26 Thread Will Deacon
On Tue, Aug 25, 2020 at 03:25:51PM -0700, Nick Desaulniers wrote: > Based on a vote at the LLVM BoF at Plumbers 2020, we decided to start > small, supporting just one formal upstream release of LLVM for now. > > We can probably widen the support window of supported versions over > time. Also, not

Re: [PATCH 4.19 00/71] 4.19.142-rc1 review

2020-08-26 Thread Greg Kroah-Hartman
On Wed, Aug 26, 2020 at 10:07:32AM +0200, Pavel Machek wrote: > Hi! > > > This is the start of the stable review cycle for the 4.19.142 release. > > There are 71 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with these being applied, please > >

[PATCH] Revert "powerpc/powernv/idle: Replace CPU feature check with PVR check"

2020-08-26 Thread Pratik Rajesh Sampat
Cpuidle stop state implementation has minor optimizations for P10 where hardware preserves more SPR registers compared to P9. The current P9 driver works for P10, although does few extra save-restores. P9 driver can provide the required power management features like SMT thread folding and core lev

Re: [PATCH v2] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-26 Thread andrew-ct chen
Hi Chih-En, On Wed, 2020-08-26 at 14:21 +0800, Chih-En Hsu wrote: > This patch is to remove function "mtk_reg_write" since > Mediatek EFUSE hardware only supports read functionality > for NVMEM consumers. The fixed patch should be ba360fd040e34 ("nvmem: mtk-efuse: remove nvmem regmap dependency")

Re: [PATCH v2 00/20] ALSA: hda/ca0132 - Add AE-7 support/Control cleanup.

2020-08-26 Thread Takashi Iwai
On Tue, 25 Aug 2020 22:10:19 +0200, Connor McAdams wrote: > > This patch series adds support for the Sound Blaster AE-7 along with > adding new controls and cleaning up the old ones. I have personally > tested the Recon3D, Recon3Di, Sound Blaster Z/ZxR, and AE-5 cards to > confirm they work with t

Re: [RFC PATCH 3/3] opp: Power on (virtual) power domains managed by the OPP core

2020-08-26 Thread Stephan Gerhold
On Tue, Aug 25, 2020 at 02:42:54PM +0200, Ulf Hansson wrote: > On Tue, 25 Aug 2020 at 09:34, Stephan Gerhold wrote: > > > > On Tue, Aug 25, 2020 at 08:43:42AM +0200, Ulf Hansson wrote: > > > On Tue, 25 Aug 2020 at 06:43, Viresh Kumar > > > wrote: > > > > > > > > On 24-08-20, 17:08, Stephan Gerho

Re: x86/kprobes: kretprobe fails to triggered if kprobe at function entry is not optimized (trigger by int3 breakpoint)

2020-08-26 Thread Masami Hiramatsu
Hi Peter, On Tue, 25 Aug 2020 14:09:11 +0200 pet...@infradead.org wrote: > > @@ -1934,50 +1884,28 @@ unsigned long __weak arch_deref_entry_point(void > *entry) > static int pre_handler_kretprobe(struct kprobe *p, struct pt_regs *regs) > { > struct kretprobe *rp = container_of(p, struct

回复: 回复: [PATCH] debugobjects: install cpu hotplug callback

2020-08-26 Thread Zhang, Qiang
发件人: linux-kernel-ow...@vger.kernel.org 代表 Thomas Gleixner 发送时间: 2020年8月26日 7:53 收件人: Waiman Long; Zhang, Qiang; el...@google.com 抄送: linux-kernel@vger.kernel.org; a...@linux-foundation.org 主题: Re: 回复: [PATCH] debugobjects: install cpu hotplug callback

Re: [Intel-gfx] 5.9-rc1: graphics regression moved from -next to mainline

2020-08-26 Thread Harald Arnesen
Linus Torvalds [25.08.2020 20:19]: > On Tue, Aug 25, 2020 at 9:32 AM Harald Arnesen wrote: >> >> > For posterity, I'm told the fix is [1]. >> > >> > [1] >> > https://lore.kernel.org/intel-gfx/20200821123746.16904-1-j...@8bytes.org/ >> >> Doesn't fix it for me. As soon as I start XFCE, the mouse

[PATCH v2 2/2] drm/amdkfd: Put ACPI table after using it

2020-08-26 Thread Hanjun Guo
The acpi_get_table() should be coupled with acpi_put_table() if the mapped table is not used at runtime to release the table mapping which can prevent the memory leak. In kfd_create_crat_image_acpi(), crat_table is copied to pcrat_image, and in kfd_create_vcrat_image_cpu(), the acpi_table is only

[PATCH v2 1/2] drm/amdkfd: Move the ignore_crat check before the CRAT table get

2020-08-26 Thread Hanjun Guo
If the ignore_crat is set to non-zero value, it's no point getting the CRAT table, so just move the ignore_crat check before we get the CRAT table. Signed-off-by: Hanjun Guo --- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/d

Re: [PATCH] Revert "powerpc/powernv/idle: Replace CPU feature check with PVR check"

2020-08-26 Thread Christophe Leroy
Le 26/08/2020 à 10:29, Pratik Rajesh Sampat a écrit : Cpuidle stop state implementation has minor optimizations for P10 where hardware preserves more SPR registers compared to P9. The current P9 driver works for P10, although does few extra save-restores. P9 driver can provide the required pow

RE: [PATCH 00/13] lib/generic-radix-tree: genradix bug fix and optimisations.

2020-08-26 Thread David Laight
From: David Laight > Sent: 26 August 2020 08:36 ... > I'm going to try marking the lookup functions with '__attribute__ ((pure))'. > That should help the sctp code that does repeated SCTP_SI(). > In reality I want to mark them __attribute__ ((const)) - including the > inline wrappers, but that isn'

Re: [PATCH v2] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-26 Thread Chih-En Hsu
Hi Andrew: OK, I will fix it. Thanks a lot. Alex On Wed, 2020-08-26 at 16:30 +0800, andrew-ct chen wrote: > Hi Chih-En, > > On Wed, 2020-08-26 at 14:21 +0800, Chih-En Hsu wrote: > > This patch is to remove function "mtk_reg_write" since > > Mediatek EFUSE hardware only supports read functional

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

2020-08-26 Thread John Ogness
On 2020-08-24, John Ogness wrote: > @@ -1157,6 +1431,14 @@ bool prb_reserve(struct prb_reserved_entry *e, struct > printk_ringbuffer *rb, > goto fail; > } > > + /* > + * New data is about to be reserved. Once that happens, previous > + * descriptors are no long

[PATCH] arm64: dts: sparx5: Fix Sparx5 SDHCI node name

2020-08-26 Thread Lars Povlsen
This patch corrects the SDHCI node name to conform with the devicetree specification ("mmc0@60080" => "mmc@60080"). Signed-off-by: Lars Povlsen --- arch/arm64/boot/dts/microchip/sparx5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/microchip/

Re: [patch RFC 10/38] x86/ioapic: Consolidate IOAPIC allocation

2020-08-26 Thread Boqun Feng
Hi Thomas, I hit a compiler error while I was trying to compile this patchset: arch/x86/kernel/devicetree.c: In function ‘dt_irqdomain_alloc’: arch/x86/kernel/devicetree.c:232:6: error: ‘struct irq_alloc_info’ has no member named ‘ioapic_id’; did you mean ‘ioapic’? 232 | tmp.ioapic_id = mpc_i

[PATCH v3] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-26 Thread Chih-En Hsu
This patch is to remove function "mtk_reg_write" since Mediatek EFUSE hardware only supports read functionality for NVMEM consumers. Fixes: ba360fd040e3 ("nvmem: mtk-efuse: remove nvmem regmap dependency") Signed-off-by: Chih-En Hsu --- drivers/nvmem/mtk-efuse.c | 14 -- 1 file chang

[PATCH] ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion NT950XCJ-X716A

2020-08-26 Thread Adrien Crivelli
The Galaxy Book Ion NT950XCJ-X716A (15 inches) uses the same ALC298 codec as other Samsung laptops which have the no headphone sound bug. I confirmed on my own hardware that this fixes the bug. This also correct the model name for the 13 inches version. It was incorrectly referenced as NT950XCJ-X7

[PATCH v6] dt-bindings: mmc: Add Sparx5 SDHCI controller bindings

2020-08-26 Thread Lars Povlsen
The Sparx5 SDHCI controller is based on the Designware controller IP. Signed-off-by: Lars Povlsen --- Note: This patch is now separated from original patch series. v6 changes: - Change "mmc0@60080" => "mmc@60080" [from earlier patch series, only applicable changes] Changes in v5: - Ch

Re: [PATCH v2] soundwire: intel: fix intel_suspend/resume defined but not used warning

2020-08-26 Thread Vinod Koul
On 24-08-20, 21:32, Bard Liao wrote: > When CONFIG_PM_SLEEP is not defined, GCC throws compilation warnings: > > drivers/soundwire/intel.c:1799:12: warning: ‘intel_resume’ defined but not > used [-Wunused-function] > static int intel_resume(struct device *dev) > ^~~~ > drivers

Re: [PATCH] ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion NT950XCJ-X716A

2020-08-26 Thread Takashi Iwai
On Wed, 26 Aug 2020 10:40:14 +0200, Adrien Crivelli wrote: > > The Galaxy Book Ion NT950XCJ-X716A (15 inches) uses the same ALC298 > codec as other Samsung laptops which have the no headphone sound bug. I > confirmed on my own hardware that this fixes the bug. > > This also correct the model name

[PATCH] drm/mgag200: fix spelling mistake "expeced" -> "expected"

2020-08-26 Thread Colin King
From: Colin Ian King There is a spelling mistake in a drm_warn message. Fix it. Signed-off-by: Colin Ian King --- drivers/gpu/drm/mgag200/mgag200_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_d

Re: [PATCH] m68k: Replace HTTP links with HTTPS ones

2020-08-26 Thread Geert Uytterhoeven
Hi Alexander, Thanks for your patch! On Fri, Jul 17, 2020 at 8:42 PM Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > Fo

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

2020-08-26 Thread Borislav Petkov
On Tue, Aug 25, 2020 at 02:01:08PM +0100, Shiju Jose wrote: > After the 'commit b9cae27728d1 ("EDAC/ghes: Scan the system once on driver > init")' > applied, following error has occurred in ghes_edac_register() when > CONFIG_DEBUG_TEST_DRIVER_REMOVE is enabled. The null ghes_hw.dimms pointer > in

[RESEND PATCH v2 2/2] drm/mediatek: mtk_dpi: Convert to bridge driver

2020-08-26 Thread Enric Balletbo i Serra
Convert mtk_dpi to a bridge driver with built-in encoder support for compatibility with existing component drivers. Reviewed-by: Chun-Kuang Hu Signed-off-by: Enric Balletbo i Serra --- Changes in v2: - Maintain error message when attach to bridge fails. (Boris) drivers/gpu/drm/mediatek/mtk_dp

[RESEND PATCH v2 1/2] drm/mediatek: mtk_dpi: Rename bridge to next_bridge

2020-08-26 Thread Enric Balletbo i Serra
This is really a cosmetic change just to make a bit more readable the code after convert the driver to drm_bridge. The bridge variable name will be used by the encoder drm_bridge, and the chained bridge will be named next_bridge. Reviewed-by: Chun-Kuang Hu Signed-off-by: Enric Balletbo i Serra -

[RESEND PATCH v2 0/2] Convert mtk-dpi to drm_bridge API

2020-08-26 Thread Enric Balletbo i Serra
The mtk-dpi driver still uses the drm_encoder API which is now somewhat deprecated. We started to move all the Mediatek drivers to the drm_bridge API, like we did for the mtk-dsi driver [1], this is another small step to be able to fully convert the DRM Mediatek drivers to the drm_bridge API. A d

[PATCH v2] dt-bindings: spi: Convert spi-mtk-nor to json-schema

2020-08-26 Thread Ikjoon Jang
Convert Mediatek ARM SOC's serial NOR flash controller binding to json-schema format. Signed-off-by: Ikjoon Jang --- v2: remove unnecessary quotes, set interrupts as required, add unevaluatedProperties:false --- .../bindings/spi/mediatek,spi-mtk-nor.yaml| 85 +++ .../devi

Re: WARNING: ODEBUG bug in __do_softirq

2020-08-26 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:3a00d3df Add linux-next specific files for 20200825 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=15080fa990 kernel config: https://syzkaller.appspot.com/x/.config?x=9ef0a5f95935d4

Re: Re: [PATCH] rtc: sun6i: Fix memleak in sun6i_rtc_clk_init

2020-08-26 Thread dinghao . liu
> On Sun, Aug 23, 2020 at 3:59 PM Dinghao Liu wrote: > > > > When clk_hw_register_fixed_rate_with_accuracy() fails, > > clk_data should be freed. It's the same for the subsequent > > error paths. > > I suppose you should also unregister the already registered clocks > in the latter two error path

Re: [PATCH] m68k: Correct some typos in comments

2020-08-26 Thread Geert Uytterhoeven
Hi Finn, On Thu, Jul 23, 2020 at 1:50 AM Finn Thain wrote: > Signed-off-by: Finn Thain Thanks for your patch! > --- a/arch/m68k/kernel/head.S > +++ b/arch/m68k/kernel/head.S > @@ -1547,7 +1547,7 @@ func_return get_bi_record > * seven bits of the logical address (LA) are used as an

Re: [PATCH 3/4] soundwire: SDCA: add helper macro to access controls

2020-08-26 Thread Vinod Koul
On 25-08-20, 12:16, Pierre-Louis Bossart wrote: > The upcoming SDCA (SoundWire Device Class Audio) specification defines > a hierarchical encoding to interface with Class-defined capabilities. > > The specification is not yet accessible to the general public but this > information is released with

Re: [PATCH RESEND 04/10] crypto: hisilicon/zip - replace 'sprintf' with 'scnprintf'

2020-08-26 Thread shenyang (M)
On 2020/8/24 16:29, David Laight wrote: From: Yang Shen Sent: 24 August 2020 04:12 Replace 'sprintf' with 'scnprintf' to avoid overrun. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletio

[RESEND PATCH v4] iommu/mediatek: check 4GB mode by reading infracfg

2020-08-26 Thread Miles Chen
In previous discussion [1] and [2], we found that it is risky to use max_pfn or totalram_pages to tell if 4GB mode is enabled. Check 4GB mode by reading infracfg register, remove the usage of the un-exported symbol max_pfn. This is a step towards building mtk_iommu as a kernel module. [1] https:

Re: [PATCH] media: mx2_emmaprp: Fix memleak in emmaprp_probe

2020-08-26 Thread Hans Verkuil
On 25/08/2020 11:39, Dinghao Liu wrote: > When platform_get_irq() fails, we should release > vfd and unregister pcdev->v4l2_dev just like the > subsequent error paths. > > Fixes: d4e192cc44914 ("media: mx2_emmaprp: Check for platform_get_irq() > error") > Signed-off-by: Dinghao Liu > --- > driv

  1   2   3   4   5   6   7   8   9   10   >