Re: [GIT PULL] perf fixes

2018-11-18 Thread pr-tracker-bot
The pull request you sent on Sat, 17 Nov 2018 11:55:18 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > perf-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b53e27f618b58d50db72375eb8e1b6ddcef7cdb5 Thank you! -- Deet-doot-dot, I

[PATCH 1/3] arm64: dts: qcom: qcs404: Specify pinctrl state for UART

2018-11-18 Thread Bjorn Andersson
BLSP1 UART2 is used as debug uart on the EVB development board, define pinmux state for the UART in the platform dtsi and pinconf state for it in the board dts. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/qcs404-evb.dtsi | 14 ++ arch/arm64/boot/dts/qcom/qcs404.dtsi

Re: [GIT PULL] scheduler fix

2018-11-18 Thread pr-tracker-bot
The pull request you sent on Sat, 17 Nov 2018 11:57:57 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > sched-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/03582f338e39ed8f8e8451ef1ef04f060d785a87 Thank you! -- Deet-doot-dot, I

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-18 Thread Uwe Kleine-König
Hello Thierry, On Fri, Nov 16, 2018 at 01:24:45PM +0100, Thierry Reding wrote: > On Fri, Nov 16, 2018 at 11:39:29AM +0100, Uwe Kleine-König wrote: > > On Fri, Nov 16, 2018 at 10:51:24AM +0100, Thierry Reding wrote: > > > On Thu, Nov 15, 2018 at 09:37:33PM +0100, Uwe Kleine-König wrote: > > > > On

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Christian Brauner
On Sun, Nov 18, 2018 at 11:44:19AM -0800, Daniel Colascione wrote: > On Sun, Nov 18, 2018 at 11:05 AM, Aleksa Sarai wrote: > > On 2018-11-18, Daniel Colascione wrote: > >> > Here's my point: if we're really going to make a new API to manipulate > >> > processes by their fd, I think we should have

[PATCH] MMC: OMAP: fix broken MMC on OMAP15XX/OMAP5912/OMAP310

2018-11-18 Thread Aaro Koskinen
Since v2.6.22 or so there has been reports [1] about OMAP MMC being broken on OMAP15XX based hardware (OMAP5912 and OMAP310). The breakage seems to have been caused by commit 46a6730e3ff9 ("mmc-omap: Fix omap to use MMC_POWER_ON") that changed clock enabling to be done on MMC_POWER_ON. This can hap

Re: [PATCH v2] MAINTAINERS: update OMAP MMC entry

2018-11-18 Thread Geert Uytterhoeven
Hi Aaro, CC Jarkko (from his last patch) On Tue, Nov 6, 2018 at 11:29 PM Aaro Koskinen wrote: > Jarkko's e-mail address hasn't worked for a long time. We still want > to keep this driver working as it is critical for some of the OMAP boards. > I use and test this driver frequently, so change mys

Re: [PATCH 2/4] net/bpf: refactor freeing of executable allocations

2018-11-18 Thread Y Song
On Sun, Nov 18, 2018 at 3:55 PM Ard Biesheuvel wrote: > > On Sat, 17 Nov 2018 at 23:47, Y Song wrote: > > > > On Sat, Nov 17, 2018 at 6:58 PM Ard Biesheuvel > > wrote: > > > > > > All arch overrides of the __weak bpf_jit_free() amount to the same > > > thing: the allocated memory was never mappe

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Daniel Colascione
On Sun, Nov 18, 2018 at 12:15 PM, Christian Brauner wrote: >> That is, I'm proposing an API that looks like this: >> >> int process_kill(int procfs_dfd, int signo, const union sigval value) > > I've started a second tree with process_signal(int procpid_dfd, int sig) Thanks. > instead of an ioctl

Re: [PATCH v2] MAINTAINERS: update OMAP MMC entry

2018-11-18 Thread Geert Uytterhoeven
On Sun, Nov 18, 2018 at 9:21 PM Geert Uytterhoeven wrote: > CC Jarkko (from his last patch) Dropped. Apparently that address bounces, too. > On Tue, Nov 6, 2018 at 11:29 PM Aaro Koskinen wrote: > > Jarkko's e-mail address hasn't worked for a long time. We still want > > to keep this driver work

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Andy Lutomirski
> On Nov 18, 2018, at 12:44 PM, Daniel Colascione wrote: > > > That is, I'm proposing an API that looks like this: > > int process_kill(int procfs_dfd, int signo, const union sigval value) > > If, later, process_kill were to *also* accept process-capability FDs, > nothing would break. Exc

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Daniel Colascione
On Sun, Nov 18, 2018 at 12:28 PM, Andy Lutomirski wrote: >> That is, I'm proposing an API that looks like this: >> >> int process_kill(int procfs_dfd, int signo, const union sigval value) >> >> If, later, process_kill were to *also* accept process-capability FDs, >> nothing would break. > > Except

STIBP by default.. Revert?

