[PATCH] printk: Add caller information to printk() output.

2018-11-23 Thread Tetsuo Handa
Sometimes we want to print a whole line without being disturbed by concurrent printk() from interrupts and/or other threads, for printk() which does not end with '\n' can be disturbed. We tried to allow printk() callers to explicitly use their local buffer in order to make sure that a whole line i

[PATCH] ALSA: pcm: Fix starvation on down_write_nonblock()

2018-11-23 Thread Chanho Min
Commit 67ec1072b053 (ALSA: pcm: Fix rwsem deadlock for non-atomic PCM stream) fixes deadlock for non-atomic PCM stream. But, This patch causes antother stuck. If writer is RT thread and reader is a normal thread, the reader thread will be difficult to get scheduled. It may not give chance to releas

Re: [PATCH] x86: only use ERMS for user copies for larger sizes

2018-11-23 Thread Jens Axboe
On 11/21/18 11:16 AM, Linus Torvalds wrote: > On Wed, Nov 21, 2018 at 9:27 AM Linus Torvalds > wrote: >> >> It would be interesting to know exactly which copy it is that matters >> so much... *inlining* the erms case might show that nicely in >> profiles. > > Side note: the fact that Jens' patch

Re: [RFC][PATCH 02/14] fgraph: Have set_graph_notrace only affect function_graph tracer

2018-11-23 Thread Namhyung Kim
On Sat, Nov 24, 2018 at 2:37 AM Steven Rostedt wrote: > > On Fri, 23 Nov 2018 09:01:18 +0900 > Namhyung Kim wrote: > > > Acked-by: Namhyung Kim > > Thanks Namhyung! It'd be nice if you cc me for the whole patchset (and other tracing patches) next time. Thanks, Namhyung

Re: [RFC][PATCH 11/14] function_graph: Convert ret_stack to a series of longs

2018-11-23 Thread Joel Fernandes
On Wed, Nov 21, 2018 at 08:27:19PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > In order to make it possible to have multiple callbacks registered with the > function_graph tracer, the retstack needs to be converted from an array of > ftrace_ret_stack structures to an array

Re: test_kmod: BUG on module removal

2018-11-23 Thread Luis Chamberlain
On Sat, Oct 13, 2018 at 10:59:46AM -0700, Randy Dunlap wrote: > 4.19-rc7, on x86_64: > > modprobe test_kmod; rmmod test_kmod > > [ 199.033143] calling test_kmod_init+0x0/0x1000 [test_kmod] @ 1704 > [ 199.034636] misc test_kmod0: interface ready > [ 199.035468] initcall test_kmod_init+0x0/0x10

[PATCH] test_kmod: fix rmmod double free

2018-11-23 Thread Luis Chamberlain
We double free the misc device string twice on rmmod, fix this. Without this we cannot remove the module without crashing. Cc: # for v4.12 and up Reported-by: Randy Dunlap Signed-off-by: Luis Chamberlain --- lib/test_kmod.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/test_kmod.

Re: [PATCH v3] mm: Create the new vm_fault_t type

2018-11-23 Thread Souptick Joarder
On Thu, Nov 15, 2018 at 7:17 AM Mike Rapoport wrote: > > On Tue, Nov 06, 2018 at 05:36:42PM +0530, Souptick Joarder wrote: > > Page fault handlers are supposed to return VM_FAULT codes, > > but some drivers/file systems mistakenly return error > > numbers. Now that all drivers/file systems have be

Re: [tip:timers/core] time: Add SPDX license identifiers

2018-11-23 Thread Joe Perches
On Fri, 2018-11-23 at 03:19 -0800, tip-bot for Thomas Gleixner wrote: > The SPDX > identifier is a legally binding shorthand, which can be used instead of the > full boiler plate text. Is the "legally binding shorthand" actually proven anywhere? I am not aware of any case law for this.

Re: [PATCH] printk: Make printk_emit() local function.

