Re: [PATCH] clk: bcm: Add driver for Northstar ILP clock

2016-07-29 Thread Ray Jui
On 7/29/2016 1:46 PM, Rafał Miłecki wrote: On 29 July 2016 at 22:44, Ray Jui wrote: On 7/29/2016 5:58 AM, Rafał Miłecki wrote: From: Rafał Miłecki This clock is present on cheaper Northstar devices like BCM53573 or BCM47189 using Corex-A7. This driver uses PMU (Power Management Unit) to c

Re: [PATCH v5 1/2] of: add J-Core timer bindings

2016-07-29 Thread Rob Herring
On Tue, May 17, 2016 at 11:18:58PM +, Rich Felker wrote: > Signed-off-by: Rich Felker > --- > .../devicetree/bindings/timer/jcore,pit.txt| 25 > ++ > 1 file changed, 25 insertions(+) > create mode 100644 Documentation/devicetree/bindings/timer/jcore,pit.txt Acke

Re: [PATCH] clk: bcm: Add driver for Northstar ILP clock

2016-07-29 Thread Rafał Miłecki
On 29 July 2016 at 22:49, Ray Jui wrote: > On 7/29/2016 1:46 PM, Rafał Miłecki wrote: >> On 29 July 2016 at 22:44, Ray Jui wrote: >>> >>> On 7/29/2016 5:58 AM, Rafał Miłecki wrote: From: Rafał Miłecki This clock is present on cheaper Northstar devices like BCM53573 or >>

Re: [PATCH] clk: bcm: Add driver for Northstar ILP clock

2016-07-29 Thread Florian Fainelli
On 07/29/2016 01:52 PM, Rafał Miłecki wrote: > On 29 July 2016 at 22:49, Ray Jui wrote: >> On 7/29/2016 1:46 PM, Rafał Miłecki wrote: >>> On 29 July 2016 at 22:44, Ray Jui wrote: On 7/29/2016 5:58 AM, Rafał Miłecki wrote: > > > From: Rafał Miłecki > > This clock is

[GIT PULL] Power management fix for v4.8-rc1

2016-07-29 Thread Rafael J. Wysocki
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-urgent-4.8-rc1 with top-most commit e148d0f85cc3e9f2802c7fcf451098c6d19b535b Merge branch 'pm-sleep' on top of commit 6453dbdda30428a3c56568c96fe70ea3612f07e2 Merge tag 'pm-4.8-rc1' of git://

Re: [PATCH v4 1/2] of: add J-Core SPI master bindings

2016-07-29 Thread Rob Herring
On Tue, May 17, 2016 at 11:19:25PM +, Rich Felker wrote: > Signed-off-by: Rich Felker > --- > .../devicetree/bindings/spi/jcore,spi.txt | 30 > ++ > 1 file changed, 30 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt Acked-

Re: [PATCH] clk: bcm: Add driver for Northstar ILP clock

2016-07-29 Thread Ray Jui
On 7/29/2016 1:55 PM, Florian Fainelli wrote: On 07/29/2016 01:52 PM, Rafał Miłecki wrote: On 29 July 2016 at 22:49, Ray Jui wrote: On 7/29/2016 1:46 PM, Rafał Miłecki wrote: On 29 July 2016 at 22:44, Ray Jui wrote: On 7/29/2016 5:58 AM, Rafał Miłecki wrote: From: Rafał Miłecki This

Re: [PATCH] clk: bcm: Add driver for Northstar ILP clock

2016-07-29 Thread Rafał Miłecki
On 29 July 2016 at 22:55, Florian Fainelli wrote: > On 07/29/2016 01:52 PM, Rafał Miłecki wrote: >> On 29 July 2016 at 22:49, Ray Jui wrote: >>> On 7/29/2016 1:46 PM, Rafał Miłecki wrote: On 29 July 2016 at 22:44, Ray Jui wrote: > > On 7/29/2016 5:58 AM, Rafał Miłecki wrote: >>

[PATCH] libnvdimm, nd_blk: mask off reserved status bits

2016-07-29 Thread Ross Zwisler
The "NVDIMM Block Window Driver Writer's Guide": http://pmem.io/documents/ http://pmem.io/documents/NVDIMM_DriverWritersGuide-July-2016.pdf defines the layout of the block window status register. For the July 2016 version of the spec linked to above, this happens in Figure 4 on page 26. The onl

Re: [PATCH v5 4/8] thunderbolt: Communication with the ICM (firmware)

2016-07-29 Thread Stephen Hemminger
On Thu, 28 Jul 2016 11:15:17 +0300 Amir Levy wrote: > +static LIST_HEAD(controllers_list); > +static DECLARE_RWSEM(controllers_list_rwsem); Why use a semaphore when simple spinlock or mutex would be better?

Re: [PATCH v5 4/8] thunderbolt: Communication with the ICM (firmware)

