[PATCH v7 0/3] Media Device Allocator API

2016-12-06 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. Using this API, drivers can allocate a media device with the shared struct device as the key. Once the media device is allocated by a driver, other drivers can get a reference to it. The media device is released when all th

[PATCH v7 3/3] sound/usb: Use Media Controller API to share media resources

2016-12-06 Thread Shuah Khan
Change ALSA driver to use Media Controller API to share media resources with DVB, and V4L2 drivers on a AU0828 media device. Media Controller specific initialization is done after sound card is registered. ALSA creates Media interface and entity function graph nodes for Control, Mixer, PCM Playbac

[PATCH 1/2] f2fs: detect wrong layout

2016-12-06 Thread Jaegeuk Kim
Previous mkfs.f2fs allows small partition inappropriately, so f2fs should detect that as well. Refer this in f2fs-tools. mkfs.f2fs: detect small partition by overprovision ratio and # of segments Reported-by: Eric Biggers Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.h | 2 ++ fs/f2fs/super

[PATCH 2/2] f2fs: free meta pages if sanity check for ckpt is failed

2016-12-06 Thread Jaegeuk Kim
This fixes missing freeing meta pages in the error case. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 35601b0d077f..698b13ae261c 100644 --- a/fs/f2fs/checkpoint.c +++

Re: [PATCH] device-dax: fail all private mapping attempts

2016-12-06 Thread Dan Williams
On Mon, Dec 5, 2016 at 5:01 PM, Hugh Dickins wrote: > On Wed, 16 Nov 2016, Dan Williams wrote: > >> The device-dax implementation originally tried to be tricky and allow >> private read-only mappings, but in the process allowed writable >> MAP_PRIVATE + MAP_NORESERVE mappings. For simplicity and

Re: [PATCH v3 2/3] powerpc: get hugetlbpage handling more generic

2016-12-06 Thread Scott Wood
On Tue, 2016-12-06 at 07:34 +0100, Christophe LEROY wrote: > > Le 06/12/2016 à 02:18, Scott Wood a écrit : > > > > On Wed, 2016-09-21 at 10:11 +0200, Christophe Leroy wrote: > > > > > > Today there are two implementations of hugetlbpages which are managed > > > by exclusive #ifdefs: > > > * FSL_

[PATCH] remoteproc: Drop wait in __rproc_boot()

2016-12-06 Thread Bjorn Andersson
In the event that rproc_boot() is called before the firmware loaded completion has been flagged it will wait with the mutex held, obstructing the request_firmware_nowait() callback from completing the wait. As rproc_fw_config_virtio() has been reduced to only triggering auto-boot there is no longe

Re: [kernel-hardening] Re: [PATCH 3/3] powerpc: enable support for GCC plugins

2016-12-06 Thread Andrew Donnellan
On 07/12/16 07:40, Kees Cook wrote: Compile tested with all plugins enabled on gcc 4.6-6.2, x86->ppc{32,64,64le} and 4.8-6.2 ppc64le->ppc{32,64,64le}. Thanks to Chris Smart for help with this. I assume also tested on 5.2? :) Tested on the latest subrevision of every release branch up till 6.2

[PATCH] firwmare: Correct handling of fw_state_wait() return value

2016-12-06 Thread Bjorn Andersson
When request_firmware() finds an already open firmware object it will wait for that object to become fully loaded and then check the status. As __fw_state_wait_common() succeeds the timeout value returned will be truncated in _request_firmware_prepare() and interpreted as -EPERM. Prior to "firmwar

[PATCH v2] drm/bridge: analogix: Don't return -EINVAL when panel not support PSR in PSR functions

2016-12-06 Thread zain wang
We will ignored PSR setting if panel not support it. So, in this case, we should return from analogix_dp_enable/disable_psr() without any error code. Let's retrun 0 instead of -EINVAL when panel not support PSR in analogix_dp_enable/disable_psr(). Signed-off-by: zain wang --- Changes in v2: - Re

Re: [RFC PATCH v3 2/2] drm/panel: Add support for Chunghwa CLAA070WP03XG panel

2016-12-06 Thread Ayaka
從我的 iPad 傳送 > Thierry Reding 於 2016年12月6日 下午11:46 寫道: > >> On Tue, Sep 20, 2016 at 03:02:51AM +0800, Randy Li wrote: >> The Chunghwa CLAA070WP03XG is a 7" 1280x800 panel, which can be >> supported by the simple panel driver. >> >> Signed-off-by: Randy Li >> --- >> .../display/panel/chunghwa,

Re: [PATCH] pinctrl: meson: fix gpio request disabling other modes

