Re: [PATCH v3 32/51] resources: Split out __allocate_resource()

2015-08-18 Thread Yinghai Lu
On Mon, Aug 17, 2015 at 9:14 PM, Bjorn Helgaas wrote: > On Mon, Jul 27, 2015 at 04:29:50PM -0700, Yinghai Lu wrote: >> It will not hold lock, so we could use it in other functions that >> hold the resource lock already. > > What's the benefit of this patch? Does it fix something? Does it add som

Re: [PATCH v3 2/4] ASoC: rockchip: Add rockchip SPDIF transceiver driver

2015-08-18 Thread Sjoerd Simons
Hey Heiko, Thanks for the comments, i'm hoping to address them and Marks comments in a next patch series next week. On Tue, 2015-08-18 at 20:25 +0200, Heiko Stuebner wrote: > > + > > + spdif->hclk = devm_clk_get(&pdev->dev, "spdif_hclk"); > I guess this could be named just "hclk" - as it is

Re: [Patch v2] x86, ACPI, irq: Add a quirk to override SCI polarity for HyperV

2015-08-18 Thread Jiang Liu
On 2015/8/19 14:45, Rafael J. Wysocki wrote: > Hi, > > On Wed, Aug 19, 2015 at 8:26 AM, Jiang Liu wrote: >> On 2015/8/19 14:04, Rafael J. Wysocki wrote: >>> Hi, >>> >>> On Wed, Aug 19, 2015 at 7:53 AM, Jiang Liu >>> wrote: Nick Meier reported a regression with HyperV that " After re

Re: [GIT PULL] x86 fixes

2015-08-18 Thread Ingo Molnar
* Ingo Molnar wrote: > > * H. Peter Anvin wrote: > > > On 08/17/2015 10:17 AM, Linus Torvalds wrote: > > > On Mon, Aug 17, 2015 at 9:58 AM, H. Peter Anvin wrote: > > >> > > >> That is not true. It *does* work, and I have tested it fairly recently. > > > > > > Ok, so it's not too badly brok

[PATCH v3 1/5] sched: add two functions adjusting cfs_rq's load when att(det)aching a se

2015-08-18 Thread byungchul . park
From: Byungchul Park this patch introduces two functions adjusting cfs_rq's average load when att(det)aching a se to(from) the cfs_rq, and let them use these functions. Signed-off-by: Byungchul Park --- kernel/sched/fair.c | 58 +++ 1 file chan

[PATCH v3 5/5] sched: add two functions for att(det)aching a task to(from) a cfs_rq

2015-08-18 Thread byungchul . park
From: Byungchul Park this patch introduces two functions for adjusting a task's vruntime and the target cfs_rq's average load so that redundancy code doing same things can be simplified. and it provides better readability. switched_from_fair, switched_to_fair and task_move_group_fair can use int

[PATCH v3 2/5] sched: make task_move_group_fair adjust cfs_rq's load in case of queued

2015-08-18 Thread byungchul . park
From: Byungchul Park se's average load should be added to new cfs_rq, not only in case of !queued but also in case of queued. of course, older code managed cfs_rq's blocked load separately. in that case, the blocked load was meaningful only in case that the se is in !queued. but now load trackin

[PATCH v3 3/5] sched: sync a se with prev cfs_rq when changing cgroup

2015-08-18 Thread byungchul . park
From: Byungchul Park current code is wrong with cfs_rq's average load when changing a task's cfs_rq to another. i tested with "echo pid > cgroup" and found that e.g. cfs_rq->avg.load_avg became larger and larger whenever changing cgroup to another again and again. we have to sync se's average loa

[PATCH] scripts: Extract kernel headers for out of tree modules build

2015-08-18 Thread Daniel Baluta
scripts/package/builddeb already creates a linux-keader .deb package, but we need this feature also for non-Debian distros (e.g. Android or LFS). Signed-off-by: Daniel Baluta --- Makefile | 10 +- scripts/modules_headers_install.sh | 40 +

[PATCH v3 0/5] sync a se with its cfs_rq when att(det)aching it

2015-08-18 Thread byungchul . park
From: Byungchul Park hello, there are 3 problems when att(det)aching a se to(from) its cfs_rq. problem 1. se's average load is not accounted with new cfs_rq in queued case, when a task changes its cgroup. problem 2. cfs_rq->avg.load_avg becomes larger and larger whenever changing cgroup to ano

[PATCH v3 4/5] sched: sync a se with its cfs_rq when switching sched class to fair class

2015-08-18 Thread byungchul . park
From: Byungchul Park we have to sync a se with its cfs_rq, when switching sched class to fair class. current code does not sync it because the se average load won't be valid any more if it has been detached for a long time. however the se's average load would be valid just after being detached f

[PATCH] staging: lustre: fix whitespace errors reported by checkpatch.pl

2015-08-18 Thread Mike Rapoport
Added/removed spaces and replaced '+1' with '1' in several places to eliminate SPACING and POINTER_LOCATION errors reported by checkpatch.pl Signed-off-by: Mike Rapoport --- This time with more elaborate changelog... .../staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 4 +- drivers/staging/

Re: [Patch v2] x86, ACPI, irq: Add a quirk to override SCI polarity for HyperV