2018-11-23 Thread Tetsuo Handa
Well, moving "__printf(3, 4) __cold" to before "int devkmsg_emit(int facility, int level, const char *fmt, ...) {" seems to be working. I did not know... >From 86fff21e5fef6d3f7970cf5c07a54a907e582b52 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Sat, 24 Nov 2018 13:05:25 +0900 Subject: [PATC

Re: [PATCH V2] exportfs: do not read dentry after free

2018-11-23 Thread J. Bruce Fields
On Fri, Nov 23, 2018 at 03:56:33PM +0800, Pan Bian wrote: > The function dentry_connected calls dput(dentry) to drop the previously > acquired reference to dentry. In this case, dentry can be released. > After that, IS_ROOT(dentry) checks the condition > (dentry == dentry->d_parent), which may resu

Re: Official Linux system wrapper library?

2018-11-23 Thread David Newall
On 24/11/18 1:53 am, Szabolcs Nagy wrote: On 23/11/18 14:11, David Newall wrote: On 24/11/18 12:04 am, Florian Weimer wrote: But socketcall does not exist on all architectures.  Neither does getpid, it's called getxpid on some architectures. ... I think it would be a poor approach to expose app

Re: [alsa-devel] [RFC PATCH 1/6] ASoC: Intel: Skylake: Add CFL-S support

2018-11-23 Thread Pierre-Louis Bossart
On 11/22/18 3:56 AM, Andy Shevchenko wrote: On Wed, Nov 21, 2018 at 11:17:41PM +0100, Takashi Iwai wrote: On Wed, 21 Nov 2018 18:38:41 +0100, Andy Shevchenko wrote: Compare: /* CFL */ { PCI_DEVICE(0x8086, 0xa348), .driver_data = (unsigned long)&snd_soc_acpi_in

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

2018-11-23 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 v3 01/14] m68k: Call timer_interrupt() with interrupts disabled

2018-11-23 Thread Finn Thain
Some platforms execute their timer handler with the interrupt priority level set 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

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

2018-11-23 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 v3 09/14] m68k: hp300: Handle timer counter overflow

2018-11-23 Thread Finn Thain
Because hp300_read_clk() never checks the timer interrupt flag it may fail to notice that the timer has wrapped, allowing the clock to jump backwards. This is not a new problem. This is resolved by checking the interrupt flag and, if need be, taking wrap-around into account. The interrupt handler

[RFC PATCH v3 06/14] m68k: atari: Convert to clocksource API

2018-11-23 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 End-of-Interrupt mode). This means that mfp

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

2018-11-23 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 v3 07/14] m68k: bvme6000: Convert to clocksource API

2018-11-23 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 v2: - Don't check for timer interrupt in bvme6000_read_clk() when the timer is about to be reloaded. Changed since v1: - Moved clk_total a

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

2018-11-23 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

[RFC PATCH v3 04/14] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-23 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 v3 05/14] m68k: amiga: Convert to clocksource API

2018-11-23 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 v2: - Don't check for timer interrupt in amiga_read_clk() when the timer is about to be reloaded. Changed since v1: - Moved clk_total acce

[RFC PATCH v3 08/14] m68k: hp300: Convert to clocksource API

2018-11-23 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/hp300/time.c | 37

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

2018-11-23 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 v3 13/14] m68k: mvme16x: Convert to clocksource API

2018-11-23 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 | 37 +++-- 1 file chan

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

2018-11-23 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 v2: - Drop unneeded 'clk_offset' variable. Changed since v1: - Moved clk_total access to within the irq lock. -

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

2018-11-23 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

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

2018-11-23 Thread Finn Thain
On Sat, 24 Nov 2018, Michael Schmitz wrote: > > Am 20.11.2018 um 23:02 schrieb Andreas Schwab: > > On Nov 20 2018, Linus Walleij wrote: > > > > > Yes you already see the same as I see: this chip MK68901 has no less > > > than four timers. I bet the kernel is just using one of them, out of > >

Re: [PATCH v4] debugobjects: scale the static pool size

2018-11-23 Thread Qian Cai
> On Nov 22, 2018, at 4:56 PM, Thomas Gleixner wrote: > > On Tue, 20 Nov 2018, Qian Cai wrote: > > Looking deeper at that. > >> diff --git a/lib/debugobjects.c b/lib/debugobjects.c >> index 70935ed91125..140571aa483c 100644 >> --- a/lib/debugobjects.c >> +++ b/lib/debugobjects.c >> @@ -23,9

Re: [PATCH] debugobjects: call debug_objects_mem_init eariler

2018-11-23 Thread Qian Cai
> On Nov 23, 2018, at 4:46 PM, Thomas Gleixner wrote: > > On Thu, 22 Nov 2018, Waiman Long wrote: >> On 11/22/2018 11:31 PM, Qian Cai wrote: >>> The current value of the early boot static pool size, 1024 is not big >>> enough for systems with large number of CPUs with timer or/and workqueue >>

[PATCH V2] hfs: do not free node before using

2018-11-23 Thread Pan Bian
The function hfs_bmap_free frees node via hfs_bnode_put(node). However, it then reads node->this when dumping error message on an error path, which may result in a use-after-free bug. This patch frees node only when it is never used. Fixes: a1185ffa2fc("HFS rewrite") Signed-off-by: Pan Bian ---

Re: [RFC][PATCH] fs: set xattrs in initramfs from regular files

