Re: [PATCH 1/2] staging: media: atomisp: pci: Correct identation in block of conditional statements in file atomisp_v4l2.c

2021-04-14 Thread Dan Carpenter
On Wed, Apr 14, 2021 at 11:06:02AM -0300, Aline Santana Cordeiro wrote: > Correct identation in block of conditional statements. > The function "v4l2_device_unregister_subdev()" depends on > the results of the macro function "list_for_each_entry_safe()". > > Signed-off-by: Aline Santana Cordeiro

Re: [PATCH] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-14 Thread Alan Stern
On Wed, Apr 14, 2021 at 01:07:43PM +0800, Chris Chiu wrote: > Thanks for the instructions. I can hit the same timeout problem with > runtime PM. The > fail rate seems the same as normal PM. (around 1/4 ~ 1/7) > root@:/sys/bus/usb/devices/3-4.3# echo auto > power/control > root@:/sys/bus/usb/devices

Re: [peterz-queue:perf/core 18/22] kernel/events/core.c:6418:22: sparse: sparse: incorrect type in assignment (different address spaces)

2021-04-14 Thread Marco Elver
On Wed, Apr 14, 2021 at 10:10PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git > perf/core > head: 0da503cd07380952599b67ded6efe030d78ea42d > commit: c7d4112e9f0e69edd649665836ce72008b95ab9f [18/22] perf: Add support > for SIGTRAP on p

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

2021-04-14 Thread 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 Lucas Stach > wrote: > > > Am Dienstag, den 19.05.2020, 17:41 +0800 schrieb Shengjiu Wang: > > > > There are two requirements that we need to mov

Re: [PATCH] staging: greybus: Match parentheses alignment

2021-04-14 Thread Alex Elder
On 4/14/21 9:29 AM, Joe Perches wrote: On Wed, 2021-04-14 at 08:17 -0500, Alex Elder wrote: Perhaps (like the -W options for GCC) there could be a way to specify in a Makefile which checkpatch messages are reported/not reported? I don't claim that's a good suggestion, but if I could optionally

Re: [PATCH v2 10/16] mm: multigenerational lru: mm_struct list

2021-04-14 Thread Matthew Wilcox
On Tue, Apr 13, 2021 at 12:56:27AM -0600, Yu Zhao wrote: > In order to scan page tables, we add an infrastructure to maintain > either a system-wide mm_struct list or per-memcg mm_struct lists. > Multiple threads can concurrently work on the same mm_struct list, and > each of them will be given a d

Re: [Outreachy kernel] Re: [PATCH 1/2] staging: media: atomisp: pci: Correct identation in block of conditional statements in file atomisp_v4l2.c

2021-04-14 Thread Julia Lawall
On Wed, 14 Apr 2021, Dan Carpenter wrote: > On Wed, Apr 14, 2021 at 11:06:02AM -0300, Aline Santana Cordeiro wrote: > > Correct identation in block of conditional statements. > > The function "v4l2_device_unregister_subdev()" depends on > > the results of the macro function "list_for_each_entry

[PATCH 1/2] perf cs-etm: Refactor timestamp variable names

2021-04-14 Thread James Clark
Remove ambiguity in variable names relating to timestamps. A later commit will save the sample kernel timestamp in one of the etm structs, so name all elements appropriately to avoid confusion. This is also removes some ambiguity arising from the fact that the --timestamp argument to perf record r

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

2021-04-14 Thread James Clark
The following attribute is set when synthesising samples in timed decoding mode: attr.sample_type |= PERF_SAMPLE_TIME; This results in new samples that appear to have timestamps but because we don't assign any timestamps to the samples, when the resulting inject file is opened again, the synt

Re: [PATCH 1/2] staging: media: atomisp: pci: Correct identation in block of conditional statements in file atomisp_v4l2.c

2021-04-14 Thread ascordeiro
Em qua, 2021-04-14 às 17:30 +0300, Dan Carpenter escreveu: > On Wed, Apr 14, 2021 at 11:06:02AM -0300, Aline Santana Cordeiro > wrote: > > Correct identation in block of conditional statements. > > The function "v4l2_device_unregister_subdev()" depends on > > the results of the macro function "list

Re: [RFC PATCH 3/5] tracing/hwlat: Implement the per-cpu mode

2021-04-14 Thread Steven Rostedt
On Thu, 8 Apr 2021 16:13:21 +0200 Daniel Bristot de Oliveira wrote: > Implements the per-cpu mode in which a sampling thread is created for > each cpu in the "cpus" (and tracing_mask). > > The per-cpu mode has the potention to speed up the hwlat detection by > running on multiple CPUs at the sa

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

2021-04-14 Thread James Clark
Hi, For this change, I also tried removing the setting of PERF_SAMPLE_TIME in cs_etm__synth_events(). In theory, this would remove the sorting when opening the file, but the change doesn't affect when the built-in events are saved to the inject file. Resulting in events like MMAP and COMM with

RE: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-14 Thread David Laight
From: Tom Talpey > Sent: 14 April 2021 15:16 > > On 4/12/2021 6:48 PM, Jason Gunthorpe wrote: > > On Mon, Apr 12, 2021 at 04:20:47PM -0400, Tom Talpey wrote: > > > >> So the issue is only in testing all the providers and platforms, > >> to be sure this new behavior isn't tickling anything that wen