2015-08-18 Thread Rafael J. Wysocki
Hi, On Wed, Aug 19, 2015 at 8:26 AM, Jiang Liu wrote: > On 2015/8/19 14:04, Rafael J. Wysocki wrote: >> Hi, >> >> On Wed, Aug 19, 2015 at 7:53 AM, Jiang Liu wrote: >>> Nick Meier reported a regression with HyperV that " >>> After rebooting the VM, the following messages are logged in syslog >>

Re: [PATCH V3] Watchdog: Fix parent of watchdog_devices

2015-08-18 Thread Uwe Kleine-König
Hello, On Wed, Aug 19, 2015 at 08:58:24AM +0530, Pratyush Anand wrote: > /sys/class/watchdog/watchdogn/device/modalias can help to identify the > driver/module for a given watchdog node. However, many wdt devices does not > set s/es// > its parent and so, we do not see an entry for device in sy

Re: [PATCH v2 4/5] KVM: add KVM_USER_EXIT vcpu ioctl for userspace exit

2015-08-18 Thread Avi Kivity
On 08/18/2015 10:57 PM, Paolo Bonzini wrote: On 18/08/2015 11:30, Avi Kivity wrote: KVM_USER_EXIT in practice should be so rare (at least with in-kernel LAPIC) that I don't think this matters. KVM_USER_EXIT is relatively uninteresting, it only exists to provide an alternative to signals that d

Re: [PATCH 0/7] gpio: omap: fixes and improvements

2015-08-18 Thread Tony Lindgren
Hi, * Grygorii Strashko [150818 04:14]: > Hi, > > This patch series contains set of trivial fixes and improvements, and also > patches which fixes wrong APIs usage in atomic context as for -RT as for > non-RT kernel. The final goal of this series is to make TI OMAP GPIO > driver compatible with

Re: [PATCH v3 28/51] PCI: Unifiy calculate_size for io port and mmio

2015-08-18 Thread Yinghai Lu
On Mon, Aug 17, 2015 at 9:13 PM, Bjorn Helgaas wrote: > On Mon, Jul 27, 2015 at 04:29:46PM -0700, Yinghai Lu wrote: >> We should check size+size1 with min_size for io port. >> For example, when hotplug bridge has two children bridges, >> every child bridge will need 0x1000, so size1 will be 0x2000

Re: [PATCH] x86: Kill E820_RESERVED_KERN

2015-08-18 Thread Yu Chen
Hi, On 07/29/2015 03:21 AM, Yinghai Lu wrote: E820_RESERVED_KERN was introduced to do early allocation for setup_data when we were using original early_res with e820 map. Now we are using memblock to do early resource reserve/allocation, and setup_data is reserved in memblock early already. For

Re: [PATCH v3 27/51] PCI: Move ISA ioport align out of calculate_iosize

2015-08-18 Thread Yinghai Lu
On Mon, Aug 17, 2015 at 9:11 PM, Bjorn Helgaas wrote: > On Mon, Jul 27, 2015 at 04:29:45PM -0700, Yinghai Lu wrote: >> So we could unify calculate_iosize and calculate_memsize later. > > Please make this a complete sentence, not just a continuation of the > summary line. > >> when one bridge have

Re: linux-next: Tree for Aug 18 (drivers/media/i2c/tc358743.c)

2015-08-18 Thread Hans Verkuil
On 08/18/2015 05:26 PM, Randy Dunlap wrote: > On 08/18/15 04:40, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20150817: >> > > on i386: > > when CONFIG_MEDIA_CONTROLLER is not enabled: > > ../drivers/media/i2c/tc358743.c: In function 'tc358743_probe': > ../drivers/media/i2c/tc358743.c:

Re: [Patch v2] x86, ACPI, irq: Add a quirk to override SCI polarity for HyperV

2015-08-18 Thread Jiang Liu
On 2015/8/19 14:04, Rafael J. Wysocki wrote: > Hi, > > On Wed, Aug 19, 2015 at 7:53 AM, Jiang Liu wrote: >> Nick Meier reported a regression with HyperV that " >> After rebooting the VM, the following messages are logged in syslog >> when trying to load the tulip driver: >> tulip: Linux T

Re: [PATCH] mtd: nand: pxa3xx-nand: fix random command timeouts

2015-08-18 Thread Robert Jarzmik
Brian Norris writes: > Hi Robert, > > On Mon, Aug 17, 2015 at 09:15:48PM +0200, Robert Jarzmik wrote: >> Ezequiel Garcia writes: >> > So unless I'm completely off, the current patch is right, and a comment >> > would be helpful. >> Ok Ezequiel, I'll wait for your Tested-by, and respin with somet

Re: [PATCH 03/13] twl4030_charger: correctly handle -EPROBE_DEFER from devm_usb_get_phy_by_node

2015-08-18 Thread Tony Lindgren
* NeilBrown [150818 17:32]: > On Tue, 18 Aug 2015 01:07:58 -0700 Tony Lindgren > wrote: > > > * NeilBrown [150729 17:29]: > > > Now that twl4030_bci_probe can safely return -EPROBE_DEFER, > > > do so when devm_usb_get_phy_by_node returns that error. > > > > > > Signed-off-by: NeilBrown > > >

Re: [PATCH v3 25/51] PCI: Fix size calculation with old_size on rescan path

