[PATCH v8 7/8] drm/sun4i: sun6i_mipi_dsi: Refactor vertical video start delay

2019-02-14 Thread Jagan Teki
Vertical video start delay is computed by excluding vertical porch value from total vertical timings, but the current driver excluding vertical porch along with vertical sync values from total vertical timings resulting wrong start delay. This patch trying to update the video start delay by

[PATCH v8 1/8] drm/sun4i: sun6i_mipi_dsi: Fix VBP size calculation

2019-02-14 Thread Jagan Teki
The horizontal and vertical back porch calculation in BSP code is simply following the Linux drm comment diagram, in include/drm/drm_modes.h which is [hv]back porch = [hv]total - [hv]sync_end BSP code form BPI-M64-bsp is calculating vertical back porch as (from

[PATCH v8 0/8] drm/sun4i: sun6i_mipi_dsi: Random fixes

2019-02-14 Thread Jagan Teki
These fixes are encounter in Allwinner MIPI-DSI driver while adding new SoC support and ofcourse all these are generic with respect to controller. All these changes are grabbed from previous versions[1] and grouped it in a proper order so-that it can help to review and merge easy. Changes for

Re: [PATCH] PCI: pciehp: Do not turn off slot if presence comes up after link

2019-02-14 Thread Alex_Gagniuc
On 2/14/19 1:01 AM, Lukas Wunner wrote: > On Wed, Feb 13, 2019 at 06:55:46PM +, alex_gagn...@dellteam.com wrote: >> On 2/13/19 2:36 AM, Lukas Wunner wrote: (*) A bit hypothetical: There is no hardware yet implementing the ECN. >>> >>> Hm, this contradicts Austin Bolen's e-mail of Jan 25

[PATCH v8 8/8] drm/sun4i: sun6i_mipi_dsi: Add DSI Generic short write 2 param transfer

2019-02-14 Thread Jagan Teki
Short transfer write support for DCS and Generic transfer types share similar way to process command sequence in DSI block so add generic write 2 param transfer type macro so-that the panels which are requesting similar transfer type may process properly. Signed-off-by: Jagan Teki ---

[PATCH v8 2/8] drm/sun4i: sun6i_mipi_dsi: Fix DSI hbp timing value

2019-02-14 Thread Jagan Teki
Current driver is calculating hbp maximum value by subtracting hsync_start with hdisplay which is front porch value, but the hbp refers to back porch. Back porch value is calculating by subtracting htotal with hsync_end as per drm_mode timings, and BSP code from BPI-M64-bsp is eventually

[PATCH v8 6/8] drm/sun4i: sun6i_mipi_dsi: Set proper vblk timing calculation

2019-02-14 Thread Jagan Teki
Like other dsi setup timings, or hblk for that matter vblk would also require compute the timings based payload equation along with packet overhead. But, on the other hand vblk computation is also depends on device lane number. - for 4 lane devices, it is computed based on vtotal, packet overhead

Re: [PATCH 4/4] PM / devfreq: Handle monitor start/stop in the devfreq core

2019-02-14 Thread Matthias Kaehlcke
Hi Chanwoo, On Thu, Feb 14, 2019 at 11:17:36PM +0900, Chanwoo Choi wrote: > Hi Matthias, > > As I commented on the first patch, it is not possible to call some codes > according to the intention of each governor between 'devfreq_moniotr_*()' > and some codes which are executed before or after

[PATCH v3] hugetlb: allow to free gigantic pages regardless of the configuration

2019-02-14 Thread Alexandre Ghiti
On systems without CMA or (MEMORY_ISOLATION && COMPACTION) activated but that support gigantic pages, boottime reserved gigantic pages can not be freed at all. This patch simply enables the possibility to hand back those pages to memory allocator. This patch also renames: - the triplet CMA or

Re: [Lsf-pc] [LSF/MM TOPIC] The end of the DAX experiment

2019-02-14 Thread Dan Williams
On Thu, Feb 14, 2019 at 11:10 AM Jerome Glisse wrote: > > On Thu, Feb 14, 2019 at 10:25:07AM -0800, Dan Williams wrote: > > On Thu, Feb 14, 2019 at 5:46 AM Michal Hocko wrote: > > > > > > On Wed 06-02-19 13:12:59, Dan Williams wrote: > > > [...] > > > > * Userfaultfd for file-backed mappings and

[PATCH] psi: avoid divide-by-zero crash inside virtual machines

2019-02-14 Thread Johannes Weiner
We've been seeing hard-to-trigger psi crashes when running inside VM instances: [ 1255.840325] divide error: [#1] SMP PTI [ 1255.840325] Modules linked in: [...] [ 1255.840325] CPU: 0 PID: 212 Comm: kworker/0:2 Not tainted 4.16.18-119_fbk9_3817_gfe944c98d695 #119 [ 1255.840325] Hardware

[PATCH v8 00/10] drm/sun4i: Allwinner MIPI-DSI Burst mode support

2019-02-14 Thread Jagan Teki
This is next version changes for Allwinner MIPI-DSI Burst mode support. All these changes are grabbed from previous versions[1][2] and grouped it in a proper order so-that it can help to review and merge easy. Changes for v8: - rebase on master - rework on commit messages - include drq changes

[PATCH v8 02/10] drm/sun4i: sun6i_mipi_dsi: Support instruction loop selection

2019-02-14 Thread Jagan Teki
Instruction loop selection would require before writing loop number registers, so enable idle, LP11 bits on loop selection register. Reference code available in BSP (from linux-sunxi/ drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_dsi.c) (dsi_dev[sel]->dsi_inst_loop_sel.dwval =

[PATCH v8 03/10] drm/sun4i: sun6i_mipi_dsi: Setup burst mode timings

2019-02-14 Thread Jagan Teki
Burst mode display timings are different from conventional video mode. For burst mode most of the timings hsa, hbp, hfp, vblk are 0 and hblk is computed as (mode->hdisplay * Bpp) This patch simply add burst mode timings without touching existing mode timings. Reference code taken from BSP (from

[PATCH v8 04/10] drm/sun4i: sun6i_mipi_dsi: Fix TCON DRQ set bits

2019-02-14 Thread Jagan Teki
TCON DRQ for non-burst DSI mode can computed based on horizontal front porch value, but the current driver trying to include sync timings along with front porch resulting wrong drq. This patch is trying to update the drq by subtracting hsync_start with hdisplay, which is horizontal front porch.

[PATCH v8 06/10] drm/sun4i: tcon: Export get tcon0 routine

2019-02-14 Thread Jagan Teki
Sometimes tcon attributes like tcon divider, clock rate etc are needed in interface drivers like DSI. So for such cases interface driver must probe the respective tcon and get the attributes. Since tcon0 probe is already available, via sun4i_get_tcon0 function, export the same instead of probing

Re: [PATCH] crypto: ccp: introduce SEV_GET_ID2 command

2019-02-14 Thread Singh, Brijesh
On 2/14/19 10:57 AM, Nathaniel McCallum wrote: > I'm a little concerned that this immediately disables SEV_GET_ID. > IMHO, we should continue to support both for a period of time. One > justification for immediate disablement would be that if keeping it > around is likely to enabled incorrect or

Re: KASAN warning in bt_for_each

2019-02-14 Thread Bart Van Assche
On Thu, 2019-02-14 at 10:04 -0800, Evan Green wrote: > Greetings, block experts! > > I'm trying to track down a KASAN warning I'm seeing in our downstream > 4.19 kernel, and I could use a little help. The warning looks like > this: > > [ 224.564894] BUG: KASAN: use-after-free in

[PATCH v8 07/10] drm/sun4i: sun6i_mipi_dsi: Probe tcon0 during dsi_bind

2019-02-14 Thread Jagan Teki
Probe tcon0 during dsi_bind, so-that the tcon attributes like divider value, clock rate can get whenever it need. Signed-off-by: Jagan Teki Tested-by: Merlijn Wajer --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 7 +++ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 1 + 2 files changed, 8

[PATCH v8 01/10] drm/sun4i: sun6i_mipi_dsi: Compute burst mode loop N1 instruction delay

2019-02-14 Thread Jagan Teki
Loop N1 instruction delay varies between burst and non-burst video modes. 1) for burst mode panels it is computed based on the panel pixel clock along with horizontal sync and porch timings. 2) for non-burst mode panels, it is same as existing (50 - 1) Reference code is available in BSP (from

[PATCH v8 05/10] drm/sun4i: sun6i_mipi_dsi: Simplify drq to support all modes

2019-02-14 Thread Jagan Teki
Allwinner MIPI DSI drq has enable mode bit and set bits. 1) drq for non-burst, with front porch less than 20 would need to set both enable mode bit and set bits. 2) drq for non-burst, with front porch greater or equal to 20 would not require to do any drq bit setup. 3) drq for burst mode,

