Re: [PATCH v13 07/13] x86/sgx: Add data structures for tracking the EPC pages

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 02:07:53PM -0700, Dave Hansen wrote: > On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > > Add data structures to track Enclave Page Cache (EPC) pages. EPC is > > divided into multiple banks (1-N) of which addresses and sizes can be > > enumerated with CPUID by the OS. > >

[PATCH TRIVIAL] iio: fix position relative kernel version

2018-08-28 Thread Eugen Hristev
Position relative channel type was added in 4.19 kernel version Fixes: "3055a6cfa04ba" ("iio: Add channel for Position Relative") Signed-off-by: Eugen Hristev --- Documentation/ABI/testing/sysfs-bus-iio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ABI/testing

Re: Apollo Lake with newer microcode: not affected by meltdown anymore?

2018-08-28 Thread Thomas Gleixner
On Tue, 28 Aug 2018, Thomas Voegtle wrote: > Kernel 4.18.5 with old microcode: > > [0.00] microcode: microcode updated early to revision 0x2c, date = > 2017-03-25 > cat /sys/devices/system/cpu/vulnerabilities/meltdown > Mitigation: PTI > > > Kernel 4.18.5 with new microcode (microcode-20

Apollo Lake with newer microcode: not affected by meltdown anymore?

2018-08-28 Thread Thomas Voegtle
Hello, Kernel 4.18.5 with old microcode: [0.00] microcode: microcode updated early to revision 0x2c, date = 2017-03-25 cat /sys/devices/system/cpu/vulnerabilities/meltdown Mitigation: PTI Kernel 4.18.5 with new microcode (microcode-20180807.tgz), same config: [0.00] microcod

Re: [GIT PULL] Staging/IIO driver patches for 4.19-rc1

2018-08-28 Thread Ahmed S. Darwish
[ re-send; forgotten lkml CC added; sorry ] Hi, On Sat, 18 Aug 2018 17:57:24 +0200, Greg KH wrote: [...] > addition of some new IIO drivers. Also added was a "gasket" driver from > Google that needs loads of work and the erofs filesystem. > Why are we adding __a whole new in-kernel framework__

Re: [PATCH v13 03/13] x86/cpufeatures: Add Intel-defined SGX leaf CPUID_12_EAX

2018-08-28 Thread Jarkko Sakkinen
On Tue, Aug 28, 2018 at 12:21:40PM +0200, Borislav Petkov wrote: > On Mon, Aug 27, 2018 at 09:53:24PM +0300, Jarkko Sakkinen wrote: > > diff --git a/arch/x86/include/asm/cpufeatures.h > > b/arch/x86/include/asm/cpufeatures.h > > index 7bb647f57d42..4af60a0fdb20 100644 > > --- a/arch/x86/include/as

[PATCH 1/2] kmemleak: dump all objects for slab usage analysis

2018-08-28 Thread Vincent Whitchurch
In order to be able to analyse the kernel's slab usage, we'd need a list of allocated objects and their allocation stacks. Kmemleak already maintains such a list internally, so we expose it via debugfs file. This file can be post-processed in userspace and converted to a suitable format for slab

[PATCH 2/2] scripts: add kmemleak2pprof.py for slab usage analysis

2018-08-28 Thread Vincent Whitchurch
Add a script which converts /sys/kernel/debug/kmemleak_all to the pprof format, which can be used for analysing memory usage. See https://github.com/google/pprof. $ ./kmemleak2pprof.py kmemleak_all $ pprof -text -ignore free_area_init_node -compact_labels -nodecount 10 prof Showing nodes accou

Re: [alsa-devel] [PATCH] ASoC: core: Don't schedule DAPM work if already in target state

2018-08-28 Thread Charles Keepax
On Fri, Aug 17, 2018 at 04:35:43PM +0100, Jon Hunter wrote: > When dapm_power_widgets() is called, the dapm_pre_sequence_async() and > dapm_post_sequence_async() functions are scheduled for all DAPM contexts > (apart from the card DAPM context) regardless of whether the DAPM > context is already in

Re: [PATCH] x86/entry/64: wipe KASAN stack shadow in rewind_stack_do_exit()

2018-08-28 Thread Jann Horn
On Tue, Aug 28, 2018 at 11:04 AM Andrey Ryabinin wrote: > > On 08/25/2018 02:58 AM, Jann Horn wrote: > > Reset the KASAN shadow state of the task stack when rewinding RSP. > > Without this, a kernel oops will leave parts of the stack poisoned, and > > code running under do_exit() can trip over suc

Re: [PATCH] memory: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Thierry Reding
On Mon, Aug 27, 2018 at 08:52:30PM -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Roger Quadros > Cc: Tony Lindgren > Cc: Kukjin Kim > Cc: Krzysztof Kozlowski > Cc: Thierry Re

[PATCH] tty: serial: lpuart: avoid leaking struct tty_struct

2018-08-28 Thread Stefan Agner
The function tty_port_tty_get() gets a reference to the tty. Since the code is not using tty_port_tty_set(), the reference is kept even after closing the tty. Avoid using tty_port_tty_get() by directly access the tty instance. Since lpuart_start_rx_dma() is called from the .startup() and .set_term

Re: [PATCH v6 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-08-28 Thread Adrian Hunter
On 28/08/18 12:48, Jisheng Zhang wrote: > When using DMA, if the DMA addr spans 128MB boundary, we have to split > the DMA transfer into two so that each one doesn't exceed the boundary. > > Signed-off-by: Jisheng Zhang Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-of-dwcmshc.c | 39

Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback()

2018-08-28 Thread Arnd Bergmann
On Mon, Aug 27, 2018 at 10:44 PM Daniel Santos wrote: > > On 08/27/2018 03:09 PM, Nick Desaulniers wrote: > >> Now we're back to the question of "what do you mean by 'constant'"? If > >> you mean a C constant expression (as defined in the C standard) than > >> almost none of this code fits that c

[PATCH 02/15] soc: octeontx2: Reset all RVU blocks

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham Go through all BLKADDRs and check which ones are implemented on this silicon and do a HW reset of each implemented block. Also added all RVU AF and PF register offsets. Signed-off-by: Sunil Goutham --- drivers/soc/marvell/octeontx2/rvu.c| 78 d

[PATCH 00/15] soc: octeontx2: Add RVU admin function driver

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham Resource virtualization unit (RVU) on Marvell's OcteonTX2 SOC supports multiple PCIe SRIOV physical functions (PFs) and virtual functions (VFs). PF0 is called administrative / admin function (AF) and has privilege access to registers to provision different RVU functional block

[PATCH 05/15] soc: octeontx2: Add mailbox IRQ and msg handlers

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham This patch adds support for mailbox interrupt and message handling. Mapped mailbox region and registered a workqueue for message handling. Enabled mailbox IRQ of RVU PFs and registered a interrupt handler. When IRQ is triggered work is added to the mbox workqueue for msgs to g

[PATCH 03/15] soc: octeontx2: Gather RVU blocks HW info

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham This patch gathers NPA/NIX/SSO/SSOW/TIM/CPT RVU blocks's HW info like number of LFs. Important register offsets saved for later use to avoid code duplication for each block. A bitmap is allocated for each of the blocks which later on will be used to allocate a LF for a RVU PF/

[PATCH 01/15] soc: octeontx2: Add Marvell OcteonTX2 RVU AF driver

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham This patch adds basic template for Marvell OcteonTX2's resource virtualization unit (RVU) admin function (AF) driver. Just the driver registration and probe. Signed-off-by: Sunil Goutham --- drivers/soc/Kconfig| 1 + drivers/soc/Makefile

[PATCH 04/15] soc: octeontx2: Add mailbox support infra

2018-08-28 Thread sunil . kovvuri
From: Aleksey Makarov This patch adds mailbox support infrastructure APIs. Each RVU device has a dedicated 64KB mailbox region shared with it's peer for communication. RVU AF has a separate mailbox region shared with each of RVU PFs and a RVU PF has a separate region shared with each of it's VF.

[PATCH 07/15] soc: octeontx2: Scan blocks for LFs provisioned to PF/VF

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham Scan all RVU blocks to find any 'LF to RVU PF/VF' mapping done by low level firmware. If found any, mark them as used in respective block's LF bitmap and also save mapped PF/VF's PF_FUNC info. This is done to avoid reattaching a block LF to a different RVU PF/VF. Signed-off-

[PATCH 14/15] soc: octeontx2: Register for CGX lmac events

2018-08-28 Thread sunil . kovvuri
From: Linu Cherian Added support in RVU AF driver to register for CGX LMAC link status change events from firmware and managing them. Processing part will be added in followup patches. - Introduced eventqueue for posting events from cgx lmac. Queueing mechanism will ensure that events can be p

Re: [PATCH v6 3/5] clk: imx: add SCCG PLL type

2018-08-28 Thread Abel Vesa
On Fri, Aug 24, 2018 at 09:40:11AM +0200, Sascha Hauer wrote: > +Cc Andrey Smirnov who made me aware of this issue. > > On Wed, Aug 22, 2018 at 04:48:21PM +0300, Abel Vesa wrote: > > From: Lucas Stach > > > > The SCCG is a new PLL type introduced on i.MX8. Add support for this. > > The driver cu

[PATCH 09/15] soc: octeontx2: Configure block LF's MSIX vector offset

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham Firmware configures a certain number of MSIX vectors to each of enabled RVU PF/VF. When a block LF is attached to a PF/VF, number of MSIX vectors needed by that LF are set aside (out of PF/VF's total MSIX vectors) and LF's msix_offset is configured in HW. Also added support f

[PATCH 08/15] soc: octeontx2: Add RVU block LF provisioning support

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham Added support for a RVU PF/VF to request AF via mailbox to attach or detach NPA/NIX/SSO/SSOW/TIM/CPT block LFs. Also supports partial detachment and modifying current LF attached count of a certian block type. Signed-off-by: Sunil Goutham --- drivers/soc/marvell/octeontx2/m

[PATCH 06/15] soc: octeontx2: Convert mbox msg id check to a macro

2018-08-28 Thread sunil . kovvuri
From: Aleksey Makarov With 10's of mailbox messages expected to be handled in future, checking for message id could become a lengthy switch case. Hence added a macro to auto generate the switch case for each msg id. Signed-off-by: Aleksey Makarov --- drivers/soc/marvell/octeontx2/rvu.c | 44 ++

[PATCH 13/15] soc: octeontx2: Add support for CGX link management

2018-08-28 Thread sunil . kovvuri
From: Linu Cherian CGX LMAC initialization, link status polling etc is done by low level secure firmware. For link management this patch adds a interface or communication mechanism between firmware and this kernel CGX driver. - Firmware interface specification is defined in cgx_fw_if.h. - Suppor

[PATCH 15/15] MAINTAINERS: Add entry for Marvell OcteonTX2 Admin Function driver

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham Added maintainers entry for Marvell OcteonTX2 SOC's RVU admin function driver. Signed-off-by: Sunil Goutham --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8bef28b..99ef6c1 100644 --- a/MAINTAINERS +++ b/MAINTA

[PATCH 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver

2018-08-28 Thread sunil . kovvuri
From: Sunil Goutham This patch adds basic template for Marvell OcteonTX2's CGX ethernet interface driver. Just the probe. RVU AF driver will use APIs exported by this driver for various things like PF to physical interface mapping, loopback mode, interface stats etc. Signed-off-by: Sunil Goutham

[PATCH 12/15] soc: octeontx2: Set RVU PFs to CGX LMACs mapping

2018-08-28 Thread sunil . kovvuri
From: Linu Cherian Each of the enabled CGX LMAC is considered a physical interface and RVU PFs are mapped to these. VFs of these SRIOV PFs will be virtual interfaces and share CGX LMAC along with PF. This mapping info will be used later on for Rx/Tx pkt steering. Signed-off-by: Linu Cherian Si

[PATCH 10/15] soc: octeontx2: Reconfig MSIX base with IOVA

2018-08-28 Thread sunil . kovvuri
From: Geetha sowjanya HW interprets RVU_AF_MSIXTR_BASE address as an IOVA, hence create a IOMMU mapping for the physcial address configured by firmware and reconfig RVU_AF_MSIXTR_BASE with IOVA. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/soc/marvell/octeontx2/rvu.

KASAN error in [PATCH v3 7/8] proc/kcore: optimize multiple page reads

2018-08-28 Thread Dominique Martinet
> The current code does a full search of the segment list every time for > every page. This is wasteful, since it's almost certain that the next > page will be in the same segment. Instead, check if the previous segment > covers the current page before doing the list search. > > Signed-off-by: O

Re: [PATCH] leds: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Sakari Ailus
On Mon, Aug 27, 2018 at 08:52:26PM -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Sakari Ailus > Cc: Jacek Anaszewski > Cc: Pavel Machek > Cc: linux-l...@vger.kernel.org > Sign

[RESEND PATCH v2] dmaengine: sprd: Support DMA link-list mode

2018-08-28 Thread Baolin Wang
From: Eric Long The Spreadtrum DMA can support the link-list transaction mode, which means DMA controller can do transaction one by one automatically once we linked these transaction by link-list register. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- Changes since v1: - Remove sprd

Re: [GIT PULL] Staging/IIO driver patches for 4.19-rc1

2018-08-28 Thread Todd Poynor
On Tue, Aug 28, 2018 at 3:38 AM Ahmed S. Darwish wrote: >[...] > On Sat, 18 Aug 2018 17:57:24 +0200, Greg KH wrote: > [...] > > addition of some new IIO drivers. Also added was a "gasket" driver from > > Google that needs loads of work and the erofs filesystem. > > > > Why are we adding __a whole

[PATCH 1/3] mm/cow: don't bother write protectig already write-protected huge pages

2018-08-28 Thread Nicholas Piggin
This is the THP equivalent for 1b2de5d039c8 ("mm/cow: don't bother write protecting already write-protected pages"). Explicit hugetlb pages don't get the same treatment because they don't appear to have the right accessor functions. Signed-off-by: Nicholas Piggin --- mm/huge_memory.c | 14 +

[PATCH 0/3] mm: dirty/accessed pte optimisations

2018-08-28 Thread Nicholas Piggin
Here are some patches that didn't get much comment last time. It looks like x86 might benefit too though, so that might get people interested. I improved changelogs and added some comments, but no real logic changes. I hope I didn't get the x86 numbers wrong, they're more significant than I expe

[PATCH 2/3] mm/cow: optimise pte dirty/accessed bits handling in fork

2018-08-28 Thread Nicholas Piggin
fork clears dirty/accessed bits from new ptes in the child. This logic has existed since mapped page reclaim was done by scanning ptes when it may have been quite important. Today with physical based pte scanning, there is less reason to clear these bits. Dirty bits are all tested and cleared toget

Re: [PATCH] memory_hotplug: fix kernel_panic on offline page processing

2018-08-28 Thread Michal Hocko
On Tue 28-08-18 11:05:39, Mikhail Zaslonko wrote: > Within show_valid_zones() the function test_pages_in_a_zone() should be > called for online memory blocks only. Otherwise it might lead to the > VM_BUG_ON due to uninitialized struct pages (when CONFIG_DEBUG_VM_PGFLAGS > kernel option is set): >

[PATCH] HID: input: fix leaking custom input node name

2018-08-28 Thread Stefan Agner
Make sure to free the custom input node name on disconnect. Cc: sta...@vger.kernel.org # v4.18+ Fixes: c554bb045511 ("HID: input: append a suffix matching the application") Signed-off-by: Stefan Agner --- Found with kmemleak, after unplugging a Logitech Unifying receiver: unreferenced object 0xc

[PATCH] HID: core: fix memory leak on probe

2018-08-28 Thread Stefan Agner
The dynamically allocted collection stack does not get freed in all situations. Make sure to also free the collection stack when using the parser in hid_open_report(). Fixes: 08a8a7cf1459 ("HID: core: do not upper bound the collection stack") Signed-off-by: Stefan Agner --- Found with kmemleak:

Re: [PATCH v3 2/2]: perf record: enable asynchronous trace writing

2018-08-28 Thread Alexey Budankov
Hi, On 28.08.2018 11:57, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > SNIP > >> +int trace_fd = rec->session->data->file.fd; >> +struct aiocb **mmap_aio = rec->evlist->mmap_aio; >> +int mmap_aio_size = 0; >> +off_t off; >> >> if (

Re: [PATCH] x86/entry/64: wipe KASAN stack shadow in rewind_stack_do_exit()

2018-08-28 Thread Andrey Ryabinin
On 08/28/2018 01:38 PM, Jann Horn wrote: >> >> >> Why this has to be done in the rewind_stack_do_exit()? >> Are there any problems with calling the kasan_unpoison_task_stack(current) >> from oops_end(), before the rewind_stack_do_exit()? > > Ooh, good point! I didn't see that KASAN instrument

Re: [PATCH] leds: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Pavel Machek
On Mon 2018-08-27 20:52:26, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Sakari Ailus > Cc: Jacek Anaszewski Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pave

Re: [PATCH v2 1/7] x86: refactor kprobes_fault() like kprobe_exceptions_notify()

2018-08-28 Thread Borislav Petkov
On Mon, Aug 27, 2018 at 08:56:25PM +0200, Jann Horn wrote: > This is an extension of commit b506a9d08bae ("x86: code clarification patch > to Kprobes arch code"). As that commit explains, even though > kprobe_running() can't be called with preemption enabled, you don't have to > disable preemption

Re: [PATCH] memory_hotplug: fix kernel_panic on offline page processing

2018-08-28 Thread Michal Hocko
[Fixup Pavel's email - the patch is here for your reference http://lkml.kernel.org/r/20180828090539.41491-1-zaslo...@linux.ibm.com] On Tue 28-08-18 13:25:43, Michal Hocko wrote: > On Tue 28-08-18 11:05:39, Mikhail Zaslonko wrote: > > Within show_valid_zones() the function test_pages_in_a_zone() sh

Re: [PATCH] HID: intel-ish-hid: Enable Sunrise Point-H ish driver

2018-08-28 Thread Jiri Kosina
On Fri, 17 Aug 2018, Andreas Bosch wrote: > Added PCI ID for Sunrise Point-H ISH. > > Signed-off-by: Andreas Bosch > --- > I hope this patch arrives correctly. > --- > drivers/hid/intel-ish-hid/ipc/hw-ish.h | 1 + > drivers/hid/intel-ish-hid/ipc/pci-ish.c | 1 + > 2 files changed, 2 insertions

Re: [PATCH v6 0/3] solve SDHCI DWC MSHC 128MB DMA boundary limitation

2018-08-28 Thread Ulf Hansson
On 28 August 2018 at 11:45, Jisheng Zhang wrote: > When using DMA, if the DMA addr spans 128MB boundary, we have to split > the DMA transfer into two so that each one doesn't exceed the boundary. > > patch1 adds adma_table_cnt to struct sdhci_host so that driver can > control the ADMA table count.

Re: [PATCH] mmc: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Ulf Hansson
On 28 August 2018 at 03:52, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Adrian Hunter > Cc: Hu Ziji > Cc: Ulf Hansson > Cc: linux-...@vger.kernel.org > Signed-off-by: Rob Herring

Re: How to debug outliers in `wb_wait_for_completion()` in `ksys_sync()`?

2018-08-28 Thread Paul Menzel
Dear Linux folks, On 08/28/18 07:27, Paul Menzel wrote: > Using `sleepgraph.py` [1][2] to profile the suspend to RAM (STR) > times, shows that `ksys_enter` takes a noticeable amount of time. > > 13 ms on a TUXEDO Book BU1406 with the NVMe device *SAMSUNG > MZVKW512HMJP-0*, which is quite go

Re: [PATCH v2] clocksource: ti-32k: Add CLOCK_SOURCE_SUSPEND_NONSTOP flag for non-am43 SoCs

2018-08-28 Thread J, KEERTHY
On 8/8/2018 6:44 PM, Keerthy wrote: The 32k clocksource is NONSTOP for non-am43 SoCs. Hence add the flag for all the other SoCs. A gentle ping on this one. Reported-by: Tony Lindgren Signed-off-by: Keerthy Acked-by: Tony Lindgren --- Changes in v2: * Changed am43 compatible to mor

Re: [PATCH] HID: i2c-hid: Fix flooded incomplete report after S3 on Rayd touchscreen

2018-08-28 Thread Jiri Kosina
On Tue, 21 Aug 2018, AceLan Kao wrote: > The incomplete report flooded after S3 and touchscreen becomes > malfunctioned. > [ 1367.646244] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplete report > (58/18785) > [ 1367.649471] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplete report > (5

Re: [RFC v2 0/2] Do not touch pages in remove_memory path

2018-08-28 Thread Oscar Salvador
On Fri, Aug 17, 2018 at 05:41:25PM +0200, Oscar Salvador wrote: > From: Oscar Salvador [...] > > The main difficulty I faced here was in regard of HMM/devm, as it really > handles > the hot-add/remove memory particulary, and what is more important, > also the resources. > > I really scratched m

Re: [ANNOUNCE] 4.14.63-rt40

2018-08-28 Thread Bernhard Landauer
On 28/08/2018 04:41, Steven Rostedt wrote: > On Fri, 24 Aug 2018 12:17:51 -0400 > Steven Rostedt wrote: > >> On Fri, 24 Aug 2018 18:14:43 +0200 >> Bernhard Landauer wrote: >> >>> Hello everyone, >>> >>> for some reason I am not able to build 4.14.63-rt40 for Manjarolinux. >>> Even after removing

Re: [PATCH] [v2] HID: add support for Apple Magic Keyboards

2018-08-28 Thread Jiri Kosina
On Mon, 27 Aug 2018, Sean O'Brien wrote: > USB device > Vendor 05ac (Apple) > Device 026c (Magic Keyboard with Numeric Keypad) > > Bluetooth devices > Vendor 004c (Apple) > Device 0267 (Magic Keyboard) > Device 026c (Magic Keyboard with Numeric Keypad) > > Support a

Re: [PATCH v4 3/4] mm/memory_hotplug: Define nodemask_t as a stack variable

2018-08-28 Thread Oscar Salvador
On Fri, Aug 17, 2018 at 11:00:16AM +0200, Oscar Salvador wrote: > Signed-off-by: Oscar Salvador Pavel, could you please review this? AFAIK, the change made sense to you. Andrew was about to take the patchset after the merge window, but I think that a Reviewed-by would still make sense. Thanks -

Re: [PATCH v3 0/2]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-08-28 Thread Alexey Budankov
Hi Andi, On 28.08.2018 11:59, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 08:03:21PM +0300, Alexey Budankov wrote: >> >> Currently in record mode the tool implements trace writing serially. >> The algorithm loops over mapped per-cpu data buffers and stores ready >> data chunks into a trace file u

Re: [PATCH 04/15] soc: octeontx2: Add mailbox support infra

2018-08-28 Thread Arnd Bergmann
On Tue, Aug 28, 2018 at 12:57 PM wrote: > > From: Aleksey Makarov > > This patch adds mailbox support infrastructure APIs. > Each RVU device has a dedicated 64KB mailbox region > shared with it's peer for communication. RVU AF has > a separate mailbox region shared with each of RVU PFs > and a RV

Re: [PATCH] HID: input: fix leaking custom input node name

2018-08-28 Thread Jiri Kosina
On Tue, 28 Aug 2018, Stefan Agner wrote: > Make sure to free the custom input node name on disconnect. > > Cc: sta...@vger.kernel.org # v4.18+ > Fixes: c554bb045511 ("HID: input: append a suffix matching the application") > Signed-off-by: Stefan Agner > --- > Found with kmemleak, after unpluggin

Re: [PATCH] HID: core: fix memory leak on probe

2018-08-28 Thread Jiri Kosina
On Tue, 28 Aug 2018, Stefan Agner wrote: > The dynamically allocted collection stack does not get freed in > all situations. Make sure to also free the collection stack when > using the parser in hid_open_report(). > > Fixes: 08a8a7cf1459 ("HID: core: do not upper bound the collection stack") > S

Re: [PATCH] irqchip/gic-v3-its: cap lpi_id_bits to reduce memory footprint

2018-08-28 Thread Jia He
On 8/28/2018 4:58 PM, Marc Zyngier Wrote: > On Tue, 28 Aug 2018 05:53:26 +0100, > Jia He wrote: >> >> In commit fe8e93504ce8 ("irqchip/gic-v3-its: Use full range of LPIs"), >> it removes the cap for lpi_id_bits. But it will cause more pointless >> memory footprint. >> >> There is a WARN_ON when

Re: [PATCH 10/15] soc: octeontx2: Reconfig MSIX base with IOVA

2018-08-28 Thread Arnd Bergmann
On Tue, Aug 28, 2018 at 12:58 PM wrote: > > From: Geetha sowjanya > > HW interprets RVU_AF_MSIXTR_BASE address as an IOVA, hence > create a IOMMU mapping for the physcial address configured by > firmware and reconfig RVU_AF_MSIXTR_BASE with IOVA. > > Signed-off-by: Geetha sowjanya > Signed-off-b

Re: [PATCH 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver

2018-08-28 Thread Arnd Bergmann
On Tue, Aug 28, 2018 at 12:58 PM wrote: > > From: Sunil Goutham > > This patch adds basic template for Marvell OcteonTX2's > CGX ethernet interface driver. Just the probe. > RVU AF driver will use APIs exported by this driver > for various things like PF to physical interface mapping, > loopback

Re: [PATCH v2] clocksource: ti-32k: Add CLOCK_SOURCE_SUSPEND_NONSTOP flag for non-am43 SoCs

2018-08-28 Thread Daniel Lezcano
On 28/08/2018 13:44, J, KEERTHY wrote: > > > On 8/8/2018 6:44 PM, Keerthy wrote: >> The 32k clocksource is NONSTOP for non-am43 SoCs. Hence >> add the flag for all the other SoCs. > > A gentle ping on this one. Yeah, saw it. Returning from vacation, still unstacking emails ... :) >> Reported-b

[PATCH] ASoC: meson: imply clock and reset controllers

2018-08-28 Thread Jerome Brunet
Add audio clock controller and ARB reset controller module implication for the device using them Signed-off-by: Jerome Brunet --- sound/soc/meson/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/sound/soc/meson/Kconfig b/sound/soc/meson/Kconfig index 8af8bc358a90..2ccbadc387de 100

Re: [PATCH v3 2/2]: perf record: enable asynchronous trace writing

2018-08-28 Thread Jiri Olsa
On Tue, Aug 28, 2018 at 02:31:04PM +0300, Alexey Budankov wrote: > Hi, > > On 28.08.2018 11:57, Jiri Olsa wrote: > > On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > > > SNIP > > > >> + int trace_fd = rec->session->data->file.fd; > >> + struct aiocb **mmap_aio = rec->evlist

[PATCH] arm64: defconfig: enable modules for amlogic s400 sound card

2018-08-28 Thread Jerome Brunet
Compile the necessary drivers as modules, including codecs, for the s400 sound card. Signed-off-by: Jerome Brunet --- arch/arm64/configs/defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index f67e8d5e93ad..6b1daea53bd3

Re: [PATCH 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver

2018-08-28 Thread Sunil Kovvuri
On Tue, Aug 28, 2018 at 5:40 PM Arnd Bergmann wrote: > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > From: Sunil Goutham > > > > This patch adds basic template for Marvell OcteonTX2's > > CGX ethernet interface driver. Just the probe. > > RVU AF driver will use APIs exported by this driver >

Re: Apollo Lake with newer microcode: not affected by meltdown anymore?

2018-08-28 Thread Thomas Voegtle
On Tue, 28 Aug 2018, Thomas Gleixner wrote: On Tue, 28 Aug 2018, Thomas Voegtle wrote: Kernel 4.18.5 with old microcode: [0.00] microcode: microcode updated early to revision 0x2c, date = 2017-03-25 cat /sys/devices/system/cpu/vulnerabilities/meltdown Mitigation: PTI Kernel 4.18.5 wi

Re: [GIT PULL] Staging/IIO driver patches for 4.19-rc1

2018-08-28 Thread Greg KH
On Tue, Aug 28, 2018 at 10:38:17AM +, Ahmed S. Darwish wrote: > [ re-send; forgotten lkml CC added; sorry ] > > Hi, > > On Sat, 18 Aug 2018 17:57:24 +0200, Greg KH wrote: > [...] > > addition of some new IIO drivers. Also added was a "gasket" driver from > > Google that needs loads of work a

Re: [PATCH 11/13] proc: readdir /proc/*/task

2018-08-28 Thread Ahmed S. Darwish
On Tue, Aug 28, 2018 at 02:15:01AM +0300, Alexey Dobriyan wrote: > --- > fs/proc/base.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > Missing description and S-o-b. Further comments below.. > diff --git a/fs/proc/base.c b/fs/proc/base.c > index 33f444721965..668e465c86b3 1006

Re: [PATCH v3 2/2]: perf record: enable asynchronous trace writing

2018-08-28 Thread Alexey Budankov
Hi, On 28.08.2018 12:01, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > SNIP > >> +static int record__mmap_read_sync(int trace_fd, struct aiocb **cblocks, >> +int cblocks_size, struct record *rec) >> +{ >> +size_t rem; >> +ssize_t size

Re: [PATCH] HID: i2c-hid: Fix flooded incomplete report after S3 on Rayd touchscreen

2018-08-28 Thread Benjamin Tissoires
On Tue, Aug 28, 2018 at 1:46 PM Jiri Kosina wrote: > > On Tue, 21 Aug 2018, AceLan Kao wrote: > > > The incomplete report flooded after S3 and touchscreen becomes > > malfunctioned. > > [ 1367.646244] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplete > > report (58/18785) > > [ 1367.649471]

Bug in /drivers/scsi/3w-9xxx.h

2018-08-28 Thread Frank Kammer
Hello, I have a 3ware 9650SE RAID-Controller with 20 LUNs. Using an unpachted kernel (no matter which version, e.g., 4.12.14) , only 17 LUNs are shown. The problem is that the driver was once written for a 3ware 9550SE RAID-Controlle that supports only 16 LUNs. There are some changes in driver to

Re: [PATCH 10/15] soc: octeontx2: Reconfig MSIX base with IOVA

2018-08-28 Thread Sunil Kovvuri
On Tue, Aug 28, 2018 at 5:39 PM Arnd Bergmann wrote: > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > From: Geetha sowjanya > > > > HW interprets RVU_AF_MSIXTR_BASE address as an IOVA, hence > > create a IOMMU mapping for the physcial address configured by > > firmware and reconfig RVU_AF_MSI

Re: [PATCH] x86/irqflags: mark native_restore_fl extern inline

2018-08-28 Thread Greg Kroah-Hartman
On Tue, Aug 28, 2018 at 08:02:37AM +0200, Juergen Gross wrote: > On 28/08/18 07:13, Greg Kroah-Hartman wrote: > > On Mon, Aug 27, 2018 at 02:40:09PM -0700, Nick Desaulniers wrote: > >> Fixes commit 208cbb325589 ("x86/irqflags: Provide a declaration for > >> native_save_fl") > >> > >> This should ha

Re: [PATCH 04/15] soc: octeontx2: Add mailbox support infra

2018-08-28 Thread Sunil Kovvuri
On Tue, Aug 28, 2018 at 5:33 PM Arnd Bergmann wrote: > > On Tue, Aug 28, 2018 at 12:57 PM wrote: > > > > From: Aleksey Makarov > > > > This patch adds mailbox support infrastructure APIs. > > Each RVU device has a dedicated 64KB mailbox region > > shared with it's peer for communication. RVU AF

Re: [RFC PATCH 03/11] arm64: pgtable: Implement p[mu]d_valid() and check in set_p[mu]d()

2018-08-28 Thread Will Deacon
Hi Linus, On Fri, Aug 24, 2018 at 09:15:17AM -0700, Linus Torvalds wrote: > On Fri, Aug 24, 2018 at 8:52 AM Will Deacon wrote: > > > > Now that our walk-cache invalidation routines imply a DSB before the > > invalidation, we no longer need one when we are clearing an entry during > > unmap. > >

Re: [PATCH 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver

2018-08-28 Thread Arnd Bergmann
On Tue, Aug 28, 2018 at 2:30 PM Sunil Kovvuri wrote: > > On Tue, Aug 28, 2018 at 5:40 PM Arnd Bergmann wrote: > > > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > > > From: Sunil Goutham > > > > > > This patch adds basic template for Marvell OcteonTX2's > > > CGX ethernet interface driver. J

Re: [PATCH] x86/entry/64: wipe KASAN stack shadow in rewind_stack_do_exit()

2018-08-28 Thread Jann Horn
On Tue, Aug 28, 2018 at 1:33 PM Andrey Ryabinin wrote: > On 08/28/2018 01:38 PM, Jann Horn wrote: > >> Why this has to be done in the rewind_stack_do_exit()? > >> Are there any problems with calling the kasan_unpoison_task_stack(current) > >> from oops_end(), before the rewind_stack_do_exit()? >

Re: Query on dma_set_mask_and_coherent() Usage

2018-08-28 Thread Catalin Marinas
On Thu, Aug 23, 2018 at 08:20:36PM +0530, Kedareswararao Appana wrote: > On arm64 platform I have booted Linux only with > 32-bit > Address i.e from 0x8 (reg = <0x8 0x 0x0 0x8000>) So you have 2GB of RAM starting at 0x8__. > In my driver, I am using dma_

VirtIO console hangs

2018-08-28 Thread Matteo Croce
With kernel 4.19.0-rc1 virtio_console hangs very often. I can always trigger the bug by pasting some characters in the terminal window, the console will stop receiving keypresses, but I can still see output from the console. Stangely, logging in the VM via SSH and sending lot of data to hvc0, like

Re: [PATCH 10/15] soc: octeontx2: Reconfig MSIX base with IOVA

2018-08-28 Thread Arnd Bergmann
On Tue, Aug 28, 2018 at 2:42 PM Sunil Kovvuri wrote: > > On Tue, Aug 28, 2018 at 5:39 PM Arnd Bergmann wrote: > > > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > > > From: Geetha sowjanya > > > > > > HW interprets RVU_AF_MSIXTR_BASE address as an IOVA, hence > > > create a IOMMU mapping for

Hello dear.

2018-08-28 Thread Mrs Aisha Gaddafi
Hello dear. It is wonderful to contact you, I want us to have correspondence. I wish you will have the desire so that we can get acquainted to each other. Life itself is a mystery, you never know where it might lead you. I'm Aisha.gaddafi, the only biological douther of Qi,muamar gaddafi of li

Re: [RESEND] PCI: imx: Initial imx7d pm support

2018-08-28 Thread Leonard Crestez
On Tue, 2018-08-28 at 11:07 +0100, Lorenzo Pieralisi wrote: > On Mon, Aug 27, 2018 at 02:28:37PM +0300, Leonard Crestez wrote: > > On imx7d the pcie-phy power domain is turned off in suspend and this can > > make the system hang after resume when attempting any read from PCI. > > > > Fix this by a

[PATCH] afs: remove unused variable ret

2018-08-28 Thread Colin King
From: Colin Ian King Variable ret is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- fs/afs/server.c | 3 +-- 1 file changed, 1 insertion(

[RESEND PATCH v5 3/9] pwm: cros-ec: populate PWM mode in of_xlate function

2018-08-28 Thread Claudiu Beznea
Populate PWM mode in of_xlate function to avoid pwm_apply_state() failure. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-cros-ec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index 9c13694eaa24..78d28d60a468 100644 --- a/drivers/p

Re: [RFC PATCH 02/11] arm64: tlb: Add DSB ISHST prior to TLBI in __flush_tlb_[kernel_]pgtable()

2018-08-28 Thread Will Deacon
On Fri, Aug 24, 2018 at 07:56:09PM +0200, Peter Zijlstra wrote: > On Fri, Aug 24, 2018 at 04:52:37PM +0100, Will Deacon wrote: > > __flush_tlb_[kernel_]pgtable() rely on set_pXd() having a DSB after > > writing the new table entry and therefore avoid the barrier prior to the > > TLBI instruction. >

RE: [PATCH 2/3] dmaengine: xilinx_dma: Refactor axidma channel validation

2018-08-28 Thread Radhey Shyam Pandey
> -Original Message- > From: Vinod > Sent: Tuesday, August 21, 2018 9:20 PM > To: Radhey Shyam Pandey > Cc: dan.j.willi...@intel.com; Michal Simek ; Appana > Durga Kedareswara Rao ; l...@metafoo.de; > dmaeng...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linux- > ker...@vger.ke

Re: [PATCH 11/13] proc: readdir /proc/*/task

2018-08-28 Thread Ahmed S. Darwish
On Tue, Aug 28, 2018 at 12:36:22PM +, Ahmed S. Darwish wrote: > On Tue, Aug 28, 2018 at 02:15:01AM +0300, Alexey Dobriyan wrote: > > --- > > fs/proc/base.c | 8 > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > Missing description and S-o-b. Further comments below.. > > >

Re: [PATCH v9 2/2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-28 Thread Richard Fitzgerald
On 27/08/18 17:26, Richard Fitzgerald wrote: The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a number of GPIOs that can be used as interrupt inputs. The lar

[PATCH v10 1/2] mfd: madera: Add irqchip data pointer into struct madera

2018-08-28 Thread Richard Fitzgerald
Put the pointer to struct regmap_irq_chip_data into the parent mfd structure so that the child irqchip driver does not need a trivial private structure to store only this pointer. As the irqchip child driver already has a pointer to the parent struct madera it can use that to store the pointer. Thi

Re: [PATCH 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver

2018-08-28 Thread Sunil Kovvuri
> > > If this is a regular PCI ethernet driver, why do you put it into > > > driver/soc > > > rather than drivers/net/ethernet/ ? > > > > No, this is not a ethernet driver, as mentioned in the cover letter > > this driver and AF driver doesn't > > handle any IO. There will be a separate ethernet d

[PATCH v10 2/2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-28 Thread Richard Fitzgerald
The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a number of GPIOs that can be used as interrupt inputs. The large number (>150) of internal interrupt sources

Re: [RFC PATCH 09/11] asm-generic/tlb: Track which levels of the page tables have been cleared

2018-08-28 Thread Will Deacon
On Mon, Aug 27, 2018 at 09:53:41AM +0200, Peter Zijlstra wrote: > On Fri, Aug 24, 2018 at 04:52:44PM +0100, Will Deacon wrote: > > +static inline unsigned long tlb_get_unmap_granule(struct mmu_gather *tlb) > > +{ > > + if (tlb->cleared_ptes) > > + return PAGE_SIZE; > > + if (tlb->clea

Re: [RFC PATCH v2 2/3] pstore: Add register read/write{b,w,l,q} tracing support

2018-08-28 Thread Sai Prakash Ranjan
On 8/27/2018 9:45 PM, Steven Rostedt wrote: On Sat, 25 Aug 2018 12:54:07 +0530 Sai Prakash Ranjan wrote: Ftrace does not trace __raw{read,write}{b,l,w,q}() functions. I am not sure why and how it is filtered out because I do not see any notrace flag in those functions, maybe that whole direct

Re: [RFC PATCH 3/3] exec: do unshare_files after de_thread

2018-08-28 Thread Jeff Layton
On Mon, 2018-08-27 at 13:47 -0400, Jeff Layton wrote: > POSIX mandates that open fds and their associated file locks should be > preserved across an execve. This works, unless the process is > multithreaded at the time that execve is called. > > In that case, we'll end up unsharing the files_struc

Re: [PATCH 10/15] soc: octeontx2: Reconfig MSIX base with IOVA

2018-08-28 Thread Sunil Kovvuri
On Tue, Aug 28, 2018 at 6:27 PM Arnd Bergmann wrote: > > On Tue, Aug 28, 2018 at 2:42 PM Sunil Kovvuri wrote: > > > > On Tue, Aug 28, 2018 at 5:39 PM Arnd Bergmann wrote: > > > > > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > > > > > From: Geetha sowjanya > > > > > > > > HW interprets RVU

Re: [RFC PATCH v2 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-08-28 Thread Liang Yang
Hi Boris, On 8/24/2018 8:48 PM, Boris Brezillon wrote: On Wed, 22 Aug 2018 22:08:42 +0800 Liang Yang wrote: You have to wait tWB, that's for sure. we have a maximum 32 commands fifo. when command is written into NFC_REG_CMD, it doesn't mean that command is executing right now, maybe it i

[PATCH v2] mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB

2018-08-28 Thread Liu Xiang
If the size of spi-nor flash is larger than 16MB, the read_opcode is set to SPINOR_OP_READ_1_1_4_4B, and fsl_qspi_get_seqid() will return -EINVAL when cmd is SPINOR_OP_READ_1_1_4_4B. This can cause read operation fail. --- v2: add Fixes tag and CC stable suggested by Boris. --- Fixes: e46ecda76

<    1   2   3   4   5   6   7   >