Re: WARNING in __snd_pcm_lib_xfer

2018-05-01 Thread Takashi Iwai
On Wed, 02 May 2018 04:12:02 +0200, syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:fff75eb2a08c Merge tag 'errseq-v4.17' of > git://git.kernel.o... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?id=6530078334779392 > ke

Re: [PATCH v1] clk: qcom: gdsc: Add support to poll CFG register to check GDSC state

2018-05-01 Thread Stephen Boyd
Quoting Taniya Das (2018-04-30 22:03:33) > @@ -45,15 +50,28 @@ > > #define domain_to_gdsc(domain) container_of(domain, struct gdsc, pd) > > -static int gdsc_is_enabled(struct gdsc *sc, unsigned int reg) > +static int gdsc_is_enabled(struct gdsc *sc, bool en) > { > + unsigned int reg; >

Re: [PATCH] memcg, hugetlb: pages allocated for hugetlb's overcommit will be charged to memcg

2018-05-01 Thread TSUKADA Koutaro
On 2018/05/02 13:41, Mike Kravetz wrote: > What is the reason for not charging pages at allocation/reserve time? I am > not an expert in memcg accounting, but I would think the pages should be > charged at allocation time. Otherwise, a task could allocate a large number > of (reserved) pages that

Re: [PATCH 4/4] usb: roles: intel_xhci: Always allow user control

2018-05-01 Thread Heikki Krogerus
On Tue, May 01, 2018 at 11:57:55AM +0200, Hans de Goede wrote: > Hi, > > On 30-04-18 14:41, Heikki Krogerus wrote: > > Trying to determine the USB port type with this mux is very > > difficult. To simplify the situation, always allowing user > > control, even if the port is USB Type-C port. > > >

Re: [PATCH 3/4] usb: typec: fusb302: Fix debugfs issue

2018-05-01 Thread Heikki Krogerus
On Mon, Apr 30, 2018 at 06:34:03AM -0700, Guenter Roeck wrote: > On 04/30/2018 05:41 AM, Heikki Krogerus wrote: > > Removing the "fusb302" debugfs directory when unloading > > the driver. That allows the driver to be loaded more then > > ones. > > > > This fixes an issue where the driver, if unloa

Re: recent patch "x86/acpi: Prevent X2APIC id 0xffffffff from being accounted"

2018-05-01 Thread Jan Beulich
>>> On 02.05.18 at 03:56, wrote: > At 04/27/2018 08:09 PM, Jan Beulich wrote: >> I'm afraid I don't understand: Limiting the number of disabled CPUs is >> certainly desirable when those can never be used, but why would you >> want to do this when they might later get hotplugged? I'm not aware > >

Re: [PATCH v10 17/25] mm: protect mm_rb tree with a rwlock

2018-05-01 Thread Laurent Dufour
Hi Punit, Thanks for reviewing this series. On 30/04/2018 20:47, Punit Agrawal wrote: > Hi Laurent, > > One nitpick below. > > On Tue, Apr 17, 2018 at 3:33 PM, Laurent Dufour > wrote: >> This change is inspired by the Peter's proposal patch [1] which was >> protecting the VMA using SRCU. Unfor

Re: [PATCH v8 12/12] ARM: shmobile: Convert file to use cntvoff

2018-05-01 Thread Simon Horman
On Tue, May 01, 2018 at 02:31:31PM +0200, Mylène Josserand wrote: > Now that a common function is available for CNTVOFF's > initialization, let's convert shmobile-apmu code to use > this function. > > Signed-off-by: Mylène Josserand > Reviewed-by: Geert Uytterhoeven > Tested-by: Geert Uytterhoev

Re: [PATCHv4 2/2] iommu/vt-d: Limit number of faults to clear in irq handler

2018-05-01 Thread Lu Baolu
Hi, On 03/31/2018 08:33 AM, Dmitry Safonov wrote: > Theoretically, on some machines faults might be generated faster than > they're cleared by CPU. Is this a real case? > Let's limit the cleaning-loop by number of hw > fault registers. Will this cause the fault recording registers full of faul

Re: [PATCH] platform/x86: asus-wmi: Add keyboard backlight toggle support

2018-05-01 Thread Jian-Hong Pan
2018-05-02 14:02 GMT+08:00 Chris Chiu : > Some Asus laptops like UX550GE has hotkey (Fn+F7) for keyboard > backlight toggle. In this UX550GE, the hotkey incremet the level > of brightness for each keypress from 1 to 3, and then switch it > off when the brightness has been the max. This commit inter

Re: [PATCH] vhost: make msg padding explicit

2018-05-01 Thread Kevin Easton
On Tue, May 01, 2018 at 02:05:51PM -0400, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Tue, 1 May 2018 20:19:19 +0300 > > > On Tue, May 01, 2018 at 11:28:22AM -0400, David Miller wrote: > >> From: "Michael S. Tsirkin" > >> Date: Fri, 27 Apr 2018 19:02:05 +0300 > >> > >> > There's a

Re: [PATCH 08/21] bindings: display: Add compatible for A64 HDMI PHY