[PATCH v8 08/10] drm/sun4i: sun6i_mipi_dsi: Setup burst mode

2019-02-14 Thread Jagan Teki
Burst mode in DSI would require separate setup initialization with respect to conventional video mode. Allwinner DSI controller would need below sequence to setup the burst mode. 1) configure the burst drq. 2) configure the burst line. 3) finally enable mode. - To configure burst drq, controller

[PATCH v8 09/10] drm/sun4i: sun6i_mipi_dsi: Enable trail_inv and trail_fill controls

2019-02-14 Thread Jagan Teki
The burst mode panels with 4-lane would require to enable trail bits in DSI basic control register. So, enable 2byte trail and trail_env for 4-lane burst mode devices. Allwinner A64 BSP should also relie on same setup for enabling trail bit in DSI controller. Reference code avialable in BSP

Re: [PATCH 0/5] use pinned_vm instead of locked_vm to account pinned pages

2019-02-14 Thread Ira Weiny
On Wed, Feb 13, 2019 at 11:00:06PM -0700, Jason Gunthorpe wrote: > On Wed, Feb 13, 2019 at 05:53:14PM -0800, Ira Weiny wrote: > > On Mon, Feb 11, 2019 at 03:54:47PM -0700, Jason Gunthorpe wrote: > > > On Mon, Feb 11, 2019 at 05:44:32PM -0500, Daniel Jordan wrote: > > > > > > > All five of these

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-14 Thread Peter Zijlstra
On Thu, Feb 14, 2019 at 11:18:01AM -0500, Brian Gerst wrote: > > --- a/arch/x86/include/asm/switch_to.h > > +++ b/arch/x86/include/asm/switch_to.h > > @@ -40,6 +40,7 @@ asmlinkage void ret_from_fork(void); > > * order of the fields must match the code in __switch_to_asm(). > > */ > > struct