2015-08-18 Thread Yinghai Lu
On Mon, Aug 17, 2015 at 9:09 PM, Bjorn Helgaas wrote: > On Mon, Jul 27, 2015 at 04:29:43PM -0700, Yinghai Lu wrote: >> On booting path, we don't pass realloc at first, and treat all optional just >> as must, in some case we can smaller size/align with optional than must only. >> >> 04:00.0 has fou

[PATCH] thermal: cpu_cooling: Remove usage of devm functions

2015-08-18 Thread Vaishali Thakkar
In the function cpufreq_get_requested_power, the memory allocated for load_cpu is live within the function only. And after the allocation it is immediately freed with devm_kfree. There is no need to allocate memory for load_cpu with devm function so replace devm_kcalloc with kcalloc and devm_kfree

Re: [PATCH 2/2] ARM: dts: rockchip: correct regulator PM properties

2015-08-18 Thread Heiko Stuebner
Am Dienstag, 18. August 2015, 16:28:06 schrieb Brian Norris: > Now that I'm looking a little closer, it seems like other existing DTS's > are broken too, then. Jerry looks like it was converted to the > regulator-state-mem node binding, but the conversion doesn't seem to > make sense when I compare

Re: [GIT PULL] x86 fixes

2015-08-18 Thread Ingo Molnar
* Ingo Molnar wrote: > So I went and built 743aa456c1834f76 with ARCH=i386 defconfig > +MATH_EMULATION=y > and booted it on real hardware with and without 'no387': > > - 743aa456c1834f76: boots fine to a generic distro > - 743aa456c1834f76 + no387: early crash > > the early crash

Re: [Patch v2] x86, ACPI, irq: Add a quirk to override SCI polarity for HyperV

2015-08-18 Thread Rafael J. Wysocki
Hi, On Wed, Aug 19, 2015 at 7:53 AM, Jiang Liu wrote: > Nick Meier reported a regression with HyperV that " > After rebooting the VM, the following messages are logged in syslog > when trying to load the tulip driver: > tulip: Linux Tulip drivers version 1.1.15 (Feb 27, 2007) > tulip:

Re: [GIT PULL] x86 fixes

2015-08-18 Thread Ingo Molnar
* H. Peter Anvin wrote: > On 08/17/2015 10:17 AM, Linus Torvalds wrote: > > On Mon, Aug 17, 2015 at 9:58 AM, H. Peter Anvin wrote: > >> > >> That is not true. It *does* work, and I have tested it fairly recently. > > > > Ok, so it's not too badly broken. Good. > > > > Also, while it's been a

Re: kexec, x86: Need a new e820 type support for kexec

2015-08-18 Thread Baoquan He
On 08/18/15 at 11:36pm, Toshi Kani wrote: > On 8/18/2015 8:53 PM, Baoquan He wrote: > >On 08/18/15 at 09:01am, Toshi Kani wrote: > >>On Tue, 2015-08-18 at 16:53 +0800, Baoquan He wrote: > >>>Rethink it again, maybe it's better to pass PMEM as PRAM to kdump > >>>kernel if user really want to use mem

Re: [PATCH v2 2/5] Documentation: Detail permitted DT properties for the imx6ul_tsc

2015-08-18 Thread Markus Pargmann
Hi, On Tue, Jul 28, 2015 at 05:58:38PM +0800, Haibo Chen wrote: > Here we apply required documentation for the imx6ul touch screen > controller driver which describe available properties and how to > use them. > > Signed-off-by: Haibo Chen > --- > .../bindings/input/touchscreen/imx6ul_tsc.txt

[PATCH] [SCSI] bnx2fc: Convert use of __constant_htons to htons

2015-08-18 Thread Vaishali Thakkar
In little endian cases, the macro htons unfolds to __swab16 which provides special case for constants. In big endian cases, __constant_htons and htons expand directly to the same expression. So, replace __constant_htons with htons with the goal of getting rid of the definition of __constant_htons c

[Patch v2] x86, ACPI, irq: Add a quirk to override SCI polarity for HyperV

2015-08-18 Thread Jiang Liu
Nick Meier reported a regression with HyperV that " After rebooting the VM, the following messages are logged in syslog when trying to load the tulip driver: tulip: Linux Tulip drivers version 1.1.15 (Feb 27, 2007) tulip: :00:0a.0: PCI INT A: failed to register GSI tulip: Cannot

Re: [PATCH] ARM: dts: UniPhier: fix PPI interrupt CPU mask of timer nodes

2015-08-18 Thread Masahiro Yamada
2015-08-19 14:45 GMT+09:00 Masahiro Yamada : > This SoC is integrated with 4 Cortex-A9 cores. The GIC bindings > says that the bits[15:8] of the 3rd cell of the interrupts property > represents PPI interrupt CPU mask. Because the timer interrupts are > wired to all of the 4 cores, bits[15:8] shou

[PATCH v2] ARM: dts: UniPhier: fix PPI interrupt CPU mask of timer nodes

2015-08-18 Thread Masahiro Yamada
This SoC is integrated with 4 Cortex-A9 cores. The GIC bindings document says that the bits[15:8] of the 3rd cell of the interrupts property represents PPI interrupt CPU mask. Because the timer interrupts are wired to all of the 4 cores, bits[15:8] should be set to 0xf. Signed-off-by: Masahiro Y

