Re: [PATCH] delayacct: clear right task's flag after blkio completes

2021-04-19 Thread Balbir Singh
On Wed, Apr 14, 2021 at 04:37:20PM +0800, Yafang Shao wrote: > When I was implementing a latency analyze tool by using task->delays and > other things, I found there's issue in delayacct. The issue is it should > clear the target's flag instead of current's in delayacct_blkio_end(). > > When I git

Re: [RESEND PATCH 1/2] delayacct: refactor the code to simplify the implementation

2021-04-19 Thread Balbir Singh
On Tue, Apr 13, 2021 at 09:37:26AM +0800, brookxu wrote: > From: Chunguang Xu > > The existing data structure is not very convenient for > expansion, and part of the code can be saved. Here, try > to optimize, which can make the code more concise and > easy to expand. > > Signed-off-by: Chunguan

Re: [PATCH v4 4/6] drm/sprd: add Unisoc's drm display controller driver

2021-04-19 Thread Kevin Tang
Hi, Maxime Ripard 于2021年4月15日周四 下午5:03写道: > > Hi, > > On Thu, Apr 15, 2021 at 08:18:52AM +0800, Kevin Tang wrote: > > Maxime Ripard 于2021年3月24日周三 下午7:10写道: > > > > +static struct sprd_dpu *sprd_crtc_init(struct drm_device *drm, > > > > + struct drm_plane *primary) > > > > +{

[PATCH] kbuild: deb-pkg: change the source package name to 'linux'

2021-04-19 Thread Masahiro Yamada
Change the source package name from 'linux-$(KERNELRELEASE)' to 'linux', which is aligned with the source package from the Debian community. The filenames will be changed as follows: [before] linux-5.12.0-rc3+_5.12.0-rc3+-1.dsc linux-5.12.0-rc3+_5.12.0-rc3+.orig.tar.gz linux-5.12.0-rc3+_5.1

[PATCH v5 1/3] kernel/resource: Allow region_intersects users to hold resource_lock

2021-04-19 Thread Alistair Popple
Introduce a version of region_intersects() that can be called with the resource_lock already held. This is used in a future fix to __request_free_mem_region(). Signed-off-by: Alistair Popple --- kernel/resource.c | 52 --- 1 file changed, 31 insertions

[PATCH v5 3/3] kernel/resource: Fix locking in request_free_mem_region

2021-04-19 Thread Alistair Popple
request_free_mem_region() is used to find an empty range of physical addresses for hotplugging ZONE_DEVICE memory. It does this by iterating over the range of possible addresses using region_intersects() to see if the range is free before calling request_mem_region() to allocate the region. Howeve

[PATCH v5 2/3] kernel/resource: Refactor __request_region to allow external locking

2021-04-19 Thread Alistair Popple
Refactor the portion of __request_region() done whilst holding the resource_lock into a separate function to allow callers to hold the lock. Signed-off-by: Alistair Popple --- kernel/resource.c | 52 +-- 1 file changed, 32 insertions(+), 20 deletions(-

Re: [PATCH v2 5/5] mm/shmem: fix shmem_swapin() race with swapoff

2021-04-19 Thread Huang, Ying
Miaohe Lin writes: > On 2021/4/19 10:15, Huang, Ying wrote: >> Miaohe Lin writes: >> >>> When I was investigating the swap code, I found the below possible race >>> window: >>> >>> CPU 1 CPU 2 >>> - - >>

RE: rtlwifi/rtl8192cu AP mode broken with PS STA

2021-04-19 Thread Pkshih
> -Original Message- > From: Larry Finger [mailto:larry.fin...@gmail.com] On Behalf Of Larry Finger > Sent: Monday, April 19, 2021 9:23 AM > To: Pkshih; Maciej S. Szmigiero > Cc: linux-wirel...@vger.kernel.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; > johan...@sipsolution

Re: [PATCH v4] kernel/resource: Fix locking in request_free_mem_region

2021-04-19 Thread Alistair Popple
On Friday, 16 April 2021 2:19:18 PM AEST Dan Williams wrote: > The revoke_iomem() change seems like something that should be moved > into a leaf helper and not called by __request_free_mem_region() > directly. Ok. I have split this up but left the call to revoke_iomem() in __request_free_mem_regi

RE: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-19 Thread Alice Guo (OSS)
> -Original Message- > From: Dominique MARTINET > Sent: 2021年4月19日 13:03 > To: Alice Guo (OSS) > Subject: Re: [RFC v1 PATCH 3/3] driver: update all the code that use > soc_device_match > > Alice Guo (OSS) wrote on Mon, Apr 19, 2021 at 12:27:22PM +0800: > > From: Alice Guo > > > > Upda

Re: [PATCH v2 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-19 Thread Huang, Ying
Miaohe Lin writes: > On 2021/4/19 10:48, Huang, Ying wrote: >> Miaohe Lin writes: >> >>> We will use percpu-refcount to serialize against concurrent swapoff. This >>> patch adds the percpu_ref support for swap. >>> >>> Signed-off-by: Miaohe Lin >>> --- >>> include/linux/swap.h | 3 +++ >>> m

Re: [syzbot] INFO: task hung in usb_remote_wakeup (2)

2021-04-19 Thread Dmitry Vyukov
On Sat, Apr 17, 2021 at 12:41 PM syzbot wrote: > > syzbot suspects this issue was fixed by commit: > > commit 363eaa3a450abb4e63bd6e3ad79d1f7a0f717814 > Author: Shuah Khan > Date: Tue Mar 30 01:36:51 2021 + > > usbip: synchronize event handler with sysfs code paths > > bisection log: h

[PATCH v4 0/3] drm/bridge: Add it66121 driver

2021-04-19 Thread Neil Armstrong
The IT66121 is a high-performance and low-power single channel HDMI transmitter, fully compliant with HDMI 1.3a, HDCP 1.2 and backward compatible to DVI 1.0 specifications. It supports pixel rates from 25MHz to 165MHz. This series contains document bindings, add vendor prefix, Kconfig to enable or

[PATCH v4 1/3] dt-bindings: display: bridge: add it66121 bindings

2021-04-19 Thread Neil Armstrong
From: Phong LE Add the ITE bridge HDMI it66121 bindings. Signed-off-by: Phong LE Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring Reviewed-by: Laurent Pinchart --- .../bindings/display/bridge/ite,it66121.yaml | 124 ++ 1 file changed, 124 insertions(+) create mode 10

[PATCH v4 3/3] MAINTAINERS: add it66121 HDMI bridge driver entry

2021-04-19 Thread Neil Armstrong
From: Phong LE Add Neil Armstrong and myself as maintainers Signed-off-by: Phong LE Signed-off-by: Neil Armstrong Reviewed-by: Robert Foss --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9ae8444c96b4..313b3374a51e 100644 --- a/MAINT

[PATCH v4 2/3] drm: bridge: add it66121 driver

2021-04-19 Thread Neil Armstrong
From: Phong LE This commit is a simple driver for bridge HMDI it66121. The input format is RBG and there is no color conversion. Audio, HDCP and CEC are not supported yet. Signed-off-by: Phong LE Signed-off-by: Neil Armstrong --- drivers/gpu/drm/bridge/Kconfig |8 + drivers/gpu/drm/

Re: [PATCH v2 5/5] mm/shmem: fix shmem_swapin() race with swapoff

2021-04-19 Thread Miaohe Lin
On 2021/4/19 15:04, Huang, Ying wrote: > Miaohe Lin writes: > >> On 2021/4/19 10:15, Huang, Ying wrote: >>> Miaohe Lin writes: >>> When I was investigating the swap code, I found the below possible race window: CPU 1 CPU 2 -

Re: [PATCH 1/1] mm: Fix struct page layout on 32-bit systems

2021-04-19 Thread Ilias Apalodimas
Hi Christoph, On Mon, Apr 19, 2021 at 08:34:41AM +0200, Christoph Hellwig wrote: > On Fri, Apr 16, 2021 at 04:27:55PM +0100, Matthew Wilcox wrote: > > On Thu, Apr 15, 2021 at 08:08:32PM +0200, Jesper Dangaard Brouer wrote: > > > See below patch. Where I swap32 the dma address to satisfy > > > pag

RE: [PATCH] ASoC: fsl: imx-pcm-dma: Don't request dma channel in probe

2021-04-19 Thread Robin Gong
Hi Lucas, On 2021/04/14 Lucas Stach wrote: > Hi Robin, > > Am Mittwoch, dem 14.04.2021 um 14:33 + schrieb Robin Gong: > > On 2020/05/20 17:43 Lucas Stach wrote: > > > Am Mittwoch, den 20.05.2020, 16:20 +0800 schrieb Shengjiu Wang: > > > > Hi > > > > > > > > On Tue, May 19, 2020 at 6:04 PM L

RE: [PATCH v32 4/4] scsi: ufs: Add HPB 2.0 support

2021-04-19 Thread Avri Altman
Hi, > if (dev_info->wspecversion >= UFS_DEV_HPB_SUPPORT_VERSION && > (b_ufs_feature_sup & UFS_DEV_HPB_SUPPORT)) { > - dev_info->hpb_enabled = true; > + bool hpb_en = false; > + > ufshpb_get_dev_info(hba, desc_buf); > + > +

[syzbot] INFO: rcu detected stall in tx

2021-04-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:50987bec Merge tag 'trace-v5.12-rc7' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1065c5fcd0 kernel config: https://syzkaller.appspot.com/x/.config?x=398c4d0fe6f66e68 das

Re: [PATCH v6 1/4] mfd: rt4831: Adds support for Richtek RT4831

2021-04-19 Thread Lee Jones
On Mon, 19 Apr 2021, ChiYuan Huang wrote: > Hi, Linux mfd reviewers: >It's been three weeks not to get any response from you. > Is there something wrong about this mfd patch? > If yes, please feel free to let me know. Couple of things: First, if you think a patch had fallen through the gaps,

Re: [PATCH v6 1/4] mfd: rt4831: Adds support for Richtek RT4831

2021-04-19 Thread Lee Jones
On Mon, 19 Apr 2021, Lee Jones wrote: > On Mon, 19 Apr 2021, ChiYuan Huang wrote: > > > Hi, Linux mfd reviewers: > >It's been three weeks not to get any response from you. > > Is there something wrong about this mfd patch? > > If yes, please feel free to let me know. > > Couple of things: >

Re: [PATCH v6 1/4] mfd: rt4831: Adds support for Richtek RT4831

2021-04-19 Thread Lee Jones
On Mon, 19 Apr 2021, Lee Jones wrote: > On Mon, 19 Apr 2021, Lee Jones wrote: > > > On Mon, 19 Apr 2021, ChiYuan Huang wrote: > > > > > Hi, Linux mfd reviewers: > > >It's been three weeks not to get any response from you. > > > Is there something wrong about this mfd patch? > > > If yes, ple

Re: [PATCH 00/31] Rid W=1 warnings from GFS2 and EncryptFS

2021-04-19 Thread Lee Jones
On Mon, 19 Apr 2021, Tyler Hicks wrote: > On 2021-03-30 17:44:27, Lee Jones wrote: > > This set is part of a larger effort attempting to clean-up W=1 > > kernel builds, which are currently overwhelmingly riddled with > > niggly little warnings. > > > > There is more to do in filesystems. Another

Re: [syzbot] INFO: rcu detected stall in tx

2021-04-19 Thread Dmitry Vyukov
On Mon, Apr 19, 2021 at 9:19 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:50987bec Merge tag 'trace-v5.12-rc7' of git://git.kernel.o.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1065c5fcd0 > kernel config:

Re: [PATCH v5] printk: Userspace format enumeration support

2021-04-19 Thread Rasmus Villemoes
On 16/04/2021 15.56, Chris Down wrote: > Hey Petr, Rasmus, >> This is great point! There are many other subsystem specific wrappers, >> e,g, ata_dev_printk(), netdev_printk(), snd_printk(), dprintk(). >> We should make it easy to index them as well. > > These would be nice to have, but we should

Re: [PATCH v2 01/15] usb: dwc2: Update exit hibernation when port reset is asserted

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:46 PM, Artur Petrosyan wrote: > No need to check for "DWC2_POWER_DOWN_PARAM_HIBERNATION" param > as "hsotg->hibernated" flag is already enough for exiting from > hibernation mode. > > - Removes checking of "DWC2_POWER_DOWN_PARAM_HIBERNATION" param. > > - For code readability Hibern

Re: [PATCH v2 03/15] usb: dwc2: Fix host mode hibernation exit with remote wakeup flow.

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:47 PM, Artur Petrosyan wrote: > Added setting "port_connect_status_change" flag to "1" in order > to re-enumerate, because after exit from hibernation port > connection status is not detected. > > Fixes: c5c403dc4336 ("usb: dwc2: Add host/device hibernation functions") > Signed-off-

Re: [PATCH v2 08/15] usb: dwc2: Move enter hibernation to dwc2_port_suspend() function

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:47 PM, Artur Petrosyan wrote: > This move is done to call enter hibernation handler in > "dwc2_port_suspend()" function when core receives port suspend. > Otherwise it could be confusing to enter to hibernation in > "dwc2_hcd_hub_control()" function but other power saving modes > in

Re: [PATCH v2 09/15] usb: dwc2: Move exit hibernation to dwc2_port_resume() function

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:47 PM, Artur Petrosyan wrote: > This move is done to call hibernation exit handler in > "dwc2_port_resume()" function when core receives port resume. > Otherwise it could be confusing to exit hibernation in > "dwc2_hcd_hub_control()" function but other power saving modes > in "dwc2_p

Re: [PATCH v2 10/15] usb: dwc2: Allow exit hibernation in urb enqueue

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:48 PM, Artur Petrosyan wrote: > When core is in hibernation state and an external > hub is connected, upper layer sends URB enqueue request, > which results in port reset issue. > > - Added exit from hibernation state to avoid port > reset issue and process upper layer request prope

Re: [PATCH v2 11/15] usb: dwc2: Add hibernation entering flow by system suspend

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:48 PM, Artur Petrosyan wrote: > Adds a new flow of entering hibernation when PC is > hibernated or suspended. > > Signed-off-by: Artur Petrosyan Acked-by: Minas Harutyunyan > --- > Changes in v2: > - None > > drivers/usb/dwc2/hcd.c | 10 ++ > 1 file changed, 10 i

Re: [PATCH v2 12/15] usb: dwc2: Add hibernation exiting flow by system resume

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:48 PM, Artur Petrosyan wrote: > Adds a new flow of exiting hibernation when PC is resumed > from suspend state. > > Signed-off-by: Artur Petrosyan Acked-by: Minas Harutyunyan > --- > Changes in v2: > - None > > drivers/usb/dwc2/hcd.c | 10 ++ > 1 file changed, 10

Re: [PATCH v2 13/15] usb: dwc2: Add exit hibernation mode before removing drive

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:48 PM, Artur Petrosyan wrote: > When dwc2 core is in hibernation mode loading > driver again causes driver fail. Because in > that mode registers are not accessible. > > In order to exit from hibernation checking > dwc2 core power saving state in "dwc2_driver_remove()" > function. I

Re: [PATCH v2 15/15] usb: dwc2: Get rid of useless error checks in suspend interrupt

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:48 PM, Artur Petrosyan wrote: > Squashed from Douglas Anderson's suggested commit > "usb: dwc2: Get rid of useless error checks for > hibernation/partial power down" > > - After this commit there should never be any > case where dwc2_enter_partial_power_down() and > dwc2_enter_hib

Re: [PATCH 22/40] drm/ttm/ttm_tt: Demote non-conformant kernel-doc header

2021-04-19 Thread Lee Jones
On Fri, 16 Apr 2021, Christian König wrote: > > > Am 16.04.21 um 16:37 schrieb Lee Jones: > > Fixes the following W=1 kernel build warning(s): > > > > drivers/gpu/drm/ttm/ttm_tt.c:398: warning: Function parameter or member > > 'num_pages' not described in 'ttm_tt_mgr_init' > > drivers/gpu/

[PATCH v3 0/5] mediatek: hdmi: add MT8167 configuration

2021-04-19 Thread Neil Armstrong
The MT8167 SoC have a hard limit on the maximal supported HDMI TMDS clock, and is not validated and supported for HDMI modes out of HDMI CEA modes. To achieve this: - switch the mediatek HDMI bindings to YAML - add the MT8167 compatible - add a boolean to discard the non-CEA modes - add a value to

[PATCH v3 2/5] dt-bindings: mediatek: add mt8167 to hdmi, hdmi-ddc and cec bindings

2021-04-19 Thread Neil Armstrong
Add mt8167 SoC compatible to Mediatek hdmi, hdmi-ddc and cec schema bindings. Signed-off-by: Neil Armstrong --- .../devicetree/bindings/display/mediatek/mediatek,cec.yaml | 1 + .../devicetree/bindings/display/mediatek/mediatek,hdmi-ddc.yaml | 1 + .../devicetree/bindings/display/mediatek

[PATCH v3 1/5] dt-bindings: display: mediatek,hdmi: Convert to use graph schema

2021-04-19 Thread Neil Armstrong
Update the mediatek,dpi binding to use the graph schema. Signed-off-by: Neil Armstrong --- .../display/mediatek/mediatek,cec.yaml| 51 +++ .../display/mediatek/mediatek,hdmi-ddc.yaml | 57 .../display/mediatek/mediatek,hdmi.txt| 136 -- .../displa

[PATCH v3 3/5] gpu/drm: mediatek: hdmi: add check for CEA modes only

2021-04-19 Thread Neil Armstrong
Some SoCs like the MT8167 are not validated and supported for HDMI modes out of HDMI CEA modes, so add a configuration boolean to filter out non-CEA modes. Signed-off-by: Fabien Parent Signed-off-by: Neil Armstrong --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 4 1 file changed, 4 insertions(+

[PATCH v3 4/5] gpu/drm: mediatek: hdmi: add optional limit on maximal HDMI mode clock

2021-04-19 Thread Neil Armstrong
Some SoCs like the MT8167 have a hard limit on the maximal supported HDMI TMDS clock, so add a configuration value to filter out those modes. Signed-off-by: Fabien Parent Signed-off-by: Neil Armstrong --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v3 5/5] gpu/drm: mediatek: hdmi: add MT8167 configuration

2021-04-19 Thread Neil Armstrong
The MT8167 SoC have a hard limit on the maximal supported HDMI TMDS clock, and is not validated and supported for HDMI modes out of HDMI CEA modes, so add a configuration entry linked to the MT8167 compatible. Signed-off-by: Fabien Parent Signed-off-by: Neil Armstrong --- drivers/gpu/drm/mediat

Re: [PATCH 00/13] [RFC] Rust support

2021-04-19 Thread Peter Zijlstra
On Sat, Apr 17, 2021 at 04:51:58PM +0200, Paolo Bonzini wrote: > On 16/04/21 09:09, Peter Zijlstra wrote: > > Well, the obvious example would be seqlocks. C11 can't do them > > Sure it can. C11 requires annotating with (the equivalent of) READ_ONCE all > reads of seqlock-protected fields, but the

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-19 Thread Wanpeng Li
On Sat, 17 Apr 2021 at 21:09, Paolo Bonzini wrote: > > On 16/04/21 05:08, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Both lock holder vCPU and IPI receiver that has halted are condidate for > > boost. However, the PLE handler was originally designed to deal with the > > lock holder preemption

Re: [PATCH v2 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-19 Thread Miaohe Lin
On 2021/4/19 15:09, Huang, Ying wrote: > Miaohe Lin writes: > >> On 2021/4/19 10:48, Huang, Ying wrote: >>> Miaohe Lin writes: >>> We will use percpu-refcount to serialize against concurrent swapoff. This patch adds the percpu_ref support for swap. Signed-off-by: Miaohe Lin

Re: [v2,PATCH 1/3] drm/mediatek: dpi dual edge sample mode support

2021-04-19 Thread Neil Armstrong
Hi, On 14/04/2021 15:35, Rex-BC Chen wrote: > DPI can sample on falling, rising or both edge. > When DPI sample the data both rising and falling edge. > It can reduce half data io pins. > > Signed-off-by: Jitao Shi > Signed-off-by: Rex-BC Chen > --- > drivers/gpu/drm/mediatek/mtk_dpi.c | 12 ++

Re: [PATCH] perf annotate: improve --stdio mode

2021-04-19 Thread Martin Liška
@Arnaldo: May I please ping this? Thanks, Martin On 4/8/21 12:08 PM, Martin Liška wrote: > On 4/7/21 10:25 PM, Arnaldo Carvalho de Melo wrote: >> Em Wed, Apr 07, 2021 at 04:30:46PM -0300, Arnaldo Carvalho de Melo escreveu: >>> Em Fri, Feb 26, 2021 at 10:24:00AM +0100, Martin Liška escreveu:

[PATCH 1/3] ACPI: video: use native backlight for GA401/GA502/GA503

2021-04-19 Thread Luke D. Jones
From: Luke D Jones Force backlight control in these models to use the native interface at /sys/class/backlight/amdgpu_bl0. Signed-off-by: Luke D. Jones --- drivers/acpi/video_detect.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/acpi/video_detect.c b/dr

Re: [PATCH v2 5/6] kunit: mptcp: adhear to KUNIT formatting standard

2021-04-19 Thread Geert Uytterhoeven
Hi David, On Sat, Apr 17, 2021 at 6:24 AM David Gow wrote: > > Like patch 1/6, I can apply it in MPTCP tree and send it later to > > net-next with other patches. > > Except if you guys prefer to apply it in KUnit tree and send it to > > linux-next? > > Given 1/6 is going to net-next, it makes sen

Re: [PATCH v2 5/5] mm/shmem: fix shmem_swapin() race with swapoff

2021-04-19 Thread Huang, Ying
Miaohe Lin writes: > On 2021/4/19 15:04, Huang, Ying wrote: >> Miaohe Lin writes: >> >>> On 2021/4/19 10:15, Huang, Ying wrote: Miaohe Lin writes: > When I was investigating the swap code, I found the below possible race > window: > > CPU 1

Re: [PATCH] ALSA: hda/realtek: GA503 use same quirks as GA401

2021-04-19 Thread Takashi Iwai
On Mon, 19 Apr 2021 05:04:11 +0200, Luke D Jones wrote: > > The GA503 has almost exactly the same default setup as the GA401 > model with the same issues. The GA401 quirks solve all the issues > so we will use the full quirk chain. > > Signed-off-by: Luke D Jones Thanks, applied now. Takashi

Re: Re: [PATCH] kernel/hung_task: Add a whitelist and blacklist mechanism.

2021-04-19 Thread Peter Zijlstra
On Mon, Apr 19, 2021 at 09:46:26AM +0800, 周传高 wrote: > > >On Sat, Apr 17, 2021 at 07:13:01AM -0700, zhouchuangao wrote: > >> eg: > >> In Android system, we usually and some processes to the whitelist. > >> static task_t task_whitelist[] = { > >>{"mdrt_thread", HUNG_TASK_WHITELIST}, > >>{"c

Re: [PATCH v5 04/19] perf: aux: Add CoreSight PMU buffer formats

2021-04-19 Thread Peter Zijlstra
On Mon, Mar 29, 2021 at 10:56:25AM -0600, Mathieu Poirier wrote: > Hi Peter, > > On Tue, Mar 23, 2021 at 12:06:32PM +, Suzuki K Poulose wrote: > > CoreSight PMU supports aux-buffer for the ETM tracing. The trace > > generated by the ETM (associated with individual CPUs, like Intel PT) > > is c

[PATCH 0/2] Remove GA14/15 quirks to acpi/video_detect

2021-04-19 Thread Luke D. Jones
Revert two commits to allow a patch to acpi/video_detect to correctly set the backlight control as native. Luke D. Jones (2): Revert "platform/x86: asus-nb-wmi: Drop duplicate DMI quirk structures" Revert "platform/x86: asus-nb-wmi: add support for ASUS ROG Zephyrus G14 and G15" driv

[PATCH 1/2] Revert "platform/x86: asus-nb-wmi: Drop duplicate DMI quirk structures"

2021-04-19 Thread Luke D. Jones
This reverts commit 67186653c90360922e3965d0376a61dbf6c42711. --- drivers/platform/x86/asus-nb-wmi.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index d41d7ad14be0..b07b1288346

[PATCH 2/2] Revert "platform/x86: asus-nb-wmi: add support for ASUS ROG Zephyrus G14 and G15"

2021-04-19 Thread Luke D. Jones
This reverts commit 13bceda68fb9ef388ad40d355ab8d03ee64d14c2. --- drivers/platform/x86/asus-nb-wmi.c | 82 -- 1 file changed, 82 deletions(-) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index b07b1288346e..0cb927f0f301 100644 -

[PATCH V4] watchdog: mtk: support dual mode when the bark irq is available

2021-04-19 Thread Wang Qing
Support using irq handling wdt bark first instead of directly resetting. When the watchdog timer expires in Dual mode, an interrupt will be triggered first, then the timing restarts. The reset signal will be initiated when the timer expires, to prevent the system is stuck hard. The dual mode is d

[PATCH 1/2] usb: gadget: f_uac2: Stop endpoint before enabling it.

2021-04-19 Thread Pawel Laszczak
From: Pawel Laszczak Patch adds disabling endpoint before enabling it during changing alternate setting. Lack of this functionality causes that in some cases uac2 queue the same request multiple time. Such situation can occur when host send set interface with alternate setting 1 twice. Signed-of

Re: [PATCH v2 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-19 Thread Huang, Ying
Miaohe Lin writes: > On 2021/4/19 15:09, Huang, Ying wrote: >> Miaohe Lin writes: >> >>> On 2021/4/19 10:48, Huang, Ying wrote: Miaohe Lin writes: > We will use percpu-refcount to serialize against concurrent swapoff. This > patch adds the percpu_ref support for swap. > >

Re: [PATCH 00/13] [RFC] Rust support

2021-04-19 Thread Paolo Bonzini
On 19/04/21 09:32, Peter Zijlstra wrote: On Sat, Apr 17, 2021 at 04:51:58PM +0200, Paolo Bonzini wrote: On 16/04/21 09:09, Peter Zijlstra wrote: Well, the obvious example would be seqlocks. C11 can't do them Sure it can. C11 requires annotating with (the equivalent of) READ_ONCE all reads of

Re: [PATCH v2] sched: Warn on long periods of pending need_resched

2021-04-19 Thread Peter Zijlstra
On Fri, Apr 16, 2021 at 02:33:27PM -0700, Josh Don wrote: > Yikes, sorry about that. I've squashed the fixup and sent the updated > patch (with trimmed cc list): https://lkml.org/lkml/2021/4/16/1125 For future reference, please use: https://lkml.kernel.org/r/MSGID Then I can search for MSGID in m

[PATCH 2/2] usb: cdnsp: Fix lack of removing request from pending list.

2021-04-19 Thread Pawel Laszczak
From: Pawel Laszczak Patch fixes lack of removing request from ep->pending_list on failure of the stop endpoint command. Driver even after failing this command must remove request from ep->pending_list. Without this fix driver can stuck in cdnsp_gadget_ep_disable function in loop: while (

[PATCH v10 0/7] Make alloc_contig_range handle Hugetlb pages

2021-04-19 Thread Oscar Salvador
Hi Andrew, I decided to go for a v10 to fix the typos and some other trivial things so I do not have to bother you ;-). This can be safely picked up now. Thanks v9 -> v10: - Fix some typos - Re-place chunk to its corresponding patch - Collect David's Acked-by for patch#6 v8 -> v9: - Collect

[PATCH v10 2/7] mm,compaction: Let isolate_migratepages_{range,block} return error codes

2021-04-19 Thread Oscar Salvador
Currently, isolate_migratepages_{range,block} and their callers use a pfn == 0 vs pfn != 0 scheme to let the caller know whether there was any error during isolation. This does not work as soon as we need to start reporting different error codes and make sure we pass them down the chain, so they ar

[PATCH v10 1/7] mm,page_alloc: Bail out earlier on -ENOMEM in alloc_contig_migrate_range

2021-04-19 Thread Oscar Salvador
Currently, __alloc_contig_migrate_range can generate -EINTR, -ENOMEM or -EBUSY, and report them down the chain. The problem is that when migrate_pages() reports -ENOMEM, we keep going till we exhaust all the try-attempts (5 at the moment) instead of bailing out. migrate_pages() bails out right awa

[PATCH v10 3/7] mm,hugetlb: Drop clearing of flag from prep_new_huge_page

2021-04-19 Thread Oscar Salvador
Pages allocated via the page allocator or CMA get its private field cleared by means of post_alloc_hook(). Pages allocated during boot, that is directly from the memblock allocator, get cleared by paging_init()->..->memmap_init_zone->..->__init_single_page() before any memblock allocation. Based o

[PATCH v10 6/7] mm: Make alloc_contig_range handle in-use hugetlb pages

2021-04-19 Thread Oscar Salvador
alloc_contig_range() will fail if it finds a HugeTLB page within the range, without a chance to handle them. Since HugeTLB pages can be migrated as any LRU or Movable page, it does not make sense to bail out without trying. Enable the interface to recognize in-use HugeTLB pages so we can migrate th

[PATCH v10 5/7] mm: Make alloc_contig_range handle free hugetlb pages

2021-04-19 Thread Oscar Salvador
alloc_contig_range will fail if it ever sees a HugeTLB page within the range we are trying to allocate, even when that page is free and can be easily reallocated. This has proved to be problematic for some users of alloc_contic_range, e.g: CMA and virtio-mem, where those would fail the call even wh

[PATCH v10 7/7] mm,page_alloc: Drop unnecessary checks from pfn_range_valid_contig

2021-04-19 Thread Oscar Salvador
pfn_range_valid_contig() bails out when it finds an in-use page or a hugetlb page, among other things. We can drop the in-use page check since __alloc_contig_pages can migrate away those pages, and the hugetlb page check can go too since isolate_migratepages_range is now capable of dealing with hug

[PATCH v10 4/7] mm,hugetlb: Split prep_new_huge_page functionality

2021-04-19 Thread Oscar Salvador
Currently, prep_new_huge_page() performs two functions. It sets the right state for a new hugetlb, and increases the hstate's counters to account for the new page. Let us split its functionality into two separate functions, decoupling the handling of the counters from initializing a hugepage. The

Re: [PATCH 0/2] Remove GA14/15 quirks to acpi/video_detect

2021-04-19 Thread Hans de Goede
Hi Luke, On 4/19/21 9:49 AM, Luke D. Jones wrote: > Revert two commits to allow a patch to acpi/video_detect to correctly > set the backlight control as native. Thank you for following up on our previous discussion about this. I'll merge this as soon as Rafael has accepted to matching drivers/ac

Re: [PATCH] net: ethernet: ravb: Fix release of refclk

2021-04-19 Thread Geert Uytterhoeven
On Sat, Apr 17, 2021 at 3:23 PM Adam Ford wrote: > The call to clk_disable_unprepare() can happen before priv is > initialized. This means moving clk_disable_unprepare out of > out_release into a new label. > > Fixes: 8ef7adc6beb2("net: ethernet: ravb: Enable optional refclk") > Signed-off-by: Ada

Re: drivers/net/ethernet/mediatek/mtk_ppe_offload.c - suspicious code?

2021-04-19 Thread Pablo Neira Ayuso
On Sun, Apr 18, 2021 at 09:02:12PM -0400, Valdis Klētnieks wrote: > While doing some code auditing for -Woverride_init, I spotted some > questionable code > > commit 502e84e2382d92654a2ecbc52cdbdb5a11cdcec7 > Author: Felix Fietkau > Date: Wed Mar 24 02:30:54 2021 +0100 > > net: ethernet:

Re: [PATCH V2] mm: Define default value for FIRST_USER_ADDRESS

2021-04-19 Thread Geert Uytterhoeven
On Fri, Apr 16, 2021 at 7:17 AM Anshuman Khandual wrote: > Currently most platforms define FIRST_USER_ADDRESS as 0UL duplication the > same code all over. Instead just define a generic default value (i.e 0UL) > for FIRST_USER_ADDRESS and let the platforms override when required. This > makes it mu

Re: [PATCH] docs: fix the invalid vt-d spec location

2021-04-19 Thread Steven Zhou
Hi Boris, Thank you for your comments. The vt-d spec PDF is around 11M size and after be zipped it's still around 10M size which cannot be uploaded to "bugzilla.kernel.org" because this site limits 5M file size to be uploaded. Seems currently I cannot use the similar way as what you suggested to

Re: [PATCH v2 resubmit] sched: Warn on long periods of pending need_resched

2021-04-19 Thread Peter Zijlstra
On Fri, Apr 16, 2021 at 02:29:36PM -0700, Josh Don wrote: > From: Paul Turner > > CPU scheduler marks need_resched flag to signal a schedule() on a > particular CPU. But, schedule() may not happen immediately in cases > where the current task is executing in the kernel mode (no > preemption state

Re: [PATCH v5 06/16] KVM: x86/pmu: Reprogram PEBS event to emulate guest PEBS counter

2021-04-19 Thread Liuxiangdong
On 2021/4/15 11:20, Like Xu wrote: When a guest counter is configured as a PEBS counter through IA32_PEBS_ENABLE, a guest PEBS event will be reprogrammed by configuring a non-zero precision level in the perf_event_attr. The guest PEBS overflow PMI bit would be set in the guest GLOBAL_STATUS M

Re: [PATCH 0/2] Remove GA14/15 quirks to acpi/video_detect

2021-04-19 Thread Hans de Goede
Hi, On 4/19/21 10:02 AM, Luke Jones wrote: > NP Hans, sorry about the length of time this took. Other duties etc. > > I appreciated the wealth of insight you were able to provide to enable this. BTW, I see that your drivers/acpi/video_detect.c patch is marked as [PATCH 1/3] I guess these 2 patc

Re: [PATCH] MAINTAINERS: repair reference in HYCON HY46XX TOUCHSCREEN SUPPORT

2021-04-19 Thread Giulio Benetti
ngineering sas --- applies cleanly on next-20210419 Guilio, please ack. Dmitry, please pick this minor clean up patch for your -next tree. MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index c54b8e4520d1..bbe356508f29 100644 --- a/M

[PATCH 2/7] mfd: max8998: Simplify getting of_device_id match data

2021-04-19 Thread Krzysztof Kozlowski
Use of_device_get_match_data() to make the code slightly smaller. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/max8998.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/max8998.c b/drivers/mfd/max8998.c index 785f8e9841b7..42c60d4d97fb 100644 --- a/d

[PATCH 1/7] mfd: max8997: Simplify getting of_device_id match data

2021-04-19 Thread Krzysztof Kozlowski
Use of_device_get_match_data() to make the code slightly smaller. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/max8997.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index 68d8f2b95287..f89b1eb121c9 100644 --- a/

[PATCH 3/7] mfd: da9052: Simplify getting of_device_id match data

2021-04-19 Thread Krzysztof Kozlowski
Use of_device_get_match_data() to make the code slightly smaller. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/da9052-i2c.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/da9052-i2c.c b/drivers/mfd/da9052-i2c.c index 47556d2d9abe..5d8ce8dca3fc 1006

[PATCH 5/7] mfd: sec: Simplify getting of_device_id match data

2021-04-19 Thread Krzysztof Kozlowski
Use of_device_get_match_data() to make the code slightly smaller. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 8d55992da19e..3126c39f3203 100644 ---

[PATCH 4/7] mfd: da9052: Simplify getting of_device_id match data

2021-04-19 Thread Krzysztof Kozlowski
Use of_device_get_match_data() to make the code slightly smaller. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/da9062-core.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c index 8d913375152d..01f8e10df

[PATCH 7/7] mfd: twl: Correct kerneldoc

2021-04-19 Thread Krzysztof Kozlowski
Correct kerneldoc function name to fix W=1 warning: drivers/mfd/twl-core.c:496: warning: expecting prototype for twl_regcache_bypass(). Prototype was for twl_set_regcache_bypass() instead Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/twl-core.c | 4 ++-- 1 file changed, 2 insertions

[PATCH 6/7] mfd: wm831x: Correct kerneldoc

2021-04-19 Thread Krzysztof Kozlowski
Correct kerneldoc function name to fix W=1 warning: drivers/mfd/wm831x-core.c:121: warning: expecting prototype for wm831x_reg_unlock(). Prototype was for wm831x_reg_lock() instead Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/wm831x-core.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v5 06/16] KVM: x86/pmu: Reprogram PEBS event to emulate guest PEBS counter

2021-04-19 Thread Xu, Like
On 2021/4/19 16:11, Liuxiangdong wrote: On 2021/4/15 11:20, Like Xu wrote: When a guest counter is configured as a PEBS counter through IA32_PEBS_ENABLE, a guest PEBS event will be reprogrammed by configuring a non-zero precision level in the perf_event_attr. The guest PEBS overflow PMI bit w

[PATCH 2/2] drm/gma500: remove trailing whitespaces

2021-04-19 Thread Krzysztof Kozlowski
Remove trailing whitespaces. No functional change. Signed-off-by: Krzysztof Kozlowski --- drivers/gpu/drm/gma500/backlight.c| 4 +-- drivers/gpu/drm/gma500/cdv_intel_dp.c | 50 +-- 2 files changed, 26 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/gma5

Re: [PATCH v2 0/2] perf cs-etm: Set time on synthesised samples to preserve ordering

2021-04-19 Thread James Clark
On 16/04/2021 18:16, Arnaldo Carvalho de Melo wrote: > Em Fri, Apr 16, 2021 at 09:07:09AM -0600, Mathieu Poirier escreveu: >> Hi James, >> >> On Fri, Apr 16, 2021 at 01:56:30PM +0300, James Clark wrote: >>> Changes since v1: >>> * Improved variable name from etm_timestamp -> cs_timestamp >>> *

Re: [PATCH v2 5/5] mm/shmem: fix shmem_swapin() race with swapoff

2021-04-19 Thread Miaohe Lin
On 2021/4/19 15:41, Huang, Ying wrote: > Miaohe Lin writes: > >> On 2021/4/19 15:04, Huang, Ying wrote: >>> Miaohe Lin writes: >>> On 2021/4/19 10:15, Huang, Ying wrote: > Miaohe Lin writes: > >> When I was investigating the swap code, I found the below possible race >> win

Re: [PATCH v4 1/4] sched/fair: Introduce primitives for CFS bandwidth burst

2021-04-19 Thread changhuaixin
> On Mar 18, 2021, at 11:10 PM, Peter Zijlstra wrote: > > On Thu, Mar 18, 2021 at 08:59:44AM -0400, Phil Auld wrote: >> I admit to not having followed all the history of this patch set. That >> said, when I see the above I just think your quota is too low for your >> workload. > > This. > >>

[PATCH 1/2] drm/gma500: correct kerneldoc

2021-04-19 Thread Krzysztof Kozlowski
Correct kerneldoc (remove wrong /** marker and adjust function name) to fix W=1 warnings: drivers/gpu/drm/gma500/cdv_intel_lvds.c:27: warning: expecting prototype for LVDS I2C backlight control macros(). Prototype was for BRIGHTNESS_MAX_LEVEL() instead drivers/gpu/drm/gma500/intel_gmbus.

Re: [PATCH v6 05/12] pinctrl: Ingenic: Add DMIC pins support for Ingenic SoCs.

2021-04-19 Thread Paul Cercueil
Hi Zhou, Le dim. 18 avril 2021 à 22:44, 周琰杰 (Zhou Yanjie) a écrit : 1.Add DMIC pins support for the JZ4780 SoC. 2.Add DMIC pins support for the X1000 SoC. 3.Add DMIC pins support for the X1500 SoC. 4.Add DMIC pins support for the X1830 SoC. Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Pau

Re: [RFC v1 PATCH 1/3] drivers: soc: add support for soc_device_match returning -EPROBE_DEFER

2021-04-19 Thread Geert Uytterhoeven
Hi Alice, CC Arnd (soc_device_match() author) On Mon, Apr 19, 2021 at 6:28 AM Alice Guo (OSS) wrote: > From: Alice Guo > > In i.MX8M boards, the registration of SoC device is later than caam > driver which needs it. Caam driver needs soc_device_match to provide > -EPROBE_DEFER when no SoC devic

Re: [PATCH v2 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-19 Thread Miaohe Lin
On 2021/4/19 15:52, Huang, Ying wrote: > Miaohe Lin writes: > >> On 2021/4/19 15:09, Huang, Ying wrote: >>> Miaohe Lin writes: >>> On 2021/4/19 10:48, Huang, Ying wrote: > Miaohe Lin writes: > >> We will use percpu-refcount to serialize against concurrent swapoff. This >> p

RE: [PATCH v6 03/10] KVM: selftests: Use flag CLOCK_MONOTONIC_RAW for timing

2021-04-19 Thread David Laight
From: wangyanan (Y) > Sent: 19 April 2021 07:40 > > Hi Paolo, > > On 2021/4/17 21:23, Paolo Bonzini wrote: > > On 30/03/21 10:08, Yanan Wang wrote: > >> In addition to function of CLOCK_MONOTONIC, flag CLOCK_MONOTONIC_RAW can > >> also shield possiable impact of NTP, which can provide more robust

[PATCH] mm: fix some typos and code style problems

2021-04-19 Thread Shijie Luo
fix some typos and code style problems in mm. gfp.h: s/MAXNODES/MAX_NUMNODES mmzone.h: s/then/than rmap.c: s/__vma_split()/__vma_adjust() swap.c: s/__mod_zone_page_stat/__mod_zone_page_state, s/is is/is swap_state.c: s/whoes/whose zsfold.c: code style problem fix in z3fold_unregister_migration zsm

Re: [PATCH 00/13] [RFC] Rust support

2021-04-19 Thread Peter Zijlstra
On Mon, Apr 19, 2021 at 09:53:06AM +0200, Paolo Bonzini wrote: > On 19/04/21 09:32, Peter Zijlstra wrote: > > On Sat, Apr 17, 2021 at 04:51:58PM +0200, Paolo Bonzini wrote: > > > On 16/04/21 09:09, Peter Zijlstra wrote: > > > > Well, the obvious example would be seqlocks. C11 can't do them > > > >

  1   2   3   4   5   6   7   8   9   10   >