Re: [PATCH v3 2/2] x86/xen: dont add memory above max allowed allocation

2019-02-14 Thread Boris Ostrovsky
On 2/14/19 5:42 AM, Juergen Gross wrote: > Don't allow memory to be added above the allowed maximum allocation > limit set by Xen. > > Trying to do so would result in cases like the following: > > [ 584.559652] [ cut here ] > [ 584.564897] WARNING: CPU: 2 PID: 1 at

[PATCH v4 1/6] dt-bindings: add binding for USBSS-DRD controller.

2019-02-14 Thread Pawel Laszczak
This patch aim at documenting USB related dt-bindings for the Cadence USBSS-DRD controller. Signed-off-by: Pawel Laszczak --- .../devicetree/bindings/usb/cdns-usb3.txt | 30 +++ 1 file changed, 30 insertions(+) create mode 100644

[PATCH v4 2/6] usb:common Separated decoding functions from dwc3 driver.

2019-02-14 Thread Pawel Laszczak
Patch moves some decoding functions from driver/usb/dwc3/debug.h driver to driver/usb/common/debug.c file. These moved functions include: dwc3_decode_get_status dwc3_decode_set_clear_feature dwc3_decode_set_address dwc3_decode_get_set_descriptor dwc3_decode_get_configuration

Re: [PATCH v3 1/7] binder: create userspace-to-binder-buffer copy function

2019-02-14 Thread Joel Fernandes
Hi Todd, One quick question: On Fri, Feb 08, 2019 at 10:35:14AM -0800, Todd Kjos wrote: > The binder driver uses a vm_area to map the per-process > binder buffer space. For 32-bit android devices, this is > now taking too much vmalloc space. This patch removes > the use of vm_area when copying

[PATCH v4 0/6] Introduced new Cadence USBSS DRD Driver.

2019-02-14 Thread Pawel Laszczak
This patch introduce new Cadence USBSS DRD driver to linux kernel. The Cadence USBSS DRD Driver is a highly configurable IP Core whichi can be instantiated as Dual-Role Device (DRD), Peripheral Only and Host Only (XHCI)configurations. The current driver has been validated with FPGA burned. We

[PATCH v4 6/6] usb:cdns3 Fix for stuck packets in on-chip OUT buffer.

2019-02-14 Thread Pawel Laszczak
Controller for OUT endpoints has shared on-chip buffers for all incoming packets, including ep0out. It's FIFO buffer, so packets must be handle by DMA in correct order. If the first packet in the buffer will not be handled, then the following packets directed for other endpoints and functions will

[PATCH] USB: serial: ftdi_sio: add ID for Hjelmslund Electronics USB485

2019-02-14 Thread Mans Rullgard
This adds the USB ID of the Hjelmslund Electronics USB485 Iso stick. Signed-off-by: Mans Rullgard --- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 6 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/usb/serial/ftdi_sio.c

[PATCH v4 4/6] usb:common Simplify usb_decode_get_set_descriptor function.

2019-02-14 Thread Pawel Laszczak
Patch moves switch responsible for decoding descriptor type outside snprintf. It improves code readability a little. Signed-off-by: Pawel Laszczak --- drivers/usb/common/debug.c | 113 +++-- 1 file changed, 58 insertions(+), 55 deletions(-) diff --git

[PATCH v4 3/6] usb:common Patch simplify usb_decode_set_clear_feature function.

2019-02-14 Thread Pawel Laszczak
Patch adds usb_decode_test_mode and usb_decode_device_feature functions, which allow to make more readable and simplify the usb_decode_set_clear_feature function. Signed-off-by: Pawel Laszczak --- drivers/usb/common/debug.c | 89 ++ 1 file changed, 43

Re: [RFC PATCH 1/4] watchdog: hpwdt: Don't disable watchdog on NMI

2019-02-14 Thread Ivan Mironov
On Thu, 2019-02-07 at 18:26 -0700, Jerry Hoemann wrote: > The name is not the best given its current use, but I'm not sure a > name change would be allowed. > > However, I will send a patch to update the documentation in Kconfig. > > Thanks!

Re: [RFC PATCH v8 04/14] swiotlb: Map the buffer if it was unmapped by XPFO

2019-02-14 Thread Khalid Aziz
On 2/14/19 10:44 AM, Christoph Hellwig wrote: > On Thu, Feb 14, 2019 at 09:56:24AM -0700, Khalid Aziz wrote: >> On 2/14/19 12:47 AM, Christoph Hellwig wrote: >>> On Wed, Feb 13, 2019 at 05:01:27PM -0700, Khalid Aziz wrote: +++ b/kernel/dma/swiotlb.c @@ -396,8 +396,9 @@ static void

Re: [PATCH 2/2] Drivers: hv: vmbus: Display nothing in sysfs if monitor_allocated not set

2019-02-14 Thread Stephen Hemminger
On Thu, 14 Feb 2019 01:11:03 -0500 Kimberly Brown wrote: > On Mon, Feb 11, 2019 at 10:02:47AM -0800, Stephen Hemminger wrote: > > On Mon, 11 Feb 2019 02:01:18 -0500 > > Kimberly Brown wrote: > > > > > On Fri, Feb 08, 2019 at 02:32:09PM -0800, Stephen Hemminger wrote: > > > > On Fri, 8 Feb