[PATCH] scsi: fcoe: Convert use of __constant_htons to htons

2015-08-18 Thread Vaishali Thakkar
In little endian cases, the macro htons unfolds to __swab16 which provides special case for constants. In big endian cases, __constant_htons and htons expand directly to the same expression. So, replace __constant_htons with htons with the goal of getting rid of the definition of __constant_htons c

[GIT PULL] target fixes for v4.2-rc7

2015-08-18 Thread Nicholas A. Bellinger
Hi Linus, Here are the outstanding target-pending fixes for v4.2-rc7 code. Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git master It contains a v4.2-rc specific RCU module unload regression bug-fix, a long-standing iscsi-target bug-fix for duplicate targ

[PATCH] ARM: dts: UniPhier: fix PPI interrupt CPU mask of timer nodes

2015-08-18 Thread Masahiro Yamada
This SoC is integrated with 4 Cortex-A9 cores. The GIC bindings says that the bits[15:8] of the 3rd cell of the interrupts property represents PPI interrupt CPU mask. Because the timer interrupts are wired to all of the 4 cores, bits[15:8] should be set to 0xf. Signed-off-by: Masahiro Yamada --

[PATCH] Staging: most: Use NULL instead of zero

2015-08-18 Thread Ronit Halder
This patch fixes the warning generated by sparse "Using plain integer as NULL pointer" by using NULL instead of zero. Signed-off-by: Ronit halder --- drivers/staging/most/aim-network/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/most/aim-network

Re: fs: out of bounds on stack in iov_iter_advance

2015-08-18 Thread Al Viro
On Mon, Aug 17, 2015 at 12:18:12PM +0300, Andrey Ryabinin wrote: > This bug is similar to recently found bug in 9p: > http://thread.gmane.org/gmane.linux.kernel/1931799/focus=1936542 Ow. For those who'd missed that fun: the bug in question had turned out to be caused by improper reuse of reques

Re: [PATCH v7 2/3] cpufreq: mediatek: Add MT8173 cpufreq driver

2015-08-18 Thread Viresh Kumar
On 19-08-15, 10:05, Pi-Cheng Chen wrote: > Mediatek MT8173 is an ARMv8 based quad-core (2*Cortex-A53 and > 2*Cortex-A72) SoC with duall clusters. For each cluster, two voltage > inputs, Vproc and Vsram are supplied by two regulators. For the big > cluster, two regulators come from different PMICs.

Re: kexec, x86: Need a new e820 type support for kexec

2015-08-18 Thread Toshi Kani
On 8/18/2015 8:53 PM, Baoquan He wrote: On 08/18/15 at 09:01am, Toshi Kani wrote: On Tue, 2015-08-18 at 16:53 +0800, Baoquan He wrote: Rethink it again, maybe it's better to pass PMEM as PRAM to kdump kernel if user really want to use memmap way by specifying --pass-memmap-cmdline. Then I need

Re: [PATCH v2] selftests/zram: Adding zram tests

2015-08-18 Thread Naresh Kamboju
Hi Shuah Khan, On 18 August 2015 at 03:14, Shuah Khan wrote: > On 08/17/2015 02:39 PM, naresh.kamb...@linaro.org wrote: >> From: Naresh Kamboju > > Are you using git send-email to send this patch? Not sure why > I see this From and the one below. I do use git send-email to send this patch. Fro

Re: [PATCH 2/2] cxl: add set/get private data to context struct

2015-08-18 Thread Michael Ellerman
On Wed, 2015-08-19 at 15:12 +1000, Ian Munsie wrote: > Excerpts from Michael Ellerman's message of 2015-08-19 14:49:30 +1000: > > Do we really need the accessors? They don't buy anything I can see over just > > using ctx->priv directly. > > The reasoning there is because we don't currently expose

[PATCH] usb: gadget: f_uac1: Convert use of __constant_cpu_to_le16 to cpu_to_le16

2015-08-18 Thread Vaishali Thakkar
In big endian cases, macro cpu_to_le16 unfolds to __swab16 which provides special case for constants. In little endian cases, __constant_cpu_to_le16 and cpu_to_le16 expand directly to the same expression. So, replace __constant_cpu_to_le16 with cpu_to_le16 with the goal of getting rid of the defini

Re: [PATCH 1/2] cxl: Add mechanism for delivering AFU driver specific events

2015-08-18 Thread Michael Ellerman
On Wed, 2015-08-19 at 14:19 +1000, Ian Munsie wrote: > From: Ian Munsie > > This adds an afu_driver_ops structure with event_pending and > deliver_event callbacks. An AFU driver can fill these out and associate > it with a context to enable passing custom AFU specific events to > userspace. What

Re: [PATCH v3 22/51] PCI: Add alt_size allocation support

2015-08-18 Thread Yinghai Lu
On Mon, Aug 17, 2015 at 5:03 PM, Bjorn Helgaas wrote: > On Mon, Jul 27, 2015 at 04:29:40PM -0700, Yinghai Lu wrote: >> On system with several pcie switches, BIOS allocate very tight resources >> to the bridge bar, and it is not aligned to min_align as kernel allocation >> code. > > I can't parse t

