Re: [PATCH 1/2] perf: riscv: preliminary RISC-V support

2018-03-28 Thread Alan Kao
Hi Alex, I'm appreciated for your reply and tests. On Wed, Mar 28, 2018 at 03:58:41PM -0700, Alex Solomatnikov wrote: > Did you test this code? I did test this patch on QEMU's virt model with multi-hart, which is the only RISC-V machine I have for now. But as I mentioned in https://github.com/

Re: [PATCH 1/2] perf: riscv: preliminary RISC-V support

2018-03-28 Thread Palmer Dabbelt
On Wed, 28 Mar 2018 15:31:30 PDT (-0700), s...@sifive.com wrote: Also, core IDs and socket IDs are wrong in perf report: It looks like for this we need the stuff in topology.h. I've cobbled something together quickly for Alex to use for now to see if that fixes other problems, I'll submit a

Re: [PATCH v12 07/22] selftests/vm: fixed bugs in pkey_disable_clear()

2018-03-28 Thread Thiago Jung Bauermann
Dave Hansen writes: > On 03/28/2018 01:47 PM, Thiago Jung Bauermann wrote: if (flags) - assert(rdpkey_reg() > orig_pkey_reg); + assert(rdpkey_reg() < orig_pkey_reg); } void pkey_write_allow(int pkey) >>> This seems so horribly wrong that I won

Re: [PATCH v12 07/22] selftests/vm: fixed bugs in pkey_disable_clear()

2018-03-28 Thread Dave Hansen
On 03/28/2018 01:47 PM, Thiago Jung Bauermann wrote: >>> if (flags) >>> - assert(rdpkey_reg() > orig_pkey_reg); >>> + assert(rdpkey_reg() < orig_pkey_reg); >>> } >>> >>> void pkey_write_allow(int pkey) >> This seems so horribly wrong that I wonder how it worked in the firs

Re: [PATCH v12 07/22] selftests/vm: fixed bugs in pkey_disable_clear()

2018-03-28 Thread Thiago Jung Bauermann
Dave Hansen writes: > On 02/21/2018 05:55 PM, Ram Pai wrote: >> --- a/tools/testing/selftests/vm/protection_keys.c >> +++ b/tools/testing/selftests/vm/protection_keys.c >> @@ -461,7 +461,7 @@ void pkey_disable_clear(int pkey, int flags) >> pkey, pkey, pkey_rights); >> p

Re: [PATCH v4 2/8] dt-bindings: ingenic: Add DT bindings for TCU clocks

2018-03-28 Thread Mathieu Malaterre
On Wed, Mar 28, 2018 at 5:04 PM, Paul Cercueil wrote: > Le 2018-03-20 08:15, Mathieu Malaterre a écrit : >> >> Hi Paul, >> >> Two things: >> >> On Sun, Mar 18, 2018 at 12:28 AM, Paul Cercueil >> wrote: >>> >>> This header provides clock numbers for the ingenic,tcu >>> DT binding. >> >> >> I have

Re: [PATCH] docs/memory-barriers.txt: Fix broken DMA vs MMIO ordering example

2018-03-28 Thread Peter Zijlstra
On Wed, Mar 28, 2018 at 10:57:11AM -0700, Tony Luck wrote: > On Wed, Mar 28, 2018 at 6:02 AM, Sinan Kaya wrote: > > +linux-ia64 > > Does IA64 follow this requirement? If not, is implementation planned? > > > > "no wmb() before writel()" > > > > Linus asked us to get rid of wmb() in front of writel

Re: [PATCH] docs/memory-barriers.txt: Fix broken DMA vs MMIO ordering example

