Re: [PATCH v2] mmc: dw_mmc: Fix coding style issues

2015-08-05 Thread Jaehoon Chung
Hi, Shawn. Applied this patch at my dw-mmc tree. I will request pull on this weekend. Thanks a lot! Best Regards, Jaehoon Chung On 08/03/2015 04:07 PM, Shawn Lin wrote: > This patch fixes the following issues reported by checkpatch.pl: > - use -EINVAL instead of -ENOSYS, to fix warning message:

Re: [PATCH] mmc: dw_mmc: fix pio mode when internal dmac is enabled

2015-08-05 Thread Jaehoon Chung
Hi, Heiko. Applied this patch at my dw-mmc tree. I will request pull on this weekend. Thanks a lot! Best Regards, Jaehoon Chung On 08/04/2015 12:04 AM, Heiko Stübner wrote: > The dw_mci_init_dma() may decide to not use dma, but pio instead, caused > by things like wrong dma settings in the syste

Re: [PATCH 1/4] ASN.1: Fix handling of CHOICE in ASN.1 compiler

2015-08-05 Thread James Morris
On Wed, 5 Aug 2015, David Howells wrote: > Fix the handling of CHOICE types in the ASN.1 compiler to make SEQUENCE and > SET elements in a CHOICE be correctly rendered as skippable and conditional > as appropriate. What are the security implications of these bugs? It's pretty late in the -rc cyc

Re: [PATCH v4 1/3] dt-binding: spi: Mediatek: Document devicetree bindings for spi bus

2015-08-05 Thread leilk liu
On Tue, 2015-08-04 at 18:42 +0100, Mark Brown wrote: > On Wed, Jul 29, 2015 at 07:04:32PM +0800, Leilk Liu wrote: > > Signed-off-by: Leilk Liu > > Please use subject lines reflecting the style for the subsystem so > people can spot if patches are relevant to them. > OK, I will change the title

Re: [PATCH v3] PCI: Only enable IO window if supported

2015-08-05 Thread Guenter Roeck
On 08/05/2015 06:14 PM, Yinghai Lu wrote: On Thu, Jul 30, 2015 at 7:15 PM, Guenter Roeck wrote: The PCI subsystem always assumes that I/O is supported on PCIe bridges and tries to assign an I/O window to each child bus even if that is not the case. This may result in messages such as: pcie

Re: regression introduced by "block: Add support for DAX reads/writes to block devices"

2015-08-05 Thread Linda Knippers
On 08/05/2015 06:01 PM, Dave Chinner wrote: > On Wed, Aug 05, 2015 at 04:19:08PM -0400, Jeff Moyer wrote: >> Hi, Matthew, >> >> Linda Knippers noticed that commit (bbab37ddc20b) breaks mkfs.xfs: >> >> # mkfs -t xfs -f /dev/pmem0 >> meta-data=/dev/pmem0 isize=256agcount=4, agsize=524

Re: [RFC PATCH] regulator: Fix recursive mutex lockdep warning

2015-08-05 Thread Krzysztof Kozlowski
2015-08-06 1:02 GMT+09:00 Srinivas Kandagatla : > A recursive lockdep warning occurs if you call regulator_set_voltage() > on a load switches that are modelled as regulators with a parent supply as > there is no nesting annotation for the rdev->mutex. > To avoid this warning, use the unlocked versi

Re: [PATCH v3] PCI: Only enable IO window if supported

2015-08-05 Thread Yinghai Lu
On Wed, Aug 5, 2015 at 6:14 PM, Yinghai Lu wrote: > > It only can avoid warning with bridge, and still have warning on > devices under the bridge. > > also would have problem on transparent bridges, like > > BRIDGE_A BRIDGE_AADEVICE_AA >| >\-- BRIDG

Re: [PATCH v1 4/7] ARM: dts: apq8064: Add MDP support