2018-11-18 Thread Linus Torvalds
This was marked for stable, and honestly, nowhere in the discussion did I see any mention of just *how* bad the performance impact of this was. When performance goes down by 50% on some loads, people need to start asking themselves whether it was worth it. It's apparently better to just disable SM

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Christian Brauner
On Sun, Nov 18, 2018 at 01:28:41PM -0700, Andy Lutomirski wrote: > > > > On Nov 18, 2018, at 12:44 PM, Daniel Colascione wrote: > > > > > > > That is, I'm proposing an API that looks like this: > > > > int process_kill(int procfs_dfd, int signo, const union sigval value) > > > > If, later,

Re: [PATCH v5] selftests: membarrier: re-organize test

2018-11-18 Thread Rafael David Tinoco
Why do we need to add new routines for these conditions. Why can't handle these strings in array. For example you can define an array of strings for passed unexpectedly etc. and the pass the string to appropriate ksft_* interface instead of adding of these routines. Also it is hard to review th

Re: [PATCH] mtd: nand: spi: Add initial support for Toshiba TC58CVG2S0H

2018-11-18 Thread Miquel Raynal
Hi Schrempf, Schrempf Frieder wrote on Thu, 8 Nov 2018 08:32:11 +: > Add minimal support for the Toshiba TC58CVG2S0H SPI NAND chip. > > Signed-off-by: Frieder Schrempf > --- With "mtd: spinand:" as prefix, applied to nand/next. Thanks, Miquèl

Important

2018-11-18 Thread Reem Al-Hashimi
Hello, My name is ms. Reem Al-Hashimi. The UAE minister of state for international cooparation. I got your contact from a certain email database from your country while i was looking for someone to handle a huge financial transaction for me in confidence. Can you receive and invest on behalf of

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Daniel Colascione
On Sun, Nov 18, 2018 at 12:43 PM, Christian Brauner wrote: > On Sun, Nov 18, 2018 at 01:28:41PM -0700, Andy Lutomirski wrote: >> >> >> > On Nov 18, 2018, at 12:44 PM, Daniel Colascione wrote: >> > >> >> > >> > That is, I'm proposing an API that looks like this: >> > >> > int process_kill(int proc

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Christian Brauner
On Sun, Nov 18, 2018 at 12:54:10PM -0800, Daniel Colascione wrote: > On Sun, Nov 18, 2018 at 12:43 PM, Christian Brauner > wrote: > > On Sun, Nov 18, 2018 at 01:28:41PM -0700, Andy Lutomirski wrote: > >> > >> > >> > On Nov 18, 2018, at 12:44 PM, Daniel Colascione > >> > wrote: > >> > > >> > >> >

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Christian Brauner
On Sun, Nov 18, 2018 at 10:23:36PM +0100, Christian Brauner wrote: > On Sun, Nov 18, 2018 at 12:54:10PM -0800, Daniel Colascione wrote: > > On Sun, Nov 18, 2018 at 12:43 PM, Christian Brauner > > wrote: > > > On Sun, Nov 18, 2018 at 01:28:41PM -0700, Andy Lutomirski wrote: > > >> > > >> > > >> > O

Re: [PATCH v1 1/1] spi: npcm: fix uninitialized 'val' warning in receive function

2018-11-18 Thread Olof Johansson
On Sun, Nov 18, 2018 at 4:36 AM Tomer Maimon wrote: > > Fix uninitialized 'val' warning receive function, send function > has been modify to be aligned with the receive function. > > Signed-off-by: Tomer Maimon > --- > drivers/spi/spi-npcm-pspi.c | 12 ++-- > 1 file changed, 6 insertions

Re: STIBP by default.. Revert?

2018-11-18 Thread Jiri Kosina
On Sun, 18 Nov 2018, Linus Torvalds wrote: > This was marked for stable, and honestly, nowhere in the discussion > did I see any mention of just *how* bad the performance impact of this > was. Frankly, I ran some benchmarks myself, and am seeing very, very varying/noisy results, which were rathe

[PATCH v2] dt-bindings: regulator: Change regulator-coupled-max-spread property

2018-11-18 Thread Dmitry Osipenko
Redefine binding for regulator-coupled-max-spread property in a way that max-spread values are defined per regulator couple instead of defining single max-spread for the whole group of coupled regulators. With that change the following regulators coupling configuration will be possible: regA: reg

[PATCH v2 0/3] Coupled-regulators follow up

2018-11-18 Thread Dmitry Osipenko
Hi, This is a follow up to [0]. What's changed in v2: - The "Use ww_mutex for regulators locking" patch compiles now for the drivers that are touching "rdev's" mutex, in a result regulator_[un]lock() functions are public now. - Added new patch to the series ("Keep regulators-list lo

[PATCH v2 1/3] regulator: core: Use ww_mutex for regulators locking

2018-11-18 Thread Dmitry Osipenko
Wait/wound mutex shall be used in order to avoid lockups on locking of coupled regulators. Signed-off-by: Dmitry Osipenko Suggested-by: Lucas Stach --- drivers/regulator/core.c | 403 +++--- drivers/regulator/da9210-regulator.c | 4 +- drivers/regulator/stpmi