2018-03-28 Thread Tony Luck
On Wed, Mar 28, 2018 at 6:02 AM, Sinan Kaya wrote: > +linux-ia64 > Does IA64 follow this requirement? If not, is implementation planned? > > "no wmb() before writel()" > > Linus asked us to get rid of wmb() in front of writel() for UC memory. > Just checking that we are not breaking anything for I

Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-28 Thread Boris Brezillon
On Wed, 28 Mar 2018 11:42:07 -0500 Rob Herring wrote: > >> > >> > +where device-type is describing the type of device connected on the bus > >> > +(gpio-controller, sensor, ...). > >> > + > >> > +Required properties > >> > +--- > >> > +- reg: contains 3 cells > >> > + + first

Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-28 Thread Rob Herring
On Wed, Mar 28, 2018 at 3:19 AM, Boris Brezillon wrote: > Hi Rob, > > On Mon, 26 Mar 2018 17:24:58 -0500 > Rob Herring wrote: > >> > + >> > +I3C devices >> > +=== >> > + >> > +All I3C devices are supposed to support DAA (Dynamic Address Assignment), >> > and >> > +are thus discoverable.

Re: [PATCH v4 4/8] dt-bindings: Add doc for the Ingenic TCU drivers

2018-03-28 Thread Rob Herring
On Wed, Mar 28, 2018 at 10:33 AM, Paul Cercueil wrote: > Le 2018-03-27 16:46, Rob Herring a écrit : >> >> On Sun, Mar 18, 2018 at 12:28:57AM +0100, Paul Cercueil wrote: >>> >>> Add documentation about how to properly use the Ingenic TCU >>> (Timer/Counter Unit) drivers from devicetree. >>> >>> Sig

Re: [PATCH v4 7/8] clocksource: Add a new timer-ingenic driver

2018-03-28 Thread Daniel Lezcano
On 28/03/2018 17:15, Paul Cercueil wrote: > Le 2018-03-24 07:26, Daniel Lezcano a écrit : >> On 18/03/2018 00:29, Paul Cercueil wrote: >>> This driver will use the TCU (Timer Counter Unit) present on the Ingenic >>> JZ47xx SoCs to provide the kernel with a clocksource and timers. >> >> Please provi

[PATCH] Documentation/usb: Fix dead links and convert others to https

2018-03-28 Thread Sanjeev Gupta
All links checked, for those dead, I have replaced with copies on archive.org. For some, https is not supported, http has been kept. The git log says this was last done by Justin P. Mattock in 2010. Hi, Justin! Signed-off-by: Sanjeev Gupta --- Documentation/usb/usb-serial.txt | 14

Re: [PATCH v4 4/8] dt-bindings: Add doc for the Ingenic TCU drivers

2018-03-28 Thread Paul Cercueil
Le 2018-03-27 16:46, Rob Herring a écrit : On Sun, Mar 18, 2018 at 12:28:57AM +0100, Paul Cercueil wrote: Add documentation about how to properly use the Ingenic TCU (Timer/Counter Unit) drivers from devicetree. Signed-off-by: Paul Cercueil --- .../bindings/clock/ingenic,tcu-clocks.txt

Re: [PATCH v4 7/8] clocksource: Add a new timer-ingenic driver

2018-03-28 Thread Paul Cercueil
Le 2018-03-24 07:26, Daniel Lezcano a écrit : On 18/03/2018 00:29, Paul Cercueil wrote: This driver will use the TCU (Timer Counter Unit) present on the Ingenic JZ47xx SoCs to provide the kernel with a clocksource and timers. Please provide a more detailed description about the timer. There

Re: [PATCH v4 0/8] Ingenic JZ47xx Timer/Counter Unit drivers

2018-03-28 Thread Daniel Lezcano
On 28/03/2018 17:01, Paul Cercueil wrote: > Le 2018-03-18 23:13, Daniel Lezcano a écrit : >> On 18/03/2018 00:28, Paul Cercueil wrote: >>> Hi, >>> >>> This is the 4th version of my TCU patchset. >>> >>> The major change is a greatly improved documentation, both in-code >>> and as separate text file

