[PATCH v2] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2017-12-24 Thread Jia Zhang
Instead of blacklisting all Broadwell processorsi for running a late loading, only BDW-EP (signature 406f1) with the microcode version less than 0x0b21 needs to be blacklisted. This is documented in the the public documentation #334165 (See the item BDF90 for details). Signed-off-by: Jia Zhan

Re: [PATCH] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2017-12-24 Thread Jia Zhang
Sorry I should remove UTF-8 characters in comment lines. Plz ignore this patch. Cheers, Jia 在 2017/12/25 下午3:30, Jia Zhang 写道: > Instead of blacklisting all Broadwell processorsi for running a late > loading, only BDW-EP (signature 406f1) with the microcode version > less than 0x0b21 needs to

[BUG ? ] Each pci bridge only supports hotplugging 16 numbers of virtio-blk/virtio-net devices

2017-12-24 Thread Hailiang Zhang
Hi, We tried to hot add more than 16 numbers of virtio-blk devices to pci bridge, but found that only 16 of them are available in VM. There are ‘no space’ error messages in dmesg: [4.666106] pci :00:03.0: PCI bridge to [bus 01] [4.666191] pci :00:03.0: bridge window [io 0x7

[PATCH] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2017-12-24 Thread Jia Zhang
Instead of blacklisting all Broadwell processorsi for running a late loading, only BDW-EP (signature 406f1) with the microcode version less than 0x0b21 needs to be blacklisted. This is documented in the the public documentation #334165 (See the item BDF90 for details). Signed-off-by: Jia Zhan

Re: [PATCH] KVM: x86: ioapic: Clear IRR for rtc bit when rtc EOI gotten

2017-12-24 Thread Wanpeng Li
2017-12-14 20:23 GMT+08:00 Gonglei : > We hit a bug in our test while run PCMark 10 in a windows 7 VM, > The VM got stuck and the wallclock was hang after several minutes running > PCMark 10 in it. > It is quite easily to reproduce the bug with the upstream KVM and Qemu. > > We found that KVM can n

Re: Php-fpm will crash when perf runs with call graph option

2017-12-24 Thread Wangnan (F)
Have you tried updating your kernel to a recent version? On 2017/12/25 14:58, ufo19890607 wrote: From: yuzhoujian I use perf to analyze the performance overhead for the server. There are several dockers in the server. The php-fpm in the docker will crash as long as the perf collects samples f

Re: [PATCH v5 00/11] FUSE mounts from non-init user namespaces

2017-12-24 Thread Eric W. Biederman
Dongsu Park writes: > This patchset v5 is based on work by Seth Forshee and Eric Biederman. > The latest patchset was v4: > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1132206.html > > At the moment, filesystems backed by physical medium can only be mounted > by real root in the

Php-fpm will crash when perf runs with call graph option

2017-12-24 Thread ufo19890607
From: yuzhoujian I use perf to analyze the performance overhead for the server. There are several dockers in the server. The php-fpm in the docker will crash as long as the perf collects samples for all the cpus with call graph option(perf record -ag). Below is the stack trace in the coredump.

Php-fpm will crash when perf runs with call graph option

2017-12-24 Thread ufo19890607
From: yuzhoujian #0 0x7f044ff447bd in re_compile_fastmap_iter (bufp=0x7f044ff447bd , fastmap=0x46 , init_state=, init_state=) at regcomp.c:407 407 if (__wcrtomb (buf, towlower (cset->mbchars[i]), &state) (gdb) bt #0 0x7f0

RE: [PATCH] vfio: mdev: make a couple of functions and structure vfio_mdev_driver static

2017-12-24 Thread Liu, Yi L
> Sent: Friday, December 22, 2017 7:12 AM > To: kwankh...@nvidia.com; alex.william...@redhat.com > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH] vfio: mdev: make a couple of functions and structure > vfio_mdev_driver static > > The functions vfio_mdev_probe, vfio_mdev_r

[PATCH v7 1/2] regmap: Add one flag to indicate if a hwlock should be used

2017-12-24 Thread Baolin Wang
Since the hwlock id 0 is valid for hardware spinlock core, but now id 0 is treated as one invalid value for regmap. Thus we should add one extra flag for regmap config to indicate if a hardware spinlock should be used, then id 0 can be valid for regmap to request. Signed-off-by: Baolin Wang ---

[PATCH v7 2/2] mfd: syscon: Add hardware spinlock support

2017-12-24 Thread Baolin Wang
Some system control registers need hardware spinlock to synchronize between the multiple subsystems, so we should add hardware spinlock support for syscon. Signed-off-by: Baolin Wang Acked-by: Rob Herring --- Changes since v6: - Treat hwlock id 0 as valid for regmap. Changes since v5: - Fix t

Re: [PATCH] f2fs: avoid f2fs_gc dead loop

