[PATCH 1/5] staging: lustre: Add blank line after variable definition.

2015-07-25 Thread Incarnation P. Lee
From: "Pan Li" Add blank line after local variable definition to make it clear for reading. Signed-off-by: Pan Li --- drivers/staging/lustre/lustre/obdclass/cl_page.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/lustre/lustre/obdclass/cl_page.c

[PATCH 3/5] staging: lustre: Remove unnecessary braces {}

2015-07-25 Thread Incarnation P. Lee
From: "Pan Li" Remove unnecessary braces {} in single line statement code block. Signed-off-by: Pan Li --- drivers/staging/lustre/lustre/obdclass/cl_page.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/cl_page.c

[PATCH 0/5] staging: lustre: cl_page.c: Fix one file coding sytle issue.

2015-07-25 Thread Incarnation P. Lee
From: "Pan Li" Fix one file coding sytle issues. Include 3 warnings and 2 errors of coding sytle of cl_page.c. drivers/staging/lustre/lustre/obdclass/cl_page.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) -- 1.9.0 -- To unsubscribe from this list: send the

Re: [PATCH 1/1] serial: 8250_pci: add RS485 for F81504/508/512

2015-07-25 Thread Jakub Kiciński
On Fri, 24 Jul 2015 13:55:39 +0800, Peter Hung wrote: > Add RS485 control for Fintek F81504/508/512 > > F81504/508/512 can control their RTS with H/W mode. > PCI configuration space for each port is 0x40 + idx * 8 + 7. > > When it set with 0x01, it's configured with RS232 mode. > RTS is

Re: [PATCH v3 26/46] usb: gadget: pch_ud: add ep capabilities support

2015-07-25 Thread Robert Baldyga
Hi, On 07/20/2015 05:08 PM, Krzysztof Opasiak wrote: On 07/15/2015 08:32 AM, Robert Baldyga wrote: Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pch_udc.c | 14 -- 1 file changed, 12 insertions(+), 2

Re: [PATCH] target: fix crash in cmd tracing when cmd didn't match a LUN

2015-07-25 Thread Nicholas A. Bellinger
On Sat, 2015-07-25 at 08:48 +0200, Christoph Hellwig wrote: > On Fri, Jul 24, 2015 at 01:32:14PM -0700, Nicholas A. Bellinger wrote: > > We've already been through this discussion a couple of years back when > > target_submit_cmd() first came into existence. > > > > The reason iscsi/iser-target

[PATCH] pinctrl: nomadik: split stn8815 UART0 pin groups

2015-07-25 Thread Linus Walleij
Split the UART pin groups so we can activate RX/TX, CTS/RTS and the modem pins (DCD, DSR, RI, DTR) as three different groups with function u0. Signed-off-by: Linus Walleij --- drivers/pinctrl/nomadik/pinctrl-nomadik-stn8815.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-)

AW: Aufmerksamkeit!

2015-07-25 Thread John Keenan Burgess
Haben Sie ein Darlehen / finanzielle Unterstützung brauchen? Wir bieten Finanzierung zu einem sehr niedrigen Zinssatz von 3%. Alle interessierten Bewerber sind uns per E-Mail für weitere Informationen kontaktieren. Verwaltung (c) 2015 -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v4 2/3] x86/ldt: Make modify_ldt optional

2015-07-25 Thread Borislav Petkov
On Fri, Jul 24, 2015 at 10:36:45PM -0700, Andy Lutomirski wrote: > The modify_ldt syscall exposes a large attack surface and is > unnecessary for modern userspace. Make it optional. > > Signed-off-by: Andy Lutomirski > --- > arch/x86/Kconfig | 17 + >