Re: [PATCH v4 4/8] dt-bindings: Add doc for the Ingenic TCU drivers

2018-03-28 Thread Paul Cercueil
Le 2018-03-20 09:52, Marc Zyngier a écrit : On 17/03/18 23:28, Paul Cercueil wrote: Add documentation about how to properly use the Ingenic TCU (Timer/Counter Unit) drivers from devicetree. Signed-off-by: Paul Cercueil --- .../bindings/clock/ingenic,tcu-clocks.txt | 42 +

Re: [PATCH v4 2/8] dt-bindings: ingenic: Add DT bindings for TCU clocks

2018-03-28 Thread Paul Cercueil
Le 2018-03-20 08:15, Mathieu Malaterre a écrit : Hi Paul, Two things: On Sun, Mar 18, 2018 at 12:28 AM, Paul Cercueil wrote: This header provides clock numbers for the ingenic,tcu DT binding. I have tested the whole series on my Creator CI20 with success, using: + tcu@10002000 { + compati

Re: [PATCH v4 0/8] Ingenic JZ47xx Timer/Counter Unit drivers

2018-03-28 Thread Paul Cercueil
Le 2018-03-18 23:13, Daniel Lezcano a écrit : On 18/03/2018 00:28, Paul Cercueil wrote: Hi, This is the 4th version of my TCU patchset. The major change is a greatly improved documentation, both in-code and as separate text files, to describe how the hardware works and how the devicetree bindi

[PATCH] Documentation/thermal: Check links and convert to https

2018-03-28 Thread Sanjeev Gupta
All links working. Signed-off-by: Sanjeev Gupta --- Documentation/thermal/cpu-cooling-api.txt | 2 +- Documentation/thermal/nouveau_thermal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/thermal/cpu-cooling-api.txt b/Documentation/thermal/cpu-cooling-ap

Re: [PATCH v4 3/8] doc: Add doc for the Ingenic TCU hardware

2018-03-28 Thread Paul Cercueil
Le 2018-03-18 00:52, Randy Dunlap a écrit : On 03/17/2018 04:28 PM, Paul Cercueil wrote: Add a documentation file about the Timer/Counter Unit (TCU) present in the Ingenic JZ47xx SoCs. Signed-off-by: Paul Cercueil --- Documentation/mips/00-INDEX| 3 +++ Documentation/mips/ingenic-tcu

[PATCH] Documentation/wimax: Point dead link to working copy

2018-03-28 Thread Sanjeev Gupta
The linuxwimax.org domain, registered by the Linux Foundation, no longer has any DNS entries. Locate a copy on archive.org and update the documentation. Signed-off-by: Sanjeev Gupta --- Documentation/wimax/README.i2400m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Do

Re: [PATCH] docs/memory-barriers.txt: Fix broken DMA vs MMIO ordering example

2018-03-28 Thread Sinan Kaya
+linux-ia64 On 3/27/2018 11:02 AM, Paul E. McKenney wrote: > On Tue, Mar 27, 2018 at 02:11:27PM +0100, Will Deacon wrote: >> The section of memory-barriers.txt that describes the dma_Xmb() barriers >> has an incorrect example claiming that a wmb() is required after writing >> to coherent memory in

[Question] Documentation/features: More automation/scripting help?

2018-03-28 Thread Andrea Parri
Hi all, The directory (not yet three years old although, I freely admit, I've only recently become aware of it) provides arch. support matrices for more than 40 generic kernel features that need per-arch. support: This is a superb project! ;-) and not a simple one given that, to be effective, th

Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-28 Thread Boris Brezillon
Hi Rob, On Mon, 26 Mar 2018 17:24:58 -0500 Rob Herring wrote: > > + > > +I3C devices > > +=== > > + > > +All I3C devices are supposed to support DAA (Dynamic Address Assignment), > > and > > +are thus discoverable. So, by default, I3C devices do not have to be > > described > > +in the