Re: [PATCH] staging, android: remove lowmemory killer from the tree

2017-02-24 Thread Michal Hocko
On Fri 24-02-17 13:19:46, peter enderborg wrote: > On 02/23/2017 09:36 PM, Martijn Coenen wrote: > > On Thu, Feb 23, 2017 at 9:24 PM, John Stultz wrote: > >> So, just for context, Android does have a userland LMK daemon (using > >> the mempressure notifiers) as you mentioned, but unfortunately I'm

Re: [PATCH 4/5] tpm_tis_spi: Remove limitation of transfers to MAX_SPI_FRAMESIZE bytes

2017-02-24 Thread Jarkko Sakkinen
On Thu, Feb 16, 2017 at 04:08:25PM +, Peter Huewe wrote: > Limiting transfers to MAX_SPI_FRAMESIZE was not expected by the upper > layers, as tpm_tis has no such limitation. Add a loop to hide that > limitation. > > Cc: > Fixes: 0edbfea537d1 ("tpm/tpm_tis_spi: Add support for spi phy") > Sign

Re: [PATCH] crypto: brcm: fix spelling mistake: "genereate" -> "generate"

2017-02-24 Thread Steve Lin
Looks good, thanks! Acked-by: Steve Lin On Wed, Feb 22, 2017 at 6:51 PM, Colin King wrote: > From: Colin Ian King > > trivial fix to spelling mistake in pr_err message > > Signed-off-by: Colin Ian King > --- > drivers/crypto/bcm/util.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51

2017-02-24 Thread Pau Espin Pedrol
>> Dmitry, do we have special events for AC (un)plug? What is the best >> approach in your opinion? > > Not route them through input as they not input events would be the best. > Is my patch good enough for this or would you recommend doing it another way? > I'd look into hooking up power_supply c

Re: [PATCH v2 6/7] tpm: expose spaces via a device link /dev/tpms

2017-02-24 Thread James Bottomley
On Thu, 2017-02-23 at 11:09 +0200, Jarkko Sakkinen wrote: > On Thu, Feb 16, 2017 at 09:25:19PM +0200, Jarkko Sakkinen wrote: > > From: James Bottomley > > > > Currently the tpm spaces are not exposed to userspace. Make this > > exposure via a separate device, which can now be opened multiple >

[PATCH v4 12/23] drm/rockchip: dw-mipi-dsi: allow commands in panel_disable

2017-02-24 Thread John Keeping
Panel drivers may want to sent commands during the disable function, for example MIPI_DCS_SET_DISPLAY_OFF before the video signal ends. In order to send commands we need to write to registers, so pclk must be enabled. While changing this, remove the unnecessary code after the panel unprepare call

[PATCH v4 23/23] drm/rockchip: dw-mipi-dsi: add reset control

2017-02-24 Thread John Keeping
In order to fully reset the state of the MIPI controller we must assert this reset. This is slightly more complicated than it could be in order to maintain compatibility with device trees that do not specify the reset property. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v4: - Fix

[PATCH v4 22/23] drm/rockchip: dw-mipi-dsi: support non-burst modes

2017-02-24 Thread John Keeping
Signed-off-by: John Keeping Reviewed-by: Chris Zhong Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by v3: - Add Chris' Reviewed-by Unchanged in v2 --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH v4 16/23] drm/rockchip: dw-mipi-dsi: properly configure PHY timing

2017-02-24 Thread John Keeping
These values are specified as constant time periods but the PHY configuration is in terms of the current lane byte clock so using constant values guarantees that the timings will be outside the specification with some display configurations. Derive the necessary configuration from the byte clock i

[PATCH v4 10/23] drm/rockchip: dw-mipi-dsi: don't assume buffer is aligned

2017-02-24 Thread John Keeping
By dereferencing the MIPI command buffer as a u32* we rely on it being correctly aligned on ARM, but this may not be the case. Copy it into a stack variable that will be correctly aligned. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by Unchanged in v2 ---

[PATCH v4 04/23] drm/rockchip: dw-mipi-dsi: fix command header writes

2017-02-24 Thread John Keeping
In a couple of places here we use "val" for the value that is about to be written to a register but then reuse the same variable for the value of a status register before we get around to writing it. Rename the value to be written to so that we write the value we intend to and not what we have jus

[PATCH v4 01/23] drm/rockchip: dw-mipi-dsi: don't configure hardware in mode_set for MIPI

2017-02-24 Thread John Keeping
With atomic modesetting the hardware will be powered off when the mode_set function is called. We should configure the hardware in the enable function, which is the atomic version of "commit" so let's use the enable hook rather than commit while we're at it. Signed-off-by: John Keeping Reviewed-

Re: [PATCH 2/5] tpm_tis_spi: Abort transfer when too many wait states are signaled