Re: [PATCH -next] drm/vmwgfx: Remove set but not used variable 'restart'

2019-02-14 Thread Deepak Singh Rawat
Thanks for doing this. Will include this one with next vmwgfx pull request. Reviewed-by: Deepak Rawat On Thu, 2019-02-14 at 02:08 +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c: In function > 'vmw_cmdbuf_work_func': >

Re: [RFC PATCH v8 13/14] xpfo, mm: Defer TLB flushes for non-current CPUs (x86 only)

2019-02-14 Thread Khalid Aziz
On 2/14/19 10:42 AM, Dave Hansen wrote: >> #endif >> + >> +/* If there is a pending TLB flush for this CPU due to XPFO >> + * flush, do it now. >> + */ > > Don't forget CodingStyle in all this, please. Of course. I will fix that. > >> +if (cpumask_test_and_clear_cpu(cpu,

Re: [PATCH] psi: avoid divide-by-zero crash inside virtual machines

2019-02-14 Thread Andrew Morton
On Thu, 14 Feb 2019 14:31:57 -0500 Johannes Weiner wrote: > --- a/kernel/sched/psi.c > +++ b/kernel/sched/psi.c > @@ -322,7 +322,7 @@ static bool update_stats(struct psi_group *group) > expires = group->next_update; > if (now < expires) > goto out; > - if (now -

Re: [RFC PATCH v8 03/14] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2019-02-14 Thread Khalid Aziz
On 2/14/19 12:08 PM, Peter Zijlstra wrote: > On Thu, Feb 14, 2019 at 10:13:54AM -0700, Khalid Aziz wrote: > >> Patch 11 ("xpfo, mm: remove dependency on CONFIG_PAGE_EXTENSION") cleans >> all this up. If the original authors of these two patches, Juerg >> Haefliger and Julian Stecklina, are ok

Re: [Lsf-pc] [LSF/MM TOPIC] The end of the DAX experiment

2019-02-14 Thread Matthew Wilcox
On Thu, Feb 14, 2019 at 11:31:24AM -0800, Dan Williams wrote: > On Thu, Feb 14, 2019 at 11:10 AM Jerome Glisse wrote: > > I am just again working on my struct page mapping patchset as well as > > the generic page write protection that sits on top. I hope to be able > > to post the v2 in couple

Re: [PATCH v3] drivers: base: add support to skip power management in device/driver model

2019-02-14 Thread Eugeniu Rosca
Hello Sudeep, On Thu, Feb 14, 2019 at 06:29:10PM +, Sudeep Holla wrote: [..] > > Lets add no_pm_required flags to indicate that the device doesn't s/no_pm_required/no_pm/ ? > require any sort of pm activities and all of them can be completely > skipped. We can use the same flag to also

Re: [RFC v3 17/19] of: unittest: migrate tests to run on KUnit

2019-02-14 Thread Rob Herring
On Tue, Feb 12, 2019 at 7:44 PM Brendan Higgins wrote: > > On Wed, Nov 28, 2018 at 12:56 PM Rob Herring wrote: > > > > On Wed, Nov 28, 2018 at 1:38 PM Brendan Higgins > > wrote: > > > > > > Migrate tests without any cleanup, or modifying test logic in anyway to > > > run under KUnit using the

Re: [PATCH 0/5] use pinned_vm instead of locked_vm to account pinned pages

2019-02-14 Thread Jason Gunthorpe
On Thu, Feb 14, 2019 at 11:33:53AM -0800, Ira Weiny wrote: > > I think it had to do with double accounting pinned and mlocked pages > > and thus delivering a lower than expected limit to userspace. > > > > vfio has this bug, RDMA does not. RDMA has a bug where it can > > overallocate locked

Re: [PATCH V4 2/4] genirq/affinity: add new callback for caculating interrupt sets size

2019-02-14 Thread Bjorn Helgaas
On Thu, Feb 14, 2019 at 08:23:45PM +0800, Ming Lei wrote: > The interrupt affinity spreading mechanism supports to spread out > affinities for one or more interrupt sets. A interrupt set contains one > or more interrupts. Each set is mapped to a specific functionality of a > device, e.g. general

Re: [PATCH v6 0/9] vfio/mdev: IOMMU aware mediated device

2019-02-14 Thread Alex Williamson
On Wed, 13 Feb 2019 12:02:52 +0800 Lu Baolu wrote: > Hi, > > The Mediate Device is a framework for fine-grained physical device > sharing across the isolated domains. Currently the mdev framework > is designed to be independent of the platform IOMMU support. As the > result, the DMA isolation

[PATCH] watchdog: smsc37b787_wdt: Mark expected switch fall-through

2019-02-14 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/watchdog/smsc37b787_wdt.c: In function ‘wb_smsc_wdt_ioctl’: drivers/watchdog/smsc37b787_wdt.c:480:3: warning: this statement may fall

Re: [PATCH v2] vfio_pci: Enable memory accesses before calling pci_map_rom

2019-02-14 Thread Alex Williamson
On Thu, 14 Feb 2019 19:27:15 +0100 Auger Eric wrote: > Hi Alex, > > On 2/13/19 6:52 PM, Alex Williamson wrote: > > On Wed, 13 Feb 2019 12:06:10 +0100 > > Eric Auger wrote: > > > >> pci_map_rom/pci_get_rom_size() performs memory access in the ROM. > >> In case the Memory Space accesses were

linux-next: Signed-off-by missing for commit in the vhost tree

2019-02-14 Thread Stephen Rothwell
Hi all, Commit 8fcf13f6be52 ("mm/page_poison: update comment after code moved") is missing a Signed-off-by from its author and committer. -- Cheers, Stephen Rothwell pgpJjFLRKqEjt.pgp Description: OpenPGP digital signature

Re: [Lsf-pc] [LSF/MM TOPIC] The end of the DAX experiment

2019-02-14 Thread Dan Williams
On Thu, Feb 14, 2019 at 12:09 PM Matthew Wilcox wrote: > > On Thu, Feb 14, 2019 at 11:31:24AM -0800, Dan Williams wrote: > > On Thu, Feb 14, 2019 at 11:10 AM Jerome Glisse wrote: > > > I am just again working on my struct page mapping patchset as well as > > > the generic page write protection

Re: Userspace regression in LTS and stable kernels

2019-02-14 Thread Andrew Morton
On Thu, 14 Feb 2019 09:56:46 -0800 Linus Torvalds wrote: > On Wed, Feb 13, 2019 at 3:37 PM Richard Weinberger > wrote: > > > > Your shebang line exceeds BINPRM_BUF_SIZE. > > Before the said commit the kernel silently truncated the shebang line > > (and corrupted it), > > now it tells the user

[PATCH] watchdog: sc1200: Mark expected switch fall-through

2019-02-14 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/watchdog/sc1200wdt.c: In function ‘sc1200wdt_ioctl’: drivers/watchdog/sc1200wdt.c:241:3: warning: this statement may fall through

Re: linux-next: Signed-off-by missing for commit in the vhost tree

2019-02-14 Thread Michael S. Tsirkin
On Fri, Feb 15, 2019 at 07:17:02AM +1100, Stephen Rothwell wrote: > Hi all, > > Commit > > 8fcf13f6be52 ("mm/page_poison: update comment after code moved") > > is missing a Signed-off-by from its author and committer. Thanks! It's upstream already anyway, I will drop it. > -- > Cheers, >

[PATCH 0/6] nfit/ars: Improve polling and short-ARS execution

2019-02-14 Thread Dan Williams
Here is a small pile of updates to better coordinate the Linux ARS state machine with platform-BIOS implementations. Specifically, take advantage of opportunities to run short-ARS whenever the ARS interface is found to be idle at init, always run short-ARS even if no_init_ars is specified, allow

[PATCH 3/6] nfit/ars: Allow root to busy-poll the ARS state machine

2019-02-14 Thread Dan Williams
The ARS implementation implements exponential back-off on the poll interval to prevent high-frequency access to the DIMM / platform interface. Depending on when the ARS completes the poll interval may exceed the completion event by minutes. Allow root to reset the timeout each time it probes the

[PATCH 1/6] nfit/ars: Attempt a short-ARS whenever the ARS state is idle at boot

2019-02-14 Thread Dan Williams
If query-ARS reports that ARS has stopped and requires continuation attempt to retrieve short-ARS results before continuing the long operation. Reported-by: Krzysztof Rusocki Signed-off-by: Dan Williams --- drivers/acpi/nfit/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 2/6] nfit/ars: Attempt short-ARS even in the no_init_ars case