[PATCH v2 3/3] regulator: core: Keep regulators-list locked while traversing the list

2018-11-18 Thread Dmitry Osipenko
It's unlikely that regulators may disappear/appear while regulators debug-summary is being prepared, but let's be consistent and avoid that situation. Signed-off-by: Dmitry Osipenko --- drivers/regulator/core.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/r

[PATCH v2 2/3] regulator: core: Properly handle case where supply is the couple

2018-11-18 Thread Dmitry Osipenko
Check whether supply regulator is the couple to avoid infinite recursion during of locking. Signed-off-by: Dmitry Osipenko --- drivers/regulator/core.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c ind

[PATCH 3/5] dt-bindings: gnss: add w2sg0004 compatible string

2018-11-18 Thread Andreas Kemnade
Add w2sg0004 compatible string since devices without wakeup pins are now supported. Signed-off-by: Andreas Kemnade --- Documentation/devicetree/bindings/gnss/sirfstar.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gnss/sirfstar.txt b/Documentation/devi

[PATCH RFC 4/5] gnss: sirf: add a separate supply for a lna

2018-11-18 Thread Andreas Kemnade
Devices might have a separate lna between antenna output of the gps chip and the antenna which might have a separate supply Signed-off-by: Andreas Kemnade --- drivers/gnss/sirf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gnss/sirf.c b/drivers/gnss/sirf.c index

[PATCH RFC 5/5] dt-bindings: gnss: add lna-supply property

2018-11-18 Thread Andreas Kemnade
Add lna-supply property. Signed-off-by: Andreas Kemnade --- Documentation/devicetree/bindings/gnss/sirfstar.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gnss/sirfstar.txt b/Documentation/devicetree/bindings/gnss/sirfstar.txt index 1be7597ae884..96147

[PATCH 2/5] gnss: sirf: power on logic for devices without wakeup signal

2018-11-18 Thread Andreas Kemnade
Some Wi2Wi devices do not have a wakeup output, so device state can only be indirectly detected by looking whether there is communitcation over the serial lines. Additionally it checks for the initial state of the device during probing to ensure it is off. Timeout values need to be increased, becau

[PATCH 0/5] gnss: sirf: add support for w2sg0004 + lna

2018-11-18 Thread Andreas Kemnade
Here is another chapter of the story to get gta04 gnss power management into the mainline kernel. There is a w2sg0004 without wakeup line in there, so power state can only be determined indirectly by looking at the serial data lines. Then there as also an lna which needs to be powered for real gps

[PATCH 1/5] gnss: sirf: write data to gnss only when the gnss device is open

2018-11-18 Thread Andreas Kemnade
The api forbids writing data there otherwise. Prepare for the serdev_open()/close() being a part of runtime pm. Signed-off-by: Andreas Kemnade --- drivers/gnss/sirf.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/gnss/sirf.c b/drivers/gnss/sirf.c in

Re: STIBP by default.. Revert?

2018-11-18 Thread Linus Torvalds
On Sun, Nov 18, 2018 at 1:49 PM Jiri Kosina wrote: > > > So why do that STIBP slow-down by default when the people who *really* > > care already disabled SMT? > > BTW for them, there is no impact at all. Right. People who really care about security and are anal about it do not see *any* advantage

[no subject]

2018-11-18 Thread Major Dennis Hornbeck
I am in the military unit here in Afghanistan, we have some amount of funds that we want to move out of the country. My partners and I need a good partner someone we can trust. It is risk free and legal. Reply to this email: hornbeckmajordennis...@gmail.com Regards,Major Dennis Hornbeck.

Re: STIBP by default.. Revert?

2018-11-18 Thread Willy Tarreau
On Sun, Nov 18, 2018 at 10:49:44PM +0100, Jiri Kosina wrote: > odds are that people > who don't care about spectrev2 already have 'nospectre_v2' on their > command-line, so they are fine as well. FWIW in our appliances, we never modify the boot loader's cmdline in field, we only provide new kern

Re: [PATCH v1 0/4] EMC fixes for Tegra30+

2018-11-18 Thread Dmitry Osipenko
On 30.08.2018 21:54, Dmitry Osipenko wrote: > Hello, > > This patch series fixes couple bugs in the memory self-refresh code. > The EMC / MC state is properly restored after patches being applied, > please review. > > Dmitry Osipenko (4): > ARM: tegra: Fix missed EMC registers latching on resum

Linux 4.20-rc3

2018-11-18 Thread Linus Torvalds
The only unusual thing last week was my travel - not any code issues. That caused a few pulls to be delayed by a day or two, but nothing else. And now I'm back home, and 4.20-rc3 is out there. The changes in rc3 are pretty tiny, which means that the statistics look slightly different from the uys

[PATCH v2] debugobjects: add a new Kconfig for POOL_SIZE

2018-11-18 Thread Qian Cai
The current value of ODEBUG_POOL_SIZE is not big enough for systems with large number of CPUs with timer or/and workqueue objects because during the early boot, timer objects needs the size equals to No. CPUs x 2 (worker pool) start_kernel workqueue_init_early init_worker_pool init_ti