2015-08-05 Thread Stephen Boyd
On 07/28/2015 05:54 AM, Srinivas Kandagatla wrote: @@ -618,5 +633,77 @@ compatible = "qcom,tcsr-apq8064", "syscon"; reg = <0x1a40 0x100>; }; + + hdmi: qcom,hdmi-tx@4a0 { + compatible = "qco

Re: [PATCH v5 2/2] firmware: qcom: scm: Add support for ARM64 SoCs

2015-08-05 Thread Stephen Boyd
On 04/28/2015 12:23 PM, Kumar Gala wrote: + +int __qcom_scm_call_armv8_64(u64 x0, u64 x1, u64 x2, u64 x3, u64 x4, u64 x5, + u64 *ret1, u64 *ret2, u64 *ret3) +{ + register u64 r0 asm("r0") = x0; + register u64 r1 asm("r1") = x1; + register u64 r2 asm

Re: [PATCH v3] PCI: Only enable IO window if supported

2015-08-05 Thread Yinghai Lu
On Thu, Jul 30, 2015 at 7:15 PM, Guenter Roeck wrote: > The PCI subsystem always assumes that I/O is supported on PCIe bridges > and tries to assign an I/O window to each child bus even if that is not > the case. > > This may result in messages such as: > > pcieport :02:00.0: res[7]=[io 0x1

Re: [PATCH v2 0/3] Add the efuse driver on rockchip platform

2015-08-05 Thread Shunqian Zheng
On 2015年08月05日 00:11, Srinivas Kandagatla wrote: Hi Shunqian, Sorry for delay in reply, I was on Holidays.. Thanks for testing. On 31/07/15 10:27, Shunqian Zheng wrote: 1. Without the following diff, `hexdump /sys/bus/nvmem/devices/rockchip-efuse0/nvmem` is wrong with "INVALID ARGUMENT":

Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread David Daney
On 08/05/2015 05:46 PM, Leonid Yegoshin wrote: On 08/05/2015 05:37 PM, David Daney wrote: This just means that your userspace is broken. If GLibC cannot do the right thing then it should be fixed. Let's skip this until you explain how to create a fully non-executable-stack process. Build al

Re: [PATCH v4 00/16] ARM: shmobile: Add CPG/MSTP Clock Domain

2015-08-05 Thread Simon Horman
On Wed, Aug 05, 2015 at 08:58:29AM +0200, Geert Uytterhoeven wrote: > Hi Simon, > > On Wed, Aug 5, 2015 at 2:55 AM, Simon Horman wrote: > > On Tue, Aug 04, 2015 at 10:48:28PM +0900, Simon Horman wrote: > >> I have tentatively queued this up in its own branch, > >> cpg-mstp-clock-domain-for-v4.3.

Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread Leonid Yegoshin
On 08/05/2015 05:37 PM, David Daney wrote: This just means that your userspace is broken. If GLibC cannot do the right thing then it should be fixed. Let's skip this until you explain how to create a fully non-executable-stack process. GLIBC people is ready to do something but after we remov

Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread Paul Burton
On Wed, Aug 05, 2015 at 05:23:55PM -0700, Leonid Yegoshin wrote: > It is actually any application which requests non-executable stack > protection and needs some emulation BEFORE GLIBC cancels that non-executable > stack protection due to libraries. > > If you build all libraries with PT_GNU_STACK

Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread David Daney
On 08/05/2015 05:23 PM, Leonid Yegoshin wrote: On 08/05/2015 05:14 PM, David Daney wrote: On 08/05/2015 05:06 PM, Leonid Yegoshin wrote: On 08/05/2015 04:55 PM, Paul Burton wrote: As was pointed out last time you posted this, it breaks backwards compatibility with userland & thus cannot be a

Re: [PATCH] sky2: Add module parameter for passing the MAC address

2015-08-05 Thread Florian Fainelli
On 05/08/15 16:16, Stephen Hemminger wrote: > Something like this: > > Subject: [PATCH net-next] sky2: use random address if EEPROM is bad > > On some embedded systems the EEPROM does not contain a valid MAC address. > In that case it is better to fallback to a generated mac address and > let ini

Re: [PATCH v2 2/2] powerpc32: optimise csum_partial() loop

2015-08-05 Thread Segher Boessenkool
On Wed, Aug 05, 2015 at 03:29:35PM +0200, Christophe Leroy wrote: > On the 8xx, load latency is 2 cycles and taking branches also takes > 2 cycles. So let's unroll the loop. This is not true for most other 32-bit PowerPC; this patch makes performance worse on e.g. 6xx/7xx/7xxx. Let's not! Seghe

Re: [PATCH v3 13/24] visorbus: switch from ioremap_cache to memremap

2015-08-05 Thread Greg Kroah-Hartman
On Thu, Jul 30, 2015 at 12:54:51PM -0400, Dan Williams wrote: > In preparation for deprecating ioremap_cache() convert its usage in > visorbus to memremap. > > Cc: Benjamin Romer > Cc: David Kershner > Signed-off-by: Dan Williams > --- > drivers/staging/unisys/visorbus/visorchannel.c | 16 ++

Re: [PATCH 5/9] x86/intel_rdt: Add new cgroup and Class of service management

2015-08-05 Thread Marcelo Tosatti
On Wed, Aug 05, 2015 at 01:22:57PM +0100, Matt Fleming wrote: > On Sun, 02 Aug, at 12:31:57PM, Tejun Heo wrote: > > > > But we're doing it the wrong way around. You can do most of what > > cgroup interface can do with systemcall-like interface with some > > inconvenience. The other way doesn't r

Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread Leonid Yegoshin
On 08/05/2015 05:14 PM, David Daney wrote: On 08/05/2015 05:06 PM, Leonid Yegoshin wrote: On 08/05/2015 04:55 PM, Paul Burton wrote: As was pointed out last time you posted this, it breaks backwards compatibility with userland & thus cannot be applied. Never observed since first version. I

Re: [PATCH] sky2: Add module parameter for passing the MAC address

2015-08-05 Thread David Miller
From: Liviu Dudau Date: Wed, 5 Aug 2015 16:50:54 +0100 > For designs where EEPROMs are not connected to PCI Yukon2 > chips we need to get the MAC address from the firmware. > Add a module parameter called 'mac_address' for this. It > will be used if no DT node can be found and the B2_MAC > regis

[PATCH v4 REPOST 2/8] staging: rtl8712: simplify size calculation

2015-08-05 Thread Joshua Clayton
replace item-by-item size calculation of a struct with the size of the struct. This gets rid of a use of typedef NDIS_802_11_RATES_EX Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/rtl871x_cmd.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/

[PATCH v4 REPOST 6/8] staging: rtl8712: rename function

2015-08-05 Thread Joshua Clayton
Rename r8712_get_ndis_wlan_bssid_ex_sz() to r8712_get_wlan_bssid_ex_sz(), which corresponds to the struct whose size it measures. Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/rtl871x_cmd.c | 8 drivers/staging/rtl8712/rtl871x_mlme.c | 16 drivers/

[PATCH v4 REPOST 4/8] staging: rtl8712: removed unused wrapper structs

2015-08-05 Thread Joshua Clayton
Remove wrapper structs that just wrap struct ndis_wlan_bssid_ex, and are unused. Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/rtl871x_cmd.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_cmd.h b/drivers/staging/rtl8712/rtl871x

[PATCH v4 REPOST 7/8] staging: rtl8712: remove typedefs

2015-08-05 Thread Joshua Clayton
Coding style fix. Get rid of typedefs NDIS_802_11_RATES and NDIS_802_11_RATES_EX Undo any casting that was done as a result of the typedef. Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 12 ++-- drivers/staging/rtl8712/wlan_bssdef.h | 7 +-

[PATCH v4 REPOST 5/8] staging: rtl8712: remove duplicate struct

2015-08-05 Thread Joshua Clayton
struct ndis_wlan_bssid_ex is a doppelganger of struct wlan_bssid_ex, and is used about a third as often. Switch all instances to wlan_bssid_ex, and remove ndis_wlan_bssid_ex This also gets rid of a use of typedef NDIS_802_11_RATES_EX Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/rt

[PATCH v4 REPOST 8/8] staging: rtl8712: change SupportedRates to rates

2015-08-05 Thread Joshua Clayton
Change the value to a name that conforms to Linux coding style. "rates" is equally expressive in this context, and I have left alone a comment and function name that describe the rates as supported rates. Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/ieee80211.c | 25 +

[PATCH v4 REPOST 3/8] staging: rtl8712: fix comment

2015-08-05 Thread Joshua Clayton
The old comment refers to a typedef name which is being removed, and to a style of calculation which is no longer being used. It falsely states that IELength is variable length, instead of IEs. Change comment to simply state that the IEs field is a buffer of variable size and that IELength refers

[PATCH v4 REPOST 1/8] staging: rtl8712: fix buggy size calculation

2015-08-05 Thread Joshua Clayton
r8712_get_ndis_wlan_bssid_ex_sz has a "6 * sizeof(unsigned long)" where the underlying struct has a 6 * unsigned char. Simplify the calculation by just subtracting the variable part from the size of the struct. This also gets rid of a use of typedef NDIS_802_11_RATES_EX Signed-off-by: Joshua Clay

[PATCH v4 REPOST 0/8] clean up wlan_bssdef.h

2015-08-05 Thread Joshua Clayton
I posted v4 of this patch set a week ago and there have been no comments. I hope this is a good sign that the patches are good. However, I have noticed that I managed to use the same message id for the coverletter of v4 as for v3, which might have caused people to hold off reviewing, perhaps thin

Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread David Daney
On 08/05/2015 05:06 PM, Leonid Yegoshin wrote: On 08/05/2015 04:55 PM, Paul Burton wrote: As was pointed out last time you posted this, it breaks backwards compatibility with userland & thus cannot be applied. Never observed since first version. In other side, the problem with apps like ssh

Re: [PATCH v4 0/3] MIPS executable stack protection

2015-08-05 Thread David Daney
On 08/05/2015 04:49 PM, Leonid Yegoshin wrote: The following series implements an executable stack protection in MIPS. It sets up a per-thread 'VDSO' page and appropriate TLB support. Page is set write-protected from user and is maintained via kernel VA. MIPS FPU emulation is shifted to new page

Re: [PATCH 3/3] zswap: change zpool/compressor at runtime

2015-08-05 Thread Sergey Senozhatsky
Hi, On (08/05/15 09:46), Dan Streetman wrote: > Update the zpool and compressor parameters to be changeable at runtime. > When changed, a new pool is created with the requested zpool/compressor, > and added as the current pool at the front of the pool list. Previous > pools remain in the list onl

mmotm 2015-08-05-17-06 uploaded

2015-08-05 Thread akpm
The mm-of-the-moment snapshot 2015-08-05-17-06 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH] base/platform: assert that dev_pm_domain callbacks are called unconditionally

2015-08-05 Thread Greg Kroah-Hartman
On Tue, Jul 21, 2015 at 05:08:35PM +0200, Uwe Kleine-König wrote: > When a platform driver doesn't provide a .remove callback the function > platform_drv_remove isn't called and so the call to dev_pm_domain_attach > called at probe time isn't paired by dev_pm_domain_detach at remove > time. > > To

Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread Leonid Yegoshin
On 08/05/2015 04:55 PM, Paul Burton wrote: As was pointed out last time you posted this, it breaks backwards compatibility with userland & thus cannot be applied. Never observed since first version. In other side, the problem with apps like ssh_keygen is observed in absence of executable st

Re: [PATCH v4 0/3] MIPS executable stack protection

2015-08-05 Thread Leonid Yegoshin
On 08/05/2015 05:00 PM, David Daney wrote: Does it handle nested emulation? Yes, it does since v2: "- Added unwinding of VDSO emulation stack at signal handler invocation, hiding an emulation page (Andy Lutomirski note in other patch comments)" - Leonid. -- To unsubscribe from this li

Re: [PATCH] driver core: bus: Free the kobject.name if kset_register fails

2015-08-05 Thread Greg KH
On Tue, Jun 09, 2015 at 05:05:21PM +0800, Chen Lin Z wrote: > if register two bus with the same name, kset_register will fail. > it need free kobject.name, otherwise there is a memory leak. > > Signed-off-by: Chen Lin Z > --- > drivers/base/bus.c | 4 +++- > 1 file changed, 3 insertions(+), 1 de

Re: [PATCH-v2 2/2] regulator: 88pm800: Add support for configuration of dual phase on BUCK1

2015-08-05 Thread Krzysztof Kozlowski
On 05.08.2015 17:45, Vaibhav Hiremath wrote: > > > On Thursday 23 July 2015 10:21 AM, Krzysztof Kozlowski wrote: >> 2015-07-22 1:23 GMT+09:00 Vaibhav Hiremath : >>> 88PM860 device supports dual phase mode on BUCK1 output. >>> In normal usecase, BUCK1A and BUCK1B operates independently with 3A >>>

Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread David Daney
On 08/05/2015 04:49 PM, Leonid Yegoshin wrote: This is a last step of 3 patches which shift FPU emulation out of stack into protected area. So, it disables a default executable stack. NAK. You cannot change the default. If you want a non-executable stack, the program has to request it with

Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread Paul Burton
On Wed, Aug 05, 2015 at 04:49:36PM -0700, Leonid Yegoshin wrote: > This is a last step of 3 patches which shift FPU emulation out of > stack into protected area. So, it disables a default executable stack. > > Additionally, it sets a default data area non-executable protection. > > Signed-off-by:

[PATCH] MIPS: R6: emulation of PC-relative instructions

2015-08-05 Thread Leonid Yegoshin
MIPS R6 has 6 new PC-relative instructions: LWUPC, LWPC, LDPC, ADDIUPC, ALUIPC and AUIPC. These instructions can be placed in BD-slot of BC1* branch instruction and FPU may be not available, which requires emulation of these instructions. However, the traditional way to emulate that is via filling

Re: [PATCH] acpi, property: Export acpi_dev_prop_read_single call.

2015-08-05 Thread David Daney
On 08/05/2015 04:55 PM, Rafael J. Wysocki wrote: On Wednesday, August 05, 2015 04:17:21 PM David Daney wrote: On 08/05/2015 04:23 PM, Rafael J. Wysocki wrote: On Wednesday, August 05, 2015 01:14:49 PM David Daney wrote: On 08/05/2015 10:26 AM, David Daney wrote: On 08/05/2015 06:43 AM, Tomasz

[PATCH v4 1/3] MIPS: mips_flush_cache_range is added

2015-08-05 Thread Leonid Yegoshin
New function mips_flush_cache_range() is added. It flushes D-cache on kernel VA and I-cache on user VA. It is significant in case of cache aliasing systems. It can be used to flush a short sequence of newly written code to user space and especially usefull in ptrace() and dsemul(). Today a full pag

[PATCH v4 2/3] MIPS: Setup an instruction emulation in VDSO protected page instead of user stack

2015-08-05 Thread Leonid Yegoshin
Historically, during FPU emulation MIPS runs live BD-slot instruction in stack. This is needed because it was the only way to correctly handle branch exceptions with unknown COP2 or ASE instructions in BD-slot. Now there is an eXecuteInhibit feature and it is desirable to protect stack from executi

[PATCH v4 3/3] MIPS: set stack/data protection as non-executable

2015-08-05 Thread Leonid Yegoshin
This is a last step of 3 patches which shift FPU emulation out of stack into protected area. So, it disables a default executable stack. Additionally, it sets a default data area non-executable protection. Signed-off-by: Leonid Yegoshin --- arch/mips/include/asm/page.h |2 +- 1 file changed

[PATCH v4 0/3] MIPS executable stack protection

2015-08-05 Thread Leonid Yegoshin
The following series implements an executable stack protection in MIPS. It sets up a per-thread 'VDSO' page and appropriate TLB support. Page is set write-protected from user and is maintained via kernel VA. MIPS FPU emulation is shifted to new page and stack is relieved for execute protection as

Re: [PATCH 0/2] tools/power/acpi: Fix ACPI tools build issues.

2015-08-05 Thread Rafael J. Wysocki
On Tuesday, July 28, 2015 01:25:12 PM Lv Zheng wrote: > Currently tools/power/acpi is broken: > 1. acpidump build is broken because utnonansi.o is not linked. > 2. ec build is broken because descend build is not supported. > This patch fixes the above issues. > > Lv Zheng (2): > tools/power/acpi

Re: [PATCH V2] cpufreq: Correct a freq check in cpufreq_set_policy

2015-08-05 Thread Rafael J. Wysocki
On Thursday, July 30, 2015 06:10:40 PM Pan Xinhui wrote: > From: Pan Xinhui > > This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] > return error when failing to set minfreq").It attempt to return an error > on obviously incorrect limits when we echo xxx >.../scaling_max,min_freq

Come and See this photo on MyDailyFlog!

2015-08-05 Thread sai sadasivam
Hi! I would like to invite you to visit MyDailyFlog and see my profile. Check out: http://www.mydailyflog.com/go/invite_register/saiprathap/22143969&stc=89 Thanks! sai sadasivam Got a digital camera? MyDailyFlog is a personal photo-blogging space wh

Re: [PATCH v2 2/2] ARM: dts: am57xx-beagle-x15: use palmas-usb for USB2

2015-08-05 Thread Chanwoo Choi
On 08/05/2015 07:37 PM, Tony Lindgren wrote: > * Roger Quadros [150727 06:13]: >> The VBUS line of USB2 is connected to VBUS detect logic on >> the PMIC. Use the palmas-usb driver to report VBUS events >> to the USB driver. >> >> As the palmas-usb driver supports GPIO based ID reporting >> provide

Re: [PATCH] acpi, property: Export acpi_dev_prop_read_single call.

2015-08-05 Thread Rafael J. Wysocki
On Wednesday, August 05, 2015 04:17:21 PM David Daney wrote: > On 08/05/2015 04:23 PM, Rafael J. Wysocki wrote: > > On Wednesday, August 05, 2015 01:14:49 PM David Daney wrote: > >> On 08/05/2015 10:26 AM, David Daney wrote: > >>> On 08/05/2015 06:43 AM, Tomasz Nowicki wrote: > On 05.08.2015 1

Re: [PATCH v4 3/9] VMware balloon: add batching to the vmw_balloon.

2015-08-05 Thread gre...@linuxfoundation.org
On Wed, Aug 05, 2015 at 10:47:37PM +, Philip Moltmann wrote: > Hi, > > > what changed? > > I added the include: > > #include > > Nothing else changes. How was I supposed to know this? Please add this type of thing to the patch, in the proper place, as is required. > None of v3 step 4-9

Re: [PATCH v3 4/5] toshiba_acpi: Remove unnecessary checks and returns in HCI/SCI functions

2015-08-05 Thread Darren Hart
On Wed, Aug 05, 2015 at 04:23:49PM -0600, Azael Avalos wrote: > Hi Darren, > > 2015-08-05 14:21 GMT-06:00 Darren Hart : > >> @@ -1131,14 +1055,10 @@ static int toshiba_usb_three_set(struct > >> toshiba_acpi_dev *dev, u32 state) > >> > >> result = sci_write(dev, SCI_USB_THREE, state); > >>

Re: [PATCH] acpi, property: Export acpi_dev_prop_read_single call.

2015-08-05 Thread Rafael J. Wysocki
On Thursday, August 06, 2015 01:23:06 AM Rafael J. Wysocki wrote: > On Wednesday, August 05, 2015 01:14:49 PM David Daney wrote: > > On 08/05/2015 10:26 AM, David Daney wrote: > > > On 08/05/2015 06:43 AM, Tomasz Nowicki wrote: > > >> On 05.08.2015 15:48, Rafael J. Wysocki wrote: > > >>> On Tuesday

Re: [RFC PATCH 0/3] mailbox: hisilicon: add mailbox driver

2015-08-05 Thread Leo Yan
Hi Jassi, Thanks for review. On Wed, Aug 05, 2015 at 04:22:01PM +0530, Jassi Brar wrote: > On Mon, Aug 3, 2015 at 6:43 AM, Leo Yan wrote: [...] > > For easily extending for Hisilicon series SoCs (SoCs may have difference > > for register's definition with each other), so firstly implement comm

Re: [PATCH] acpi, property: Export acpi_dev_prop_read_single call.

2015-08-05 Thread David Daney
On 08/05/2015 04:23 PM, Rafael J. Wysocki wrote: On Wednesday, August 05, 2015 01:14:49 PM David Daney wrote: On 08/05/2015 10:26 AM, David Daney wrote: On 08/05/2015 06:43 AM, Tomasz Nowicki wrote: On 05.08.2015 15:48, Rafael J. Wysocki wrote: On Tuesday, August 04, 2015 04:01:59 PM David Da

Re: [PATCH] sky2: Add module parameter for passing the MAC address

2015-08-05 Thread Stephen Hemminger
Something like this: Subject: [PATCH net-next] sky2: use random address if EEPROM is bad On some embedded systems the EEPROM does not contain a valid MAC address. In that case it is better to fallback to a generated mac address and let init scripts fix the value later. Reported-by: Liviu Dudau

Re: [PATCH V6 2/2] mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller.

2015-08-05 Thread Marek Vasut
On Wednesday, August 05, 2015 at 08:29:11 PM, vikasm wrote: > Hi Graham, Hi vikasm, > On 07/28/2015 10:38 AM, Graham Moore wrote: > > Signed-off-by: Graham Moore > > --- > > V2: use NULL instead of modalias in spi_nor_scan call > > V3: Use existing property is-decoded-cs instead of creating dupl

Re: [PATCH] jffs2: Remove NULL checks from jffs2_destroy_slab_caches

2015-08-05 Thread Salah Triki
Hi, It is hard to be treated as a copy-paster, especially when you're a newcomer to the community. Best regards -- Salah Triki On Wed, Aug 05, 2015 at 10:32:47PM +0900, Sergey Senozhatsky wrote: > > Hi, > > Cc Julia Lawall > > On (08/04/15 13:06), Brian Norris wrote: > > On Tue, Aug 04, 2015

Re: [RFC PATCH] Exporting extra tables for machines without /dev/mem

2015-08-05 Thread Rafael J. Wysocki
On Wednesday, August 05, 2015 02:25:06 PM Al Stone wrote: > On 07/21/2015 07:31 AM, Graeme Gregory wrote: > > Hi, > > > > I thought I would send this patch as an RFC. It is something I did when > > another linaro engineer was modifying acpica-tools to not require /dev/mem. > > > > It exports the

Re: [PATCH v3 04/11] stm class: stm_console: Add kernel-console-over-stm driver

2015-08-05 Thread Mathieu Poirier
On 6 July 2015 at 04:08, Alexander Shishkin wrote: > This is a simple stm_source class device driver (kernelspace stm trace > source) that registers a console and sends kernel messages over STM > devices. > > Cc: Mathieu Poirier > Signed-off-by: Alexander Shishkin > --- > drivers/hwtracing/stm/

Re: [PATCH v3 03/11] stm class: dummy_stm: Add dummy driver for testing stm class

2015-08-05 Thread Mathieu Poirier
On 6 July 2015 at 04:08, Alexander Shishkin wrote: > This is a simple module that pretends to be an stm device and discards > all the data that comes in. Useful for testing stm class and its users. > > Cc: Mathieu Poirier > Signed-off-by: Alexander Shishkin > --- > drivers/hwtracing/stm/Kconfig

Re: [PATCH v3 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-08-05 Thread Mathieu Poirier
On 6 July 2015 at 04:08, Alexander Shishkin wrote: > A System Trace Module (STM) is a device exporting data in System Trace > Protocol (STP) format as defined by MIPI STP standards. Examples of such > devices are Intel Trace Hub and Coresight STM. > > This abstraction provides a unified interface

Re: [PATCH] acpi, property: Export acpi_dev_prop_read_single call.

2015-08-05 Thread Rafael J. Wysocki
On Wednesday, August 05, 2015 01:14:49 PM David Daney wrote: > On 08/05/2015 10:26 AM, David Daney wrote: > > On 08/05/2015 06:43 AM, Tomasz Nowicki wrote: > >> On 05.08.2015 15:48, Rafael J. Wysocki wrote: > >>> On Tuesday, August 04, 2015 04:01:59 PM David Daney wrote: > From: Tomasz Nowicki

Re: [PATCH 1/1] device property: fix potential NULL pointer dereference

2015-08-05 Thread Rafael J. Wysocki
On Wednesday, August 05, 2015 04:51:11 PM Andy Shevchenko wrote: > In device_add_property_set() we check pset parameter for a NULL, but few lines > later we do a pointer arithmetic without check that will crash kernel in the > set_secondary_fwnode(). > > Here we check if pset parameter is NULL and

Re: [PATCH v4 3/9] VMware balloon: add batching to the vmw_balloon.

2015-08-05 Thread Philip Moltmann
Hi, > what changed? I added the include: #include Nothing else changes. None of v3 step 4-9 changed and they should still cleanly apply (and build). PhilipN�r��yb�X��ǧv�^�)޺{.n�+{zX����ܨ}���Ơz�&j:+v���zZ+��+zf���h���~i���z��w���?�&�)ߢf��^jǫy�m��@A�a��� 0��h�

[PATCH 6/6] MIPS: CPS: drop .set mips64r2 directives

2015-08-05 Thread Paul Burton
Commit 977e043d5ea1 ("MIPS: kernel: cps-vec: Replace mips32r2 ISA level with mips64r2") leads to .set mips64r2 directives being present in 32 bit (ie. CONFIG_32BIT=y) kernels. This is incorrect & leads to MIPS64 instructions being emitted by the assembler when expanding pseudo-instructions. For exa

Re: [PATCH v4 3/9] VMware balloon: add batching to the vmw_balloon.

2015-08-05 Thread Greg KH
On Wed, Aug 05, 2015 at 03:36:31PM -0700, Philip P. Moltmann wrote: > From: Xavier Deguillard > > Introduce a new capability to the driver that allow sending 512 pages in > one hypervisor call. This reduce the cost of the driver when reclaiming > memory. > > Signed-off-by: Xavier Deguillard > A

[PATCH 4/6] MIPS: CPS: #ifdef on CONFIG_MIPS_MT_SMP rather than CONFIG_MIPS_MT

2015-08-05 Thread Paul Burton
The CONFIG_MIPS_MT symbol can be selected by CONFIG_MIPS_VPE_LOADER in addition to CONFIG_MIPS_MT_SMP. We only want MT code in the CPS SMP boot vector if we're using MT for SMP. Thus switch the config symbol we ifdef against to CONFIG_MIPS_MT_SMP. Signed-off-by: Paul Burton Cc: Markos Chandras C

[PATCH 5/6] MIPS: CONFIG_MIPS_MT_SMP should depend upon CPU_MIPSR2

2015-08-05 Thread Paul Burton
The MT ASE cannot be used with CPUs that implement older releases of the MIPS architecture than release 2, and is replaced in release 6. Encode these constraints in Kconfig to ensure that MT code is only built as part of kernels targeting an appropriate revision of the architecture. Signed-off-by:

[PATCH 3/6] MIPS: CPS: don't include MT code in non-MT kernels

2015-08-05 Thread Paul Burton
The MT-specific code in mips_cps_boot_vpes can safely be omitted from kernels which don't support MT, with the default VPE==0 case being used as it would be after the has_mt (Config3.MT) check failed at runtime. Discarding the code entirely will save us a few bytes & allow cleaner handling of MT AS

[PATCH 1/6] MIPS: CPS: use 32b accesses to GCRs

2015-08-05 Thread Paul Burton
Commit b677bc03d757 ("MIPS: cps-vec: Use macros for various arithmetics and memory operations") replaced various load & store instructions through cps-vec.S with the PTR_L & PTR_S macros. However it was somewhat overzealous in doing so for CM GCR accesses, since the bit width of the CM doesn't nece

[PATCH 2/6] MIPS: CPS: stop dangling delay slot from has_mt

2015-08-05 Thread Paul Burton
The has_mt macro ended with a branch, leaving its callers with a delay slot that would be executed if Config3.MT is not set. However it would not be executed if Config3 (or earlier Config registers) don't exist which makes it somewhat inconsistent at best. Fill the delay slot in the macro & fix the

[PATCH 0/6] MIPS CPS SMP fixes, debug & cleanups

2015-08-05 Thread Paul Burton
This series fixes a few issues with the MIPS Coherent Processing System SMP implementation, provides some extra capabilities with regards to debug and does a little spring cleaning. A couple of the issues fixed were introduced in v4.1-rc1 and (spuriously) marked for stable backports as far as v3.16

[BUG] perf/script: segfault on simple command

2015-08-05 Thread Stephane Eranian
Hi Arnaldo, Jiri Running this simple command from tip.git tree, I get: $ perf record ls [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.011 MB perf.data (9 samples) ] $ perf script Segmentation fault (core dumped) $ gdb perf (gdb) r script Program received

[PATCH v4 3/9] VMware balloon: add batching to the vmw_balloon.

2015-08-05 Thread Philip P. Moltmann
From: Xavier Deguillard Introduce a new capability to the driver that allow sending 512 pages in one hypervisor call. This reduce the cost of the driver when reclaiming memory. Signed-off-by: Xavier Deguillard Acked-by: Dmitry Torokhov Signed-off-by: Philip P. Moltmann --- drivers/misc/vmw_b

Re: [PATCH] staging: sm750fb: fix sparse warning for lock

2015-08-05 Thread Dan Carpenter
On Wed, Aug 05, 2015 at 09:26:44PM +0800, Peng Fan wrote: > Use __acquire() and __release() in the right place to silence the sparse > lock checking warning. > > drivers/staging/sm750fb/sm750.c:177:13: warning: context imbalance in > 'lynxfb_ops_fillrect' - different lock contexts for basic block

[PATCH v3] cris: arch-v10: kgdb: Add '__used' for static variable is_dyn_brkp

2015-08-05 Thread Chen Gang
Within one C file, current gcc can optimize the global static variables according to the C code, but it will skip assembly code -- it will pass them to gas directly. if the static variable is used between C code and assembly code in one C file (e.g. is_dyn_brkp in kgdb.c), it needs '__used' to let

Re: [PATCH v3 0/5] Add SMP bringup support for mt65xx socs

2015-08-05 Thread Russell King - ARM Linux
On Wed, Aug 05, 2015 at 08:44:11PM +0200, Matthias Brugger wrote: > On Tuesday, July 14, 2015 01:18:26 PM Yingjoe Chen wrote: > > This series add SMP brinup support for MediaTek SoCs. This is based > > on v4.2-rc1 and Matthias' next branch (for dts parts). > > > > There are similar but different S

Re: [PATCHv2 net-next 5/9] openvswitch: Add conntrack action

2015-08-05 Thread Pravin Shelar
On Tue, Aug 4, 2015 at 9:49 PM, Joe Stringer wrote: > Expose the kernel connection tracker via OVS. Userspace components can > make use of the "ct()" action, followed by "recirculate", to populate > the conntracking state in the OVS flow key, and subsequently match on > that state. > > Example ODP

Re: [PATCHv2 net-next 2/9] openvswitch: Move MASKED* macros to datapath.h

2015-08-05 Thread Pravin Shelar
On Tue, Aug 4, 2015 at 9:49 PM, Joe Stringer wrote: > This will allow the ovs-conntrack code to reuse these macros. > > Signed-off-by: Joe Stringer > Acked-by: Thomas Graf Acked-by: Pravin B Shelar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

Re: [PATCHv2 net-next 3/9] ipv6: Export nf_ct_frag6_gather()

2015-08-05 Thread Pravin Shelar
On Tue, Aug 4, 2015 at 9:49 PM, Joe Stringer wrote: > Signed-off-by: Joe Stringer > Acked-by: Thomas Graf > --- Acked-by: Pravin B Shelar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCHv2 net-next 1/9] openvswitch: Serialize acts with original netlink len

2015-08-05 Thread Pravin Shelar
On Tue, Aug 4, 2015 at 9:49 PM, Joe Stringer wrote: > Previously, we used the kernel-internal netlink actions length to > calculate the size of messages to serialize back to userspace. > However,the sw_flow_actions may not be formatted exactly the same as the > actions on the wire, so store the or

[PATCH] sysfs: correctly handle short reads on PREALLOC attrs.

2015-08-05 Thread NeilBrown
attributes declared with __ATTR_PREALLOC use sysfs_kf_read() which ignores the 'count' arg. So a 1-byte read request can return more bytes than that. This is seen with the 'dash' shell when 'read' is used on some 'md' sysfs attributes. So only return the 'min' of count and the attribute length.

Re: [PATCH v3 3/5] ARM: mediatek: add smp bringup code

2015-08-05 Thread Russell King - ARM Linux
On Tue, Jul 14, 2015 at 01:18:29PM +0800, Yingjoe Chen wrote: > +static void __init __mtk_smp_prepare_cpus(unsigned int max_cpus, int > trustzone) > +{ > + int i, num; > + const struct of_device_id *infos; > + > + if (trustzone) { > + num = ARRAY_SIZE(mtk_tz_smp_boot_infos)

[PATCH 3.19.y-ckt 006/107] x86/nmi/64: Remove asm code that saves cr2

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 0e181bb58143cb4a2e8f01c281b0816cd0e4798e upstream. Now that do_nmi saves cr2, we don't need to save it in asm. This is a prerequisity for the fix for CVE-2015-

[PATCH 3.19.y-ckt 005/107] x86/nmi: Enable nested do_nmi handling for 64-bit kernels

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 9d05041679904b12c12421cbcf9cb5f4860a8d7b upstream. 32-bit kernels handle nested NMIs in C. Enable the exact same handling on 64-bit kernels as well. This isn'

[PATCH 3.19.y-ckt 002/107] evm: labeling pseudo filesystems exception

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Mimi Zohar commit 5101a1850bb7ccbf107929dee9af0cd2f400940f upstream. To prevent offline stripping of existing file xattrs and relabeling of them at runtime, EVM allows only newly crea

[PATCH 3.19.y-ckt 007/107] x86/nmi/64: Switch stacks on userspace NMI entry

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 9b6e6a8334d56354853f9c255d1395c2ba570e0a upstream. Returning to userspace is tricky: IRET can fail, and ESPFIX can rearrange the stack prior to IRET. The NMI n

[PATCH 3.19.y-ckt 008/107] x86/nmi/64: Improve nested NMI comments

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 0b22930ebad563ae97ff3f8d7b9f12060b4c6e6b upstream. I found the nested NMI documentation to be difficult to follow. Improve the comments. Signed-off-by: Andy Lu

[PATCH 3.19.y-ckt 009/107] x86/nmi/64: Reorder nested NMI checks

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit a27507ca2d796cfa8d907de31ad730359c8a6d06 upstream. Check the repeat_nmi .. end_repeat_nmi special case first. The next patch will rework the RSP check and, as

[PATCH 3.19.y-ckt 010/107] x86/nmi/64: Use DF to avoid userspace RSP confusing nested NMI detection

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 810bc075f78ff2c221536eb3008eac6a492dba2d upstream. We have a tricky bug in the nested NMI code: if we see RSP pointing to the NMI stack on NMI entry from kernel

[PATCH 3.19.y-ckt 012/107] sg_start_req(): make sure that there's not too many elements in iovec

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Al Viro commit 451a2886b6bf90e2fb378f7c46c655450fb96e81 upstream. unfortunately, allowing an arbitrary 16bit value means a possibility of overflow in the calculation of total number o

[PATCH 3.19.y-ckt 013/107] Btrfs: use kmem_cache_free when freeing entry in inode cache

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit c3f4a1685bb87e59c886ee68f7967eae07d4dffa upstream. The free space entries are allocated using kmem_cache_zalloc(), through __btrfs_add_free_space(), therefore we

[PATCH 3.19.y-ckt 016/107] bufferhead: Add _gfp version for sb_getblk()

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Nikolay Borisov commit bd7ade3cd9b0850264306f5c2b79024a417b6396 upstream. sb_getblk() is used during ext4 (and possibly other FSes) writeback paths. Sometimes such path require alloca

Re: [PATCH v3 4/5] toshiba_acpi: Remove unnecessary checks and returns in HCI/SCI functions

2015-08-05 Thread Azael Avalos
Hi Darren, 2015-08-05 14:21 GMT-06:00 Darren Hart : >> @@ -1131,14 +1055,10 @@ static int toshiba_usb_three_set(struct >> toshiba_acpi_dev *dev, u32 state) >> >> result = sci_write(dev, SCI_USB_THREE, state); >> sci_close(dev); >> - if (result == TOS_FAILURE) { >> + if (result

[PATCH 3.19.y-ckt 001/107] ieee802154: Fix sockaddr_ieee802154 implicit padding information leak.

2015-08-05 Thread Kamal Mostafa
3.19.8-ckt5 -stable review patch. If anyone has any objections, please let me know. -- From: Lennert Buytenhek commit 8a70cefa3037d62e7c0b6068a66675def1a330c9 upstream. The AF_IEEE802154 sockaddr looks like this: struct sockaddr_ieee802154 { sa_family

<    1   2   3   4   5   6   7   8   9   10   >