2016-07-29 Thread Stephen Hemminger
On Thu, 28 Jul 2016 11:15:17 +0300 Amir Levy wrote: > +int nhi_send_message(struct tbt_nhi_ctxt *nhi_ctxt, enum pdf_value pdf, > + u32 msg_len, const u8 *msg, bool ignore_icm_resp) > +{ Why not make msg a void * and not have to do so many casts?

[PATCH 33/33] Staging: android: ion: ion.c: Compression of lines for

2016-07-29 Thread Nadim almas
This patch compresses two lines in to a single line in file rtw_android.c if immediate return statement is found. It also removes variable bytes_written as it is no longer needed. It is done using script Coccinelle. And coccinelle uses following semantic patch for this compression function: @@

Re: [PATCH v3 1/6] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library

2016-07-29 Thread Rob Herring
On Wed, Jul 20, 2016 at 05:40:24PM +0800, Peter Chen wrote: > Add binding doc for generic power sequence library. > > Signed-off-by: Peter Chen > Acked-by: Philipp Zabel > --- > .../bindings/power/pwrseq/pwrseq-generic.txt | 48 > ++ > 1 file changed, 48 insertions(+)

Re: [PATCH v3 3/6] binding-doc: usb: usb-device: add optional properties for power sequence

2016-07-29 Thread Rob Herring
On Wed, Jul 20, 2016 at 05:40:26PM +0800, Peter Chen wrote: > Add optional properties for power sequence. > > Signed-off-by: Peter Chen > --- > Documentation/devicetree/bindings/usb/usb-device.txt | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) This probably should be put into

Re: [PATCH 33/33] Staging: android: ion: ion.c: Compression of lines for

2016-07-29 Thread Joe Perches
On Fri, 2016-07-29 at 14:06 -0700, Nadim almas wrote: > This patch compresses two lines in to a single line in file rtw_android.c > if immediate return statement is found. It also removes variable  > bytes_written as it is no longer needed. > > It is done using script Coccinelle. And coccinelle us

Re: [PATCH 08/13] clk: sunxi-ng: Add A64 clocks

2016-07-29 Thread Rob Herring
On Tue, Jul 26, 2016 at 10:30:36PM +0200, Maxime Ripard wrote: > Add the A64 CCU clocks set. > > Signed-off-by: Maxime Ripard > --- > .../devicetree/bindings/clock/sunxi-ccu.txt| 1 + Acked-by: Rob Herring > drivers/clk/sunxi-ng/Kconfig | 13 +- > drivers/clk/

Re: [PATCH v5 6/8] thunderbolt: Networking transmit and receive