2018-11-23 Thread Casey Schaufler
On 11/23/2018 11:30 AM, Mimi Zohar wrote: > On Fri, 2018-11-23 at 11:03 -0800, Casey Schaufler wrote: >> On 11/22/2018 7:49 AM, Roberto Sassu wrote: >>> Although rootfs (tmpfs) supports xattrs, they are not set due to the >>> limitation of the cpio format. A new format called 'newcx' was proposed t

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

2018-11-23 Thread Michael Schmitz
Am 20.11.2018 um 23:02 schrieb Andreas Schwab: On Nov 20 2018, Linus Walleij wrote: Yes you already see the same as I see: this chip MK68901 has no less than four timers. I bet the kernel is just using one of them, out of habit. Note that not all timers can be used freely. Some of them ar

Re: [PATCH] hfs: do not free node before using

2018-11-23 Thread PanBian
On Fri, Nov 23, 2018 at 04:51:49PM -0800, Viacheslav Dubeyko wrote: > On Fri, 2018-11-23 at 17:04 +0800, Pan Bian wrote: > > The function hfs_bmap_free frees node via hfs_bnode_put(node). > > However, > > it then reads node->this when dumping error message on an error path, > > which may result in

Re: [PATCH] hfs: do not free node before using

2018-11-23 Thread Viacheslav Dubeyko
On Fri, 2018-11-23 at 17:04 +0800, Pan Bian wrote: > The function hfs_bmap_free frees node via hfs_bnode_put(node). > However, > it then reads node->this when dumping error message on an error path, > which may result in a use-after-free bug. This patch frees node only > when it is never used. > >

Re: [PATCH] staging: iio: ad5933: finalized device-tree support

2018-11-23 Thread Rodrigo Siqueira
Hi Marcelo, I believe that a proper commit message for this patch could be something like "Add device tree support". On 11/23, Marcelo Schmitt wrote: > Added a of_device_id struct variable and subsequent call to > MODULE_DEVICE_TABLE macro to complete device-tree support for this > driver. > > S

Re: [PATCH 3/3] lockdep: Use line-buffered printk() for lockdep messages.

2018-11-23 Thread Tetsuo Handa
On 2018/11/24 0:56, Steven Rostedt wrote: > On Fri, 23 Nov 2018 13:46:47 +0100 > Petr Mladek wrote: > >> Steven told me on Plumbers conference that even few initial >> characters saved him a day few times. > > Yes, and that has happened more than once. I would reboot and retest > code that is cr

[PATCH v3 7/7] staging:iio:ad2s90: Move out of staging

2018-11-23 Thread Matheus Tavares
Move ad2s90 resolver driver out of staging to the main tree. Signed-off-by: Matheus Tavares Signed-off-by: Victor Colombo --- Changes in v3: - none Changes in v2: - Disabled git move detection, to see the whole code, as Jonathan suggested drivers/iio/resolver/Kconfig | 10 ++ dri

[PATCH v3 1/7] staging:iio:ad2s90: Add device tree support

2018-11-23 Thread Matheus Tavares
This patch adds device tree support to ad2s90 with standard device tree id table. Signed-off-by: Matheus Tavares --- Changes in v3: - Removed of_patch_ptr from of_match_table assignment Changes in v2: - none drivers/staging/iio/resolver/ad2s90.c | 7 +++ 1 file changed, 7 insertions(+)

[PATCH v3 3/7] staging:iio:ad2s90: Add max frequency check at probe

2018-11-23 Thread Matheus Tavares
From: Alexandru Ardelean This patch adds a max frequency check at the beginning of ad2s90_probe function so that when it is set to a value above 0.83Mhz, dev_err is called with an appropriate message and -EINVAL is returned. The defined limit is 0.83Mhz instead of 2Mhz, which is the chip's max f

[PATCH v3 0/7] staging:iio:ad2s90: Add dt support and move out of staging

2018-11-23 Thread Matheus Tavares
This series adds device tree support to ad2s90, adds the respective dt-binding documentation, solves all remaining codestyle problems for ad2s90 and move it out of staging. This patch set completes all the remaining itens listed to be done before moving the driver out of staging, enumerated in thi

[PATCH v3 5/7] staging:iio:ad2s90: Replace license text w/ SPDX identifier

2018-11-23 Thread Matheus Tavares
This patch removes the license boilerplate text at the top of ad2s90.c and, instead, adds the SPDX GPL-2.0 license identifier, which solves the checkpatch.pl warning: "WARNING: Missing or malformed SPDX-License-Identifier tag in line 1". Signed-off-by: Matheus Tavares --- Changes in v3: - none

[PATCH v3 6/7] staging:iio:ad2s90: Add comment to device state mutex

