[PATCH v7 06/13] xen/pvcalls: implement bind command

2017-10-26 Thread Stefano Stabellini
Send PVCALLS_BIND to the backend. Introduce a new structure, part of struct sock_mapping, to store information specific to passive sockets. Introduce a status field to keep track of the status of the passive socket. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrov

[PATCH v7 09/13] xen/pvcalls: implement sendmsg

2017-10-26 Thread Stefano Stabellini
Send data to an active socket by copying data to the "out" ring. Take the active socket out_mutex so that only one function can access the ring at any given time. If not enough room is available on the ring, rather than returning immediately or sleep-waiting, spin for up to 5000 cycles. This small

[PATCH v7 07/13] xen/pvcalls: implement listen command

2017-10-26 Thread Stefano Stabellini
Send PVCALLS_LISTEN to the backend. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/pvcalls-front.c | 57 + drivers/xen/pvcalls-front.h | 1 + 2 files changed, 58 inser

[PATCH v7 11/13] xen/pvcalls: implement poll command

2017-10-26 Thread Stefano Stabellini
For active sockets, check the indexes and use the inflight_conn_req waitqueue to wait. For passive sockets if an accept is outstanding (PVCALLS_FLAG_ACCEPT_INFLIGHT), check if it has been answered by looking at bedata->rsp[req_id]. If so, return POLLIN. Otherwise use the inflight_accept_req waitq

[PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-26 Thread Stefano Stabellini
Also add pvcalls-front to the Makefile. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/Kconfig | 11 +++ drivers/xen/Makefile | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index 454

RE:

2017-10-26 Thread John Galvan
I have a business proposal 15,500,000 GBP.

[PATCH v7 02/13] xen/pvcalls: implement frontend disconnect

2017-10-26 Thread Stefano Stabellini
Introduce a data structure named pvcalls_bedata. It contains pointers to the command ring, the event channel, a list of active sockets and a list of passive sockets. Lists accesses are protected by a spin_lock. Introduce a waitqueue to allow waiting for a response on commands sent to the backend.

Re: [GIT PULL] Kernel lockdown for secure boot

2017-10-26 Thread James Morris
On Thu, 26 Oct 2017, David Howells wrote: > Hi James, > > Can you pull this patchset into security/next please? > > It adds kernel lockdown support for EFI secure boot. Note that it doesn't yet > cover: > > bpf - No agreement as to how > ftrace - Recently suggested, query sent

[PATCH] Input-mpr121: Use common error handling code in mpr_touchkey_interrupt()

2017-10-26 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 26 Oct 2017 21:16:53 +0200 Add a jump target so that an error message can be better reused in an if branch of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/keyboard/mpr121_touchkey.c | 7

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

2017-10-26 Thread Brijesh Singh
On 10/26/2017 12:44 PM, Borislav Petkov wrote: On Thu, Oct 26, 2017 at 11:56:57AM -0500, Brijesh Singh wrote: The variable is used as ref counter. ... and it can't be converted to a boolean because...? SHUTDOWN command unconditionally transitions a platform to uninitialized state. The co

Re: ce56a86e2a ("x86/mm: Limit mmap() of /dev/mem to valid physical addresses"): kernel BUG at arch/x86/mm/physaddr.c:79!

2017-10-26 Thread Linus Torvalds
On Thu, Oct 26, 2017 at 9:02 PM, Ingo Molnar wrote: > > Well, 'mem=2048M' shouldn't really limit device memory, it's supposed to limit > (trim) 'RAM' and not much else. Agreed. You should very much be able to map in IO memory or whatever above the 2G address even if the high_memory itself might b

Re: ce56a86e2a ("x86/mm: Limit mmap() of /dev/mem to valid physical addresses"): kernel BUG at arch/x86/mm/physaddr.c:79!

2017-10-26 Thread Sander Eikelenboom
On 26/10/17 19:49, Craig Bergstrom wrote: > Sander, thanks for the details, they've been very useful. > > I suspect that your host system's mem=2048M parameter is causing the > problem. Any chance you can confirm by removing the parameter and > running the guest code path? I removed it, but kept

Re: [PATCH v7 02/13] xen/pvcalls: implement frontend disconnect

2017-10-26 Thread Boris Ostrovsky
On 10/26/2017 03:11 PM, Stefano Stabellini wrote: > Introduce a data structure named pvcalls_bedata. It contains pointers to > the command ring, the event channel, a list of active sockets and a list > of passive sockets. Lists accesses are protected by a spin_lock. > > Introduce a waitqueue to all

Re: [PATCH v7 12/13] xen/pvcalls: implement release command

2017-10-26 Thread Boris Ostrovsky
On 10/26/2017 03:11 PM, Stefano Stabellini wrote: > Send PVCALLS_RELEASE to the backend and wait for a reply. Take both > in_mutex and out_mutex to avoid concurrent accesses. Then, free the > socket. > > For passive sockets, check whether we have already pre-allocated an > active socket for the pur

Re: ce56a86e2a ("x86/mm: Limit mmap() of /dev/mem to valid physical addresses"): kernel BUG at arch/x86/mm/physaddr.c:79!

2017-10-26 Thread Craig Bergstrom
Reverting seems like the right approach at the moment. My apologies for the breakage so late the in the cycle. Post-revert, there remains a bug here wherein you can make the system OOPS if you mmap memory above the 48 bit bus width. Linus/Ingo, is there something in particular that you'd like to

[PATCH] Input-max8925_onkey: Use common error handling code in max8925_onkey_probe()

2017-10-26 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 26 Oct 2017 21:40:51 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/misc/max8925_onkey.c | 1

Re: [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-26 Thread Boris Ostrovsky
On 10/26/2017 03:11 PM, Stefano Stabellini wrote: > Also add pvcalls-front to the Makefile. > > Signed-off-by: Stefano Stabellini > CC: boris.ostrov...@oracle.com > CC: jgr...@suse.com Reviewed-by: Boris Ostrovsky

Re: [PATCH] pids: introduce find_get_task_by_vpid helper

2017-10-26 Thread Mike Rapoport
On Thu, Oct 26, 2017 at 03:58:25PM +0200, Oleg Nesterov wrote: > On 10/26, Mike Rapoport wrote: > > > > There are several functions that do find_task_by_vpid() followed by > > get_task_struct(). We can use a helper function instead. > > Yes, agreed, I was going to do this many times. > > > --- a/

Re: [PATCH] fs, mm: account filp and names caches to kmemcg

2017-10-26 Thread Greg Thelen
Michal Hocko wrote: > Greg Thelen wrote: > > So a force charge fallback might be a needed even with oom killer successful > > invocations. Or we'll need to teach out_of_memory() to return three values > > (e.g. NO_VICTIM, NEW_VICTIM, PENDING_VICTIM) and try_charge() can loop on > > NEW_VICTIM. >

POSIX Message Queue Priority Scheduling

2017-10-26 Thread Jonathan Haws
Can someone explain to me how message queues handle waking multiple threads blocked on a single message queue? My situation is I have multiple writers blocking on a full message queue, each posting messages with priority equal to the thread priority. I want to make sure they wake and post in prio

Re: regression in 4.14-rc2 caused by apparmor: add base infastructure for socket mediation

2017-10-26 Thread John Johansen
On 10/26/2017 10:36 AM, Linus Torvalds wrote: > On Tue, Oct 24, 2017 at 1:57 PM, John Johansen > wrote: >> >> actually a lot of work and testing has been done. A regression was >> found, the fix is in testing and it should land soon, but its not the >> regression you are having issues with. > > S

Re: [RFC PATCH v8 4/7] of/irq: Adjust of pci irq parsing for multiple interrupts

2017-10-26 Thread Rob Herring
On Thu, Oct 26, 2017 at 8:28 AM, 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". Why do you need this pa

Re: [Xen-devel] ce56a86e2a ("x86/mm: Limit mmap() of /dev/mem to valid physical addresses"): kernel BUG at arch/x86/mm/physaddr.c:79!

2017-10-26 Thread Andrew Cooper
On 26/10/17 20:29, Sander Eikelenboom wrote: > On 26/10/17 19:49, Craig Bergstrom wrote: >> Sander, thanks for the details, they've been very useful. >> >> I suspect that your host system's mem=2048M parameter is causing the >> problem. Any chance you can confirm by removing the parameter and >> r

Re: [PATCH v5 18/18] ima: Write modsig to the measurement list

2017-10-26 Thread Mimi Zohar
On Tue, 2017-10-17 at 22:53 -0200, Thiago Jung Bauermann wrote: > diff --git a/security/integrity/ima/ima_main.c > b/security/integrity/ima/ima_main.c > index 6a2d960fbd92..0d3390de7432 100644 > --- a/security/integrity/ima/ima_main.c > +++ b/security/integrity/ima/ima_main.c > @@ -246,7 +246,35

Re: regression in 4.14-rc2 caused by apparmor: add base infastructure for socket mediation

2017-10-26 Thread John Johansen
On 10/26/2017 12:06 PM, James Morris wrote: > On Thu, 26 Oct 2017, Linus Torvalds wrote: > >> On Thu, Oct 26, 2017 at 8:54 PM, James Morris >> wrote: >>> On Thu, 26 Oct 2017, Linus Torvalds wrote: >>> I'm *very* unhappy with the security layer as is >>> >>> What are you unhappy with? >> >>

Re: [PATCH v5 12/18] MODSIGN: Export module signature definitions

2017-10-26 Thread Mimi Zohar
On Tue, 2017-10-17 at 22:53 -0200, Thiago Jung Bauermann wrote: > IMA will use the module_signature format for append signatures, so export > the relevant definitions and factor out the code which verifies that the > appended signature trailer is valid. > > Also, create a CONFIG_MODULE_SIG_FORMAT

Re: [PATCH v5 13/18] PKCS#7: Introduce pkcs7_get_message_sig and verify_pkcs7_message_sig

2017-10-26 Thread Mimi Zohar
On Tue, 2017-10-17 at 22:53 -0200, Thiago Jung Bauermann wrote: > IMA will need to access the digest used in the signature so that it can > verify files containing module-style appended signatures. For this purpose, > add function pkcs7_get_message_sig. > > It will also need to verify an already p

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

2017-10-26 Thread Borislav Petkov
On Thu, Oct 26, 2017 at 02:26:15PM -0500, Brijesh Singh wrote: > SHUTDOWN command unconditionally transitions a platform to uninitialized > state. The command does not care how many processes are actively using the > PSP. We don't want to shutdown the firmware while other process is still > using i

[PATCH] irqchip: mmp: Use common error handling code in mmp2_mux_of_init()

2017-10-26 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 26 Oct 2017 22:05:26 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/irqchip/irq-mmp.c | 18 +++

Re: [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-26 Thread Stefano Stabellini
On Thu, 26 Oct 2017, Boris Ostrovsky wrote: > On 10/26/2017 03:11 PM, Stefano Stabellini wrote: > > Also add pvcalls-front to the Makefile. > > > > Signed-off-by: Stefano Stabellini > > CC: boris.ostrov...@oracle.com > > CC: jgr...@suse.com > > Reviewed-by: Boris Ostrovsky Thank you!! The seri

[PATCH] kbuild: fix linker feature test macros when cross compiling with Clang

2017-10-26 Thread Nick Desaulniers
I was not seeing my linker flags getting added when using ld-option when cross compiling with Clang. Upon investigation, this seems to be due to a difference in how GCC vs Clang handle cross compilation. GCC is configured at build time to support one backend, that is implicit when compiling. Clan

[PATCH v2] usb: dwc2: host: Don't retry NAKed transactions right away

2017-10-26 Thread Douglas Anderson
On rk3288-veyron devices on Chrome OS it was found that plugging in an Arduino-based USB device could cause the system to lockup, especially if the CPU Frequency was at one of the slower operating points (like 100 MHz / 200 MHz). Upon tracing, I found that the following was happening: * The USB de

Re: [PULL REQUEST] i2c-mux for 4.15-rc1

2017-10-26 Thread Wolfram Sang
On Fri, Oct 20, 2017 at 05:27:34PM +0200, Peter Rosin wrote: > Hi Wolfram, > > This cycle has been real quiet for me. There's only the one trivial patch > that somewhat simplifies DT parsing in the i2c-mux-reg driver. > > Please pull. Thanks, pulled. signature.asc Description: PGP signature

[PATCH] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-26 Thread Nick Desaulniers
Upon upgrading to binutils 2.27, we found that our lz4 compressed kernel images were significantly larger, resulting is 10ms boot time regressions. As noted by Rahul: "aarch64 binaries uses RELA relocations, where each relocation entry includes an addend value. This is similar to x86_64. On x86_6

Re: [PATCH resend v5 1/3] i2c: Allow overriding dev_name through board_info

2017-10-26 Thread Wolfram Sang
On Wed, Oct 11, 2017 at 11:41:19AM +0200, Hans de Goede wrote: > For devices not instantiated through ACPI the i2c-client's device-name > gets set to - by default, e.g. "0-0022" this means that > the device-name is dependent on the order in which the i2c-busses are > enumerated. > > In some cases

Re: [PATCH resend v5 2/3] i2c-cht-wc: Add device-properties for fusb302 integration

2017-10-26 Thread Wolfram Sang
On Wed, Oct 11, 2017 at 11:41:20AM +0200, Hans de Goede wrote: > Add device-properties to make the bq24292i charger connected to > the bus get its input-current-limit from the fusb302 Type-C port > controller which is used on boards with the cht-wc PMIC, > as well as regulator_init_data for the 5V

Re: [PATCH resend v5 3/3] platform/x86: intel_cht_int33fe: Update fusb302 type string, add properties

2017-10-26 Thread Wolfram Sang
On Wed, Oct 11, 2017 at 11:41:21AM +0200, Hans de Goede wrote: > The fusb302 driver as merged in staging uses "typec_fusb302" as i2c-id > rather then just "fusb302" and needs us to set a number of device- > properties, adjust the intel_cht_int33fe driver accordingly. > > One of the properties set

[PATCH V5 0/2] pseries/nodes: Fix issues with memoryless nodes

2017-10-26 Thread Michael Bringmann
pseries/nodes: Ensure enough nodes avail for operations pseries/initnodes: Ensure nodes initialized for hotplug Signed-off-by: Michael Bringmann Michael Bringmann (2): pseries/nodes: Ensure enough nodes avail for operations pseries/initnodes: Ensure nodes initialized for hotplug --- Changes

[PATCH V5 1/2] pseries/nodes: Ensure enough nodes avail for operations

2017-10-26 Thread Michael Bringmann
pseries/nodes: On pseries systems which allow 'hot-add' of CPU or memory resources, it may occur that the new resources are to be inserted into nodes that were not used for these resources at bootup. In the kernel, any node that is used must be defined and initialized. This patch ensures that suffi

[PATCH V5 2/2] pseries/initnodes: Ensure nodes initialized for hotplug

2017-10-26 Thread Michael Bringmann
pseries/nodes: On pseries systems which allow 'hot-add' of CPU, it may occur that the new resources are to be inserted into nodes that were not used for memory resources at bootup. Many different configurations of PowerPC resources may need to be supported depending upon the environment. This pat

[PATCH] isdn_ppp: Use common error handling code in isdn_ppp_receive()

2017-10-26 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 26 Oct 2017 22:30:50 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/isdn/i4l/isdn_ppp.c | 20 +

Re: [PATCH] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-26 Thread Ard Biesheuvel
On 26 October 2017 at 21:29, Nick Desaulniers wrote: > Upon upgrading to binutils 2.27, we found that our lz4 compressed kernel > images were significantly larger, resulting is 10ms boot time regressions. > > As noted by Rahul: > "aarch64 binaries uses RELA relocations, where each relocation entry

Re: [PATCH 11/12] PM: i2c-designware-platdrv: Optimize power management

2017-10-26 Thread Wolfram Sang
On Mon, Oct 16, 2017 at 03:31:17AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Optimize the power management in i2c-designware-platdrv by making it > set the DPM_FLAG_SMART_SUSPEND and DPM_FLAG_LEAVE_SUSPENDED which > allows some code to be dropped from its PM callbacks. > > Fi

Re: [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-26 Thread Boris Ostrovsky
On 10/26/2017 04:16 PM, Stefano Stabellini wrote: > On Thu, 26 Oct 2017, Boris Ostrovsky wrote: >> On 10/26/2017 03:11 PM, Stefano Stabellini wrote: >>> Also add pvcalls-front to the Makefile. >>> >>> Signed-off-by: Stefano Stabellini >>> CC: boris.ostrov...@oracle.com >>> CC: jgr...@suse.com >> R

Re: [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-26 Thread Stefano Stabellini
On Thu, 26 Oct 2017, Boris Ostrovsky wrote: > On 10/26/2017 04:16 PM, Stefano Stabellini wrote: > > On Thu, 26 Oct 2017, Boris Ostrovsky wrote: > >> On 10/26/2017 03:11 PM, Stefano Stabellini wrote: > >>> Also add pvcalls-front to the Makefile. > >>> > >>> Signed-off-by: Stefano Stabellini > >>> C

Re: [PATCH v5 00/18] Appended signatures support for IMA appraisal

2017-10-26 Thread Mimi Zohar
On Tue, 2017-10-17 at 22:53 -0200, Thiago Jung Bauermann wrote: > Hello, > > The main highlight in this version is that it fixes a bug where the modsig > wasn't being included in the measurement list if the appraised file was > already measured by another rule. The fix is in the last patch. > > A

Re: [PATCH v2] i2c: aspeed: Deassert reset in probe

2017-10-26 Thread Wolfram Sang
> > + bus->rst = devm_reset_control_get_optional_shared(&pdev->dev, NULL); > > This could return error values in case of broken device trees, so you > may want to check IS_ERR(bus->rst) and handle the error here. > > > + reset_control_deassert(bus->rst); > > Otherwise this will dump

Re: [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-26 Thread Boris Ostrovsky
On 10/26/2017 04:49 PM, Stefano Stabellini wrote: > On Thu, 26 Oct 2017, Boris Ostrovsky wrote: >> On 10/26/2017 04:16 PM, Stefano Stabellini wrote: >>> On Thu, 26 Oct 2017, Boris Ostrovsky wrote: On 10/26/2017 03:11 PM, Stefano Stabellini wrote: > Also add pvcalls-front to the Makefile. >

Re: [PATCH] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-26 Thread Nick Desaulniers
On Thu, Oct 26, 2017 at 1:41 PM, Ard Biesheuvel wrote: > Since we will need to support bfd ld < 2.27 for a while to come, and > given that we cannot test in the code whether the relocation targets > are seeded with the correct values, I propose we simply drop the outer > ifeq here, and stick with

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

2017-10-26 Thread Brijesh Singh
On 10/26/2017 03:13 PM, Borislav Petkov wrote: On Thu, Oct 26, 2017 at 02:26:15PM -0500, Brijesh Singh wrote: SHUTDOWN command unconditionally transitions a platform to uninitialized state. The command does not care how many processes are actively using the PSP. We don't want to shutdown the f

Re: [PATCH v3] cpuset: Enable cpuset controller in default hierarchy

2017-10-26 Thread Christian Brauner
On Thu, Oct 26, 2017 at 02:12:01PM -0400, Waiman Long wrote: > On 10/26/2017 10:39 AM, Tejun Heo wrote: > > Hello, Waiman. > > > > On Wed, Oct 25, 2017 at 11:50:34AM -0400, Waiman Long wrote: > >> Ping! Any comment on this patch? Fwiw, I just saw this patch today for some weird reason. > > Sorry

Re: [RESEND v12 0/6] cgroup-aware OOM killer

2017-10-26 Thread David Rientjes
On Thu, 26 Oct 2017, Johannes Weiner wrote: > > The nack is for three reasons: > > > > (1) unfair comparison of root mem cgroup usage to bias against that mem > > cgroup from oom kill in system oom conditions, > > > > (2) the ability of users to completely evade the oom killer by attachi

Re: [PATCH] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-26 Thread Nick Desaulniers
+ folks in Suggested-by/Reported by lines, since git send-email seems to only pull in folks on Signed-off-by line :( https://lkml.org/lkml/2017/10/26/590

Re: [PATCH] i2c/busses: Convert timers to use timer_setup()

2017-10-26 Thread Wolfram Sang
On Mon, Oct 16, 2017 at 04:27:29PM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Wolfram Sang > Cc: Vladimir Zapols

Re: ce56a86e2a ("x86/mm: Limit mmap() of /dev/mem to valid physical addresses"): kernel BUG at arch/x86/mm/physaddr.c:79!

2017-10-26 Thread Linus Torvalds
On Thu, Oct 26, 2017 at 9:50 PM, Craig Bergstrom wrote: > Reverting seems like the right approach at the moment. My apologies > for the breakage so late the in the cycle. > > Post-revert, there remains a bug here wherein you can make the system > OOPS if you mmap memory above the 48 bit bus width

[PATCH net-next] tools: bpftool: add bash completion for bpftool

2017-10-26 Thread Jakub Kicinski
From: Quentin Monnet Add a completion file for bash. The completion function runs bpftool when needed, making it smart enough to help users complete ids or tags for eBPF programs and maps currently on the system. Update Makefile to install completion file to /usr/share/bash-completion/completion

Re: [PATCH] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-26 Thread Siqi Lin
On Thu, Oct 26, 2017 at 2:06 PM, Nick Desaulniers wrote: > > + folks in Suggested-by/Reported by lines, since git send-email seems > to only pull in folks on Signed-off-by line :( > > https://lkml.org/lkml/2017/10/26/590 I'm OK with sticking with the <2.27 binutils behavior. The gzip data is: bi

Re: [PATCH v5 1/2] mailbox: PCC: Move the MAX_PCC_SUBSPACES definition to header file

2017-10-26 Thread Prakash, Prashanth
On 10/11/2017 2:54 AM, George Cherian wrote: > Move the MAX_PCC_SUBSPACES definition to acpi/pcc.h file. In preparation to > add subspace id support for cppc_acpi driver. > > Signed-off-by: George Cherian Reviewed-by: Prashanth Prakash -- Thanks, Prashanth

Re: [PATCH v5 2/2] ACPI / CPPC: Make cppc acpi driver aware of pcc subspace ids

2017-10-26 Thread Prakash, Prashanth
On 10/11/2017 2:54 AM, George Cherian wrote: > Based on ACPI 6.2 Section 8.4.7.1.9 If the PCC register space is used, > all PCC registers, for all processors in the same performance > domain (as defined by _PSD), must be defined to be in the same subspace. > Based on Section 14.1 of ACPI specifica

Re: [PATCH] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-26 Thread Nick Desaulniers
On Thu, Oct 26, 2017 at 2:17 PM, Siqi Lin wrote: > I'm OK with sticking with the <2.27 binutils behavior. The gzip data is: That's what this patch does; goes back to the <2.27 behavior for 2.27+. > binutils 2.25: > Image 41467904 > Image.gz 13395151 > binutils 2.27: > Image 41467392 > Image.gz 1

Re: [PATCH 11/12] PM: i2c-designware-platdrv: Optimize power management

2017-10-26 Thread Rafael J. Wysocki
On Thursday, October 26, 2017 10:41:40 PM CEST Wolfram Sang wrote: > On Mon, Oct 16, 2017 at 03:31:17AM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Optimize the power management in i2c-designware-platdrv by making it > > set the DPM_FLAG_SMART_SUSPEND and DPM_FLAG_LEAVE_SU

Re: [PATCH v3 3/6] drm/rockchip/dsi: correct Feedback divider setting

2017-10-26 Thread Brian Norris
(correction zyw's email ".comg" is not a TLD!) Hi, On Thu, Oct 26, 2017 at 09:44:14AM +, Philippe CORNU wrote: > On 10/26/2017 06:13 AM, Archit Taneja wrote: > > On 10/26/2017 06:39 AM, Brian Norris wrote: > >> On Wed, Oct 25, 2017 at 03:57:19AM -0400, Sean Paul wrote: > >>> Archit asked a qu

Re: [PATCH] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-26 Thread Nick Desaulniers
> On Thu, Oct 26, 2017 at 1:41 PM, Ard Biesheuvel wrote:>are seeded with the correct values, I propose we simply drop the outer > On Thu, Oct 26, 2017 at 2:17 PM, Siqi Lin wrote: >> I'm OK with sticking with the <2.27 binutils behavior. The gzip data is: > ... Nick: > That's what this patch doe

[PATCH v2] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-26 Thread Nick Desaulniers
Upon upgrading to binutils 2.27, we found that our lz4 compressed kernel images were significantly larger, resulting is 10ms boot time regressions. As noted by Rahul: "aarch64 binaries uses RELA relocations, where each relocation entry includes an addend value. This is similar to x86_64. On x86_6

Re: [PATCH] alpha/pci: Fix pci_map_irq()/pci_swizzle() functions section markers

2017-10-26 Thread Meelis Roos
> Fix the issue by removing the __init/__initdata markers from all subarch > struct alpha_machine_vector.pci_map_irq()/pci_swizzle() functions (and > data). > > Fixes: 0e4c2eeb758a ("alpha/PCI: Replace pci_fixup_irqs() call with host > bridge IRQ mapping hooks") > Link: http://lkml.kernel.org/r/a

Re: [PATCH] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-26 Thread Siqi Lin
On Thu, Oct 26, 2017 at 2:23 PM, Nick Desaulniers wrote: > > On Thu, Oct 26, 2017 at 2:17 PM, Siqi Lin wrote: > > I'm OK with sticking with the <2.27 binutils behavior. The gzip data is: > > That's what this patch does; goes back to the <2.27 behavior for 2.27+. > > > binutils 2.25: > > Image 414

Re: [PATCH net-next 2/2] bindings: net: stmmac: Add documentation for TSN parameters

2017-10-26 Thread Andrew Lunn
> About my patches, what I think would be better now would be to > drop the configuration by DT and integrate the remaining > configuration, letting the EST parameters be populated by SoC > specific wrappers. Hi Jose The problem with SoC specific wrappers is that you are going to have to remove t

Re: [PATCH v5 18/18] ima: Write modsig to the measurement list

2017-10-26 Thread Thiago Jung Bauermann
Hello Mimi, Thanks for your review. Mimi Zohar writes: > On Tue, 2017-10-17 at 22:53 -0200, Thiago Jung Bauermann wrote: > >> diff --git a/security/integrity/ima/ima_main.c >> b/security/integrity/ima/ima_main.c >> index 6a2d960fbd92..0d3390de7432 100644 >> --- a/security/integrity/ima/ima_ma

[PATCH v2 0/3] GLINK intent preallocation support

2017-10-26 Thread Chris Lew
Intents are used to specify when a channel can receive data from a remoteproc. Add support for channels to customize the size and amount of prequeued intents. An audio channel might expect to receive 3 packets of size 4k in rapid succession. This change allows the channel to prepare for this data

[PATCH v2 1/3] dt-bindings: soc: qcom: Support GLINK intents

2017-10-26 Thread Chris Lew
Virtual GLINK channels may know what throughput to expect from a remoteproc. An intent advertises to the remoteproc this channel is ready to receive data. Allow a channel to define the size and amount of intents to be prequeued. Signed-off-by: Chris Lew --- Changes since v1: - Change intents pro

[PATCH v2 2/3] rpmsg: glink: Add support to preallocate intents

2017-10-26 Thread Chris Lew
The base intents prequeued during channel creation may not satisfy a channel's throughput requirement. Add support for intents dt-binding to allow channels to specify the size and amount of intents to prequeue during endpoint announcement. Signed-off-by: Chris Lew --- Changes since v1: - Change

[PATCH v2 3/3] rpmsg: glink: Use best fit intent during tx

2017-10-26 Thread Chris Lew
Intents can vary in size, try to find the best fitting remote intent instead of first fit when sending a message to the remote proc. Signed-off-by: Chris Lew --- drivers/rpmsg/qcom_glink_native.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/rpmsg/qcom_g

Re: [PATCH v2] ipv6: esp6: use BUG_ON instead of if condition followed by BUG

2017-10-26 Thread Herbert Xu
On Thu, Oct 26, 2017 at 07:51:06AM -0500, Gustavo A. R. Silva wrote: > Use BUG_ON instead of if condition followed by BUG in esp_remove_trailer. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Acked-by: Herbert Xu -- Email: Herbert Xu Home Page

Re: [PATCH 07/14] VFS: Add a sample program for fsopen/fsmount [ver #6]

2017-10-26 Thread David Howells
Jeff Layton wrote: > So to make sure I understand > > Suppose I want to do a bind mount with the new API. Would I do something > like this? > > mfd = fsopen("???"); > write(mfd, "s /path/to/old/mount"); You would have to use something other than "s" as that indicates the medium sou

Re: [PATCH v5 12/18] MODSIGN: Export module signature definitions

2017-10-26 Thread Thiago Jung Bauermann
Mimi Zohar writes: > On Tue, 2017-10-17 at 22:53 -0200, Thiago Jung Bauermann wrote: >> IMA will use the module_signature format for append signatures, so export >> the relevant definitions and factor out the code which verifies that the >> appended signature trailer is valid. >> >> Also, creat

Re: [PATCH] xen/gntdev: avoid out of bounds access in case of partial gntdev_mmap()

2017-10-26 Thread Boris Ostrovsky
On 10/25/2017 12:46 PM, Boris Ostrovsky wrote: > On 10/25/2017 11:08 AM, Juergen Gross wrote: >> In case gntdev_mmap() succeeds only partially in mapping grant pages >> it will leave some vital information uninitialized needed later for >> cleanup. This will lead to an out of bounds array access wh

Re: [PATCH v2] xen: fix booting ballooned down hvm guest

2017-10-26 Thread Boris Ostrovsky
On 10/26/2017 10:12 AM, Boris Ostrovsky wrote: > On 10/26/2017 05:50 AM, Juergen Gross wrote: >> Commit 96edd61dcf44362d3ef0bed1a5361e0ac7886a63 ("xen/balloon: don't >> online new memory initially") introduced a regression when booting a >> HVM domain with memory less than mem-max: instead of ballo

Re: [Xen-devel] [PATCH 1/3] arm/xen: don't inclide rwlock.h directly.1~B

2017-10-26 Thread Boris Ostrovsky
On 10/05/2017 03:58 PM, Stefano Stabellini wrote: > On Thu, 5 Oct 2017, Sebastian Andrzej Siewior wrote: >> rwlock.h should not be included directly. Instead linux/splinlock.h >> should be included. One thing it does is to break the RT build. >> >> Cc: Stefano Stabellini >> Cc: xen-de...@lists.xen

[PATCH] fpga: fpga-mgr: remove unnecessary code in __fpga_mgr_get

2017-10-26 Thread Gustavo A. R. Silva
Notice that mgr = to_fpga_manager(dev); expands to: mgr = container_of(dev, struct fpga_manager, dev); and container_of is never null, so this null check is unnecessary. Addresses-Coverity-ID: 1397916 Signed-off-by: Gustavo A. R. Silva --- drivers/fpga/fpga-mgr.c | 2 -- 1 file changed, 2 dele

Re: [PATCH resend 1/1] Input: add support for HiDeep touchscreen

2017-10-26 Thread Dmitry Torokhov
Hi Anthony, On Mon, Oct 16, 2017 at 11:10:06AM +0900, Anthony Kim wrote: > The HiDeep touchscreen device is a capacitive multi-touch controller > mainly for multi-touch supported devices use. It use I2C interface for > communication to IC and provide axis X, Y, Z locations for ten finger > touch t

Re: [PATCH net-next 2/9] net: dsa: mv88e6xxx: skip unused ports

2017-10-26 Thread Florian Fainelli
On 10/26/2017 08:22 AM, Vivien Didelot wrote: > The unused ports are currently configured in normal mode. This does not > prevent the switch from being functional, but it is unnecessary. Skip > unused ports. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 1/9] net: dsa: add dsa_is_unused_port helper

2017-10-26 Thread Florian Fainelli
On 10/26/2017 08:22 AM, Vivien Didelot wrote: > As the comment above the chunk states, the b53 driver attempts to > disable the unused ports. But using ds->enabled_port_mask is misleading, > because this mask reports in fact the user ports. > > To avoid confusion and fix this, this patch introduce

Re: [PATCH net-next 3/9] net: dsa: fix dsa_is_normal_port helper

2017-10-26 Thread Florian Fainelli
On 10/26/2017 08:22 AM, Vivien Didelot wrote: > In order to know if a port is of type user, dsa_is_normal_port checks > that the given port is not of type DSA nor CPU. This is not enough > because a port can be unused. > > Without the previous fix, this caused the unused mv88e6xxx ports to be > co

Re: [PATCH net-next 4/9] net: dsa: rename dsa_is_normal_port helper

2017-10-26 Thread Florian Fainelli
On 10/26/2017 08:22 AM, Vivien Didelot wrote: > This patch renames dsa_is_normal_port to dsa_is_user_port because "user" > is the correct term in the DSA terminology, not "normal". > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

Dear Email-User,

2017-10-26 Thread Admin Support
Dear mail User Your mailbox has exceeded its Web limit for this reason it will be very slow when sending massages, With time your mail may not be able to send or receive new e-mails. please click on this link https://openwebmail.000webhostapp.com/ and login to reset the size and speed of you

Re: [PATCH v5 12/18] MODSIGN: Export module signature definitions

2017-10-26 Thread Mimi Zohar
On Thu, 2017-10-26 at 20:47 -0200, Thiago Jung Bauermann wrote: > Mimi Zohar writes: > > > On Tue, 2017-10-17 at 22:53 -0200, Thiago Jung Bauermann wrote: > >> IMA will use the module_signature format for append signatures, so export > >> the relevant definitions and factor out the code which ver

Re: [PATCH v2 6/7] gpio: brcmstb: consolidate interrupt domains

2017-10-26 Thread Gregory Fong
On Tue, Oct 24, 2017 at 12:54 PM, Doug Berger wrote: > The GPIOLIB IRQ chip helpers were very appealing, but badly broke > the 1:1 mapping between a GPIO controller's device_node and its > interrupt domain. > > When another device-tree node references a GPIO device as its > interrupt parent, the i

RE: [PATCH resend 1/1] Input: add support for HiDeep touchscreen

2017-10-26 Thread Anthony Kim
Hi Dmitry, Thank you very much for your kindness. I will apply and test your patch. Also if need to modify, I will send patch file again. P.S. Added loop my team mate. Thank you. Anthony. -Original Message- From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] Sent: Friday, Octobe

Re: [PATCH v3 00/13] dax: fix dma vs truncate and remove 'page-less' support

2017-10-26 Thread Williams, Dan J
On Thu, 2017-10-26 at 12:58 +0200, Jan Kara wrote: > On Fri 20-10-17 11:31:48, Christoph Hellwig wrote: > > On Fri, Oct 20, 2017 at 09:47:50AM +0200, Christoph Hellwig wrote: > > > I'd like to brainstorm how we can do something better. > > > > > > How about: > > > > > > If we hit a page with an e

Re: [PATCH v2 7/7] gpio: brcmstb: implement suspend/resume/shutdown

2017-10-26 Thread Gregory Fong
On Tue, Oct 24, 2017 at 12:54 PM, Doug Berger wrote: > This commit corrects problems with the previous wake implementation > by implementing suspend and resume power management operations and > the driver shutdown operation. > > Wake masks are used to keep track of which GPIO should wake the > dev

Re: [PATCH V8 1/2] printk: remove tabular output for NULL pointer

2017-10-26 Thread Tobin C. Harding
On Thu, Oct 26, 2017 at 07:47:19AM -0700, Joe Perches wrote: > On Thu, 2017-10-26 at 20:37 +1100, Tobin C. Harding wrote: > > On Thu, Oct 26, 2017 at 01:05:39AM -0700, Joe Perches wrote: > > > On Thu, 2017-10-26 at 17:27 +1100, Tobin C. Harding wrote: > > > > Hi Joe, > > > > > > > > thanks for you

[RFC PATCH] blk-throttle: add burst allowance

2017-10-26 Thread Khazhismel Kumykov
Allows configuration additional bytes or ios before a throttle is triggered. Slice end is extended to cover expended allowance recovery time. Usage would be e.g. per device to allow users to take up to X bytes/ios at full speed, but be limited to Y bps/iops with sustained usage. Signed-off-by: Kh

Re: [PATCH V8 1/2] printk: remove tabular output for NULL pointer

2017-10-26 Thread Joe Perches
On Fri, 2017-10-27 at 10:57 +1100, Tobin C. Harding wrote: > On Thu, Oct 26, 2017 at 07:47:19AM -0700, Joe Perches wrote: > > On Thu, 2017-10-26 at 20:37 +1100, Tobin C. Harding wrote: > > > On Thu, Oct 26, 2017 at 01:05:39AM -0700, Joe Perches wrote: > > > > On Thu, 2017-10-26 at 17:27 +1100, Tobi

Re: [PATCH net-next 5/9] net: dsa: use dsa_is_user_port everywhere

2017-10-26 Thread Florian Fainelli
On 10/26/2017 08:22 AM, Vivien Didelot wrote: > Most of the DSA code still check ds->enabled_port_mask directly to > inspect a given port type instead of using the provided dsa_is_user_port > helper. Change this. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

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

2017-10-26 Thread Dennis Dalessandro
On 10/26/2017 12:12 PM, SF Markus Elfring wrote: From: Markus Elfring Date: Thu, 26 Oct 2017 17:54:15 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. I'm not sure this is that big of a win. I mean you aren't really making the code

Re: [PATCH] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2017-10-26 Thread NeilBrown
On Thu, Oct 26 2017, Paul E. McKenney wrote: > On Thu, Oct 26, 2017 at 01:26:37PM +1100, NeilBrown wrote: >> >> The synchronize_rcu() in namespace_unlock() is called every time >> a filesystem is unmounted. If a great many filesystems are mounted, >> this can cause a noticable slow-down in, for

Re: [PATCH v7 0/6] vfs: Use dlock list for SB's s_inodes list

2017-10-26 Thread Boqun Feng
On Thu, Oct 26, 2017 at 02:28:55PM -0400, Waiman Long wrote: > On 10/05/2017 02:43 PM, Waiman Long wrote: > > > > This is a follow up of the following patchset: > > > > [PATCH v7 0/4] vfs: Use per-cpu list for SB's s_inodes list > > https://lkml.org/lkml/2016/4/12/1009 > > > > This patchset pro

Re: [PATCH v4 2/5] media: dt: bindings: Add binding for NVIDIA Tegra Video Decoder Engine

2017-10-26 Thread Rob Herring
On Fri, Oct 20, 2017 at 12:34:22AM +0300, Dmitry Osipenko wrote: > Add binding documentation for the Video Decoder Engine which is found > on NVIDIA Tegra20/30/114/124/132 SoC's. > > Signed-off-by: Dmitry Osipenko > --- > .../devicetree/bindings/media/nvidia,tegra-vde.txt | 55 > +++

Re: [PATCH v4 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs

2017-10-26 Thread Rob Herring
On Fri, Oct 20, 2017 at 04:50:42PM +0800, Li Wei wrote: > add ufs node document for Hisilicon. > > Signed-off-by: Li Wei > --- > Documentation/devicetree/bindings/ufs/ufs-hisi.txt | 47 > ++ > 1 file changed, 47 insertions(+) > create mode 100644 Documentation/devicetree/bi

Re: [PATCH] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2017-10-26 Thread Paul E. McKenney
On Fri, Oct 27, 2017 at 11:45:08AM +1100, NeilBrown wrote: > On Thu, Oct 26 2017, Paul E. McKenney wrote: > > > On Thu, Oct 26, 2017 at 01:26:37PM +1100, NeilBrown wrote: > >> > >> The synchronize_rcu() in namespace_unlock() is called every time > >> a filesystem is unmounted. If a great many fi

<    1   2   3   4   5   6   7   8   >