Re: STIBP by default.. Revert?

2018-11-18 Thread Jiri Kosina
On Sun, 18 Nov 2018, Linus Torvalds wrote: > > So, I think it's as theoretical as any other spectrev2 (only with the > > extra "HT" condition added on top). > > What? No. > > It's *way* more theoretical than something like meltdown, which could > be trivially used to get data from another protec

Re: [PATCH] MMC: OMAP: fix broken MMC on OMAP15XX/OMAP5912/OMAP310

2018-11-18 Thread Ladislav Michl
Aaro, On Sun, Nov 18, 2018 at 10:19:19PM +0200, Aaro Koskinen wrote: > Since v2.6.22 or so there has been reports [1] about OMAP MMC being > broken on OMAP15XX based hardware (OMAP5912 and OMAP310). The breakage > seems to have been caused by commit 46a6730e3ff9 ("mmc-omap: Fix > omap to use MMC_P

Re: STIBP by default.. Revert?

2018-11-18 Thread Linus Torvalds
On Sun, Nov 18, 2018 at 2:17 PM Jiri Kosina wrote: > Which gets us back to Tim's fixup patch. Do you still prefer the revert, > given the existence of that? I don't think the code needs to be reverted, but the *behavior* of just unconditionally enabling STIBP needs to be reverted. Because it was

Re: STIBP by default.. Revert?

2018-11-18 Thread Tony Luck
On Sun, Nov 18, 2018 at 2:19 PM Jiri Kosina wrote: > Which gets us back to Tim's fixup patch. Do you still prefer the revert, > given the existence of that? I think that if Tim's fixup makes it through > (it's currently missing SECCOMP handling, but that is trivial to add on > top), it might be th

Re: STIBP by default.. Revert?

2018-11-18 Thread Tim Chen
On 11/18/2018 02:17 PM, Jiri Kosina wrote: > On Sun, 18 Nov 2018, Linus Torvalds wrote: > >>> So, I think it's as theoretical as any other spectrev2 (only with the >>> extra "HT" condition added on top). >> >> What? No. >> >> It's *way* more theoretical than something like meltdown, which could >>

Re: STIBP by default.. Revert?

2018-11-18 Thread Dave Hansen
> On Nov 18, 2018, at 2:17 PM, Jiri Kosina wrote: > > It's probably not just browsers, but anything running JITed sandboxed > code. So the most straightforward way might be the prctl() aproach, where > userspace would claim "I do care about this, please fix it up for me". So > prctl() + perh

Re: [PATCH] MMC: OMAP: fix broken MMC on OMAP15XX/OMAP5912/OMAP310

2018-11-18 Thread Tony Lindgren
* Ladislav Michl [181118 22:22]: > Aaro, > > On Sun, Nov 18, 2018 at 10:19:19PM +0200, Aaro Koskinen wrote: > > Since v2.6.22 or so there has been reports [1] about OMAP MMC being > > broken on OMAP15XX based hardware (OMAP5912 and OMAP310). The breakage > > seems to have been caused by commit 46

RE: [PATCH v9 16/17] tpm: take TPM chip power gating out of tpm_transmit()

2018-11-18 Thread Winkler, Tomas
> > Call tpm_chip_start() and tpm_chip_stop() in > > * tpm_try_get_ops() and tpm_put_ops() > * tpm_chip_register() > * tpm2_del_space() > > And remove these calls from tpm_transmit(). The core reason for this change > is that in tpm_vtpm_proxy a locality change requires a virtual TPM command

Re: STIBP by default.. Revert?

2018-11-18 Thread Tim Chen
On 11/18/2018 02:36 PM, Linus Torvalds wrote: > On Sun, Nov 18, 2018 at 2:17 PM Jiri Kosina wrote: >> Which gets us back to Tim's fixup patch. Do you still prefer the revert, >> given the existence of that? > > I don't think the code needs to be reverted, but the *behavior* of > just unconditiona

Re: [RFC PATCH 3/4] mm, memory_hotplug: allocate memmap from the added memory range for sparse-vmemmap

2018-11-18 Thread osalvador
On Fri, 2018-11-16 at 14:41 -0800, Dave Hansen wrote: > On 11/16/18 2:12 AM, Oscar Salvador wrote: > > Physical memory hotadd has to allocate a memmap (struct page array) > > for > > the newly added memory section. Currently, kmalloc is used for > > those > > allocations. > > Did you literally mea

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-18 Thread Jiri Kosina
On Sat, 17 Nov 2018, Jiri Kosina wrote: > > diff --git a/Documentation/admin-guide/kernel-parameters.txt > > b/Documentation/admin-guide/kernel-parameters.txt > > index 81d1d5a..9c306e3 100644 > > --- a/Documentation/admin-guide/kernel-parameters.txt > > +++ b/Documentation/admin-guide/kernel-par

Re: STIBP by default.. Revert?

2018-11-18 Thread Jiri Kosina
On Sun, 18 Nov 2018, Jiri Kosina wrote: > It's probably not just browsers, but anything running JITed sandboxed > code. So the most straightforward way might be the prctl() aproach, where > userspace would claim "I do care about this, please fix it up for me". So > prctl() + perhaps SECCOMP. I

Re: Re: STIBP by default.. Revert?

2018-11-18 Thread Arjan van de Ven
On 11/19/2018 6:00 AM, Linus Torvalds wrote: On Sun, Nov 18, 2018 at 1:49 PM Jiri Kosina wrote: So why do that STIBP slow-down by default when the people who *really* care already disabled SMT? BTW for them, there is no impact at all. Right. People who really care about security and are a

Re: [PATCH v8 08/17] tpm: call tpm2_flush_space() on error in tpm_try_transmit()

2018-11-18 Thread Sasha Levin
On Sun, Nov 18, 2018 at 09:36:18AM +0200, Jarkko Sakkinen wrote: On Fri, Nov 16, 2018 at 11:19:57AM -0500, Sasha Levin wrote: On Fri, Nov 16, 2018 at 02:38:32PM +0200, Jarkko Sakkinen wrote: > Always call tpm2_flush_space() on failure in tpm_try_transmit() so that > the volatile memory of the TP

[PATCH] ipc/shm.c: removed 'int err' from shm_get_policy()

2018-11-18 Thread danielijrobson
From: Daniel Robson removed unneeded variable in shm_get_policy() Signed-off-by: Daniel Robson --- ipc/shm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ipc/shm.c b/ipc/shm.c index 0842411cb0e9..2cb493214108 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -461,11 +461,10

Re: STIBP by default.. Revert?

2018-11-18 Thread Andi Kleen
Linus Torvalds writes: > On Sun, Nov 18, 2018 at 2:17 PM Jiri Kosina wrote: >> Which gets us back to Tim's fixup patch. Do you still prefer the revert, >> given the existence of that? > > I don't think the code needs to be reverted, but the *behavior* of > just unconditionally enabling STIBP nee

Re: STIBP by default.. Revert?

2018-11-18 Thread Andi Kleen
> So my patchset and Jiri's patchset should probably be merged together, so the > users have a choice of the behavior. ... or delay Jiri's patchkit until the scheduler can actually check properly for the cases when it is really needed. -Andi

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Aleksa Sarai
On 2018-11-18, Daniel Colascione wrote: > > The gist is to have file descriptors for processes which is obviously not a > > new > > idea. This has been done before in other OSes and it has been tried before > > in > > Linux [2], [3] (Thanks to Kees for pointing out these patches.). So I want >

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Aleksa Sarai
On 2018-11-18, Daniel Colascione wrote: > On Sun, Nov 18, 2018 at 11:05 AM, Aleksa Sarai wrote: > > On 2018-11-18, Daniel Colascione wrote: > >> > Here's my point: if we're really going to make a new API to manipulate > >> > processes by their fd, I think we should have at least a decent idea >

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Daniel Colascione
On Sun, Nov 18, 2018 at 1:30 PM, Christian Brauner wrote: > On Sun, Nov 18, 2018 at 10:23:36PM +0100, Christian Brauner wrote: >> On Sun, Nov 18, 2018 at 12:54:10PM -0800, Daniel Colascione wrote: >> > On Sun, Nov 18, 2018 at 12:43 PM, Christian Brauner >> > wrote: >> > > On Sun, Nov 18, 2018 at

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Christian Brauner
On Sun, Nov 18, 2018 at 04:31:22PM -0800, Daniel Colascione wrote: > On Sun, Nov 18, 2018 at 1:30 PM, Christian Brauner > wrote: > > On Sun, Nov 18, 2018 at 10:23:36PM +0100, Christian Brauner wrote: > >> On Sun, Nov 18, 2018 at 12:54:10PM -0800, Daniel Colascione wrote: > >> > On Sun, Nov 18, 20

[PATCH] mm: fix swap offset when replacing shmem page

2018-11-18 Thread Yu Zhao
We used to have a single swap address space with swp_entry_t.val as its radix tree index. This is not the case anymore. Now Each swp_type() has its own address space and should use swp_offset() as radix tree index. Signed-off-by: Yu Zhao --- mm/shmem.c | 11 +++ 1 file changed, 7 inserti

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Daniel Colascione
On Sun, Nov 18, 2018 at 4:09 PM, Aleksa Sarai wrote: > On 2018-11-18, Daniel Colascione wrote: >> On Sun, Nov 18, 2018 at 11:05 AM, Aleksa Sarai wrote: >> > On 2018-11-18, Daniel Colascione wrote: >> >> > Here's my point: if we're really going to make a new API to manipulate >> >> > processes b

[PATCH 00/14] Add basic support for Socionext Milbeaut M10V SoCs

2018-11-18 Thread Sugaya Taichi
Hi, Here is the series of patches the initial support for SC2000(M10V) of Milbeaut SoCs. "M10V" is the internal name of SC2000, so commonly used in source code. SC2000 is a SoC of the Milbeaut series. equipped with a DSP optimized for computer vision. It also features advanced functionalities suc

[PATCH 01/14] ARM: milbeaut: Add basic support for Milbeaut m10v SoC

2018-11-18 Thread Sugaya Taichi
This adds the basic M10V SoC support under arch/arm. Since all cores are activated in the custom bootloader before booting linux, it is necessary to wait for sub-cores using the trampoline area. Signed-off-by: Sugaya Taichi --- arch/arm/Kconfig | 2 + arch/arm/Makefile

[PATCH 02/14] dt-bindings: soc: milbeaut: Add Milbeaut trampoline description

2018-11-18 Thread Sugaya Taichi
Add DT bindings document for Milbeaut trampoline. Signed-off-by: Sugaya Taichi --- .../devicetree/bindings/soc/socionext/socionext,m10v.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socionext,m10v.txt diff --git

[PATCH 05/14] clocksource/drivers/timer-milbeaut: Add Milbeaut M10V timer

2018-11-18 Thread Sugaya Taichi
Add Milbeaut M10V timer using 32bit timer in peripheral. Signed-off-by: Sugaya Taichi --- drivers/clocksource/Kconfig | 8 +++ drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-m10v.c | 146 +++ 3 files changed, 155 insertions(+) crea

[PATCH 07/14] clock: milbeaut: Add Milbeaut M10V clock control

2018-11-18 Thread Sugaya Taichi
Add Milbeaut M10V clock ( including PLL ) control. Signed-off-by: Sugaya Taichi --- drivers/clk/Makefile | 1 + drivers/clk/clk-m10v.c | 671 + 2 files changed, 672 insertions(+) create mode 100644 drivers/clk/clk-m10v.c diff --git a/drivers/

[PATCH 10/14] dt-bindings: pinctrl: milbeaut: Add Milbeaut M10V pinctrl description

2018-11-18 Thread Sugaya Taichi
Add DT bindings document for Milbeaut M10V pinctrl. Signed-off-by: Sugaya Taichi --- .../pinctrl/socionext,milbeaut-pinctrl.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/socionext,milbeaut-pinctrl.txt dif

[PATCH 13/14] ARM: configs: Add Milbeaut M10V defconfig

2018-11-18 Thread Sugaya Taichi
This patch adds the minimal defconfig for the Milbeaut M10V. Signed-off-by: Sugaya Taichi --- arch/arm/configs/milbeaut_m10v_defconfig | 364 +++ 1 file changed, 364 insertions(+) create mode 100644 arch/arm/configs/milbeaut_m10v_defconfig diff --git a/arch/arm/conf

[PATCH 08/14] dt-bindings: serial: Add Milbeaut M10V serial description

2018-11-18 Thread Sugaya Taichi
Add DT bindings document for Milbeaut M10V serial. Signed-off-by: Sugaya Taichi --- .../devicetree/bindings/serial/milbeaut-uart.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/milbeaut-uart.txt diff --git a/Docume

[PATCH 06/14] dt-bindings: clock: milbeaut: add Milbeaut clock description

2018-11-18 Thread Sugaya Taichi
Add DT bindings document for Milbeaut clock. Signed-off-by: Sugaya Taichi --- .../devicetree/bindings/clock/milbeaut-clock.txt | 93 ++ 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/milbeaut-clock.txt diff --git a/Documentatio

[PATCH 12/14] ARM: dts: milbeaut: Add device tree set for the Milbeaut M10V board

2018-11-18 Thread Sugaya Taichi
Add devicetree for Milbeaut M10V SoC and M10V Evaluation board. Signed-off-by: Sugaya Taichi --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/milbeaut-m10v-evb.dts | 35 +++ arch/arm/boot/dts/milbeaut-m10v-evb.dtsi | 17 ++ arch/arm/boot/dts/milbeaut-m10v.dtsi | 510

[PATCH 09/14] serial: Add Milbeaut M10V serial control

2018-11-18 Thread Sugaya Taichi
Add Milbeaut M10V serial control. Signed-off-by: Sugaya Taichi --- drivers/tty/serial/Kconfig | 24 ++ drivers/tty/serial/Makefile | 1 + drivers/tty/serial/m10v_usio.c | 605 +++ include/uapi/linux/serial_core.h | 3 + 4 files changed, 633 i

[PATCH 11/14] pinctrl: milbeaut: Add Milbeaut M10V pinctrl

2018-11-18 Thread Sugaya Taichi
Add Milbeaut M10V pinctrl. The M10V has the pins that can be used GPIOs or take multiple other functions. Signed-off-by: Sugaya Taichi --- drivers/pinctrl/Kconfig| 9 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-m10v.c | 765

[PATCH 14/14] MAINTAINERS: Add entry to MAINTAINERS for Milbeaut

2018-11-18 Thread Sugaya Taichi
Add entry to MAINTAINERS for Milbeaut that supported minimal drivers. Signed-off-by: Sugaya Taichi --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0abecc5..31dd29f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1782,6 +1782,15 @@ F:

[PATCH 04/14] dt-bindings: timer: Add Milbeaut M10V timer description

2018-11-18 Thread Sugaya Taichi
Add DT bindings document for Milbeaut M10V timer. Signed-off-by: Sugaya Taichi --- .../bindings/timer/socionext,milbeaut-timer.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/socionext,milbeaut-timer.txt diff --gi

[PATCH 03/14] ARM: milbeaut: Add Milbeaut M10V early printk

2018-11-18 Thread Sugaya Taichi
Add Milbeaut M10V earlyprintk. Signed-off-by: Sugaya Taichi --- arch/arm/Kconfig.debug| 12 ++-- arch/arm/include/debug/milbeaut.S | 25 + 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 arch/arm/include/debug/milbeaut.S diff --g

Re: [PATCH] mm/filemap.c: minor optimization in write_iter file operation

2018-11-18 Thread Matthew Wilcox
On Sun, Nov 18, 2018 at 11:02:19PM +0800, Yafang Shao wrote: > On Sun, Nov 18, 2018 at 8:13 PM Matthew Wilcox wrote: > > Did you check the before/after code generation with this patch applied? > > Yes, I did. > My oompiler is gcc-4.8.5, a litte old, and with CONFIG_CC_OPTIMIZE_FOR_SIZE > on. > >

Re: [PATCH v2 2/2] PCI: pciehp: Add HXT quirk for Command Completed errata

2018-11-18 Thread Yang, Shunyong
Hi, Bjorn, Would you please help to review and pull these two quirk patches to your branch if there is no problem? Thanks. Shunyong. On 2018/11/7 15:24, Yang, Shunyong wrote: > The HXT SD4800 PCI controller does not set the Command Completed > bit unless writes to the Slot Command register chan

[PATCH v2] mm: fix swap offset when replacing shmem page

2018-11-18 Thread Yu Zhao
We used to have a single swap address space with swp_entry_t.val as its radix tree index. This is not the case anymore. Now Each swp_type() has its own address space and should use swp_offset() as radix tree index. Signed-off-by: Yu Zhao --- mm/shmem.c | 11 +++ 1 file changed, 7 inserti

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Daniel Colascione
On Sun, Nov 18, 2018 at 4:08 PM, Aleksa Sarai wrote: > On 2018-11-18, Daniel Colascione wrote: >> > The gist is to have file descriptors for processes which is obviously not >> > a new >> > idea. This has been done before in other OSes and it has been tried before >> > in >> > Linux [2], [3] (T

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Daniel Colascione
On Sun, Nov 18, 2018 at 4:53 PM, Daniel Colascione wrote: >> Sure, I'd propose that ptrace_may_access() is what we should use for >> operation permission checks. > > The tricky part is that ptrace_may_access takes a struct task. We want > logic that's *like* ptrace_may_access, but that works posth

[RFC PATCH v2 05/14] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-18 Thread Finn Thain
The functions that implement arch_gettimeoffset are re-used by new clocksource drivers in subsequent patches. Signed-off-by: Finn Thain Acked-by: Linus Walleij --- arch/m68k/Kconfig | 1 - arch/m68k/amiga/config.c| 3 --- arch/m68k/atari/config.c| 2 -- arch/m68k/bvme6000/conf

[RFC PATCH v2 00/14] m68k: Drop arch_gettimeoffset and adopt clocksource API

2018-11-18 Thread Finn Thain
This series removes "select ARCH_USES_GETTIMEOFFSET" from arch/m68k and converts users of arch_gettimeoffset to the clocksource API. Various bugs are fixed along the way. Those platforms which do not actually implement arch_gettimeoffset (apollo, q40, sun3, sun3x) use the "jiffies" clocksource by

[RFC PATCH v2 14/14] m68k: mvme16x: Handle timer counter overflow

2018-11-18 Thread Finn Thain
Reading the timer counter races with timer overflow (and the corresponding interrupt). This is resolved by reading the overflow register and taking this value into account. The interrupt handler must clear the overflow register when it eventually executes. Suggested-by: Thomas Gleixner Signed-off

[RFC PATCH v2 08/14] m68k: bvme6000: Convert to clocksource API

2018-11-18 Thread Finn Thain
Add a platform clocksource by adapting the existing arch_gettimeoffset implementation. Signed-off-by: Finn Thain Acked-by: Linus Walleij --- Changed since v1: - Moved clk_total access to within the irq lock. --- arch/m68k/bvme6000/config.c | 52 +++-- 1 file cha

[RFC PATCH v2 07/14] m68k: atari: Convert to clocksource API

2018-11-18 Thread Finn Thain
Add a platform clocksource by adapting the existing arch_gettimeoffset implementation. Normally the MFP timer C interrupt flag would be used to check for timer counter wrap-around. Unfortunately, that flag gets cleared by the MFP itself (due to automatic EOI mode). This means that mfp_timer_c_hand

[RFC PATCH v2 13/14] m68k: mvme16x: Convert to clocksource API

2018-11-18 Thread Finn Thain
Add a platform clocksource by adapting the existing arch_gettimeoffset implementation. Signed-off-by: Finn Thain Acked-by: Linus Walleij --- Changed since v1: - Moved clk_total access to within the irq lock. --- arch/m68k/mvme16x/config.c | 39 +++--- 1 file cha

[RFC PATCH v2 01/14] m68k: Call timer_interrupt() with interrupts disabled

2018-11-18 Thread Finn Thain
Some platforms execute their timer handler with the interrupt priority level below 6. That means the handler could be interrupted by another driver and this could lead to re-entry of the timer core. Avoid this by use of local_irq_save/restore for timer interrupt dispatch. This provides mutual excl

[RFC PATCH v2 11/14] m68k: mvme147: Convert to clocksource API

2018-11-18 Thread Finn Thain
Add a platform clocksource by adapting the existing arch_gettimeoffset implementation. Signed-off-by: Finn Thain Acked-by: Linus Walleij --- Changed since v1: - Moved clk_total access to within the irq lock. - Use type u32 for tick counter. --- arch/m68k/include/asm/mvme147hw.h | 1 - arch/m

[RFC PATCH v2 12/14] m68k: mvme147: Handle timer counter overflow

2018-11-18 Thread Finn Thain
Reading the timer counter races with timer overflow (and the corresponding interrupt). This is resolved by reading the overflow register and taking this value into account. The interrupt handler must clear the overflow register when it eventually executes. Suggested-by: Thomas Gleixner Signed-off

[RFC PATCH v2 09/14] m68k: hp300: Remove hp300_gettimeoffset()

2018-11-18 Thread Finn Thain
hp300_gettimeoffset() never checks the timer interrupt flag and will fail to notice when the timer counter gets reloaded. That means the clock could jump backwards. Remove this code and leave this platform on the 'jiffies' clocksource. Note that this amounts to a regression in clock precision. How

[RFC PATCH v2 10/14] m68k: mac: Convert to clocksource API

2018-11-18 Thread Finn Thain
Add a platform clocksource by adapting the existing arch_gettimeoffset implementation. Signed-off-by: Finn Thain Acked-by: Linus Walleij Tested-by: Stan Johnson --- Changed since v1: - Moved clk_total access to within the irq lock. - Use type u32 for tick counter. --- arch/m68k/mac/via.c | 4

[RFC PATCH v2 02/14] m68k: mac: Fix VIA timer counter accesses

2018-11-18 Thread Finn Thain
This resolves some bugs that affect VIA timer counter accesses. Avoid lost interrupts caused by reading the counter low byte register. Make allowance for the fact that the counter will be decremented to 0x before being reloaded. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Finn Thai

[RFC PATCH v2 03/14] m68k: mac: Clean up unused timer definitions

2018-11-18 Thread Finn Thain
Signed-off-by: Finn Thain --- arch/m68k/include/asm/macints.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/m68k/include/asm/macints.h b/arch/m68k/include/asm/macints.h index cddb2d3ea49b..4da172bd048c 100644 --- a/arch/m68k/include/asm/macints.h +++ b/arch/m68k/include/asm/macints.h

[RFC PATCH v2 06/14] m68k: amiga: Convert to clocksource API

2018-11-18 Thread Finn Thain
Add a platform clocksource by adapting the existing arch_gettimeoffset implementation. Signed-off-by: Finn Thain Acked-by: Linus Walleij --- Changed since v1: - Moved clk_total access to within the irq lock. --- arch/m68k/amiga/config.c | 43 1 file cha

[RFC PATCH v2 04/14] m68k: apollo, q40, sun3, sun3x: Remove arch_gettimeoffset implementations

2018-11-18 Thread Finn Thain
These dummy implementations are no better than default_arch_gettimeoffset() so remove them. Signed-off-by: Finn Thain --- arch/m68k/apollo/config.c | 7 --- arch/m68k/q40/config.c| 9 - arch/m68k/sun3/config.c | 2 -- arch/m68k/sun3/intersil.c | 7 --- arch/m68k/sun3x/confi

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-18 Thread Andy Lutomirski
On Sun, Nov 18, 2018 at 12:32 PM Daniel Colascione wrote: > > On Sun, Nov 18, 2018 at 12:28 PM, Andy Lutomirski wrote: > >> That is, I'm proposing an API that looks like this: > >> > >> int process_kill(int procfs_dfd, int signo, const union sigval value) > >> > >> If, later, process_kill were to

INVESTMENT FUNDING OPPORTUNITY

2018-11-18 Thread THOON YAN
Investment funding opportunity Email: 1045579...@qq.com Good day, My name is Thoon Yan. Do you have any project that needs funding? I wish to invite you to a special Investment Funding opportunity. All I need to know is if I can trust you to partner with me in a funding opportunity. If inter

Re: [PATCH 0/7] ACPI HMAT memory sysfs representation

2018-11-18 Thread Anshuman Khandual
On 11/16/2018 09:21 PM, Keith Busch wrote: > On Fri, Nov 16, 2018 at 11:57:58AM +0530, Anshuman Khandual wrote: >> On 11/15/2018 04:19 AM, Keith Busch wrote: >>> This series provides a new sysfs representation for heterogeneous >>> system memory. >>> >>> The previous series that was specific to

<    1   2   3   >