[PATCH] soc: fsl: guts: make fsl_guts_get_svr() static

2019-02-21 Thread Horia Geantă
The export of fsl_guts_get_svr() is a left-over, it's currently used only internally and users needing SoC information should use the generic soc_device infrastructure. Signed-off-by: Horia Geantă --- drivers/soc/fsl/guts.c | 3 +-- include/linux/fsl/guts.h | 2 -- 2 files changed, 1 insertion

[PATCH v2 10/10] powerpc/603: don't handle PAGE_ACCESSED in TLB miss handlers.

2019-02-21 Thread Christophe Leroy
PAGE_ACCESSED is only needed for CONFIG_SWAP. When CONFIG_SWAP is not set, just ignore it. If CONFIG_SWAP is set and PAGE_ACCESSED is not, let's take a minor fault. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S | 24 +--- 1 file changed, 13 insertions(+),

[PATCH v2 01/10] powerpc: simplify BDI switch

2019-02-21 Thread Christophe Leroy
There is no reason to re-read each time the pointer at location 0xf0 as it is fixed and known. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/mmu.h | 2 ++ arch/powerpc/kernel/head_32.S | 5 ++--- arch/powerpc/kernel/head_40x.S | 5 ++--- arch/powerpc/kernel/head_8xx.S | 1 + arch

[PATCH v2 07/10] powerpc/603: Don't handle _PAGE_RW and _PAGE_DIRTY on ITLB misses

2019-02-21 Thread Christophe Leroy
_PAGE_RW and _PAGE_DIRTY do not matter for ITLB misses. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index e4338d785a94..6db54425f1d9 100

[PATCH v2 08/10] powerpc/603: let's handle PAGE_DIRTY directly

2019-02-21 Thread Christophe Leroy
PAGE_DIRTY corresponds to the C bit. If writing on a page for which the C bit is not set, a DataStoreTLBMiss is generated. No need to check it in DataLoadTLBMiss. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff -

[PATCH v2 04/10] powerpc/603: use physical address directly in TLB miss handlers.

2019-02-21 Thread Christophe Leroy
Since commit c62ce9ef97ba ("powerpc: remove remaining bits from CONFIG_APUS"), tophys() has become a pure constant operation. PAGE_OFFSET is known at compile time so the physical address can be builtin directly. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S | 15 ++---

[PATCH v2 09/10] powerpc/603: Don't worry about _PAGE_USER in TLB miss handlers

2019-02-21 Thread Christophe Leroy
PP bits take user access into account, so no need to check _PAGE_USER here. A DSI or ISI will be generated if needed. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/kernel/head_32.S b

[PATCH v2 03/10] powerpc/6xx: Store PGDIR physical address in a SPRG

2019-02-21 Thread Christophe Leroy
Use SPRN_SPRG2 to store the current thread PGDIR and avoid reading thread_struct.pgdir at every TLB miss. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/reg.h | 1 + arch/powerpc/kernel/cpu_setup_6xx.S | 4 arch/powerpc/kernel/head_32.S | 25 --

[PATCH v2 06/10] powerpc/603: Don't handle kernel page TLB misses when not need

2019-02-21 Thread Christophe Leroy
ITLB miss on kernel pages only occur with CONFIG_MODULES and CONFIG_DEBUG_PAGEALLOC. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index 4c2cc42399aa..e4338d7

[PATCH v2 02/10] powerpc/6xx: Don't use SPRN_SPRG2 for storing stack pointer while in RTAS

2019-02-21 Thread Christophe Leroy
When calling RTAS, the stack pointer is stored in SPRN_SPRG2 in order to be able to restore it in case of machine check in RTAS. As machine check is not a perfomance critical path, this patch frees SPRN_SPRG2 by using a field in thread struct instead. Signed-off-by: Christophe Leroy --- arch/po

[PATCH v2 05/10] powerpc/hash32: use physical address directly in hash handlers.

2019-02-21 Thread Christophe Leroy
Since commit c62ce9ef97ba ("powerpc: remove remaining bits from CONFIG_APUS"), tophys() has become a pure constant operation. PAGE_OFFSET is known at compile time so the physical address can be builtin directly. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/hash_low_32.S | 62 +

[PATCH v2 00/10] Optimise TLB miss handlers on 6xx (603/e300)

2019-02-21 Thread Christophe Leroy
The main purpose of this series is to optimise the handling of TLB misses on the 603/e300. Today the TLB miss handlers are implemented by more or less copying the actions performed by the hash page handlers used on processors having HASH pagetable. This series brings some simplification. It also

Re: [PATCH V15 14/18] block: enable multipage bvecs

2019-02-21 Thread Ming Lei
020 bea77998 b6d52368 6050 ffff > >>>> CPU3: stopping > >>>> > >>>> I would like to help debugging and fixing this issue, but I don't really > >>>> have idea where to start. Here are some more detailed information a

Re: [RFC PATCH 02/27] containers: Implement containers as kernel objects