Re: [RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-25 Thread Scott Shu
On Fri, 2015-07-24 at 07:50 +0200, Sascha Hauer wrote: > On Fri, Jul 24, 2015 at 10:02:03AM +0800, Scott Shu wrote: > > On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote: > > > Hi Scott, > > > > > > On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote: > > > > This adds a CPU power

Re: [PATCH] e1000e: Move e1000e_disable_aspm_locked() inside CONFIG_PM

2015-07-25 Thread Michael Ellerman
On Thu, 2015-07-23 at 07:07 -0700, Jeff Kirsher wrote: > On Wed, 2015-07-22 at 11:41 +1000, Michael Ellerman wrote: > > On Wed, 2015-07-15 at 03:30 -0700, Jeff Kirsher wrote: > > > On Tue, 2015-07-14 at 13:54 +1000, Michael Ellerman wrote: > > > > e1000e_disable_aspm_locked() is only used in

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-25 Thread Minfei Huang
Hi, Vivek. Since Dave acked this patch, Could you help to merge it? Thanks Minfei On 06/15/15 at 05:28pm, Dave Young wrote: > On 06/06/15 at 02:14pm, Minfei Huang wrote: > > From: Minfei Huang > > > > Transforming PFN(Page Frame Number) to struct page is never failure, so > > we can simplify

Re: [PATCH v4 1/3] x86/ldt: Make modify_ldt synchronous

2015-07-25 Thread Borislav Petkov
On Fri, Jul 24, 2015 at 10:36:44PM -0700, Andy Lutomirski wrote: > modify_ldt has questionable locking and does not synchronize > threads. Improve it: redesign the locking and synchronize all > threads' LDTs using an IPI on all modifications. > > This will dramatically slow down modify_ldt in

Re: linux 4.2-rc1 broken Nokia N900

2015-07-25 Thread Pali Rohár
On Wednesday 22 July 2015 04:03:07 Sebastian Reichel wrote: > Hi, > > On Tue, Jul 21, 2015 at 07:17:41PM -0500, Michael Welling wrote: > > On Tue, Jul 21, 2015 at 11:34:41AM +0200, Pavel Machek wrote: > > > > This code has my head spinning. > > > > I found that the errors do not occur when the

Re: [PATCH 1/3] x86/entry/64: Refactor IRQ stacks and make then NMI-safe

2015-07-25 Thread Borislav Petkov
On Fri, Jul 24, 2015 at 09:59:16PM -0700, Andy Lutomirski wrote: > And people will give me five new heads if I ignore Linus and do RET > even with IF=1, saving 300 cycles? As long as you don't make it too complex and corner-casy, I'll give you hats for those heads. -- Regards/Gruss, Boris.

Re: [PATCH v3 1/3] x86/ldt: Make modify_ldt synchronous

2015-07-25 Thread Borislav Petkov
On Fri, Jul 24, 2015 at 09:52:01PM -0700, Andy Lutomirski wrote: > I see your wide terminal and raise you a complete rewrite of that > function. Sigh, why did I assume the old code was the right way to do > it? That's a mostly wrong assumption, as experience proves. > Hah¸ we both missed it.

Re: [PATCH v5 07/19] PCI/MSI: Let pci_msi_get_domain use struct device's msi_domain

2015-07-25 Thread Hanjun Guo
On 07/23/2015 05:26 PM, Marc Zyngier wrote: Now that we can easily find which MSI domain a PCI device is using, use dev_get_msi_domain as a way to retrieve the information. The original code is still used as a fallback. Signed-off-by: Marc Zyngier --- drivers/pci/msi.c | 14 --

Re: [PATCH v5 04/19] PCI/MSI: Add hooks to populate the msi_domain field

2015-07-25 Thread Hanjun Guo
On 07/23/2015 05:26 PM, Marc Zyngier wrote: In order to be able to populate the device msi_domain field, add the necessary hooks to propagate the host bridge msi_domain across secondary busses to devices. So far, nobody populates the initial msi_domain. Signed-off-by: Marc Zyngier ---

Re: [PATCH v5 03/19] device core: Introduce per-device MSI domain pointer

2015-07-25 Thread Hanjun Guo
On 07/23/2015 05:26 PM, Marc Zyngier wrote: As MSI-type features are creeping into non-PCI devices, it is starting to make sense to give our struct device some form of support for this, by allowing a pointer to an MSI irq domain to be set/retrieved. Signed-off-by: Marc Zyngier ---

[RFC v5 01/26] scsi/atari_scsi: Dont select CONFIG_NVRAM

2015-07-25 Thread Finn Thain
On powerpc, setting CONFIG_NVRAM=n builds a kernel with no NVRAM support. Setting CONFIG_NVRAM=m enables the /dev/nvram misc device module without enabling NVRAM support in drivers. Setting CONFIG_NVRAM=y enables the misc device (built-in) and also enables NVRAM support in drivers. m68k shares

[RFC v5 03/26] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-25 Thread Finn Thain
Move the m68k-specific code elsewhere to make the driver generic. Signed-off-by: Finn Thain Tested-by: Christian T. Steigies --- Changes since v3: - Move the vmode fix to a separate patch as requested by Geert. --- arch/m68k/atari/Makefile |2 arch/m68k/atari/nvram.c | 255

[RFC v5 05/26] char/nvram: Re-order functions to remove forward declarations and #ifdefs

2015-07-25 Thread Finn Thain
Also give functions more sensible names: nvram_misc_* for misc device ops, nvram_proc_* for proc file ops and nvram_module_* for init and exit functions. This makes them distict from nvram_ops members. Signed-off-by: Finn Thain --- drivers/char/nvram.c | 194

[RFC v5 04/26] m68k/atari: Replace nvram_{read,write}_byte with arch_nvram_ops

2015-07-25 Thread Finn Thain
By implementing an arch_nvram_ops struct, any platform can re-use the drivers/char/nvram module without needing any arch-specific code in that module. Atari does so here. Atari has one user of nvram_check_checksum() whereas the other platforms (i.e. x86 and ARM platforms) have none at all.

[RFC v5 06/26] char/nvram: Adopt arch_nvram_ops

2015-07-25 Thread Finn Thain
Different platforms and architectures offer different NVRAM sizes and access methods. E.g. PPC32 has byte-at-a-time read/write functions whereas PPC64 has byte-range read/write functions. Adopt the nvram_ops struct so the nvram module can call such functions as are defined by the various

Re: [PATCH v5 02/19] PCI: MSI: Register irq domain with specific token

2015-07-25 Thread Hanjun Guo
On 07/23/2015 05:26 PM, Marc Zyngier wrote: When creating a PCI/MSI domain, tag it with DOMAIN_BUS_PCI_MSI so that it can be looked-up using irq_find_matching_host(). Signed-off-by: Marc Zyngier --- drivers/pci/msi.c | 8 +++- include/linux/irqdomain.h | 1 + 2 files changed, 8

[RFC v5 09/26] char/nvram: Implement NVRAM read/write methods

2015-07-25 Thread Finn Thain
Refactor the RTC "CMOS" NVRAM functions so that they can be used as arch_nvram_ops methods. Checksumming logic is moved from the misc device operations to the nvram read/write operations. This makes the misc device implementation more generic. This also preserves the locking semantics such that

[RFC v5 02/26] char/nvram: Use bitwise OR to obtain Atari video mode data

2015-07-25 Thread Finn Thain
Signed-off-by: Finn Thain Acked-by: Geert Uytterhoeven Tested-by: Christian T. Steigies --- drivers/char/nvram.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/drivers/char/nvram.c === ---

[RFC v5 10/26] char/nvram: Use generic fixed_size_llseek()

2015-07-25 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/char/nvram.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) Index: linux/drivers/char/nvram.c === --- linux.orig/drivers/char/nvram.c 2015-07-25

