Re: [PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages

2018-01-29 Thread Michal Hocko
On Tue 30-01-18 02:56:51, He, Roger wrote: > Hi Michal: > > We need a API to tell TTM module the system totally has how many swap > cache. Then TTM module can use it to restrict how many the swap cache > it can use to prevent triggering OOM. For Now we set the threshold of > swap size TTM used a

Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-29 Thread Maxime Ripard
Hi, On Mon, Jan 29, 2018 at 03:34:02PM +0100, Arnd Bergmann wrote: > On Mon, Jan 29, 2018 at 10:25 AM, Linus Walleij > wrote: > > On Mon, Jan 29, 2018 at 9:25 AM, Maxime Ripard > > wrote: > >> On Sat, Jan 27, 2018 at 05:14:26PM +0100, Linus Walleij wrote: > >> However, in DT systems, that > >> f

Re: [netfilter-core] kernel panic: Out of memory and no killable processes... (2)

2018-01-29 Thread Michal Hocko
On Mon 29-01-18 23:35:22, Florian Westphal wrote: > Kirill A. Shutemov wrote: [...] > > I hate what I'm saying, but I guess we need some tunable here. > > Not sure what exactly. > > Would memcg help? That really depends. I would have to check whether vmalloc path obeys __GFP_ACCOUNT (I suspect i

[PATCH] RISC-V: Enable IRQ during exception handling

2018-01-29 Thread Zong Li
Interrupt is allowed during exception handling. There are warning messages if the kernel enables the configuration 'CONFIG_DEBUG_ATOMIC_SLEEP=y'. BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:23 in_atomic(): 0, irqs_disabled(): 1, pid: 43, name: ash CPU: 0 PID: 43 Co

Re: [PATCHv1] Add Intel Stratix10 service layer driver

2018-01-29 Thread Greg KH
On Mon, Jan 29, 2018 at 08:08:11PM -0600, Richard Gong wrote: > Hi Greg, > > Many thanks for your reviews. > > > On 01/25/2018 10:53 AM, Greg KH wrote: > > On Thu, Jan 25, 2018 at 10:39:03AM -0600, richard.g...@linux.intel.com > > wrote: > > > From: Richard Gong > > > > > > Intel Stratix10 So

Re: [PATCH 3.18 00/52] 3.18.93-stable review

2018-01-29 Thread Greg Kroah-Hartman
On Mon, Jan 29, 2018 at 04:58:05PM -0700, Shuah Khan wrote: > On 01/29/2018 05:56 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.93 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If anyone has any iss

Re: [PATCH 3.18 00/52] 3.18.93-stable review

2018-01-29 Thread Greg Kroah-Hartman
On Tue, Jan 30, 2018 at 05:09:07AM +, Harsh Shandilya wrote: > On Tue 30 Jan, 2018, 2:20 AM Greg Kroah-Hartman, > wrote: > > > This is the start of the stable review cycle for the 3.18.93 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If a

Re: [PATCH 4.4 00/74] 4.4.114-stable review

2018-01-29 Thread Greg Kroah-Hartman
On Mon, Jan 29, 2018 at 02:30:53PM -0700, Nathan Chancellor wrote: > On Mon, Jan 29, 2018 at 01:56:05PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.114 release. > > There are 74 patches in this series, all will be posted as a response > > to this on

Re: [PATCH 8/8] platform: vivid-cec: fix potential integer overflow in vivid_cec_pin_adap_events

2018-01-29 Thread Hans Verkuil
Hi Gustavo, On 01/30/2018 01:33 AM, Gustavo A. R. Silva wrote: > Cast len to const u64 in order to avoid a potential integer > overflow. This variable is being used in a context that expects > an expression of type const u64. > > Addresses-Coverity-ID: 1454996 ("Unintentional integer overflow") >

Re: [PATCH] PCI: Add SPDX GPL-2.0+ to replace implicit GPL v2 or later statement

2018-01-29 Thread Greg Kroah-Hartman
On Mon, Jan 29, 2018 at 06:40:52PM -0600, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > 7441b0627e22 ("s390/pci: PCI hotplug support via SCLP") added > s390_pci_hpc.c, which included this license information: > > +MODULE_LICENSE("GPL"); > > Based on "git show 7441b0627e22:include/linux/modul

Re: [PATCH v5 04/12] x86: introduce __uaccess_begin_nospec and ifence

2018-01-29 Thread Ingo Molnar
* Dan Williams wrote: > > The flip side is that if the MFENCE stalls the STAC that is ahead of it > > could be > > processed for 'free' - while it's always post barrier with my suggestion. > > This 'for free' aspect is what I aiming for. Ok. > > > > But in any case it would be nice to see a

Re: [PATCH net-next] ptr_ring: fix integer overflow

2018-01-29 Thread Jason Wang
On 2018年01月30日 01:01, David Miller wrote: From: Jason Wang Date: Thu, 25 Jan 2018 15:31:42 +0800 We try to allocate one more entry for lockless peeking. The adding operation may overflow which causes zero to be passed to kmalloc(). In this case, it returns ZERO_SIZE_PTR without any notice by

Re: [PATCH 1/1] scsi: ufs-qcom: remove broken hci version quirk

2018-01-29 Thread Asutosh Das (asd)
On 1/30/2018 11:33 AM, Vivek Gautam wrote: Hi Asutosh, On 1/30/2018 10:11 AM, Asutosh Das wrote: From: Subhash Jadavani UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION is only applicable for QCOM UFS host controller version 2.x.y and this has been fixed from version 3.x.y onwards, hence this change remo

Re: [PATCH v2] dmaengine: dmatest: fix container_of member in dmatest_callback

2018-01-29 Thread Vinod Koul
On Mon, Jan 29, 2018 at 02:40:11PM +0800, Yang Shunyong wrote: > The type of arg passed to dmatest_callback is struct dmatest_done. > It refers to test_done in struct dmatest_thread, not done_wait. Applied, thanks -- ~Vinod

[PATCH 2/2] x86/mm/64: Add vsyscall page to /proc/kcore conditionally

2018-01-29 Thread Jia Zhang
The vsyscall page should be visible only if vsyscall=emulate/native when dumping /proc/kcore. Signed-off-by: Jia Zhang --- arch/x86/mm/init_64.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index dab78f6..3d4cf33 100644 --

[PATCH 1/2] /proc/kcore: Fix SMAP violation when dumping vsyscall user page

2018-01-29 Thread Jia Zhang
The commit df04abfd181a ("fs/proc/kcore.c: Add bounce buffer for ktext data") introduces a bounce buffer to work around CONFIG_HARDENED_USERCOPY=y. However, accessing vsyscall user page will cause SMAP violation in this way. In order to fix this issue, simply replace memcpy() with copy_from_user()

Re: [PATCH RFC 01/16] prcu: Add PRCU implementation

2018-01-29 Thread Boqun Feng
On Tue, Jan 30, 2018 at 05:34:03AM +, zhangheng (AC) wrote: [...] > >> > +static void prcu_handler(void *info) { > >> > +struct prcu_local_struct *local; > >> > + > >> > +local = this_cpu_ptr(&prcu_local); > >> > +if (!local->locked) > > > >And I think a smp_mb() is need

Re: [RFC PATCH 5/8] media: Document the media request API

2018-01-29 Thread Alexandre Courbot
On Tue, Jan 30, 2018 at 1:04 AM, Hans Verkuil wrote: > On 01/26/2018 07:02 AM, Alexandre Courbot wrote: >> From: Laurent Pinchart >> >> The media request API is made of a new ioctl to implement request >> management. Document it. >> >> Signed-off-by: Laurent Pinchart >> [acour...@chromium.org: a

Re: [RFC PATCH 0/8] [media] Request API, take three

2018-01-29 Thread Alexandre Courbot
Hi Hans, On Mon, Jan 29, 2018 at 8:21 PM, Hans Verkuil wrote: > On 01/26/2018 07:02 AM, Alexandre Courbot wrote: >> Howdy. Here is your bi-weekly request API redesign! ;) >> >> Again, this is a simple version that only implements the flow of requests, >> without applying controls. The intent is t

Re: [RFC PATCH 6/8] v4l2: document the request API interface

2018-01-29 Thread Alexandre Courbot
On Tue, Jan 30, 2018 at 1:03 AM, Hans Verkuil wrote: > On 01/26/2018 07:02 AM, Alexandre Courbot wrote: >> Document how the request API can be used along with the existing V4L2 >> interface. >> >> Signed-off-by: Alexandre Courbot >> --- >> Documentation/media/uapi/v4l/buffer.rst | 10 +- >>

Re: [GIT pull] Timer core updates for 4.16

2018-01-29 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Jan 29, 2018 at 12:48 AM, Thomas Gleixner wrote: > > > > - A rather large rework of the hrtimer infrastructure which introduces > > softirq based hrtimers to replace the spread of hrtimer/tasklet combos > > which force the actual callback execution in

Re: [PATCH v5 02/12] array_idx: sanitize speculative array de-references

2018-01-29 Thread Dan Williams
On Sun, Jan 28, 2018 at 10:36 AM, Thomas Gleixner wrote: > On Sun, 28 Jan 2018, Dan Williams wrote: >> On Sun, Jan 28, 2018 at 12:55 AM, Ingo Molnar wrote: >> >> + */ >> >> +#define array_idx(idx, sz) \ >> >> +({

RE: [PATCH RFC 01/16] prcu: Add PRCU implementation

2018-01-29 Thread zhangheng (AC)
>-Original Message- >From: jiangshan...@gmail.com [mailto:jiangshan...@gmail.com] On Behalf Of Lai >Jiangshan >Sent: 2018年1月29日 17:11 >To: liangli...@huawei.com >Cc: Paul E. McKenney ; Guohanjun (Hanjun Guo) >; zhangheng (AC) ; Chenhaibo (Haibo, >OS Lab) ; lihao.li...@gmail.com; LKML >

Re: Question about dmesg/sysfs output when retpoline config is disabled

2018-01-29 Thread Dou Liyang
Hi Misono-san, At 01/30/2018 12:52 PM, Misono, Tomohiro wrote: Hello, I think dmesg/sysfs output messages are not suitable if retpoline config is off: I intentionally compiled the kernel 4.15.0 with CONFIG_RETPOLINE=n for test and boot it with the following kernel command line option to check

[PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-29 Thread Kai-Heng Feng
The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out of box. The touchpad relies on its _INI method to update its _HID value from to SYNA2393. Also, the _STA relies on value of I2CN to report correct status. Set acpi_gbl_parse_table_as_term_list so the value of I2CN can

Re: [PATCH 1/1] scsi: ufs-qcom: remove broken hci version quirk

2018-01-29 Thread Vivek Gautam
Hi Asutosh, On 1/30/2018 10:11 AM, Asutosh Das wrote: From: Subhash Jadavani UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION is only applicable for QCOM UFS host controller version 2.x.y and this has been fixed from version 3.x.y onwards, hence this change removes this quirk for version 3.x.y onwards. S

[PATCH 2/2] fsi: core: Add check for master property no-scan-on-init

2018-01-29 Thread Joel Stanley
From: Christopher Bostic Prior to scanning a master check if the optional property no-scan-on-init is present. If it is then avoid scanning. This is necessary in cases where a master scan could interfere with another FSI master on the same bus. Signed-off-by: Christopher Bostic Acked-by: Jere

[PATCH 1/2] dt-bindings: fsi: Add optional property no-scan-on-init

2018-01-29 Thread Joel Stanley
From: Christopher Bostic Add an optional FSI master property 'no-scan-on-init. This can be specified to indicate that a master should not be automatically scanned at init time. This is required in cases where a scan could interfere with another FSI master on the same bus. Signed-off-by: Christ

[PATCH 0/2] fsi: add property to avoid scanning at boot

2018-01-29 Thread Joel Stanley
These two patches from Chris add an optional property that says the FSI attached hardware cannot cope with being probed unless the state of that hardware is known. This allows the driver to eg. defer to userspace which can make this decision. I am collecting patches for a FSI tree to send to Greg

Re: [perf] perf probe fails sometimes on 4.9

2018-01-29 Thread Masami Hiramatsu
On Mon, 29 Jan 2018 22:00:52 +0530 Pintu Kumar wrote: > Dear Masami, > > Thank you so much for your reply. > Please find some of my answers inline. > > > On Mon, Jan 29, 2018 at 7:47 PM, Masami Hiramatsu wrote: > > On Mon, 29 Jan 2018 13:40:34 +0530 > > Pintu Kumar wrote: > > > >> Hi All, >

RE: [PATCH RFC 01/16] prcu: Add PRCU implementation

2018-01-29 Thread zhangheng (AC)
-Original Message- >From: Boqun Feng [mailto:boqun.f...@gmail.com] >Sent: 2018年1月25日 15:31 >To: Paul E. McKenney >Cc: liangli...@huawei.com; Guohanjun (Hanjun Guo) ; >zhangheng (AC) ; Chenhaibo (Haibo, OS Lab) >; lihao.li...@gmail.com; linux-kernel@vger.kernel.org >Subject: Re: [PATCH R

[PATCH 2/2] perf trace: Fix call-graph output

2018-01-29 Thread Ravi Bangoria
Recently, Arnaldo fixed global vs event specific --max-stack usage with commit bd3dda9ab0fb ("perf trace: Allow overriding global --max-stack per event"). This commit is having a regression when we don't use --max-stack at all with perf trace. Ex, $ ./perf trace record -g ls $ ./perf trace -i

Re: [PATCH] macintosh: Add module license to ans-lcd

2018-01-29 Thread Daniel Axtens
Hi, That matches the SPDX identifier from the top of the file, so: Reviewed-by: Daniel Axtens Regards, Daniel Larry Finger writes: > In kernel 4.15, the modprobe step on my PowerBook G5 started complaining that > there was no module license for ans-lcd. > > Signed-off-by: Larry Finger > ---

[PATCH 1/2] perf tools: Add trace/beauty/generated/ into .gitignore

2018-01-29 Thread Ravi Bangoria
No functionality changes. Signed-off-by: Ravi Bangoria --- tools/perf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/.gitignore b/tools/perf/.gitignore index 643cc4ba..3e5135d 100644 --- a/tools/perf/.gitignore +++ b/tools/perf/.gitignore @@ -31,5 +31,6 @@ config.mak.a

[PATCH 0/2] perf trace: Two trivial fixes

2018-01-29 Thread Ravi Bangoria
Two independent fixes: First adds 'generated' directory into .gitignore Second fixes call-graph output with perf trace Ravi Bangoria (2): perf tools: Add trace/beauty/generated/ into .gitignore perf trace: Fix call-graph output tools/perf/.gitignore | 1 + tools/perf/builtin-trace.c | 5

Re: [Qemu-devel] [RFC PATCH 0/3] vfio: ccw: basic channel path event handling

2018-01-29 Thread Dong Jia Shi
Halil Pasic writes: --text follows this line-- Hi Halil, --text follows this line-- AS you may noticed, Conny replied to this thread on my mail. Some of her comments there could answer your questions. If that applies, I will just say "See Conny's mail" in the following, and you can reply to that m

linux-next: Tree for Jan 30

2018-01-29 Thread Stephen Rothwell
Hi all, Please do not add any v4.17 material to your linux-next included branches until after v4.16-rc1 has been released. Changes since 20180129: The userns tree still had its build failure for which I added a patch. Non-merge commits (relative to Linus' tree): 10187 10050 files ch

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-29 Thread Anshuman Khandual
On 01/30/2018 08:37 AM, Anshuman Khandual wrote: > @@ -7621,8 +7622,13 @@ static int __alloc_contig_migrate_range(struct > compact_control *cc, > &cc->migratepages); > cc->nr_migratepages -= nr_reclaimed; > > + if (m

RE: [PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages

2018-01-29 Thread He, Roger
get_nr_swap_pages is the only API we can accessed from other module now. It can't cover the case of the dynamic swap size increment. I mean: user can use "swapon" to enable new swap file or swap disk dynamically or "swapoff" to disable swap space. Above is why we always to

Re: [PATCH] leaking_addresses: add 32-bit support

2018-01-29 Thread Tobin C. Harding
On Tue, Jan 30, 2018 at 09:14:49AM +0530, kaiwan.billimo...@gmail.com wrote: > Hi Tobin, > > On Mon, 2018-01-29 at 15:51 +1100, Tobin C. Harding wrote: > > Currently script only supports x86_64 and ppc64. It would be nice to be > > able to scan 32-bit machines also. We can add support for > > 32

[RFC] mm/migrate: Consolidate page allocation helper functions

2018-01-29 Thread Anshuman Khandual
Allocation helper functions for migrate_pages() remmain scattered with similar names making them really confusing. Rename these functions based on the context for the migration and move them all into common migration header. Functionality remains unchanged. Signed-off-by: Anshuman Khandual --- -

Re: [PATCH v3 2/4] drivers: firmware: xilinx: Add ZynqMP firmware driver

2018-01-29 Thread Shubhrajyoti Datta
Hi, Thanks for the patch. A few questions below. On Thu, Jan 25, 2018 at 4:51 AM, Jolly Shah wrote: > This patch is adding communication layer with firmware. > Firmware driver provides an interface to firmware APIs. > Interface APIs can be used by any driver to communicate to > PMUFW(Platform M

Question about dmesg/sysfs output when retpoline config is disabled

2018-01-29 Thread Misono, Tomohiro
Hello, I think dmesg/sysfs output messages are not suitable if retpoline config is off: I intentionally compiled the kernel 4.15.0 with CONFIG_RETPOLINE=n for test and boot it with the following kernel command line option to check dmesg/sysfs: (a) no command line option or "spectre_v2=on" or "s

[PATCH 1/1] scsi: ufs: make sure all interrupts are processed

2018-01-29 Thread Asutosh Das
From: Venkat Gopalakrishnan As multiple requests are submitted to the ufs host controller in parallel there could be instances where the command completion interrupt arrives later for a request that is already processed earlier as the corresponding doorbell was cleared when handling the previous

Re: [PATCH v2 3/3] fsi/master-gpio: Add external mode

2018-01-29 Thread Joel Stanley
Hi Jeremy, On Thu, Jun 22, 2017 at 7:40 AM, Jeremy Kerr wrote: > This change introduces an 'external mode' for GPIO-based FSI masters, > allowing the clock and data lines to be driven by an external source. > For example, external mode is selected by a user when an external debug > device is atta

[PATCH 1/1] scsi: ufs-qcom: remove broken hci version quirk

2018-01-29 Thread Asutosh Das
From: Subhash Jadavani UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION is only applicable for QCOM UFS host controller version 2.x.y and this has been fixed from version 3.x.y onwards, hence this change removes this quirk for version 3.x.y onwards. Signed-off-by: Subhash Jadavani Signed-off-by: Asutosh Das

Re: [PATCH AUTOSEL for 3.18 36/40] powerpc/xmon: Avoid tripping SMP hardlockup watchdog

2018-01-29 Thread Michael Ellerman
alexander.le...@verizon.com writes: > On Thu, Dec 14, 2017 at 12:10:39AM +1100, Michael Ellerman wrote: >>alexander.le...@verizon.com writes: >> >>> From: Nicholas Piggin >>> >>> [ Upstream commit 064996d62a33ffe10264b5af5dca92d54f60f806 ] >>> >>> The SMP hardlockup watchdog cross-checks other CP

Re: [RFC PATCH 1/9] media: add request API core and UAPI

2018-01-29 Thread Alexandre Courbot
Hi Sakari, thanks for the review! The version you reviewed is not the latest one, but I suppose most of your comments still apply. On Fri, Jan 26, 2018 at 5:39 PM, Sakari Ailus wrote: > Hi Alexandre, > > I remember it was discussed that the work after the V4L2 jobs API would > continue from the

[PATCH 1/1] scsi: ufs: add reference counting for scsi block requests

2018-01-29 Thread Asutosh Das
From: Subhash Jadavani Currently we call the scsi_block_requests()/scsi_unblock_requests() whenever we want to block/unblock scsi requests but as there is no reference counting, nesting of these calls could leave us in undesired state sometime. Consider following call flow sequence: 1. func1() ca

Re: [PATCH 5/5] USB: serial: f81232: fix bulk_in/out size

2018-01-29 Thread Johan Hovold
On Mon, Jan 22, 2018 at 03:58:47PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Fix Fintek F81232 bulk_in/out size to 64/16 according to the spec. > http://html.alldatasheet.com/html-pdf/406315/FINTEK/F81232/1762/8/F81232.html > > Signed-off-by: Ji-Ze Hong (Peter Hong) > --- > drivers/usb/serial/f812

Re: [PATCH] Lock mmap_sem when calling migrate_pages() in do_move_pages_to_node()

2018-01-29 Thread Hugh Dickins
On Mon, 29 Jan 2018, Zi Yan wrote: > From: Zi Yan > > migrate_pages() requires at least down_read(mmap_sem) to protect > related page tables and VMAs from changing. Let's do it in Page tables are protected by their locks. VMAs may change while migration is active on them, but does that need loc

[PATCH 1/4] objtool: Improve retpoline alternative handling

2018-01-29 Thread Josh Poimboeuf
Currently objtool requires all retpolines to be a) patched in with alternatives; and b) annotated with ANNOTATE_NOSPEC_ALTERNATIVE. If you forget to do both of the above, objtool seg faults trying to dereference a NULL 'insn->call_dest' pointer. Avoid that situation and print a more helpful

[PATCH 2/4] objtool: Add support for alternatives at the end of a section

2018-01-29 Thread Josh Poimboeuf
Now that the previous patch gave objtool the ability to read retpoline alternatives, it shows a new warning: arch/x86/entry/entry_64.o: warning: objtool: .entry_trampoline: don't know how to handle alternatives at end of section This is due to the JMP_NOSPEC in entry_SYSCALL_64_trampoline().

[PATCH 3/4] objtool: Warn on stripped section symbol

2018-01-29 Thread Josh Poimboeuf
With the following fix: 2a0098d70640 ("objtool: Fix seg fault with gold linker") ... a seg fault was avoided, but the original seg fault condition in objtool wasn't fixed. Replace the seg fault with an error message. Suggested-by: Ingo Molnar Signed-off-by: Josh Poimboeuf --- tools/objtool

[PATCH 4/4] objtool: Don't print '.tmp_' prefix for .o files

2018-01-29 Thread Josh Poimboeuf
With the following commit: 2a0098d70640 ("objtool: Fix seg fault with gold linker") ... objtool warnings started showing the modversions '.tmp_' prefix in the .o file name, like: arch/x86/mm/.tmp_mem_encrypt_boot.o: warning: objtool: sme_encrypt_execute()+0x48: indirect call found in RETPOL

[PATCH 0/4] objtool: seg fault fixes and retpoline improvements

2018-01-29 Thread Josh Poimboeuf
Some assorted fixes and improvements. Josh Poimboeuf (4): objtool: Improve retpoline alternative handling objtool: Add support for alternatives at the end of a section objtool: Warn on stripped section symbol objtool: Don't print '.tmp_' prefix for .o files tools/objtool/check.c | 110

RE: [PATCH RFC 01/16] prcu: Add PRCU implementation

2018-01-29 Thread zhangheng (AC)
Very sorry for late response, I found this email has been blocked after Lihao mentioned this morning. -Original Message- From: zhangheng (AC) Sent: 2018年1月26日 18:30 To: 'paul...@linux.vnet.ibm.com' ; liangli...@huawei.com Cc: Guohanjun (Hanjun Guo) ; Chenhaibo (Haibo, OS Lab) ; lihao.l

Re: [PATCH 3/5] USB: serial: f81232: enable remote wakeup via RX/RI pin

2018-01-29 Thread Johan Hovold
On Mon, Jan 22, 2018 at 03:58:45PM +0800, Ji-Ze Hong (Peter Hong) wrote: > The F81232 can do remote wakeup via RX/RI pin with pulse. > This patch will use device_set_wakeup_enable to enable this > feature. This is a policy decision that should be made by user space by setting the power/wakeup attr

[PATCH v2] mm: hwpoison: disable memory error handling on 1GB hugepage

2018-01-29 Thread Naoya Horiguchi
Recently the following BUG was reported: Injecting memory failure for pfn 0x3c at process virtual address 0x7fe3 Memory failure: 0x3c: recovery action for huge page: Recovered BUG: unable to handle kernel paging request at 8dfcc0003000 IP: gup_pgd_range+0x1f0/0

Re: [PATCH] leaking_addresses: add 32-bit support

2018-01-29 Thread kaiwan . billimoria
Hi Tobin, On Mon, 2018-01-29 at 15:51 +1100, Tobin C. Harding wrote: > Currently script only supports x86_64 and ppc64. It would be nice to be > able to scan 32-bit machines also. We can add support for > 32-bit architectures by modifying how we check for false positives, > taking advantage of t

Re: Requirements for retpoline in Linux 4.15 (was: Re: Linux 4.15)

2018-01-29 Thread Josh Poimboeuf
On Mon, Jan 29, 2018 at 11:35:25AM +, David Woodhouse wrote: > If they have explicit asm which has indirect jumps, that would still be > a problem. We just need to port objtool into the kernel and do it at > module load time, to check for that... :) Darnit, you sniffed out my April Fool's plan

Re: [PATCH] nvme-pci: use NOWAIT flag for nvme_set_host_mem

2018-01-29 Thread jianchao.wang
Hi Keith and Sagi Thanks for your kindly response. :) On 01/30/2018 04:17 AM, Keith Busch wrote: > On Mon, Jan 29, 2018 at 09:55:41PM +0200, Sagi Grimberg wrote: >>> Thanks for the fix. It looks like we still have a problem, though. >>> Commands submitted with the "shutdown_lock" held need to be

Re: [RESEND PATCH] sched/fair: consider RT/IRQ pressure in select_idle_sibling

2018-01-29 Thread Joel Fernandes
Hi Rohit, On Mon, Jan 29, 2018 at 3:27 PM, Rohit Jain wrote: > Currently fast path in the scheduler looks for an idle CPU to schedule > threads on. Capacity is taken into account in the function > 'select_task_rq_fair' when it calls 'wake_cap', however it ignores the > instantaneous capacity and

Re: [Qemu-devel] [RFC PATCH 0/3] vfio: ccw: basic channel path event handling

2018-01-29 Thread Dong Jia Shi
Halil Pasic writes: Hi Halil, As you may noticed, Conny replied to this thread on my mail. Some of her comments there could answer your questions. If that applies, I will just say "See Conny's mail" in the following, and you can reply to that mail, so we can consolidate further discussion. >>>

Re: [PATCH 4.13 28/43] SMB3: Validate negotiate request must always be signed

2018-01-29 Thread Srivatsa S. Bhat
Hi Aurélien, On 1/19/18 5:23 AM, Aurélien Aptel wrote: > Hi, > > "Srivatsa S. Bhat" writes: >>> Any thoughts on what is the right fix for stable kernels? Mounting SMB3 >>> shares works great on mainline (v4.15-rc5). It also works on 4.4.109 if >>> I pass the sec=ntlmsspi option to the mount comm

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-29 Thread Linus Torvalds
On Mon, Jan 29, 2018 at 5:32 PM, Arjan van de Ven wrote: > > the most simple solution is that we set the internal feature bit in Linux > to turn on the "stuff the RSB" workaround is we're on a SKL *or* as a guest > in a VM. That sounds reasonable. However, wouldn't it be even better to extend on

Re: [PATCH 2/5] USB: serial: f81232: add high baud rate support

2018-01-29 Thread Johan Hovold
On Tue, Jan 23, 2018 at 10:08:24AM +0800, Ji-Ze Hong (Peter Hong) wrote: > Hi Andy, > > Andy Shevchenko 於 2018/1/22 下午 10:55 寫道: > > On Mon, Jan 22, 2018 at 9:58 AM, Ji-Ze Hong (Peter Hong) > > wrote: > >> The F81232 had 4 clocksource 1.846/18.46/14.77/24MHz and baud rates > >> can be up to 1.5Mb

drivers/infiniband/sw/rxe/.tmp_rxe_resp.o: warning: objtool: rxe_responder()+0xc2: sibling call from callable instruction with modified stack frame

2018-01-29 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d8a5b80568a9cb66810e75b182018e9edb68e8ff commit: 2a0098d70640dda192a79966c14d449e7a34d675 objtool: Fix seg fault with gold linker date: 2 weeks ago config: x86_64-randconfig-b0-01301027 (attached as .confi

[PATCH 1/1] scsi: ufshcd: fix possible unclocked register access

2018-01-29 Thread Asutosh Das
From: Subhash Jadavani vendor specific setup_clocks ops may depend on clocks managed by ufshcd driver so if the vendor specific setup_clocks callback is called when the required clocks are turned off, it results into unclocked register access. This change make sure that required clocks are enabl

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-29 Thread Andi Kleen
> Right now, we are dealing with one workaround, which is tied to > Skylake-era model numbers. Yes, we could report a Skylake model > number, and Linux guests would use IBRS instead of retpoline. But this Nobody is planning to use IBRS and Linus has rejected it. > approach doesn't scale. What hap

[RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-29 Thread Anshuman Khandual
alloc_contig_range() initiates compaction and eventual migration for the purpose of either CMA or HugeTLB allocation. At present, reason code remains the same MR_CMA for either of those cases. Lets add a new reason code which will differentiate the purpose of migration as HugeTLB allocation instead

Re: possible deadlock in shmem_file_llseek

2018-01-29 Thread Joel Fernandes
On Wed, Jan 24, 2018 at 10:40 AM, Dmitry Vyukov wrote: > On Wed, Jan 24, 2018 at 6:47 PM, Joel Fernandes wrote: >> >> #syz test: https://github.com/joelagnel/linux.git test-ashmem Here's an updated patch. Just wanted to test it once more. thanks, - Joel From e7d73362ed378499795f27e2da6184d0b24

[PATCH] Lock mmap_sem when calling migrate_pages() in do_move_pages_to_node()

2018-01-29 Thread Zi Yan
From: Zi Yan migrate_pages() requires at least down_read(mmap_sem) to protect related page tables and VMAs from changing. Let's do it in do_page_moves() for both do_move_pages_to_node() and add_page_for_migration(). Also add this lock requirement in the comment of migrate_pages(). Signed-off-by

RE: [PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages

2018-01-29 Thread He, Roger
Hi Michal: We need a API to tell TTM module the system totally has how many swap cache. Then TTM module can use it to restrict how many the swap cache it can use to prevent triggering OOM. For Now we set the threshold of swap size TTM used as 1/2 * total size and leave the rest for others use.

[PATCH] irqchip/gic-v3: Fix gic_chip specific flag

2018-01-29 Thread fangxiang
Both IRQCHIP_SKIP_SET_WAKE and .irq_set_wake() is not set in gic_chip V3. This causes set_irq_wake_real() return -ENXIO and a WARN(Unbalanced IRQ ... wake disable ...) in irq_set_irq_wake(). Signed-off-by: fangxiang --- drivers/irqchip/irq-gic-v3.c |3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH v2 10/43] drm/rockchip: add mutex vop lock

2018-01-29 Thread Sandy Huang
在 2018/1/26 21:16, Thierry Escande 写道: From: zain wang Add a lock to vop to avoid disabling the crtc while waiting for a line flag while enabling psr. If we disable in the middle of waiting for the line flag, we'll end up timing out or worse. Signed-off-by: zain wang Signed-off-by: Sean Pau

Re: [PATCH] m68k/mac: Enable PDMA support for PowerBook 190

2018-01-29 Thread Finn Thain
On Mon, 29 Jan 2018, Geert Uytterhoeven wrote: > > Anyone with a PB520 who can check if it works now with scsi_type = > MAC_SCSI_OLD? > The PB520 and PB540 have a flawed early-revision 68LC040 processor* which makes it unlikely that these machines are running Linux (or NetBSD). A few have ha

Re: [PATCH v7 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-29 Thread Yong
Hi, On Mon, 29 Jan 2018 13:49:14 -0800 Randy Dunlap wrote: > On 01/29/2018 01:21 AM, Yong Deng wrote: > > Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 > > interface and CSI1 is used for parallel interface. This is not > > documented in datasheet but by test and guess. >

Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-29 Thread Kai Heng Feng
> On 29 Jan 2018, at 8:56 PM, Andy Shevchenko wrote: > > On Mon, Jan 29, 2018 at 8:10 AM, Kai-Heng Feng > wrote: >> The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out >> of box. >> >> The touchpad relies on its _INI method to update its _HID value from >> to SYNA2

Re: [PATCH v2 03/43] drm/rockchip: Respect page offset for PRIME mmap calls

2018-01-29 Thread Sandy Huang
在 2018/1/26 21:16, Thierry Escande 写道: From: Ørjan Eide When mapping external DMA-bufs through the PRIME mmap call, we might be given an offset which has to be respected. However for the internal DRM GEM mmap path, we have to ignore the fake mmap offset used to identify the buffer only. Curre

Re: [PATCH v2 02/43] drm/rockchip: support prime import sg table

2018-01-29 Thread Sandy Huang
在 2018/1/26 21:16, Thierry Escande 写道: From: Haixia Shi The prime fd to handle ioctl was not used with rockchip before. Support was added in order to pass graphics_Gbm and to support potential uses within Chrome OS (e.g. zero-copy video decode, camera). Signed-off-by: Haixia Shi Signed-off-

Re: [GIT PULL] siginfo cleanups for 4.16-rc1

2018-01-29 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Linus, > > Please pull the siginfo-linus branch from the git tree: > >git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git > siginfo-linus > >HEAD: c0f4b82450a56c0da11866163b764aeb1a21 signal/memory-failure: Use

Re: [PATCH v19 03/10] video: backlight: Add of_find_backlight helper in backlight.c

2018-01-29 Thread Randy Dunlap
On 01/29/2018 01:11 AM, Lee Jones wrote: > On Fri, 26 Jan 2018, Randy Dunlap wrote: > >> On 01/26/2018 01:48 AM, Lee Jones wrote: >>> On Wed, 24 Jan 2018, Meghana Madhyastha wrote: >>> Add of_find_backlight, a helper function which is a generic version of tinydrm_of_find_backlight that c

Re: [PATCH v2 01/43] drm/rockchip: Get rid of unnecessary struct fields

2018-01-29 Thread Sandy Huang
在 2018/1/26 21:16, Thierry Escande 写道: From: Tomasz Figa This patch removes unused fields from vop structure. Signed-off-by: Tomasz Figa Signed-off-by: Sean Paul Signed-off-by: Thierry Escande --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 5 - 1 file changed, 5 deletions(-) di

Re: [PATCH 07/11] powerpc/64s: Add support for RFI flush of L1-D cache

2018-01-29 Thread Michael Ellerman
Christian Zigotzky writes: > FYI: > > A-EON AmigaOne X1000 (CPU P.A. Semi PWRficient PA6T-1682M with two PA6T > cores): > > /sys/devices/system/cpu/vulnerabilities/ > > -r--r--r-- 1 root root 4096 Jan 25 09:38 meltdown > -r--r--r-- 1 root root 4096 Jan 25 09:38 spectre_v1 > -r--r--r-- 1 root roo

Re: [PATCHv1] Add Intel Stratix10 service layer driver

2018-01-29 Thread Richard Gong
Hi Greg, Many thanks for your reviews. On 01/25/2018 10:53 AM, Greg KH wrote: On Thu, Jan 25, 2018 at 10:39:03AM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard processor system (HPS) and Secure Device M

Re: [PATCH] staging: lustre: llite: replace variable length array

2018-01-29 Thread Dilger, Andreas
On Jan 27, 2018, at 14:42, Sven Dziadek wrote: > > The functionality of the removed variable length array is already > implemented by the function xattr_full_name in fs/xattr.c > > This fixes the sparse warning: > warning: Variable length array is used. > > Signed-off-by: Sven Dziadek > --- >

Re: [PATCH 2/2] drivers: soc: Add LLCC driver

2018-01-29 Thread kbuild test robot
Hi Channagoud, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.15 next-20180126] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/c

Re: [PATCH] staging: lustre: lnet: return of an error code should be negative

2018-01-29 Thread Dilger, Andreas
On Jan 27, 2018, at 22:24, Sumit Pundir wrote: > > Return value of error codes should typically be negative. > Issue reported by checkpatch.pl > > Signed-off-by: Sumit Pundir Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lnet/selftest/framework.c | 2 +- > 1 file changed, 1 inser

Re: [PATCH v2] ACPI / tables: Add IORT to injectable table list

2018-01-29 Thread Yang, Shunyong
Hi, Rafael Could you please help to review this patch? This is a small change to add ACPI_SIG_IORT to table_sigs[].  Loading IORT table from initrd is very useful to debug SMMU node/device probe, MSI allocation, stream id translation and verifying IORT table from firmware. So, I add this. Thanks

Re: [PATCH 3/3] i2c: add ACPI support for i2c-piix4

2018-01-29 Thread Andrew Cooks
Hi Andy On 29/01/18 23:30, Andy Shevchenko wrote: > On Mon, Jan 29, 2018 at 5:54 AM, Andrew Cooks > wrote: >> This enables the i2c-piix4 SMBus controller driver to enumerate I2C >> slave devices using ACPI. It builds on the related I2C mux device work >> in commit 8eb5c87a92c0 ("i2c: add ACPI su

Re: [PATCH v1] mm: hwpoison: disable memory error handling on 1GB hugepage

2018-01-29 Thread Naoya Horiguchi
Hi Michal, Mike, On Mon, Jan 29, 2018 at 10:08:53AM -0800, Mike Kravetz wrote: > On 01/29/2018 01:54 AM, Michal Hocko wrote: > > On Mon 29-01-18 06:30:55, Naoya Horiguchi wrote: > >> My apology, I forgot to CC to the mailing lists. > >> > >> On Mon, Jan 29, 2018 at 03:28:03PM +0900, Naoya Horiguch

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-29 Thread Eduardo Habkost
On Mon, Jan 29, 2018 at 02:25:12PM -0800, Andi Kleen wrote: > > I agree with your point that the common hypervisor practice to fake > old model numbers will break some of the workarounds. Hypervisors > may need to revisit their practice. > > > > In general, making these kinds of decisions based o

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-29 Thread Arjan van de Ven
On 1/29/2018 4:23 PM, Linus Torvalds wrote: Why do you even _care_ about the guest, and how it acts wrt Skylake? What you should care about is not so much the guests (which do their own thing) but protect guests from each other, no? the most simple solution is that we set the internal feature

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-29 Thread Eduardo Habkost
On Tue, Jan 30, 2018 at 01:20:52AM +, David Dunn wrote: > Eduardo, > > This is why it would be good to have a CPUID bit that says: > "apply SkyLake RSB stuffing." That's preferable to "trust FMS" > for VMware. Agreed it would be more useful than "trust FMS". However, I believe a "no need to

[PATCH resend 0/8] fix potential integer overflows

2018-01-29 Thread Gustavo A. R. Silva
Hello, I'm resending this cover letter due to a typo in the ARM and LKML addresses in the previous e-mail. This patchset aims to fix potential integer overflows reported by Coverity. In all cases the potential overflowing expressions are evaluated using 32-bit arithmetic before being used in con

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-29 Thread Eduardo Habkost
On Mon, Jan 29, 2018 at 02:12:02PM -0800, Jim Mattson wrote: > On Mon, Jan 29, 2018 at 1:50 PM, Eduardo Habkost wrote: > > On Mon, Jan 29, 2018 at 01:37:05PM -0800, Jim Mattson wrote: > >> For GCE, "you might be migrated to Skylake" is pretty much a > >> certainty. Even if you're in a zone that do

[PATCH v6 08/13] x86, get_user: use pointer masking to limit speculation

2018-01-29 Thread Dan Williams
Quoting Linus: I do think that it would be a good idea to very expressly document the fact that it's not that the user access itself is unsafe. I do agree that things like "get_user()" want to be protected, but not because of any direct bugs or problems with get_user() and friends,

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-29 Thread David Dunn
Eduardo, This is why it would be good to have a CPUID bit that says: "apply SkyLake RSB stuffing." That's preferable to "trust FMS" for VMware. If Intel defines such a feature flag, sets it on SkyLake, and Linux uses it... that would be very helpful for VMware. I won't speak for GCE and AWS.

[PATCH v6 06/13] x86, usercopy: replace open coded stac/clac with __uaccess_{begin, end}

2018-01-29 Thread Dan Williams
In preparation for converting some __uaccess_begin() instances to __uacess_begin_nospec(), make sure all 'from user' uaccess paths are using the _begin(), _end() helpers rather than open-coded stac() and clac(). There are no functional changes in this patch. Suggested-by: Ingo Molnar Cc: Tom Len

  1   2   3   4   5   6   7   8   9   10   >