2017-02-24 Thread Jarkko Sakkinen
On Thu, Feb 16, 2017 at 04:08:23PM +, Peter Huewe wrote: > Abort the transfer with ETIMEDOUT when the TPM signals more than > TPM_RETRY wait states. Continuing with the transfer in this state > will only lead to arbitrary failures in other parts of the code. > > Cc: > Fixes: 0edbfea537d1 ("tp

[PATCH v4 14/23] drm/rockchip: dw-mipi-dsi: ensure PHY is reset

2017-02-24 Thread John Keeping
Also don't power up the DSI host at this point since this is not necessary in order to configure the PHY and we do so later when selecting video or command mode. Signed-off-by: John Keeping Reviewed-by: Chris Zhong Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by v3: - Add Chris' Reviewe

[PATCH v4 21/23] drm/rockchip: dw-mipi-dsi: defer probe if panel is not loaded

2017-02-24 Thread John Keeping
This ensures that the output resolution is known before fbcon loads. mipi_dsi_host_register() is moved above dw_mipi_dsi_register() to simplify error cleanup since the order of these operations does not matter. Signed-off-by: John Keeping --- v4: - Use "return 0" to separate normal code flow from

[PATCH v4 06/23] drm/rockchip: dw-mipi-dsi: avoid out-of-bounds read on tx_buf

2017-02-24 Thread John Keeping
As a side-effect of this, encode the endianness explicitly rather than casting a u16. Signed-off-by: John Keeping --- v4: - Introduce "data" variable to avoid confusion around the masking in GEN_HDATA() v3: - Add Chris' Reviewed-by Unchanged in v2 --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 1

[PATCH v4 05/23] drm/rockchip: dw-mipi-dsi: fix generic packet status check

2017-02-24 Thread John Keeping
We want to check that both the GEN_CMD_EMPTY and GEN_PLD_W_EMPTY bits are set so we can't just check "val & mask" because that will be true if either bit is set. Signed-off-by: John Keeping Reviewed-by: Chris Zhong Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by v3: - Add Chris' Reviewe

[PATCH v4 03/23] drm/rockchip: dw-mipi-dsi: remove mode_set hook

2017-02-24 Thread John Keeping
This is not needed since we can access the mode via the CRTC from the enable hook. Also remove the "mode" field that is no longer used. Signed-off-by: John Keeping Reviewed-by: Chris Zhong Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by v3: - Add Chris' Reviewed-by New in v2 --- drive

[PATCH v4 19/23] drm/rockchip: dw-mipi-dsi: use positive check for N{H,V}SYNC

2017-02-24 Thread John Keeping
This matches other drivers. Signed-off-by: John Keeping Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by Unchanged in v3 Unchanged in v2 --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi

[PATCH v4 17/23] drm/rockchip: dw-mipi-dsi: improve PLL configuration

2017-02-24 Thread John Keeping
The multiplication ratio for the PLL is required to be even due to the use of a "by 2 pre-scaler". Currently we are likely to end up with an odd multiplier even though there is an equivalent set of parameters with an even multiplier. For example, using the 324MHz bit rate with a reference clock o

[PATCH v4 08/23] drm/rockchip: dw-mipi-dsi: respect message flags

2017-02-24 Thread John Keeping
Instead of always sending commands in LP mode, respect the MIPI_DSI_MSG_USE_LPM flag to decide how to send each message. Also request acks if MIPI_DSI_MSG_REQ_ACK is set. Signed-off-by: John Keeping Reviewed-by: Chris Zhong Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by v3: - Add Chri

[PATCH v4 18/23] drm/rockchip: dw-mipi-dsi: use specific poll helper

2017-02-24 Thread John Keeping
As the documentation for readx_poll_timeout says, we want to use the specialized macro for readl rather than using the generic version directly. Signed-off-by: John Keeping Reviewed-by: Chris Zhong Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by v3: - Add Chris' Reviewed-by Unchanged in

[PATCH v4 02/23] drm/rockchip: dw-mipi-dsi: pass mode in where needed

2017-02-24 Thread John Keeping
This shows that we only use the mode from the enable function and prepares us to remove the "mode" field and the mode_set hook in the next commit. Signed-off-by: John Keeping Reviewed-by: Chris Zhong Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by v3: - Add Chris' Reviewed-by New in v2

[PATCH v4 13/23] drm/rockchip: dw-mipi-dsi: fix escape clock rate

2017-02-24 Thread John Keeping
This clock rate is derived from the PHY PLL, so it should be calculated dynamically. This calculation is the same as that used by the vendor kernel and ensures that the escape clock runs at <20MHz as required by the MIPI specification. Signed-off-by: John Keeping Reviewed-by: Chris Zhong Review

[PATCH v4 11/23] drm/rockchip: dw-mipi-dsi: prepare panel after phy init

2017-02-24 Thread John Keeping
Some panels need to be configured with commands sent over the MIPI link, which they will do in the prepare hook. Call this after the PHY has been initialized so that we are able to send commands to the panel. Signed-off-by: John Keeping Reviewed-by: Chris Zhong Reviewed-by: Sean Paul --- v4: -

[PATCH v4 07/23] drm/rockchip: dw-mipi-dsi: include bad value in error message

2017-02-24 Thread John Keeping
As an aid to debugging. Signed-off-by: John Keeping Reviewed-by: Chris Zhong Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by v3: - Add Chris' Reviewed-by Unchanged in v2 --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH v4 15/23] drm/rockchip: dw-mipi-dsi: configure PHY before enabling

2017-02-24 Thread John Keeping
The bias, bandgap and PLL should all be configured before we enable them. Signed-off-by: John Keeping Reviewed-by: Sean Paul --- v4: - Add Sean's Reviewed-by v3: - Squash together two patches that both affect initialization order of the PHY Unchanged in v2 --- drivers/gpu/drm/rockchip/dw-mipi

[PATCH v4 00/23] drm/rockchip: MIPI fixes & improvements

2017-02-24 Thread John Keeping
This version is mostly small changes in response to review comments from Sean and Chris, the details are in the individual patches. I decided to drop the final patch which adds support for MIPI read commands because I'm not using that feature now and I can't easily test it. It's on the list if an

[PATCH v4 09/23] drm/rockchip: dw-mipi-dsi: only request HS clock when required

2017-02-24 Thread John Keeping
Requesting the HS clock from the PHY before we initialize it causes an invalid signal to be sent out since the input clock is not yet configured. The PHY databook suggests only asserting this signal when performing HS transfers, so let's do that. Signed-off-by: John Keeping Reviewed-by: Chris Zh

[PATCH v4 20/23] drm/rockchip: vop: test for P{H,V}SYNC

2017-02-24 Thread John Keeping
When connected to the MIPI DSI output, we need to use N{H,V}SYNC for the internal connection but these flags are meaningless for DSI panels. Switch the test so that we do not set the P{H,V}SYNC bits unless the mode requires it. Signed-off-by: John Keeping Reviewed-by: Mark Yao Reviewed-by: Sean

Re: [tpmdd-devel] [PATCH v2 6/7] tpm: expose spaces via a device link /dev/tpms

2017-02-24 Thread James Bottomley
On Fri, 2017-02-24 at 12:29 +0530, Nayna wrote: > > On 02/17/2017 12:55 AM, Jarkko Sakkinen wrote: > > From: James Bottomley > > > > Currently the tpm spaces are not exposed to userspace. Make this > > exposure via a separate device, which can now be opened multiple > > times because each read

Re: [PATCH 1/5] tpm_tis_spi: Use single function to transfer data

2017-02-24 Thread Jarkko Sakkinen
On Thu, Feb 16, 2017 at 04:08:22PM +, Peter Huewe wrote: > The algorithm for sending data to the TPM is mostly identical to the > algorithm for receiving data from the TPM, so a single function is > sufficient to handle both cases. > > This is a prequisite for all the other fixes, so we don't

Re: [PATCH v2 4/7] tpm: infrastructure for TPM spaces

2017-02-24 Thread James Bottomley
On Thu, 2017-02-16 at 21:25 +0200, Jarkko Sakkinen wrote: > Added an ability to virtualize TPM commands into an isolated context > that we call a TPM space because the word context is already heavily > used in the TPM specification. Both the handle areas and bodies > (where > necessary) are virtual

Re: [PATCH v4 05/24] openrisc: head: refactor out tlb flush into it's own function

2017-02-24 Thread Jonas Bonn
On 02/24/2017 11:54 AM, Stefan Kristiansson wrote: eOn Fri, Feb 24, 2017 at 10:57:19AM +0100, Jonas Bonn wrote: On 02/24/2017 05:32 AM, Stafford Horne wrote: From: Stefan Kristiansson This brings it inline with the other setup oprations done like the cache enables _ic_enable and _dc_enable.

Re: [PATCH 4/5] KVM: add __kvm_request_needs_mb

2017-02-24 Thread Andrew Jones
On Fri, Feb 24, 2017 at 12:34:07PM +0100, Christoffer Dall wrote: > On Wed, Feb 22, 2017 at 04:17:05PM +0100, Radim Krčmář wrote: > > [Oops, the end of this thread got dragged into a mark-as-read spree ...] > > > > 2017-02-17 11:13+0100, David Hildenbrand: > > >>> This is really complicated stuff,

Re: [PATCH] staging: bcm2835: Fix a memory leak in error handling path

2017-02-24 Thread Stefan Wahren
Hi Christophe, Am 19.02.2017 um 11:34 schrieb Christophe JAILLET: If 'kzalloc()' fails, we should release resources allocated so far, just as done in all other cases in this function. Signed-off-by: Christophe JAILLET --- Not sure that the error handling path is correct. Is 'gdev[0]' freed? Sh

Fast Loans

2017-02-24 Thread Service Loans
Apply for a loan at 3% reply to this Email for more Info

[PATCH v2 2/2] extcon: int3496: Add GPIO ACPI mapping table

2017-02-24 Thread Andy Shevchenko
In order to make GPIO ACPI library stricter prepare users of gpiod_get_index() to correctly behave when there no mapping is provided by firmware. Here we add explicit mapping between _CRS GpioIo() resources and their names used in the driver. Signed-off-by: Andy Shevchenko --- Documentation/ext

[PATCH v2 1/2] extcon: int3496: Rename GPIO pins in accordance with binding

2017-02-24 Thread Andy Shevchenko
Update GPIO pin names in extcon-intel-int3496.c driver to follow the existing extcon binding. Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon-intel-int3496.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/extcon/extcon-intel-int3496.c b/drivers/extcon/e

[PATCH] f2fs: add F2FS_DIRTY_DATA to has_not_enough_free_secs and need_SSR

2017-02-24 Thread Yunlong Song
Currently, it miss the part of F2FS_DIRTY_DATA to check whether there is enough free segments for the "reserved_sections" originally set in the mkfs.f2fs. As a result, it will use the reserved_sections part to write dirty data, and has to do gc_more to free a lot of sections together next time. Thi

[PATCH net] rxrpc: Fix an assertion in rxrpc_read()

2017-02-24 Thread David Howells
From: Marc Dionne In the rxrpc_read() function, which allows a user to read the contents of a key, we miscalculate the expected length of an encoded rxkad token by not taking into account the key length. However, the data is stored later anyway with an ENCODE_DATA() call - and an assertion failu

[PATCH] cpuidle: menu: Avoid taking spinlock for accessing QoS values

2017-02-24 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit 9908859acaa9 (cpuidle/menu: add per CPU PM QoS resume latency consideration) the cpuidle menu governor calls dev_pm_qos_read_value() on CPU devices to read the current resume latency QoS constraint values for them. That function takes a spinlock to prevent th

Re: [PATCH 3/3] mwifiex: wake system up when receives a wake irq

2017-02-24 Thread jeffy
Hi Kalle, On 02/24/2017 07:01 PM, Kalle Valo wrote: Jeffy Chen writes: Currrently we are disabling this wake irq after receiving it. If this happens before we finish suspend and the pm event check is disabled, the system will continue suspending, and this irq would not work again. We may nee

Quick Loans mail.customs.go.id

2017-02-24 Thread Service Loans
Apply for a loan at 3% reply to this Email for more Info

Re: [PATCH] staging, android: remove lowmemory killer from the tree

2017-02-24 Thread peter enderborg
On 02/23/2017 09:36 PM, Martijn Coenen wrote: > On Thu, Feb 23, 2017 at 9:24 PM, John Stultz wrote: >> So, just for context, Android does have a userland LMK daemon (using >> the mempressure notifiers) as you mentioned, but unfortunately I'm >> unaware of any devices that ship with that implementa

Re: [PATCH v2] acpi: acpica: fix acpi operand cache leak

2017-02-24 Thread Rafael J. Wysocki
On Friday, February 24, 2017 09:15:52 PM Seunghun Han wrote: > Hi, Rafael. > > I added my opinion below. > > 2017-02-24 20:50 GMT+09:00 Rafael J. Wysocki : > > On Friday, February 24, 2017 08:52:42 PM Seunghun Han wrote: > >> Hi, Lv Zheng. > >> > >> I added my handcrafted ACPI table under your re

Re: [PATCH v1 2/3] extcon: int3496: Rename GPIO pins in accordance with binding

2017-02-24 Thread Andy Shevchenko
On Fri, Feb 24, 2017 at 3:17 AM, Chanwoo Choi wrote: > On 2017년 02월 23일 19:31, Andy Shevchenko wrote: >> First of all, add an optional binding for external muxer which might be >> used. >> --- a/Documentation/devicetree/bindings/extcon/extcon-usb-gpio.txt >> +++ b/Documentation/devicetree/binding

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Paolo Bonzini
On 24/02/2017 12:50, Marcelo Tosatti wrote: >>> >>> On all other cpufreq implementations, these boundaries still need to >>> be set. Then, a "governor" must be selected. Such a "governor" decides >>> what speed the processor shall run within the boundaries. One such >>> "governor" is the "userspa

Re: [PATCH v2] acpi: acpica: fix acpi operand cache leak

2017-02-24 Thread Seunghun Han
Hi, Rafael. I added my opinion below. 2017-02-24 20:50 GMT+09:00 Rafael J. Wysocki : > On Friday, February 24, 2017 08:52:42 PM Seunghun Han wrote: >> Hi, Lv Zheng. >> >> I added my handcrafted ACPI table under your request, because >> "acpidump -c on" and "acpidump -c off" doesn't work. >> >> 20

Re: [PATCH v2] iommu: iova: Consolidate code for adding new node to iovad domain rbtree

2017-02-24 Thread Robin Murphy
On 24/02/17 11:13, Marek Szyprowski wrote: > This patch consolidates almost the same code used in iova_insert_rbtree() > and __alloc_and_insert_iova_range() functions. While touching this code, > replace BUG() with WARN_ON(1) to avoid taking down the whole system in > case of corrupted iova tree or

Re: [PATCH v7 1/8] perf: add PERF_RECORD_NAMESPACES to include namespaces related info

2017-02-24 Thread Peter Zijlstra
On Tue, Feb 21, 2017 at 07:31:23PM +0530, Hari Bathini wrote: > With the advert of container technologies like docker, that depend > on namespaces for isolation, there is a need for tracing support for > namespaces. This patch introduces new PERF_RECORD_NAMESPACES event > for recording namespaces r

[PATCH 3.16 08/12] tmpfs: clear S_ISGID when setting posix ACLs

2017-02-24 Thread Ben Hutchings
3.16.41-rc1 review patch. If anyone has any objections, please let me know. -- From: Gu Zheng commit 497de07d89c1410d76a15bec2bb41f24a2a89f31 upstream. This change was missed the tmpfs modification in In CVE-2016-7097 commit 073931017b49 ("posix_acl: Clear SGID bit when settin

[PATCH 3.16 11/12] dccp: fix freeing skb too early for IPV6_RECVPKTINFO

2017-02-24 Thread Ben Hutchings
3.16.41-rc1 review patch. If anyone has any objections, please let me know. -- From: Andrey Konovalov commit 5edabca9d4cff7f1f2b68f0bac55ef99d9798ba4 upstream. In the current DCCP implementation an skb for a DCCP_PKT_REQUEST packet is forcibly freed via __kfree_skb in dccp_rcv

[PATCH 3.16 10/12] ipv4: keep skb->dst around in presence of IP options

2017-02-24 Thread Ben Hutchings
3.16.41-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 34b2cef20f19c87999fff3da4071e66937db9644 upstream. Andrey Konovalov got crashes in __ip_options_echo() when a NULL skb->dst is accessed. ipv4_pktinfo_prepare() should not

[PATCH 3.16 09/12] ip6_gre: fix ip6gre_err() invalid reads

2017-02-24 Thread Ben Hutchings
3.16.41-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 7892032cfe67f4bde6fc2ee967e45a8fbaf33756 upstream. Andrey Konovalov reported out of bound accesses in ip6gre_err() If GRE flags contains GRE_KEY, the following expression

Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode

2017-02-24 Thread Roger Quadros
+Chanwoo Hi Vivek, On 23/02/17 10:34, Vivek Gautam wrote: > > > On 02/16/2017 06:36 PM, Roger Quadros wrote: >> dra7 OTG core limits the host controller to USB2.0 (high-speed) mode >> when we're operating in dual-role. >> >> We work around that by bypassing the OTG core and reading the >> extco

Re: [PATCH net-next v3 0/4] net: mvneta: improve rx/tx performance

2017-02-24 Thread Jisheng Zhang
Hi David, Marcin, On Tue, 21 Feb 2017 11:16:02 -0500 David Miller wrote: > From: Jisheng Zhang > Date: Tue, 21 Feb 2017 12:37:40 +0800 > > > Thanks for your review. > > > > The measurement is simple: record how much time we spent in mvneta_rx_swbm() > > for receiving 1GB data, something as bel

Re: [PATCH] f2fs: change the codes of checking CP_CRC_RECOVERY_FLAG to macro

2017-02-24 Thread Yunlong Song
On 2017/2/24 19:37, Chao Yu wrote: > On 2017/2/24 19:11, Yunlong Song wrote: >> I think we do not need to care about the CP_CRC_RECOVERY_FLAG status of old >> image, I mean we >> do not need to check the already-been-written node footer in the image, what >> we care about is the >> on-going-to-wr

Re: [PATCH v2] acpi: acpica: fix acpi operand cache leak

2017-02-24 Thread Rafael J. Wysocki
On Friday, February 24, 2017 08:52:42 PM Seunghun Han wrote: > Hi, Lv Zheng. > > I added my handcrafted ACPI table under your request, because > "acpidump -c on" and "acpidump -c off" doesn't work. > > 2017-02-21 19:36 GMT+09:00 Seunghun Han : > > Hello, > > > > I attached the test results below,

Re: [PATCH 4/5] tpm_tis_spi: Remove limitation of transfers to MAX_SPI_FRAMESIZE bytes

2017-02-24 Thread Jarkko Sakkinen
On Thu, Feb 16, 2017 at 04:08:25PM +, Peter Huewe wrote: > Limiting transfers to MAX_SPI_FRAMESIZE was not expected by the upper > layers, as tpm_tis has no such limitation. Add a loop to hide that > limitation. > > Cc: > Fixes: 0edbfea537d1 ("tpm/tpm_tis_spi: Add support for spi phy") > Sign

Re: [PATCH v2] acpi: acpica: fix acpi operand cache leak

2017-02-24 Thread Seunghun Han
Hi, Lv Zheng. I added my handcrafted ACPI table under your request, because "acpidump -c on" and "acpidump -c off" doesn't work. 2017-02-21 19:36 GMT+09:00 Seunghun Han : > Hello, > > I attached the test results below, > > 2017-02-21 9:53 GMT+09:00 Rowafael J. Wysocki : >> On Tuesday, February 21

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Marcelo Tosatti
On Fri, Feb 24, 2017 at 10:18:59AM +0100, Paolo Bonzini wrote: > > > On 24/02/2017 00:19, Marcelo Tosatti wrote: > >>> i.e. our feature implies userspace tasks pinned to isolated vCPUs. > > This is how cpufreq-userspace works: > > > > 2.2 Governor > > > > > > On all other cpufreq i

Re: [PATCH v3 4/4] iio: accel: adxl345: Add SPI support

2017-02-24 Thread Andy Shevchenko
On Fri, Feb 24, 2017 at 11:22 AM, Lars-Peter Clausen wrote: > On 02/24/2017 10:12 AM, Eva Rachel Retuya wrote: >> On Thu, Feb 23, 2017 at 06:58:12PM +0200, Andy Shevchenko wrote: >>> On Thu, Feb 23, 2017 at 6:47 PM, Lars-Peter Clausen wrote: On 02/23/2017 05:43 PM, Andy Shevchenko wrote: >>>

RE: Re: Re: [PATCH] Input: evdev: fix queueing of SYN_DROPPED event for EVIOCG[type] IOCTL case

2017-02-24 Thread Aniroop Mathur
> Hi > > On Tue, Jan 31, 2017 at 5:09 PM, Aniroop Mathur wrote: >> On Sun, Jan 22, 2017 at 6:45 PM, David Herrmann >> wrote: >>> On Thu, Nov 24, 2016 at 9:11 PM, Aniroop Mathur >>> wrote: continue; } else if (head != i) {

Re: [PATCH v2 1/3] mtd: nand: Cleanup/rework the atmel_nand driver

2017-02-24 Thread Andy Shevchenko
On Fri, Feb 24, 2017 at 11:51 AM, Alexandre Belloni wrote: > On 24/02/2017 at 10:04:35 +0100, Hans-Christian Noren Egtvedt wrote: >> Around Fri 24 Feb 2017 09:55:09 +0100 or thereabout, Boris Brezillon wrote: >> > On Fri, 24 Feb 2017 09:52:09 +0100 >> > Hans-Christian Noren Egtvedt wrote: > I th

Re: [PATCH] x86: Implement __WARN using UD0

2017-02-24 Thread Peter Zijlstra
On Fri, Feb 24, 2017 at 01:53:27AM -0800, H. Peter Anvin wrote: > On 02/24/17 01:15, Ingo Molnar wrote: > > > > * h...@zytor.com wrote: > > > >> Incidentally, as an alternative to a #UD, int $9 could be an alternative > >> (exception vector 9 was discontinued with the 486.) > > > > With thousa

Re: [PATCH] x86: Implement __WARN using UD0

2017-02-24 Thread H. Peter Anvin
On 02/24/17 01:46, Borislav Petkov wrote: > On Fri, Feb 24, 2017 at 10:15:37AM +0100, Ingo Molnar wrote: >> With thousands of call sites a one byte opcode would be preferred, that's >> why INT3 >> is so nice. > > ICEBP is also a single-byte: F1. And should be pretty unused :) > That would make

[PATCH 4/5] mm: add force_free_pages in zap_pte_range

2017-02-24 Thread Aaron Lu
force_flush in zap_pte_range is set in the following 2 conditions: 1 When no more batches can be allocated (either due to no memory or MAX_GATHER_BATCH_COUNT has reached) to store those to-be-freed page pointers; 2 When a TLB_only flush is needed before dropping the PTE lock to avoid a race c

Re: [PATCH 3/3] f2fs: provide more chance for node and data to get ssr segment

2017-02-24 Thread Yunlong Song
Hi, Chao, Not looks good to me, since there is some case your code does not include: if type is CURSEG_HOT_DATA, and if get_victim also returns 0 for both CURSEG_HOT_DATA and CURSEG_WARM_DATA, then i will be -1 and pass to get_victim in your code. So I still suggest my original patch attached b

[PATCH 2/5] mm: parallel free pages

2017-02-24 Thread Aaron Lu
For regular processes, the time taken in its exit() path to free its used memory is not a problem. But there are heavy ones that consume several Terabytes memory and the time taken to free its memory could last more than ten minutes. To optimize this use case, a parallel free method is proposed an

[PATCH 5/5] mm: add debugfs interface for parallel free tuning

2017-02-24 Thread Aaron Lu
Make it possible to set different values for async_free_threshold and max_gather_batch_count through debugfs. With this, we can do tests for different purposes: 1 Restore vanilla kernel bahaviour for performance comparison. Set max_gather_batch_count to a value like 20 to effectively restore t

[PATCH 3/5] mm: use a dedicated workqueue for the free workers

2017-02-24 Thread Aaron Lu
Introduce a workqueue for all the free workers so that user can fine tune how many workers can be active through sysfs interface: max_active. More workers will normally lead to better performance, but too many can cause severe lock contention. Note that since the zone lock is global, the workqueue

[PATCH 1/5] mm: add tlb_flush_mmu_free_batches

2017-02-24 Thread Aaron Lu
There are two places doing page free where one is freeing pages pointed by the mmu_gather_batch in tlb_flush_mmu_free and one for the batch page itself in tlb_flush_mmu_finish. There will be yet another place in the following patch to free both the pages pointed by the mmu_gather_batches and the ba

[PATCH 0/5] mm: support parallel free of memory

2017-02-24 Thread Aaron Lu
For regular processes, the time taken in its exit() path to free its used memory is not a problem. But there are heavy ones that consume several Terabytes memory and the time taken to free its memory could last more than ten minutes. To optimize this use case, a parallel free method is proposed he

Re: [PATCH] f2fs: change the codes of checking CP_CRC_RECOVERY_FLAG to macro

2017-02-24 Thread Chao Yu
On 2017/2/24 19:11, Yunlong Song wrote: > I think we do not need to care about the CP_CRC_RECOVERY_FLAG status of old > image, I mean we > do not need to check the already-been-written node footer in the image, what > we care about is the > on-going-to-write node footer, which is used for recover

Re: [PATCH 4/5] KVM: add __kvm_request_needs_mb

2017-02-24 Thread Christoffer Dall
On Wed, Feb 22, 2017 at 04:17:05PM +0100, Radim Krčmář wrote: > [Oops, the end of this thread got dragged into a mark-as-read spree ...] > > 2017-02-17 11:13+0100, David Hildenbrand: > >>> This is really complicated stuff, and the basic reason for it (if I > >>> remember correctly) is that s390x d

[PATCH -v2] x86: Implement __WARN using UD0

2017-02-24 Thread Peter Zijlstra
By using "UD0" for WARNs we remove the function call and its possible __FILE__ and __LINE__ immediate arguments from the instruction stream. Total image size will not change much, what we win in the instrucion stream we'll loose because of the __bug_table entries. Still, saves on I$ footprint and

[PATCH v2] iommu: iova: Consolidate code for adding new node to iovad domain rbtree

2017-02-24 Thread Marek Szyprowski
This patch consolidates almost the same code used in iova_insert_rbtree() and __alloc_and_insert_iova_range() functions. While touching this code, replace BUG() with WARN_ON(1) to avoid taking down the whole system in case of corrupted iova tree or incorrect calls. Signed-off-by: Marek Szyprowski

Re: [PATCH] sched/core: include asm/paravirt.h

2017-02-24 Thread Ingo Molnar
* Arnd Bergmann wrote: > On Fri, Feb 24, 2017 at 9:31 AM, Ingo Molnar wrote: > > > > * Arnd Bergmann wrote: > > > >> On Fri, Feb 17, 2017 at 3:43 PM, Arnd Bergmann wrote: > >> > One of the headers that got removed was needed after all, depending > >> > on the configuration: > >> > > >> > kern

Re: [PATCH 2/2] Add S6 support

2017-02-24 Thread Charles Chiou
From: Charles Hi all, Ping? Does this patch has any issue need to fix? Thank you.

Re: [PATCH] f2fs: change the codes of checking CP_CRC_RECOVERY_FLAG to macro

2017-02-24 Thread Yunlong Song
I think we do not need to care about the CP_CRC_RECOVERY_FLAG status of old image, I mean we do not need to check the already-been-written node footer in the image, what we care about is the on-going-to-write node footer, which is used for recovery. If CP_CRC_RECOVERY_FLAG is defined, then __se

Re: [PATCH v2 1/2] mm/cgroup: avoid panic when init with low memory

2017-02-24 Thread Michal Hocko
Andrew, could you pick up this patch? On Thu 23-02-17 14:36:38, Laurent Dufour wrote: > The system may panic when initialisation is done when almost all the > memory is assigned to the huge pages using the kernel command line > parameter hugepage=. Panic may occur like this: > > [0.082289

Re: [PATCH 3/3] mwifiex: wake system up when receives a wake irq

2017-02-24 Thread Kalle Valo
Jeffy Chen writes: > Currrently we are disabling this wake irq after receiving it. If this > happens before we finish suspend and the pm event check is disabled, > the system will continue suspending, and this irq would not work again. > > We may need to abort system suspend to avoid that. > > Si

Re: [PATCH 1/2] Support Pegasus 3 product

2017-02-24 Thread Charles Chiou
From: Charles Hi all, Ping? Does this patch has any issue need to fix? Thank you.

Re: git email From: parsing (was Re: [GIT PULL] Staging/IIO driver patches for 4.11-rc1)

2017-02-24 Thread Geert Uytterhoeven
On Thu, Feb 23, 2017 at 7:17 AM, Jeff King wrote: > On Thu, Feb 23, 2017 at 07:04:44AM +0100, Greg KH wrote: >> > Poor Simon Sandström. >> > >> > Funnily enough, this only exists for one commit. You've got several >> > other commits from Simon that get his name right. >> > >> > What happened? >> >

[PATCH] sparc64: Fix build error in flush_tsb_user_page

2017-02-24 Thread Nitin Gupta
Patch "sparc64: Add 64K page size support" unconditionally used __flush_huge_tsb_one_entry() which is available only when hugetlb support is enabled. Another issue was incorrect TSB flushing for 64K pages in flush_tsb_user(). Signed-off-by: Nitin Gupta --- arch/sparc/mm/hugetlbpage.c | 5 +++--

Re: [PATCH v4 05/24] openrisc: head: refactor out tlb flush into it's own function

2017-02-24 Thread Stefan Kristiansson
eOn Fri, Feb 24, 2017 at 10:57:19AM +0100, Jonas Bonn wrote: > On 02/24/2017 05:32 AM, Stafford Horne wrote: > >From: Stefan Kristiansson > > > >This brings it inline with the other setup oprations done like the cache > >enables _ic_enable and _dc_enable. Also, this is going to make it > >easier

Re: [PATCH v3] arm64: Fix kernel panic() in cpu_do_switch_mm() on QDF2400

2017-02-24 Thread Will Deacon
On Thu, Feb 23, 2017 at 04:03:38PM -0600, Shanker Donthineni wrote: > The commit 38fd94b0275c 'arm64: Work around Falkor erratum 1003' has > been added to fix the hardware bug but causes a system crash. The > value of the register x1 which contains 'struct mm_struct *' should > be preserved inside

Re: [PATCH v4 07/24] openrisc: add atomic bitops

2017-02-24 Thread Peter Zijlstra
These 4 patches (7,8,9,10) look good to me. Thanks! Acked-by: Peter Zijlstra (Intel)

[PATCH v3] NTB: Add IDT 89HPESxNTx PCIe-switches support

2017-02-24 Thread Serge Semin
IDT 89HPESxNTx device series is PCIe-switches, which support Non-Transparent bridging between domains connected to the device ports. Since new NTB API exposes multi-port interface and messaging API, the IDT NT-functions can be now supported in the kernel. This driver adds the following functionalit

[PATCH] f2fs: select target segment with closer temperature in SSR mode

2017-02-24 Thread Chao Yu
In SSR mode, we can allocate target segment which has different temperature type from the type of current block, in order to avoid mixing coldest and hottest data/node as much as possible, change SSR allocation policy to select closer temperature for current block prior. Signed-off-by: Yunlong Son

[tip:core/urgent 2/2] fs/afs/flock.o: warning: objtool: afs_do_unlk()+0x0: duplicate frame pointer save

2017-02-24 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/urgent head: d1091c7fa3d52ebce4dd3f15d04155b3469b2f90 commit: d1091c7fa3d52ebce4dd3f15d04155b3469b2f90 [2/2] objtool: Improve detection of BUG() and other dead ends config: x86_64-randconfig-in0-02241553 (attached as .confi

Re: [PATCH V11 10/10] arm/arm64: KVM: add guest SEA support

2017-02-24 Thread James Morse
Hi Tyler, On 21/02/17 21:22, Tyler Baicar wrote: > Currently external aborts are unsupported by the guest abort > handling. Add handling for SEAs so that the host kernel reports > SEAs which occur in the guest kernel. > diff --git a/arch/arm/include/asm/kvm_arm.h b/arch/arm/include/asm/kvm_arm.h

Re: [PATCH 3/3] f2fs: provide more chance for node and data to get ssr segment

2017-02-24 Thread Chao Yu
On 2017/2/24 17:19, Yunlong Song wrote: > Hi Jaegeuk and Chao, > > How about the question I pointed out in last mail: > Why not take "neighboring temperature" for ssr? For example, if type == > CURSEG_COLD_DATA, > the new patch selects CURSEG_HOT_DATA first, why not select > CURSEG_W

[PATCH 1/4] platform/x86: intel-hid: simplify enabling/disabling HID events

2017-02-24 Thread Michał Kępień
ACPI method HDSM takes a single integer argument. Use acpi_execute_simple_method() instead of acpi_evaluate_object() for calling that ACPI method to simplify code and reduce the number of local variables inside intel_hid_set_enable(). Signed-off-by: Michał Kępień --- drivers/platform/x86/intel-

[PATCH 2/4] platform/x86: intel-hid: make intel_hid_set_enable() take a boolean argument

2017-02-24 Thread Michał Kępień
As the integer value passed to intel_hid_set_enable() is always explicitly passed and is used solely as a boolean value, make it a bool. Signed-off-by: Michał Kępień --- drivers/platform/x86/intel-hid.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/platfo

[PATCH 3/4] platform/x86: intel-hid: use devm_input_allocate_device() for HID events input device

2017-02-24 Thread Michał Kępień
intel_hid_input_setup() is only called from the platform driver's .probe callback. Use the devm variant of input_allocate_device() for allocating memory for the HID events input device in order to simplify two error paths and get rid of intel_hid_input_destroy(). Signed-off-by: Michał Kępień ---

[PATCH 4/4] platform/x86: intel-hid: remove redundant set_bit() call

2017-02-24 Thread Michał Kępień
Remove redundant set_bit() call for KEY_RFKILL as it is already made by sparse_keymap_setup() due to KEY_RFKILL being assigned to event code 8 in intel_hid_keymap. Signed-off-by: Michał Kępień --- drivers/platform/x86/intel-hid.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/platfor

[PATCH 0/4] Improve intel-hid's self-consistency

2017-02-24 Thread Michał Kępień
Commit 2cfa4b311acc ("platform/x86: intel-hid: Support 5 button array") contains some coding style cleanups compared to the code it was based on. This patch series "backports" these cleanups to the rest of the driver in order to make it more self-consistent and removes a redundant set_bit() call a

Re: [PATCH] ASoC: atmel-classd: fix audio clock rate

2017-02-24 Thread Nicolas Ferre
Le 24/02/2017 à 08:10, Songjun Wu a écrit : > Fix the audio clock rate according to the datasheet. > > Reported-by: Dushara Jayasinghe > Signed-off-by: Songjun Wu Yes, for sure ;-) But with these tags: Fixes: e0a25b6d1862 ("ASoC: atmel-classd: add the Audio Class D Amplifier") Cc: # 4.4+ Ack

<    1   2   3   4   5   6   7   8   >