2019-02-21 Thread Ian Kent
On Wed, 2019-02-20 at 14:26 +0100, Christian Brauner wrote: > On Wed, Feb 20, 2019 at 10:46:24AM +0800, Ian Kent wrote: > > On Fri, 2019-02-15 at 16:07 +, David Howells wrote: > > > Implement a kernel container object such that it contains the following > > > things: > > > > > > (1) Namespace

Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-21 Thread kbuild test robot
/0day-ci/linux/commits/Nikolaus-Voss/usb-typec-tps6598x-handle-block-writes-separately-with-plain-I2C-adapters/20190221-165456 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: i386-randconfig-a0-201907 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2

Re: [PATCH] kobject: Don't trigger kobject_uevent(KOBJ_REMOVE) twice.

2019-02-21 Thread Tetsuo Handa
On 2019/02/21 4:52, Dmitry Torokhov wrote: > On Wed, Feb 20, 2019 at 7:07 AM Greg Kroah-Hartman > wrote: >> But I would argue that this is not ok, as the remove uevent did NOT get >> sent, and you are saying it did. > > "It is the thought that counts" here. The code was added to catch > cases whe

Re: [PATCH] zcrypt: handle AP Info notification from CHSC SEI command

2019-02-21 Thread Harald Freudenberger
On 30.01.19 19:32, Sebastian Ott wrote: > On Wed, 30 Jan 2019, Tony Krowiak wrote: >> +#if IS_ENABLED(CONFIG_ZCRYPT) >> +void ap_bus_cfg_chg(void); >> +#else >> +#error "no CONFIG_ZCRYPT" >^ > I don't think that's the right thing to do here. > > >> +++ b/drivers/s390/cio/chsc.h >> @@ -9,6 +9,7

RE: [EXT] [PATCH v6 2/2] mtd: spi-nor: cadence-quadspi: Add support for Octal SPI controller

2019-02-21 Thread Bean Huo (beanhuo)
Hi, Vignesh > >Cadence OSPI controller IP supports Octal IO (x8 IO lines), It also has an >integrated PHY. IP register layout is very similar to existing QSPI IP except >for >additional bits to support Octal and Octal DDR mode. Therefore, extend >current driver to support Octal mode. Only Octal S

Re: [PATCH v3 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-21 Thread Linus Walleij
Hi Shravan, thank you for your patch! On Wed, Feb 20, 2019 at 11:07 PM Shravan Kumar Ramani wrote: > This patch adds support for the GPIO controller used by Mellanox > BlueField SOCs. > > Reviewed-by: David Woods > Signed-off-by: Shravan Kumar Ramani (...) > +config GPIO_MLXBF > + trist

[PATCH][next] iio: st_accel: remove redundant unsigned less than zero check

2019-02-21 Thread Colin King
From: Colin Ian King The check that variable val is less than zero is redundant since val is an unsigned int and hence can never be less than zero. Remove it. Signed-off-by: Colin Ian King --- drivers/iio/accel/st_accel_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH v3] usb: chipidea: Grab the (legacy) USB PHY by phandle first

2019-02-21 Thread Paul Kocialkowski
Hi, On Thu, 2019-02-21 at 09:30 +, Peter Chen wrote: > > > > Current code w/o your patch, it is possible both ci->phy and > > > ci->usb_phy are valid if the USB PHY is not at the device tree, but > > > generic PHY is > > at the device tree. > > > If you don't want to fix this issue with thi

[PATCH v4 2/2] usb: chipidea: Refactor USB PHY selection and keep a single PHY

2019-02-21 Thread Paul Kocialkowski
Refactor the code in charge of looking up the USB PHY when no platdata is provided. Attempt to get a generic USB PHY first, then look for a legacy USB PHY through device-tree and finally get any registered PHY with the correct type. This way, only a single USB PHY is obtained and the flow is easie

[PATCH v4 1/2] usb: chipidea: Grab the (legacy) USB PHY by phandle first

2019-02-21 Thread Paul Kocialkowski
According to the chipidea driver bindings, the USB PHY is specified via the "phys" phandle node. However, this only takes effect for USB PHYs that use the common PHY framework. For legacy USB PHYs, a simple lookup based on the USB PHY type is done instead. This does not play out well when more tha

Re: [EXT] [PATCH v6 2/2] mtd: spi-nor: cadence-quadspi: Add support for Octal SPI controller

2019-02-21 Thread Boris Brezillon
On Thu, 21 Feb 2019 10:41:33 + "Bean Huo (beanhuo)" wrote: > Hi, Vignesh > > > > >Cadence OSPI controller IP supports Octal IO (x8 IO lines), It also has an > >integrated PHY. IP register layout is very similar to existing QSPI IP > >except for > >additional bits to support Octal and Octal

Re: KASAN: use-after-free Read in br_mdb_ip_get

2019-02-21 Thread Dmitry Vyukov
On Wed, Feb 20, 2019 at 11:23 AM Herbert Xu wrote: > > On Mon, Jan 28, 2019 at 09:28:36AM +0100, Dmitry Vyukov wrote: > > > > > Weird, this is the kfree() on the error path of br_multicast_new_group() > > > when rhashtable_lookup_insert_fast() fails, which means the entry should > > > not be linke

[PATCH v2 2/2] Input: add Apple SPI keyboard and trackpad driver.