2017-12-24 Thread Yunlong Song
What if the application starts atomic write but forgets to commit, e.g. bugs in application or the application is a malicious software itself? On 2017/12/25 11:44, Chao Yu wrote: On 2017/12/23 21:09, Yunlong Song wrote: For some corner case, f2fs_gc selects one target victim but cannot free th

Re: [PATCH] f2fs: return error during fill_super

2017-12-24 Thread Chao Yu
On 2017/12/21 4:39, Jaegeuk Kim wrote: > Let's avoid BUG_ON during fill_super, when on-disk was totall corrupted. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

Re: [PATCH] vfio: mdev: make a couple of functions and structure vfio_mdev_driver static

2017-12-24 Thread Quan Xu
On 2017/12/22 07:12, Xiongwei Song wrote: The functions vfio_mdev_probe, vfio_mdev_remove and the structure vfio_mdev_driver are only used in this file, so make them static. Clean up sparse warnings: drivers/vfio/mdev/vfio_mdev.c:114:5: warning: no previous prototype for 'vfio_mdev_probe' [-Wm

[PATCH] Staging: vt6656: Fix unnecessary parantheses

2017-12-24 Thread Sumit Pundir
This patch fixes a few coding style issues as noted by checkpatch.pl related to unnecessary parantheses. This patch fixes the following checkpatch.pl warnings: WARNING: Unnecessary parentheses around 'priv->eeprom[EEP_OFS_MAJOR_VER] == 0x1' WARNING: Unnecessary parentheses around 'priv->eeprom[EE

[PATCH] Staging: vt6656: Fix unnecessary 'out of memory' message

2017-12-24 Thread Sumit Pundir
This patch fixes one of the warnings as noted by checkpatch.pl related to unnecessary 'out of memory' message. This patch fixes the following checkpatch.pl error: WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Sumit Pundir --- drivers/staging/vt6656/main_usb.c | 5 +

For Your Urgent Attention, Sir/Madam,

2017-12-24 Thread James Jacobs
-- For Your Urgent Attention, Sir/Madam, Having reviewed all the obstacles and problems surrounding the transfer of your Funds and your inability to meet up with some charges levied against you due to the past transfer options, We the Board of Directors, United Bank For Africa (UBA Bank) had orde

Re: [PATCH] perf report: Fix a no annotate browser displayed issue

2017-12-24 Thread Jin, Yao
Hi, Any comments for this bug fix? Thanks Jin Yao On 12/18/2017 9:26 PM, Jin Yao wrote: When enabling '-b' option in perf record, for example, perf record -b ... perf report and then browsing the annotate browser from perf report, it would be failed (annotate browser can't be displayed). It

Re: [PATCH] f2fs: avoid f2fs_gc dead loop

2017-12-24 Thread Chao Yu
On 2017/12/23 21:09, Yunlong Song wrote: > For some corner case, f2fs_gc selects one target victim but cannot free > that victim segment due to some reason (e.g. the segment has some blocks > of atomic file which is not commited yet), in this case, the victim File should not be atomic opened for l

[PATCH] usb: dwc3: gadget: decrease the queued_requests in removal

2017-12-24 Thread Lipengcheng
In removal requests, it is necessary to make the corresponding trb disable state (HWO = 1) and dep->queued_requests a corresponding reduction. It is better to use a alone funtion to disable trb (HWO = 0). Signed-off-by: Pengcheng Li --- drivers/usb/dwc3/gadget.c | 30 +

[PATCH v2 07/12] drm/qxl: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/qxl/qxl_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index ab48238

[PATCH v2 08/12] drm/radeon: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/radeon/radeon_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_

[PATCH v2 01/12] drm/ttm: add ttm_bo_io_mem_pfn to check io_mem_pfn

2017-12-24 Thread Tan Xiaojun
The io_mem_pfn field was added in commit ea642c3216cb ("drm/ttm: add io_mem_pfn callback") and is called unconditionally. However, not all drivers were updated to set it. Use the ttm_bo_default_io_mem_pfn function if a driver did not set its own. And add new function ttm_bo_io_mem_pfn() as wrapper

[PATCH v2 09/12] drm/virtio: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/virtio/virtgpu_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_ttm.c b/drivers/gpu/drm/virtio/virtg

[PATCH v2 12/12] drm/ttm: remove ttm_bo_default_io_mem_pfn

2017-12-24 Thread Tan Xiaojun
No one will use this function except ttm_bo_io_mem_pfn() now, so move the calculation of ttm_bo_default_io_mem_pfn() into ttm_bo_io_mem_pfn() and do some cleanup. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/ttm/ttm_bo_vm.c | 11 ++- include/drm/ttm/ttm_bo_api.h| 11 --- 2

[PATCH v2 11/12] staging: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/staging/vboxvideo/vbox_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/vboxvideo/vbox_ttm.c b/drivers/staging/vboxvideo/vb

[PATCH v2 00/12] drm: add check if io_mem_pfn is NULL and cleanup

2017-12-24 Thread Tan Xiaojun
I found an OOPS when I used the mainline kernel for graphical tests in Hisilicon D05, I do not know how to solve this problem until I saw your discussion on this issue a month ago: https://lists.freedesktop.org/archives/dri-devel/2017-November/159046.html And my problem can be solved perfectly by

[PATCH v2 04/12] drm/cirrus: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/cirrus/cirrus_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/cirrus/cirrus_ttm.c b/drivers/gpu/drm/cirrus/cirrus_

[PATCH v2 05/12] drm/mgag200: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/mgag200/mgag200_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_ttm.c b/drivers/gpu/drm/mgag200/mg

[PATCH v2 03/12] drm/bochs: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/bochs/bochs_mm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c inde

[PATCH v2 06/12] drm/nouveau: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/nouveau/nouveau_bo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouv

[PATCH v2 10/12] drm/vmwgfx: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c b/drivers/gpu/drm/vmwgfx/v

[PATCH v2 02/12] drm/ast: remove the default io_mem_pfn set

2017-12-24 Thread Tan Xiaojun
The default interface situation has been taken into the framework, so remove the default set of each module. Signed-off-by: Tan Xiaojun --- drivers/gpu/drm/ast/ast_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/ast/ast_ttm.c b/drivers/gpu/drm/ast/ast_ttm.c index 696a15d

Re: [linux-sunxi] [PATCH v4 0/2] Initial Allwinner V3s CSI Support

2017-12-24 Thread Yong
Hi, On Fri, 22 Dec 2017 14:46:48 +0100 Ondřej Jirman wrote: > Hello, > > Yong Deng píše v Pá 22. 12. 2017 v 17:32 +0800: > > This patchset add initial support for Allwinner V3s CSI. > > > > Allwinner V3s SoC have two CSI module. CSI0 is used for MIPI interface > > and CSI1 is used for parallel

Re: [PATCH 4/4] KVM: nVMX: initialize more non-shadowed fields in prepare_vmcs02_full

2017-12-24 Thread Wanpeng Li
2017-12-21 20:43 GMT+08:00 Paolo Bonzini : > These fields are also simple copies of the data in the vmcs12 struct. > For some of them, prepare_vmcs02 was skipping the copy when the field > was unused. In prepare_vmcs02_full, we copy them always as long as the > field exists on the host, because th

Re: [PATCH 2/4] KVM: nVMX: track dirty state of non-shadowed VMCS fields

2017-12-24 Thread Wanpeng Li
2017-12-21 20:43 GMT+08:00 Paolo Bonzini : > VMCS12 fields that are not handled through shadow VMCS are rarely > written, and thus they are also almost constant in the vmcs02. We can > thus optimize prepare_vmcs02 by skipping all the work for non-shadowed > fields in the common case. > > This patc

RE: [PATCH] usb: dwc3: gadget:Core consumes a trb software to fill a trb, in ISO

2017-12-24 Thread Lipengcheng
Hi, > -Original Message- > From: Felipe Balbi [mailto:ba...@kernel.org] > Sent: Friday, December 22, 2017 3:54 PM > To: Lipengcheng > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Lipengcheng > Subject: Re: [PATCH] usb: dwc3: gadget:Core consumes a trb software to fill a >

[PATCH] x86/kconfig: remove residual cmdline param "no-hlt"

2017-12-24 Thread zhenwei.pi
cmdline param "no-hlt" has been removed in commit 27be457000211a6903968dfce06d5f73f051a217. Signed-off-by: zhenwei.pi --- arch/x86/Kconfig | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index d4fc98c..fa9c33c 100644

Re: [PATCH] perf tool: Return all events as auto-completions after comma

2017-12-24 Thread Jin, Yao
One other thing you may want to look at: $ $ perf record -e cycles/ Should present the modifiers, i.e. these: /* * Update according to parse-events.l */ static const char *config_term_names[__PARSE_EVENTS__TERM_TYPE_NR] = { [PARSE_EVENTS__TERM_TYPE_USER] = "",

Re: [f2fs-dev] [PATCH v2] f2fs: add an ioctl to disable GC for specific file

2017-12-24 Thread Chao Yu
On 2017/12/20 6:52, Jaegeuk Kim wrote: > On 12/18, Chao Yu wrote: >> On 2017/12/15 3:50, Jaegeuk Kim wrote: >>> On 12/12, Chao Yu wrote: Hi Jaegeuk, On 2017/12/9 3:37, Jaegeuk Kim wrote: > Change log from v1: > - fix bug in error handling of ioctl > > >From b905e03d

Re: TPM driver breaks S3 suspend

2017-12-24 Thread Chris Chiu
On Mon, Dec 25, 2017 at 4:33 AM, Jarkko Sakkinen wrote: > On Thu, Dec 21, 2017 at 04:04:56PM +0800, Chris Chiu wrote: >> Hi, >> We have a desktop which has S3 suspend (to RAM) problem due to >> error messages as follows. >> [ 198.908282] tpm tpm0: Error (38) sending savestate before suspend >

[PATCH v2 1/3] tpm: delete the TPM_TIS_CLK_ENABLE flag

2017-12-24 Thread Javier Martinez Canillas
This flag is only used to warn if CLKRUN_EN wasn't disabled on Braswell systems, but the only way this can happen is if the code is not correct. So it's an unnecessary check that just makes the code harder to read. Suggested-by: Jarkko Sakkinen Signed-off-by: Javier Martinez Canillas Reviewed-b

[PATCH v2 0/3] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-24 Thread Javier Martinez Canillas
Hello, Commit 5e572cab92f0 ("tpm: Enable CLKRUN protocol for Braswell systems") added logic in the TPM TIS driver to disable the Low Pin Count CLKRUN signal during TPM transactions. Unfortunately this breaks other devices that are attached to the LPC bus like for example PS/2 mouse and keyboards.

[PATCH v2 2/3] tpm: follow coding style for variable declaration in tpm_tis_core_init()

2017-12-24 Thread Javier Martinez Canillas
The coding style says "use just one data declaration per line (no commas for multiple data declarations)" so follow this convention. Suggested-by: Jarkko Sakkinen Signed-off-by: Javier Martinez Canillas Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis_core

[PATCH v2 3/3] tpm: only attempt to disable the LPC CLKRUN if is already enabled

2017-12-24 Thread Javier Martinez Canillas
Commit 5e572cab92f0 ("tpm: Enable CLKRUN protocol for Braswell systems") added logic in the TPM TIS driver to disable the Low Pin Count CLKRUN signal during TPM transactions. Unfortunately this breaks other devices that are attached to the LPC bus like for example PS/2 mouse and keyboards. One fl

Re: [PATCH v2] arm64: dts: Hi3660: Fix up psci state id

2017-12-24 Thread Leo Yan
Hi Vincent, [ + John, Kevin Wang ] On Fri, Dec 22, 2017 at 03:22:51PM +0100, Vincent Guittot wrote: > Hi Leo, > > Sorry for jumping late in the discussion but should we also remove > the NAP state from the property cpu-idle-states of the CPUs because > this state not supported by the platform a

[RFC] dmaengine: pl330: fix a race condition in case of threaded irqs

2017-12-24 Thread Qi Hou
I found this problem below, and I now understand why it happens, but I'm not 100% sure what is the best way to fix it. When booting up with "threadirqs" in command line, all irq handlers of the DMA controller pl330 will be threaded forcedly. These threads will race for the same list, pl330->req_d

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-24 Thread Liubo(OS Lab)
On 2017/12/23 6:31, Ross Zwisler wrote: > On Fri, Dec 22, 2017 at 08:39:41AM +0530, Anshuman Khandual wrote: >> On 12/14/2017 07:40 AM, Ross Zwisler wrote: > <> >>> We solve this issue by providing userspace with performance information on >>> individual memory ranges. This performance information

Re: [PATCH v3 27/27] devres: kill devm_ioremap_nocache

2017-12-24 Thread Yisheng Xie
On 2017/12/23 21:45, Greg KH wrote: > On Sat, Dec 23, 2017 at 07:02:59PM +0800, Yisheng Xie wrote: >> --- a/lib/devres.c >> +++ b/lib/devres.c >> @@ -44,35 +44,6 @@ void __iomem *devm_ioremap(struct device *dev, >> resource_size_t offset, >> EXPORT_SYMBOL(devm_ioremap); >> >> /** >> - * devm

Re: [PATCH v3 08/27] PCI: replace devm_ioremap_nocache with devm_ioremap

2017-12-24 Thread Yisheng Xie
Hi Fabio, Thanks for you reviewing and comment! On 2017/12/23 20:23, Fabio Estevam wrote: > On Sat, Dec 23, 2017 at 8:58 AM, Yisheng Xie wrote: >> Default ioremap is ioremap_nocache, so devm_ioremap has the same >> function with devm_ioremap_nocache, which can just be killed to >> save the size

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2017-12-24 Thread Yisheng Xie
On 2017/12/24 17:05, christophe leroy wrote: > > > Le 23/12/2017 à 14:48, Greg KH a écrit : >> On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote: >>> Hi all, >>> >>> When I tried to use devm_ioremap function and review related code, I found >>> devm_ioremap and devm_ioremap_nocache is

Re: [PATCH -V4 -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-24 Thread Huang, Ying
"Paul E. McKenney" writes: > On Fri, Dec 22, 2017 at 10:14:43PM +0800, Huang, Ying wrote: >> Minchan Kim writes: >> >> > On Thu, Dec 21, 2017 at 03:48:56PM +0800, Huang, Ying wrote: >> >> Minchan Kim writes: >> >> >> >> > On Wed, Dec 20, 2017 at 09:26:32AM +0800, Huang, Ying wrote: >> >> >> F

RE: [PATCH] arm: imx: suspend/resume: use outer_disable/resume

2017-12-24 Thread Peng Fan
Hi All, Ping... > -Original Message- > From: Peng Fan > Sent: Sunday, December 10, 2017 8:07 PM > To: shawn...@kernel.org > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > van.free...@gmail.com; Peng Fan ; Sascha Hauer > ; Fabio Estevam ; Russell > King ; A.s. Do

Re: [PATCH 01/12] drm/ttm: Use ttm_bo_default_io_mem_pfn if io_mem_pfn is NULL

2017-12-24 Thread Tan Xiaojun
On 2017/12/24 17:27, Christian König wrote: > Am 24.12.2017 um 07:14 schrieb Tan Xiaojun: >> From: Michal Srb >> >> The io_mem_pfn field was added in commit >> ea642c3216cb2a60d1c0e760ae47ee85c9c16447 >> and is called unconditionally. However, not all drivers were updated to set >> it. >> >> Use

[PATCH net-next v8 0/2] add UniPhier AVE ethernet support

2017-12-24 Thread Kunihiko Hayashi
This series adds support for Socionext AVE ethernet controller implemented on UniPhier SoCs. This driver supports RGMII/RMII modes. v7: https://www.spinics.net/lists/netdev/msg473896.html The PHY patch included in v1 has already separated in: http://www.spinics.net/lists/netdev/msg454595.html Ch

[PATCH net-next v8 2/2] net: ethernet: socionext: add AVE ethernet driver

2017-12-24 Thread Kunihiko Hayashi
The UniPhier platform from Socionext provides the AVE ethernet controller that includes MAC and MDIO bus supporting RGMII/RMII modes. The controller is named AVE. Signed-off-by: Kunihiko Hayashi Signed-off-by: Jassi Brar Reviewed-by: Andrew Lunn --- drivers/net/ethernet/Kconfig |

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2017-12-24 Thread Yisheng Xie
hi Christophe and Greg, On 2017/12/24 16:55, christophe leroy wrote: > > > Le 23/12/2017 à 16:57, Guenter Roeck a écrit : >> On 12/23/2017 05:48 AM, Greg KH wrote: >>> On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote: Hi all, When I tried to use devm_ioremap function an

[PATCH net-next v8 1/2] dt-bindings: net: add DT bindings for Socionext UniPhier AVE

2017-12-24 Thread Kunihiko Hayashi
DT bindings for the AVE ethernet controller found on Socionext's UniPhier platforms. Signed-off-by: Kunihiko Hayashi Signed-off-by: Jassi Brar Acked-by: Rob Herring --- .../bindings/net/socionext,uniphier-ave4.txt | 47 ++ 1 file changed, 47 insertions(+) create mode

Re: [linux-sunxi] [PATCH v4 2/2] media: V3s: Add support for Allwinner CSI.

2017-12-24 Thread Yong
On Fri, 22 Dec 2017 14:40:37 +0100 Philippe Ombredanne wrote: > Yong, > > On Fri, Dec 22, 2017 at 11:21 AM, Priit Laes wrote: > > On Fri, Dec 22, 2017 at 05:47:00PM +0800, Yong Deng wrote: > >> Allwinner V3s SoC have two CSI module. CSI0 is used for MIPI interface > >> and CSI1 is used for para

Re: [PATCH v2] gpio: winbond: add driver

2017-12-24 Thread Maciej S. Szmigiero
On 24.12.2017 23:42, William Breathitt Gray wrote: > On Fri, Dec 22, 2017 at 07:58:49PM +0100, Maciej S. Szmigiero wrote: >> This commit adds GPIO driver for Winbond Super I/Os. >> >> Currently, only W83627UHG model (also known as Nuvoton NCT6627UD) is >> supported but in the future a support for o

Re: [regression] Re: Thinkpad T40p: suspend to ram stopped working sometime before 4.14

2017-12-24 Thread Pavel Machek
Hi! > > And it seems bad commit is > > > > commit 5620a0d1aacd554ebebcff373e31107bb1ef7769 > > Author: Greg Kroah-Hartman > > Date: Thu Sep 14 14:23:01 2017 -0700 > > > > firmware: delete in-kernel firmware > > > > Unfortuantely, it does not revert cleanly. > > I can't, because there's

Re: Linux 4.15-rc5

2017-12-24 Thread Pavel Machek
Hi! > Ok, so it's not Sunday yet, but tomorrow is Christmas Eve, and while > I've been in the US for over two decades, we still celebrate Christmas > the only _right_ way - with Christmas Eve being the big day, and > Christmas Day being just for recovery. > > So I'm doing the rc5 release a day ea

Re: [PATCH v2] gpio: winbond: add driver

2017-12-24 Thread William Breathitt Gray
On Fri, Dec 22, 2017 at 07:58:49PM +0100, Maciej S. Szmigiero wrote: >This commit adds GPIO driver for Winbond Super I/Os. > >Currently, only W83627UHG model (also known as Nuvoton NCT6627UD) is >supported but in the future a support for other Winbond models, too, can >be added to the driver. > >A

Re: [regression] Re: Thinkpad T40p: suspend to ram stopped working sometime before 4.14

2017-12-24 Thread Pavel Machek
Hi! > > > > > 4.15-rcX is broken, but that had other problems so lets not go there. > > > > > > > > > > 4.14 is broken. > > > > > > > > And what exactly does happen? > > > > > > Suspend looks ok. I believe there's some reaction to power button, but > > > screen stays blank. I'll re-check that..

Re: [PATCH 4.14 000/159] 4.14.9-stable review

2017-12-24 Thread Andre Tomt
On 24. des. 2017 20:37, Ivan Kozik wrote: On Fri, Dec 22, 2017 at 8:44 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.9 release. There are 159 patches in this series, all will be posted as a response to this one. If anyone has any issues with these bein

[PATCH v1] drm/i915: Try EDID bitbanging on HDMI after failed read

2017-12-24 Thread Stefan Brüns
The ACK/NACK implementation as found in e.g. the G965 has the falling clock edge and the release of the data line to ACK the received byte happen at the same time. Some HDMI-to-VGA converters apparently read the ACK not in the middle of the clock high phase, but at the rising clock edge, so instea

[PATCH 01/12] watchdog: sp5100_tco: Always use SP5100_IO_PM_{INDEX_REG,DATA_REG}

2017-12-24 Thread Guenter Roeck
SP5100_IO_PM_INDEX_REG and SB800_IO_PM_INDEX_REG are used inconsistently and define the same value. Just use SP5100_IO_PM_INDEX_REG throughout. Do the same for SP5100_IO_PM_DATA_REG and SB800_IO_PM_DATA_REG. Use helper functions to access the indexed registers. Cc: Zoltán Böszörményi Signed-off-b

[PATCH 04/12] watchdog: sp5100_tco: Use standard error codes

2017-12-24 Thread Guenter Roeck
By using standard error codes, we can identify and return more than one error condition. Cc: Zoltán Böszörményi Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/watchdog/sp5100_tco.c b

[PATCH 05/12] watchdog: sp5100_tco: Clean up sp5100_tco_setupdevice

2017-12-24 Thread Guenter Roeck
There are too many unnecessary goto statements in sp5100_tco_setupdevice(). Rearrange the code and limit goto statements to error handling. Cc: Zoltán Böszörményi Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.c | 62 --- 1 file changed, 29

[PATCH 02/12] watchdog: sp5100_tco: Fix watchdog disable bit

2017-12-24 Thread Guenter Roeck
According to all published information, the watchdog disable bit for SB800 compatible controllers is bit 1 of PM register 0x48, not bit 2. For the most part that doesn't matter in practice, since the bit has to be cleared to enable watchdog address decoding, which is the default setting, but it sti

[PATCH 03/12] watchdog: sp5100_tco: Use request_muxed_region where possible

2017-12-24 Thread Guenter Roeck
Use request_muxed_region for multiplexed IO memory regions. Also, SP5100_IO_PM_INDEX_REG/SP5100_IO_PM_DATA_REG are only used during initialization; it is unnecessary to keep the address range reserved. Cc: Zoltán Böszörményi Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.c | 7 +++

[PATCH 02/12] watchdog: sp5100_tco: Fix watchdog disable bit

2017-12-24 Thread Guenter Roeck
According to all published information, the watchdog disable bit for SB800 compatible controllers is bit 1 of PM register 0x48, not bit 2. For the most part that doesn't matter in practice, since the bit has to be cleared to enable watchdog address decoding, which is the default setting, but it sti

[PATCH 00/12] watchdog: sp5100_tco: Various improvements

2017-12-24 Thread Guenter Roeck
The sp5100_tco watchdog driver does not really support recent AMD CPUs, even though it claims to do so. On top of that, it doesn't use the watchdog subsystem, and various other problems have crept in. Let's clean it up for good. The code was tested on AMD Ryzen 1700 with motherboards from MSI and

[PATCH 06/12] watchdog: sp5100_tco: Match PCI device early

2017-12-24 Thread Guenter Roeck
Match PCI device in module init function, not in the probe function. It is pointless trying to probe if we can determine early that the device is not supported. Cc: Zoltán Böszörményi Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.c | 66 ---

[PATCH 08/12] watchdog: sp5100_tco: Clean up function and variable names

2017-12-24 Thread Guenter Roeck
Use more common function and variable names. Use pdev instead of dev for platform device. Use sp5100_tco_probe() instead of sp5100_tco_init() for the probe function. Drop sp5100_tco_cleanup(); just move the code into sp5100_tco_remove(). Use sp5100_tco_init() instead of sp5100_tco_init_module() fo

[PATCH 12/12] watchdog: sp5100_tco: Add support for recent FCH versions

2017-12-24 Thread Guenter Roeck
Starting with Family 16h Models 30h-3Fh and Family 15h Models 60h-6Fh, watchdog address space decoding has changed. The cutover point is already identified in the i2c-piix2 driver, so use the same mechanism. Cc: Zoltán Böszörményi Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.c |

[PATCH 11/12] watchdog: sp5100-tco: Abort if watchdog is disabled by hardware

2017-12-24 Thread Guenter Roeck
If the watchdog control register indicates that the watchdog hardware is disabled even after we tried to enable it, there is no point to instantiate the driver. Cc: Zoltán Böszörményi Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.c | 8 +++- drivers/watchdog/sp5100_tco.h | 1

[PATCH 09/12] watchdog: sp5100_tco: Convert to use watchdog subsystem

2017-12-24 Thread Guenter Roeck
Convert to watchdog subsystem. As part of that rework, use devm functions where possible, and replace almost all static variables with a dynamically allocated data structure. Cc: Zoltán Böszörményi Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.c | 358

[PATCH 07/12] watchdog: sp5100_tco: Use dev_ print functions where possible

2017-12-24 Thread Guenter Roeck
Use dev_ instead of pr_ functions where possible. Cc: Zoltán Böszörményi Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.c | 40 +--- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog

[PATCH 10/12] watchdog: sp5100_tco: Use bit operations

2017-12-24 Thread Guenter Roeck
Using bit operations makes it easier to improve the driver. Cc: Zoltán Böszörményi Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.h | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/drivers/watchdog/sp5100_tco.h b/drivers/watchdog/sp

[PATCH 01/12] watchdog: sp5100_tco: Always use SP5100_IO_PM_{INDEX_REG,DATA_REG}

2017-12-24 Thread Guenter Roeck
SP5100_IO_PM_INDEX_REG and SB800_IO_PM_INDEX_REG are used inconsistently and define the same value. Just use SP5100_IO_PM_INDEX_REG throughout. Do the same for SP5100_IO_PM_DATA_REG and SB800_IO_PM_DATA_REG. Use helper functions to access the indexed registers. Cc: Zoltán Böszörményi Signed-off-b

[PATCH 00/12] watchdog: sp5100_tco: Various improvements

2017-12-24 Thread Guenter Roeck
The sp5100_tco watchdog driver does not really support recent AMD CPUs, even though it claims to do so. On top of that, it doesn't use the watchdog subsystem, and various other problems have crept in. Let's clean it up for good. The code was tested on AMD Ryzen 1700 with motherboards from MSI and

Re: [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables

2017-12-24 Thread Jarkko Sakkinen
On Fri, Dec 22, 2017 at 06:47:41PM +0100, Javier Martinez Canillas wrote: > The data field for the entries in the device tables are set but not used. > > Signed-off-by: Javier Martinez Canillas > > --- > > Changes in v2: > - Also empty spaces (suggested by Jason Gunthorpe). > > drivers/char/t

Re: [PATCH 1/4] tpm: fix access attempt to an already unmapped I/O memory region

2017-12-24 Thread Jarkko Sakkinen
On Wed, Dec 20, 2017 at 12:35:35PM +0100, Javier Martinez Canillas wrote: > The driver maps the I/O memory address to control the LPC bus CLKRUN_EN, > but on the error path the memory is accessed by the .clk_enable handler > after this was already unmapped. So only unmap the I/O memory region if >

Re: TPM driver breaks S3 suspend

2017-12-24 Thread Jarkko Sakkinen
> The correct solution should be something like tpm2_auto_startup > (execute selftests, if they fail because of the missing startup > command, execute that and retry the selftests). Interestingly, > tpm1_auto_startup (same purpose as tpm2_auto_startup, but for TPM 1.2 > instead) does not use the sa

Re: TPM driver breaks S3 suspend

2017-12-24 Thread Jarkko Sakkinen
On Thu, Dec 21, 2017 at 05:43:35PM +0800, Chris Chiu wrote: > On Thu, Dec 21, 2017 at 5:22 PM, Paul Menzel wrote: > > Dear Chris, > > > > > > Thank you for bringin gup the issue. > > > >> We have a desktop which has S3 suspend (to RAM) problem due to > >> error messages as follows. > >> [ 19

Re: TPM driver breaks S3 suspend

2017-12-24 Thread Jarkko Sakkinen
On Thu, Dec 21, 2017 at 04:04:56PM +0800, Chris Chiu wrote: > Hi, > We have a desktop which has S3 suspend (to RAM) problem due to > error messages as follows. > [ 198.908282] tpm tpm0: Error (38) sending savestate before suspend > [ 198.908289] __pnp_bus_suspend(): tpm_pm_suspend+0x0/0x160 r

[PATCH v10 7/7] intel_sgx: in-kernel launch enclave

2017-12-24 Thread Jarkko Sakkinen
The Launch Enclave (LE) generates cryptographic launch tokens for user enclaves. A launch token is used by EINIT to check whether the enclave is authorized to launch or not. By having its own launch enclave, Linux has full control of the enclave launch process. LE is wrapped into a user space prox

[PATCH v10 6/7] intel_sgx: driver documentation

2017-12-24 Thread Jarkko Sakkinen
Signed-off-by: Jarkko Sakkinen Tested-by: Serge Ayoun --- Documentation/index.rst | 1 + Documentation/x86/intel_sgx.rst | 168 2 files changed, 169 insertions(+) create mode 100644 Documentation/x86/intel_sgx.rst diff --git a/Documentation/in

[PATCH v10 5/7] intel_sgx: ptrace() support

2017-12-24 Thread Jarkko Sakkinen
Implemented VMA callbacks in order to ptrace() debug enclaves. With debug enclaves data can be read and write the memory word at a time by using ENCLS(EDBGRD) and ENCLS(EDBGWR) leaf instructions. Signed-off-by: Jarkko Sakkinen Tested-by: Serge Ayoun --- drivers/platform/x86/intel_sgx/sgx_vma.c

[PATCH v10 4/7] intel_sgx: driver for Intel Software Guard Extensions

2017-12-24 Thread Jarkko Sakkinen
Intel SGX is a set of CPU instructions that can be used by applications to set aside private regions of code and data. The code outside the enclave is disallowed to access the memory inside the enclave by the CPU access control. SGX driver provides a ioctl API for loading and initializing enclave

[PATCH v10 2/7] x86: add SGX definitions to cpufeature

2017-12-24 Thread Jarkko Sakkinen
From: Kai Huang Added X86_FEATURE_SGX and X86_FEATURE_SGX_LC definitions that define the bits CPUID level 7 bits for determining whether the CPU supports SGX and launch configuration other than the Intel proprietary key. If this the case, IA32_SGXLEPUBKEYHASHn MSRs (0 < n < 4) are available for d

[PATCH v10 3/7] x86: add SGX definitions to msr-index.h

2017-12-24 Thread Jarkko Sakkinen
From: Sean Christopherson ENCLS and ENCLU are usable if and only if SGX_ENABLE is set and After SGX is activated the IA32_SGXLEPUBKEYHASHn MSRs are writable if SGX_LC_WR is set and the feature control is locked. SGX related bits in IA32_FEATURE_CONTROL cannot be set before SGX is activated by th

[PATCH v10 1/7] intel_sgx: updated MAINTAINERS

2017-12-24 Thread Jarkko Sakkinen
Signed-off-by: Jarkko Sakkinen --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 77d819b458a9..545a8e3168c0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7237,6 +7237,13 @@ L: linux-g...@vger.kernel.org S: Maintained F: dri

[PATCH v10 0/7] Intel SGX Driver

2017-12-24 Thread Jarkko Sakkinen
Intel(R) SGX is a set of CPU instructions that can be used by applications to set aside private regions of code and data. The code outside the enclave is disallowed to access the memory inside the enclave by the CPU access control. In a way you can think that SGX provides inverted sandbox. It prote

Re: [PATCH v6 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-12-24 Thread Jarkko Sakkinen
On Fri, Dec 22, 2017 at 12:13:42PM -0800, Azhar Shaikh wrote: > Changes from v1: > - Patch 1: "tpm: Keep CLKRUN enabled throughout the duration of > transmit_cmd()" > - Add NULL checks before calling clk_toggle callback > - Use IS_ENABLED instead of ifdef in tpm_tis_clkrun_toggle() > - Do no

Re: [PATCH 4.14 000/159] 4.14.9-stable review

2017-12-24 Thread Ivan Kozik
On Fri, Dec 22, 2017 at 8:44 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.9 release. > There are 159 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Re

Re: [PATCH] iio: adc: add driver for ti adc081s/adc101s/adc121s

2017-12-24 Thread Milan Stevanovic
On 12/23/2017 03:13 PM, Philippe Ombredanne wrote: Milan, On Sat, Dec 23, 2017 at 12:19 AM, Milan Stevanovic wrote: Signed-off-by: Milan Stevanovic May be it is just me, but you may be missing a commit message? Yes... Sorry I missed this --- /dev/null +++ b/drivers/iio/adc/ti-adc081s.c

Re: [PATCH v5] leds: trigger: Introduce a NETDEV trigger

2017-12-24 Thread Pavel Machek
On Sun 2017-12-10 21:17:55, Ben Whitten wrote: > This commit introduces a NETDEV trigger for named device > activity. Available triggers are link, rx, and tx. > > Signed-off-by: Ben Whitten Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://a

  1   2   >