Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2017-12-24 Thread christophe leroy
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 and review related code, I found devm_ioremap and devm_ioremap_nocache is almost the same

WARNING: CPU: 1 PID: 1384 at lib/iov_iter.c:695 copy_page_to_iter+0x240/0x3b0

2017-12-24 Thread Christian Kujau
Hi, this just happened on an i686 machine of mine: [ cut here ] WARNING: CPU: 1 PID: 1384 at lib/iov_iter.c:695 copy_page_to_iter+0x240/0x3b0 Modules linked in: xfs algif_skcipher af_alg uas nfsv4 dns_resolver nfs nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject

Re: [linux-sunxi] [PATCH v3] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2017-12-24 Thread Priit Laes
On Sun, Dec 24, 2017 at 01:40:29PM +0800, Icenowy Zheng wrote: > Banana Pi M2 Zero board is a H2+-based board by Sinovoip, with a form > factor and GPIO holes similar to Raspberry Pi Zero. > > It features: > - Allwinner H2+ SoC > - Single-chip (16-bit) 512MiB DDR3 DRAM > - Ampak AP6212

Re: [virtio-dev] Re: [PATCH v20 4/7] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-12-24 Thread Wei Wang
On 12/24/2017 03:42 PM, Wei Wang wrote: On 12/24/2017 12:45 PM, Tetsuo Handa wrote: Matthew Wilcox wrote: +unsigned long pfn = page_to_pfn(page); +int ret; + +*pfn_min = min(pfn, *pfn_min); +*pfn_max = max(pfn, *pfn_max); + +do { +if (xb_preload(GFP_NOWAIT |

[PATCH] staging: comedi: adv_pci1760: fix typo in comments

2017-12-24 Thread Richard Sudaryono
Changed 'firware' to 'firmware' Signed-off-by: Richard Sudaryono --- drivers/staging/comedi/drivers/adv_pci1760.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/adv_pci1760.c

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2017-12-24 Thread christophe leroy
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 almost the same with each other, except one use ioremap while the

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

2017-12-24 Thread Christian König
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 the ttm_bo_default_io_mem_pfn function if a driver

Re: [PATCH v3] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-24 Thread Christian König
Am 20.12.2017 um 15:05 schrieb Boris Ostrovsky: Commit f5775e0b6116 ("x86/xen: discard RAM regions above the maximum reservation") left host memory not assigned to dom0 as available for memory hotplug. Unfortunately this also meant that those regions could be used by others. Specifically,

Dobur den na vas

2017-12-24 Thread Simona Fionda
Dobur den na vas, Moeto ime e Simona Fionda, az byakh glavniyat operativen risk v METRO BANKA otgovarya sushto i za chastniya upravlenieto na nyakoi nashumeli klienti, vklyuchitelno trustove, blagotvoritelni organizatsii i pensionni fondove. Az sum kontakt s vas za Ivan, murtuv klient ot

Re: [PATCH] Coccinelle: kzalloc-simple: Add all zero allocating functions

2017-12-24 Thread Julia Lawall
On Sun, 24 Dec 2017, Himanshu Jha wrote: > There are many instances where memory is allocated using regular allocator > functions immediately followed by setting the allocated memory > to 0 value using memset. > > We already have zero memory allocator functions to set the memory to > 0 value

Re: [PATCH] i40iw: Replace mdelay with msleep in i40iw_wait_pe_ready

2017-12-24 Thread Leon Romanovsky
On Sun, Dec 24, 2017 at 06:39:40PM +0800, Jia-Ju Bai wrote: > i40iw_wait_pe_ready is not called in an interrupt handler > nor holding a spinlock. > The function mdelay in it can be replaced with msleep, > to reduce busy wait. > > Signed-off-by: Jia-Ju Bai > --- >

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

2017-12-24 Thread Rafael J. Wysocki
On Sunday, December 24, 2017 12:49:21 PM CET Pavel Machek wrote: > 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? > 4.12 is ok. > 4.13 is ok. Thanks, Rafael

Re: [PATCH/RFC] perf report: Add option to change offset format when address is specified as a sort_key

2017-12-24 Thread Aaron Tomlin
On Sat 2017-12-23 00:59 +0100, Jiri Olsa wrote: [ ... ] > not sure we've already discussed that, but this could be default? Probably it is best to keep the default behaviour. I'd prefer a hexadecimal address offset, as the default, however perhaps someone is happy with the current default

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)

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,

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

[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

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

[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

[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

[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

[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 ---

[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

[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 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 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

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

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

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

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

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 >

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

[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 ---

[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

[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

[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

[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

[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 +++-

[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()

[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] 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: [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

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

[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

[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

[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

[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

[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

[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:

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 >

[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

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

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. >

[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:

[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

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

[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

[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.. I'm in the

[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

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

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

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).

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

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

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); >> >> /** >> - *

[PATCH] i40iw: Replace mdelay with msleep in i40iw_wait_pe_ready

2017-12-24 Thread Jia-Ju Bai
i40iw_wait_pe_ready is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with msleep, to reduce busy wait. Signed-off-by: Jia-Ju Bai --- drivers/infiniband/hw/i40iw/i40iw_main.c |2 +- 1 file changed, 1

Re: [PATCH v2 2/3] backlight: tdo24m: add the reset line gpio

2017-12-24 Thread Robert Jarzmik
Robert Jarzmik writes: > Daniel Thompson writes: > >> On Fri, Oct 13, 2017 at 09:42:48PM +0200, Robert Jarzmik wrote: >> Also, this adds a new optional property, doesn't the devicetree binding >> docs need to be update to match this? > Ah

Dobur den na vas

2017-12-24 Thread Simona Fionda
Dobur den na vas, Moeto ime e Simona Fionda, az byakh glavniyat operativen risk v METRO BANKA otgovarya sushto i za chastniya upravlenieto na nyakoi nashumeli klienti, vklyuchitelno trustove, blagotvoritelni organizatsii i pensionni fondove. Az sum kontakt s vas za Ivan, murtuv klient ot

[GIT PULL] GPIO fixes for v4.15 take three

2017-12-24 Thread Linus Walleij
Hi Linus, 1) Merry christmas! God Jul! 2) Please pull the two fixes below for v4.15 fixes. They are both kind of important, so why not send a pull request on christmas eve. Yours, Linus Walleij The following changes since commit 1291a0d5049dbc06baaaf66a9ff3f53db493b19b: Linux 4.15-rc4

Re: [PATCH v2 1/3] phy: core: Move runtime PM reference counting to the parent device

2017-12-24 Thread Rafael J. Wysocki
On Saturday, December 23, 2017 4:09:33 PM CET Ulf Hansson wrote: > [...] > > > > > So IMO the changes you are proposing make sense regardless of the > > genpd issue, because they generally simplify the phy code, but the > > additional use_runtime_pm field in struct phy represents redundant > >

[PATCH] xfs: destroy mutex qi_tree_lock before free xfs_quotainfo_t object

2017-12-24 Thread Xiongwei Song
The mutex qi_tree_lock of xfs_quotainfo_t object was initialized when calling xfs_qm_init_quotainfo, but it was not destroyed before free xfs_quotainfo_t object when calling xfs_qm_destroy_quotainfo, this was incorrect, so destroy it in function xfs_qm_destroy_quotainfo. Signed-off-by: Xiongwei

Re: [PATCH 4.4 00/78] 4.4.108-stable review

2017-12-24 Thread Guenter Roeck
On 12/23/2017 11:43 PM, Greg Kroah-Hartman wrote: On Sat, Dec 23, 2017 at 05:30:42PM -0800, Guenter Roeck wrote: On 12/22/2017 12:45 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.108 release. There are 78 patches in this series, all will be posted as a

Re: [PATCH] ARM: make ARCH_S3C24XX select USE_OF and clean-up boot/dts/Makefile

2017-12-24 Thread Masahiro Yamada
2017-12-22 21:41 GMT+09:00 Krzysztof Kozlowski : > On Mon, Nov 27, 2017 at 3:19 AM, Masahiro Yamada > wrote: >> ARCH_S3C24XX is a very exceptional platform that some DT files in >> arch/arm/boot/dts/, but does not select USE_OF. > > Not entirely.

Re: [PATCH 11/11] ARM: pxa: constify gpio_led

2017-12-24 Thread kbuild test robot
Hi Arvind, Thank you for the patch! Yet something to improve: [auto build test ERROR on arm-soc/for-next] [also build test ERROR on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH v2] staging: vc04_services: Prefer WARN_ON_ONCE instead of if condition followed by BUG.

2017-12-24 Thread kishore . p
From: Kishore KP Coccinelle suggested to use BUG_ON instead of if condition followed by BUG but BUG_ON should be used in situations where integrity of the system is no longer guaranteed. In this case, as suggested by Stefan Wahren, vchiq isn't critical. Since it is not

Re: [PATCH] gpio: gpio-reg: fix build

2017-12-24 Thread Russell King - ARM Linux
On Sun, Dec 24, 2017 at 04:49:39PM +0100, Geert Uytterhoeven wrote: > Hi Grygorii, > > On Wed, Dec 6, 2017 at 6:37 PM, Grygorii Strashko > wrote: > > Revert changes introduced by commit f0fbe7bce733 ("gpio: Move irqdomain > > into struct gpio_irq_chip") as they are not

[PATCH] vhost: remove unused lock check flag in vhost_dev_cleanup()

2017-12-24 Thread 夷则(Caspar)
In commit ea5d404655ba ("vhost: fix release path lockdep checks"), Michael added a flag to check whether we should hold a lock in vhost_dev_cleanup(), however, in commit 47283bef7ed3 ("vhost: move memory pointer to VQs"), RCU operations have been replaced by mutex, we can remove the no-longer-used

Re: thinkpad x60: sound problems in 4.15-rc1 was Re: thinkpad x60: sound problems in 4.14.0-next-20171114

2017-12-24 Thread vcaputo
On Sat, Dec 23, 2017 at 09:33:37PM +0100, Thomas Gleixner wrote: > On Sat, 23 Dec 2017, vcap...@pengaru.com wrote: > > On Fri, Dec 22, 2017 at 09:37:01PM -0800, vcap...@pengaru.com wrote: > > Added the following instrumentation: > > > > diff --git a/arch/x86/kernel/apic/vector.c

Re: [PATCH] gpio: gpio-reg: fix build

2017-12-24 Thread Russell King - ARM Linux
On Sun, Dec 24, 2017 at 06:44:07PM +0100, Linus Walleij wrote: > On Sun, Dec 24, 2017 at 4:56 PM, Russell King - ARM Linux > wrote: > > > But the main thing is, this needs to be fixed - it's been causing build > > errors for those of us carrying patches to use it, and

[PATCH] scsi: imm: Replace mdelay with msleep in imm_init

2017-12-24 Thread Jia-Ju Bai
imm_init is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with msleep, to reduce busy wait. Signed-off-by: Jia-Ju Bai --- drivers/scsi/imm.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: PROBLEM: consolidated IDT invalidation causes kexec to reboot

2017-12-24 Thread Ingo Molnar
* Alexandru Chirvasitu wrote: > Thank you for the swift reply! > > On Sat, Dec 23, 2017 at 07:30:21PM -0800, Linus Torvalds wrote: > > On Sat, Dec 23, 2017 at 5:44 PM, Alexandru Chirvasitu > > wrote: > > > > > > For testing purposes, I've altered

Build regressions/improvements in v4.15-rc5

2017-12-24 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.15-rc5[1] compared to v4.14[2]. Summarized: - build errors: +3/-6 - build warnings: +1525/-786 JFYI, when comparing v4.15-rc5[1] to v4.15-rc4[3], the summaries are: - build errors: +2/-0 - build warnings: +1013/-779

Re: Build regressions/improvements in v4.15-rc5

2017-12-24 Thread Geert Uytterhoeven
On Sun, Dec 24, 2017 at 3:40 PM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.15-rc5[1] to v4.15-rc4[3], the summaries are: > - build errors: +2/-0 sh/randconfig noise > [1] > http://kisskb.ellerman.id.au/kisskb/head/464e1d5f23cca236b930ef068c328a64cab78fb1/ >

Re: [PATCH] gpio: gpio-reg: fix build

2017-12-24 Thread Linus Walleij
On Sun, Dec 24, 2017 at 4:56 PM, Russell King - ARM Linux wrote: > But the main thing is, this needs to be fixed - it's been causing build > errors for those of us carrying patches to use it, and thereby destroying > the usefulness of nightly testing. I'm sorry, it's my

[PATCH] x86: xen: remove the use of VLAIS

2017-12-24 Thread Nick Desaulniers
Variable Length Arrays In Structs (VLAIS) is not supported by Clang, and frowned upon by others. https://lkml.org/lkml/2013/9/23/500 Here, the VLAIS was used because the size of the bitmap returned from xen_mc_entry() depended on possibly (based on kernel configuration) runtime sized data.

[PATCH] staging: rtl8192u: Replace mdelay with msleep in rtl8192_usb_probe

2017-12-24 Thread Jia-Ju Bai
rtl8192_usb_probe is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with msleep, to avoid busy wait. Signed-off-by: Jia-Ju Bai --- drivers/staging/rtl8192u/r8192U_core.c |2 +- 1 file changed, 1 insertion(+), 1

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. 4.12 is ok. 4.13 is ok. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures)

[PATCH] Coccinelle: kzalloc-simple: Add all zero allocating functions

2017-12-24 Thread Himanshu Jha
There are many instances where memory is allocated using regular allocator functions immediately followed by setting the allocated memory to 0 value using memset. We already have zero memory allocator functions to set the memory to 0 value instead of manually setting it using memset. Therefore,

Re: [linux-sunxi] [PATCH v3] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2017-12-24 Thread Icenowy Zheng
在 2017年12月24日星期日 CST 下午4:02:08,Priit Laes 写道: > On Sun, Dec 24, 2017 at 01:40:29PM +0800, Icenowy Zheng wrote: > > Banana Pi M2 Zero board is a H2+-based board by Sinovoip, with a form > > factor and GPIO holes similar to Raspberry Pi Zero. > > > > It features: > > - Allwinner H2+ SoC > > -

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

2017-12-24 Thread Pavel Machek
On Sun 2017-12-24 13:04:31, Rafael J. Wysocki wrote: > On Sunday, December 24, 2017 12:49:21 PM CET Pavel Machek wrote: > > 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

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

2017-12-24 Thread Pavel Machek
On Sun 2017-12-24 16:22:32, Pavel Machek wrote: > On Sun 2017-12-24 13:04:31, Rafael J. Wysocki wrote: > > On Sunday, December 24, 2017 12:49:21 PM CET Pavel Machek wrote: > > > Hi! > > > > > > 4.15-rcX is broken, but that had other problems so lets not go there. > > > > > > 4.14 is broken. > >

Re: [PATCH] gpio: gpio-reg: fix build

2017-12-24 Thread Geert Uytterhoeven
Hi Grygorii, On Wed, Dec 6, 2017 at 6:37 PM, Grygorii Strashko wrote: > Revert changes introduced by commit f0fbe7bce733 ("gpio: Move irqdomain > into struct gpio_irq_chip") as they are not aplicable to this driver. > > Cc: Russell King - ARM Linux

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

[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,

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)

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

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: [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

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'

  1   2   3   >