2018-11-23 Thread Matheus Tavares
From: Victor Colombo Fix the checkpatch.pl issue: "CHECK: struct mutex definition without comment". Signed-off-by: Victor Colombo Signed-off-by: Matheus Tavares --- Changes in v3: - none Changes in v2: - Patch added in v2 drivers/staging/iio/resolver/ad2s90.c | 2 +- 1 file changed, 1 ins

[PATCH v3 4/7] dt-bindings:iio:resolver: Add docs for ad2s90

2018-11-23 Thread Matheus Tavares
This patch adds the device tree binding documentation for the ad2s90 resolver-to-digital converter. Signed-off-by: Matheus Tavares --- Changes in v3: - Added reference to spi-bus documentation after spi properties, as suggested by Alexandru Ardelean. Changes in v2: - Rewritten 'spi-cpol and s

[PATCH v3 2/7] staging:iio:ad2s90: Remove spi setup that should be done via dt

2018-11-23 Thread Matheus Tavares
The ad2s90 driver currently sets some spi settings (max_speed_hz and mode) at ad2s90_probe. Since the maximum frequency is a required element in DT binding for spi slave devices and because the spi mode for the device can be either (0,0) or (1,1), these settings should be handled via device tree, n

Re: [PATCH] dmaengine: ti: omap-dma: Configure LCH_TYPE for OMAP1

2018-11-23 Thread Aaro Koskinen
Hi, On Fri, Nov 23, 2018 at 01:45:46PM +0200, Peter Ujfalusi wrote: > On 23/11/2018 0.01, Aaro Koskinen wrote: > > With that reverted, the DMA works OK (and I can also now confirm that > > OMAP_DMA_LCH_2D works). I haven't yet checked if we actually need that > > quirk in OMAP UDC, > > The omap_u

Re: [RFC PATCH 1/5] mm: print more information about mapping in __dump_page

2018-11-23 Thread Andrew Morton
On Wed, 7 Nov 2018 11:18:26 +0100 Michal Hocko wrote: > From: Michal Hocko > > __dump_page prints the mapping pointer but that is quite unhelpful > for many reports because the pointer itself only helps to distinguish > anon/ksm mappings from other ones (because of lowest bits > set). Sometime

[PATCH] staging: iio: ad5933: finalized device-tree support

2018-11-23 Thread Marcelo Schmitt
Added a of_device_id struct variable and subsequent call to MODULE_DEVICE_TABLE macro to complete device-tree support for this driver. Signed-off-by: Marcelo Schmitt --- drivers/staging/iio/impedance-analyzer/ad5933.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/i