Re: [PATCH v2 00/16] Multigenerational LRU Framework

2021-04-14 Thread Jens Axboe
On 4/13/21 5:14 PM, Dave Chinner wrote: > On Tue, Apr 13, 2021 at 10:13:24AM -0600, Jens Axboe wrote: >> On 4/13/21 1:51 AM, SeongJae Park wrote: >>> From: SeongJae Park >>> >>> Hello, >>> >>> >>> Very interesting work, thank you for sharing this :) >>> >>> On Tue, 13 Apr 2021 00:56:17 -0600 Yu Zh

[PATCH V4 1/2] perf/x86: Move cpuc->running into P4 specific code

2021-04-14 Thread kan . liang
From: Kan Liang The 'running' variable is only used in the P4 PMU. Current perf sets the variable in the critical function x86_pmu_start(), which wastes cycles for everybody not running on P4. Move cpuc->running into the P4 specific p4_pmu_enable_event(). Add a static per-CPU 'p4_running' varia

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-14 Thread Jason Gunthorpe
On Wed, Apr 14, 2021 at 10:16:28AM -0400, Tom Talpey wrote: > On 4/12/2021 6:48 PM, Jason Gunthorpe wrote: > > On Mon, Apr 12, 2021 at 04:20:47PM -0400, Tom Talpey wrote: > > > > > So the issue is only in testing all the providers and platforms, > > > to be sure this new behavior isn't tickling an

[PATCH V4 2/2] perf/x86: Reset the dirty counter to prevent the leak for an RDPMC task

2021-04-14 Thread kan . liang
From: Kan Liang The counter value of a perf task may leak to another RDPMC task. For example, a perf stat task as below is running on CPU 0. perf stat -e 'branches,cycles' -- taskset -c 0 ./workload In the meantime, an RDPMC task, which is also running on CPU 0, may read the GP counters per

Re: [Outreachy kernel] Re: [PATCH 1/2] staging: media: atomisp: pci: Correct identation in block of conditional statements in file atomisp_v4l2.c

2021-04-14 Thread Dan Carpenter
On Wed, Apr 14, 2021 at 04:39:20PM +0200, Julia Lawall wrote: > > > On Wed, 14 Apr 2021, Dan Carpenter wrote: > > > On Wed, Apr 14, 2021 at 11:06:02AM -0300, Aline Santana Cordeiro wrote: > > > Correct identation in block of conditional statements. > > > The function "v4l2_device_unregister_subd

RE: [PATCH 1/3] gpio: zynq: use module_platform_driver to simplify the code

2021-04-14 Thread Srinivas Neeli
HI baratosz and Andy, > -Original Message- > From: Bartosz Golaszewski > Sent: Tuesday, April 13, 2021 4:14 PM > To: Andy Shevchenko > Cc: Srinivas Neeli ; linus.wall...@linaro.org; Michal Simek > ; Shubhrajyoti Datta ; Srinivas > Goud ; linux-g...@vger.kernel.org; linux-arm- > ker...@li

[PATCH 1/3] arm64: dts: mt8183-pumpkin: fix dtbs_check warning

2021-04-14 Thread matthias . bgg
From: Matthias Brugger Fix unit names to make dtbs_check happy. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/me

[PATCH 2/3] arm64: dts: mt8183: fix dtbs_check warning

2021-04-14 Thread matthias . bgg
From: Matthias Brugger Fix unit names to make dtbs_check happy. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt818

Re: [PATCH net-next v4 1/1] net: stmmac: Add support for external trigger timestamping

2021-04-14 Thread Richard Cochran
On Wed, Apr 14, 2021 at 08:16:17AM +0800, Wong Vee Khee wrote: > From: Tan Tee Min > > The Synopsis MAC controller supports auxiliary snapshot feature that > allows user to store a snapshot of the system time based on an external > event. > > This patch add supports to the above mentioned featur

[PATCH 3/3] arm64: dts: mt8183-kukui: fix dtbs_check warnings

2021-04-14 Thread matthias . bgg
From: Matthias Brugger The dsi children don't have any reg property, so we don't need address and size cells. This makes dtbs_check happy. CC: Hsin-Yi Wang CC: Enric Balletbo i Serra CC: Nicolas Boichat Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 3

Re: [PATCH 3/4] mce/copyin: fix to not SIGBUS when copying from user hits poison

2021-04-14 Thread Jue Wang
On Wed, Apr 14, 2021 at 6:10 AM Borislav Petkov wrote: > > On Tue, Apr 13, 2021 at 10:47:21PM -0700, Jue Wang wrote: > > This path is when EPT #PF finds accesses to a hwpoisoned page and > > sends SIGBUS to user space (KVM exits into user space) with the same > > semantic as if regular #PF found a

RE: [PATCH] Drivers: hv: vmbus: remove unused function

2021-04-14 Thread Michael Kelley
From: Jiapeng Chong Sent: Tuesday, April 13, 2021 11:21 PM > > Fix the following clang warning: > > drivers/hv/ring_buffer.c:89:1: warning: unused function > 'hv_set_next_read_location' [-Wunused-function]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/hv/ring_

[PATCH net-next] net: enetc: fetch MAC address from device tree