[PATCH] usbip: vhci_hcd: Convert use of __constant_cpu_to_le16 to cpu_to_le16

2015-08-18 Thread Vaishali Thakkar
In big endian cases, macro cpu_to_le16 unfolds to __swab16 which provides special case for constants. In little endian cases, __constant_cpu_to_le16 and cpu_to_le16 expand directly to the same expression. So, replace __constant_cpu_to_le16 with cpu_to_le16 with the goal of getting rid of the defini

Re: [PATCH 2/2] cxl: add set/get private data to context struct

2015-08-18 Thread Ian Munsie
Excerpts from Michael Ellerman's message of 2015-08-19 14:49:30 +1000: > Do we really need the accessors? They don't buy anything I can see over just > using ctx->priv directly. The reasoning there is because we don't currently expose the contents of stuct cxl_context to afu drivers, rather they j

Re: [PATCH v2 1/5] input: touchscreen: add imx6ul_tsc driver support

2015-08-18 Thread Dmitry Torokhov
Hi Haibo, On Tue, Jul 28, 2015 at 05:58:37PM +0800, Haibo Chen wrote: > Freescale i.MX6UL contains a internal touchscreen controller, > this patch add a driver to support this controller. > This looks pretty reasonable; just a few comments below. > Signed-off-by: Haibo Chen > --- > drivers/in