2019-02-21 Thread Ronald Tschalär
The keyboard and trackpad on recent MacBook's (since 8,1) and MacBookPro's (13,* and 14,*) are attached to an SPI controller instead of USB, as previously. The higher level protocol is not publicly documented and hence has been reverse engineered. As a consequence there are still a number of unknow

m88e6390_config_aneg will always reset the phy

2019-02-21 Thread Rundong Ge
Hi Andrew Before the "net: phy: marvell: Errata for mv88e6390 internal PHYs", phydev will only be soft reset when register value was changed. But after this patch, the phydev will always be reset when entering the "m88e6390_config_aneg". So is there any side effect of this change? Thanks Rundong

Re: KMSAN: uninit-value in br_mdb_ip_get

2019-02-21 Thread Dmitry Vyukov
On Mon, Jan 28, 2019 at 8:13 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:02f2d5aea531 kmsan: (presumably) fix dma_map_page_attrs() > git tree: kmsan > console output: https://syzkaller.appspot.com/x/log.txt?x=173a7310c0 > kernel config: https

[PATCH v2 0/2] Add Apple SPI keyboard and trackpad driver

2019-02-21 Thread Ronald Tschalär
This changeset adds a driver for the SPI keyboard and trackpad on recent MacBook's and MacBook Pro's. The driver has seen a fair amount of use over the last 2 years (basically anybody running linux on these machines), with only relatively small changes in the last year or so. For those interested,

RECRUTEMENT ACTION AGAINST HUNGER CANADA

2019-02-21 Thread ACTION CONTRE LA FAIM MONTRÉAL
ACTION AGAINST HUNGER CANADA(ACF-États-Unis-CANADA) pour le développement international Siège Social: 304 Rue Saint Antoine E, Montréal, QC H2Y 1A3, Canada ÉMAIL: actioncontrelaf...@post.com PROGRAMME DE RECRUTEMENT ACTION AGAINST HUNGER CANADA Bonjour Cher citoyen, Dans le cadre de lutter

[PATCH v2 1/2] drm/bridge: sil_sii8620: depend on INPUT instead of selecting it.

2019-02-21 Thread Ronald Tschalär
commit d6abe6df706c66d803e6dd4fe98c1b6b7f125a56 (drm/bridge: sil_sii8620: do not have a dependency of RC_CORE) added a dependency on INPUT. However, this causes problems with other drivers, in particular an input driver that depends on MFD_INTEL_LPSS_PCI (to be added in a future commit): drivers

Re: [PATCH 1/2] loop: do not print warn message if partition scan is successful

2019-02-21 Thread Jan Kara
On Thu 21-02-19 12:17:34, Dongli Zhang wrote: > Do not print warn message when the partition scan returns 0. > > Fixes: d57f3374ba48 ("loop: Move special partition reread handling in > loop_clr_fd()") > Signed-off-by: Dongli Zhang Yeah, thanks for the fix! Not sure how come I didn't see this in

Re: [PATCH RESEND net] net: phy: xgmiitorgmii: Support generic PHY status read

2019-02-21 Thread Michal Simek
On 21. 02. 19 11:24, Paul Kocialkowski wrote: > Hi, > > On Wed, 2019-02-20 at 07:58 +0100, Michal Simek wrote: >> Hi, >> >> On 19. 02. 19 18:25, Andrew Lunn wrote: Thanks for the suggestion! So I had a closer look at that driver to try and see what could go wrong and it looks like I foun

Re: [PATCH] perf: fix getting source line failure in annotate

2019-02-21 Thread Jiri Olsa
On Thu, Feb 21, 2019 at 05:57:16PM +0800, Wei Li wrote: SNIP > liwei@euler:~/main_code/hulk_work/hulk/tools/perf$ sudo ./perf record > ./common_while_1 > [ perf record: Woken up 2 times to write data ] > [ perf record: Captured and wrote 0.488 MB perf.data (12500 samples) ] > liwei@euler:~/main_

Re: [PATCH] kobject: Don't trigger kobject_uevent(KOBJ_REMOVE) twice.

2019-02-21 Thread Greg Kroah-Hartman
On Thu, Feb 21, 2019 at 07:40:20PM +0900, Tetsuo Handa wrote: > On 2019/02/21 4:52, Dmitry Torokhov wrote: > > On Wed, Feb 20, 2019 at 7:07 AM Greg Kroah-Hartman > > wrote: > >> But I would argue that this is not ok, as the remove uevent did NOT get > >> sent, and you are saying it did. > > > > "

Re: [PATCH] Input: uinput - Allow uinput_request to be interrupted