Re: [PATCH v3 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-11-23 Thread Pavel Machek
Hi! > > > > > > > You have general-purpose LED, yet you are treating it as > > > > > > > "something > > > > > > > special". That means ugly code (quoted above) and lack of > > > > > > > flexibility. > > > > > > > > > I'd prefer this to be normal LED and "mic muted" to become normal > > trigger.

Re: [PATCH v2 1/5] autofs - improve ioctl sbi checks

2018-11-23 Thread Andrew Morton
On Fri, 23 Nov 2018 18:41:50 +0800 Ian Kent wrote: > Al Viro made some suggestions to improve the implementation > of commit 0633da48f0 "fix autofs_sbi() does not check super > block type". > > The check is unnessesary in all cases except for ioctl usage > so placing the check in the super block

Re: [PATCH] dmaengine: ti: omap-dma: Configure LCH_TYPE for OMAP1

2018-11-23 Thread Russell King - ARM Linux
On Fri, Nov 23, 2018 at 04:16:59PM +, Russell King - ARM Linux wrote: > Hi Peter, > > Here's the patch, which should now support IN as well as OUT. > Completely untested, as mentioned before. Now compile tested... drivers/usb/gadget/udc/omap_udc.c | 291 ++---

Re: [PATCH v2 1/2] power: supply: add input voltage limit property.

2018-11-23 Thread Pavel Machek
Hi! > We have a problem with USBPD chargers which under certain conditions > can result in system overheating if the voltage provided by the USBPD > port is too high. While the preferred means to control this would be > through devicetree or ACPI settings, this is not always possible, and > we nee

Re: Official Linux system wrapper library?

2018-11-23 Thread Dmitry V. Levin
On Fri, Nov 23, 2018 at 12:15:39PM -0800, Daniel Colascione wrote: > On Fri, Nov 23, 2018 at 5:34 AM Florian Weimer wrote: > > > On Mon, Nov 12, 2018 at 12:11 AM, Florian Weimer wrote: > > >> > > >>> If the kernel provides a system call, libc should provide a C wrapper > > >>> for it, even if in th

Please i need your help

2018-11-23 Thread Aisha Gaddafi
-- Hello Dear , I came across your contact during my private search Mrs Aisha Al-Qaddafi is my name, the only daughter of late Libyan president, I have funds the sum of $27.5 million USD for investment, I am interested in you for investment project assistance in your country, i shall compensate

Re: [PATCH] locking/atomics: build atomic headers as required

2018-11-23 Thread Andrew Morton
On Fri, 23 Nov 2018 15:33:21 + Mark Rutland wrote: > Andrew and Ingo report that the check-atomics.sh script is simply too > slow to run for every kernel build, and it's impractical to make it > faster without rewriting it in something other than shell. > > Rather than committing the generat

[PATCH] drivers/base/memory.c: remove an unnecessary check on NR_MEM_SECTIONS

2018-11-23 Thread Wei Yang
In commit cb5e39b8038b ("drivers: base: refactor add_memory_section() to add_memory_block()"), add_memory_block() is introduced, which is only invoked in memory_dev_init(). When combine these two loops in memory_dev_init() and add_memory_block(), they looks like this: for (i = 0; i < NR_MEM_S

Re: [RFC][PATCH 06/14] fgraph: Move function graph specific code into fgraph.c

2018-11-23 Thread Joel Fernandes
On Fri, Nov 23, 2018 at 01:11:38PM -0500, Steven Rostedt wrote: > On Fri, 23 Nov 2018 12:58:34 -0500 > Steven Rostedt wrote: > > > I think the better answer is to move it into trace_functions_graph.c. > > I take that back. I think the better answer is to not call that > function if the profiler

Re: [PATCH v3 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-11-23 Thread Pavel Machek
HI! > > > > > > > You have general-purpose LED, yet you are treating it as > > > > > > > "something > > > > > > > special". That means ugly code (quoted above) and lack of > > > > > > > flexibility. > > > > > > > > > > > > > > For example, if my notebook lacks HDD LED, I can use scrollock > > >

Re: [PATCH] debugobjects: call debug_objects_mem_init eariler

2018-11-23 Thread Thomas Gleixner
On Thu, 22 Nov 2018, Waiman Long wrote: > On 11/22/2018 11:31 PM, Qian Cai wrote: > > The current value of the early boot static pool size, 1024 is not big > > enough for systems with large number of CPUs with timer or/and workqueue > > objects selected. As the results, systems have 60+ CPUs with b

unclaimed/abandoned fund

2018-11-23 Thread James Brown
From Desk of James Brown Accountant officer Wema bank Of Nigeria Hello My Dear , My name is James Brown I have decided to seek a confidential co-operation with you in the execution of the deal described here-under for our both mutual benefit and I hope you will keep it a top secret because o

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

2018-11-23 Thread Dan Williams
On Fri, Nov 23, 2018 at 11:21 AM Dave Hansen wrote: > > On 11/22/18 10:42 PM, Anshuman Khandual wrote: > > Are we willing to go in the direction for inclusion of a new system > > call, subset of it appears on sysfs etc ? My primary concern is not > > how the attribute information appears on the sy

Re: [RFC PATCH v4 1/5] glibc: Perform rseq(2) registration at nptl init and thread creation

2018-11-23 Thread Mathieu Desnoyers
- On Nov 23, 2018, at 1:35 PM, Rich Felker dal...@libc.org wrote: > On Fri, Nov 23, 2018 at 12:52:21PM -0500, Mathieu Desnoyers wrote: >> - On Nov 23, 2018, at 12:30 PM, Rich Felker dal...@libc.org wrote: >> >> > On Fri, Nov 23, 2018 at 12:05:20PM -0500, Mathieu Desnoyers wrote: >> >> ---

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-23 Thread Borislav Petkov
On Fri, Nov 23, 2018 at 01:03:25PM -0800, Guenter Roeck wrote: > It is a cut off screen log. x86 boots change xterm configuration from > wrap to non-wrap, and I did a cut-and-paste instead of copying the log > to a file. Sorry for that. No worries. It was a head-scratcher though because look what

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-23 Thread Guenter Roeck
On 11/23/18 12:44 PM, Borislav Petkov wrote: On Fri, Nov 23, 2018 at 12:03:07PM -0800, Guenter Roeck wrote: [0.762832] EIP: read_tsc+0x4/0x10 [0.762832] Code: 00 01 00 eb 89 90 55 89 e5 5d c3 90 90 90 90 90 90 90 90 90 90 90 55 a1 44 5a 8b c5 89 e5 5d c3 8d b6 00 00 00 00 55 89 e5 57 <0

Re: [PATCH rdma-next 3/3] RDMA/hns: Modify hns RoCE device's name

2018-11-23 Thread Jason Gunthorpe
On Fri, Nov 23, 2018 at 11:14:25PM +0800, Wei Hu (Xavier) wrote: > This patch modifies the name of hns RoCE device's name in order > to ensure that the name is consistent before and after reset. > > Signed-off-by: Wei Hu (Xavier) > drivers/infiniband/hw/hns/hns_roce_device.h | 1 + > drivers/inf

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-23 Thread Borislav Petkov
On Fri, Nov 23, 2018 at 12:03:07PM -0800, Guenter Roeck wrote: > [0.762832] EIP: read_tsc+0x4/0x10 > [0.762832] Code: 00 01 00 eb 89 90 55 89 e5 5d c3 90 90 90 90 90 90 90 90 > 90 90 90 55 a1 44 5a 8b c5 89 e5 5d c3 8d b6 00 00 00 00 55 89 e5 57 <0f> ae > f0b Where does that 'b' in f0b c

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-23 Thread Thomas Gleixner
On Fri, 23 Nov 2018, h...@zytor.com wrote: > On November 23, 2018 12:03:07 PM PST, Guenter Roeck > wrote: > ># first bad commit: [2e94061096c5c3aa6c3fe3ec2bec176c1f9c1b07] x86/TSC: > >Use RDTSCP > > Right, because that cpu predates RDTSCP, so it needs to use a fallback. Well, that's not the pro

Re: [PATCH rdma-next 0/3] RDMA/hns: Updates for reset process of roce device in hip08

2018-11-23 Thread Jason Gunthorpe
On Fri, Nov 23, 2018 at 11:14:22PM +0800, Wei Hu (Xavier) wrote: > Hi, Doug and Janson > > This series mainly include updates for reset process of roce device > in hip08. > One patch adds support for reset and loading or unloading driver occur > simultaneously to ensure work normally, one stops se

[PATCH 1/9] staging: rtl8188eu: cleanup remaining comparsions to true

2018-11-23 Thread Michael Straube
Cleanup remaining comparsions to true. if (x == true) -> if (x) if (x != true) -> if (!x) if (!x == true) -> if (!x) Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c | 4 +-- drivers/staging/rtl8188eu/core/rtw_cmd.c | 10 +++--- drivers/staging/rtl8188eu/cor

[PATCH 3/9] staging: rtl8188eu: use __func__ in rtw_mlme.c

2018-11-23 Thread Michael Straube
Use __func__ instead of hardcoded function names. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 48 +-- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/driver

[PATCH 4/9] staging: rtl8188eu: remove rtw_android_set_block()

2018-11-23 Thread Michael Straube
The function rtw_android_set_block() just returns zero. The only user is the function rtw_android_priv_cmd(). The variable bytes_written is initialized to zero and not changed before the use of rtw_android_set_block(). Remove rtw_android_set_block() and it's only use. Signed-off-by: Michael Straub

[PATCH 8/9] staging: rtl8188eu: correct indentation

2018-11-23 Thread Michael Straube
Correct indentation to clear a checkpatch warning. WARNING: suspect code indent for conditional statements (8, 24) Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_m

[PATCH 9/9] staging: rtl8188eu: cleanup lines over 80 characters

2018-11-23 Thread Michael Straube
Cleanup lines over 80 characters by replacing tabs with spaces or adding appropriate line breaks. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme

[PATCH 7/9] staging: rtl8188eu: remove return from void function

2018-11-23 Thread Michael Straube
Remove return from a void function to clear a checkpatch warning. WARNING: void function return statements are not generally useful Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw

[PATCH 5/9] staging: rtl8188eu: cleanup declarations in rtw_mlme.c

2018-11-23 Thread Michael Straube
Replace tabs with spaces, remove spaces, remove blank lines and break lines appropriatly in declarations. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 130 +++--- 1 file changed, 64 insertions(+), 66 deletions(-) diff --git a/drivers/staging/rtl

[PATCH 6/9] staging: rtl8188eu: refactor if else statement

2018-11-23 Thread Michael Straube
Refactor if else statement to clear checkpatch warnings. WARNING: else is not generally useful after a break or return WARNING: line over 80 characters Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) dif

[PATCH 2/9] staging: rtl8188eu: remove unnecessary parentheses in rtw_mlme.c

2018-11-23 Thread Michael Straube
Remove unnecessary parentheses reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 120 -- 1 file changed, 63 insertions(+), 57 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-23 Thread hpa
"lfence; rdtsc", X86_FEATURE_LFENCE_RDTSC, >> + "rdtscp", X86_FEATURE_RDTSCP) >> +: EAX_EDX_RET(val, low, high) >> +/* RDTSCP clobbers ECX with MSR_TSC_AUX. */ >>

Re: [RFC PATCH 3/3] mm, fault_around: do not take a reference to a locked page

2018-11-23 Thread Hugh Dickins
On Thu, 22 Nov 2018, Michal Hocko wrote: > > If you want some update to the comment in this function or to the > changelog, I am open of course. Right now I have > +* Check for a locked page first, as a speculative > +* reference may adversely influence page migrati

Re: [RFC][PATCH] fs: set xattrs in initramfs from regular files

2018-11-23 Thread Rob Landley
On 11/22/18 9:49 AM, Roberto Sassu wrote: > Although rootfs (tmpfs) supports xattrs, they are not set due to the > limitation of the cpio format. A new format called 'newcx' was proposed to > overcome this limitation. I got email about that format the day before you posted this, by the way. > How

Re: Official Linux system wrapper library?

2018-11-23 Thread Daniel Colascione
On Fri, Nov 23, 2018 at 5:34 AM Florian Weimer wrote: > > * Daniel Colascione: > > > On Mon, Nov 12, 2018 at 12:11 AM, Florian Weimer wrote: > >> * Daniel Colascione: > >> > >>> If the kernel provides a system call, libc should provide a C wrapper > >>> for it, even if in the opinion of the libc

Re: [PATCH v3] mm: use swp_offset as key in shmem_replace_page()

2018-11-23 Thread Hugh Dickins
On Wed, 21 Nov 2018, Andrew Morton wrote: > On Wed, 21 Nov 2018 14:54:42 -0700 Yu Zhao wrote: > > > We changed key of swap cache tree from swp_entry_t.val to > > swp_offset. Need to do so in shmem_replace_page() as well. > > What are the user-visible effects of this change? Sorry, I don't know;

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-23 Thread Guenter Roeck
quot;ecx"); > + > + return EAX_EDX_VAL(val, low, high); > } > This patch results in a crash with certain qemu emulations. [0.756869] hpet0: 3 comparators, 64-bit 100.00 MHz counter [0.762233] invalid opcode: [#1] PTI [0.762435] CPU: 0 PID: 1 Comm: swapp

Re: [for-next][PATCH 08/18] parisc: function_graph: Simplify with function_graph_entry()

2018-11-23 Thread Sasha Levin
On Fri, Nov 23, 2018 at 02:26:17PM -0500, Steven Rostedt wrote: On Fri, 23 Nov 2018 13:34:15 -0500 Sasha Levin wrote: Does this mean that someone (Steve) will send a backport of this to all relevant stable trees? Right now it looks like the series will randomly apply on a mix of trees, which c

[PATCH 2/6] ARM: dts: meson: group the Cortex-A5 / Cortex-A9 peripherals

2018-11-23 Thread Martin Blumenstingl
The public Meson8b (S805) datasheet describes a memory region called "A9 Periph base" which starts at 0xC430 and ends at 0xC430. Add a simple-bus node and move all peripherals that are part of this memory region. This makes the .dts a bit easier to read. No functional changes. Signed-off-b

[PATCH 3/6] ARM: dts: meson8: add the ARM TWD timer

2018-11-23 Thread Martin Blumenstingl
The Meson8 and Meson8m2 SoC are using four ARM Cortex-A9 cores which come with a "TWD" (Timer-Watchdog) based timer. This adds support for the ARM TWD Timer on these two SoCs. Suggested-by: Carlo Caione [ rebased patch from Carlo, use IRQ_TYPE_EDGE_RISING instead of IRQ_TYPE_LEVEL_LOW to preven

[PATCH 0/6] 32-bit Meson: add the ARM TWD and Global Timers

2018-11-23 Thread Martin Blumenstingl
The 32-bit Meson SoCs use Cortex-A9 or Cortex-A5 cores. These come with the ARM TWD ("Timer Watchdog") which contains a timer and a watchdog as well as the ARM Global Timer. This enables the corresponding configs for the 32-bit Meson target. Additionally this adds and enables the ARM TWD timer. Th

[PATCH 4/6] ARM: dts: meson8: add the Cortex-A9 global timer

2018-11-23 Thread Martin Blumenstingl
The Meson8 and Meson8m2 SoCs are using four Cortex-A9 cores. These come with an ARM global timer. This adds the Cortex-A9 global timer but keeps it disabled for now. The timer is clocked by the "PERIPH" clock whose rate can change during runtime (when changing the frequency of the CPU clock). Unfor

[PATCH 1/6] ARM: meson: select HAVE_ARM_TWD and ARM_GLOBAL_TIMER

2018-11-23 Thread Martin Blumenstingl
The 32-bit Meson SoCs use multiple Cortex-A9 (Meson8 and Meson8m2) or Cortex-A5 (Meson8b) CPU cores. These come with the "ARM global timer" and "Timer-Watchdog" (aka TWD, which provides both a per-cpu local timer and watchdog). Selecting ARM_GLOBAL_TIMER and HAVE_ARM_TWD allows us to add the timer

[PATCH 5/6] ARM: dts: meson8b: add the ARM TWD timer

2018-11-23 Thread Martin Blumenstingl
The Meson8B SoC is using four ARM Cortex-A5 cores which come with a "TWD" (Timer-Watchdog) based timer. This adds support for the ARM TWD Timer on this SoC. Suggested-by: Carlo Caione [ rebased patch from Carlo, use IRQ_TYPE_EDGE_RISING instead of IRQ_TYPE_LEVEL_LOW to prevent "GIC: PPI13 is se

[PATCH 6/6] ARM: dts: meson8b: add the Cortex-A5 global timer

2018-11-23 Thread Martin Blumenstingl
The Meson8b SoC is using four Cortex-A5 cores. These come with an ARM global timer. This adds the Cortex-A5 global timer but keeps it disabled for now. The timer is clocked by the "PERIPH" clock whose rate can change during runtime (when changing the frequency of the CPU clock). Unfortunately the a

Re: [PATCH v2 0/4] Meson8b: add the CPU clock post-dividers

2018-11-23 Thread Martin Blumenstingl
On Fri, Nov 23, 2018 at 3:40 PM Neil Armstrong wrote: > > On 22/11/2018 22:40, Martin Blumenstingl wrote: > > This is the successor to my previous series "meson8b: add the CPU_DIV16 > > clock for the ARM TWD" from [0]. I decided to not send this as v2 of > > the original series because the PERIPH

Re: [PATCH v2 0/2] clocksource/meson6_timer: implement ARM delay timer

2018-11-23 Thread Martin Blumenstingl
On Fri, Nov 23, 2018 at 7:15 AM Daniel Lezcano wrote: > > On 22/11/2018 23:12, Martin Blumenstingl wrote: > > Hi Daniel, > > > > On Sun, Nov 18, 2018 at 2:27 AM Daniel Lezcano > > wrote: > >> > >> On 15/11/2018 23:46, Martin Blumenstingl wrote: > >>> While trying to add support for the ARM TWD Ti

Re: [RFC][PATCH] fs: set xattrs in initramfs from regular files

2018-11-23 Thread Mimi Zohar
On Fri, 2018-11-23 at 11:03 -0800, Casey Schaufler wrote: > On 11/22/2018 7:49 AM, Roberto Sassu wrote: > > Although rootfs (tmpfs) supports xattrs, they are not set due to the > > limitation of the cpio format. A new format called 'newcx' was proposed to > > overcome this limitation. > > > > Howev

Re: [GIT PULL] Ceph fix for 4.20-rc4

2018-11-23 Thread pr-tracker-bot
The pull request you sent on Fri, 23 Nov 2018 19:49:19 +0100: > https://github.com/ceph/ceph-client.git tags/ceph-for-4.20-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7c98a42618271210c60b79128b220107d35938d9 Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: [for-next][PATCH 08/18] parisc: function_graph: Simplify with function_graph_entry()

2018-11-23 Thread Steven Rostedt
On Fri, 23 Nov 2018 13:34:15 -0500 Sasha Levin wrote: > Does this mean that someone (Steve) will send a backport of this to all > relevant stable trees? Right now it looks like the series will randomly > apply on a mix of trees, which can't be good. Nope. I stated that in my 0 patch. -- Steve

Re: [RFC][PATCH 09/14] function_graph: Move ftrace_graph_get_addr() to fgraph.c

2018-11-23 Thread Steven Rostedt
On Thu, 22 Nov 2018 19:13:38 -0800 Joel Fernandes wrote: > On Wed, Nov 21, 2018 at 08:27:17PM -0500, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > > > Move the function function_graph_get_addr() to fgraph.c, as the management > > of the curr_ret_stack is going to change, and all

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

2018-11-23 Thread Dave Hansen
On 11/22/18 10:42 PM, Anshuman Khandual wrote: > Are we willing to go in the direction for inclusion of a new system > call, subset of it appears on sysfs etc ? My primary concern is not > how the attribute information appears on the sysfs but lack of it's > completeness. A new system call makes t

Re: [PATCH] x86: only use ERMS for user copies for larger sizes

2018-11-23 Thread Andy Lutomirski
> On Nov 23, 2018, at 11:44 AM, Linus Torvalds > wrote: > >> On Fri, Nov 23, 2018 at 10:39 AM Andy Lutomirski wrote: >> >> What is memcpy_to_io even supposed to do? I’m guessing it’s defined as >> something like “copy this data to IO space using at most long-sized writes, >> all aligned,

  1   2   3   4   5   >