Re: [RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-08-18 Thread Archit Taneja
Hi, On 06/30/2015 10:54 AM, Archit Taneja wrote: We are currently restricted when it comes to supporting DSI on devices that have a non-DSI control bus. For example, DSI encoder chips are available in the market that are configured via i2c. Configuring their registers via DSI bus is either optio

Re: [PATCH] qeth: Convert use of __constant_htons to htons

2015-08-18 Thread Vaishali Thakkar
On Fri, Jun 12, 2015 at 1:12 PM, Ursula Braun wrote: > Thanks Vaishali. I have added your patch to our local kernel git, and > will submit it within a following upstream shipment. Hi Ursula, Can you please tell me when this patch is going to be added in linux-next? I don't see them in linux-next

[PATCH v4 2/5] mtd: nand: Qualcomm NAND controller driver

2015-08-18 Thread Archit Taneja
The Qualcomm NAND controller is found in SoCs like IPQ806x, MSM7xx, MDM9x15 series. It exists as a sub block inside the IPs EBI2 (External Bus Interface 2) and QPIC (Qualcomm Parallel Interface Controller). These IPs provide a broader interface for external slow peripheral devices such as LCD and

[PATCH v2] libnvdimm, e820: make CONFIG_X86_PMEM_LEGACY a tristate option

2015-08-18 Thread Dan Williams
We currently register a platform device for e820 type-12 memory and register a nvdimm bus beneath it. Registering the platform device triggers the device-core machinery to probe for a driver, but that search currently comes up empty. Building the nvdimm-bus registration into the e820_pmem platfor

[PATCH v4 3/5] dt/bindings: qcom_nandc: Add DT bindings

2015-08-18 Thread Archit Taneja
Add DT bindings document for the Qualcomm NAND controller driver. Cc: devicet...@vger.kernel.org v4: - No changes v3: - Don't use '0x' when specifying nand controller address space - Add optional property for on-flash bbt usage Acked-by: Andy Gross Signed-off-by: Archit Taneja --- .../device

[PATCH v4 5/5] arm: qcom: dts: Enable NAND node on IPQ8064 AP148 platform

2015-08-18 Thread Archit Taneja
Enable the NAND controller node on the AP148 platform. Provide pinmux information. v4: - Move bias-disable out of mux and create a separate group for it. - Place the dma node inside soc node and give the full path with address. v3, v2, v1: - No changes Cc: devicet...@vger.kernel.org Signed-off-

Re: [PATCH 2/2] cxl: add set/get private data to context struct

2015-08-18 Thread Michael Ellerman
On Wed, 2015-08-19 at 14:19 +1000, Ian Munsie wrote: > From: Michael Neuling > > This provides AFU drivers a means to associate private data with a cxl > context. This is particularly intended for make the new callbacks for > driver specific events easier for AFU drivers to use, as they can easil

[PATCH v4 4/5] arm: qcom: dts: Add NAND controller node for ipq806x

2015-08-18 Thread Archit Taneja
The nand controller in IPQ806x is of the 'EBI2 type'. Use the corresponding compatible string. Cc: devicet...@vger.kernel.org Reviewed-by: Andy Gross Signed-off-by: Archit Taneja --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/a

[PATCH v4 1/5] mtd: nand: Create a BBT flag to access bad block markers in raw mode

2015-08-18 Thread Archit Taneja
Some controllers can access the factory bad block marker from OOB only when they read it in raw mode. When ECC is enabled, these controllers discard reading/writing bad block markers, preventing access to them altogether. The bbt driver assumes MTD_OPS_PLACE_OOB when scanning for bad blocks. This

[PATCH v4 0/5] mtd: Qualcomm NAND controller driver

2015-08-18 Thread Archit Taneja
Add support for the NAND controller driver for SoC's that contain EBI2. For now, the only SoC upstream that has EBI2 is IPQ806x. The original version was posted a while back. The main comments were about the driver not being able to use nand_bbt. This was because the controller could read factory

[PATCH 2/2] cxl: add set/get private data to context struct

2015-08-18 Thread Ian Munsie
From: Michael Neuling This provides AFU drivers a means to associate private data with a cxl context. This is particularly intended for make the new callbacks for driver specific events easier for AFU drivers to use, as they can easily get back to any private data structures they may use. Signed

[PATCH v3 1/8] rsb: Add generic Reduced Serial Bus (RSB) controller binding documentation

2015-08-18 Thread Chen-Yu Tsai
Reduced Serial Bus is a proprietary 2-line push-pull serial bus supporting multiple slave devices. It was developed by Allwinner, Inc. and used by Allwinner and X-Powers, Inc. for their line of PMICs and other peripheral ICs. Signed-off-by: Chen-Yu Tsai --- Documentation/devicetree/bindings/rsb

[PATCH v3 6/8] ARM: dts: sun8i: Add Reduced Serial Bus controller device node to A23/A33 dtsi

2015-08-18 Thread Chen-Yu Tsai
This patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A23/A33 dtsi. Since there is only one possible pinmux setting for RSB, just set it in the dtsi. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 21 +

[PATCH v3 8/8] ARM: dts: sun8i: sinlinx-sina33: Enable Reduced Serial Bus controller

2015-08-18 Thread Chen-Yu Tsai
The Reduced Serial Bus controller is used to talk to the onboard PMIC. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts b/arch/arm/boot/dts/sun8i-a33-sinlinx-sina

[PATCH v3 5/8] regmap: rsb: Add support for Reduced Serial Bus (RSB) based regmaps

2015-08-18 Thread Chen-Yu Tsai
Signed-off-by: Chen-Yu Tsai --- drivers/base/regmap/Kconfig | 6 +- drivers/base/regmap/Makefile | 1 + drivers/base/regmap/regmap-rsb.c | 121 +++ include/linux/regmap.h | 36 4 files changed, 163 insertions(+), 1 deletion(

[PATCH v3 7/8] ARM: dts: sun8i: ippo-q8h-v5: Enable Reduced Serial Bus controller

2015-08-18 Thread Chen-Yu Tsai
The Reduced Serial Bus controller is used to talk to the onboard PMIC. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts b/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts in

[PATCH v3 0/8] ARM: sunxi: Add Reduced Serial Bus support

2015-08-18 Thread Chen-Yu Tsai
Hi everyone, This is my third attempt at adding support for Allwinner's Reduced Serial Bus (RSB), which is used to communicate with PMICs and other peripherals on their newer SoCs, such as the A23/A33/A80. RSB is a simplified two wire interface using push-pull outputs, supporting multiple slaves,

[PATCH 1/2] cxl: Add mechanism for delivering AFU driver specific events

2015-08-18 Thread Ian Munsie
From: Ian Munsie This adds an afu_driver_ops structure with event_pending and deliver_event callbacks. An AFU driver can fill these out and associate it with a context to enable passing custom AFU specific events to userspace. The cxl driver will call event_pending() during poll, select, read, e

[PATCH v3 4/8] rsb: sunxi: Add driver for Allwinner Reduced Serial Bus controller

2015-08-18 Thread Chen-Yu Tsai
Signed-off-by: Chen-Yu Tsai --- drivers/rsb/Kconfig | 15 ++ drivers/rsb/Makefile| 2 + drivers/rsb/rsb-sunxi.c | 441 3 files changed, 458 insertions(+) create mode 100644 drivers/rsb/rsb-sunxi.c diff --git a/drivers/rsb/Kconfig b/dri

[PATCH v3 3/8] rsb: Linux driver framework for Reduced Serial Bus (RSB)

2015-08-18 Thread Chen-Yu Tsai
Reduced Serial Bus (RSB) is an Allwinner proprietery interface used to communicate with PMICs and other peripheral ICs. RSB is a two-wire push-pull serial bus that supports 1 master device and up to 15 active slave devices. Signed-off-by: Chen-Yu Tsai --- drivers/Kconfig| 2 + drivers

[PATCH v3 2/8] rsb: sunxi: Add Allwinner Reduced Serial Bus (RSB) controller bindings

2015-08-18 Thread Chen-Yu Tsai
Recent Allwinner SoCs, starting with the A23, have a Reduced Serial Bus (RSB) controller. This is used to talk to the PMIC, and later with the A80 and A83 platform, the audio codec IC. Signed-off-by: Chen-Yu Tsai --- .../devicetree/bindings/rsb/rsb-sunxi.txt | 34 ++

[GIT PULL] clk: mediatek: New clocks support and fixes

2015-08-18 Thread James Liao
This is a collection of new Mediatek clocks support and fixes. These patches come from Joe [1], Pi-cheng [2] and me [3], including clock support for subsystems, CPU, GPT and some minor fixes. [1] https://patchwork.kernel.org/patch/6777041/ [2] https://patchwork.kernel.org/patch/7023951/ [3] https:

Re: [BUG/RFC] perf test fails on AMD CPUs

2015-08-18 Thread Borislav Petkov
On Tue, Aug 18, 2015 at 12:10:25PM +0200, Jiri Olsa wrote: > buut anyway, it looks like latest AMD firmware issue: > > [root@amd-pike-07 ~]# cat /sys/devices/system/cpu/cpu0/microcode/version > 0x6000822 > [root@amd-pike-07 perf]# ./perf test 18 > 18: Test breakpoint overflow signal handler

[PATCH 0/3] Fixup mediatek spi driver

2015-08-18 Thread Leilk Liu
Change in this patch: 1. revise coding styles. 2. delete redundant clock in prepare/unprepare_hardware. 3. fix incorrect endian usage on big-endian system. Leilk Liu (3): spi: mediatek: revise coding style spi: mediatek: remove redundant clock in prepare_hardware/unprepare_hardware spi:

[PATCH 2/3] spi: mediatek: remove redundant clock in prepare_hardware/unprepare_hardware

2015-08-18 Thread Leilk Liu
clock in prepare_hardware/unprepare_hardware is redundant with pm_runtime, so remove them. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 814bca4..1c2b215 100644

[PATCH 1/3] spi: mediatek: revise coding style

2015-08-18 Thread Leilk Liu
This patch revises mediatek spi driver coding styles. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 125 --- 1 file changed, 65 insertions(+), 60 deletions(-) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index c467ce0..81

[PATCH 3/3] spi: mediatek: fix spi incorrect endian usage

2015-08-18 Thread Leilk Liu
TX_ENDIAN/RX_ENDIAN bits define whether to reverse the endian order of the data DMA from/to memory. The endian order should keep the same with cpu endian. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 43 include/linux/platform_data/spi-

[PATCH] usb: core: hub: Removed some warnings generated by checkpatch.pl

2015-08-18 Thread Chase Metzger
Removed some checkpatch.pl warnings saying there was an unwanted space between function names and their arguments. Signed-off-by: Chase Metzger --- drivers/usb/core/hub.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/cor

[PATCH V3] Watchdog: Fix parent of watchdog_devices

2015-08-18 Thread Pratyush Anand
/sys/class/watchdog/watchdogn/device/modalias can help to identify the driver/module for a given watchdog node. However, many wdt devices does not set its parent and so, we do not see an entry for device in sysfs for such devices. This patch fixes parent of watchdog_device so that /sys/class/watch

Re: __sb_start_write() && force_trylock hack

2015-08-18 Thread Dave Chinner
On Tue, Aug 18, 2015 at 05:18:16PM +0200, Oleg Nesterov wrote: > On 08/18, Oleg Nesterov wrote: > > > > When I tried to run all tests, I > > got the new reports from lockdep. > > Just in case... when I run all tests I see misc failures (with or without > the changes above) which I didn't try to in

Re: [PATCH 3/3] sched: Implement interface for cgroup unified hierarchy

2015-08-18 Thread Mike Galbraith
On Tue, 2015-08-18 at 13:31 -0700, Tejun Heo wrote: > So, this is a trade-off we're consciously making. If there are > common-enough use cases which require jumping across different cgroup > domains, we'll try to figure out a way to accomodate those but by > default migration is a very cold and e

[PATCH] regulator: qcom_smd: Set n_voltages for pm8941_lnldo

2015-08-18 Thread Axel Lin
Just setting fixed_uV is not enough, the regulator core will also check n_voltages setting. The fixed_uV only works when n_voltages is 1. Signed-off-by: Axel Lin --- drivers/regulator/qcom_smd-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/qcom_smd-regulator.c

[PATCHv4 2/2] staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memory leak

2015-08-18 Thread Raphaël Beamonte
The MALLOC_WILC_BUFFER() macro was using a return statement, and didn't take care of possible memory leaks and subsequent bugs when it was failing after succeeding some allocations. This patch corrects this behavior. Signed-off-by: Raphaël Beamonte --- drivers/staging/wilc1000/wilc_exported_buf.

Re: [PATCH] Clean up whitespace in vfs.txt

2015-08-18 Thread Raymond Jennings
On 08/10/15 02:31, Raymond Jennings wrote: I noticed that vfs.txt looked kinda funky, so I went ahead and reformatted it. Signed-off-by: Raymond Jennings Cc: Andrew Morton --- diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index 5eb8456..8ddfe06 100644 ---

[PATCHv4 1/2] staging: wilc1000: remove FREE_WILC_BUFFER()

2015-08-18 Thread Raphaël Beamonte
It was just a wrapper around kfree(), so call that instead. Signed-off-by: Raphaël Beamonte --- drivers/staging/wilc1000/wilc_exported_buf.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_exported_buf.c b/drivers/staging/wilc1000/wilc_

[PATCHv4 0/2] staging: wilc1000: code improvements

2015-08-18 Thread Raphaël Beamonte
Hi, As requested, here are the two remaining ready patches of this patchset. I pulled and rebased against staging-testing just now. They should thus be usable without problem! Thanks, Raphaël Raphaël Beamonte (2): staging: wilc1000: remove FREE_WILC_BUFFER() staging: wilc1000: replace MALLO

Re: 0be964be0 "module: Sanitize RCU usage and locking" breaks symbol_put_addr?

2015-08-18 Thread Rusty Russell
Peter Zijlstra writes: > On Mon, Aug 17, 2015 at 04:20:09PM -0700, Laura Abbott wrote: >> Hi, >> >> We received a few bug backtraces: >> >> [ 41.536933] [ cut here ] >> [ 41.537545] WARNING: CPU: 1 PID: 813 at kernel/module.c:291 >> module_assert_mutex_or_preempt+0x4

Re: __sb_start_write() && force_trylock hack

2015-08-18 Thread Dave Chinner
On Tue, Aug 18, 2015 at 04:49:00PM +0200, Oleg Nesterov wrote: > Jan, Dave, perhaps you can take a look... > > On 08/14, Oleg Nesterov wrote: > > > > Plus another patch which removes the "trylock" > > hack in __sb_start_write(). > > I meant the patch we already discussed (attached at the end). An

[PATCH v4 1/2] Add the driver of mbigen interrupt controller

2015-08-18 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interr

Re: [RFC PATCH v6 0/2] Make eBPF programs output data to perf

2015-08-18 Thread Wangnan (F)
On 2015/8/14 5:49, Alexei Starovoitov wrote: On 8/13/15 2:35 PM, pi3orama wrote: I was thinking about whether to add a "type" field there, so we will have an explicit mov const instruction before the call instruction, which can act as a mark. Also, if we generate the type code automatically,

Re: [PATCH] staging: wilc1000: Set all options in region debugfs file

2015-08-18 Thread Greg KH
On Tue, Aug 18, 2015 at 10:32:17PM +0530, Chandra S Gorentla wrote: > This patch allows setting all options in the module's debug region > options file 'wilc_debug_region'. This functionality allows the user > to enable logging from all regions (initialization, locks, firmware > etc.) of the drive

Re: [PATCHv3] staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memory leak

2015-08-18 Thread Greg Kroah-Hartman
On Tue, Aug 18, 2015 at 01:06:39PM -0400, Raphaël Beamonte wrote: > 2015-08-18 5:15 GMT-04:00 Dan Carpenter : > > To be honest, I have lost track of this patchset. If you are planning > > to redo the other patches can you send it in a new thread? > > Actually, Greg already included the "return st

Re: [PATCHv3] staging: wilc1000: use netdev_* instead of printk

2015-08-18 Thread Greg Kroah-Hartman
On Mon, Aug 17, 2015 at 07:06:40PM -0400, Raphaël Beamonte wrote: > Signed-off-by: Raphaël Beamonte You can't submit a patch with no changelog information, sorry. Always build your patches, otherwise you make maintainers really grumpy as it breaks their build. greg k-h -- To unsubscribe from th

[PATCH v4 0/2] Support Mbigen interrupt controller

2015-08-18 Thread MaJun
From: Ma Jun This patch adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark Rutla

[PATCH v4 2/2] dt-binding:Documents of the mbigen bindings

2015-08-18 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. Change since v3: --- Change the interrupt cells definition. --- Change the mbigen node definition. --- Add mbigen device node as sub node of mbigen. Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.

Re: kexec, x86: Need a new e820 type support for kexec

2015-08-18 Thread Baoquan He
On 08/18/15 at 09:01am, Toshi Kani wrote: > On Tue, 2015-08-18 at 16:53 +0800, Baoquan He wrote: > > Rethink it again, maybe it's better to pass PMEM as PRAM to kdump > > kernel if user really want to use memmap way by specifying > > --pass-memmap-cmdline. Then I need add the PMEM and PRAM checking

Re: [PATCH] staging/lustre/o2iblnd: remove references to ib_reg_phsy_mr()

2015-08-18 Thread Greg KH
On Tue, Aug 18, 2015 at 09:04:35PM -0400, gr...@linuxhacker.ru wrote: > From: Oleg Drokin > > Removed references to ib_reg_phsy_mr() and PMR which was added > to deal with some Chelsio specific scenario, but no longer needed > now. > > Signed-off-by: Amir Shehata > Signed-off-by: Oleg Drokin >

Re: [PATCH] mtd: denali: Use module_pci_driver

2015-08-18 Thread Vaishali Thakkar
On Wed, Aug 19, 2015 at 6:02 AM, Brian Norris wrote: > > On Tue, Jul 07, 2015 at 12:53:45PM +0530, Vaishali Thakkar wrote: > > Use module_pci_driver for drivers whose init and exit functions > > only register and unregister, respectively. > > > > A simplified version of the Coccinelle semantic pat

Re: [PATCH 1/2] zpool: define and use max type length

2015-08-18 Thread Dan Streetman
On Tue, Aug 18, 2015 at 6:38 PM, Andrew Morton wrote: > On Tue, 18 Aug 2015 16:06:00 -0400 Dan Streetman wrote: > >> Add ZPOOL_MAX_TYPE_NAME define, and change zpool_driver *type field to >> type[ZPOOL_MAX_TYPE_NAME]. Remove redundant type field from struct zpool >> and use zpool->driver->type i

[PATCH v7 2/3] cpufreq: mediatek: Add MT8173 cpufreq driver

2015-08-18 Thread Pi-Cheng Chen
Mediatek MT8173 is an ARMv8 based quad-core (2*Cortex-A53 and 2*Cortex-A72) SoC with duall clusters. For each cluster, two voltage inputs, Vproc and Vsram are supplied by two regulators. For the big cluster, two regulators come from different PMICs. In this case, when scaling voltage inputs of the

  1   2   3   4   5   6   7   >