2019-02-14 Thread Dan Williams
The no_init_ars option is meant to prevent long-ARS, but short-ARS should be allowed to grab any immediate results. Reported-by: Erwin Tsaur Signed-off-by: Dan Williams --- drivers/acpi/nfit/core.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 5/6] nfit/ars: Introduce scrub_flags

2019-02-14 Thread Dan Williams
In preparation for introducing a new flag to gate whether ARS results are stale, convert the existing flags to an unsigned long with enumerated values. This conversion allows the flags to be atomically updated outside of ->init_mutex. Signed-off-by: Dan Williams --- drivers/acpi/nfit/core.c |

[PATCH 6/6] nfit/ars: Avoid stale ARS results

2019-02-14 Thread Dan Williams
Gate ARS result consumption on whether the OS issued start-ARS since the previous consumption. The BIOS may only clear its result buffers after a successful start-ARS. Reported-by: Krzysztof Rusocki Reported-by: Vishal Verma Signed-off-by: Dan Williams --- drivers/acpi/nfit/core.c | 17

[PATCH 4/6] nfit/ars: Remove ars_start_flags

2019-02-14 Thread Dan Williams
The ars_start_flags property of 'struct acpi_nfit_desc' is no longer used since ARS_REQ_SHORT and ARS_REQ_LONG were added. Cc: Toshi Kani Signed-off-by: Dan Williams --- drivers/acpi/nfit/core.c | 10 +- drivers/acpi/nfit/nfit.h |1 - 2 files changed, 5 insertions(+), 6

[PATCH] watchdog: pc87413: Mark expected switch fall-through

2019-02-14 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/watchdog/pc87413_wdt.c: In function ‘pc87413_ioctl’: drivers/watchdog/pc87413_wdt.c:439:3: warning: this statement may fall through

Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-14 Thread Jerome Glisse
On Mon, Feb 11, 2019 at 11:06:54AM -0700, Jason Gunthorpe wrote: > On Mon, Feb 11, 2019 at 09:22:58AM -0800, Dan Williams wrote: > > > I honestly don't like the idea that random subsystems can pin down > > file blocks as a side effect of gup on the result of mmap. Recall that > > it's not just