2016-07-29 Thread Stephen Hemminger
On Thu, 28 Jul 2016 11:15:19 +0300 Amir Levy wrote: > + /* pad short packets */ > + if (unlikely(skb->len < ETH_ZLEN)) { > + int pad_len = ETH_ZLEN - skb->len; > + > + /* The skb is freed on error */ > + if (unlik

Re: [PATCH 1/7] dt-bindings: i2c: add support for 'i2c-mux' subnode

2016-07-29 Thread Rob Herring
On Wed, Jul 27, 2016 at 10:43:24AM +0200, Peter Rosin wrote: > Similar to the new optional 'i2c-bus' subnode from Jon Hunter, this > adds an optional 'i2c-mux' subnode, for similar reasons. I.e. it is > bad of the i2c mux core to assume that any subnode of an i2c mux device > is a potential (when t

Re: [PATCH] block: remove BLK_DEV_DAX config option

2016-07-29 Thread Jens Axboe
On 07/29/2016 12:23 PM, Ross Zwisler wrote: The functionality for block device DAX was already removed with this commit: commit acc93d30d7d4 ("Revert "block: enable dax for raw block devices"") However, we still had a config option hanging around that was always disabled because it depended on

Re: clocksource_watchdog causing scheduling of timers every second (was [v13] support "task_isolation" mode)

2016-07-29 Thread Chris Metcalf
On 7/29/2016 2:31 PM, Francis Giraldeau wrote: I tested this patch on 4.7 and confirm that irq_work does not occurs anymore on the isolated cpu. Thanks! Great! Let me know if you'd like me to add your Tested-by in the patch series. I don't know of any utility to test the task isolation featu

Re: [PATCH 2/7] dt-bindings: i2c: add support for 'i2c-arb' subnode

2016-07-29 Thread Rob Herring
On Wed, Jul 27, 2016 at 10:43:25AM +0200, Peter Rosin wrote: > This gets rid of the need for a pointless 'reg' property for i2c > arbitrators. > > I.e. this new and more compact style > > some-arbitrator { > i2c-mux { You mean i2c-arb here? > #address-c

Re: [PATCH] clk: bcm: Add driver for Northstar ILP clock

2016-07-29 Thread Rafał Miłecki
On 29 July 2016 at 15:15, Mark Rutland wrote: > On Fri, Jul 29, 2016 at 02:58:32PM +0200, Rafał Miłecki wrote: >> From: Rafał Miłecki >> >> This clock is present on cheaper Northstar devices like BCM53573 or >> BCM47189 using Corex-A7. This driver uses PMU (Power Management Unit) >> to calculate

Re: [PATCH 3/7] dt-bindings: i2c: add support for 'i2c-gate' subnode

2016-07-29 Thread Rob Herring
On Wed, Jul 27, 2016 at 10:43:26AM +0200, Peter Rosin wrote: > Handle i2c gates similarly to how i2c arbitrators are handled. > This gets rid of a pointless 'reg' property for i2c gates. > > I.e. this new and more compact style > > some-gate { > i2c-gate { >

Re: [PATCH 4/7] dt-bindings: i2c: add bindings for nxp,pca9541

2016-07-29 Thread Rob Herring
On Wed, Jul 27, 2016 at 10:43:27AM +0200, Peter Rosin wrote: > Fill the gap for this pre-existing driver. > > Signed-off-by: Peter Rosin > --- > .../devicetree/bindings/i2c/nxp,pca9541.txt| 29 > ++ > 1 file changed, 29 insertions(+) > create mode 100644 Documentati

Re: KASAN use-after-free not showing freed stacktrace?

2016-07-29 Thread Dmitry Vyukov
Do you use SLAB or SLUB? Is CONFIG_STACKDEPOT enabled? Kernel revision? On Fri, Jul 29, 2016 at 10:17 PM, Vegard Nossum wrote: > Hi again, > > I am seeing some KASAN use-after-free bugs now but there is no > stacktrace for where they were freed anymore: > > BUG: KASAN: use-after-free in acct_coll

Re: [PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-29 Thread Rob Herring
On Wed, Jul 27, 2016 at 10:24:04PM +0800, Caesar Wang wrote: > SARADC controller needs to be reset before programming it, otherwise > it will not function properly. > > Signed-off-by: Caesar Wang > Cc: Jonathan Cameron > Cc: Heiko Stuebner > Cc: Rob Herring > Cc: linux-...@vger.kernel.org > Cc

Re: [PATCH 1/2] of: documentation: add bindings documentation for TS-4900

2016-07-29 Thread Rob Herring
On Wed, Jul 27, 2016 at 01:53:01PM -0400, Lucile Quirion wrote: > This adds the documentation for the TS-4900 by Technologic Systems. > > Signed-off-by: Lucile Quirion > --- > Documentation/devicetree/bindings/arm/technologic.txt | 6 ++ > 1 file changed, 6 insertions(+) Acked-by: Rob Herri

Re: [PATCH v2] ASoC: rt5659: Add mclk controls

2016-07-29 Thread Rob Herring
On Thu, Jul 28, 2016 at 02:57:16PM -0700, Nicolin Chen wrote: > The codec driver should control the mclk. So this patch adds this support. > > Signed-off-by: Nicolin Chen > --- > Changlog: > v1->v2 > * Only set the mclk pointer to NULL when getting an ENOENT error code >(i.e. no clock is spe

Re: [PATCH v4 1/2] Documentation: bindings: add dt documentation for Rockchip PCIe PHY

2016-07-29 Thread Rob Herring
On Fri, Jul 29, 2016 at 09:22:05AM +0800, Shawn Lin wrote: > This patch adds a binding that describes the Rockchip PCIe PHY > found on Rockchip SoCs PCIe interface. > > Signed-off-by: Shawn Lin > > --- > > Changes in v4: None > Changes in v3: > - rename the node to pcie_phy: pcie-phy suggested

Re: [PATCH v3 7/7] doc: bindings: act8945a-charger: Update properties

2016-07-29 Thread Rob Herring
On Fri, Jul 29, 2016 at 09:25:28AM +0800, Wenyou Yang wrote: > Due the driver improvements, update the properties, > - Remove "active-semi,check-battery-temperature" property. > - Add the properties, "active-semi,irq_gpio" >and "active-semi,lbo-gpios". > > Signed-off-by: Wenyou Yang > --- >

Re: NULL ptr deref in perf/filter_match

2016-07-29 Thread Vegard Nossum
On 27 July 2016 at 16:15, Vegard Nossum wrote: > Hi, > > I'm seeing this on latest linus/master: > > kasan: CONFIG_KASAN_INLINE enabled > kasan: GPF could be caused by NULL-ptr deref or user memory access > general protection fault: [#1] PREEMPT SMP KASAN > Dumping ftrace buffer: > (ftrace

Re: [PATCH v4 1/2] tpm: devicetree: document properties for cr50

2016-07-29 Thread Rob Herring
On Fri, Jul 29, 2016 at 11:27:52AM -0600, Jason Gunthorpe wrote: > On Thu, Jul 28, 2016 at 06:55:13PM -0700, Andrey Pronin wrote: > > Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 > > firmware. > > Since this is now a trivial device, does it still need a dedicated > file? There

[PATCH v2] regmap: cache: Fix num_reg_defaults computation from reg_defaults_raw

2016-07-29 Thread Maarten ter Huurne
In 3245d460 (regmap: cache: Fall back to register by register read for cache defaults) non-readable registers are skipped when initializing reg_defaults, but are still included in num_reg_defaults. So there can be uninitialized entries at the end of reg_defaults, which can cause problems when the r

Re: [PATCH 1/5] Documentation: mmc: synopsys-dw-mshc: add power domain description

2016-07-29 Thread Rob Herring
On Fri, Jul 29, 2016 at 12:14:59PM +0800, Shawn Lin wrote: > This patch adds power domain as a optional property for dw_mmc. > We should handle the power domain if available as it's in off > state dut to the policy of power-saving after booting up. Otherwise > dw_mmc can not be accessed. > > Signe

Re: [PATCH 2/5] Documentation: mmc: sdhci-of-arasan: add power domain description

2016-07-29 Thread Rob Herring
On Fri, Jul 29, 2016 at 12:15:00PM +0800, Shawn Lin wrote: > This patch adds power domain as a optional property for sdhci-of-arasan. > We should handle the power domain if available as it's in off > state due to the policy of power-saving after booting up. Otherwise > controller can not be accesse

Re: [PATCH v7 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-07-29 Thread Rob Herring
On Fri, Jul 29, 2016 at 03:54:08PM +0800, Songjun Wu wrote: > DT binding documentation for ISC driver. > > Signed-off-by: Songjun Wu > --- > > Changes in v7: None > Changes in v6: > - Add "iscck" and "gck" to clock-names. > > Changes in v5: > - Add clock-output-names. > > Changes in v4: > - Re

Re: [PATCH]: arm64: factor work_pending state machine to C

2016-07-29 Thread Chris Metcalf
On 7/11/2016 8:19 AM, Mark Rutland wrote: On Mon, Jul 11, 2016 at 12:42:37PM +0100, Will Deacon wrote: On Fri, Jul 08, 2016 at 04:49:01PM +0100, Will Deacon wrote: On Fri, Jul 08, 2016 at 11:43:50AM -0400, Chris Metcalf wrote: I am hopeful that this patch [1] can be picked up for the 4.8 merge

Re: [PATCH v5 4/8] thunderbolt: Communication with the ICM (firmware)

2016-07-29 Thread Greg KH
On Fri, Jul 29, 2016 at 02:02:24PM -0700, Stephen Hemminger wrote: > On Thu, 28 Jul 2016 11:15:17 +0300 > Amir Levy wrote: > > > +static LIST_HEAD(controllers_list); > > +static DECLARE_RWSEM(controllers_list_rwsem); > > Why use a semaphore when simple spinlock or mutex would be better? And nev

Re: Build failure in linux mainline when building arcv2 images

2016-07-29 Thread Guenter Roeck
On Fri, Jul 29, 2016 at 01:03:56PM -0700, Vineet Gupta wrote: > On 07/29/2016 06:43 AM, Guenter Roeck wrote: > > On 07/28/2016 10:20 PM, Vineet Gupta wrote: > >> Hi Guenter, > >> > >> On 07/28/2016 08:23 PM, Guenter Roeck wrote: > >>> Hi Vineet, > >>> > >>> Mainline fails to build arcv2 images with

Re: KASAN use-after-free not showing freed stacktrace?

2016-07-29 Thread Vegard Nossum
On 07/29/2016 11:27 PM, Dmitry Vyukov wrote: On Fri, Jul 29, 2016 at 10:17 PM, Vegard Nossum wrote: Hi again, I am seeing some KASAN use-after-free bugs now but there is no stacktrace for where they were freed anymore: [...] That seems like a regression, maybe related to memory quarantine fo

[PATCH] Drivers: Input: Joystick: Fixed coding style issues

2016-07-29 Thread Leo Sperling
Fixed some coding style issues reported by checkpatch.pl. Mostly brackets in macros, spacing and comment style. Signed-off-by: Leo Sperling --- drivers/input/joystick/xpad.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/input/joystick/xpad.c b/driver

[GIT PULL] clk: changes for v4.8

2016-07-29 Thread Michael Turquette
The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-for-linus-4.8 for you to fetch changes up to d22527fed2f094c2e

RE: [PATCH -next] drm/amdgpu: use kmemdup rather than duplicating its implementation

2016-07-29 Thread Deucher, Alexander
> -Original Message- > From: Sean Paul [mailto:seanp...@google.com] > Sent: Friday, July 29, 2016 3:35 PM > To: Wei Yongjun > Cc: Deucher, Alexander; Koenig, Christian; Dave Airlie; Jiang, Sonny; Liu, > Leo; > Nath, Arindam; Zhou, David(ChunMing); Zhou, Jammy; Liu, Monk; dri-devel; > Linux

Applied "regmap: cache: Fix num_reg_defaults computation from reg_defaults_raw" to the regmap tree

2016-07-29 Thread Mark Brown
The patch regmap: cache: Fix num_reg_defaults computation from reg_defaults_raw has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the n

[PATCH] checkpatch: if no filenames then read stdin

2016-07-29 Thread Allen Hubbe
If no filenames are given, then read the patch from stdin. Signed-off-by: Allen Hubbe --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 90e1edc8dd42..b0659f1e9b09 100755 --- a/scripts/checkpatch.p

[PATCH] checkpatch: fix perl warning about unescaped brace

2016-07-29 Thread Allen Hubbe
Perl warns: Unescaped left brace in regex is deprecated, passed through in regex This is explained under "Quantifiers" in perl doc: http://perldoc.perl.org/perlre.html#Quantifiers (If a curly bracket occurs in a context other than one of the quantifiers listed above, where it does not form part

[GIT PULL] DeviceTree for 4.8

2016-07-29 Thread Rob Herring
Hi Linus, Please pull DT updates for 4.8. The of_platform_populate series has a couple minor conflicts with the arc and arm-soc trees. linux-next has the correct resolutions. Rob The following changes since commit 5edb56491d4812c42175980759da53388e5d86f5: Linux 4.7-rc3 (2016-06-12 07:20:35 -0

Re: [PATCH V1] documentation: da9052: Update regulator bindings names to match DA9052/53 DTS expectations

2016-07-29 Thread Rob Herring
On Wed, Jul 27, 2016 at 9:51 AM, Rob Herring wrote: > On Mon, Jul 25, 2016 at 04:20:54PM +0100, Steve Twiss wrote: >> From: Steve Twiss >> >> Hi Mark, > > Drop this from the commit msg. > >> >> Buck and LDO binding name changes. >> >> The binding names for the regulators have been changed to matc

Re: [PATCH] PCI: artpec: add PCI_MSI_IRQ_DOMAIN dependency

2016-07-29 Thread Bjorn Helgaas
On Wed, Jul 06, 2016 at 02:46:04PM +0200, Arnd Bergmann wrote: > The designware PCIe driver requires MSI support, so we get a warning > for the artpec6 glue driver if that is not enabled: > > warning: (PCIE_ARTPEC6) selects PCIE_DW which has unmet direct dependencies > (PCI && PCI_MSI_IRQ_DOMAIN)

Re: NULL ptr deref in perf/filter_match

2016-07-29 Thread Vegard Nossum
On 29 July 2016 at 23:41, Vegard Nossum wrote: > On 27 July 2016 at 16:15, Vegard Nossum wrote: >> Hi, >> >> I'm seeing this on latest linus/master: [...] >> RIP: 0010:[] [] >> perf_iterate_sb+0x1b0/0x6a0 [...] >> >> In particular, it looks to me like event->ctx is NULL. > > Digging a bit deepe

Re: [PATCH 4/7] k3dma: Add cyclic mode for audio

2016-07-29 Thread John Stultz
On Sun, Jul 24, 2016 at 12:31 AM, Vinod Koul wrote: > On Wed, Jul 20, 2016 at 08:53:06PM -0700, John Stultz wrote: > >> ds = kzalloc(sizeof(*ds) + num * sizeof(ds->desc_hw[0]), GFP_ATOMIC); >> - if (!ds) { >> - dev_dbg(chan->device->dev, "vchan %p: kzalloc fail\n", &c->vc); >

Re: [PATCH 1/7] k3dma: Fix hisi burst clipping

2016-07-29 Thread John Stultz
On Sun, Jul 24, 2016 at 12:25 AM, Vinod Koul wrote: > On Wed, Jul 20, 2016 at 08:53:03PM -0700, John Stultz wrote: >> From: Andy Green >> >> Max burst len is a 4-bit field, but at the moment it's clipped with >> a 5-bit constant... reduce it to that which can be expressed > > Maybe we should GENM

Re: [PATCH v3 2/2] pci/aer: interrupt fixup in the quirk

2016-07-29 Thread Bjorn Helgaas
On Tue, Jun 14, 2016 at 04:24:05PM +0800, Po Liu wrote: > On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. > When chip support the aer interrupt with none MSI/MSI-X/INTx mode, > maybe there is interrupt line for aer pme etc. Search the interrupt > number in the fdt file. Then

[PATCH V2] clk: bcm: Add driver for Northstar ILP clock

2016-07-29 Thread Rafał Miłecki
From: Rafał Miłecki This clock is present on cheaper Northstar devices like BCM53573 or BCM47189 using Corex-A7. This driver uses PMU (Power Management Unit) to calculate clock rate and allows using it in a generic (clk_*) way. Signed-off-by: Rafał Miłecki --- V2: Rebase on top of clk-next

Re: Build failure in linux mainline when building arcv2 images

2016-07-29 Thread Vineet Gupta
On 07/29/2016 02:48 PM, Guenter Roeck wrote: Yeah there's a 4.8.5 based one (referred to as GNU 2016.03) - will prebuilt toolchain suffice or would you prefer building on your own. Prebuilt could be found below. https://github.com/foss-for-synopsys-dwc-arc-processors/

Re: [PATCH 05/19] x86/dumpstack: fix function graph tracing stack dump reliability issues

2016-07-29 Thread Steven Rostedt
On Thu, 21 Jul 2016 16:21:42 -0500 Josh Poimboeuf wrote: > When function graph tracing is enabled for a function, its return > address on the stack is replaced with the address of an ftrace handler > (return_to_handler). When dumping the stack of a task with graph > tracing enabled, there are so

really and truly

2016-07-29 Thread sleepylight
Hello, I wanted to share with you something important , I guess I really and truly am in love this time! Take a look at some pics of us Warmest, sleepylight

Re: [PATCH] fs: wipe off the compiler warn

2016-07-29 Thread Andrew Morton
On Fri, 29 Jul 2016 22:46:39 +0800 zhongjiang wrote: > From: zhong jiang > > when compile the kenrel code, I happens to the following warn. > fs/reiserfs/ibalance.c:1156:2: warning: ___new_insert_key___ may be used > uninitialized in this function. > memcpy(new_insert_key_addr, &new_insert_key,

Re: [PATCH] checkpatch: fix perl warning about unescaped brace

2016-07-29 Thread Joe Perches
On Fri, 2016-07-29 at 18:27 -0400, Allen Hubbe wrote: > Perl warns: > > Unescaped left brace in regex is deprecated, passed through in regex > > This is explained under "Quantifiers" in perl doc: > http://perldoc.perl.org/perlre.html#Quantifiers Hey Allen. I'm at 5.22 and don't see a warning. F

Re: [PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-29 Thread Caesar Wang
On 2016年07月30日 05:28, Rob Herring wrote: On Wed, Jul 27, 2016 at 10:24:04PM +0800, Caesar Wang wrote: SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc: l

Re: [PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-29 Thread Caesar Wang
On 2016年07月30日 05:28, Rob Herring wrote: On Wed, Jul 27, 2016 at 10:24:04PM +0800, Caesar Wang wrote: SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc: l

Re: [PATCH 1/1] irqdomain: Export __irq_domain_alloc_irqs() and irq_domain_free_irqs()

2016-07-29 Thread Alexander Popov
On 27.07.2016 14:22, Christoph Hellwig wrote: > Hi Alex, > > just submit your PV irq chip for the kernel. It's so small that there > propbably is not need to even make it modular. Hello, Christoph, Thanks a lot for your reply! I'll try to do that and come up with a patch. Best regards, Alexand

Re: [PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-29 Thread Caesar Wang
On 2016年07月27日 22:47, Peter Meerwald-Stadler wrote: SARADC controller needs to be reset before programming it, otherwise it will not function properly. nitpicking on wording below Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc: linux-...@vger.kerne

Re: [PATCH] checkpatch: if no filenames then read stdin

2016-07-29 Thread Joe Perches
On Fri, 2016-07-29 at 18:27 -0400, Allen Hubbe wrote: > If no filenames are given, then read the patch from stdin. Yes, that should work. Thanks Allen. Acked-by: Joe Perches Got anymore? > Signed-off-by: Allen Hubbe > --- >  scripts/checkpatch.pl | 4 ++-- >  1 file changed, 2 insertions(+),

Re: [PATCH] arm64: dts: rockchip: add spiX aliases for rk3399

2016-07-29 Thread Brian Norris
+ Mark On Wed, Jul 20, 2016 at 10:11:11AM +0200, Heiko Stuebner wrote: > Am Mittwoch, 20. Juli 2016, 00:18:40 schrieb Heiko Stübner: > > Am Dienstag, 19. Juli 2016, 12:29:14 schrieb Brian Norris: > > > On Tue, Jul 19, 2016 at 12:27:54PM -0700, Brian Norris wrote: > > > > On Tue, Jul 19, 2016 at 08

Re: [PATCH] checkpatch: fix perl warning about unescaped brace

2016-07-29 Thread Allen Hubbe
This system has v5.22.1. I don't know exactly how this perl was configured. I didn't see the warning on other systems. Strangely, I don't remember seeing it yesterday on this system, either. I might try to reproduce the warning on another system and let you know. The warning and this fix seem

Re: [PATCH] Revert "pstore/ram: add Device Tree bindings"

2016-07-29 Thread Kees Cook
On Thu, Jul 28, 2016 at 3:44 PM, Kees Cook wrote: > On Thu, Jul 28, 2016 at 2:10 PM, Rob Herring wrote: >> On Thu, Jul 28, 2016 at 3:50 PM, Kees Cook wrote: >>> On Thu, Jul 28, 2016 at 1:25 PM, Rob Herring wrote: This reverts commit 35da60941e44dbf57868e67686dd24cc1a33125a. --- W

Re: [PATCH 05/19] x86/dumpstack: fix function graph tracing stack dump reliability issues

2016-07-29 Thread Josh Poimboeuf
On Fri, Jul 29, 2016 at 06:55:21PM -0400, Steven Rostedt wrote: > On Thu, 21 Jul 2016 16:21:42 -0500 > Josh Poimboeuf wrote: > > > When function graph tracing is enabled for a function, its return > > address on the stack is replaced with the address of an ftrace handler > > (return_to_handler).

[PATCH] Networking: Core: netpoll: Fixed a missing spin_unlock

2016-07-29 Thread Salil Kapur
In the case when the loop breaks at line 390, the txq lock is not released. Added an unlock statement before the break statement. Signed-off-by: Salil Kapur --- net/core/netpoll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/core/netpoll.c b/net/core/netpoll.c index

Re: [PATCH] arm64: dts: rockchip: add spiX aliases for rk3399

2016-07-29 Thread Mark Brown
On Fri, Jul 29, 2016 at 04:39:51PM -0700, Brian Norris wrote: > + Mark I very nearly deleted this unread based on the subject line... > I had read that already. I figured that was just rationale for not > documenting the feature (still silly IMO), and not for avoiding using > the existing featur

[RFC][PATCH] pstore: use DT reserved-memory bindings

2016-07-29 Thread Kees Cook
Instead of a ramoops-specific node, use a child node of /reserved-memory. This requires that of_platform_populate() be called for the node, though, since it does not have its own "compatible" property. Suggested-by: Rob Herring Signed-off-by: Kees Cook --- Here's what I've got for moving ramoops

Re: [PATCH v2 1/5] ethernet: add sun8i-emac driver

2016-07-29 Thread Chen-Yu Tsai
On Sat, Jul 30, 2016 at 1:25 AM, Maxime Ripard wrote: > On Thu, Jul 28, 2016 at 04:57:34PM +0200, LABBE Corentin wrote: >> > > +static int sun8i_mdio_write(struct mii_bus *bus, int phy_addr, int >> > > phy_reg, >> > > + u16 data) >> > > +{ >> > > + struct net_device *ndev = bu

Re: [PATCH] checkpatch: fix perl warning about unescaped brace

2016-07-29 Thread Allen Hubbe
On Fri, Jul 29, 2016 at 7:57 PM, Allen Hubbe wrote: > On Fri, Jul 29, 2016 at 7:06 PM, Joe Perches wrote: >> On Fri, 2016-07-29 at 18:27 -0400, Allen Hubbe wrote: >>> Perl warns: >>> >>> Unescaped left brace in regex is deprecated, passed through in regex >>> >>> This is explained under "Quantifi

Re: [PATCH] checkpatch: fix perl warning about unescaped brace

2016-07-29 Thread Joe Perches
On Fri, 2016-07-29 at 21:41 -0400, Allen Hubbe wrote: > Mystery solved... and drop this patch. > > My 'master' on this system was set to an old ref, v4.2-rc1.  There are > no perl warnings as of v4.7. OK great, thanks. I had just built and tested with 5.24 and didn't see any warnings and wondere

[PATCH] staging: ion: remove __GFP_NOWARN when use low order gfp flags

2016-07-29 Thread Chen Feng
It's useful to show the current memory in detail when alloc failed. And, there may be a lot of high order alloc failed, just show memory when an order 0 alloc failed. Signed-off-by: Chen Feng --- drivers/staging/android/ion/ion_system_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [Query] Preemption (hogging) of the work handler

2016-07-29 Thread Sergey Senozhatsky
On (07/29/16 13:42), Viresh Kumar wrote: [..] > I haven't seen any issues with it yet and it works just fine. Please feel free > to add below for the entire series including this hunk. > > Tested-by: Viresh Kumar Thanks a lot! will refresh the series next week. sorry, haven't gotten many chance

Re: [PATCH 1/2] Documentation: kdump: update maxcpus to nr_cpus

2016-07-29 Thread Baoquan He
On 07/29/16 at 11:23am, Zhou Wenjian wrote: > Parameter nr_cpus is used to bring up a SMP dump-capture kernel, > instead of the old parameter maxcpus. This commit update it in > Documentation/kdump/kdump.txt. > > Signed-off-by: Zhou Wenjian > --- > Documentation/kdump/kdump.txt | 2 +- > 1 file

Re: [PATCH 05/19] x86/dumpstack: fix function graph tracing stack dump reliability issues

2016-07-29 Thread Steven Rostedt
On Fri, 29 Jul 2016 19:50:59 -0500 Josh Poimboeuf wrote: > BTW, it would be really nice if ftrace_graph_ret_addr() were idempotent > so we could get the "real" return address without having to pass in a > state variable. > > For example we could add an "unsigned long *retp" pointer to > ftrace_r

Re: [PATCH] fs: wipe off the compiler warn

2016-07-29 Thread zhong jiang
On 2016/7/30 7:02, Andrew Morton wrote: > On Fri, 29 Jul 2016 22:46:39 +0800 zhongjiang wrote: > >> From: zhong jiang >> >> when compile the kenrel code, I happens to the following warn. >> fs/reiserfs/ibalance.c:1156:2: warning: ___new_insert_key___ may be used >> uninitialized in this function.

[PATCH 3/8] liblockdep: Define the ARRAY_SIZE() macro

2016-07-29 Thread Levin, Alexander
From: Ben Hutchings lockdep.c now uses ARRAY_SIZE(). Fixes: 75dd602a5198 ("lockdep: Fix lock_chain::base size") Signed-off-by: Ben Hutchings Signed-off-by: Sasha Levin --- tools/lib/lockdep/uinclude/linux/kernel.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/lib/lockdep/uinclud

[PATCH 7/8] liblockdep: Fix 'defined but not used' warning for init_utsname()

2016-07-29 Thread Levin, Alexander
From: Ben Hutchings We define init_utsname() as static but not inline, resulting in a warning for every source file that includes lockdep.h but doesn't call it. Since it is only used by lockdep.c, define it in there. Signed-off-by: Ben Hutchings Signed-off-by: Sasha Levin --- tools/lib/lockd

[PATCH 2/8] liblockdep: Reduce MAX_LOCK_DEPTH to avoid overflowing lock_chain::depth

2016-07-29 Thread Levin, Alexander
From: Ben Hutchings liblockdep has been broken since commit 75dd602a5198 ("lockdep: Fix lock_chain::base size"), as that adds a check that MAX_LOCK_DEPTH is within the range of lock_chain::depth and in liblockdep it is much too large. That should have resulted in a compiler error, but didn't bec

[PATCH resend 0/8] liblockdep fixes for 3.8

2016-07-29 Thread Levin, Alexander
Hi Ingo, A bunch of fixes that I dropped the ball on back in 3.7. Mostly compilation fixes for errors that have happened due to changes on the kernel side in 3.7. Ben Hutchings (7): liblockdep: Fix undefined symbol prandom_u32 liblockdep: Reduce MAX_LOCK_DEPTH to avoid overflowing lock_c

[PATCH 4/8] liblockdep: Enable -Wall by default

2016-07-29 Thread Levin, Alexander
From: Ben Hutchings Regressions in liblockdep may be missed because it doesn't enable warnings. Adding -Wall immediately introduces a lot of warnings, but those will be fixed by the following commits. Signed-off-by: Ben Hutchings Signed-off-by: Sasha Levin --- tools/lib/lockdep/Makefile | 1

[PATCH 5/8] liblockdep: Fix 'unused value' warnings

2016-07-29 Thread Levin, Alexander
From: Ben Hutchings liblockdep defines various macros that may expand to an expression with no effect, while the in-kernel definition does have an effect. This results in warnings from gcc when -Wunused-value is enabled, and is is enabled by -Wall. Fix this by introducing trivial functions, as f

[PATCH 1/8] liblockdep: Fix undefined symbol prandom_u32

2016-07-29 Thread Levin, Alexander
From: Ben Hutchings __lock_pin_lock() now calls prandom_u32() which is not defined in liblockdep. __lock_pin_lock() and its caller lock_pin_lock() are dead code in liblockdep, but we still need to provide a definition of prandom_u32() in case lazy binding is disabled. Fixes: e7904a28f533 ("lock

[PATCH 1/8] liblockdep: Fix undefined symbol prandom_u32

2016-07-29 Thread Levin, Alexander
From: Ben Hutchings __lock_pin_lock() now calls prandom_u32() which is not defined in liblockdep. __lock_pin_lock() and its caller lock_pin_lock() are dead code in liblockdep, but we still need to provide a definition of prandom_u32() in case lazy binding is disabled. Fixes: e7904a28f533 ("lock

[PATCH 8/8] liblockdep: Remove -lpthread compiler option

2016-07-29 Thread Levin, Alexander
From: Vishal Thanki With -lpthread option, the test for ABBA_2threads was failing, and test passed if it was removed. Since -pthread compiler option is sufficient for linking to pthread libraries, this patch removes -lpthread. Signed-off-by: Vishal Thanki Signed-off-by: Sasha Levin --- tools/

Re: [RFC] perf uprobe: Skip prologue if program compiled without optimization

2016-07-29 Thread Masami Hiramatsu
On Thu, 28 Jul 2016 20:01:51 +0530 Ravi Bangoria wrote: > Function prologue prepares stack and registers before executing function > logic. When target program is compiled without optimization, function > parameter information is only valid after prologue. When we probe entrypc > of the function,

[PATCH 6/8] liblockdep: Fix 'set but not used' warnings

2016-07-29 Thread Levin, Alexander
From: Ben Hutchings liblockdep defines trivial macros for working with interrupt flags, as interrupts are never disabled in userland. This results in warnings from gcc when -Wunused-but-set-variable is enabled, and it is enabled by -Wall. Fix this by evaluating the flags parameter and casting i

[PATCH resend 0/8] liblockdep fixes for 3.8

2016-07-29 Thread Levin, Alexander
Hi Ingo, A bunch of fixes that I dropped the ball on back in 3.7. Mostly compilation fixes for errors that have happened due to changes on the kernel side in 3.7. Ben Hutchings (7): liblockdep: Fix undefined symbol prandom_u32 liblockdep: Reduce MAX_LOCK_DEPTH to avoid overflowing lock_c

[PATCH] MAINTAINERS: update email for Sasha Levin

2016-07-29 Thread Levin, Alexander
New position, new email address. Signed-off-by: Sasha Levin --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8c20323..85fd4ee 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6802,7 +6802,7 @@ S:Maintained F: drivers/a

[PATCH 0/8] liblockdep fixes for 3.8

2016-07-29 Thread Levin, Alexander
Hi Ingo, A bunch of fixes that I dropped the ball on back in 3.7. Mostly compilation fixes for errors that have happened due to changes on the kernel side in 3.7. Ben Hutchings (7): liblockdep: Fix undefined symbol prandom_u32 liblockdep: Reduce MAX_LOCK_DEPTH to avoid overflowing lock_c

[PATCH 1/8] liblockdep: Fix undefined symbol prandom_u32

2016-07-29 Thread Levin, Alexander
From: Ben Hutchings __lock_pin_lock() now calls prandom_u32() which is not defined in liblockdep. __lock_pin_lock() and its caller lock_pin_lock() are dead code in liblockdep, but we still need to provide a definition of prandom_u32() in case lazy binding is disabled. Fixes: e7904a28f533 ("lock

Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-07-29 Thread Rich Felker
On Thu, Jul 28, 2016 at 08:51:25PM +0100, Mark Brown wrote: > On Thu, Jul 28, 2016 at 03:40:45PM -0400, Rich Felker wrote: > > On Thu, Jul 28, 2016 at 08:11:53PM +0100, Mark Brown wrote: > > > > An architecture or SoC dependency with || COMPILE_TEST would be useful > > > for avoiding cluttering Kc

Re: [PATCH] perf/core: Add a tracepoint for perf sampling

2016-07-29 Thread Wangnan (F)
On 2016/7/30 2:05, Brendan Gregg wrote: On Tue, Jul 19, 2016 at 4:20 PM, Brendan Gregg wrote: When perf is performing hrtimer-based sampling, this tracepoint can be used by BPF to run additional logic on each sample. For example, BPF can fetch stack traces and frequency count them in kernel c

[PATCH] fs: fix a bug when new_insert_key is not initialization

2016-07-29 Thread zhongjiang
From: zhong jiang when compile the kenrel code, I happens to the following warn. fs/reiserfs/ibalance.c:1156:2: warning: ‘new_insert_key’ may be used uninitialized in this function. memcpy(new_insert_key_addr, &new_insert_key, KEY_SIZE); The patch fix it by check the new_insert_ptr. if new_inser

Re: Build failure in linux mainline when building arcv2 images

2016-07-29 Thread Guenter Roeck
On 07/29/2016 03:46 PM, Vineet Gupta wrote: What you want is 2016-05-19 09439560b9f9 toolchain: bump ARC tools to arc-2016.03 release which seems to be present in released 2016.05, but when I checkout 2016.05 tag (or aa6fd11feebff) that patch is not there ! A toolchain build off SHA 0943956

Re: [GIT PULL] usercopy protection for v4.8

2016-07-29 Thread Kees Cook
On Tue, Jul 26, 2016 at 8:53 PM, Kees Cook wrote: > On Tue, Jul 26, 2016 at 2:55 PM, Kees Cook wrote: >> Hi, >> >> This is my next pull request for v4.8, which introduces a kernel self >> protection of copy_to_user/copy_from_user that has been under review and >> test on the kernel-hardening list

[Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-07-29 Thread John Stultz
Hey Jon, So after rebasing my nexus7 patch stack onto pre-4.8-rc1 tree, I noticed the power/volume buttons stopped working. I did a manual rebased bisection and chased it down to your commit 1e2a7d78499e ("irqdomain: Don't set type when mapping an IRQ"). Reverting that patch makes things work a

<    1   2   3   4   5   >