2021-04-14 Thread Michael Walle
Normally, the bootloader will already initialize the MAC address registers of the ENETC and the driver will just use them or generate a random one, if it is not initialized. Add a new way to provide the MAC address: via device tree. Besides the usual 'mac-address' property, there is also the possi

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-14 Thread Jason Gunthorpe
On Wed, Apr 14, 2021 at 02:41:52PM +, David Laight wrote: > So whatever driver initialises the target needs to configure whatever > target-specific register enables the RO transfers themselves. RDMA in general, and mlx5 in particular, is a layered design: mlx5_core <- owns the PCI function,

Re: [PATCH v4 01/16] perf/x86/intel: Add x86_pmu.pebs_vmx for Ice Lake Servers

2021-04-14 Thread Liuxiangdong
Hi Like, On 2021/4/9 16:46, Like Xu wrote: Hi Liuxiangdong, On 2021/4/9 16:33, Liuxiangdong (Aven, Cloud Infrastructure Service Product Dept.) wrote: Do you have any comments or ideas about it ? https://lore.kernel.org/kvm/606e5ef6.2060...@huawei.com/ My expectation is that there may be ma

[Resend RFC PATCH V2 03/12] x86/Hyper-V: Add new hvcall guest address host visibility support

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan Add new hvcall guest address host visibility support. Mark vmbus ring buffer visible to host when create gpadl buffer and mark back to not visible when tear down gpadl buffer. Co-Developed-by: Sunil Muthuswamy Signed-off-by: Tianyu Lan --- arch/x86/hyperv/Makefile |

[Resend RFC PATCH V2 01/12] x86/HV: Initialize GHCB page in Isolation VM

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan Hyper-V exposes GHCB page via SEV ES GHCB MSR for SNP guest to communicate with hypervisor. Map GHCB page for all cpus to read/write MSR register and submit hvcall request via GHCB. Signed-off-by: Tianyu Lan --- arch/x86/hyperv/hv_init.c | 52 +

[Resend RFC PATCH V2 00/12] x86/Hyper-V: Add Hyper-V Isolation VM support

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan "Resend all patches because someone in CC list didn't receive all patchset. Sorry for nosy." Hyper-V provides two kinds of Isolation VMs. VBS(Virtualization-based security) and AMD SEV-SNP unenlightened Isolation VMs. This patchset is to add support for these Isolation VM suppor

[Resend RFC PATCH V2 04/12] HV: Add Write/Read MSR registers via ghcb

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan Hyper-V provides GHCB protocol to write Synthetic Interrupt Controller MSR registers and these registers are emulated by Hypervisor rather than paravisor. Hyper-V requests to write SINTx MSR registers twice(once via GHCB and once via wrmsr instruction including the proxy bit 21)

[Resend RFC PATCH V2 02/12] x86/HV: Initialize shared memory boundary in Isolation VM

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan Hyper-V exposes shared memory boundary via cpuid HYPERV_ CPUID_ISOLATION_CONFIG and store it in the shared_gpa_ boundary of ms_hyperv struct. This prepares to share memory with host for AMD SEV SNP guest. Signed-off-by: Tianyu Lan --- arch/x86/kernel/cpu/mshyperv.c | 2 ++ in

[Resend RFC PATCH V2 05/12] HV: Add ghcb hvcall support for SNP VM

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan Hyper-V provides ghcb hvcall to handle VMBus HVCALL_SIGNAL_EVENT and HVCALL_POST_MESSAGE msg in SNP Isolation VM. Add such support. Signed-off-by: Tianyu Lan --- arch/x86/hyperv/ivm.c | 69 + arch/x86/include/asm/mshyperv.h | 1 + dri

[Resend RFC PATCH V2 07/12] HV/Vmbus: Initialize VMbus ring buffer for Isolation VM

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan VMbus ring buffer are shared with host and it's need to be accessed via extra address space of Isolation VM with SNP support. This patch is to map the ring buffer address in extra address space via ioremap(). HV host visibility hvcall smears data in the ring buffer and so reset t

[Resend RFC PATCH V2 09/12] swiotlb: Add bounce buffer remap address setting function

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan For Hyper-V isolation VM with AMD SEV SNP, the bounce buffer(shared memory) needs to be accessed via extra address space(e.g address above bit39). Hyper-V code may remap extra address space outside of swiotlb. swiotlb_bounce() needs to use remap virtual address to copy data from/

[Resend RFC PATCH V2 08/12] UIO/Hyper-V: Not load UIO HV driver in the isolation VM.

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan UIO HV driver should not load in the isolation VM for security reason. Return ENOTSUPP in the hv_uio_probe() in the isolation VM. Signed-off-by: Tianyu Lan --- drivers/uio/uio_hv_generic.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/uio/uio_hv_generic.c b/

[Resend RFC PATCH V2 11/12] HV/Netvsc: Add Isolation VM support for netvsc driver

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan In Isolation VM, all shared memory with host needs to mark visible to host via hvcall. vmbus_establish_gpadl() has already done it for netvsc rx/tx ring buffer. The page buffer used by vmbus_sendpacket_ pagebuffer() still need to handle. Use DMA API to map/umap these memory durin

