[PATCH v2 23/27] stating: ccree: fix allocation of void sized buf

2018-01-03 Thread Gilad Ben-Yossef
We were allocating buffers using sizeof(*struct->field) where field was type void. Fix it by having a local variable with the real type. Cc: sta...@vger.kernel.org Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_ivgen.c| 9 - drivers/staging/ccree/ssi_sram_mgr.c | 9 ++

[PATCH v2 22/27] staging: ccree: put pointer next to var name

2018-01-03 Thread Gilad Ben-Yossef
Put pointer next to var name as per coding style. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_request_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c index 01f4756..8237

[PATCH v2 21/27] staging: ccree: fold common code into service func

2018-01-03 Thread Gilad Ben-Yossef
Fold common code in hash call into service functions. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_hash.c | 339 ++- 1 file changed, 116 insertions(+), 223 deletions(-) diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi

[PATCH v2 19/27] staging: ccree: do not map bufs in ahash_init

2018-01-03 Thread Gilad Ben-Yossef
hash_init was mapping DMA memory that were then being unmap in hash_digest/final/finup callbacks, which is against the Crypto API usage rules (see discussion at https://www.mail-archive.com/linux-crypto@vger.kernel.org/msg30077.html) Fix it by moving all buffer mapping/unmapping or each Crypto API

Re: [PATCH] i2c: fix ACPI_I2C_OPREGION dependency

2018-01-03 Thread Sinan Kaya
On 1/2/2018 1:19 PM, Sinan Kaya wrote: > On 1/2/2018 1:10 PM, Randy Dunlap wrote: config ACPI_I2C_OPREGION bool "ACPI I2C Operation region support" - depends on I2C=y && ACPI + depends on I2C && ACPI default y help Say Y here if you want to enable

[PATCH v2 16/27] staging: ccree: remove unused field

2018-01-03 Thread Gilad Ben-Yossef
Remove unused struct field. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_hash.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index e05c87d..4e11b5d 100644 --- a/drivers/staging/ccree/ssi_hash.c +++ b/drive

[PATCH v2 18/27] staging: ccree: allocate hash bufs inside req ctx

2018-01-03 Thread Gilad Ben-Yossef
Move to allocating the buffers needed for requests as part of the request structure instead of malloc'ing each one on it's own, making for simpler (and more efficient) code. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_hash.c | 68 driver

[PATCH v2 17/27] staging: ccree: use array for double buffer

2018-01-03 Thread Gilad Ben-Yossef
The ccree hash code is using a double buffer to hold data for processing but manages the buffers and their associated data count in two separate fields and uses a predicate to chose which to use. Move to using a proper 2 members array for a much cleaner code. Signed-off-by: Gilad Ben-Yossef ---

[PATCH v2 11/27] stating: ccree: revert "staging: ccree: fix leak of import() after init()"

2018-01-03 Thread Gilad Ben-Yossef
This reverts commit c5f39d07860c ("staging: ccree: fix leak of import() after init()") and commit aece09024414 ("staging: ccree: Uninitialized return in ssi_ahash_import()"). This is the wrong solution and ends up relying on uninitialized memory, although it was not obvious to me at the time. Cc:

[PATCH v2 15/27] staging: ccree: use Makefile to include PM code

2018-01-03 Thread Gilad Ben-Yossef
Replace ugly ifdefs with some inline macros and Makefile magic for optionally including power management related code for better readability. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/Makefile | 3 ++- drivers/staging/ccree/ssi_pm.c | 9 +--- drivers/stagi

[PATCH v2 13/27] staging: ccree: check DMA pool buf !NULL before free

2018-01-03 Thread Gilad Ben-Yossef
If we ran out of DMA pool buffers, we get into the unmap code path with a NULL before. Deal with this by checking the virtual mapping is not NULL. Cc: sta...@vger.kernel.org Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 del

[PATCH v2 14/27] staging: ccree: handle end of sg list gracefully

2018-01-03 Thread Gilad Ben-Yossef
If we are asked for number of entries of an offset bigger than the sg list we should not crash. Cc: sta...@vger.kernel.org Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_buff

[PATCH v2 10/27] staging: ccree: add backlog processing

2018-01-03 Thread Gilad Ben-Yossef
Crypto API tfm providers are required to provide a backlog service, if so indicated, that queues up requests in the case of the provider being busy and processing them later. The ccree driver did not provide this facility. Add it now. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ss

[PATCH v2 12/27] staging: ccree: failing the suspend is not an error

2018-01-03 Thread Gilad Ben-Yossef
PM suspend returning a none zero value is not an error. It simply indicates a suspend is not advised right now so don't treat it as an error. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_request_mgr.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dri

[PATCH v2 09/27] staging: ccree: break send_request and fix ret val

2018-01-03 Thread Gilad Ben-Yossef
The send_request() function was handling both synchronous and asynchronous invocations, but were not handling the asynchronous case, which may be called in an atomic context, properly as it was sleeping. Start to fix the problem by breaking up the two use cases to separate functions calling a comm

[PATCH v2 08/27] staging: ccree: remove unused leftover field

2018-01-03 Thread Gilad Ben-Yossef
Remove the unused monitor_desc field. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_request_mgr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c index ac6846f..18e2e1d 100644 --- a/drivers/stag

[PATCH v2 07/27] staging: ccree: tag debugfs init/exit func properly

2018-01-03 Thread Gilad Ben-Yossef
The debugfs global init and exit functions were missing __init and __exit tags, potentially wasting memory. Fix it by properly tagging them. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/stag

Re: [net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support

2018-01-03 Thread Marcin Wojtas
2018-01-03 14:33 GMT+01:00 Andrew Lunn : > On Wed, Jan 03, 2018 at 02:13:09PM +0100, Marcin Wojtas wrote: >> Hi Andrew, >> >> 2018-01-03 13:47 GMT+01:00 Andrew Lunn : >> >> I already agreed with 'reg' being awkward in the later emails. >> >> Wouldn't _ADR be more appropriate to specify PHY address

[PATCH v2 05/27] staging: ccree: pick alloc mem flags based on req flags

2018-01-03 Thread Gilad Ben-Yossef
The ccree driver was allocating memory using GFP_KERNEL flag always, ignoring the flags set in the crypto request. Fix it by choosing gfp flags based on crypto request flags. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 19 +++-- drivers/staging/ccree/ssi_

[PATCH v2 06/27] staging: ccree: copy larval digest from RAM

2018-01-03 Thread Gilad Ben-Yossef
The ccree driver was using a DMA operation to copy larval digest from the ccree SRAM to RAM. Replace it with a simple memcpy. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_driver.c | 2 + drivers/staging/ccree/ssi_hash.c | 121 - drivers/st

[PATCH v2 04/27] staging: ccree: remove GFP_DMA flag from mem allocs

2018-01-03 Thread Gilad Ben-Yossef
Remove bogus GFP_DMA flag from memory allocations. ccree driver does not operate over an ISA or similar limited bus. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.c | 2 +- drivers/staging/ccree/ssi_hash.c | 15 ++- 2 files changed, 7 insertions(+), 10 delet

Re: [kernel-hardening] [PATCH] arm: kernel: implement fast refcount checking

2018-01-03 Thread Jinbum Park
>> This is a nice result. However, without any insight into the presence >> of actual refcount hot spots, it is not obvious that we need this >> patch. This is the reason we ended up enabling CONFIG_REFCOUNT_FULL >> for arm64. I will let others comment on whether we want this patch in >> the first

[PATCH v2 03/27] staging: ccree: fold reg common defines into driver

2018-01-03 Thread Gilad Ben-Yossef
Fold the 2 macro defined in dx_reg_common.h into the file they are used in and delete the file. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_crypto_ctx.h | 4 ++-- drivers/staging/ccree/dx_reg_common.h | 13 - drivers/staging/ccree/ssi_driver.h| 5 +++-- 3 files

[PATCH v2 00/27] staging: ccree: fixes and cleanups

2018-01-03 Thread Gilad Ben-Yossef
The usual combo of code cleanups and fixes. The highlights are: - Use SPDX for all driver copyright/license - Make ccree compliant with crypto API handling of backlog requests - Make ccree compliant with Crypto API rules of resource alloc/release - Settle on a single coherent file naming conventio

[PATCH v2 02/27] staging: ccree: fold hash defs into queue defs

2018-01-03 Thread Gilad Ben-Yossef
Fold the two remaining enum in hash defs into the queue defs that are using them and delete the hash defs include file. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_hw_queue_defs.h | 13 + drivers/staging/ccree/hash_defs.h| 23 --- drivers/

[PATCH v2 01/27] staging: ccree: SPDXify driver

2018-01-03 Thread Gilad Ben-Yossef
Replace verbatim GPL v2 copy with SPDX tag. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/Kconfig| 2 ++ drivers/staging/ccree/Makefile | 2 ++ drivers/staging/ccree/cc_crypto_ctx.h| 17 ++--- drivers/staging/ccree/cc_debugfs.c | 17 ++---

Re: [net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support

2018-01-03 Thread Andrew Lunn
On Wed, Jan 03, 2018 at 02:13:09PM +0100, Marcin Wojtas wrote: > Hi Andrew, > > 2018-01-03 13:47 GMT+01:00 Andrew Lunn : > >> I already agreed with 'reg' being awkward in the later emails. > >> Wouldn't _ADR be more appropriate to specify PHY address on MDIO bus? > > > > Also, how do you specify w

Re: CONFIG_PAGE_TABLE_ISOLATION=y on x86_64 causes gcc to segfault when building x86_32 binaries

2018-01-03 Thread Lars Wendler
Am Wed, 3 Jan 2018 13:05:38 +0100 (CET) schrieb Thomas Gleixner : > On Wed, 3 Jan 2018, Thomas Gleixner wrote: > > On Wed, 3 Jan 2018, Lars Wendler wrote: > > Thanks for the report. > > > > > I already had a conversation with Thomas Gleixner about this > > > issue and he asked me to post it her

Re: [PATCHv1 1/6] net: dsa: Support internal phy on 'cpu' port

2018-01-03 Thread Andrew Lunn
On Wed, Jan 03, 2018 at 01:26:04PM +0100, Sebastian Reichel wrote: > This adds support for enabling the internal phy for a 'cpu' port. > It has been tested on GE B850v3 and B650v3, which have a built-in > MV88E6240 switch connected to a PCIe based network card. Without > this patch the link does no

Re: [GIT PULL rcu/next] RCU commits for 4.15

2018-01-03 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, and Happy New Year! Happy new year to you too Paul! > This pull request contains the following changes: > > 1.Updates to use cond_resched() instead of cond_resched_rcu_qs() > where feasible (currently everywhere except in kernel/rcu and >

Re: 4.15-rc6 PTI regression: L1 TLB mismatch MCE on Athlon64

2018-01-03 Thread Thomas Gleixner
On Wed, 3 Jan 2018, Borislav Petkov wrote: > On Wed, Jan 03, 2018 at 11:16:48AM +0200, Meelis Roos wrote: > > ---[ ESPfix Area ]--- > > 0xff00-0xff18 96G > > pud > > 0xff18-0xff189000 36K

RE: [PATCH v2 2/4] remoteproc: Rename "load_rsc_table" to "parse_fw"

2018-01-03 Thread Loic PALLARDY
> -Original Message- > From: linux-remoteproc-ow...@vger.kernel.org [mailto:linux-remoteproc- > ow...@vger.kernel.org] On Behalf Of Loic PALLARDY > Sent: Wednesday, January 03, 2018 11:27 AM > To: Bjorn Andersson ; Ohad Ben-Cohen > > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vge

Re: [net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support

2018-01-03 Thread Marcin Wojtas
Hi Andrew, 2018-01-03 13:47 GMT+01:00 Andrew Lunn : >> I already agreed with 'reg' being awkward in the later emails. >> Wouldn't _ADR be more appropriate to specify PHY address on MDIO bus? > > Also, how do you specify which MDIO bus the PHY is on. To fully > specify a PHY, you need both bits of

Re: [PATCH v5] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2018-01-03 Thread Borislav Petkov
On Tue, Jan 02, 2018 at 11:24:18AM -0800, Luck, Tony wrote: > Should there be a "Cc: stable ..." in there? > > The original patch that disables for all broadwell > seems to be geting applied to a bunch of older trees, > I think we want this one to chase after it. > > Perhaps a > > Fixes: 723f282

Re: [PATCH] MAINTAINERS: Remove Matt Fleming as EFI co-maintainer

2018-01-03 Thread Ingo Molnar
* Ard Biesheuvel wrote: > On 3 January 2018 at 12:50, Ingo Molnar wrote: > > > > * Matt Fleming wrote: > > > >> On Wed, 03 Jan, at 10:13:55AM, Ard Biesheuvel wrote: > >> > On 3 January 2018 at 09:44, Matt Fleming > >> > wrote: > >> > > Instate Ard Biesheuvel as the sole EFI maintainer and le

Re: [PATCH v4 3/3] drm/tinydrm: add driver for ST7735R panels

2018-01-03 Thread Noralf Trønnes
Den 02.01.2018 10.42, skrev Linus Walleij: On Mon, Jan 1, 2018 at 8:02 PM, David Lechner wrote: This adds a new driver for Sitronix ST7735R display panels. This has been tested using an Adafruit 1.8" TFT. Signed-off-by: David Lechner Reviewed-by: Noralf Trønnes Reviewed-by: Linus Walleij

Re: [PATCH 0/3] update compatible string for ILI9225

2018-01-03 Thread Noralf Trønnes
Den 21.12.2017 19.33, skrev David Lechner: This updates the device tree compatible string for an ILI9225 display. Detailed explanation is in the patches. David Lechner (3): dt-bindings: Add "vot" vendor prefix dt-bindings: update compatible string for ILI9225 drm/tinydrm: Update ILI922

Re: Linux 4.15-rc6

2018-01-03 Thread Willy Tarreau
On Tue, Jan 02, 2018 at 01:09:13PM -0800, Linus Torvalds wrote: > On Tue, Jan 2, 2018 at 12:28 PM, Andres Freund wrote: > > > > I thought it'd be interesting to run a short benchmark to be able to > > estimate the impact of the PTI work on postgres workloads (which I work > > on). On my skylake la

Re: [PATCHv1 2/6] net: dsa: mv88e6xxx: add 88E6240 DT compatible

2018-01-03 Thread Andrew Lunn
On Wed, Jan 03, 2018 at 01:26:05PM +0100, Sebastian Reichel wrote: > Add compatible for Marvell 88E6240 switch. > > Signed-off-by: Sebastian Reichel > --- > Documentation/devicetree/bindings/net/dsa/marvell.txt | 6 -- > drivers/net/dsa/mv88e6xxx/chip.c | 4 > 2 fil

Re: [PATCH] MAINTAINERS: Remove Matt Fleming as EFI co-maintainer

2018-01-03 Thread Ard Biesheuvel
On 3 January 2018 at 12:50, Ingo Molnar wrote: > > * Matt Fleming wrote: > >> On Wed, 03 Jan, at 10:13:55AM, Ard Biesheuvel wrote: >> > On 3 January 2018 at 09:44, Matt Fleming wrote: >> > > Instate Ard Biesheuvel as the sole EFI maintainer and leave other folks >> > > as maintainers for the EFI

Re: [PATCH v6 4/6] can: m_can: Support higher speed CAN-FD bitrates

2018-01-03 Thread Faiz Abbas
Hi, On Tuesday 02 January 2018 07:05 PM, Marc Kleine-Budde wrote: > On 12/22/2017 02:31 PM, Faiz Abbas wrote: >> From: Franklin S Cooper Jr >> >> During test transmitting using CAN-FD at high bitrates (> 2 Mbps) >> would fail. Scoping the signals I noticed that only a single bit >> was being tran

Re: [PATCH V2] mfd: rtsx: release IRQ during shutdown

2018-01-03 Thread Rafael J. Wysocki
On Wed, Jan 3, 2018 at 1:32 PM, Sinan Kaya wrote: > 'Commit cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during > shutdown")' revealed a resource leak in rtsx_pci driver during shutdown. > > Issue shows up as a warning during shutdown as follows: > > remove_proc_entry: removing non-empty dir

Re: [PATCH] MAINTAINERS: Remove Matt Fleming as EFI co-maintainer

2018-01-03 Thread Ingo Molnar
* Matt Fleming wrote: > On Wed, 03 Jan, at 10:13:55AM, Ard Biesheuvel wrote: > > On 3 January 2018 at 09:44, Matt Fleming wrote: > > > Instate Ard Biesheuvel as the sole EFI maintainer and leave other folks > > > as maintainers for the EFI test driver and efivarfs file system. > > > > > > Signe

Re: [PATCH] pinctrl: mcp23s08: fix irq setup order

2018-01-03 Thread Dmitry Mastykin
On Tue, Jan 2, 2018 at 12:10 PM, Linus Walleij wrote: > > Patch applied, albeit for devel. > > Should it be tagged for stable or go into fixes? > Thank you very much, Linus! About tags, please do as it convenient for you. Kind regards, Dmitry > On Thu, Dec 28, 2017 at 4:19 PM, Dmitry Mastykin w

Re: [PATCH V4 06/26] edd: deprecate pci_get_bus_and_slot()

2018-01-03 Thread Sinan Kaya
On 12/19/2017 12:37 AM, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting ready to remove pci_get_bus_and_slot() function in favor of > p

Re: [v3 PATCH 2/3] powernv-cpufreq: Fix pstate_to_idx() to handle non-continguous pstates

2018-01-03 Thread Balbir Singh
On Wed, Jan 3, 2018 at 11:07 PM, Rafael J. Wysocki wrote: > On Monday, December 18, 2017 9:38:20 AM CET Gautham R Shenoy wrote: >> Hi Balbir, >> >> On Sun, Dec 17, 2017 at 02:15:25PM +1100, Balbir Singh wrote: >> > On Wed, Dec 13, 2017 at 5:57 PM, Gautham R. Shenoy >> > wrote: >> > > From: "Gauth

Re: [net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support

2018-01-03 Thread Andrew Lunn
> I already agreed with 'reg' being awkward in the later emails. > Wouldn't _ADR be more appropriate to specify PHY address on MDIO bus? Also, how do you specify which MDIO bus the PHY is on. To fully specify a PHY, you need both bits of information. In DT, the phy-handle phandle can point to any

Re: Coccinelle: Rename the script for a transformation of memory allocations

2018-01-03 Thread SF Markus Elfring
>> Would you insist to replace such “special characters” by dashes or >> underscores? > > Yes. But I will also nack any very long name. Will any other artificial identifier become appropriate if it would be too hard to achieve consensus on a more meaningful description in the file name? Regard

Re: [PATCH V4 05/26] agp: nvidia: deprecate pci_get_bus_and_slot()

2018-01-03 Thread Sinan Kaya
On 12/19/2017 12:37 AM, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting ready to remove pci_get_bus_and_slot() function in favor of > p

Re: [PATCH V4 01/26] alpha/PCI: deprecate pci_get_bus_and_slot()

2018-01-03 Thread Sinan Kaya
On 12/19/2017 12:37 AM, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Use pci_get_domain_bus_and_slot() with a domain number of 0 where we ca

Re: 4.15-rc6 PTI regression: L1 TLB mismatch MCE on Athlon64

2018-01-03 Thread Borislav Petkov
On Wed, Jan 03, 2018 at 11:16:48AM +0200, Meelis Roos wrote: > ---[ ESPfix Area ]--- > 0xff00-0xff18 96G >pud > 0xff18-0xff189000 36K >pte > 0xff189000-0xff18000

Re: [PATCH 1/1] base: power: runtime: Export pm_runtime_get/put_suppliers

2018-01-03 Thread Vivek Gautam
Hi Rafael, On Wed, Jan 3, 2018 at 5:31 PM, Rafael J. Wysocki wrote: > On Friday, December 8, 2017 6:03:37 PM CET Vivek Gautam wrote: >> On Fri, Dec 8, 2017 at 7:37 PM, Rafael J. Wysocki wrote: >> > On Fri, Dec 8, 2017 at 2:39 PM, Vivek Gautam >> > wrote: >> >> Hi Greg, >> >> >> >> >> >> On Fri,

Re: [PATCH] MAINTAINERS: Remove Matt Fleming as EFI co-maintainer

2018-01-03 Thread Matt Fleming
On Wed, 03 Jan, at 10:13:55AM, Ard Biesheuvel wrote: > On 3 January 2018 at 09:44, Matt Fleming wrote: > > Instate Ard Biesheuvel as the sole EFI maintainer and leave other folks > > as maintainers for the EFI test driver and efivarfs file system. > > > > Signed-off-by: Matt Fleming > > Acked-by

Re: [PATCH v2] iio: adc: max9611: fix module auto-loading

2018-01-03 Thread Dmitry Mastykin
On Mon, Jan 1, 2018 at 12:53 PM, Jonathan Cameron wrote: > Not that I can see. They are a straight swap in drivers/i2c/i2c-core-base.c > presumably intended to drop the parameter that is unused in the devicetree > and acpi cases. > > This isn't an area I know that much about so I've just played

Re: Coccinelle: Rename the script for a transformation of memory allocations

2018-01-03 Thread Julia Lawall
On Wed, 3 Jan 2018, SF Markus Elfring wrote: > >> How would you like to express the provided functionality in a > >> “permanent” file name? > > > > I have not idea what a permanent file name is. > > Are you used to the selection of permalinks? > > > > The current name could be better without the

Re: [PATCH v6 3/6] can: m_can: Add PM Runtime

2018-01-03 Thread Faiz Abbas
Hi, On Tuesday 02 January 2018 09:37 PM, Marc Kleine-Budde wrote: > On 12/22/2017 02:31 PM, Faiz Abbas wrote: >> From: Franklin S Cooper Jr >> >> Add support for PM Runtime which is the new way to handle managing clocks. >> However, to avoid breaking SoCs not using PM_RUNTIME leave the old clk >>

Re: [PATCH 04/12] PCI: qcom: account for const type of of_device_id.data

2018-01-03 Thread Julia Lawall
On Wed, 3 Jan 2018, Lorenzo Pieralisi wrote: > On Tue, Jan 02, 2018 at 02:28:00PM +0100, Julia Lawall wrote: > > This driver creates various const structures that it stores in the > > data field of an of_device_id array. > > > > Adding const to the declaration of the location that receives the >

Re: [PATCH 04/12] PCI: qcom: account for const type of of_device_id.data

2018-01-03 Thread Stanimir Varbanov
Hi Lorenzo, On 01/03/2018 02:22 PM, Lorenzo Pieralisi wrote: > On Tue, Jan 02, 2018 at 02:28:00PM +0100, Julia Lawall wrote: >> This driver creates various const structures that it stores in the >> data field of an of_device_id array. >> >> Adding const to the declaration of the location that rece

[PATCH V2] mfd: rtsx: release IRQ during shutdown

2018-01-03 Thread Sinan Kaya
'Commit cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during shutdown")' revealed a resource leak in rtsx_pci driver during shutdown. Issue shows up as a warning during shutdown as follows: remove_proc_entry: removing non-empty directory 'irq/17', leaking at least 'rtsx_pci' WARNING: CPU: 0

Re: Coccinelle: Rename the script for a transformation of memory allocations

2018-01-03 Thread SF Markus Elfring
>> How would you like to express the provided functionality in a >> “permanent” file name? > > I have not idea what a permanent file name is. Are you used to the selection of permalinks? > The current name could be better without the leading k, > but otherwise I think it is fine. I suggest to

Re: [PATCH] misc: rtsx: release IRQ during shutdown

2018-01-03 Thread Sinan Kaya
On 1/3/2018 7:06 AM, Rafael J. Wysocki wrote: >> pci_disable_device(pcidev); >> + free_irq(pcr->irq, (void *)pcr); > Do you need to disable MSI here too? > Makes sense. I'll post V2 in a minute. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologi

Re: [char-misc-next] mei: me: allow runtime pm for platform with D0i3

2018-01-03 Thread Rafael J. Wysocki
On 1/2/2018 11:01 AM, Tomas Winkler wrote: From the pci power documentation: "The driver itself should not call pm_runtime_allow(), though. Instead, it should let user space or some platform-specific code do that (user space can do it via sysfs as stated above)..." However, the S0ix residency c

[PATCHv1 1/6] net: dsa: Support internal phy on 'cpu' port

2018-01-03 Thread Sebastian Reichel
This adds support for enabling the internal phy for a 'cpu' port. It has been tested on GE B850v3 and B650v3, which have a built-in MV88E6240 switch connected to a PCIe based network card. Without this patch the link does not come up and no traffic can be routed through the switch. Signed-off-by:

[PATCHv1 2/6] net: dsa: mv88e6xxx: add 88E6240 DT compatible

2018-01-03 Thread Sebastian Reichel
Add compatible for Marvell 88E6240 switch. Signed-off-by: Sebastian Reichel --- Documentation/devicetree/bindings/net/dsa/marvell.txt | 6 -- drivers/net/dsa/mv88e6xxx/chip.c | 4 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetre

Re: [PATCH] rt2x00: Delete an error message for a failed memory allocation in rt2x00queue_allocate()

2018-01-03 Thread Stanislaw Gruszka
On Fri, Dec 29, 2017 at 10:18:14PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 29 Dec 2017 22:11:42 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus E

[PATCHv1 4/6] ARM: dts: imx6q-b850v3: Add switch port configuration

2018-01-03 Thread Sebastian Reichel
This adds support for the Marvell switch and names the network ports according to the labels, that can be found next to the connectors ("ID", "IX", "ePort 1", "ePort 2"). The switch is connected to the host system using a PCI based network card. The PCI bus configuration has been written using the

[PATCHv1 3/6] ARM: dts: imx6q-bx50v3: Add internal switch

2018-01-03 Thread Sebastian Reichel
B850v3, B650v3 and B450v3 all have a GPIO bit banged MDIO bus to communicate with a Marvell switch. On all devices the switch is connected to a PCI based network card, which needs to be referenced by DT, so this also adds the common PCI root node. Signed-off-by: Sebastian Reichel --- arch/arm/bo

[PATCHv1 5/6] ARM: dts: imx6q-b650v3: Add switch port configuration

2018-01-03 Thread Sebastian Reichel
This adds support for the Marvell switch and names the network ports according to the labels, that can be found next to the connectors. The switch is connected to the host system using a PCI based network card. The PCI bus configuration has been written using the following information: root@b650v

[PATCHv1 6/6] ARM: dts: imx6q-b450v3: Add switch port configuration

2018-01-03 Thread Sebastian Reichel
This adds support for the Marvell switch and names the network ports according to the labels, that can be found next to the connectors. The switch is connected to the host system using a PCI based network card. The PCI bus configuration has been written using the following information: root@b450v

[PATCHv1 0/6] GEHC Bx50 Switch Support

2018-01-03 Thread Sebastian Reichel
Hi, This adds support for the internal switch found in GE Healthcare B450v3, B650v3 and B850v3. All devices use a GPIO bitbanged MDIO bus to communicate with the switch and a PCIe based network card for exchanging network data. The cpu network data link requires, that the switch's internal phy int

Re: [PATCH v5] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2018-01-03 Thread Jia Zhang
80102] >> [cannot apply to tip/x86/core] >> [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/commits/Jia-Zhang/x86-microcode-intel-Blacklist-the-specific-BDW

Re: [PATCH 05/12] mfd: mtk-audsys: add MediaTek audio subsystem driver

2018-01-03 Thread Ryder Lee
On Tue, 2018-01-02 at 16:31 +, Lee Jones wrote: > On Tue, 02 Jan 2018, Ryder Lee wrote: > > > Add a common driver for the top block of the MediaTek audio subsystem. > > This is a wrapper which manages resources for audio components. > > > > Signed-off-by: Ryder Lee > > diff --git a/drivers/

Re: [PATCH v6 1/6] can: dev: Add support for limiting configured bitrate

2018-01-03 Thread Faiz Abbas
Hi, On Tuesday 02 January 2018 09:45 PM, Marc Kleine-Budde wrote: > On 12/22/2017 02:31 PM, Faiz Abbas wrote: >> From: Franklin S Cooper Jr >> >> Various CAN or CAN-FD IP may be able to run at a faster rate than >> what the transceiver the CAN node is connected to. This can lead to >> unexpected

Re: [RFC PATCH 2/5] perf jevents: add support for arch recommended events

2018-01-03 Thread John Garry
On 02/01/2018 17:48, Andi Kleen wrote: Can you describe how you autogenerate the JSONs? Do you have some internal proprietary HW file format describing events, with files supplied from HW designer, which you can just translate into a JSON? Would the files support deferencing events to improve sca

Applied "spi: sirf: account for const type of of_device_id.data" to the spi tree

2018-01-03 Thread Mark Brown
The patch spi: sirf: account for const type of of_device_id.data has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and s

Applied "spi: spi-fsl-dspi: account for const type of of_device_id.data" to the spi tree

2018-01-03 Thread Mark Brown
The patch spi: spi-fsl-dspi: account for const type of of_device_id.data has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hour

Re: objtool segfault with ORC unwinder enabled

2018-01-03 Thread Markus
On Wed, Jan 03, 2018 at 12:19:41 CET Greg Kroah-Hartman wrote: > On Wed, Jan 03, 2018 at 11:49:08AM +0100, Markus wrote: > > Hello! > > > > ORC unwinder is enabled in stable for wider testing but still at least one > > bug is open: > > https://bugzilla.kernel.org/show_bug.cgi?id=197035 > > Random

Re: [PATCH 04/12] PCI: qcom: account for const type of of_device_id.data

2018-01-03 Thread Lorenzo Pieralisi
On Tue, Jan 02, 2018 at 02:28:00PM +0100, Julia Lawall wrote: > This driver creates various const structures that it stores in the > data field of an of_device_id array. > > Adding const to the declaration of the location that receives the > const value from the data field ensures that the compile

Re: [PATCH v6 1/6] can: dev: Add support for limiting configured bitrate

2018-01-03 Thread Faiz Abbas
Hi Marc, On Tuesday 02 January 2018 06:30 PM, Marc Kleine-Budde wrote: > On 12/22/2017 02:31 PM, Faiz Abbas wrote: >> From: Franklin S Cooper Jr >> >> Various CAN or CAN-FD IP may be able to run at a faster rate than >> what the transceiver the CAN node is connected to. This can lead to >> unexpe

Re: Coccinelle: Rename the script for a transformation of memory allocations

2018-01-03 Thread Julia Lawall
On Wed, 3 Jan 2018, SF Markus Elfring wrote: > >> rename from scripts/coccinelle/api/alloc/kzalloc-simple.cocci > >> rename to scripts/coccinelle/api/alloc/use zalloc functions with extra > >> changes.cocci > > > > NACK. > > It seems that we need a few more tries to achieve the desired consensu

Applied "spi: sirf: account for const type of of_device_id.data" to the spi tree

2018-01-03 Thread Mark Brown
The patch spi: sirf: account for const type of of_device_id.data has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and s

Re: [PATCH v5 2/2] PCI: mediatek: Set up class type and vendor ID for MT7622

2018-01-03 Thread Lorenzo Pieralisi
On Wed, Jan 03, 2018 at 02:39:04PM +0800, Honghui Zhang wrote: > On Tue, 2018-01-02 at 10:56 +, Lorenzo Pieralisi wrote: > > On Thu, Dec 28, 2017 at 09:39:12AM +0800, Honghui Zhang wrote: > > > On Wed, 2017-12-27 at 12:45 -0600, Bjorn Helgaas wrote: > > > > On Wed, Dec 27, 2017 at 08:59:54AM +0

Re: Coccinelle: Rename the script for a transformation of memory allocations

2018-01-03 Thread SF Markus Elfring
>> rename from scripts/coccinelle/api/alloc/kzalloc-simple.cocci >> rename to scripts/coccinelle/api/alloc/use zalloc functions with extra >> changes.cocci > > NACK. It seems that we need a few more tries to achieve the desired consensus. > The name is too long How would you like to express t

Applied "regulator: sc2731: Fix defines for SC2731_WR_UNLOCK and SC2731_PWR_WR_PROT_VALUE" to the regulator tree

2018-01-03 Thread Mark Brown
The patch regulator: sc2731: Fix defines for SC2731_WR_UNLOCK and SC2731_PWR_WR_PROT_VALUE has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usual

Applied "ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe()" to the asoc tree

2018-01-03 Thread Mark Brown
The patch ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH] exec: Weaken dumpability for secureexec

2018-01-03 Thread Tom Horsley
On Wed, 3 Jan 2018 01:04:44 -0600 Serge E. Hallyn wrote: > > This weakens dumpability back to checking only for uid/gid changes in > > current (which is useless), but userspace depends on dumpability not > > being tied to secureexec. > > > > https://bugzilla.redhat.com/show_bug.cgi?id=1528633 > >

Re: [v3 PATCH 2/3] powernv-cpufreq: Fix pstate_to_idx() to handle non-continguous pstates

2018-01-03 Thread Rafael J. Wysocki
On Monday, December 18, 2017 9:38:20 AM CET Gautham R Shenoy wrote: > Hi Balbir, > > On Sun, Dec 17, 2017 at 02:15:25PM +1100, Balbir Singh wrote: > > On Wed, Dec 13, 2017 at 5:57 PM, Gautham R. Shenoy > > wrote: > > > From: "Gautham R. Shenoy" > > > > > > The code in powernv-cpufreq, makes the

Re: [PATCH] misc: rtsx: release IRQ during shutdown

2018-01-03 Thread Rafael J. Wysocki
On Tue, Jan 2, 2018 at 9:45 PM, Sinan Kaya wrote: > 'Commit cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during > shutdown")' revealed a resource leak in rtsx_pci driver during shutdown. > > Issue shows up as a warning during the shutdown step as follows: > > remove_proc_entry: removing non-

Re: CONFIG_PAGE_TABLE_ISOLATION=y on x86_64 causes gcc to segfault when building x86_32 binaries

2018-01-03 Thread Thomas Gleixner
On Wed, 3 Jan 2018, Thomas Gleixner wrote: > On Wed, 3 Jan 2018, Lars Wendler wrote: > Thanks for the report. > > > I already had a conversation with Thomas Gleixner about this issue and > > he asked me to post it here. > > > > After upgrading my system to vanilla 4.14.11 kernel with > > CONFIG_P

Re: [PATCH] Coccinelle: Rename the script for a transformation of memory allocations

2018-01-03 Thread Julia Lawall
On Wed, 3 Jan 2018, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 3 Jan 2018 12:43:45 +0100 > > A script for the semantic patch language was extended > in a significant way. > An other file name is more appropriate then to indicate > the provided functionality. Thus rename this f

Re: [PATCH 1/1] base: power: runtime: Export pm_runtime_get/put_suppliers

2018-01-03 Thread Rafael J. Wysocki
On Friday, December 8, 2017 6:03:37 PM CET Vivek Gautam wrote: > On Fri, Dec 8, 2017 at 7:37 PM, Rafael J. Wysocki wrote: > > On Fri, Dec 8, 2017 at 2:39 PM, Vivek Gautam > > wrote: > >> Hi Greg, > >> > >> > >> On Fri, Dec 8, 2017 at 6:51 PM, Greg KH wrote: > >>> On Fri, Dec 08, 2017 at 06:00:47

Re: [PATCH v2 5/8] MIPS: jz4740: dts: Add bindings for the jz4740-wdt driver

2018-01-03 Thread Paul Cercueil
Le mer. 3 janv. 2018 à 5:46, Guenter Roeck a écrit : On 01/02/2018 08:48 AM, Paul Cercueil wrote: Hi PrasannaKumar, Le mar. 2 janv. 2018 à 17:37, PrasannaKumar Muralidharan a écrit : Hi Paul, On 30 December 2017 at 19:21, Paul Cercueil wrote: Also remove the watchdog platform_device

Re: CONFIG_PAGE_TABLE_ISOLATION=y on x86_64 causes gcc to segfault when building x86_32 binaries

2018-01-03 Thread Thomas Gleixner
Lars, On Wed, 3 Jan 2018, Lars Wendler wrote: Thanks for the report. > I already had a conversation with Thomas Gleixner about this issue and > he asked me to post it here. > > After upgrading my system to vanilla 4.14.11 kernel with > CONFIG_PAGE_TABLE_ISOLATION=y I could no longer build any 3

[PATCH] Coccinelle: Rename the script for a transformation of memory allocations

2018-01-03 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 3 Jan 2018 12:43:45 +0100 A script for the semantic patch language was extended in a significant way. An other file name is more appropriate then to indicate the provided functionality. Thus rename this file. Signed-off-by: Markus Elfring --- ...kzalloc-simple.c

Re: [PATCH v4 0/4] ACPI / boot: Don't handle SCI on HW reduced platforms

2018-01-03 Thread Rafael J. Wysocki
On Friday, December 15, 2017 10:25:07 PM CET Andy Shevchenko wrote: > The series improves handling of invalid IRQs in ACPI glue layer along with > preventing setup SCI on HW reduced platforms as it prescribed by the spec. > > Patch 1 is just convenient to add to the series. > > Patches 2 and 3 ma

Re: [PATCH] nokia N9: Add support for magnetometer and touchscreen

2018-01-03 Thread Sebastian Reichel
Hi, On Wed, Jan 03, 2018 at 11:25:53AM +0100, Pavel Machek wrote: > On Tue 2018-01-02 18:27:20, Sebastian Reichel wrote: > > Hi, > > > > On Tue, Jan 02, 2018 at 02:17:22PM +0100, Pavel Machek wrote: > > > This adds dts support for magnetometer and touchscreen on Nokia N9. > > > > I think it make

Re: [PATCH 2/3] dt-bindings: mtd: atmel-quadspi: add an optional property 'dmacap,memcpy'

2018-01-03 Thread Mark Brown
On Wed, Dec 27, 2017 at 10:40:00PM +0100, Cyrille Pitchen wrote: > Le 27/12/2017 à 00:23, Rob Herring a écrit : > > On Sun, Dec 24, 2017 at 05:36:05AM +0100, Cyrille Pitchen wrote: > >> +Optional properties: > >> +- dmacap,memcpy: Reserve a DMA channel to perform DMA memcpy() between > >> the >

[PATCH] ACPI / WMI: Call acpi_wmi_init() later

2018-01-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Calling acpi_wmi_init() at the subsys_initcall() level causes ordering issues to appear on some systems and they are difficult to reproduce, because there is no guaranteed ordering between subsys_initcall() calls, so they may occur in different orders on different systems.

Re: [PATCH 0/3] mtd: spi-nor: fix DMA-unsafe buffer issue between MTD and SPI

2018-01-03 Thread Mark Brown
On Wed, Dec 27, 2017 at 08:15:11PM +, Trent Piepho wrote: > A random collection of spi master drivers will accept DMA-unsafe > buffers in some way. In some cases a framework like spi-nor provides > the fixup to spi-nor master drivers (none so far) and in other cases > (atmel-quadspi), the spi

[RESEND PATCH] fix memory leak in ramoops_init

2018-01-03 Thread Nixiaoming
1, memory leak in ramoops_register_dummy. dummy_data = kzalloc(sizeof(*dummy_data), GFP_KERNEL); but no free when platform_device_register_data return fail 2, if kzalloc(sizeof(*dummy_data), GFP_KERNEL) return NULL, but platform_driver_register(&ramoops_driver) return 0 kfree(NULL) i

<    3   4   5   6   7   8   9   10   >