Re: [PATCH 3/6] nfit/ars: Allow root to busy-poll the ARS state machine

2019-02-14 Thread Dan Williams
On Thu, Feb 14, 2019 at 12:23 PM Dan Williams wrote: > > The ARS implementation implements exponential back-off on the poll > interval to prevent high-frequency access to the DIMM / platform > interface. Depending on when the ARS completes the poll interval may > exceed the completion event by

Re: [PATCH -mm -V7] mm, swap: fix race between swapoff and some swap operations

2019-02-14 Thread Andrew Morton
On Thu, 14 Feb 2019 15:33:18 +0100 Michal Hocko wrote: > > Because swapoff() is very rare code path, to make the normal path runs as > > fast as possible, disabling preemption + stop_machine() instead of > > reference count is used to implement get/put_swap_device(). From > > get_swap_device()

Re: [PATCH v3 1/4] staging: iio: ad7780: add gain & filter gpio support

2019-02-14 Thread Renato Lui Geh
Hi Jonathan, Thanks for the review. Comments inline. Renato On 02/09, Jonathan Cameron wrote: On Tue, 5 Feb 2019 15:13:00 -0200 Renato Lui Geh wrote: Previously, the AD7780 driver only supported gpio for the 'powerdown' pin. This commit adds suppport for the 'gain' and 'filter' pin.

[PATCH v2] nfit/ars: Allow root to busy-poll the ARS state machine

2019-02-14 Thread Dan Williams
The ARS implementation implements exponential back-off on the poll interval to prevent high-frequency access to the DIMM / platform interface. Depending on when the ARS completes the poll interval may exceed the completion event by minutes. Allow root to reset the timeout each time it probes the

Re: [Lsf-pc] [LSF/MM TOPIC] The end of the DAX experiment

2019-02-14 Thread Jerome Glisse
On Thu, Feb 14, 2019 at 12:20:11PM -0800, Dan Williams wrote: > On Thu, Feb 14, 2019 at 12:09 PM Matthew Wilcox wrote: > > > > On Thu, Feb 14, 2019 at 11:31:24AM -0800, Dan Williams wrote: > > > On Thu, Feb 14, 2019 at 11:10 AM Jerome Glisse wrote: > > > > I am just again working on my struct

Re: [PATCH v3 0/9] [RFC] vfio: ap: ioctl definitions for AP Queue Interrupt Control

2019-02-14 Thread Tony Krowiak
On 2/14/19 8:51 AM, Pierre Morel wrote: The subject leads one to believe this patch series introduces ioctl definitions for AQIC, but there is not a single ioctl definition in the series. Something like this might be more appropriate: vfio: ap: support for AP Queue Interrupt Control Regards T.

Re: [PATCH] mm/cma: cma_declare_contiguous: correct err handling