[Resend RFC PATCH V2 06/12] HV/Vmbus: Add SNP support for VMbus channel initiate message

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan The physical address of monitor pages in the CHANNELMSG_INITIATE_CONTACT msg should be in the extra address space for SNP support and these pages also should be accessed via the extra address space inside Linux guest and remap the extra address by ioremap function. Signed-off-by

[Resend RFC PATCH V2 12/12] HV/Storvsc: Add Isolation VM support for storvsc driver

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan In Isolation VM, all shared memory with host needs to mark visible to host via hvcall. vmbus_establish_gpadl() has already done it for netvsc rx/tx ring buffer. The page buffer used by vmbus_sendpacket_ mpb_desc() still need to handle. Use DMA API to map/umap these memory during

Re: [v2 1/2] dt-bindings: Add bindings for aspeed pwm-tach and pwm.

2021-04-14 Thread Rob Herring
On Wed, 14 Apr 2021 18:49:38 +0800, Billy Tsai wrote: > This patch adds device bindings for aspeed pwm-tach device which is a > multi-function device include pwn and tach function and pwm device which > should be the sub-node of pwm-tach device. > > Signed-off-by: Billy Tsai > Change-Id: I18d9dea

Re: [Outreachy kernel] Re: [PATCH 1/2] staging: media: atomisp: pci: Correct identation in block of conditional statements in file atomisp_v4l2.c

2021-04-14 Thread ascordeiro
Em qua, 2021-04-14 às 17:45 +0300, Dan Carpenter escreveu: > On Wed, Apr 14, 2021 at 04:39:20PM +0200, Julia Lawall wrote: > > > > > > On Wed, 14 Apr 2021, Dan Carpenter wrote: > > > > > On Wed, Apr 14, 2021 at 11:06:02AM -0300, Aline Santana Cordeiro > > > wrote: > > > > Correct identation in b

[Resend RFC PATCH V2 10/12] HV/IOMMU: Add Hyper-V dma ops support