2019-02-21 Thread Marcos Paulo de Souza
Hi Dmitry, On 2/18/19 5:15 PM, Dmitry Torokhov wrote: On Mon, Feb 18, 2019 at 03:21:10PM +0100, Rodrigo Rivas Costa wrote: On Sun, Feb 17, 2019 at 09:42:52PM -0300, Marcos Paulo de Souza wrote: - if (!wait_for_completion_timeout(&request->done, 30 * HZ)) { + if (!wait_for_completio

linux-next: Fixes tags need some work in the net-next tree

2019-02-21 Thread Stephen Rothwell
Hi all, In commit 1c50d369f560 ("net/mlx5: E-Switch, Disable esw manager vport correctly") Fixes tag Fixes: de9e6a8136c5 ("net/mlx5: E-Switch, Properly refer to host PF vport as other vport") has these problem(s): - Target SHA1 does not exist Did you mean Fixes: cbc44e76bfcd ("net/

Re: [PATCH v2] parisc: use memblock_alloc() instead of custom get_memblock()

2019-02-21 Thread Mike Rapoport
On Thu, Feb 21, 2019 at 11:00:05AM +0100, Helge Deller wrote: > On 21.02.19 10:07, Mike Rapoport wrote: > > On Tue, Feb 12, 2019 at 05:16:12PM +0200, Mike Rapoport wrote: > >> The get_memblock() function implements custom bottom-up memblock allocator. > >> Setting 'memblock_bottom_up = true' before

Re: [PATCH v2 3/4] perf record: enable runtime trace compression

2019-02-21 Thread Alexey Budankov
On 21.02.2019 12:43, Jiri Olsa wrote: > On Wed, Feb 20, 2019 at 05:53:17PM +0300, Alexey Budankov wrote: >> >> On 12.02.2019 16:08, Jiri Olsa wrote: >>> On Mon, Feb 11, 2019 at 11:23:40PM +0300, Alexey Budankov wrote: >>> >>> SNIP >>> @@ -774,6 +775,8 @@ static int record__mmap_read_evlist(s

linux-next: Fixes tag needs some work in the kvm-ppc tree

2019-02-21 Thread Stephen Rothwell
Hi Paul, In commit a67614cc05a5 ("KVM: PPC: Release all hardware TCE tables attached to a group") Fixes tag Fixes: 121f80ba68f ("KVM: PPC: VFIO: Add in-kernel acceleration for VFIO") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev t

[PATCH][xfs-next] xfs: fix uninitialized error variable

2019-02-21 Thread Colin King
From: Colin Ian King A previous commit removed the initialization of variable 'error' to zero, and can cause a bogus error return. This occurs when error contains a non-zero garbage value and the call to xchk_should_terminate detects a pending fatal signal and checks for a zero error before sett

Re: [PATCH v2 2/4] perf record: implement -z= and --mmap-flush= options

2019-02-21 Thread Alexey Budankov
On 21.02.2019 12:47, Jiri Olsa wrote: > On Wed, Feb 20, 2019 at 05:15:13PM +0300, Alexey Budankov wrote: >> >> On 12.02.2019 16:08, Jiri Olsa wrote: >>> On Mon, Feb 11, 2019 at 11:22:38PM +0300, Alexey Budankov wrote: >>> >>> SNIP >>> - if (rec->opts.nr_cblocks > nr_cblocks_max) -

Re: [PATCH v2 2/4] perf record: implement -z= and --mmap-flush= options

2019-02-21 Thread Alexey Budankov
On 21.02.2019 12:49, Jiri Olsa wrote: > On Wed, Feb 20, 2019 at 06:24:30PM +0300, Alexey Budankov wrote: >> >> On 12.02.2019 16:08, Jiri Olsa wrote: >>> On Mon, Feb 11, 2019 at 11:22:38PM +0300, Alexey Budankov wrote: >>> >>> SNIP >>> +static int perf_mmap__aio_mmap_blocks(struct perf_mmap *

Dear Friend,

2019-02-21 Thread mrs clara david
Dear Friend, I am Mrs Clara David. am sending you this brief letter to solicit your partnership to transfer $18.5 million US Dollars.I shall send you more information and procedures when I receive positive response from you. please send me a message in my Email box (mrsclarada...@gmail.com) as i w

Re: [PATCH] drm/qxl: unbind vgacon

2019-02-21 Thread Gerd Hoffmann
> > + /* unbind vgacon to make sure it doesn't touch our vga registers */ > > + console_lock(); > > + ret = do_take_over_console(&dummy_con, 0, MAX_NR_CONSOLES - 1, true); > > + console_unlock(); > > Still seems very late, in i915 we kick out vgacon as pretty much the first > thing in driv

Re: [PATCH 2/2] loop: set GENHD_FL_NO_PART_SCAN after blkdev_reread_part()

2019-02-21 Thread Jan Kara
On Thu 21-02-19 12:17:35, Dongli Zhang wrote: > Commit 0da03cab87e6 > ("loop: Fix deadlock when calling blkdev_reread_part()") moves > blkdev_reread_part() out of the loop_ctl_mutex. However, > GENHD_FL_NO_PART_SCAN is set before __blkdev_reread_part(). As a result, > __blkdev_reread_part() will fa

[PATCH V2 3/5] PM / QoS: Add support for MIN/MAX frequency constraints

2019-02-21 Thread Viresh Kumar
This patch introduces the min-frequency and max-frequency device constraints, which will be used by the cpufreq core to begin with. Signed-off-by: Viresh Kumar --- drivers/base/power/qos.c | 103 +-- include/linux/pm_qos.h | 18 +++ 2 files changed, 107

[PATCH V2 5/5] cpufreq: Add QoS requests for userspace constraints

2019-02-21 Thread Viresh Kumar
This implements QoS requests to manage userspace configuration of min and max frequency. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 93 +++ include/linux/cpufreq.h | 8 +--- 2 files changed, 48 insertions(+), 53 deletions(-) diff --git a/d

[PATCH v3] platform: set of_node in platform_device_register_full()

2019-02-21 Thread Mans Rullgard
If the provided fwnode is an OF node, set dev.of_node as well. Also add an of_node_reused flag to struct platform_device_info and copy this to the new device. This is needed to avoid pinctrl settings being requested twice. See 4e75e1d7dac9 ("driver core: add helper to reuse a device-tree node")

Re: [PATCH] .mailmap: Add Mathieu Othacehe

2019-02-21 Thread Mark Brown
On Wed, Feb 13, 2019 at 05:12:49PM +0100, Mathieu Othacehe wrote: > Some contributions appears as Mathieu Othacehe and other as Mathieu > OTHACEHE. Nobody else seems to have picked this up and I don't see any reason not to apply it so I'll do so. Not 100% sure why it ended up in my inbox though!

[PATCH V2 2/5] PM / QOS: Pass request type to dev_pm_qos_read_value()

2019-02-21 Thread Viresh Kumar
In order to use dev_pm_qos_read_value(), and other internal routines to it, to read values for different QoS requests, pass request type as a parameter to these routines. For now, it only supports resume-latency request type. Signed-off-by: Viresh Kumar --- Documentation/power/pm_qos_interface.

[PATCH V2 0/5] cpufreq: Use QoS layer to manage freq-constraints

2019-02-21 Thread Viresh Kumar
Hello, This patchset attempts to manage CPU frequency constraints using the PM QoS framework. It only does the basic stuff right now and moves the userspace constraints to use the QoS infrastructure. Todo: - Migrate all users to the QoS framework and get rid of cpufreq specific notifiers. - Mak

[PATCH V2 1/5] PM / QOS: Pass request type to dev_pm_qos_{add|remove}_notifier()

2019-02-21 Thread Viresh Kumar
In order to use the same set of routines to register notifiers for different request types, update the existing dev_pm_qos_{add|remove}_notifier() routines with an additional parameter: request-type. For now, it only supports resume-latency request type. Signed-off-by: Viresh Kumar --- Document

[PATCH] driver core: Add missing description of new struct device_link field

2019-02-21 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit 36003d4cf57c ("driver core: Fix PM-runtime for links added during consumer probe") forgot to add a kerneldoc decription for the new struct device_link member added by it, so do that now. Fixes: 36003d4cf57c ("driver core: Fix PM-runtime for links added during cons

[PATCH V2 4/5] cpufreq: Register notifiers with the PM QoS framework

2019-02-21 Thread Viresh Kumar
This registers the notifiers for min/max frequency constraints with the PM QoS framework. The constraints are also taken into consideration in cpufreq_set_policy(). This also relocates cpufreq_policy_put_kobj() as it is required to be called from cpufreq_policy_alloc() now. No constraints are add

Re: [PATCH v2 3/4] perf record: enable runtime trace compression

2019-02-21 Thread Alexey Budankov
On 21.02.2019 12:43, Jiri Olsa wrote: > On Wed, Feb 20, 2019 at 06:13:02PM +0300, Alexey Budankov wrote: >> >> On 12.02.2019 16:08, Jiri Olsa wrote: >>> On Mon, Feb 11, 2019 at 11:23:40PM +0300, Alexey Budankov wrote: >>> >>> SNIP >>> diff --git a/tools/perf/util/session.c b/tools/perf/util/

Re: [PATCH V2 0/5] cpufreq: Use QoS layer to manage freq-constraints

2019-02-21 Thread Rafael J. Wysocki
On Thursday, February 21, 2019 12:29:26 PM CET Viresh Kumar wrote: > Hello, > > This patchset attempts to manage CPU frequency constraints using the PM > QoS framework. It only does the basic stuff right now and moves the > userspace constraints to use the QoS infrastructure. > > Todo: > - Migrat

Re: [PATCH v2 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-21 Thread Pierre Morel
On 19/02/2019 10:44, Christian Borntraeger wrote: On 19.02.2019 10:22, Cornelia Huck wrote: On Mon, 18 Feb 2019 19:08:48 +0100 Pierre Morel wrote: ...snip... +static struct bus_type matrix_bus = { + .name = "vfio_ap", + .match = &matrix_bus_match, +}; + +static int matrix_pro

[PATCH v2 00/13] Convert x86 & arm64 to use generic page walk

2019-02-21 Thread Steven Price
Most architectures current have a debugfs file for dumping the kernel page tables. Currently each architecture has to implement custom functions for walking the page tables because the generic walk_page_range() function is unable to walk the page tables used by the kernel. This series extends the

[PATCH v2 01/13] arm64: mm: Add p?d_large() definitions

2019-02-21 Thread Steven Price
From: James Morse Exposing the pud/pgd levels of the page tables to walk_page_range() means we may come across the exotic large mappings that come with large areas of contiguous memory (such as the kernel's linear map). Expose p?d_large() from each architecture to detect these large mappings. a

[PATCH v2 05/13] mm: pagewalk: Allow walking without vma

2019-02-21 Thread Steven Price
Since 48684a65b4e3: "mm: pagewalk: fix misbehavior of walk_page_range for vma(VM_PFNMAP)", page_table_walk() will report any kernel area as a hole, because it lacks a vma. This means each arch has re-implemented page table walking when needed, for example in the per-arch ptdump walker. Remove the

[PATCH v2 03/13] mm: Add generic p?d_large() macros

2019-02-21 Thread Steven Price
From: James Morse Exposing the pud/pgd levels of the page tables to walk_page_range() means we may come across the exotic large mappings that come with large areas of contiguous memory (such as the kernel's linear map). For architectures that don't provide p?d_large() macros, provided a does not

[PATCH v2 02/13] x86/mm: Add p?d_large() definitions

2019-02-21 Thread Steven Price
Exposing the pud/pgd levels of the page tables to walk_page_range() means we may come across the exotic large mappings that come with large areas of contiguous memory (such as the kernel's linear map). Expose p?d_large() from each architecture to detect these large mappings. x86 already has these

[PATCH v2 04/13] mm: pagewalk: Add p4d_entry() and pgd_entry()

2019-02-21 Thread Steven Price
pgd_entry() and pud_entry() were removed by commit 0b1fbfe50006c410 ("mm/pagewalk: remove pgd_entry() and pud_entry()") because there were no users. We're about to add users so reintroduce them, along with p4d_entry() as we now have 5 levels of tables. Note that commit a00cc7d9dd93d66a ("mm, x86:

[PATCH v2 11/13] x86/mm: Convert ptdump_walk_pgd_level_debugfs() to take an mm_struct

2019-02-21 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct. This means that ptdump_walk_pgd_level_core() is now always passed a valid pgd, so drop the support for pgd==NULL. Signed-off-by: Steven Price --- arch/x86/i

[PATCH v2 08/13] arm64: mm: Convert mm/dump.c to use walk_page_range()

2019-02-21 Thread Steven Price
Now walk_page_range() can walk kernel page tables, we can switch the arm64 ptdump code over to using it, simplifying the code. Signed-off-by: Steven Price --- arch/arm64/mm/dump.c | 108 +-- 1 file changed, 53 insertions(+), 55 deletions(-) diff --git a/a

[PATCH v2 07/13] mm: pagewalk: Add test_p?d callbacks

2019-02-21 Thread Steven Price
It is useful to be able to skip parts of the page table tree even when walking without VMAs. Add test_p?d callbacks similar to test_walk but which are called just before a table at that level is walked. If the callback returns non-zero then the entire table is skipped. Signed-off-by: Steven Price

[PATCH v2 10/13] x86/mm+efi: Convert ptdump_walk_pgd_level() to take a mm_struct

2019-02-21 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level() need to pass an mm_struct rather than the raw pgd_t pointer. Luckily since commit 7e904a91bf60 ("efi: Use efi_mm in x86 as well as ARM") we now have an mm_struct for EFI on x86. Signed-off-by: Steve

[PATCH v2 12/13] x86/mm: Convert ptdump_walk_pgd_level_core() to take an mm_struct

2019-02-21 Thread Steven Price
An mm_struct is needed to enable x86 to use of the generic walk_page_range() function. In the case of walking the user page tables (when CONFIG_PAGE_TABLE_ISOLATION is enabled), it is necessary to create a fake_mm structure because there isn't an mm_struct with a pointer to the pgd of the user pag

[PATCH v2 13/13] x86: mm: Convert dump_pagetables to use walk_page_range

2019-02-21 Thread Steven Price
Make use of the new functionality in walk_page_range to remove the arch page walking code and use the generic code to walk the page tables. The effective permissions are passed down the chain using new fields in struct pg_state. The KASAN optimisation is implemented by including test_p?d callback

[PATCH v2 09/13] x86/mm: Point to struct seq_file from struct pg_state

2019-02-21 Thread Steven Price
mm/dump_pagetables.c passes both struct seq_file and struct pg_state down the chain of walk_*_level() functions to be passed to note_page(). Instead place the struct seq_file in struct pg_state and access it from struct pg_state (which is private to this file) in note_page(). Signed-off-by: Steven

[PATCH v2 2/2] drm/qxl: kick out vgacon

2019-02-21 Thread Gerd Hoffmann
Problem: qxl switches from native mode back into vga compatibility mode when it notices someone is accessing vga registers. And vgacon does exactly that before fbcon takes over. So make sure we kick out vgacon early enough that it wouldn't disturb us. Signed-off-by: Gerd Hoffmann --- drivers/

[PATCH v2 06/13] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-02-21 Thread Steven Price
The pte_hole() callback is called at multiple levels of the page tables. Code dumping the kernel page tables needs to know what at what depth the missing entry is. Add this is an extra parameter to pte_hole(). When the depth isn't know (e.g. processing a vma) then -1 is passed. The depth that is r

[PATCH] asm-generic/page.h: fix typo in #error text requiring a real asm/page.h

2019-02-21 Thread Mike Rapoport
Replace "need to prove a real asm/page.h" with "need to provide a real asm/page.h" Signed-off-by: Mike Rapoport --- include/asm-generic/page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/page.h b/include/asm-generic/page.h index 27bf337..fe801f0 100644

Pay Fair project changing to FreeBSD.

2019-02-21 Thread Ywe Cærlyn
We are changing to FreeBSD which we feel is more in line with our philosophy, and it always had a saner view on the HZ timer, which ofcourse is there for optimizing inner lopp in highlevel programming, making it close to low-level. The 1000HZ timer in Linux shows incompetent understanding of thi

Applied "ASoC: samsung: odroid: Prevent uninitialized variable use" to the asoc tree

2019-02-21 Thread Mark Brown
The patch ASoC: samsung: odroid: Prevent uninitialized variable use has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Re: [PATCH 4.19 01/24] bridge: do not add port to router list when receives query with source 0.0.0.0

2019-02-21 Thread Greg Kroah-Hartman
On Wed, Feb 20, 2019 at 01:48:47PM +0100, Sebastian Gottschall wrote: > *reminder* > > Am 18.02.2019 um 11:18 schrieb Sebastian Gottschall: > > > > Am 17.02.2019 um 17:48 schrieb Greg Kroah-Hartman: > > > On Sun, Feb 17, 2019 at 03:29:22PM +0100, Sebastian Gottschall wrote: > > > > according to u

Applied "regulator: fan53555: Add support for FAN53526" to the regulator tree

2019-02-21 Thread Mark Brown
The patch regulator: fan53555: Add support for FAN53526 has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) an

Applied ".mailmap: Add Mathieu Othacehe" to the regulator tree

2019-02-21 Thread Mark Brown
The patch .mailmap: Add Mathieu Othacehe has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Re: [RFC 0/4] clk/driver: platform: Fix kfree() of const memory on setting driver_override

2019-02-21 Thread Krzysztof Kozlowski
On Wed, 20 Feb 2019 at 23:01, Stephen Boyd wrote: > > Quoting Krzysztof Kozlowski (2019-02-18 03:14:29) > > On Mon, 18 Feb 2019 at 11:40, Geert Uytterhoeven > > wrote: > > > > > > Hi Krzysztof, > > > > > > On Mon, Feb 18, 2019 at 11:27 AM Krzysztof Kozlowski > > > wrote: > > > > The problem >

Re: [PATCH V15 14/18] block: enable multipage bvecs

2019-02-21 Thread Marek Szyprowski
>>>>>> b6e8d0b8 >>>>>> 3fc0: bea77a18 b6f92010 b6e8d0b8 0001 b6e8d0c8 0001 b6e8c000 >>>>>> bea77b60 >>>>>> 3fe0: 0020 bea77998 b6d52368 6050 >>>>>> CPU3: stopping >>&g

Re: Patch "scsi: target/core: Use kmem_cache_free() instead of kfree()" has been added to the 4.20-stable tree

2019-02-21 Thread Greg KH
On Thu, Feb 21, 2019 at 12:43:22AM -0500, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > scsi: target/core: Use kmem_cache_free() instead of kfree() > > to the 4.20-stable tree which can be found at: > > http://www.kernel.org/git/?p=linux/ke

Re: Patch "x86_64: increase stack size for KASAN_EXTRA" has been added to the 4.20-stable tree

2019-02-21 Thread Greg KH
On Thu, Feb 21, 2019 at 12:43:23AM -0500, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > x86_64: increase stack size for KASAN_EXTRA > > to the 4.20-stable tree which can be found at: > > http://www.kernel.org/git/?p=linux/kernel/git/stable/

[PATCH v2 0/2] clk: samsung: Fix kfree() of const memory on setting driver_override

2019-02-21 Thread Krzysztof Kozlowski
Hi, Changes since v1: 1. Split clock-related fixes out of bigger platform patchset. 2. Remove usage of driver_override. Best regards, Krzysztof Krzysztof Kozlowski (2): clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure clk: samsung: exynos5: F

Re: [PATCH RFC 00/39] x86/KVM: Xen HVM guest support

2019-02-21 Thread Joao Martins
On 2/20/19 9:09 PM, Paolo Bonzini wrote: > On 20/02/19 21:15, Joao Martins wrote: >> 2. PV Driver support (patches 17 - 39) >> >> We start by redirecting hypercalls from the backend to routines >> which emulate the behaviour that PV backends expect i.e. grant >> table and interdomain events. Ne

[PATCH v2 2/2] clk: samsung: exynos5: Fix kfree() of const memory on setting driver_override

2019-02-21 Thread Krzysztof Kozlowski
Platform driver driver_override field should not be initialized from const memory because the core later kfree() it. If driver_override is manually set later through sysfs, kfree() of old value leads to: $ echo "new_value" > /sys/bus/platform/drivers/.../driver_override kernel BUG at ../

[PATCH v2 1/2] clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure

2019-02-21 Thread Krzysztof Kozlowski
During initialization of subdevices if platform_device_alloc() failed, returned NULL pointer will be later dereferenced. Add proper error paths to exynos5_clk_register_subcmu(). The return value of this function is still ignored because at this stage of init there is nothing we can do. Fixes: b0

Re: Patch "mmc: meson-gx: fix interrupt name" has been added to the 4.20-stable tree

2019-02-21 Thread Greg KH
On Thu, Feb 21, 2019 at 12:43:25AM -0500, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > mmc: meson-gx: fix interrupt name > > to the 4.20-stable tree which can be found at: > > http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-que

Re: Patch "PCI: Fix __initdata issue with "pci=disable_acs_redir" parameter" has been added to the 4.20-stable tree

2019-02-21 Thread Greg KH
On Thu, Feb 21, 2019 at 12:43:20AM -0500, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > PCI: Fix __initdata issue with "pci=disable_acs_redir" parameter > > to the 4.20-stable tree which can be found at: > > http://www.kernel.org/git/?p=lin

[PATCH 07/22] x86/fpu: Remove fpu->initialized

2019-02-21 Thread Sebastian Andrzej Siewior
The `initialized' member of the fpu struct is always set to one for user tasks and zero for kernel tasks. This avoids saving/restoring the FPU registers for kernel threads. The ->initialized = 0 case for user tasks has been removed in previous changes for instance by always an explicit init at for

[PATCH 05/22] x86/fpu: Remove fpu->initialized usage in copy_fpstate_to_sigframe()

2019-02-21 Thread Sebastian Andrzej Siewior
With lazy-FPU support the (now named variable) ->initialized was set to true if the CPU's FPU registers were holding the a valid state of the FPU registers for the active process. If it was set to false then the FPU state was saved in fpu->state and the FPU was deactivated. With lazy-FPU gone, ->in

[PATCH 22/22] x86/fpu: Defer FPU state load until return to userspace

2019-02-21 Thread Sebastian Andrzej Siewior
From: Rik van Riel Defer loading of FPU state until return to userspace. This gives the kernel the potential to skip loading FPU state for tasks that stay in kernel mode, or for tasks that end up with repeated invocations of kernel_fpu_begin() & kernel_fpu_end(). The __fpregs_changes_{begin|end}

[PATCH 19/22] x86/fpu: Inline copy_user_to_fpregs_zeroing()

2019-02-21 Thread Sebastian Andrzej Siewior
Start refactoring __fpu__restore_sig() by inlining copy_user_to_fpregs_zeroing(). Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/kernel/fpu/signal.c | 42 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/arch/x86/kernel/fpu/signal.c b/ar

[PATCH 17/22] x86/fpu: Prepare copy_fpstate_to_sigframe() for TIF_NEED_FPU_LOAD

2019-02-21 Thread Sebastian Andrzej Siewior
From: Rik van Riel The FPU registers need only to be saved if TIF_NEED_FPU_LOAD is not set. Otherwise this has been already done and can be skipped. Signed-off-by: Rik van Riel Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/kernel/fpu/signal.c | 11 ++- 1 file changed, 10 inser

[PATCH 18/22] x86/fpu: Update xstate's PKRU value on write_pkru()

2019-02-21 Thread Sebastian Andrzej Siewior
During the context switch the xstate is loaded which also includes the PKRU value. If xstate is restored on return to userland it is required that the PKRU value in xstate is the same as the one in the CPU. Save the PKRU in xstate during modification. Signed-off-by: Sebastian Andrzej Siewior ---

[PATCH 14/22] x86/fpu: Eager switch PKRU state

2019-02-21 Thread Sebastian Andrzej Siewior
From: Rik van Riel While most of a task's FPU state is only needed in user space, the protection keys need to be in place immediately after a context switch. The reason is that any access to userspace memory while running in kernel mode also need to abide by the memory permissions specified in t

[PATCH 11/22] x86/fpu: Make get_xsave_field_ptr() and get_xsave_addr() use feature number instead of mask

2019-02-21 Thread Sebastian Andrzej Siewior
After changing the argument of __raw_xsave_addr() from a mask to number Dave suggested to check if it makes sense to do the same for get_xsave_addr(). As it turns out it does. Only get_xsave_addr() needs the mask to check if the requested feature is part of what is support/saved and then uses the n

[PATCH 20/22] x86/fpu: Let __fpu__restore_sig() restore the !32bit+fxsr frame from kernel memory

2019-02-21 Thread Sebastian Andrzej Siewior
The !32bit+fxsr case loads the new state from user memory. In case we restore the FPU state on return to userland we can't do this. It would be required to disable preemption in order to avoid a context switch which would set TIF_NEED_FPU_LOAD. If this happens before the "restore" operation then th

[PATCH v7] x86: load FPU registers on return to userland

2019-02-21 Thread Sebastian Andrzej Siewior
This is a refurbished series originally started by by Rik van Riel. The goal is load the FPU registers on return to userland and not on every context switch. By this optimisation we can: - avoid loading the registers if the task stays in kernel and does not return to userland - make kernel_fpu_be

[PATCH 03/22] x86/fpu: Remove preempt_disable() in fpu__clear()

2019-02-21 Thread Sebastian Andrzej Siewior
The preempt_disable() section was introduced in commit a10b6a16cdad8 ("x86/fpu: Make the fpu state change in fpu__clear() scheduler-atomic") and it was said to be temporary. fpu__initialize() initializes the FPU struct to its "init" value and then sets ->initialized to 1. The last part is the

<    1   2   3   4   5   6   7   8   9   10   >