2018-05-01 Thread Jagan Teki
Hi Rob, On Tue, May 1, 2018 at 9:49 PM, Rob Herring wrote: > > On Mon, Apr 30, 2018 at 05:10:45PM +0530, Jagan Teki wrote: > > HDMI PHY on Allwinner A64 has similar like H3/H5. > > > > Signed-off-by: Jagan Teki > > --- > > Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 1 + > >

Re: [PATCH 10/28] venus: vdec: call session_continue in insufficient event

2018-05-01 Thread Vikash Garodia
Hello Stanimir, On 2018-04-24 18:14, Stanimir Varbanov wrote: Call session_continue for Venus 4xx version even when the event says that the buffer resources are not sufficient. Leaving a comment with more information about the workaround. Signed-off-by: Stanimir Varbanov --- drivers/media/pla

[BUG ?] lockdep report from nbd on 4.16

2018-05-01 Thread Benjamin Herrenschmidt
Hi ! I was playing with nbd on some little ARM bmc here with lockdep enabled and I get the following report. I don't have the bandwidth to dig into it this week to check if it's a false positive so I'm posting it here instead. Cheers, Ben. # nbd-client pasglop /dev/nbd0 Warning: the oldstyle pr

Re: pull request: linux-firmware: update cxgb4 firmware

2018-05-01 Thread Ganesh Goudar
On Tuesday, May 05/01/18, 2018 at 08:10:37 -0400, Josh Boyer wrote: > On Wed, Apr 25, 2018 at 11:06 AM, Ganesh Goudar wrote: > > Hi, > > > > Kindly pull the new firmware from the following URL. > > git://git.chelsio.net/pub/git/linux-firmware.git for-upstream > > > > Thanks > > Ganesh > > > > The

[PATCH] efi: Fix the size not consistent issue when unmapping memory map

2018-05-01 Thread Lee, Chun-Yi
When using kdump, SOMETIMES the "size not consistent" warning message shows up when the crash kernel boots with early_ioremap_debug parameter: WARNING: CPU: 0 PID: 0 at ../mm/early_ioremap.c:182 early_iounmap+0x4f/0x12c() early_iounmap(ff200180, 0118) [0] size not consistent 0120

Re: Warning for driver i915 for 4.17.0-rcX

2018-05-01 Thread Jani Nikula
On Mon, 30 Apr 2018, Larry Finger wrote: > With kernel 4.17.0-rc3, I noted the following warning from driver i915. > > kernel: [ cut here ] > kernel: Could not determine valid watermarks for inherited state > kernel: WARNING: CPU: 3 PID: 224 at > drivers/gpu/drm/i915/intel

Re: [PATCH] coresight: Remove %px for printing pcsr value

2018-05-01 Thread Leo Yan
On Tue, May 01, 2018 at 10:29:46PM -0700, Kees Cook wrote: > On Tue, May 1, 2018 at 10:00 PM, Leo Yan wrote: > > The driver prints pcsr twice: the first time it uses specifier %px to > > print hexadecimal pcsr value and the second time uses specifier %pS for > > output kernel symbols. > > > > As s

Re: [PATCH 08/28] venus: hfi_venus: add suspend function for 4xx version

2018-05-01 Thread vgarodia
Hello Stanimir, On 2018-04-24 18:14, Stanimir Varbanov wrote: This adds suspend (power collapse) function with slightly different order of calls comparing with Venus 3xx. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi_venus.c | 52 +++ 1 f

Re: linux-next: manual merge of the bpf-next tree with the bpf tree