[RFC v5 07/26] x86/thinkpad_acpi: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2015-07-25 Thread Finn Thain
Make use of arch_nvram_ops in the thinkpad_acpi driver so that the nvram_* function exports can be removed. This patch series was tested on a ThinkPad T43. Signed-off-by: Finn Thain Acked-by: Henrique de Moraes Holschuh Reviewed-by: Darren Hart --- drivers/platform/x86/thinkpad_acpi.c |

[RFC v5 12/26] char/nvram: Add "devname:nvram" module alias

2015-07-25 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/char/nvram.c |1 + 1 file changed, 1 insertion(+) Index: linux/drivers/char/nvram.c === --- linux.orig/drivers/char/nvram.c 2015-07-25 17:45:35.0 +1000 +++

[RFC v5 11/26] m68k/atari: Implement arch_nvram_ops methods and enable CONFIG_HAVE_ARCH_NVRAM_OPS

2015-07-25 Thread Finn Thain
Atari RTC NVRAM has a checksum so implement the remaining arch_nvram_ops methods for the set_checksum and initialize ioctls. Enable CONFIG_HAVE_ARCH_NVRAM_OPS. Signed-off-by: Finn Thain --- This re-enables the nvram module for Atari. Changes since v3: - Use bool (and select) instead of

[RFC v5 16/26] powerpc: Implement nvram sync ioctl

2015-07-25 Thread Finn Thain
Add the powerpc-specific sync() method to struct nvram_ops and implement the corresponding ioctl in the nvram module. This allows the nvram module to replace the generic_nvram module. Signed-off-by: Finn Thain --- On PPC32, the IOC_NVRAM_SYNC ioctl call always returns 0, even for those

[RFC v5 15/26] powerpc: Implement arch_nvram_ops.get_size() and remove old nvram_* exports

2015-07-25 Thread Finn Thain
Implement arch_nvram_ops for PPC32 and make use of it in the generic_nvram misc device module so that the nvram_* function exports can be removed. Signed-off-by: Finn Thain --- arch/powerpc/include/asm/nvram.h |3 --- arch/powerpc/kernel/setup_32.c | 10 +++---

[RFC v5 14/26] powerpc: Add missing ppc_md.nvram_size for CHRP and PowerMac

2015-07-25 Thread Finn Thain
Add the nvram_size() function to those PowerPC platforms that don't already have one: CHRP and PowerMac. This means that the ppc_md.nvram_size() function can be used to implement arch_nvram_ops.get_size() Since we are addressing inconsistencies here, also rename chrp_nvram_read and

[RFC v5 20/26] powerpc: Remove CONFIG_GENERIC_NVRAM and adopt CONFIG_HAVE_ARCH_NVRAM_OPS

2015-07-25 Thread Finn Thain
Switch PPC32 kernels from the generic_nvram module to the nvram module. Also fix a theoretical bug where CHRP omits the chrp_nvram_init() call when CONFIG_NVRAM_MODULE=m. As before, when CONFIG_PPC && !CONFIG_PPC_PMAC, the IOC_NVRAM_GET_OFFSET ioctl is unimplemented. For the nvram module,

[RFC v5 13/26] powerpc: Cleanup nvram includes

2015-07-25 Thread Finn Thain
The nvram_read_byte() and nvram_write_byte() definitions in asm/nvram.h duplicate those in linux/nvram.h. Get rid of the former to prepare for adoption of struct arch_nvram_ops (which is defined in linux/nvram.h for general use). Signed-off-by: Finn Thain --- Changes since v4: - Fix possible

[RFC v5 22/26] powerpc: Adopt nvram module for PPC64

2015-07-25 Thread Finn Thain
Adopt nvram module to reduce code duplication. The IOC_NVRAM_GET_OFFSET ioctl as implemented on PPC64 validates the offset returned by pmac_get_partition(). Add this test to the nvram module. Note that the old PPC32 generic_nvram module lacked this test. So when CONFIG_PPC32 && CONFIG_PPC_PMAC,

[RFC v5 19/26] nvram: Drop nvram_* symbol exports and prototypes