2016-12-06 Thread Kevin Hilman
Neil Armstrong writes: > The pinctrl_gpio_request is called with the "full" gpio number, already > containing the base, then meson_pmx_request_gpio is then called with the > final pin number. > Remove the base addition when calling meson_pmx_disable_other_groups. > > Fixes: 6ac730951104 ("pinctrl

Re: [PATCH 1/1] mtd: spi-nor: improve macronix_quad_enable()

2016-12-06 Thread Marek Vasut
On 12/07/2016 12:05 AM, Cyrille Pitchen wrote: > Le 06/12/2016 à 20:01, Marek Vasut a écrit : >> On 12/06/2016 05:01 PM, Cyrille Pitchen wrote: >>> The patch checks whether the Quad Enable bit is already set in the Status >>> Register. If so, the function exits immediately with a successful return

Re: [PATCH 1/1] mtd: spi-nor: improve macronix_quad_enable()

2016-12-06 Thread Cyrille Pitchen
Le 06/12/2016 à 20:01, Marek Vasut a écrit : > On 12/06/2016 05:01 PM, Cyrille Pitchen wrote: >> The patch checks whether the Quad Enable bit is already set in the Status >> Register. If so, the function exits immediately with a successful return >> code. > > Performance optimization I presume ?

[PATCH 3/5] acpi, nfit: validate ars_status output buffer size

2016-12-06 Thread Dan Williams
If an ARS Status command returns truncated output, do not process partial records or otherwise consume non-status fields. Cc: Fixes: 0caeef63e6d2 ("libnvdimm: Add a poison list and export badblocks") Signed-off-by: Dan Williams --- drivers/acpi/nfit/core.c | 21 + 1 file c

[PATCH 5/5] tools/testing/nvdimm: unit test acpi_nfit_ctl()

2016-12-06 Thread Dan Williams
A recent flurry of bug discoveries in the nfit driver's DSM marshalling routine has highlighted the fact that we do not have unit test coverage for this routine. Add a self-test of acpi_nfit_ctl() routine before probing the "nfit_test.0" device. This mocks stimulus to acpi_nfit_ctl() and if any of

[PATCH 4/5] acpi, nfit: fix bus vs dimm confusion in xlat_status

2016-12-06 Thread Dan Williams
Given dimms and bus commands share the same command number space we need to be careful that we are translating status in the correct context. Otherwise we can, for example, fail an ND_CMD_GET_CONFIG_SIZE command because max_xfer is zero. It fails because that condition erroneously correlates with t

[PATCH 2/5] acpi, nfit, libnvdimm: fix / harden ars_status output length handling

2016-12-06 Thread Dan Williams
Given ambiguities in the ACPI 6.1 definition of the "Output (Size)" field of the ARS (Address Range Scrub) Status command, a firmware implementation may in practice return 0, 4, or 8 to indicate that there is no output payload to process. The specification states "Size of Output Buffer in bytes, i

[PATCH 0/5] acpi, nfit: acpi_nfit_ctl() corner case fixes + tests

2016-12-06 Thread Dan Williams
>From [PATCH 5/5] tools/testing/nvdimm: unit test acpi_nfit_ctl(): --- A recent flurry of bug discoveries in the nfit driver's DSM marshalling routine has highlighted the fact that we do not have unit test coverage for this routine. Add a self-test of acpi_nfit_ctl() routine before probing the "nf

[PATCH 1/5] acpi, nfit: fix extended status translations for ACPI DSMs

2016-12-06 Thread Dan Williams
From: Vishal Verma ACPI DSMs can have an 'extended' status which can be non-zero to convey additional information about the command. In the xlat_status routine, where we translate the command statuses, we were returning an error for a non-zero extended status, even if the primary status indicated

Re: [RFC][PATCH 1/3 v2] usb: dwc2: Add extcon support to dwc2 driver

2016-12-06 Thread John Stultz
On Tue, Dec 6, 2016 at 4:26 PM, John Youn wrote: > On 12/6/2016 4:05 PM, John Stultz wrote: >> On Tue, Dec 6, 2016 at 3:17 PM, John Youn wrote: >>> Also, do you really need this at all? Wasn't your system previously >>> able to detect the ID pin change correctly via the connection id >>> status c

[RFC] PCI: Change default MPS behavior

2016-12-06 Thread Jon Mason
Not all systems have a BIOS or firmware to preconfigure the PCIE MPS prior to Linux booting. Without any firmware to pre-setup the MPS, the PCIE_BUS_DEFAULT will simply set everything to 0 (128b). This behavior causes these systems to have non-optimal MPS values. To get around this issue, change

Re: [RFC][PATCH 1/3 v2] usb: dwc2: Add extcon support to dwc2 driver

2016-12-06 Thread John Youn
On 12/6/2016 4:05 PM, John Stultz wrote: > On Tue, Dec 6, 2016 at 3:17 PM, John Youn wrote: >> On 12/6/2016 12:06 AM, John Stultz wrote: >>> This patch wires up extcon support to the dwc2 driver >>> so that devices that use a modern generic phy driver >>> and don't use the usb-phy infrastructure c

[PATCH 01/16] drivers/fsi: Add empty fsi bus definitions

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr This change adds the initial (empty) fsi bus definition, and introduces drivers/fsi/. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/Kconfig| 2 ++ drivers/Makefile | 1 + drivers/fsi/Kconfig| 12 drivers/fsi/Makefile |

[PATCH 00/16] FSI device driver introduction

2016-12-06 Thread Chris Bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI extensions to the Linux bus

[PATCH 10/16] drivers/fsi: scan slaves & register devices

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr Now that we have fsi_slave devices, scan each for endpoints, and register them on the fsi bus. Includes contributions from Chris Bostic Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 136 +++--

[PATCH 06/16] drivers/fsi: Add slave definition

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr Add the initial fsi slave device, which is private to the core code. This will be a child of the master, and parent to endpoint devices. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 9 + 1 file changed, 9 insertions(+) diff --g

[PATCH 15/16] drivers/fsi: Add documentation for GPIO bindings

2016-12-06 Thread Chris Bostic
From: Chris Bostic Add fsi master gpio device tree binding documentation Signed-off-by: Chris Bostic --- .../devicetree/bindings/fsi/fsi-master-gpio.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/fsi-master-gpio.tx

[PATCH 03/16] drivers/fsi: add driver to device matches

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr Driver bind to devices based on the engine types & (optional) versions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 21 + include/linux/fsi.h| 21 +++-- 2 files changed, 40 insertions(+), 2 delet

[PATCH 13/16] drivers/fsi: Set slave SMODE to init communication

2016-12-06 Thread Chris Bostic
From: Chris Bostic Set CFAM to appropriate ID so that the controlling master can manage link memory ranges. Add slave engine register definitions. Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 90 +- 1 file changed, 89 insertions(+),

[PATCH 07/16] drivers/fsi: Add empty master scan

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr When a new fsi master is added, we will need to scan its links, and slaves attached to those links. This change introduces a little shell to iterate the links, which we will populate with the actual slave scan in a later change. Signed-off-by: Jeremy Kerr Signed-off-by: Chris

[PATCH 14/16] drivers/fsi: Add master unscan

2016-12-06 Thread Chris Bostic
From: Chris Bostic Allow a master to undo a previous scan. Should a master scan a bus twice it will need to ensure it doesn't double register any previously detected device. Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 36 +++- drivers/fsi/fsi-mas

[PATCH 16/16] drivers/fsi: Add GPIO based FSI master

2016-12-06 Thread Chris Bostic
From: Chris Bostic Implement a FSI master using GPIO. Will generate FSI protocol for read and write commands to particular addresses. Sends master command and waits for and decodes a slave response. Includes Jeremy Kerr's original GPIO master base commit. Signed-off-by: Jeremy Kerr Signed-of

[PATCH 05/16] drivers/fsi: Add fake master driver

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr For debugging, add a fake master driver, that only supports reads, returning a fixed set of data. Includes changes from Chris Bostic . Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/Kconfig | 10 + drivers/fsi/Makefile | 1 +

[PATCH 02/16] drivers/fsi: Add device & driver definitions

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr Add structs for fsi devices & drivers, and struct device conversion functions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- include/linux/fsi.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/fsi.h b/include/linux/fsi.h index 47aa

Re: [RFC][PATCH 1/3 v2] usb: dwc2: Add extcon support to dwc2 driver

2016-12-06 Thread John Stultz
On Tue, Dec 6, 2016 at 3:17 PM, John Youn wrote: > On 12/6/2016 12:06 AM, John Stultz wrote: >> This patch wires up extcon support to the dwc2 driver >> so that devices that use a modern generic phy driver >> and don't use the usb-phy infrastructure can still >> signal connect/disconnect events. >

drivers/auxdisplay/img-ascii-lcd.c:384: undefined reference to `devm_ioremap_resource'

2016-12-06 Thread kbuild test robot
Hi Paul, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bc3913a5378cd0ddefd1dfec6917cc12eb23a946 commit: 0cad855fbd083ee5fd0584a47c2aaa7dca936fd4 auxdisplay: img-ascii-lcd: driver for simple ASCII LCD displays date

Re: mmotm 2016-11-30-15-46 uploaded

2016-12-06 Thread Stephen Rothwell
Hi Andrew, On Thu, 1 Dec 2016 11:44:31 +1100 Stephen Rothwell wrote: > > On Wed, 30 Nov 2016 15:47:33 -0800 a...@linux-foundation.org wrote: > > > > * ima-define-a-canonical-binary_runtime_measurements-list-format.patch > > This patch tries to patch the file > > Documentation/kernel-parame

Re: [PATCH] ipmi: bt-bmc: Use a regmap for register access

2016-12-06 Thread Andrew Jeffery
On Tue, 2016-12-06 at 16:02 +0100, Cédric Le Goater wrote: > [ this is a resend bc of some mailing list issues]  Thanks for resending. > > On 12/06/2016 03:57 AM, Andrew Jeffery wrote: > > The registers for the bt-bmc device live under the Aspeed LPC > > controller. Devicetree bindings have rece

Re: [PATCH]net:sched:release lock before tcf_dump_walker() normal return to avoid deadlock

2016-12-06 Thread Cong Wang
On Tue, Dec 6, 2016 at 5:50 AM, Jamal Hadi Salim wrote: > On 16-12-06 12:36 AM, Feng Deng wrote: >> >> From: Feng Deng >> >> release lock before tcf_dump_walker() normal return to avoid deadlock >> > > /Scratching my head. > > I am probably missing something obvious. > What are the condition under

Re: [PATCH v5 11/14] ASoC: add simple-graph-card document

2016-12-06 Thread Kuninori Morimoto
Hi Rob > > Do you mean, is this OK for OF graph ? > > Yes, something like this. Wow!! Thanks !! it makes new OF-graph easier !! > > in driver point of view, "I2S" is sound card here. > > Well, that seems odd to me because I2S should just be the h/w block > that interfaces to I2S/SSI signals.

[PATCH v5 05/13] net: ethernet: ti: cpts: fix registration order

2016-12-06 Thread Grygorii Strashko
The ptp clock registered before spinlock, which is protecting it, and before timecounter and cyclecounter initialization in cpts_register(). So, ensure that ptp clock is registered the last, after everything else is done. Signed-off-by: Grygorii Strashko Acked-by: Richard Cochran --- drivers/n

[PATCH v5 00/13] net: ethernet: ti: cpts: update and fixes

2016-12-06 Thread Grygorii Strashko
It is preparation series intended to clean up and optimize TI CPTS driver to facilitate further integration with other TI's SoCs like Keystone 2. Changes in v5: - fixed copy paste error in cpts_release - reworked cc.mult/shift and cc_mult initialization Changes in v4: - fixed build error in patc

[PATCH v5 08/13] net: ethernet: ti: cpts: drop excessive writes to CTRL and INT_EN regs

2016-12-06 Thread Grygorii Strashko
CPTS module and IRQs are always enabled when CPTS is registered, before starting overflow check work, and disabled during deregistration, when overflow check work has been canceled already. So, It doesn't require to (re)enable CPTS module and IRQs in cpts_overflow_check(). Signed-off-by: Grygorii

[PATCH v5 02/13] net: ethernet: ti: allow cpts to be built separately

2016-12-06 Thread Grygorii Strashko
TI CPTS IP is used as part of TI OMAP CPSW driver, but it's also present as part of NETCP on TI Keystone 2 SoCs. So, It's required to enable build of CPTS for both this drivers and this can be achieved by allowing CPTS to be built separately. Hence, allow cpts to be built separately and convert it

[PATCH v5 10/13] net: ethernet: ti: cpts: move dt props parsing to cpts driver

2016-12-06 Thread Grygorii Strashko
Move DT properties parsing into CPTS driver to simplify CPSW code and CPTS driver porting on other SoC in the future (like Keystone 2) - with this change it will not be required to add the same DT parsing code in Keystone 2 NETCP driver. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/

[PATCH v5 09/13] net: ethernet: ti: cpts: rework initialization/deinitialization

2016-12-06 Thread Grygorii Strashko
The current implementation CPTS initialization and deinitialization (represented by cpts_register/unregister()) does too many static initialization from .ndo_open(), which is reasonable to do once at probe time instead, and also require caller to allocate memory for struct cpts, which is internal f

[PATCH v5 01/13] net: ethernet: ti: cpts: switch to readl/writel_relaxed()

2016-12-06 Thread Grygorii Strashko
Switch to readl/writel_relaxed() APIs, because this is recommended API and the CPTS IP is reused on Keystone 2 SoCs where LE/BE modes are supported. Signed-off-by: Grygorii Strashko Acked-by: Richard Cochran --- drivers/net/ethernet/ti/cpts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletio

[PATCH v5 03/13] net: ethernet: ti: cpsw: minimize direct access to struct cpts

2016-12-06 Thread Grygorii Strashko
This will provide more flexibility in changing CPTS internals and also required for further changes. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw.c | 28 +++- drivers/net/ethernet/ti/cpts.h | 39 +++ 2 files changed

[PATCH v5 12/13] net: ethernet: ti: cpts: calc mult and shift from refclk freq

2016-12-06 Thread Grygorii Strashko
The cyclecounter mult and shift values can be calculated based on the CPTS rfclk frequency and timekeepnig framework provides required algos and API's. Hence, calc mult and shift basing on CPTS rfclk frequency if both cpts_clock_shift and cpts_clock_mult properties are not provided in DT (the basi

[PATCH v5 04/13] net: ethernet: ti: cpts: fix unbalanced clk api usage in cpts_register/unregister

2016-12-06 Thread Grygorii Strashko
There are two issues with TI CPTS code which are reproducible when TI CPSW ethX device passes few up/down iterations: - cpts refclk prepare counter continuously incremented after each up/down iteration; - devm_clk_get(dev, "cpts") is called many times. Hence, fix these issues by using clk_disable_

[PATCH v5 06/13] net: ethernet: ti: cpts: disable cpts when unregistered

2016-12-06 Thread Grygorii Strashko
The cpts now is left enabled after unregistration. Hence, disable it in cpts_unregister(). Signed-off-by: Grygorii Strashko Acked-by: Richard Cochran --- drivers/net/ethernet/ti/cpts.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/

[PATCH v5 07/13] net: ethernet: ti: cpts: clean up event list if event pool is empty

2016-12-06 Thread Grygorii Strashko
From: WingMan Kwok When a CPTS user does not exit gracefully by disabling cpts timestamping and leaving a joined multicast group, the system continues to receive and timestamps the ptp packets which eventually occupy all the event list entries. When this happns, the added code tries to remove so

[PATCH v5 11/13] clocksource: export the clocks_calc_mult_shift to use by timestamp code

2016-12-06 Thread Grygorii Strashko
From: Murali Karicheri The CPSW CPTS driver is capable of doing timestamping on tx/rx packets and requires to know mult and shift factors for timestamp conversion from raw value to nanoseconds (ptp clock). Now these mult and shift factors are calculated manually and provided through DT, which mak

[PATCH v5 13/13] net: ethernet: ti: cpts: fix overflow check period

2016-12-06 Thread Grygorii Strashko
The CPTS drivers uses 8sec period for overflow checking with assumption that CPTS retclk will not exceed 500MHz. But that's not true on some TI platforms (Kesytone 2). As result, it is possible that CPTS counter will overflow more than once between two readings. Hence, fix it by selecting overflow

[PATCHv5 03/11] arm64: Move some macros under #ifndef __ASSEMBLY__

2016-12-06 Thread Laura Abbott
Several macros for various x_to_y exist outside the bounds of an __ASSEMBLY__ guard. Move them in preparation for support for CONFIG_DEBUG_VIRTUAL. Reviewed-by: Mark Rutland Tested-by: Mark Rutland Signed-off-by: Laura Abbott --- v5: No changes --- arch/arm64/include/asm/memory.h | 38 +++

[PATCHv5 07/11] drivers: firmware: psci: Use __pa_symbol for kernel symbol

2016-12-06 Thread Laura Abbott
__pa_symbol is technically the macro that should be used for kernel symbols. Switch to this as a pre-requisite for DEBUG_VIRTUAL which will do bounds checking. Signed-off-by: Laura Abbott --- v5: Split off from arm64 __pa_symbol conversion --- drivers/firmware/psci.c | 2 +- 1 file changed, 1 in

[PATCHv5 09/11] mm/kasan: Switch to using __pa_symbol and lm_alias

2016-12-06 Thread Laura Abbott
__pa_symbol is the correct API to find the physical address of symbols. Switch to it to allow for debugging APIs to work correctly. Other functions such as p*d_populate may call __pa internally. Ensure that the address passed is in the linear region by calling lm_alias. Reviewed-by: Mark Rutland

[PATCHv5 11/11] arm64: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-06 Thread Laura Abbott
x86 has an option CONFIG_DEBUG_VIRTUAL to do additional checks on virt_to_phys calls. The goal is to catch users who are calling virt_to_phys on non-linear addresses immediately. This inclues callers using virt_to_phys on image addresses instead of __pa_symbol. As features such as CONFIG_VMAP_STACK

[PATCHv5 05/11] mm: Introduce lm_alias

2016-12-06 Thread Laura Abbott
Certain architectures may have the kernel image mapped separately to alias the linear map. Introduce a macro lm_alias to translate a kernel image symbol into its linear alias. This is used in part with work to add CONFIG_DEBUG_VIRTUAL support for arm64. Signed-off-by: Laura Abbott --- v5: Split

[PATCHv5 06/11] arm64: Use __pa_symbol for kernel symbols

2016-12-06 Thread Laura Abbott
__pa_symbol is technically the marcro that should be used for kernel symbols. Switch to this as a pre-requisite for DEBUG_VIRTUAL which will do bounds checking. Tested-by: James Morse Signed-off-by: Laura Abbott --- v5: #include more places, drop arm64 specific lm_alias, correct hibernation su

[PATCHv5 08/11] kexec: Switch to __pa_symbol

2016-12-06 Thread Laura Abbott
__pa_symbol is the correct api to get the physical address of kernel symbols. Switch to it to allow for better debug checking. Acked-by: "Eric W. Biederman" Signed-off-by: Laura Abbott --- v5: No changes, just acks --- kernel/kexec_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCHv5 10/11] mm/usercopy: Switch to using lm_alias

2016-12-06 Thread Laura Abbott
The usercopy checking code currently calls __va(__pa(...)) to check for aliases on symbols. Switch to using lm_alias instead. Reviewed-by: Mark Rutland Tested-by: Mark Rutland Acked-by: Kees Cook Signed-off-by: Laura Abbott --- v5: No changes, just acks --- mm/usercopy.c | 4 ++-- 1 file cha

[PATCHv5 02/11] mm/cma: Cleanup highmem check

2016-12-06 Thread Laura Abbott
6b101e2a3ce4 ("mm/CMA: fix boot regression due to physical address of high_memory") added checks to use __pa_nodebug on x86 since CONFIG_DEBUG_VIRTUAL complains about high_memory not being linearlly mapped. arm64 is now getting support for CONFIG_DEBUG_VIRTUAL as well. Rather than add an explosion

[PATCHv5 04/11] arm64: Add cast for virt_to_pfn

2016-12-06 Thread Laura Abbott
virt_to_pfn lacks a cast at the top level. Don't rely on __virt_to_phys and explicitly cast to unsigned long. Reviewed-by: Mark Rutland Tested-by: Mark Rutland Signed-off-by: Laura Abbott --- v5: No changes --- arch/arm64/include/asm/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[PATCHv5 00/11] CONFIG_DEBUG_VIRTUAL for arm64

2016-12-06 Thread Laura Abbott
Hi, This is v5 of the series to add CONFIG_DEBUG_VIRTUAL for arm64. This mostly contains minor fixups including adding a few extra headers around and splitting things out into a few more sub-patches. With a few more acks I think this should be ready to go. More testing is always appreciated thoug

[PATCHv5 01/11] lib/Kconfig.debug: Add ARCH_HAS_DEBUG_VIRTUAL

2016-12-06 Thread Laura Abbott
DEBUG_VIRTUAL currently depends on DEBUG_KERNEL && X86. arm64 is getting the same support. Rather than add a list of architectures, switch this to ARCH_HAS_DEBUG_VIRTUAL and let architectures select it as appropriate. Acked-by: Ingo Molnar Reviewed-by: Mark Rutland Tested-by: Mark Rutland Sugg

[PATCH 2/2] Input: i8042 - change dbg to pr_warn when returning errors

2016-12-06 Thread Marcos Paulo de Souza
Signed-off-by: Marcos Paulo de Souza --- drivers/input/serio/i8042.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 1c70747..bc54ce5 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c

mmotm 2016-12-06-15-45 uploaded

2016-12-06 Thread akpm
The mm-of-the-moment snapshot 2016-12-06-15-45 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

[PATCH 1/2] Input: i8042 - Add warn when a command can't write its parameter

2016-12-06 Thread Marcos Paulo de Souza
This can happen in cases like bug #102951[1], so add a proper warn as done in wait_read. [1] https://bugzilla.kernel.org/show_bug.cgi?id=102951 Signed-off-by: Marcos Paulo de Souza --- drivers/input/serio/i8042.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/inp

Re: unable to load modules with CONFIG_MODVERSIONS=y after commit 8ab2ae655b

2016-12-06 Thread Philip Müller
Hi all, just for the record. I was also not able to boot my system. In x86_64 architecture it however worked, only in i686 I had to revert 8ab2ae6 and apply Adam's patch to make it work: https://patchwork.kernel.org/patch/9408985 greez, Philip

Re: [RFC][PATCH 1/3 v2] usb: dwc2: Add extcon support to dwc2 driver

2016-12-06 Thread John Youn
On 12/6/2016 12:06 AM, John Stultz wrote: > This patch wires up extcon support to the dwc2 driver > so that devices that use a modern generic phy driver > and don't use the usb-phy infrastructure can still > signal connect/disconnect events. > > Cc: Wei Xu > Cc: Guodong Xu > Cc: Amit Pundir > C

Re: [PATCH] clk: uniphier: Fix build with gcc-4.4.

2016-12-06 Thread Stephen Boyd
On 12/03, Masahiro Yamada wrote: > Hi Vinson, > > 2016-12-03 9:37 GMT+09:00 Vinson Lee : > > gcc-4.4 has issues with anonymous unions in initializers. > > > > CC drivers/clk/uniphier/clk-uniphier-sys.o > > drivers/clk/uniphier/clk-uniphier-sys.c:45: error: unknown field ‘factor’ > > specif

Re: [PATCH 1/2] dt-bindings: mmc: add DT binding for S3C24XX MMC/SD/SDIO controller

2016-12-06 Thread Rob Herring
On Fri, Dec 02, 2016 at 09:48:45AM +0900, Jaehoon Chung wrote: > On 12/02/2016 09:14 AM, Sergio Prado wrote: > > Adds the device tree bindings description for Samsung S3C24XX > > MMC/SD/SDIO controller, used as a connectivity interface with external > > MMC, SD and SDIO storage mediums. > > > > Si

Re: linux-next: build failure after merge of the pinctrl tree

2016-12-06 Thread Peter Rosin
On 2016-12-06 23:46, Stephen Rothwell wrote: > Hi Peter, > > On Tue, 6 Dec 2016 23:27:48 +0100 Peter Rosin wrote: >> >> The bug you are referring to is in the gpio tree, not pinctrl. >> That had me confused for a while, and is the reason I'm writing >> this. Maybe the next person need not be conf

[PATCH] x86: Optimize TIF checking in __switch_to_xtra.

2016-12-06 Thread Kyle Huey
For the TIF_BLOCKSTEP and TIF_NOTSC cases, __switch_to_xtra only needs to act if the value of the flags changes with the task switch. That leads to C code like: if (test_tsk_thread_flag(prev_p, TIF_BLOCKSTEP) ^ test_tsk_thread_flag(next_p, TIF_BLOCKSTEP)) { /* do work */ }

[PATCH V4 08/11] megaraid_sas: Enable or Disable Fast path based on the PCI Threshold Bandwidth

2016-12-06 Thread Sasikumar Chandrasekaran
Large SEQ IO workload should sent as non fast path commands This patch is depending on patch 7 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 8 + drivers/scsi/megaraid/megaraid_sas_base.c | 48 + drivers/scsi/megarai

[PATCH V4 02/11] megaraid_sas: 128 MSIX Support

2016-12-06 Thread Sasikumar Chandrasekaran
SAS3.5 Generic Megaraid based Controllers will have the support for 128 MSI-X vectors, resulting in the need to support 128 reply queues This patch is depending on patch 1 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 1 + drivers/scsi/megaraid/mega

[PATCH V4 06/11] megaraid_sas: Dynamic Raid Map Changes for SAS3.5 Generic Megaraid Controllers

2016-12-06 Thread Sasikumar Chandrasekaran
SAS3.5 Generic Megaraid Controllers FW will support new dynamic RaidMap to have different sizes for different number of supported VDs. This patch is depending on patch 5 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 7 + drivers/scsi/megaraid/megar

[PATCH V4 07/11] megaraid_sas: Add the Support for SAS3.5 Generic Megaraid Controllers Capabilities

2016-12-06 Thread Sasikumar Chandrasekaran
The Megaraid driver has to support the SAS3.5 Generic Megaraid Controllers Firmware functionality. This patch is depending on patch 6 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas_base.c | 53 ++--- drivers/scsi/megaraid/megaraid_sas_f

[PATCH V4 04/11] megaraid_sas: SAS3.5 Generic Megaraid Controllers Stream Detection and IO Coalescing

2016-12-06 Thread Sasikumar Chandrasekaran
Detect sequential IO streams and pass those IOs directly to FW. This patch is depending on patch 3 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 5 +- drivers/scsi/megaraid/megaraid_sas_base.c | 43 +++- drivers/scsi/megaraid/megaraid_sas_fp.

[PATCH V4 09/11] megaraid_sas: ldio_outstanding variable is not decremented in completion path

2016-12-06 Thread Sasikumar Chandrasekaran
ldio outstanding variable needs to be decremented in io completion path for iMR dual queue depth This patch is depending on patch 8 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git

[PATCH V4 10/11] megaraid_sas: Implement the PD Map support for SAS3.5 Generic Megaraid Controllers

2016-12-06 Thread Sasikumar Chandrasekaran
Update Linux driver to use new pdTargetId field for JBOD target ID This patch is depending on patch 9 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 105 +--- drivers/scsi/megaraid/megaraid_sas_base.c | 3 + drivers/scsi/meg

[PATCH V4 03/11] megaraid_sas: EEDP Escape Mode Support for SAS3.5 Generic Megaraid Controllers

2016-12-06 Thread Sasikumar Chandrasekaran
An UNMAP command on a PI formatted device will leave the Logical Block Application Tag and Logical Block Reference Tag as all F's (for those LBAs that are unmapped). To avoid IO errors if those LBAs are subsequently read before they are written with valid tag fields, the MPI SCSI IO requests nee

[PATCH V4 01/11] megaraid_sas: Add new pci device Ids for SAS3.5 Generic Megaraid Controllers

2016-12-06 Thread Sasikumar Chandrasekaran
This patch contains new pci device ids for SAS3.5 Generic Megaraid Controllers V4: Removed the not supported PCI Device Ids Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 8 +++- drivers/scsi/megaraid/megaraid_sas_base.c | 14 +- dri

[PATCH V4 05/11] megaraid_sas: SAS3.5 Generic Megaraid Controllers Fast Path for RAID 1/10 Writes

2016-12-06 Thread Sasikumar Chandrasekaran
To improve RAID 1/10 Write performance, OS drivers need to issue the required Write IOs as Fast Path IOs (after the appropriate checks allowing Fast Path to be used) to the appropriate physical drives (translated from the OS logical IO) and wait for all Write IOs to complete. If any of the Writ

[PATCH V4 11/11] megaraid_sas: driver version upgrade

2016-12-06 Thread Sasikumar Chandrasekaran
Upgrade driver version. This patch is depending on patch 10 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index

[PATCH V4 00/11] megaraid_sas: Updates for scsi-next

2016-12-06 Thread Sasikumar Chandrasekaran
Sasikumar Chandrasekaran (11): megaraid_sas: Add new pci device Ids for SAS3.5 Generic Megaraid Controllers megaraid_sas: 128 MSIX Support megaraid_sas: EEDP Escape Mode Support for SAS3.5 Generic Megaraid Controllers megaraid_sas: SAS3.5 Generic Megaraid Controllers Stream Detecti

[PATCH v2 5/6] fscrypt: Delay bounce page pool allocation until needed

2016-12-06 Thread David Gstir
Since fscrypt users can now indicated if fscrypt_encrypt_page() should use a bounce page, we can delay the bounce page pool initialization util it is really needed. That is until fscrypt_operations has no FS_CFLG_OWN_PAGES flag set. Signed-off-by: David Gstir --- fs/crypto/crypto.c | 9 +++

[PATCH v2 2/6] fscrypt: Never allocate fscrypt_ctx on in-place encryption

2016-12-06 Thread David Gstir
In case of in-place encryption fscrypt_ctx was allocated but never released. Since we don't need it for in-place encryption, we skip allocating it. Fixes: 1c7dcf69eea3 ("fscrypt: Add in-place encryption mode") Signed-off-by: David Gstir --- fs/crypto/crypto.c | 30 +++---

Re: Tearing down DMA transfer setup after DMA client has finished

2016-12-06 Thread Mason
On 06/12/2016 16:34, Måns Rullgård wrote: > Mason writes: > >> Meh. The two controller blocks share the I/O pins to the outside >> world, so it's not possible to have two concurrent accesses. > > OK, you failed to mention that part. Why are there two controllers at > all if only one or the othe

[PATCH v2 0/6] UBIFS related fscrypt updates

2016-12-06 Thread David Gstir
This series applies on top of Ted's fscrypt tree[0] addresses the review comments from Eric. Changes since v1: - Never allocate fscrypt_ctx in "own pages" mode - Fix code comments - Fix issues reported by checkpatch.pl [0] git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git fscrypt Davi

[PATCH v2 3/6] fscrypt: Cleanup fscrypt_{decrypt,encrypt}_page()

2016-12-06 Thread David Gstir
- Improve documentation - Add BUG_ON(len == 0) to avoid accidental switch of offs and len parameters - Improve variable names for readability Signed-off-by: David Gstir --- fs/crypto/crypto.c | 93 +++- include/linux/fscrypto.h | 8 ++--- 2 file

[PATCH v2 4/6] fscrypt: Cleanup page locking requirements for fscrypt_{decrypt,encrypt}_page()

2016-12-06 Thread David Gstir
Rename the FS_CFLG_INPLACE_ENCRYPTION flag to FS_CFLG_OWN_PAGES which, when set, indicates that the fs uses pages under its own control as opposed to writeback pages which require locking and a bounce buffer for encryption. Signed-off-by: David Gstir --- fs/crypto/crypto.c | 11 ---

[PATCH v2 1/6] fscrypt: Use correct index in decrypt path.

2016-12-06 Thread David Gstir
Actually use the fs-provided index instead of always using page->index which is only set for page-cache pages. Fixes: 9c4bb8a3a9b4 ("fscrypt: Let fs select encryption index/tweak") Signed-off-by: David Gstir --- fs/crypto/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH v2 6/6] fscrypt: Rename FS_WRITE_PATH_FL to FS_CTX_HAS_BOUNCE_BUFFER_FL

2016-12-06 Thread David Gstir
... to better explain its purpose after introducing in-place encryption without bounce buffer. Signed-off-by: David Gstir --- fs/crypto/crypto.c | 6 +++--- include/linux/fscrypto.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto

[PATCH RT] net: Have __napi_schedule_irqoff() disable interrupts on RT

2016-12-06 Thread Steven Rostedt
A customer hit a crash where the napi sd->poll_list became corrupted. The customer had the bnx2x driver, which does a __napi_schedule_irqoff() in its interrupt handler. Unfortunately, when running with CONFIG_PREEMPT_RT_FULL, this interrupt handler is run as a thread and is preemptable. The call to

Re: [PATCH 1/3] ARM: Define KERNEL_START and KERNEL_END

2016-12-06 Thread Florian Fainelli
On 12/06/2016 02:43 PM, Chris Brandt wrote: > On 12/6/2016, Florian Fainelli wrote: >> diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c >> index 4001dd15818d..18ef688a796e 100644 >> --- a/arch/arm/mm/mmu.c >> +++ b/arch/arm/mm/mmu.c >> @@ -1437,12 +1437,8 @@ static void __init kmap_init(void) >>

Re: linux-next: build failure after merge of the pinctrl tree

2016-12-06 Thread Stephen Rothwell
Hi Peter, On Tue, 6 Dec 2016 23:27:48 +0100 Peter Rosin wrote: > > The bug you are referring to is in the gpio tree, not pinctrl. > That had me confused for a while, and is the reason I'm writing > this. Maybe the next person need not be confused... Part of the gpio tree has been merged into the

RE: [PATCH 7/8] staging: fsl-dpaa2/eth: Add TODO file

2016-12-06 Thread Stuart Yoder
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, December 06, 2016 11:56 AM > To: Stuart Yoder > Cc: Ruxandra Ioana Radulescu ; > de...@driverdev.osuosl.org; linux- > ker...@vger.kernel.org; ag...@suse.de; a...@arndb.de; Alexandru Marginean > ;

<    1   2   3   4   5   6   7   8   9   >