2019-02-14 Thread Andrew Morton
On Thu, 14 Feb 2019 12:45:51 + Peng Fan wrote: > In case cma_init_reserved_mem failed, need to free the memblock allocated > by memblock_reserve or memblock_alloc_range. > > ... > > --- a/mm/cma.c > +++ b/mm/cma.c > @@ -353,12 +353,14 @@ int __init cma_declare_contiguous(phys_addr_t base, >

Re: [PATCH v2 0/2] drivers: devfreq: fix and optimize workqueue mechanism

2019-02-14 Thread Matthias Kaehlcke
Hi Lukasz, On Wed, Feb 13, 2019 at 02:00:26PM +0100, Lukasz Luba wrote: > Hi Matthias, > > On 2/13/19 1:30 AM, Matthias Kaehlcke wrote: > > Hi Lukasz, > > > > On Tue, Feb 12, 2019 at 10:20:07PM +0100, Lukasz Luba wrote: > >> Hi Matthias, > >> > >> On 2/12/19 8:32 PM, Matthias Kaehlcke wrote: >

Re: [PATCH] drm/mediatek: add mt8183 dpi support

2019-02-14 Thread Sean Paul
On Mon, Feb 11, 2019 at 12:50:59PM +0800, Jitao Shi wrote: > MT8183 sample on rising and falling edge. It can reduce half data io. > > Signed-off-by: Jitao Shi > --- > drivers/gpu/drm/mediatek/mtk_dpi.c | 29 + > 1 file changed, 29 insertions(+) > > diff --git

[PATCHv4 1/6] mfd: altera-sysmgr: Add SOCFPGA System Manager

2019-02-14 Thread thor . thayer
From: Thor Thayer The SOCFPGA System Manager register block aggregates different peripheral functions into one area. On 32 bit ARM parts, handle in the same way as syscon. On 64 bit ARM parts, the System Manager can only be accessed by EL3 secure mode. Since a SMC call to EL3 is required, this

[PATCHv4 4/6] arm64: defconfig: Enable CONFIG_MTD_ALTERA_SYSMGR

2019-02-14 Thread thor . thayer
From: Thor Thayer Enable the Stratix10 System Manager by default. Signed-off-by: Thor Thayer --- v2-4 No change --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c8432e24207e..48a312126cf7

[PATCHv4 0/6] Add SOCFPGA System Manager

2019-02-14 Thread thor . thayer
From: Thor Thayer Add MFD driver for SOCFPGA System Manager to handle System Manager calls differently for ARM32 vs ARM64. The SOCFPGA System Manager includes registers from several SOC peripherals. On ARM32, syscon handles this aggregated register grouping. Implement System Manager calls as

[PATCHv4 2/6] Documentation: dt: socfpga: Add S10 System Manager binding

2019-02-14 Thread thor . thayer
From: Thor Thayer Add the device tree bindings for the Stratix10 System Manager. Signed-off-by: Thor Thayer Reviewed-by: Rob Herring --- v2 New compatible string and usage for Stratix10 v3 No change v4 Add Reviewed-by from v2. --- .../devicetree/bindings/arm/altera/socfpga-system.txt

Re: [PATCH v3 2/2] media: cedrus: Add H264 decoding support

2019-02-14 Thread Jernej Škrabec
Dne ponedeljek, 11. februar 2019 ob 15:39:03 CET je Maxime Ripard napisal(a): > Introduce some basic H264 decoding support in cedrus. So far, only the > baseline profile videos have been tested, and some more advanced features > used in higher profiles are not even implemented. > > Signed-off-by:

[PATCHv4 5/6] net: stmmac: socfpga: Use shared System Manager driver

2019-02-14 Thread thor . thayer
From: Thor Thayer The ARM64 System Manager requires a different method of reading the System Manager than ARM32. A new System Manager driver was created to steer ARM32 System Manager calls to regmap_mmio and ARM64 System Manager calls to the new access method. Convert from syscon to the shared

[PATCHv4 6/6] arm64: dts: stratix10: New System Manager compatible

2019-02-14 Thread thor . thayer
From: Thor Thayer Use the new compatible string defined for the Stratix10 System Manager. Remove syscon since it is not correct on this platform. Signed-off-by: Thor Thayer --- v2 New. Use new Stratix10 System Manager compatible v3 Use "altr,sys-mgr" as the non-specific compatible. v4 No

[PATCHv4 3/6] ARM: socfpga_defconfig: Enable CONFIG_MTD_ALTERA_SYSMGR

2019-02-14 Thread thor . thayer
From: Thor Thayer Add System Manager driver by default for SOCFPGA ARM32 platforms. Signed-off-by: Thor Thayer --- v2-4 No change --- arch/arm/configs/socfpga_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/socfpga_defconfig b/arch/arm/configs/socfpga_defconfig

Re: [PATCH v3 1/7] binder: create userspace-to-binder-buffer copy function

2019-02-14 Thread Todd Kjos
On Thu, Feb 14, 2019 at 11:45 AM Joel Fernandes wrote: > > Hi Todd, > > One quick question: > > On Fri, Feb 08, 2019 at 10:35:14AM -0800, Todd Kjos wrote: > > The binder driver uses a vm_area to map the per-process > > binder buffer space. For 32-bit android devices, this is > > now taking too

[PATCH] iommu/arm-smmu: Allow disabling bypass via kernel config

2019-02-14 Thread Douglas Anderson
Right now the only way to disable the iommu bypass for the ARM SMMU is with the kernel command line parameter 'arm-smmu.disable_bypass'. In general kernel command line parameters make sense for things that someone would like to tweak without rebuilding the kernel or for very basic communication

RE: [PATCH] nvme: Enable acceleration feature of A64FX processor

2019-02-14 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: Linux-nvme [mailto:linux-nvme-boun...@lists.infradead.org] On Behalf Of > Keith Busch > Sent: Tuesday, February 5, 2019 8:39 AM > To: Takao Indoh > Cc: Takao Indoh ; s...@grimberg.me; > linux-kernel@vger.kernel.org; linux- > n...@lists.infradead.org;

Re: KASAN warning in bt_for_each

2019-02-14 Thread Evan Green
On Thu, Feb 14, 2019 at 11:33 AM Bart Van Assche wrote: > > On Thu, 2019-02-14 at 10:04 -0800, Evan Green wrote: > > Greetings, block experts! > > > > I'm trying to track down a KASAN warning I'm seeing in our downstream > > 4.19 kernel, and I could use a little help. The warning looks like > >

Re: [PATCH v3 4/4] staging: iio: ad7780: moving ad7780 out of staging

2019-02-14 Thread Renato Lui Geh
On 02/09, Jonathan Cameron wrote: On Tue, 5 Feb 2019 15:14:03 -0200 Renato Lui Geh wrote: Move ad7780 ADC driver out of staging and into the mainline. The ad7780 is a sigma-delta analog to digital converter. This driver provides reading voltage values and status bits from both the ad778x and

Re: [PATCH 1/3] drm/mediatek: move mipi_dsi_host_register to probe

2019-02-14 Thread Sean Paul
On Thu, Feb 14, 2019 at 12:42:41PM +0800, Jitao Shi wrote: > DSI panel driver need attach function which is inculde in > mipi_dsi_host_ops. Which function is required from dsi_host? Sean > > If mipi_dsi_host_register is not in probe, dsi panel will > probe fail or more delay. > > So move the

Have needs for?

2019-02-14 Thread Cindy
Do you have needs for retouching your photos? Or do deep etching and masking for your photos, We are the image service provider who can do this for you. Please send photos to start testing, then you cam judge the quality of our service. Thanks, Cindy Offendbach Haldberstadt

Re: [PATCH 4/4] riscv: switch over to generic free_initmem()

2019-02-14 Thread Palmer Dabbelt
On Thu, 14 Feb 2019 07:59:37 PST (-0800), r...@linux.ibm.com wrote: The riscv version of free_initmem() differs from the generic one only in that it sets the freed memory to zero. Make ricsv use the generic version and poison the freed memory. Signed-off-by: Mike Rapoport ---

Re: KASAN warning in bt_for_each

2019-02-14 Thread Jens Axboe
On 2/14/19 1:45 PM, Evan Green wrote: > On Thu, Feb 14, 2019 at 11:33 AM Bart Van Assche wrote: >> >> On Thu, 2019-02-14 at 10:04 -0800, Evan Green wrote: >>> Greetings, block experts! >>> >>> I'm trying to track down a KASAN warning I'm seeing in our downstream >>> 4.19 kernel, and I could use a

Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-14 Thread Matthew Wilcox
On Thu, Feb 14, 2019 at 03:26:22PM -0500, Jerome Glisse wrote: > On Mon, Feb 11, 2019 at 11:06:54AM -0700, Jason Gunthorpe wrote: > > But it also doesnt' trucate/create a hole. Another thread wrote to it > > right away and the 'hole' was essentially instantly reallocated. This > > is an inherent,

Re: [PATCH] psi: avoid divide-by-zero crash inside virtual machines

2019-02-14 Thread Johannes Weiner
On Thu, Feb 14, 2019 at 11:58:55AM -0800, Andrew Morton wrote: > On Thu, 14 Feb 2019 14:31:57 -0500 Johannes Weiner wrote: > > > --- a/kernel/sched/psi.c > > +++ b/kernel/sched/psi.c > > @@ -322,7 +322,7 @@ static bool update_stats(struct psi_group *group) > > expires = group->next_update; >

Re: [PATCH v2] page cache: Store only head pages in i_pages

2019-02-14 Thread Matthew Wilcox
On Thu, Feb 14, 2019 at 04:30:04PM +0300, Kirill A. Shutemov wrote: > - page_cache_delete_batch() will blow up on > > VM_BUG_ON_PAGE(page->index + HPAGE_PMD_NR - tail_pages > != pvec->pages[i]->index, page); Quite right. I decided to

Re: [PATCH v3 1/7] binder: create userspace-to-binder-buffer copy function

2019-02-14 Thread Joel Fernandes
On Thu, Feb 14, 2019 at 3:42 PM Todd Kjos wrote: > > On Thu, Feb 14, 2019 at 11:45 AM Joel Fernandes wrote: [snip] > > > + * check_buffer() - verify that buffer/offset is safe to access > > > + * @alloc: binder_alloc for this proc > > > + * @buffer: binder buffer to be accessed > > > + *

[GIT PULL] signal fixes for v5.0-rc7

2019-02-14 Thread Eric W. Biederman
Linus, Please pull the for-linus branch from the git tree: git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git for-linus HEAD:cf43a757fd49442bc38f76088b70c2299eed2c2f signal: Restore the stop PTRACE_EVENT_EXIT This includes just a single patch that restores

Re: [PATCH 0/4] crypto: caam - add ecb mode support

2019-02-14 Thread Horia Geanta
On 2/8/2019 3:51 PM, Iuliana Prodan wrote: > This patch set adds ecb mode support for aes, des, 3des and arc4 ciphers. > skcipher implementation is reused, making sure to handle the no IV case. > For the series: Reviewed-by: Horia Geantă Thanks, Horia

Re: [PATCH v2 1/4] mm: Move recent_rotated pages calculation to shrink_inactive_list()

2019-02-14 Thread Andrew Morton
On Thu, 14 Feb 2019 13:35:21 +0300 Kirill Tkhai wrote: > Currently, struct reclaim_stat::nr_activate is a local variable, > used only in shrink_page_list(). This patch introduces another > local variable pgactivate to use instead of it, and reuses > nr_activate to account number of active pages.

[PATCH] mtd: spi-nor: Add Winbond w25q16jv support

2019-02-14 Thread Robert Marko
Datasheet: https://www.winbond.com/resource-files/w25q16jv%20spi%20revg%2003222018%20plus.pdf Testing done on Mikrotik Routerboard RB450Gx4 board under 4.19.19 kernel. Test board does not support Dual or Quad modes. Signed-off-by: Robert Marko --- drivers/mtd/spi-nor/spi-nor.c | 5 + 1

[PATCH] leds: lp55xx: fix warning unused label 'out'

2019-02-14 Thread Anders Roxell
When building leds lp55xx a waring about label 'out' defined but not used. drivers/leds/leds-lp55xx-common.c: In function ‘lp55xx_firmware_loaded’: drivers/leds/leds-lp55xx-common.c:217:1: warning: label ‘out’ defined but not used [-Wunused-label] out: ^~~ Rework current code to remove the

Re: [PATCH 4.20 00/50] 4.20.9-stable review

2019-02-14 Thread Guenter Roeck
On Wed, Feb 13, 2019 at 07:38:05PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.20.9 release. > There are 50 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

SEV Command Privilege Separation

2019-02-14 Thread Nathaniel McCallum
I've been working on wrapping various SEV kernel APIs for userspace consumption. There does not appear to be any privilege separation for these commands: you can run them all or none of them. This is less than ideal because it means that a compromise of the code which launches VMs could make

<    5   6   7   8   9   10   11   12   13   14   >