2015-07-25 Thread Finn Thain
Drivers now use the arch_nvram_ops calls so remove the function exports and prototypes. nvram_check_checksum() is unused so remove it. Signed-off-by: Finn Thain --- arch/m68k/atari/nvram.c |6 +++--- drivers/char/nvram.c| 27 +-- include/linux/nvram.h |8

[RFC v5 23/26] m68k/mac: Adopt naming and calling conventions for PRAM routines

2015-07-25 Thread Finn Thain
Adopt the existing *_read_byte and *_write_byte naming convention. Rename via_pram_readbyte and via_pram_writebyte to avoid confusion. Adjust calling conventions of mac_pram_* functions to match the arch_nvram_ops struct methods. Signed-off-by: Finn Thain --- Changes since v1: - Don't

[RFC v5 26/26] m68k: Dispatch nvram_ops calls to Atari or Mac functions

2015-07-25 Thread Finn Thain
A multi-platform kernel binary needs to decide at run-time how to dispatch the arch_nvram_ops calls. Add platform-independent arch_nvram_ops, for use when multiple platform-specific NVRAM ops implementations are needed. Enable CONFIG_HAVE_ARCH_NVRAM_OPS for Macs. Signed-off-by: Finn Thain

[RFC v5 25/26] m68k/mac: Fix PRAM accessors

2015-07-25 Thread Finn Thain
Signed-off-by: Finn Thain --- Tested on a PowerBook 520 and Quadra 650. Changes since v2: - Make use of the RTC_* macros from the previous patch and add a few more besides. --- arch/m68k/mac/misc.c | 39 +-- include/uapi/linux/pmu.h |2 ++ 2

[RFC v5 18/26] powerpc, fbdev: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2015-07-25 Thread Finn Thain
Make use of arch_nvram_ops in device drivers so that the nvram_* function exports can be removed. Since they are no longer global symbols, rename the PPC32 nvram_* functions appropriately. Signed-off-by: Finn Thain --- Changed since v4: - Split off the CONFIG_PPC32, CONFIG_PPC_PMAC and

[RFC v5 21/26] char/generic_nvram: Remove as unused

2015-07-25 Thread Finn Thain
And thus eliminate some twisted CONFIG_GENERIC_NVRAM logic. Signed-off-by: Finn Thain --- drivers/char/Makefile|6 - drivers/char/generic_nvram.c | 175 --- 2 files changed, 1 insertion(+), 180 deletions(-) Index:

[RFC v5 17/26] powerpc, fbdev: Use NV_CMODE and NV_VMODE only when CONFIG_PPC32 and CONFIG_PPC_PMAC and CONFIG_NVRAM

2015-07-25 Thread Finn Thain
This patch addresses inconsistencies in Mac framebuffer drivers and their use of Kconfig symbols relating to NVRAM, so PPC64 can use CONFIG_NVRAM. Macintosh framebuffer drivers use default settings for color mode and video mode that are found in NVRAM. On PCI Macs, MacOS stores display settings

[RFC v5 24/26] m68k/mac: Use macros for RTC accesses not magic numbers

2015-07-25 Thread Finn Thain
Signed-off-by: Finn Thain --- This is intended to improve code style and not affect code behaviour. I've tested this on a Quadra 650. I don't know the meanings of the 4 undocumented write protect register bits 0x55, so I decided against defining 4 macros for those bits. ---

[RFC v5 08/26] char/nvram: Allow the set_checksum and initialize ioctls to be omitted

2015-07-25 Thread Finn Thain
The drivers/char/nvram module has previously only supported RTC "CMOS" NVRAM, for which it provides appropriate checksum ioctls. Make these ioctls optional so the module can be re-used with other kinds of NVRAM. The ops struct methods that implement the ioctls now return error codes so that a

[RFC v5 00/26] Re-use nvram module

2015-07-25 Thread Finn Thain
The generic NVRAM module, drivers/char/generic_nvram, implements a /dev/nvram misc device. It is used only by 32-bit PowerPC platforms and isn't generic enough to be more widely used. The RTC NVRAM module, drivers/char/nvram, also implements a /dev/nvram misc device. It is used by x86, ARM and

Re: [PATCH v4 2/3] x86/ldt: Make modify_ldt optional

2015-07-25 Thread Willy Tarreau
On Fri, Jul 24, 2015 at 11:44:52PM -0700, Andy Lutomirski wrote: > I'm all for it, but I think it should be hard-disablable in config, > too, for the -tiny people. I totally agree. > If we add a runtime disable, let's do a > separate patch, and you and Kees can fight over how general it should >

[PATCH] parport: Revert "parport: fix memory leak"

2015-07-25 Thread Sudip Mukherjee
This reverts commit 23c405912b88 ("parport: fix memory leak") par_dev->state was already being removed in parport_unregister_device(). Reported-by: Ying Huang Signed-off-by: Sudip Mukherjee --- But I am surprised at two points: 1) Why the error came while loading the gs_fpgaboot module?

Re: [PATCH v2] clk: exynos4: Fix wrong clock for Exynos4x12 ADC

2015-07-25 Thread Sylwester Nawrocki
On 12/06/15 03:53, Krzysztof Kozlowski wrote: > The TSADC gate clock was used in Exynos4x12 DTSI for exynos-adc driver. > However TSADC is present only on Exynos4210 so on Trats2 board (with > Exynos4412 SoC) the exynos-adc driver could not be probed: >ERROR: could not get clock

