Re: [PATCH] can: Use common error handling code in vxcan_newlink()

2017-10-27 Thread Oliver Hartkopp
Hi Markus, On 10/27/2017 10:30 PM, SF Markus Elfring wrote: From: Markus Elfring Date: Fri, 27 Oct 2017 22:22:24 +0200 * Add a jump target so that a bit of exception handling can be better reused at the end of this function. * Adjust two condition checks. This issue was detected by using

[PATCH] staging: rtl8192e: set priv->irq as 0 after the irq is freed

2017-10-27 Thread Arvind Yadav
_rtl92e_init can fail here, we must set priv->irq as 0 after free_irq. Signed-off-by: Arvind Yadav --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c ind

[PATCH v3] KVM: arm/arm64: fix the incompatible matching for external abort

2017-10-27 Thread Dongjiu Geng
For this matching, switch expression uses fault type which is not {I,D}FSC value, but the case expression uses {I,D}FSC, they are incompatible. So change the switch expression to use {I,D}FSC. Signed-off-by: Dongjiu Geng --- arch/arm/include/asm/kvm_emulate.h | 2 +- arch/arm64/include/asm/kvm

Re: [PATCH v3 0/5] Switch arm64 over to qrwlock

2017-10-27 Thread chengjian (D)
Hi, all. On 2017/10/20 0:53, Will Deacon wrote: I've not had any more feedback on this and the testing results are very encouraging so I'd like to merge it for 4.15. However, it might make more sense for the whole thing to go via -tip instead. Ingo, Peter: what do you prefer? Will Will Deac

[PATCH tip v2] x86/paravirt: Make the virt_spin_lock_key setup after jump_label_init()

2017-10-27 Thread Dou Liyang
Commit: 9043442b43b1 ("locking/paravirt: Use new static key for controlling call of virt_spin_lock()") set the static virt_spin_lock_key to a value before jump_label_init() has been called, which will result in a WARN(). Move the native_pv_lock_init() into native_smp_prepare_cpus(), and set

Re: [PATCH net-next] qed: Set error code for allocation failures