2021-04-14 Thread Tianyu Lan
From: Tianyu Lan Hyper-V Isolation VM requires bounce buffer support. To use swiotlb bounce buffer, add Hyper-V dma ops and use swiotlb functions in the map and unmap callback. Allocate bounce buffer in the Hyper-V code because bounce buffer needs to be accessed via extra address space(e.g, addr

Re: [PATCH v2] time: Fix overwrite err unexpected in clock_adjtime32

2021-04-14 Thread Richard Cochran
On Wed, Apr 14, 2021 at 03:04:49AM +, Chen Jun wrote: > the correct error is covered by put_old_timex32. > > Fixes: 3a4d44b61625 ("ntp: Move adjtimex related compat syscalls to native > counterparts") > Signed-off-by: Chen Jun Reviewed-by: Richard Cochran

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

2021-04-14 Thread Dennis Zhou
On Wed, Apr 14, 2021 at 01:44:58PM +0800, Huang, Ying wrote: > Dennis Zhou writes: > > > On Wed, Apr 14, 2021 at 11:59:03AM +0800, Huang, Ying wrote: > >> Dennis Zhou writes: > >> > >> > Hello, > >> > > >> > On Wed, Apr 14, 2021 at 10:06:48AM +0800, Huang, Ying wrote: > >> >> Miaohe Lin writes

Re: the qemu-nbd process automatically exit with the commit 43347d56c 'livepatch: send a fake signal to all blocking tasks'

2021-04-14 Thread xiaojun . zhao141
On Wed, 14 Apr 2021 13:27:43 +0200 (CEST) Miroslav Benes wrote: > Hi, > > On Wed, 14 Apr 2021, xiaojun.zhao...@gmail.com wrote: > > > I found the qemu-nbd process(started with qemu-nbd -t -c /dev/nbd0 > > nbd.qcow2) will automatically exit when I patched for functions of > > the nbd with livepa

Re: [PATCH v2, 0/5] Revert "mailbox: mediatek: remove implementation related to atomic_exec"

2021-04-14 Thread Jassi Brar
On Wed, Apr 14, 2021 at 3:51 AM Matthias Brugger wrote: > > > > On 12/04/2021 17:29, Jassi Brar wrote: > > On Mon, Apr 12, 2021 at 6:18 AM Yongqiang Niu > > wrote: > >> > >> This series base linux 5.12-rc2 > >> these patches will cause home ui flick when cursor moved, > >> there is no fix solutio

Re: [GIT PULL] Immutable branch between MFD, Clock, GPIO, Regulator and RTC due for the v5.13 merge window

2021-04-14 Thread Lee Jones
On Wed, 14 Apr 2021, Lee Jones wrote: > Please note that this PR will break your build unless you have the > required Regulator API update. > > fb8fee9efdcf0 regulator: Add regmap helper for ramp-delay setting > e3baacf542756 regulator: helpers: Export helper voltage listing Looks like Mark ha

Re: drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:306:26: sparse: sparse: incorrect type in argument 1 (different address spaces)

2021-04-14 Thread Andy Shevchenko
iomem argument (as in generic implementation) > date: 8 months ago > config: alpha-randconfig-s032-20210414 (attached as .config) > compiler: alpha-linux-gcc (GCC) 9.3.0 > reproduce: > wget > https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O &

Re: [RFC PATCH 0/3] Separate BE DAI HW constraints from FE ones

2021-04-14 Thread Codrin.Ciubotariu
On 23.03.2021 16:18, codrin.ciubota...@microchip.com wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 23.03.2021 14:15, Jaroslav Kysela wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the >> content is s

[PATCH v2 0/3] Drivers: hv: vmbus: Introduce CHANNELMSG_MODIFYCHANNEL_RESPONSE

2021-04-14 Thread Andrea Parri (Microsoft)
Changes since v1[1]: - rebase on hyperv-next - split changes into three patches - fix&simplify error handling in send_modifychannel_with_ack() - remove rescind checks in send_modifychannel_with_ack() - remove unneeded test in hv_synic_event_pending() - add/amend inline comments - styl

[PATCH v2 1/3] Drivers: hv: vmbus: Introduce and negotiate VMBus protocol version 5.3

2021-04-14 Thread Andrea Parri (Microsoft)
Hyper-V has added VMBus protocol version 5.3. Allow Linux guests to negotiate the new version on version of Hyper-V that support it. Signed-off-by: Andrea Parri (Microsoft) --- drivers/hv/connection.c | 3 ++- include/linux/hyperv.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff

Re: [PATCH v4 2/2] remoteproc: stm32: add capability to detach

2021-04-14 Thread Bjorn Andersson
On Wed 14 Apr 02:23 CDT 2021, Arnaud POULIQUEN wrote: > On 4/13/21 11:34 PM, Bjorn Andersson wrote: > > On Wed 31 Mar 02:33 CDT 2021, Arnaud Pouliquen wrote: [..] > >> + err = mbox_send_message(ddata->mb[idx].chan, > >> + &dummy_data); > > > > Seems I post

[PATCH v2 2/3] Drivers: hv: vmbus: Drivers: hv: vmbus: Introduce CHANNELMSG_MODIFYCHANNEL_RESPONSE

2021-04-14 Thread Andrea Parri (Microsoft)
Introduce the CHANNELMSG_MODIFYCHANNEL_RESPONSE message type, and code to receive and process such a message. Signed-off-by: Andrea Parri (Microsoft) --- drivers/hv/channel.c | 99 --- drivers/hv/channel_mgmt.c | 42 + drivers/hv/hv_trace.

[PATCH v2 3/3] Drivers: hv: vmbus: Check for pending channel interrupts before taking a CPU offline

2021-04-14 Thread Andrea Parri (Microsoft)
Check that enough time has passed such that the modify channel message has been processed before taking a CPU offline. Signed-off-by: Andrea Parri (Microsoft) --- drivers/hv/hv.c | 49 + 1 file changed, 49 insertions(+) diff --git a/drivers/hv/hv.

[GIT PULL] VFIO fix for v5.12-rc8/final

2021-04-14 Thread Alex Williamson
Hi Linus, Sorry for the late request. The following changes since commit d434405aaab7d0ebc516b68a8fc4100922d7f5ef: Linux 5.12-rc7 (2021-04-11 15:16:13 -0700) are available in the Git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v5.12-rc8 for you to fetch changes up to

Re: [v2 PATCH 6/7] mm: migrate: check mapcount for THP instead of ref count

2021-04-14 Thread Zi Yan
On 13 Apr 2021, at 23:00, Huang, Ying wrote: > Yang Shi writes: > >> The generic migration path will check refcount, so no need check refcount >> here. >> But the old code actually prevents from migrating shared THP (mapped by >> multiple >> processes), so bail out early if mapcount is > 1 to k

[patch] kasan: make it RT aware

2021-04-14 Thread Mike Galbraith
On Wed, 2021-04-14 at 08:15 +0200, Mike Galbraith wrote: > On Wed, 2021-04-14 at 07:26 +0200, Dmitry Vyukov wrote: > > On Wed, Apr 14, 2021 at 6:00 AM Mike Galbraith wrote: > > > > > [0.692437] BUG: sleeping function called from invalid context at > > > kernel/locking/rtmutex.c:943 > > > [

Re: [PATCH] mac80211_hwsim: indicate support for 60GHz channels

2021-04-14 Thread Ramon Fontes
> Advertise 60GHz channels to mac80211. Oh.. That was a mistake. Sorry for that. Anyway, can we indicate 60GHz support even though it is not being supported by mac80211 yet?

Re: [PATCH 2/2] ptrace: is_syscall_success: Add syscall return code handling for compat task

2021-04-14 Thread Oleg Nesterov
Add audit maintainers... On 04/14, He Zhe wrote: > > When 32-bit userspace application is running on 64-bit kernel, the 32-bit > syscall return code would be changed from u32 to u64 in regs_return_value > and then changed to s64. Hence the negative return code would be treated > as a positive numb

Re: [PATCH] mac80211_hwsim: indicate support for 60GHz channels

2021-04-14 Thread Johannes Berg
On Wed, 2021-04-14 at 12:06 -0300, Ramon Fontes wrote: > > Advertise 60GHz channels to mac80211. > Oh.. That was a mistake. Sorry for that. > > Anyway, can we indicate 60GHz support even though it is not being > supported by mac80211 yet? > No, that makes no sense. DMG operation is significantly

Re: [PATCH v4 2/3] usb: typec: tcpm: Allow slow charging loops to comply to pSnkStby

2021-04-14 Thread Greg Kroah-Hartman
On Wed, Apr 14, 2021 at 07:26:55AM -0700, Badhri Jagan Sridharan wrote: > When a PD charger advertising Rp-3.0 is connected to a sink port, the > sink port current limit would 3A, during SNK_DISCOVERY, till power > negotiation starts. Once the negotiation starts the power limit needs > to drop down

Re: [PATCH net-next v2 0/5] net: pch: fix and a few cleanups

2021-04-14 Thread Andy Shevchenko
On Thu, Mar 25, 2021 at 07:34:07PM +0200, Andy Shevchenko wrote: > The series provides one fix (patch 1) for GPIO to be able to wait for > the GPIO driver to appear. This is separated from the conversion to > the GPIO descriptors (patch 2) in order to have a possibility for > backporting. Patches 3

[PATCH 2/3] mmc: sdhci-s3c: correct kerneldoc of sdhci_s3c_drv_data

2021-04-14 Thread Krzysztof Kozlowski
Correct the name of sdhci_s3c_drv_data structure in kerneldoc: drivers/mmc/host/sdhci-s3c.c:143: warning: expecting prototype for struct sdhci_s3c_driver_data. Prototype was for struct sdhci_s3c_drv_data instead Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/sdhci-s3c.c | 2 +-

[PATCH 1/3] mmc: sdhci-s3c: fix possible NULL pointer dereference when probed via platform

2021-04-14 Thread Krzysztof Kozlowski
The driver can be matched by legacy platform way or OF-device matching. In the first case, of_match_node() can return NULL, which immediately would be dereferenced to get the match data. Addresses-Coverity: Dereference null return value Fixes: cd1b00eb24b0 ("mmc: sdhci-s3c: Add device tree support

[PATCH 3/3] mmc: sdhci-s3c: constify uses of driver/match data

2021-04-14 Thread Krzysztof Kozlowski
The driver data (struct sdhci_s3c_drv_data) stored in of_device_id table is allocated as const and used only in const-way. Skip unnecessary const-away casts and convert all users to work with pointer to const. This is both more logical and safer. Signed-off-by: Krzysztof Kozlowski --- drivers/

Re: [RFC/RFT PATCH 1/3] memblock: update initialization of reserved pages

2021-04-14 Thread David Hildenbrand
On 07.04.21 19:26, Mike Rapoport wrote: From: Mike Rapoport The struct pages representing a reserved memory region are initialized using reserve_bootmem_range() function. This function is called for each reserved region just before the memory is freed from memblock to the buddy page allocator.

Hallo from Michelle

2021-04-14 Thread Shayma
Hallo Liebes, bitte ich brauche deine dringende Antwort. Ich muss dir dringend etwas mitteilen Vielen Dank Michelle

Re: [PATCH RFC net-next 0/3] Multi-CPU DSA support

2021-04-14 Thread Marek Behun
On Tue, 13 Apr 2021 20:16:24 +0200 Tobias Waldekranz wrote: > You could imagine a different mode in which the DSA driver would receive > the bucket allocation from the bond/team driver (which in turn could > come all the way from userspace). Userspace could then implement > whatever strategy it w

Re: [PATCH v2 6/6] can: m_can: Add support for transceiver as phy

2021-04-14 Thread Marc Kleine-Budde
On 14.04.2021 19:35:21, Aswath Govindraju wrote: > From: Faiz Abbas > > Add support for implementing transceiver node as phy. The max_bitrate is > obtained by getting a phy attribute. > > Signed-off-by: Faiz Abbas > Signed-off-by: Aswath Govindraju > --- > drivers/net/can/m_can/m_can.c

[GIT PULL]: Generic phy updates for v5.13 -second round

2021-04-14 Thread Vinod Koul
Hi Greg, As promised, here are some minor fixes for earlier pull request. This includes fixes which came in after the request was sent The following changes since commit cbc336c09b6d6dfb24d20c955599123308fa2fe2: phy: fix resource_size.cocci warnings (2021-04-06 10:39:20 +0530) are available i

Re: [PATCHv2] mm/mmap.c: lines in __do_munmap repeat logic of inlined find_vma_intersection

2021-04-14 Thread David Hildenbrand
On 08.04.21 05:46, Gonzalo Matias Juarez Tello wrote: Some lines in __do_munmap used the same logic as find_vma_intersection (which is inlined) instead of directly using that function. (Can't believe I made a typo in the first one, compiled this one, sorry first patch kinda nervous for some reas

Re: [PATCH] Drivers: hv: vmbus: remove unused function

2021-04-14 Thread Wei Liu
On Wed, Apr 14, 2021 at 02:48:17PM +, Michael Kelley wrote: > From: Jiapeng Chong Sent: Tuesday, April > 13, 2021 11:21 PM [...] > This function became unused as of commit 4226ff69a3df > ("vmbus: simplify hv_ringbuffer_read") on 7/17/2017. > > Reviewed-by: Michael Kelley Applied to hyperv

Re: drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:306:26: sparse: sparse: incorrect type in argument 1 (different address spaces)

2021-04-14 Thread Krzysztof Kozlowski
ffab5f818c32a2454 >> commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() >> iomem argument (as in generic implementation) >> date: 8 months ago >> config: alpha-randconfig-s032-20210414 (attached as .config) >> compiler: alpha-linux-gcc (GCC) 9.3.0 >> reproduce: >>

Re: [PATCH 04/11] mm/vmstat: Convert NUMA statistics to basic NUMA counters

2021-04-14 Thread Mel Gorman
On Wed, Apr 14, 2021 at 02:56:45PM +0200, Vlastimil Babka wrote: > On 4/7/21 10:24 PM, Mel Gorman wrote: > > NUMA statistics are maintained on the zone level for hits, misses, foreign > > etc but nothing relies on them being perfectly accurate for functional > > correctness. The counters are used b

Re: [RFC V2 PATCH 8/12] UIO/Hyper-V: Not load UIO HV driver in the isolation VM.

2021-04-14 Thread Tianyu Lan
Hi Greg: Thanks for your review. On 4/14/2021 12:00 AM, Greg KH wrote: On Tue, Apr 13, 2021 at 11:22:13AM -0400, Tianyu Lan wrote: From: Tianyu Lan UIO HV driver should not load in the isolation VM for security reason. Why? I need a lot more excuse than that. The reason is that r

Re: the qemu-nbd process automatically exit with the commit 43347d56c 'livepatch: send a fake signal to all blocking tasks'

2021-04-14 Thread xiaojun . zhao141
On Wed, 14 Apr 2021 13:27:43 +0200 (CEST) Miroslav Benes wrote: > Hi, > > On Wed, 14 Apr 2021, xiaojun.zhao...@gmail.com wrote: > > > I found the qemu-nbd process(started with qemu-nbd -t -c /dev/nbd0 > > nbd.qcow2) will automatically exit when I patched for functions of > > the nbd with livepa

Re: [PATCH v1 1/2] powerpc/bitops: Use immediate operand when possible

2021-04-14 Thread Segher Boessenkool
On Wed, Apr 14, 2021 at 02:42:51PM +0200, Christophe Leroy wrote: > Le 14/04/2021 à 14:24, Segher Boessenkool a écrit : > >On Wed, Apr 14, 2021 at 12:01:21PM +1000, Nicholas Piggin wrote: > >>Would be nice if we could let the compiler deal with it all... > >> > >>static inline unsigned long lr(unsi

Re: [PATCH] mm: Optimise nth_page for contiguous memmap

2021-04-14 Thread David Hildenbrand
On 13.04.21 21:46, Matthew Wilcox (Oracle) wrote: If the memmap is virtually contiguous (either because we're using a virtually mapped memmap or because we don't support a discontig memmap at all), then we can implement nth_page() by simple addition. Contrary to popular belief, the compiler is no

Re: [PATCH 1/3] mmc: sdhci-s3c: fix possible NULL pointer dereference when probed via platform

2021-04-14 Thread Krzysztof Kozlowski
On 14/04/2021 17:12, Krzysztof Kozlowski wrote: > The driver can be matched by legacy platform way or OF-device matching. > In the first case, of_match_node() can return NULL, which immediately > would be dereferenced to get the match data. > > Addresses-Coverity: Dereference null return value > F

Re: [PATCH v3] firmware_loader: fix use-after-free in firmware_fallback_sysfs

2021-04-14 Thread Shuah Khan
On 4/14/21 6:55 AM, Luis Chamberlain wrote: Shuah, a question for you toward the end here. On Wed, Apr 14, 2021 at 02:24:05PM +0530, Anirudh Rayabharam wrote: This use-after-free happens when a fw_priv object has been freed but hasn't been removed from the pending list (pending_fw_head). The ne

[PATCH net-next 2/3] net: add helper eth_addr_add()

2021-04-14 Thread Michael Walle
Sometimes you need to add an offset to a base ethernet address. Add a helper for that. Signed-off-by: Michael Walle --- include/linux/etherdevice.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 330345b1be54..6e

[PATCH net-next 0/3] net: add support for an offset of a nvmem provided MAC address

2021-04-14 Thread Michael Walle
Boards with multiple ethernet ports might store their MAC addresses not individually per port but just store one base MAC address. To get the MAC address of a specific network port we have to add an offset. This series adds a new device tree property "nvmem-mac-address-offset". Michael Walle (3):

[PATCH net-next 1/3] dt-bindings: net: add nvmem-mac-address-offset property

2021-04-14 Thread Michael Walle
It is already possible to read the MAC address via a NVMEM provider. But there are boards, esp. with many ports, which only have a base MAC address stored. Thus we need to have a way to provide an offset per network device. Signed-off-by: Michael Walle --- .../devicetree/bindings/net/ethernet-co

[PATCH net-next 3/3] net: implement nvmem-mac-address-offset DT property

2021-04-14 Thread Michael Walle
The MAC address fetched by an NVMEM provider might have an offset to it. Add the support for it in nvmem_get_mac_address(). Signed-off-by: Michael Walle --- drivers/of/of_net.c | 4 net/ethernet/eth.c | 5 + 2 files changed, 9 insertions(+) diff --git a/drivers/of/of_net.c b/drivers/o

Re: [PATCH] mm: Optimise nth_page for contiguous memmap

2021-04-14 Thread Zi Yan
On 13 Apr 2021, at 15:46, Matthew Wilcox (Oracle) wrote: > If the memmap is virtually contiguous (either because we're using > a virtually mapped memmap or because we don't support a discontig > memmap at all), then we can implement nth_page() by simple addition. > Contrary to popular belief, the

Re: [RFC/RFT PATCH 1/3] memblock: update initialization of reserved pages

2021-04-14 Thread Ard Biesheuvel
On Wed, 14 Apr 2021 at 17:14, David Hildenbrand wrote: > > On 07.04.21 19:26, Mike Rapoport wrote: > > From: Mike Rapoport > > > > The struct pages representing a reserved memory region are initialized > > using reserve_bootmem_range() function. This function is called for each > > reserved regio

[PATCH RESEND] dm verity: fix not aligned logical block size of RS roots IO

2021-04-14 Thread Jaegeuk Kim
From: Jaegeuk Kim commit df7b59ba9245 ("dm verity: fix FEC for RS roots unaligned to block size") made dm_bufio->block_size 1024, if f->roots is 2. But, that gives the below EIO if the logical block size of the device is 4096, given v->data_dev_block_bits=12. E sd 0: 0:0:0: [sda] tag#30 req

Re: [PATCH v3] HID: i2c-hid: Skip ELAN power-on command after reset

2021-04-14 Thread Doug Anderson
Hi, On Mon, Apr 12, 2021 at 6:20 PM Johnny Chuang wrote: > > Fixes: 43b7029f475e ("HID: i2c-hid: Send power-on command after reset"). Note that the "Fixes" tag actually belongs down at the end. It also shouldn't have a "." at the end. Presumably the maintainer can adjust this when landing? > F

Re: [PATCH v2 1/2] spi: Add DFL bus driver for Altera SPI Master

2021-04-14 Thread Tom Rix
On 4/13/21 3:58 PM, matthew.gerl...@linux.intel.com wrote: From: Matthew Gerlach This patch adds a Device Feature List (DFL) bus driver for the Altera SPI Master controller. The SPI master is connected to an Intel SPI Slave to Avalon Master Bridge inside an Intel MAX10 BMC Chip. Signed-off-

[PATCH v2 net-next 0/9] net: Korina improvements

2021-04-14 Thread Thomas Bogendoerfer
While converting Mikrotik RB532 support to use device tree I stumbled over the korina ethernet driver, which used way too many MIPS specific hacks. This series cleans this all up and adds support for device tree. Changes in v2: - added device tree support to get rid of idt_cpu_freq - fixed com

[PATCH v2 net-next 1/9] net: korina: Fix MDIO functions

2021-04-14 Thread Thomas Bogendoerfer
Fixed MDIO functions to work reliable and not just by accident. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/korina.c | 57 +++ 2 files changed, 39 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethern

[PATCH v2 net-next 2/9] net: korina: Use devres functions

2021-04-14 Thread Thomas Bogendoerfer
Simplify probe/remove code by using devm_ functions. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 64 --- 1 file changed, 21 insertions(+), 43 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c index

[PATCH v2 net-next 5/9] net: korina: Use DMA API

2021-04-14 Thread Thomas Bogendoerfer
Instead of messing with MIPS specific macros use DMA API for mapping descriptors and skbs. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 158 +- 1 file changed, 98 insertions(+), 60 deletions(-) diff --git a/drivers/net/ethernet/korina.c

[PATCH v2 net-next 8/9] net: korina: Get mdio input clock via common clock framework

2021-04-14 Thread Thomas Bogendoerfer
With device tree clock is provided via CCF. For non device tree use a maximum clock value to not overclock the PHY. The non device tree usage will go away after platform is converted to DT. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 19 +-- 1 file chan

[PATCH v2 net-next 6/9] net: korina: Only pass mac address via platform data

2021-04-14 Thread Thomas Bogendoerfer
Get rid of access to struct korina_device by just passing the mac address via platform data and use drvdata for passing netdev to remove function. Signed-off-by: Thomas Bogendoerfer --- arch/mips/rb532/devices.c | 5 +++-- drivers/net/ethernet/korina.c | 11 ++- 2 files changed, 9 i

[PATCH v2 net-next 9/9] net: korina: Make driver COMPILE_TESTable

2021-04-14 Thread Thomas Bogendoerfer
Move structs/defines for ethernet/dma register into driver, since they are only used for this driver and remove any MIPS specific includes. This makes it possible to COMPILE_TEST the driver. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/Kconfig | 2 +- drivers/net/ethernet/korin

RE: [PATCH v1 1/2] powerpc/bitops: Use immediate operand when possible

2021-04-14 Thread David Laight
From: Segher Boessenkool > Sent: 14 April 2021 16:19 ... > > Could the kernel use GCC builtin atomic functions instead ? > > > > https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html > > Certainly that should work fine for the simpler cases that the atomic > operations are meant to pro

[PATCH v2 net-next 3/9] net: korina: Remove not needed cache flushes

2021-04-14 Thread Thomas Bogendoerfer
Descriptors are mapped uncached so there is no need to do any cache handling for them. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c index 3a454f6214b0..b

[PATCH v2 net-next 4/9] net: korina: Remove nested helpers

2021-04-14 Thread Thomas Bogendoerfer
Remove helpers, which are only used in one call site. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c index b6dcbb6

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