2018-05-01 Thread Song Liu
> On May 1, 2018, at 10:50 PM, Stephen Rothwell wrote: > > Hi Song, > > On Wed, 2 May 2018 04:40:20 + Song Liu wrote: >> >>> - CHECK(build_id_matches < 1, "build id match", >>> - "Didn't find expected build ID from the map\n"); >>> + if (CHECK(build_id_matches < 1, "build id

[PATCH] platform/x86: asus-wmi: Add keyboard backlight toggle support

2018-05-01 Thread Chris Chiu
Some Asus laptops like UX550GE has hotkey (Fn+F7) for keyboard backlight toggle. In this UX550GE, the hotkey incremet the level of brightness for each keypress from 1 to 3, and then switch it off when the brightness has been the max. This commit interprets the code 0xc7 generated from hotkey to KEY

Re: 答复: Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec

2018-05-01 Thread Mathieu Malaterre
Hi all, On Wed, May 2, 2018 at 4:39 AM, Qu, Jim wrote: > Hi , > > If you are sure that the HW worked fine before. I think you should: > > 1. Be sure that HW works fine now. > 2. recall the driver to the point at where it works well, and then replace > them one by one to confirm component which c

Re: RTL8723BE performance regression

2018-05-01 Thread Pkshih
On Wed, 2018-05-02 at 05:44 +, Pkshih wrote: > > > -Original Message- > > From: João Paulo Rechi Vita [mailto:jprv...@gmail.com] > > Sent: Wednesday, May 02, 2018 6:41 AM > > To: Larry Finger > > Cc: Steve deRosier; 莊彥宣; Pkshih; Birming Chiu; Shaofu; Steven Ting; > > Chaoming_Li; Kall

[RFC PATCH] Add /proc//numa_vamaps for numa node information

2018-05-01 Thread Prakash Sangappa
For analysis purpose it is useful to have numa node information corresponding mapped address ranges of the process. Currently /proc//numa_maps provides list of numa nodes from where pages are allocated per VMA of the process. This is not useful if an user needs to determine which numa node the mapp

Re: linux-next: manual merge of the bpf-next tree with the bpf tree

2018-05-01 Thread Stephen Rothwell
Hi Song, On Wed, 2 May 2018 04:40:20 + Song Liu wrote: > > > - CHECK(build_id_matches < 1, "build id match", > > - "Didn't find expected build ID from the map\n"); > > + if (CHECK(build_id_matches < 1, "build id match", > > - "Didn't find expected build ID from the map

Re: [PATCH 1/2] i2c: sprd: Prevent i2c accesses after suspend is called

2018-05-01 Thread Baolin Wang
On 2 May 2018 at 13:23, Wolfram Sang wrote: > >> > We should maybe handle this in the core somewhen, though. Or? >> >> Thanks. Yes, It will more helpful if we can handle this in the i2c core. > > To understand the issue better: which kind of devices in your system > still send I2C transfers when t

Re: [PATCH] staging: wilc1000: fix infinite loop and out-of-bounds access

2018-05-01 Thread Ajay Singh
On Mon, 30 Apr 2018 18:23:21 +0300 Dan Carpenter wrote: > On Mon, Apr 30, 2018 at 07:59:16PM +0530, Ajay Singh wrote: > > Reviewed-by: Ajay Singh > > > > On Mon, 30 Apr 2018 07:50:40 -0500 > > "Gustavo A. R. Silva" wrote: > > > > > If i < slot_id is initially true then it will remain true.

RE: RTL8723BE performance regression

2018-05-01 Thread Pkshih
> -Original Message- > From: João Paulo Rechi Vita [mailto:jprv...@gmail.com] > Sent: Wednesday, May 02, 2018 6:41 AM > To: Larry Finger > Cc: Steve deRosier; 莊彥宣; Pkshih; Birming Chiu; Shaofu; Steven Ting; > Chaoming_Li; Kalle Valo; > linux-wireless; Network Development; LKML; Daniel Dr

Re: [PATCH] hwtracing: intel_th: Change return type to vm_fault_t

2018-05-01 Thread Souptick Joarder
Any comment for this patch ? On Tue, Apr 17, 2018 at 7:45 PM, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted, vm_fault_t will beco

Re: [greybus-dev] [PATCH v2] staging: greybus: Use gpio_is_valid()

2018-05-01 Thread Viresh Kumar
On 28-04-18, 10:05, Arvind Yadav wrote: > Replace the manual validity checks for the GPIO with the > gpio_is_valid(). > > Signed-off-by: Arvind Yadav > --- > chnage in v2 : > Returning invalid gpio as error instead of -ENODEV. > > drivers/staging/greybus/arche-platform.c | 6 +++---

Re: [PATCH 3/6] PCI: Introduce devm_of_pci_get_host_bridge_resources

2018-05-01 Thread Jan Kiszka
On 2018-04-30 20:43, Sinan Kaya wrote: > On 4/30/2018 2:40 PM, Bjorn Helgaas wrote: >> On Sat, Apr 28, 2018 at 09:28:47AM +0200, Jan Kiszka wrote: >>> On 2018-04-28 00:24, Bjorn Helgaas wrote: On Tue, Apr 24, 2018 at 05:13:39PM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > of_pc

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Dan Williams
On Tue, May 1, 2018 at 9:14 PM, Linus Torvalds wrote: > On Tue, May 1, 2018 at 9:00 PM Dan Williams > wrote: >> > >> > I have some dim memory of "rep movs doesn't work well for pmem", but > does >> > it *seriously* need unrolling to cacheline boundaries? And if it does, > who >> > designed it, a

Re: [PATCH] cpufreq: s3c2440: fix spelling mistake: "divsiors" -> "divisors"

2018-05-01 Thread Viresh Kumar
On 30-04-18, 15:48, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in s3c_freq_dbg debug message text. > > Signed-off-by: Colin Ian King > --- > drivers/cpufreq/s3c2440-cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpu

Re: [PATCH] coresight: Remove %px for printing pcsr value

2018-05-01 Thread Kees Cook
On Tue, May 1, 2018 at 10:00 PM, Leo Yan wrote: > The driver prints pcsr twice: the first time it uses specifier %px to > print hexadecimal pcsr value and the second time uses specifier %pS for > output kernel symbols. > > As suggested by Kees, using %pS should be sufficient and %px isn't > necess

Re: [PATCH 1/2] i2c: sprd: Prevent i2c accesses after suspend is called

2018-05-01 Thread Wolfram Sang
> > We should maybe handle this in the core somewhen, though. Or? > > Thanks. Yes, It will more helpful if we can handle this in the i2c core. To understand the issue better: which kind of devices in your system still send I2C transfers when the system is going to suspend? Do you know? signat

[PATCH] staging: lustre: o2iblnd: fix race at kiblnd_connect_peer

2018-05-01 Thread Doug Oucharek
From: Doug Oucahrek cmid will be destroyed at OFED if kiblnd_cm_callback return error. if error happen before the end of kiblnd_connect_peer, it will touch destroyed cmid and fail as (o2iblnd_cb.c:1315:kiblnd_connect_peer()) ASSERTION( cmid->device != ((void *)0) ) failed: Signed-off

Re: [Xen-devel] [PATCH 2/6] xen-netfront: copy response out of shared buffer before accessing it

2018-05-01 Thread Oleksandr Andrushchenko
On 05/01/2018 12:01 AM, Marek Marczykowski-Górecki wrote: Make local copy of the response, otherwise backend might modify it while frontend is already processing it - leading to time of check / time of use issue. This is complementary to XSA155. Cc: sta...@vger.kernel.org Signed-off-by: Marek M

Re: [PATCH v1] kthread/smpboot: Serialize kthread parking against wakeup

2018-05-01 Thread Kohli, Gaurav
On 5/1/2018 6:49 PM, Peter Zijlstra wrote: On 5/1/2018 5:01 PM, Peter Zijlstra wrote: Let me ponder what the best solution is, it's a bit of a mess. So there's: - TASK_PARKED, which we can make a special state; this solves the problem because then wait_task_inactive() is guaranteed

Re: [v2 PATCH 1/1] tg3: fix meaningless hw_stats reading after tg3_halt memset 0 hw_stats

2018-05-01 Thread Michael Chan
On Tue, May 1, 2018 at 5:42 PM, Zumeng Chen wrote: > diff --git a/drivers/net/ethernet/broadcom/tg3.h > b/drivers/net/ethernet/broadcom/tg3.h > index 3b5e98e..c61d83c 100644 > --- a/drivers/net/ethernet/broadcom/tg3.h > +++ b/drivers/net/ethernet/broadcom/tg3.h > @@ -3102,6 +3102,7 @@ enum TG3_F

Re: [PATCH v9 24/27] dt-bindings: timer: new bindings for TI DaVinci timer

2018-05-01 Thread Sekhar Nori
On Wednesday 02 May 2018 07:22 AM, David Lechner wrote: > Sekhar, > > On 04/27/2018 09:05 AM, Rob Herring wrote: >> On Thu, Apr 26, 2018 at 07:17:42PM -0500, David Lechner wrote: >>> This adds new device tree bindings for the timer IP block of TI >>> DaVinci-like SoCs. >>> >>> Signed-off-by: David

Re: [PATCH v2 2/2] usb: dwc2: fix isoc split in transfer with no data

2018-05-01 Thread Doug Anderson
Hi, On Tue, May 1, 2018 at 8:04 PM, William Wu wrote: > If isoc split in transfer with no data (the length of DATA0 > packet is zero), we can't simply return immediately. Because > the DATA0 can be the first transaction or the second transaction > for the isoc split in transaction. If the DATA0 p

[PATCH] coresight: Remove %px for printing pcsr value

2018-05-01 Thread Leo Yan
The driver prints pcsr twice: the first time it uses specifier %px to print hexadecimal pcsr value and the second time uses specifier %pS for output kernel symbols. As suggested by Kees, using %pS should be sufficient and %px isn't necessary; the reason is if the pcsr is a kernel space address, we

[PATCH] staging: lustre: o2iblnd: Fix FastReg map/unmap for MLX5

2018-05-01 Thread Doug Oucharek
The FastReg support in ko2iblnd was not unmapping pool items causing the items to leak. In addition, the mapping code is not growing the pool like we do with FMR. This patch makes sure we are unmapping FastReg pool elements when we are done with them. It also makes sure the pool will grow when w

Re: [PATCH 9/9] iommu/vt-d: Clean up PASID talbe management for SVM

2018-05-01 Thread Lu Baolu
Hi, On 05/01/2018 05:24 PM, Liu, Yi L wrote: >> From: Lu Baolu [mailto:baolu...@linux.intel.com] >> Sent: Tuesday, April 17, 2018 11:03 AM >> >> The previous per iommu pasid table alloc/free interfaces >> are no longer used. Clean up the driver by removing it. > I think this patch major cleans int

Re: [PATCH] memcg, hugetlb: pages allocated for hugetlb's overcommit will be charged to memcg

2018-05-01 Thread Mike Kravetz
On 05/01/2018 06:19 PM, TSUKADA Koutaro wrote: > If nr_overcommit_hugepages is assumed to be infinite, allocating pages for > hugetlb's overcommit from buddy pool is all unlimited even if being limited > by memcg. The purpose of this patch is that if we allocate the hugetlb page > from the boddy po

Re: linux-next: manual merge of the bpf-next tree with the bpf tree

2018-05-01 Thread Song Liu
> On May 1, 2018, at 7:09 PM, Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the bpf-next tree got a conflict in: > > tools/testing/selftests/bpf/test_progs.c > > between commit: > > a4e21ff8d9a3 ("bpf: minor fix to selftest test_stacktrace_build_id()") > > from the

Re: [PATCH 8/9] iommu/vt-d: Use per-domain pasid table

2018-05-01 Thread Lu Baolu
Hi, On 05/01/2018 05:23 PM, Liu, Yi L wrote: >> From: Lu Baolu [mailto:baolu...@linux.intel.com] >> Sent: Tuesday, April 17, 2018 11:03 AM >> >> This patch replaces current per iommu pasid table with >> the new added per domain pasid table. Each svm-capable >> PCI device will have its own pasid ta

Re: [PATCH v2 1/2] usb: dwc2: alloc dma aligned buffer for isoc split in

2018-05-01 Thread Doug Anderson
Hi, On Tue, May 1, 2018 at 8:04 PM, William Wu wrote: > The commit 3bc04e28a030 ("usb: dwc2: host: Get aligned DMA in > a more supported way") rips out a lot of code to simply the > allocation of aligned DMA. However, it also introduces a new > issue when use isoc split in transfer. > > In my tes

Re: [PATCH v3] dmaengine: axi-dmac: Request IRQ with IRQF_SHARED

2018-05-01 Thread Vinod Koul
On Sat, Apr 28, 2018 at 12:57:54PM -0700, Moritz Fischer wrote: > Request IRQ with IRQF_SHARED flag to enable setups with multiple > instances of the core sharing a single IRQ line. > This works out since the IRQ handler already checks if there is > an actual IRQ pending and returns IRQ_NONE otherw

Re: bug-introducing patches

2018-05-01 Thread Willy Tarreau
On Tue, May 01, 2018 at 10:02:30PM +, Sasha Levin wrote: > On Tue, May 01, 2018 at 04:54:48PM -0400, Theodore Y. Ts'o wrote: > >Post -rc3 or -rc4, in my opinion bug fixes should wait until the next > >merge window before they get merged at all. (And certainly features > >bugs should be Right O

Re: [PATCH] Revert "dmaengine: pl330: add DMA_PAUSE feature"

2018-05-01 Thread Vinod Koul
On Sat, Apr 28, 2018 at 05:50:58PM -0400, Frank Mori Hess wrote: > This reverts commit 88987d2c7534a0269f567fb101e6d71a08f0f01d. > > The pl330.c pause implementation violates the dmaengine requirement > for no data loss, since it relies on the DMAKILL > instruction. However, DMAKILL discards in-f

Re: [PATCH][V2] dmaengine: stm32-mdma: fix spelling mistake: "avalaible" -> "available"

2018-05-01 Thread Vinod Koul
On Sat, Apr 28, 2018 at 11:03:52PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in dev_err error message text and make > channel plural. Applied, thanks -- ~Vinod

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Linus Torvalds
On Tue, May 1, 2018 at 9:00 PM Dan Williams wrote: > > > > I have some dim memory of "rep movs doesn't work well for pmem", but does > > it *seriously* need unrolling to cacheline boundaries? And if it does, who > > designed it, and why is anybody using it? > > > I think this is an FAQ from the

[PATCH] staging: lustre: o2iblnd: Enable Multiple OPA Endpoints between Nodes

2018-05-01 Thread Doug Oucharek
OPA driver optimizations are based on the MPI model where it is expected to have multiple endpoints between two given nodes. To enable this optimization for Lustre, we need to make it possible, via an LND-specific tuneable, to create multiple endpoints and to balance the traffic over them. Both si

[PATCH v3] soc: mediatek: add a fixed wait for SRAM stable

2018-05-01 Thread sean.wang
From: Sean Wang MT7622_POWER_DOMAIN_WB doesn't send an ACK when its managed SRAM becomes stable, which is not like the behavior the other power domains should have. Therefore, it's necessary for such a power domain to have a fixed and well-predefined duration to wait until its managed SRAM can be

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Dan Williams
On Tue, May 1, 2018 at 8:33 PM, Linus Torvalds wrote: > On Tue, May 1, 2018 at 8:22 PM Dan Williams > wrote: > >> All that to say that having a typical RAM page covering poisoned pmem >> would complicate the 'clear badblocks' implementation. > > Ugh, ok. > > I guess the good news is that your pat

Re: [PATCH v2 21/27] coresight: Convert driver messages to dev_dbg

2018-05-01 Thread Kim Phillips
On Tue, 1 May 2018 10:10:51 +0100 Suzuki K Poulose wrote: > Convert component enable/disable messages from dev_info to dev_dbg. > This is required to prevent LOCKDEP splats when operating in perf > mode where we could be called with locks held to enable a coresight Can we see the splats? Doesn'

Re: [RFC PATCH for 4.18 00/14] Restartable Sequences

2018-05-01 Thread Daniel Colascione
Hi Mathieu: this work looks very cool. See inline. On Mon, Apr 30, 2018 at 3:48 PM Mathieu Desnoyers < mathieu.desnoy...@efficios.com> wrote: > Hi, > Here is an updated RFC round of the Restartable Sequences patchset > based on kernel 4.17-rc3. Based on feedback from Linus, I'm introducing > onl

Re: [PATCH 2/2] arm64: dts: mt7622: add audio related device nodes

2018-05-01 Thread Sean Wang
Hi, Matthias On Wed, 2018-05-02 at 11:41 +0800, sean.w...@mediatek.com wrote: > From: Ryder Lee > > Add audio device nodes and its proper setup for all used pins > > Signed-off-by: Ryder Lee > Signed-off-by: Sean Wang > --- > arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 11 +++- > arch/arm

Re: [RFC v3 0/5] virtio: support packed ring

2018-05-01 Thread Jason Wang
On 2018年04月25日 13:15, Tiwei Bie wrote: Hello everyone, This RFC implements packed ring support in virtio driver. Some simple functional tests have been done with Jason's packed ring implementation in vhost: https://lkml.org/lkml/2018/4/23/12 Both of ping and netperf worked as expected (with

[PATCH 2/2] arm64: dts: mt7622: add audio related device nodes

2018-05-01 Thread sean.wang
From: Ryder Lee Add audio device nodes and its proper setup for all used pins Signed-off-by: Ryder Lee Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 11 +++- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 89 2 files changed, 98 inser

[PATCH 1/2] arm64: dts: mt7622: add High-Speed DMA device nodes

2018-05-01 Thread sean.wang
From: Sean Wang add High-Speed DMA (HSDMA) nodes Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index e9d5130..6bbabb6 100

Re: [PATCH] scsi: mpt3sas: fix spelling mistake: "disbale" -> "disable"

2018-05-01 Thread Martin K. Petersen
Colin, > Trivial fix to spelling mistake in module parameter description text Ditto. Also hand-applied to 4.18/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: megaraid_sas: fix spelling mistake: "disbale" -> "disable"

2018-05-01 Thread Martin K. Petersen
Colin, > Trivial fix to spelling mistake in module parameter description text Mangled patch. Applied by hand. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Linus Torvalds
On Tue, May 1, 2018 at 8:22 PM Dan Williams wrote: > All that to say that having a typical RAM page covering poisoned pmem > would complicate the 'clear badblocks' implementation. Ugh, ok. I guess the good news is that your patches aren't so big, and don't really affect anything else. But can

Re: [PATCH] scsi: esas2r: fix spelling mistake: "asynchromous" -> "asynchronous"

2018-05-01 Thread Martin K. Petersen
Colin, > Trivial fix to spelling mistake in module description text Applied to 4.18/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: isci: remove redundant check on in_connection_align_insertion_frequency

2018-05-01 Thread Martin K. Petersen
Colin, > The sanity check on u->in_connection_align_insertion_frequency is > being performed twice and hence the first check can be removed since > it is redundant. Cleans up cppcheck warning: > > drivers/scsi/ibmvscsi/ibmvscsi.c:1711: (warning) Identical inner 'if' > condition is always true. A

Re: [PATCH 1/2] i2c: sprd: Prevent i2c accesses after suspend is called

2018-05-01 Thread Baolin Wang
Hi Wolfram, On 27 April 2018 at 20:14, Wolfram Sang wrote: > On Mon, Apr 09, 2018 at 02:40:54PM +0800, Baolin Wang wrote: >> Add one flag to indicate if the i2c controller has been in suspend state, >> which can prevent i2c accesses after i2c controller is suspended following >> system suspend. >

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Dan Williams
On Tue, May 1, 2018 at 8:20 PM, Dan Williams wrote: > On Tue, May 1, 2018 at 8:13 PM, Linus Torvalds > wrote: >> On Tue, May 1, 2018 at 8:03 PM Dan Williams >> wrote: >> >>> Because dax. There's no page cache indirection games we can play here >>> to poison a page and map in another page. The ma

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Dan Williams
On Tue, May 1, 2018 at 8:13 PM, Linus Torvalds wrote: > On Tue, May 1, 2018 at 8:03 PM Dan Williams > wrote: > >> Because dax. There's no page cache indirection games we can play here >> to poison a page and map in another page. The mapped page is 1:1 >> associated with the filesystem block and p

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Linus Torvalds
On Tue, May 1, 2018 at 8:03 PM Dan Williams wrote: > Because dax. There's no page cache indirection games we can play here > to poison a page and map in another page. The mapped page is 1:1 > associated with the filesystem block and physical memory address. I'm not talking page cache indirection

[PATCH v2 2/2] usb: dwc2: fix isoc split in transfer with no data

2018-05-01 Thread William Wu
If isoc split in transfer with no data (the length of DATA0 packet is zero), we can't simply return immediately. Because the DATA0 can be the first transaction or the second transaction for the isoc split in transaction. If the DATA0 packet with no data is in the first transaction, we can return im

Re: [PATCH 6/9] iommu/vt-d: Allocate and free pasid table

2018-05-01 Thread Lu Baolu
Hi, On 05/01/2018 05:22 PM, Liu, Yi L wrote: >> From: Lu Baolu [mailto:baolu...@linux.intel.com] >> Sent: Tuesday, April 17, 2018 11:03 AM >> >> This patch allocates PASID table for a domain at the time when >> it is being created (if any devices using this domain supports >> PASID feature), and f

[PATCH v5 04/28] fpga: mgr: add compat_id support

2018-05-01 Thread Wu Hao
This patch introduces compat_id support to fpga manager, it adds a fpga_compat_id pointer to fpga manager data structure to allow fpga manager drivers to save the compatibility id. This compat_id could be used for compatibility checking before doing partial reconfiguration to associated fpga region

Re: [PATCH 5/9] iommu/vt-d: Per domain pasid table interfaces

2018-05-01 Thread Lu Baolu
Hi Yi, Thank you very much for reviewing my patches. On 05/01/2018 05:22 PM, Liu, Yi L wrote: >> From: Lu Baolu [mailto:baolu...@linux.intel.com] >> Sent: Tuesday, April 17, 2018 11:03 AM >> >> This patch adds the interfaces for per domain pasid table >> management. Currently we allocate one pasi

[PATCH v5 06/28] fpga: add device feature list support

2018-05-01 Thread Wu Hao
Device Feature List (DFL) defines a feature list structure that creates a link list of feature headers within the MMIO space to provide an extensible way of adding features. This patch introduces a kernel module to provide basic infrastructure to support FPGA devices which implement the Device Feat

[PATCH v5 02/28] fpga: mgr: add region_id to fpga_image_info

2018-05-01 Thread Wu Hao
This patch adds region_id to fpga_image_info data structure, it allows driver to pass region id information to fpga-mgr via fpga_image_info for fpga reconfiguration function. Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull --- v3: add one line comment for region_id v4: add Ac

[PATCH v5 08/28] fpga: dfl: add dfl_fpga_cdev_find_port

2018-05-01 Thread Wu Hao
For feature devices, we need a method to find the port dedicated to the device. This patch adds a function dfl_fpga_cdev_find_port for this purpose. e.g FPGA Management Engine (FME) Partial Reconfiguration sub feature, it uses this function to find dedicated port on the device for PR function imple

[PATCH v5 03/28] fpga: mgr: add status for fpga-manager

2018-05-01 Thread Wu Hao
This patch adds status sysfs interface for fpga manager, it's a read only interface which allows user to get fpga manager status, including full/partial reconfiguration error and other status information. It adds a status callback to fpga_manager_ops too, allows each fpga_manager driver to define i

[PATCH v5 07/28] fpga: dfl: add chardev support for feature devices

2018-05-01 Thread Wu Hao
For feature devices drivers, both the FPGA Management Engine (FME) and Accelerated Function Unit (AFU) driver need to expose user interfaces via the device file, for example, mmap and ioctls. This patch adds chardev support in the dfl driver for feature devices, FME and AFU. It reserves the charde

[PATCH v5 10/28] fpga: dfl: add dfl_fpga_port_ops support.

2018-05-01 Thread Wu Hao
In some cases, other DFL driver modules may need to access some port operations, e.g disable / enable port for partial reconfiguration in FME module. In order to avoid dependency between port and FME modules, this patch introduces the dfl_fpga_port_ops support in DFL framework. A global dfl_fpga_po

[PATCH v5 14/28] fpga: dfl: add FPGA Management Engine driver basic framework

2018-05-01 Thread Wu Hao
From: Kang Luwei The FPGA Management Engine (FME) provides power, thermal management, performance counters, partial reconfiguration and other functions. For each function, it is packaged into a private feature linked to the FME feature device in the 'Device Feature List'. It's a platform device c

[PATCH v5 11/28] fpga: dfl: add dfl_fpga_check_port_id function.

2018-05-01 Thread Wu Hao
This patch adds one common function in DFL framework. It uses port_ops get_id callback to get port id and compare it with given value. This function could be used as match function of the dfl_fpga_cdev_find_port function. Signed-off-by: Wu Hao --- drivers/fpga/dfl.c | 22 ++

[PATCH v2 0/2] usb: dwc2: fix isoc split in transfer issue

2018-05-01 Thread William Wu
This patch fix dma unaligned problem and data lost problem for isoc split in transfer. Test on rk3288 platform, use an usb hs Hub (GL852G-12) and an usb fs audio device (Plantronics headset) to capture and playback. William Wu (2): usb: dwc2: alloc dma aligned buffer for isoc split in usb: dw

[PATCH v2 1/2] usb: dwc2: alloc dma aligned buffer for isoc split in

2018-05-01 Thread William Wu
The commit 3bc04e28a030 ("usb: dwc2: host: Get aligned DMA in a more supported way") rips out a lot of code to simply the allocation of aligned DMA. However, it also introduces a new issue when use isoc split in transfer. In my test case, I connect the dwc2 controller with an usb hs Hub (GL852G-12

Re: [PATCH 10/10] staging: lustre: fix error deref in ll_splice_alias().

2018-05-01 Thread James Simmons
> d_splice_alias() can return an ERR_PTR(). > If it does while debugging is enabled, the following > CDEBUG() will dereference that error and crash. > > So add appropriate checking, and provide a separate > debug message for the error case. Yeah!!! It fixed the issues. Thank you. Reviewed-by: J

[PATCH v5 15/28] fpga: dfl: fme: add header sub feature support

2018-05-01 Thread Wu Hao
From: Kang Luwei The Header Register set is always present for FPGA Management Engine (FME), this patch implements init and uinit function for header sub feature and introduces several read-only sysfs interfaces for the capability and status. Sysfs interfaces: * /sys/class/fpga_region///ports_nu

Re: [PATCH 02/10] staging: lustre: make struct lu_site_bkt_data private

2018-05-01 Thread James Simmons
> This data structure only needs to be public so that > various modules can access a wait queue to wait for object > destruction. > If we provide a function to get the wait queue, rather than the > whole bucket, the structure can be made private. > > Signed-off-by: NeilBrown > --- > drivers/sta

[PATCH v5 19/28] fpga: dfl: fme-mgr: add compat_id support

2018-05-01 Thread Wu Hao
This patch adds compat_id support to fme manager driver, it reads the ID from the hardware register. And it could be used for compatibility check before partial reconfiguration. Signed-off-by: Wu Hao --- drivers/fpga/dfl-fme-mgr.c | 15 +++ 1 file changed, 15 insertions(+) diff --gi

[PATCH v5 21/28] fpga: dfl: add fpga region platform driver for FME

2018-05-01 Thread Wu Hao
This patch adds fpga region platform driver for FPGA Management Engine. It register an fpga region with given fpga manager / bridge device. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao Signed-off-by: Christopher Rauer Signed-off-by: Wu Hao Acked-by: Alan

[PATCH v5 17/28] fpga: dfl: fme: add partial reconfiguration sub feature support

2018-05-01 Thread Wu Hao
From: Kang Luwei Partial Reconfiguration (PR) is the most important function for FME. It allows reconfiguration for given Port/Accelerated Function Unit (AFU). It creates platform devices for fpga-mgr, fpga-regions and fpga-bridges, and invokes fpga-region's interface (fpga_region_program_fpga)

[PATCH v5 24/28] fpga: dfl: afu: add port ops support

2018-05-01 Thread Wu Hao
This patch registers the port ops into the global list in the DFL framework, and it allows other modules to use the port ops. And This patch includes the implementation of the get_id and enable_set ops too. Signed-off-by: Wu Hao --- drivers/fpga/dfl-afu-main.c | 122 +

[PATCH v5 25/28] fpga: dfl: afu: add header sub feature support

2018-05-01 Thread Wu Hao
The port header register set is always present for port, it is mainly for capability, control and status of the ports that AFU connected to. This patch implements header sub feature support. Below user interfaces are created by this patch. Sysfs interface: * /sys/class/fpga_region///id Read-onl

[PATCH v5 20/28] fpga: dfl: add fpga bridge platform driver for FME

2018-05-01 Thread Wu Hao
This patch adds fpga bridge platform driver for FPGA Management Engine. It implements the enable_set callback for fpga bridge. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao Signed-off-by: Christopher Rauer Signed-off-by: Wu Hao Acked-by: Alan Tull Acked-b

[PATCH v5 27/28] fpga: dfl: afu: add afu sub feature support

2018-05-01 Thread Wu Hao
From: Xiao Guangrong User Accelerated Function Unit sub feature exposes the MMIO region of the AFU. After valid PR bitstream is programmed and the port is enabled, then this MMIO region could be accessed. This patch adds support to enumerate the AFU MMIO region and expose it to userspace via mma

[PATCH v5 23/28] fpga: dfl: add FPGA Accelerated Function Unit driver basic framework

2018-05-01 Thread Wu Hao
On DFL FPGA devices, the Accelerated Function Unit (AFU), can be reprogrammed for different functions. It connects to the FPGA infrastructure (static FPGA region) via a Port. Port CSRs are implemented separately from the AFU CSRs to provide control and status of the Port. Once valid PR bitstream is

[PATCH v5 26/28] fpga: dfl: afu: add DFL_FPGA_GET_API_VERSION/CHECK_EXTENSION ioctls support

2018-05-01 Thread Wu Hao
DFL_FPGA_GET_API_VERSION and DFL_FPGA_CHECK_EXTENSION ioctls are common ones which need to be supported by all feature devices drivers including FME and AFU. This patch implements above 2 ioctls in FPGA Accelerated Function Unit (AFU) driver. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebb

[PATCH v5 28/28] fpga: dfl: afu: add DFL_FPGA_PORT_DMA_MAP/UNMAP ioctls support

2018-05-01 Thread Wu Hao
DMA memory regions are required for Accelerated Function Unit (AFU) usage. These two ioctls allow user space applications to map user memory regions for dma, and unmap them after use. Iova is returned from driver to user space application via DFL_FPGA_PORT_DMA_MAP ioctl. Application needs to unmap

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Dan Williams
On Tue, May 1, 2018 at 7:53 PM, Linus Torvalds wrote: > On Tue, May 1, 2018 at 7:26 PM Dan Williams > wrote: > >> Right, but the only way to make MCE non-fatal is to teach the machine >> check handler about recoverable conditions. This patch teaches the >> machine check handler how to recover cop

[PATCH v5 13/28] fpga: dfl-pci: add enumeration for feature devices

2018-05-01 Thread Wu Hao
The Device Feature List (DFL) is implemented in MMIO, and features are linked via the DFLs. This patch enables pcie driver to prepare enumeration information (e.g locations of all device feature lists in MMIO) and use common APIs provided by the Device Feature List framework to enumerate each featu

  1   2   3   4   5   6   7   8   9   >