2017-10-27 Thread Yunsheng Lin
Hi, Dan On 2017/10/27 19:52, Dan Carpenter wrote: > On Fri, Oct 27, 2017 at 05:32:42PM +0800, Yunsheng Lin wrote: >> Hi, Dan >> >> On 2017/10/27 14:40, Dan Carpenter wrote: >>> There are several places where we accidentally return success when >>> kcalloc() fails. >>> >>> Fixes: fcb39f6c10b2 ("qed

Re: [PATCH v2] KVM: arm/arm64: Fix external abort type matching

2017-10-27 Thread gengdongjiu
On 2017/10/28 2:28, Marc Zyngier wrote: >> kvm_vcpu_trap_get_fault_type() will clear the low two bits to zero. So >> I use FSC_SEA_TTW represent "Synchronous external abort on translation >> table walk" > I understand that, and I certainly not keen on adding another "fault > type" for this. Ok,

HELLO

2017-10-27 Thread verify
DEAR FRIEND. I am MR ADNANA MUHAMMAD, Manager Audit/Accounting Department BANK OF AFRICA B.O.A Ouagadougou Burkina-Faso, with the business proposal deal of 19. 3 million US Dollars to transfer into your account, if you are interested contact me for more details, with my email address: adnana

Re: Query regarding srcu_funnel_exp_start()

2017-10-27 Thread Neeraj Upadhyay
On 10/28/2017 03:50 AM, Paul E. McKenney wrote: On Fri, Oct 27, 2017 at 10:15:04PM +0530, Neeraj Upadhyay wrote: On 10/27/2017 05:56 PM, Paul E. McKenney wrote: On Fri, Oct 27, 2017 at 02:23:07PM +0530, Neeraj Upadhyay wrote: Hi, One query regarding srcu_funnel_exp_start() function in kernel/

Re: mptsas driver cannot detect hotplugging disk with the LSI SCSI SAS1068 controller in Ubuntu guest on VMware

2017-10-27 Thread Gavin Guo
On Fri, Oct 27, 2017 at 10:53 PM, Hannes Reinecke wrote: > On 10/27/2017 04:02 PM, Gavin Guo wrote: >> Hi Hannes, >> >> Thank you for looking into the issue. If there is anything I can help >> to test the patch? I appreciate your help. Thank you. >> > If you had checked linux-scsi you would have f

Re: [GIT PULL] tracing/samples: Fix creation and deletion of simple_thread_fn creation

2017-10-27 Thread Linus Torvalds
On Fri, Oct 27, 2017 at 6:15 PM, Steven Rostedt wrote: > > I'll write up a fix on the plane home on Saturday. Expect something by > Sunday. I'll change the "bool" to "int" in the meanwhile, getting rid of the warning. That may be what you meant in the first place. Linus

Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow

2017-10-27 Thread Chen Feng
Hi ted, On 2017/10/26 23:04, Theodore Ts'o wrote: > On Thu, Oct 26, 2017 at 04:25:15PM +0800, Chen Feng wrote: >> >> >> On 2017/10/25 16:49, Theodore Ts'o wrote: >>> Other people who have sent me fuzzer test reproducers are able to >>> reproduce syzkaller logs into a simple C program. Can you exp

[PATCH v2] workqueue: Fix NULL pointer dereference

2017-10-27 Thread Li Bin
When queue_work() is used in irq (not in task context), there is a potential case that trigger NULL pointer dereference. worker_thread() |-spin_lock_irq() |-process_one_work() |-worker->current_pwq = pwq |-spin_unlock_

Re: [PATCH 2/2] Add /proc/PID/{smaps, numa_maps} support for DAX

2017-10-27 Thread kbuild test robot
/commits/Fan-Du/proc-mm-export-PTE-sizes-directly-in-smaps/20171027-233355 config: i386-randconfig-b0-10280854 (attached as .config) compiler: gcc-5 (Debian 5.4.1-2) 5.4.1 20160904 reproduce: # save the attached .config to linux build tree make ARCH=i386 Note: it may well be a FALSE

Re: [PATCH 1/4] m68k/mac: More printk modernization

2017-10-27 Thread Finn Thain
On Sat, 28 Oct 2017, I wrote: > > Any particular reason why you didn't use pr_debug() here? I'm guessing > > it's because this is not a known pointer value? > > > > It's because the call to psc_debug_dump() is already conditional on > #ifdef DEBUG_PSC. > > Having the printk conditional on bot

Re: [PATCH] f2fs: fix to keep backward compatibility of flexible inline xattr feature

2017-10-27 Thread Chao Yu
On 2017/10/27 19:39, Chao Yu wrote: > On 2017/10/27 19:32, Jaegeuk Kim wrote: >> On 10/27, Chao Yu wrote: >>> On 2017/10/27 18:56, Jaegeuk Kim wrote: On 10/27, Chao Yu wrote: > On 2017/10/26 22:05, Jaegeuk Kim wrote: >> On 10/26, Chao Yu wrote: >>> On 2017/10/26 19:52, Jaegeuk Kim

[PATCH] ACPICA: Clean up whitespace of indentation

2017-10-27 Thread Baoquan He
Use tabs (not spaces) for indentation. Signed-off-by: Baoquan He --- include/acpi/actbl1.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index 6b8714a428b6..d8a4fc066abe 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/

"Core temperature above threshold" on Fujitsu U757 with 2 core Kaby Lake (i7-7600U)

2017-10-27 Thread Christoph Anton Mitterer
Hey. Perhaps someone can help me with this. I got a brand new notebook from the university, a Fujitsu U757[0][1], with a 2 core Kaby Lake (i7-7600U) and 32GB RAM. It runs Debian unstable, that is as of now kernel 4.13.4. Even at pretty simple tasks (just some VM running) and a bit more, the CPU

[PATCH v3] x86/mm/64: Rename the register_page_bootmem_memmap() 'size' parameter to 'nr_pages'

2017-10-27 Thread Baoquan He
register_page_bootmem_memmap()'s 3rd 'size' parameter is named in a somewhat misleading fashion - rename it to 'nr_pages' which makes the units of it much clearer. Meanwhile rename the existing local variable 'nr_pages' to 'nr_pmd_pages', a more expressive name, to avoid conflict with new function

Re: [PATCH] kprobes, x86/alternatives: use text_mutex to protect smp_alt_modules

2017-10-27 Thread zhouchengming
On 2017/10/27 22:15, Peter Zijlstra wrote: On Fri, Oct 27, 2017 at 02:33:48PM +0200, Borislav Petkov wrote: On Fri, Oct 27, 2017 at 07:42:45PM +0800, zhouchengming wrote: This is a real bug happened on one of our machines, below is the calltrace. We can see the trigger is at alternatives_text_r

Re: [GIT PULL] tracing/samples: Fix creation and deletion of simple_thread_fn creation

2017-10-27 Thread Steven Rostedt
On Fri, 27 Oct 2017 16:59:49 -0700 Linus Torvalds wrote: > I'm back home, which means I do full builds, and that in turn shows > that this was garbage. Unfortunately, I'm still in Prague, but I just finished my marathon of presentations. > > On Tue, Oct 17, 2017 at 2:21 PM, Steven Rostedt wro

Re: [PATCH 17/18] x86/asm/64: Remove thread_struct::sp0

2017-10-27 Thread Brian Gerst
On Thu, Oct 26, 2017 at 4:26 AM, Andy Lutomirski wrote: > On x86_64, we can easily calculate sp0 when needed instead of > storing it in thread_struct. > > On x86_32, a similar cleanup would be possible, but it would require > cleaning up the vm86 code first, and that can wait for a later > cleanup

Re: [PATCH] rpmsg: glink: Initialize the "intent_req_comp" completion variable

2017-10-27 Thread Chris Lew
On 10/27/2017 3:45 AM, Arun Kumar Neelakantam wrote: The "intent_req_comp" variable is used without initialization which results in NULL pointer derefernce in qcom_glink_request_intent(). Typo on dereference. Thanks, Chris -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,

Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module

2017-10-27 Thread Ghazale Hosseinabadi
On 10/27/2017 04:19 PM, Hal Rosenstock wrote: On 10/27/2017 7:04 PM, Ghazale Hosseinabadi wrote: On 10/27/2017 03:52 PM, Hal Rosenstock wrote: On 10/27/2017 5:54 PM, Ghazale Hosseinabadi wrote: When running ibstat (if transceiver is not connected in adapter): ibpanic: [7851] main: stat of

Re: [PATCH 2/2] scsi: megaraid: Track the page allocations for struct fusion_context

2017-10-27 Thread Yisheng Xie
hi Martin , On 2017/10/25 20:36, Martin K. Petersen wrote: > > Yisheng, > >> I have get many kmemleak reports just similar to commit 70c54e210ee9 >> (scsi: megaraid_sas: fix memleak in megasas_alloc_cmdlist_fusion) >> on v4.14-rc6, however it seems have a different stroy: > > Do you still see l

Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module

2017-10-27 Thread Ghazale Hosseinabadi
On 10/27/2017 05:17 PM, Hal Rosenstock wrote: On 10/27/2017 7:19 PM, Hal Rosenstock wrote: On 10/27/2017 7:04 PM, Ghazale Hosseinabadi wrote: On 10/27/2017 03:52 PM, Hal Rosenstock wrote: On 10/27/2017 5:54 PM, Ghazale Hosseinabadi wrote: When running ibstat (if transceiver is not connecte

Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module

2017-10-27 Thread Hal Rosenstock
On 10/27/2017 7:19 PM, Hal Rosenstock wrote: > On 10/27/2017 7:04 PM, Ghazale Hosseinabadi wrote: >> >> >> On 10/27/2017 03:52 PM, Hal Rosenstock wrote: >>> On 10/27/2017 5:54 PM, Ghazale Hosseinabadi wrote: When running ibstat (if transceiver is not connected in adapter): ibpanic: [

[PATCH v1] x86/smpboot: broken calibration path during cpu bringup

2017-10-27 Thread Pavel Tatashin
While studying why it takes 0.06s to bring up every cpu, which accounts to 15.36s on 256 cpu system, I determined that it is all because of calibrate_delay() call. After, studying code further I found that there are bugs in the current code: If tsc is enabled, and cpu has TSC_CONSTANT feature, an

Re: [RFC PATCH v8 7/7] PCI / PM: Add support for the PCIe WAKE# signal for OF

2017-10-27 Thread Brian Norris
Hi Sinan, I'm not sure I understand all your suggestions below. On Thu, Oct 26, 2017 at 11:16:55AM -0400, Sinan Kaya wrote: > On 10/26/2017 9:28 AM, Jeffy Chen wrote: > > drivers/pci/Makefile | 2 +- > > drivers/pci/pci-of.c | 136 > > +++ > > 2

Re: [Part2 PATCH v6 13/38] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-27 Thread Borislav Petkov
On Fri, Oct 27, 2017 at 05:59:23PM -0500, Brijesh Singh wrote: > Yes it is typo. PEK_GEN wants FW to be in INIT state hence someone need > to transition from UNINIT -> INIT. Which, once you've done it once on driver init, is there. > That's what I am doing except FACTORY_RESET. Well, not really.

Re: [GIT PULL] tracing/samples: Fix creation and deletion of simple_thread_fn creation

2017-10-27 Thread Linus Torvalds
I'm back home, which means I do full builds, and that in turn shows that this was garbage. On Tue, Oct 17, 2017 at 2:21 PM, Steven Rostedt wrote: > > Please pull the latest trace-v4.14-rc3 tree, which can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > t

Re: [PATCH] coccinelle: fix verbose message about .cocci file being run

2017-10-27 Thread Jim Davis
On Wed, Oct 25, 2017 at 9:55 PM, Masahiro Yamada wrote: > If you run coccicheck with V=1 and COCCI=, you will see a strange > path to the semantic patch file. For example, run the following: > > $ make V=1 COCCI=scripts/coccinelle/free/kfree.cocci coccicheck > [ snip ] > The semantic patch tha

[PATCH v10 02/13] x86/insn-eval: Compute linear address in several utility functions

2017-10-27 Thread Ricardo Neri
Computing a linear address involves several steps. The first step is to compute the effective address. This involves determining the addressing mode in use and perform arithmetic operations on the operands. Plus, each addressing mode has special cases that must be handled. Once the effective addre

[PATCH v10 05/13] x86/insn-eval: Handle 32-bit address encodings in virtual-8086 mode

2017-10-27 Thread Ricardo Neri
It is possible to utilize 32-bit address encodings in virtual-8086 mode via an address override instruction prefix. However, the range of the effective address is still limited to [0x-0x]. In such a case, return error. Also, linear addresses in virtual-8086 mode are limited to 20 bits. Enforce

[PATCH v10 07/13] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2017-10-27 Thread Ricardo Neri
User-Mode Instruction Prevention is a security feature present in new Intel processors that, when set, prevents the execution of a subset of instructions if such instructions are executed in user mode (CPL > 0). Attempting to execute such instructions causes a general protection exception. The sub

[PATCH v10 04/13] x86/insn-eval: Add wrapper function for 32 and 64-bit addresses

2017-10-27 Thread Ricardo Neri
The function insn_get_addr_ref() is capable of handling only 64-bit addresses. A previous commit introduced a function to handle 32-bit addresses. Invoke these two functions from a third wrapper function that calls the appropriate routine based on the address size specified in the instruction struc

[PATCH v10 06/13] x86/insn-eval: Add support to resolve 16-bit address encodings

2017-10-27 Thread Ricardo Neri
Tasks running in virtual-8086 mode, in protected mode with code segment descriptors that specify 16-bit default address sizes via the D bit, or via an address override prefix will use 16-bit addressing form encodings as described in the Intel 64 and IA-32 Architecture Software Developer's Manual Vo

[PATCH v10 03/13] x86/insn-eval: Add support to resolve 32-bit address encodings

2017-10-27 Thread Ricardo Neri
32-bit and 64-bit address encodings are identical. Thus, the same logic could be used to resolve the effective address. However, there are two key differences: address size and enforcement of segment limits. If running a 32-bit process on a 64-bit kernel, it is best to perform the address calculat

[PATCH v10 10/13] x86: Enable User-Mode Instruction Prevention

2017-10-27 Thread Ricardo Neri
User-Mode Instruction Prevention (UMIP) is enabled by setting/clearing a bit in %cr4. It makes sense to enable UMIP at some point while booting, before user spaces come up. Like SMAP and SMEP, is not critical to have it enabled very early during boot. This is because UMIP is relevant only when the

[PATCH v10 08/13] x86: Add emulation code for UMIP instructions

2017-10-27 Thread Ricardo Neri
The feature User-Mode Instruction Prevention present in recent Intel processor prevents a group of instructions (sgdt, sidt, sldt, smsw, and str) from being executed with CPL > 0. Otherwise, a general protection fault is issued. Rather than relaying to the user space the general protection fault c

[PATCH] thermal: tegra: allow sensor registeration to fail

2017-10-27 Thread Nicolin Chen
Not all sensors may be used on a platform. So there could be some missing thermal zones in the Device Tree. However, the the driver now errors out whenever a sensor fails to register the thermal zone. Since the driver could live with other sensors, this change allows other sensors to continue the

[PATCH v10 09/13] x86/umip: Force a page fault when unable to copy emulated result to user

2017-10-27 Thread Ricardo Neri
fixup_umip_exception() will be called from do_general_protection(). If the former returns false, the latter will issue a SIGSEGV with SEND_SIG_PRIV. However, when emulation is successful but the emulated result cannot be copied to user space memory, it is more accurate to issue a SIGSEGV with SEGV_

[PATCH v10 01/13] x86/insn-eval: Extend get_seg_base_addr() to also obtain segment limit

2017-10-27 Thread Ricardo Neri
In protected mode, it is common to want to obtain the limit of a segment along with its base address. This is useful, for instance, to verify that an effective address lies within a segment before computing a linear address. Cc: Dave Hansen Cc: Adam Buchbinder Cc: Colin Ian King Cc: Lorenzo Sto

[PATCH v10 13/13] selftests/x86: Add tests for instruction str and sldt

2017-10-27 Thread Ricardo Neri
The instructions str and sldt are not recognized when running on virtual- 8086 mode and generate an invalid operand exception. These two instructions are protected by the Intel User-Mode Instruction Prevention (UMIP) security feature. In protected mode, if UMIP is enabled, these instructions genera

[PATCH v10 12/13] selftests/x86: Add tests for User-Mode Instruction Prevention

2017-10-27 Thread Ricardo Neri
Certain user space programs that run on virtual-8086 mode may utilize instructions protected by the User-Mode Instruction Prevention (UMIP) security feature present in new Intel processors: SGDT, SIDT and SMSW. In such a case, a general protection fault is issued if UMIP is enabled. When such a fau

[PATCH v10 11/13] x86/traps: Fixup general protection faults caused by UMIP

2017-10-27 Thread Ricardo Neri
If the User-Mode Instruction Prevention CPU feature is available and enabled, a general protection fault will be issued if the instructions sgdt, sldt, sidt, str or smsw are executed from user-mode context (CPL > 0). If the fault was caused by any of the instructions protected by UMIP, fixup_umip_e

[PATCH v10 00/13] x86: Enable User-Mode Instruction Prevention

2017-10-27 Thread Ricardo Neri
This the 10th revision of a patchset to enable User-Mode Instruction Prevention (UMIP) in Linux. This is the second part of two series. Instead of submitting a single huge series. It would be better to split the series for easier review and handling. The first part of the series can be found here [

Re: [RFC PATCH v10 6/7] PCI / PM: Move acpi wakeup code to pci core

2017-10-27 Thread Brian Norris
Hi Jeffy, On Fri, Oct 27, 2017 at 03:26:11PM +0800, Jeffy Chen wrote: > Move acpi wakeup code to pci core as pci_set_wakeup(), so that other > platforms could reuse it. I think you need to double check your refactoring. I believe you may have changed some behavior here. > Also add .setup_dev() /

Re: [PATCH] x86/mm/64: Rename the register_page_bootmem_memmap() 'size' parameter to 'nr_pages'

2017-10-27 Thread Baoquan He
drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Ingo-Molnar/x86-mm-64-Rename-the-register_page_bootmem_memmap-size-parameter-to-nr_pages/20171027-181456 > config: x86_64-kexec (attached as .config) > compiler: gcc-6 (Debian

[PATCH 2/2] perf tools: arm-spe: add customized strerror function

2017-10-27 Thread Kim Phillips
Add a routine to try to help the user determine how they're supposed to use the SPE driver. Example #1: Trouble setting sample rate: $ sudo ./perf record -e arm_spe_0/ts_enable=1,pa_enable=1/ -F 1 true Error: required sample period missing. Use '--count=' $ ./perf record -e arm_spe_0/ts_enable=

[PATCH v3 1/2] perf tools: Add ARM Statistical Profiling Extensions (SPE) support

2017-10-27 Thread Kim Phillips
'perf record' and 'perf report --dump-raw-trace' supported in this release. Example usage: $ ./perf record -e arm_spe_0/ts_enable=1,pa_enable=1/ \ dd if=/dev/zero of=/dev/null count=1 perf report --dump-raw-trace Note that the perf.data file is portable, so the report can be

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Duyck, Alexander H
On Sat, 2017-10-28 at 00:19 +0200, Alex Williamson wrote: > On Fri, 27 Oct 2017 21:50:43 + > "Wang, Liang-min" wrote: > > > > -Original Message- > > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > > Sent: Tuesday, October 24, 2017 6:07 PM > > > To: Wang, Liang-min > >

Re: [PATCH v4] Input: add support for the Samsung S6SY761 touchscreen

2017-10-27 Thread Dmitry Torokhov
Hi Andi, On Tue, Sep 26, 2017 at 03:31:35PM +0900, Andi Shyti wrote: > The S6SY761 touchscreen is a capicitive multi-touch controller > for mobile use. It's connected with i2c at the address 0x48. > > This commit provides a basic version of the driver which can > handle only initialization, touch

Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module

2017-10-27 Thread Hal Rosenstock
On 10/27/2017 7:04 PM, Ghazale Hosseinabadi wrote: > > > On 10/27/2017 03:52 PM, Hal Rosenstock wrote: >> On 10/27/2017 5:54 PM, Ghazale Hosseinabadi wrote: >>> When running ibstat (if transceiver is not connected in adapter): >>> >>> ibpanic: [7851] main: stat of IB device 'mlx5_1' failed: Inval

Re: [RFC PATCH v10 7/7] PCI / PM: Add support for the PCIe WAKE# signal for OF

2017-10-27 Thread Brian Norris
Hi Jeffy, On Fri, Oct 27, 2017 at 03:26:12PM +0800, Jeffy Chen wrote: > Add pci-of.c to handle the PCIe WAKE# interrupt. > > Also use the dedicated wakeirq infrastructure to simplify it. > > Signed-off-by: Jeffy Chen > --- > > Changes in v10: > Use device_set_wakeup_capable() instead of device

Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module

2017-10-27 Thread Ghazale Hosseinabadi
On 10/27/2017 03:52 PM, Hal Rosenstock wrote: On 10/27/2017 5:54 PM, Ghazale Hosseinabadi wrote: When running ibstat (if transceiver is not connected in adapter): ibpanic: [7851] main: stat of IB device 'mlx5_1' failed: Invalid argument Any output before that ? no, It only prints this line.

Re: [Part2 PATCH v6 13/38] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-27 Thread Brijesh Singh
On 10/27/17 4:49 PM, Borislav Petkov wrote: > On Fri, Oct 27, 2017 at 04:28:31PM -0500, Brijesh Singh wrote: >> This will fail because PEK_GEN require the platform in INIT state and >> nobody has done the state transition from INIT -> UINIT. > Huh, FW is in INIT state and PEK_GEN wants it to be i

Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module

2017-10-27 Thread Hal Rosenstock
On 10/27/2017 5:54 PM, Ghazale Hosseinabadi wrote: > When running ibstat (if transceiver is not connected in adapter): > > ibpanic: [7851] main: stat of IB device 'mlx5_1' failed: Invalid argument Any output before that ? I'm trying to understand how far it gets. It looks to me that empty rate fi

[PATCH] usb: typec: tps6598x: mark expected switch fall-through

2017-10-27 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/typec/tps6598x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c index 8

Re: [PATCH] input: mxs-lradc: remove redundant assignment to pointer input

2017-10-27 Thread Dmitry Torokhov
On Fri, Oct 27, 2017 at 04:52:30PM +0100, Colin King wrote: > From: Colin Ian King > > The pointer 'input' is being initialized with ts->ts_input and this > value is not being read as it is updated a few lines later with the > return value from the call to devm_input_allocate_device. Remove the >

Re: [PATCH 1/4] m68k/mac: More printk modernization

2017-10-27 Thread Finn Thain
On Fri, 27 Oct 2017, Kars de Jong wrote: > 2017-10-27 4:45 GMT+02:00 Finn Thain : > > Log message fragments used to be printed on one line but now get split > > up. Fix this. Also, suppress log spam that merely prints known pointer > > values. > > > > Tested-by: Stan Johnson > > Signed-off-by:

Re: [PATCH v2] xen: support 52 bit physical addresses in pv guests

2017-10-27 Thread Boris Ostrovsky
On 10/27/2017 01:49 PM, Juergen Gross wrote: Physical addresses on processors supporting 5 level paging can be up to 52 bits wide. For a Xen pv guest running on such a machine those physical addresses have to be supported in order to be able to use any memory on the machine even if the guest it

[PATCH v2 2/6] PCI / PM: Use the NEVER_SKIP driver flag

2017-10-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Replace the PCI-specific flag PCI_DEV_FLAGS_NEEDS_RESUME with the PM core's DPM_FLAG_NEVER_SKIP one everywhere and drop it. Signed-off-by: Rafael J. Wysocki Acked-by: Greg Kroah-Hartman Acked-by: Bjorn Helgaas Reviewed-by: Ulf Hansson --- -> v2: No changes. --- dri

[PATCH v2 3/6] PM / core: Add SMART_SUSPEND driver flag

2017-10-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Define and document a SMART_SUSPEND flag to instruct bus types and PM domains that the system suspend callbacks provided by the driver can cope with runtime-suspended devices, so from the driver's perspective it should be safe to leave devices in runtime suspend during sys

[PATCH v2 1/6] PM / core: Add NEVER_SKIP and SMART_PREPARE driver flags

2017-10-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The motivation for this change is to provide a way to work around a problem with the direct-complete mechanism used for avoiding system suspend/resume handling for devices in runtime suspend. The problem is that some middle layer code (the PCI bus type and the ACPI PM dom

[PATCH v2 0/6] PM / sleep: Driver flags for system suspend/resume (part 1)

2017-10-27 Thread Rafael J. Wysocki
Hi All, The following part of the original cover letter still applies: On Monday, October 16, 2017 3:12:35 AM CEST Rafael J. Wysocki wrote: > > This work was triggered by attempts to fix and optimize PM in the > i2c-designware-platdev driver that ended up with adding a couple of > flags to the d

[PATCH] drivers/char/random.c: remove unused dont_count_entropy

2017-10-27 Thread Rasmus Villemoes
Ever since "random: kill dead extract_state struct" [1], the dont_count_entropy member of struct timer_rand_state has been effectively unused. Since it hasn't found a new use in 12 years, it's probably safe to finally kill it. [1] Pre-git, https://git.kernel.org/pub/scm/linux/kernel/git/tglx/hist

[PATCH v2 4/6] PCI / PM: Drop unnecessary invocations of pcibios_pm_ops callbacks

2017-10-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The only user of non-empty pcibios_pm_ops is s390 and it only uses "noirq" callbacks, so drop the invocations of the other pcibios_pm_ops callbacks from the PCI PM code. That will allow subsequent changes to be somewhat simpler. Signed-off-by: Rafael J. Wysocki Acked-by

[PATCH v2 5/6] PCI / PM: Take SMART_SUSPEND driver flag into account

2017-10-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make the PCI bus type take DPM_FLAG_SMART_SUSPEND into account in its system-wide PM callbacks and make sure that all code that should not run in parallel with pci_pm_runtime_resume() is executed in the "late" phases of system suspend, freeze and poweroff transitions. [No

[PATCH v2 6/6] ACPI / PM: Take SMART_SUSPEND driver flag into account

2017-10-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make the ACPI PM domain take DPM_FLAG_SMART_SUSPEND into account in its system suspend callbacks. [Note that the pm_runtime_suspended() check in acpi_dev_needs_resume() is an optimization, because if is not passed, all of the subsequent checks may be skipped and some of t

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Wang, Liang-min
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Friday, October 27, 2017 6:19 PM > To: Wang, Liang-min > Cc: Kirsher, Jeffrey T ; k...@vger.kernel.org; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; Duyck, Alexan

[PATCH v3 11/12] lib: vdso: Add support for CLOCK_BOOTTIME

2017-10-27 Thread Mark Salyzyn
Add a case for CLOCK_BOOTTIME as it is popular for measuring relative time on systems expected to suspend() or hibernate(). Signed-off-by: Mark Salyzyn Cc: James Morse Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Andy Lutomirski Cc: Dmitry Safonov Cc: John Stultz Cc: Mark Rutla

[PATCH v3 12/12] lib: vdso: do not expose gettimeofday, if no arch supported timer

2017-10-27 Thread Mark Salyzyn
If ARCH_PROVIDES_TIMER is not defined, do not expose gettimeofday. libc will default directly to syscall. Also ifdef clock_gettime switch cases and stubs if not supported and other unused components. Signed-off-by: Mark Salyzyn Cc: James Morse Cc: Russell King Cc: Catalin Marinas Cc: Will Dea

[PATCH v3 10/12] arm64: vdso: replace gettimeofday.S with global vgettimeofday.C

2017-10-27 Thread Mark Salyzyn
Take an effort represented in the previous 8 patches to recode the arm64 vdso code from assembler to C previously submitted by Andrew Pinski , rework it for use in both arm and arm64, overlapping any optimizations for each architecture. apin...@cavium.com makes the following claims in the original

[ANNOUNCE] v4.13.10-rt3

2017-10-27 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.13.10-rt3 patch set. Changes since v4.13.10-rt2: - A dcache related live lock could occur. The writer could get preempted within the critical section and the reader would spin to see the update completed. This update would never complete i

[PATCH v3 09/12] arm: vdso: move vgettimeofday.c to lib/vdso/

2017-10-27 Thread Mark Salyzyn
Declare arch/arm/vdso/vgettimeofday.c to be a candidate for a global implementation of the vdso timer calls. The hope is that new architectures can take advantage of the current unification of arm and arm64 implementations. We urge future efforts to merge their implementations into the global vge

[PATCH v3 08/12] arm: vdso: disable profiling

2017-10-27 Thread Mark Salyzyn
Make sure kasan and ubsan profiling, and kcov instrumentation, is turned off for VDSO code. Signed-off-by: Mark Salyzyn Cc: James Morse Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Andy Lutomirski Cc: Dmitry Safonov Cc: John Stultz Cc: Mark Rutland Cc: Laura Abbott Cc: Kees C

[PATCH v3 06/12] arm: vdso: Add support for CLOCK_MONOTONIC_RAW

2017-10-27 Thread Mark Salyzyn
Add a case for CLOCK_MONOTONIC_RAW to match up with support that is available in arm64's vdso. Signed-off-by: Mark Salyzyn Cc: James Morse Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Andy Lutomirski Cc: Dmitry Safonov Cc: John Stultz Cc: Mark Rutland Cc: Laura Abbott Cc: Kee

[PATCH v3 07/12] arm: vdso: add support for clock_getres

2017-10-27 Thread Mark Salyzyn
Add clock_getres vdso support to match up with existing support in the arcm64's vdso. Signed-off-by: Mark Salyzyn Cc: James Morse Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Andy Lutomirski Cc: Dmitry Safonov Cc: John Stultz Cc: Mark Rutland Cc: Laura Abbott Cc: Kees Cook C

[PATCH v3 05/12] arm: vdso: do calculations outside reader loops

2017-10-27 Thread Mark Salyzyn
In variable timer reading loops, pick up just the values until all are synchronized, then outside of loop pick up cntvct and perform calculations to determine final offset, shifted and multiplied output value. This replaces get_ns with get_clock_shifted_nsec as cntvct reader. Signed-off-by: Mark

[PATCH v3 04/12] arm: vdso: enforce monotonic and realtime as inline

2017-10-27 Thread Mark Salyzyn
Ensure monotonic and realtime are inline, small price to pay for high volume common request. Signed-off-by: Mark Salyzyn Cc: James Morse Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Andy Lutomirski Cc: Dmitry Safonov Cc: John Stultz Cc: Mark Rutland Cc: Laura Abbott Cc: Kees

[PATCH v3 03/12] arm: vdso: inline assembler operations to compiler.h

2017-10-27 Thread Mark Salyzyn
Move compiler-specific code to a local compiler.h file. CONFIG_AEABI dependency check. System call fallback functions standardized into a DEFINE_FALLBACK macro. Accept that __arch_counter_get_cntvct() is the API for aarch64. Deal with unresolved references emitted by GCC. Optimize handling of fallb

[PATCH v3 01/12] arm: vdso: rename vdso_datapage variables

2017-10-27 Thread Mark Salyzyn
Rename seq_count to tb_seq_count. Rename tk_is_cntvct to use_syscall. Rename cs_mult to cs_mono_mult. All to align with the variables in the arm64 vdso datapage. Rework vdso_read_begin() and vdso_read_retry() functions to reflect modern access patterns for tb_seq_count field. Update copyright mess

[PATCH v3 02/12] arm: vdso: add include file defining __get_datapage()

2017-10-27 Thread Mark Salyzyn
Define the prototype for __get_datapage() in local datapage.h header. Rename all vdata variable that point to the datapage shortened to vd to relect a consistent and concise style. Make sure that all references to the datapage in vdso operations are readonly (const). Make sure datapage is first par

[PATCH v3 0/12] arm+arm64: vdso unification to lib/vdso/

2017-10-27 Thread Mark Salyzyn
Take an effort to recode the arm64 vdso code from assembler to C previously submitted by Andrew Pinski , rework it for use in both arm and arm64, overlapping any optimizations for each architecture. But instead of landing it in arm64, land the result into lib/vdso and unify both implementations to

Re: [PATCH 2/4] m68k/mac: Disentangle VIA and OSS initialization

2017-10-27 Thread Finn Thain
On Fri, 27 Oct 2017, Kars de Jong wrote: > 2017-10-27 4:45 GMT+02:00 Finn Thain : > > > macintosh_config->via_type is meaningless on Mac IIfx (i.e. the only > > model with OSS chip), so skip the via_type switch statement. > > > > Call oss_init() before via_init() because it is more important and

Re: Query regarding srcu_funnel_exp_start()

2017-10-27 Thread Paul E. McKenney
On Fri, Oct 27, 2017 at 10:15:04PM +0530, Neeraj Upadhyay wrote: > On 10/27/2017 05:56 PM, Paul E. McKenney wrote: > >On Fri, Oct 27, 2017 at 02:23:07PM +0530, Neeraj Upadhyay wrote: > >>Hi, > >> > >>One query regarding srcu_funnel_exp_start() function in > >>kernel/rcu/srcutree.c. > >> > >>static

[PATCH 2/2] perf tool: evsel: say which PMU Hardware event doesn't support sampling/overflow-interrupts

2017-10-27 Thread Kim Phillips
Help identify to the user the event with the unsupported sampling error. Also provide an alternative action. BEFORE: $ sudo ./oldperf record -e armv8_pmuv3/mem_access/,ccn/cycles/,armv8_pmuv3/l2d_cache/ true Error: PMU Hardware doesn't support sampling/overflow-interrupts. AFTER: $ sudo ./new

[PATCH 1/2] tools perf: c2c: fix spelling mistakes in browser help text

2017-10-27 Thread Kim Phillips
Togle -> Toggle, lenght -> length. Signed-off-by: Kim Phillips --- tools/perf/builtin-c2c.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index bb1ee22bd221..651782d98b5d 100644 --- a/tools/perf/builtin-c2c.c +++ b

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Alex Williamson
On Fri, 27 Oct 2017 21:50:43 + "Wang, Liang-min" wrote: > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Tuesday, October 24, 2017 6:07 PM > > To: Wang, Liang-min > > Cc: Kirsher, Jeffrey T ; k...@vger.kernel.org; > > linux-...@vger.kerne

[PATCH] phy: qcom-usb: Fix error handling in qcom_usb_hsic_phy_power_on()

2017-10-27 Thread Alexey Khoroshilov
There is a misprint in error handling of pinctrl_lookup_state(), where qcom_usb_hsic_phy_power_on() does return instead of goto err_ulpi. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/phy/qualcomm/phy-qcom-usb-hsic.c | 6 -- 1 f

[PATCH] USB: serial: io_edgeport: mark expected switch fall-throughs

2017-10-27 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case I replaced "...drop on through" comments with a proper "fall through" comment on its own line, which is what GCC is expecting to find. Signed-off-by: Gu

Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module

2017-10-27 Thread Ghazale Hosseinabadi
Hi, - Original Message - From: h...@dev.mellanox.co.il To: pa...@mellanox.com, tbogendoer...@suse.de, mat...@mellanox.com, leo...@mellanox.com, dledf...@redhat.com, linux-r...@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ghazale.hosseinab...@oracle.com Sent: Friday, October 27, 2017

Re: IB/mlx4: Use common error handling code in __mlx4_ib_create_flow()

2017-10-27 Thread Dennis Dalessandro
On 10/27/2017 4:53 PM, SF Markus Elfring wrote: This change adds nothing except code churn. I guess that the shown change possibility can reduce the object code size for the affected function. Do you care for such an detail? Regards, Markus You guess? Well perhaps you should find out for ce

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Wang, Liang-min
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Tuesday, October 24, 2017 6:07 PM > To: Wang, Liang-min > Cc: Kirsher, Jeffrey T ; k...@vger.kernel.org; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; Duyck, Alexa

Re: [Part2 PATCH v6 13/38] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-27 Thread Borislav Petkov
On Fri, Oct 27, 2017 at 04:28:31PM -0500, Brijesh Singh wrote: > This will fail because PEK_GEN require the platform in INIT state and > nobody has done the state transition from INIT -> UINIT. Huh, FW is in INIT state and PEK_GEN wants it to be in INIT state. Typo? Aaanyway, I don't like this wh

Re: [PATCH v9 25/29] x86/umip: Force a page fault when unable to copy emulated result to user

2017-10-27 Thread Ricardo Neri
On Thu, Oct 26, 2017 at 12:59:55AM -0700, Andy Lutomirski wrote: > On Tue, Oct 3, 2017 at 8:54 PM, Ricardo Neri > wrote: > > fixup_umip_exception() will be called from do_general_protection(). If the > > former returns false, the latter will issue a SIGSEGV with SEND_SIG_PRIV. > > However, when em

Re: A test of the philosophical impact of what I have been talking about.

2017-10-27 Thread Ywe Cærlyn
Den 10/27/2017 23:01, skrev Ywe Cærlyn: Philosophical requantization of a (atm) theoretical linux distribution: Excellent Ubuntu, is a Good Linux, with a Minimal Jitter Kernel. An Available Source Operating System. Philosophical Lead: Ywe Cærlyn. Desktop Flavour: Customized Gnome Finetuned for

Re: [RFC PATCH v10 2/7] of/irq: Adjust of_pci_irq parsing for multiple interrupts

2017-10-27 Thread Brian Norris
Hi Jeffy, On Fri, Oct 27, 2017 at 03:26:07PM +0800, Jeffy Chen wrote: > Currently we are considering the first irq as the PCI interrupt pin, > but a PCI device may have multiple interrupts(e.g. PCIe WAKE# pin). > > Only parse the PCI interrupt pin when the irq is unnamed or named as > "pci". > >

Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module

2017-10-27 Thread Hal Rosenstock
On 10/27/2017 4:33 PM, Parav Pandit wrote: > > >> -Original Message- >> From: Hal Rosenstock [mailto:h...@dev.mellanox.co.il] >> Sent: Friday, October 27, 2017 3:19 PM >> To: Parav Pandit ; Thomas Bogendoerfer >> ; Matan Barak ; Leon >> Romanovsky ; Doug Ledford ; >> linux-r...@vger.kerne

  1   2   3   4   5   6   7   >