Re: [RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-25 Thread Finn Thain
On Sat, 25 Jul 2015, Michael Ellerman wrote: > On Sat, 2015-07-25 at 10:35 +1000, Finn Thain wrote: > > > > Thanks for helping with this, Christian. I'll add your name in > > "Tested-by" tags on the relevant patches. These are rudimentary tests > > but combined with my own testing on m68k,

Re: [RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-25 Thread Finn Thain
On Sat, 25 Jul 2015, Michael Schmitz wrote: > Hi Christian, > > good to know this worked - for the record (Finn), this is the kernel > with Finn's patch applied. That was v5 of this patch series. I will send that out to the lists now. It has some minor changes that relate to powerpc. Thanks

[PATCH 2/3] ARM: dts: UniPhier: add UART and USB pinmux nodes

2015-07-25 Thread Masahiro Yamada
The DT nodes in uniphier-pinctrl.dtsi provide the default pinctrl settings that would be suitable for most boards. You can still override them in your board DTS file if necessary. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier-ph1-ld4.dtsi | 16 ++

[PATCH 0/3] ARM: UniPhier: update DTS and MAINTAINERS

2015-07-25 Thread Masahiro Yamada
Hi Arnd and Olof, The pinctrl drivers for UniPhier SoCs were accepted by Linus Walleij into the linux-pinctrl subsystem. Here is a small series I'd like you to merge into the ARM-SOC subsystem to use my pinctrl drivers. Masahiro Yamada (3): ARM: dts: UniPhier: add pinctrl device nodes

[PATCH 1/3] ARM: dts: UniPhier: add pinctrl device nodes

2015-07-25 Thread Masahiro Yamada
Add the pinctrol device nodes for UniPhier PH1-LD4, PH1-Pro4, and PH1-sLD8. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier-ph1-ld4.dtsi | 6 ++ arch/arm/boot/dts/uniphier-ph1-pro4.dtsi | 6 ++ arch/arm/boot/dts/uniphier-ph1-sld8.dtsi | 6 ++ 3 files changed, 18

[PATCH 3/3] MAINTAINERS: add entries for UniPhier device trees and drivers

2015-07-25 Thread Masahiro Yamada
This clarifies the location of the files maintained by me. Signed-off-by: Masahiro Yamada --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2eb6272..1c93835 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1579,7 +1579,10 @@ ARM/UNIPHIER

Re: [PATCH v5 01/19] genirq: irqdomain: Allow irq domain aliasing

2015-07-25 Thread Hanjun Guo
On 07/23/2015 05:26 PM, Marc Zyngier wrote: It is not uncommon (at least with the ARM stuff) to have a piece of hardware that implements different flavours of "interrupts". A typical example of this is the GICv3 ITS, which implements standard PCI/MSI support, but also some form of "generic MSI".

Re: [PATCH v2] thermal: consistently use int for temperatures

2015-07-25 Thread Pavel Machek
On Fri 2015-07-24 15:49:41, Guenter Roeck wrote: > On 07/24/2015 03:11 PM, Pavel Machek wrote: > >On Fri 2015-07-24 06:59:26, Guenter Roeck wrote: > >>On 07/23/2015 11:29 PM, Sascha Hauer wrote: > >>>On Thu, Jul 23, 2015 at 02:07:59PM +0200, Pavel Machek wrote: > On Tue 2015-07-21 09:21:32,

Re: [PATCH v2] cgroup: net_cls: fix false-positive "suspicious RCU usage"

2015-07-25 Thread David Miller
From: Konstantin Khlebnikov Date: Wed, 22 Jul 2015 12:23:20 +0300 > In dev_queue_xmit() net_cls protected with rcu-bh. ... > Signed-off-by: Konstantin Khlebnikov Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v2 5/7] acpi: gsi: Add acpi_set_irq_model to initialize the GSI layer

2015-07-25 Thread Hanjun Guo
On 07/24/2015 08:27 PM, Marc Zyngier wrote: On 24/07/15 11:00, Hanjun Guo wrote: On 07/23/2015 09:05 PM, Marc Zyngier wrote: In order to start embrassing irqdomains at the GSI level, introduce a new initializer: void acpi_set_irq_model(enum acpi_irq_model_id model,

Re: [PATCH] target: fix crash in cmd tracing when cmd didn't match a LUN

2015-07-25 Thread Christoph Hellwig
On Fri, Jul 24, 2015 at 01:32:14PM -0700, Nicholas A. Bellinger wrote: > We've already been through this discussion a couple of years back when > target_submit_cmd() first came into existence. > > The reason iscsi/iser-target continues to be a special case is due to > immediate data vs. non

Re: [PATCH v4 2/3] x86/ldt: Make modify_ldt optional

2015-07-25 Thread Andy Lutomirski
On Fri, Jul 24, 2015 at 11:23 PM, Willy Tarreau wrote: > On Fri, Jul 24, 2015 at 10:36:45PM -0700, Andy Lutomirski wrote: >> The modify_ldt syscall exposes a large attack surface and is >> unnecessary for modern userspace. Make it optional. > > Andy, you didn't respond whether you think it

Re: [PATCH v2 00/10] pwm: add support for atomic update

2015-07-25 Thread Boris Brezillon
Hi Thierry, Should I resend a new version rebased on Mark's pwm topic branch or would you like to review this one first ? Best Regards, Boris On Mon, 20 Jul 2015 17:31:57 +0200 Boris Brezillon wrote: > Hello Thierry, > > This series adds support for atomic PWM update, or IOW, the capability

Re: [PATCH] target: add support for START_STOP_UNIT SCSI opcode

2015-07-25 Thread Christoph Hellwig
On Fri, Jul 24, 2015 at 03:06:12AM +, Elliott, Robert (Server Storage) wrote: > Note that the officially published versions of the ISO and ANSI > standards don't carry that revision number r36; they just have > the standard name and year. SBC-3 revision 36 became > "ANSI INCITS 514-2014

Re: [PATCH] qla2xxx: Return the fabric command state for non-task management requests

2015-07-25 Thread Christoph Hellwig
Which debug printk do you care about? I'd much prefer having a trace point inside the driver which could even pretty print it instead of the hack where a driver defined binary value is printed by the core. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-25 Thread Willy Tarreau
On Fri, Jul 24, 2015 at 10:36:43PM -0700, Andy Lutomirski wrote: > Willy and Kees: I left the config option alone. The -tiny people will > like it, and we can always add a sysctl of some sort later. OK, please ignore my other e-mail I missed this part. I'll see if I can propose the sysctl

Re: [PATCH v5 4/5] null_blk: LightNVM support

2015-07-25 Thread Christoph Hellwig
On Thu, Jul 23, 2015 at 12:48:00PM +0200, Matias Bj?rling wrote: > Only reason was to not duplicate the I/O submission/completion flow. > With the simple code at the moment, it is little to add. However, if > someone decides to put backing store, simulation, etc. into it, then it > should properly

[PATCH v2] watchdog: sunxi: fix activation of system reset

2015-07-25 Thread Francesco Lavra
Commit f2147de33470 ("watchdog: sunxi: support parameterized compatible strings") introduced a regression in sunxi_wdt_start(), by which the system reset function of the watchdog is not enabled upon starting the watchdog. As a result, the system is not reset when the watchdog expires. Fix it.

Re: [PATCH v4 2/3] x86/ldt: Make modify_ldt optional

2015-07-25 Thread Willy Tarreau
On Fri, Jul 24, 2015 at 10:36:45PM -0700, Andy Lutomirski wrote: > The modify_ldt syscall exposes a large attack surface and is > unnecessary for modern userspace. Make it optional. Andy, you didn't respond whether you think it wouldn't be better to make it runtime-configurable instead. The goal

[PATCH 2/2] secutity:lsm_audit.c fixed spelling error.

2015-07-25 Thread Bharadwaaj
From: "bhaaradw...@gmail.com" Signed-off-by: Bharadwaaj --- security/lsm_audit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/lsm_audit.c b/security/lsm_audit.c index 4ed9810..82dda30 100644 --- a/security/lsm_audit.c +++ b/security/lsm_audit.c @@ -214,7 +214,7

[lkp] [sched/preempt] 103637a5b94: 12.4% fsmark.app_overhead, -1.4% fsmark.files_per_sec

2015-07-25 Thread kernel test robot
FYI, we noticed the below changes on git://internal_merge_and_test_tree revert-103637a5b947af7e6abb8d19b341acff6fbf1ec3-103637a5b947af7e6abb8d19b341acff6fbf1ec3 commit 103637a5b947af7e6abb8d19b341acff6fbf1ec3 ("sched/preempt: Fix cond_resched_lock() and cond_resched_softirq()")

[lkp] [parport] 23c405912b8: BUG: unable to handle kernel

2015-07-25 Thread kernel test robot
FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 23c405912b881e3ca516554efde852c2ad550b31 ("parport: fix memory leak") ++++ |

Re: [PATCH] watchdog: sunxi: fix activation of system reset

2015-07-25 Thread Francesco Lavra
Hi, On 07/20/2015 10:26 AM, Maxime Ripard wrote: Hi Francesco, Your patch looks mostly good, but there's just a few minor things. On Mon, Jul 06, 2015 at 07:59:39PM +0200, Francesco Lavra wrote: Commit f2147de3 ("watchdog: sunxi: support parameterized compatible The commit ID should have

Re: [PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-25 Thread chunfeng yun
Hi, On Wed, 2015-07-22 at 15:22 +0100, Mark Rutland wrote: On Wed, Jul 22, 2015 at 03:05:42PM +0100, Chunfeng Yun wrote: add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com ---

Re: [PATCH v2] clk: exynos4: Fix wrong clock for Exynos4x12 ADC

2015-07-25 Thread Sylwester Nawrocki
On 07/22/2015 08:41 AM, Krzysztof Kozlowski wrote: On 22.07.2015 07:42, Stephen Boyd wrote: On 06/12, Krzysztof Kozlowski wrote: [...] Signed-off-by: Krzysztof Kozlowskik.kozlow...@samsung.com Cc:sta...@vger.kernel.org Fixes: c63c57433003 (ARM: dts: Add ADC's dt data to read raw data for

[PATCH 2/3] ARM: dts: UniPhier: add UART and USB pinmux nodes

2015-07-25 Thread Masahiro Yamada
The DT nodes in uniphier-pinctrl.dtsi provide the default pinctrl settings that would be suitable for most boards. You can still override them in your board DTS file if necessary. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- arch/arm/boot/dts/uniphier-ph1-ld4.dtsi | 16

[PATCH 0/3] ARM: UniPhier: update DTS and MAINTAINERS

2015-07-25 Thread Masahiro Yamada
Hi Arnd and Olof, The pinctrl drivers for UniPhier SoCs were accepted by Linus Walleij into the linux-pinctrl subsystem. Here is a small series I'd like you to merge into the ARM-SOC subsystem to use my pinctrl drivers. Masahiro Yamada (3): ARM: dts: UniPhier: add pinctrl device nodes

[PATCH 1/3] ARM: dts: UniPhier: add pinctrl device nodes

2015-07-25 Thread Masahiro Yamada
Add the pinctrol device nodes for UniPhier PH1-LD4, PH1-Pro4, and PH1-sLD8. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- arch/arm/boot/dts/uniphier-ph1-ld4.dtsi | 6 ++ arch/arm/boot/dts/uniphier-ph1-pro4.dtsi | 6 ++ arch/arm/boot/dts/uniphier-ph1-sld8.dtsi | 6

[PATCH 3/3] MAINTAINERS: add entries for UniPhier device trees and drivers

2015-07-25 Thread Masahiro Yamada
This clarifies the location of the files maintained by me. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2eb6272..1c93835 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1579,7

Re: [RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-25 Thread Finn Thain
On Sat, 25 Jul 2015, Michael Ellerman wrote: On Sat, 2015-07-25 at 10:35 +1000, Finn Thain wrote: Thanks for helping with this, Christian. I'll add your name in Tested-by tags on the relevant patches. These are rudimentary tests but combined with my own testing on m68k, ppc32 and

[RFC v5 25/26] m68k/mac: Fix PRAM accessors

2015-07-25 Thread Finn Thain
Signed-off-by: Finn Thain fth...@telegraphics.com.au --- Tested on a PowerBook 520 and Quadra 650. Changes since v2: - Make use of the RTC_* macros from the previous patch and add a few more besides. --- arch/m68k/mac/misc.c | 39 +--

[RFC v5 26/26] m68k: Dispatch nvram_ops calls to Atari or Mac functions

2015-07-25 Thread Finn Thain
A multi-platform kernel binary needs to decide at run-time how to dispatch the arch_nvram_ops calls. Add platform-independent arch_nvram_ops, for use when multiple platform-specific NVRAM ops implementations are needed. Enable CONFIG_HAVE_ARCH_NVRAM_OPS for Macs. Signed-off-by: Finn Thain

[RFC v5 19/26] nvram: Drop nvram_* symbol exports and prototypes

2015-07-25 Thread Finn Thain
Drivers now use the arch_nvram_ops calls so remove the function exports and prototypes. nvram_check_checksum() is unused so remove it. Signed-off-by: Finn Thain fth...@telegraphics.com.au --- arch/m68k/atari/nvram.c |6 +++--- drivers/char/nvram.c| 27 +--

[RFC v5 23/26] m68k/mac: Adopt naming and calling conventions for PRAM routines

2015-07-25 Thread Finn Thain
Adopt the existing *_read_byte and *_write_byte naming convention. Rename via_pram_readbyte and via_pram_writebyte to avoid confusion. Adjust calling conventions of mac_pram_* functions to match the arch_nvram_ops struct methods. Signed-off-by: Finn Thain fth...@telegraphics.com.au --- Changes

[RFC v5 22/26] powerpc: Adopt nvram module for PPC64

2015-07-25 Thread Finn Thain
Adopt nvram module to reduce code duplication. The IOC_NVRAM_GET_OFFSET ioctl as implemented on PPC64 validates the offset returned by pmac_get_partition(). Add this test to the nvram module. Note that the old PPC32 generic_nvram module lacked this test. So when CONFIG_PPC32 CONFIG_PPC_PMAC,

[RFC v5 05/26] char/nvram: Re-order functions to remove forward declarations and #ifdefs

2015-07-25 Thread Finn Thain
Also give functions more sensible names: nvram_misc_* for misc device ops, nvram_proc_* for proc file ops and nvram_module_* for init and exit functions. This makes them distict from nvram_ops members. Signed-off-by: Finn Thain fth...@telegraphics.com.au --- drivers/char/nvram.c | 194

[RFC v5 04/26] m68k/atari: Replace nvram_{read,write}_byte with arch_nvram_ops

2015-07-25 Thread Finn Thain
By implementing an arch_nvram_ops struct, any platform can re-use the drivers/char/nvram module without needing any arch-specific code in that module. Atari does so here. Atari has one user of nvram_check_checksum() whereas the other platforms (i.e. x86 and ARM platforms) have none at all.

Re: [PATCH v5 02/19] PCI: MSI: Register irq domain with specific token

2015-07-25 Thread Hanjun Guo
On 07/23/2015 05:26 PM, Marc Zyngier wrote: When creating a PCI/MSI domain, tag it with DOMAIN_BUS_PCI_MSI so that it can be looked-up using irq_find_matching_host(). Signed-off-by: Marc Zyngier marc.zyng...@arm.com --- drivers/pci/msi.c | 8 +++- include/linux/irqdomain.h | 1 +

[RFC v5 06/26] char/nvram: Adopt arch_nvram_ops

2015-07-25 Thread Finn Thain
Different platforms and architectures offer different NVRAM sizes and access methods. E.g. PPC32 has byte-at-a-time read/write functions whereas PPC64 has byte-range read/write functions. Adopt the nvram_ops struct so the nvram module can call such functions as are defined by the various

[RFC v5 03/26] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-25 Thread Finn Thain
Move the m68k-specific code elsewhere to make the driver generic. Signed-off-by: Finn Thain fth...@telegraphics.com.au Tested-by: Christian T. Steigies c...@debian.org --- Changes since v3: - Move the vmode fix to a separate patch as requested by Geert. --- arch/m68k/atari/Makefile |2

[RFC v5 01/26] scsi/atari_scsi: Dont select CONFIG_NVRAM

2015-07-25 Thread Finn Thain
On powerpc, setting CONFIG_NVRAM=n builds a kernel with no NVRAM support. Setting CONFIG_NVRAM=m enables the /dev/nvram misc device module without enabling NVRAM support in drivers. Setting CONFIG_NVRAM=y enables the misc device (built-in) and also enables NVRAM support in drivers. m68k shares

Re: [PATCH v5 03/19] device core: Introduce per-device MSI domain pointer

2015-07-25 Thread Hanjun Guo
On 07/23/2015 05:26 PM, Marc Zyngier wrote: As MSI-type features are creeping into non-PCI devices, it is starting to make sense to give our struct device some form of support for this, by allowing a pointer to an MSI irq domain to be set/retrieved. Signed-off-by: Marc Zyngier

Re: linux 4.2-rc1 broken Nokia N900

2015-07-25 Thread Pali Rohár
On Wednesday 22 July 2015 04:03:07 Sebastian Reichel wrote: Hi, On Tue, Jul 21, 2015 at 07:17:41PM -0500, Michael Welling wrote: On Tue, Jul 21, 2015 at 11:34:41AM +0200, Pavel Machek wrote: This code has my head spinning. I found that the errors do not occur when the driver is

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-25 Thread Minfei Huang
Hi, Vivek. Since Dave acked this patch, Could you help to merge it? Thanks Minfei On 06/15/15 at 05:28pm, Dave Young wrote: On 06/06/15 at 02:14pm, Minfei Huang wrote: From: Minfei Huang mnfhu...@gmail.com Transforming PFN(Page Frame Number) to struct page is never failure, so we can

[PATCH] pinctrl: nomadik: split stn8815 UART0 pin groups

2015-07-25 Thread Linus Walleij
Split the UART pin groups so we can activate RX/TX, CTS/RTS and the modem pins (DCD, DSR, RI, DTR) as three different groups with function u0. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- drivers/pinctrl/nomadik/pinctrl-nomadik-stn8815.c | 14 +- 1 file changed, 9

Re: [PATCH] target: fix crash in cmd tracing when cmd didn't match a LUN

2015-07-25 Thread Nicholas A. Bellinger
On Sat, 2015-07-25 at 08:48 +0200, Christoph Hellwig wrote: On Fri, Jul 24, 2015 at 01:32:14PM -0700, Nicholas A. Bellinger wrote: We've already been through this discussion a couple of years back when target_submit_cmd() first came into existence. The reason iscsi/iser-target continues

Re: [RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-25 Thread Finn Thain
On Sat, 25 Jul 2015, Michael Schmitz wrote: Hi Christian, good to know this worked - for the record (Finn), this is the kernel with Finn's patch applied. That was v5 of this patch series. I will send that out to the lists now. It has some minor changes that relate to powerpc. Thanks for

Re: [PATCH v2] clk: exynos4: Fix wrong clock for Exynos4x12 ADC

2015-07-25 Thread Sylwester Nawrocki
On 12/06/15 03:53, Krzysztof Kozlowski wrote: The TSADC gate clock was used in Exynos4x12 DTSI for exynos-adc driver. However TSADC is present only on Exynos4210 so on Trats2 board (with Exynos4412 SoC) the exynos-adc driver could not be probed: ERROR: could not get clock

Re: [PATCH v4 2/3] x86/ldt: Make modify_ldt optional

2015-07-25 Thread Willy Tarreau
On Fri, Jul 24, 2015 at 11:44:52PM -0700, Andy Lutomirski wrote: I'm all for it, but I think it should be hard-disablable in config, too, for the -tiny people. I totally agree. If we add a runtime disable, let's do a separate patch, and you and Kees can fight over how general it should be.

[PATCH] parport: Revert parport: fix memory leak

2015-07-25 Thread Sudip Mukherjee
This reverts commit 23c405912b88 (parport: fix memory leak) par_dev-state was already being removed in parport_unregister_device(). Reported-by: Ying Huang ying.hu...@intel.com Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- But I am surprised at two points: 1) Why the error came while

<    1   2   3   4   >