[PATCH v11 0/8] i2c: Add FSI-attached I2C master algorithm

2018-07-05 Thread Eddie James
This series adds an algorithm for an I2C master physically located on an FSI slave device. The I2C master has multiple ports, each of which may be connected to an I2C slave. Access to the I2C master registers is achieved over FSI bus. Due to the multi-port nature of the I2C master, the driver inst

[PATCH v11 6/8] i2c: fsi: Add I2C master locking

2018-07-05 Thread Eddie James
Since there are many ports per master, each with it's own adapter and chardev, we need some locking to prevent transfers from changing the master state while other transfers are in progress. Signed-off-by: Eddie James Reviewed-by: Andy Shevchenko --- drivers/i2c/busses/i2c-fsi.c | 16 ++

[PATCH v11 2/8] i2c: Add FSI-attached I2C master algorithm

2018-07-05 Thread Eddie James
Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed up during an FSI scan. Signed-off-by: Eddie James Reviewed-by: Andy Shevchenko --- drivers/i2c/busses/Kconfig | 11 ++ drivers/i2c/busses/Mak

[PATCH v11 8/8] MAINTAINERS: Add Eddie as the maintainer for the FSI-attached I2C driver

2018-07-05 Thread Eddie James
Signed-off-by: Eddie James --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 10fd4c0..63f6d41 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5888,6 +5888,14 @@ F: fs/crypto/ F: include/linux/fscrypt*.h F: Documentation/file

[PATCH v11 3/8] i2c: fsi: Add port structures

2018-07-05 Thread Eddie James
Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 91 1 file changed, 91 insertions(+) diff --git a/drivers

[PATCH v11 5/8] i2c: fsi: Add transfer implementation

2018-07-05 Thread Eddie James
Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Eddie James Reviewed-by: Andy Shevchenko --- drivers/i2c/busses/i2c-fsi.c | 195 ++- 1 file changed, 193 insertio

[PATCH v11 7/8] i2c: fsi: Add bus recovery

2018-07-05 Thread Eddie James
Bus recovery should reset the bus with the standard i2c recovery procedure. Populate the necessary fields so that the standard procedure can perform the reset. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 132 +++ 1 file changed, 132 inser

[PATCH v11 4/8] i2c: fsi: Add abort and hardware reset procedures

2018-07-05 Thread Eddie James
Add abort procedure for failed transfers. Add engine reset procedure that is executed during the abort to recover from various fault conditions. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 91 1 file changed, 91 insertions(+) diff -

[PATCH v11 1/8] dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation

2018-07-05 Thread Eddie James
Document the bindings. Signed-off-by: Eddie James Acked-by: Rob Herring --- Documentation/devicetree/bindings/i2c/i2c-fsi.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt diff --git a/Documentation/devicetr

Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks

2018-07-05 Thread Andrea Parri
On Thu, Jul 05, 2018 at 08:38:36PM +0200, Andrea Parri wrote: > > No, I'm definitely not pushing for anything stronger. I'm still just > > wondering if the name "RCsc" is right for what you described. For > > example, Andrea just said this in a parallel email: > > > > > "RCsc" as ordering everyt

Re: [PATCH 8/8] watchdog: stpmu1: add stpmu1 watchdog driver

2018-07-05 Thread Guenter Roeck
On 07/05/2018 08:14 AM, Pascal PAILLET-LME wrote: From: pascal paillet The stpmu1 PMIC embeds a watchdog which is disabled by default. As soon as the watchdog is started, it must be refreshed periodically otherwise the PMIC goes off. Signed-off-by: pascal paillet --- drivers/watchdog/Kconfi

Re: [PATCH v10 4/7] i2c: fsi: Add abort and hardware reset procedures

2018-07-05 Thread Eddie James
On 07/02/2018 01:15 PM, Wolfram Sang wrote: Hi Eddie, I think this is a way too aggressive recovery. Your are doing the 9 pulse toggles basically on any error while this is only when the device keeps SDA low and you want to recover from that. If SDA is not stuck low, sending a STOP should do

Re: [PATCH v10 5/7] i2c: fsi: Add transfer implementation

2018-07-05 Thread Eddie James
On 07/02/2018 01:24 PM, Wolfram Sang wrote: + if (msg->flags & I2C_M_RD) + cmd |= I2C_CMD_READ; Since you support MANGLING, I'd think you can easily support I2C_M_REV_DIR_ADDR here, too? Hm, I don't really understand the purpose of that flag. From the docs: This toggles

[PATCH] checkpatch: check for #if 0/#if 1

2018-07-05 Thread Prakruthi Deepak Heragu
The #if 0 and #if 1 are used to toggle features. Wharn if #if 1 or #if 0 is present. If #if 0 is present, warn about that part of code being redundant and that it could be removed. Also, if #if 1 is present, suggest that if the code is required then the #if 1 can be removed. In either case, these p

Re: [PATCH] Patch enabling Fn function keys for Laptop Asus G730 (keyboard 0x1869)

2018-07-05 Thread jan
On 25/06/2018 15:20, Jiri Kosina wrote: On Thu, 14 Jun 2018, vereecke@skynet.be wrote: Attached is a patch enabling (most of) the Fn function keys for the Asus ROG Strix GL730 Laptop. The keyboard identifies as a USB device 0x1869. This patch enables: volume/mute keys, ROG key, rew/pl

Re: [PATCH] irqchip/gic: check return value of of_address_to_resource

2018-07-05 Thread Marc Zyngier
Hi Bo, On Thu, 5 Jul 2018 11:20:59 -0700 Bo Yan wrote: > The of_address_to_resource returns 0 if successful. gic_check_eoimode > calls it without checking the return value. This induces Coverity > warning: "Unchecked return value". > > Return false from gic_check_eoimode if of_address_to_resour

Re: [PATCH] irqchip/gic: check return value of of_address_to_resource

2018-07-05 Thread Bo Yan
Marc, I'm also wondering if of_address_to_resource can really fail in this particular case? What if we just explicitly discard the return value like this: (void)of_address_to_resource(node, 1, &cpuif_res); This suppresses Coverity warning by explicitly stating we are 100% sure the function

Re: [PATCH] fixup! firmware: raspberrypi: Remove VLA usage

2018-07-05 Thread Eric Anholt
Kees Cook writes: > On Mon, Jul 2, 2018 at 12:45 PM, Eric Anholt wrote: >> Kees - with this fix to your patch, the kernel boots again (otherwise, >> the FW would try to parse the uninitialized bits of stack and throw >> errors). If you're good with me squashing this in, I'll do so and >> send i

Re: iwlwifi problem with iommu/intel-iommu: Enable CONFIG_DMA_DIRECT_OPS=y and clean up intel_{alloc,free}_coherent()

2018-07-05 Thread Christoph Hellwig
On Mon, Jul 02, 2018 at 08:23:00PM +0200, Fabio Coatti wrote: > Yep, it does. I issued a > git revert d657c5c73ca987214a6f9436e435b34fc60f332a > on mainline (4.18-rc3) and recompiled, the card works just fine. Thanks for confirming. I'll end the revert to Linus this week.

Re: [PATCH] irqchip/gic: check return value of of_address_to_resource

2018-07-05 Thread Bo Yan
Marc, Sorry for the previous reply. My email settings were not correct, so it inserted those confidentiality text, which was not what I intended. This is what I think: diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index ced10c4..0b60bb0 100644 --- a/drivers/irqchip/irq-gi

[PATCH 1/2] staging:fsl-mc: Move DPIO from staging to drivers/soc/fsl

2018-07-05 Thread Roy Pledge
Move the NXP DPIO (Datapath I/O Driver) out of the drivers/staging directory and into the drivers/soc/fsl directory. The DPIO driver enables access to Queue and Buffer Manager (QBMAN) hardware on NXP DPAA2 devices. This is a prerequisite to moving the DPAA2 Ethernet driver out of staging. Signed-

[PATCH 0/2] staging/fsl-mc/bus: Move DPIO from staging to drivers/soc/fsl

2018-07-05 Thread Roy Pledge
Move the NXP DPIO (Datapath I/O driver) from the staging/fsl-mc/bus/dpio directory to the drivers/soc/fsl directory. The DPIO driver enables access to the Queue and Buffer Managemer (QBMAN) hardware of NXP DPAA2 devices. This is a prerequiste for moving the DPAA2 Ethernet device driver from the st

[PATCH 2/2] drivers/staging: Remove fsl-mc driver from staging

2018-07-05 Thread Roy Pledge
Remove the staging/drivers/fsl-mc directory from the staging area now that all the components have been moved to the main kernel areas. Signed-off-by: Roy Pledge --- drivers/staging/Kconfig | 2 -- drivers/staging/Makefile| 1 - drivers/staging/fsl-mc/Kconfig | 2 --

Re: [PATCH] sample/vfio-mdev: Change return type to vm_fault_t

2018-07-05 Thread Alex Williamson
On Wed, 4 Jul 2018 21:00:14 +0530 Souptick Joarder wrote: > convert mbochs_region_vm_fault and mbochs_dmabuf_vm_fault > to return vm_fault_t type. > > Signed-off-by: Souptick Joarder > --- > samples/vfio-mdev/mbochs.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH v22 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2018-07-05 Thread Rob Herring
On Tue, Jul 3, 2018 at 5:39 PM houlong wei wrote: > > On Tue, 2018-07-03 at 10:30 +0800, Rob Herring wrote: > > On Wed, Jun 27, 2018 at 07:16:09PM +0800, Houlong Wei wrote: > > > This adds documentation for the MediaTek Global Command Engine (GCE) unit > > > found in MT8173 SoCs. > > > > > > Signe

Re: [PATCH v12 05/13] x86/sgx: architectural structures

2018-07-05 Thread Jarkko Sakkinen
On Thu, Jul 05, 2018 at 08:31:42AM -0700, Dave Hansen wrote: > On 07/03/2018 11:19 AM, Jarkko Sakkinen wrote: > > +struct sgx_secs { > > + uint64_t size; > > + uint64_t base; > > + uint32_t ssaframesize; > > + uint32_t miscselect; > > + uint8_t reserved1[SGX_SECS_RESERVED1_SIZE]; > > +

[RFC V4 2/4] arm_pmu: acpi: add support for CPU PMU variant detection

2018-07-05 Thread Agustin Vega-Frias
DT allows CPU PMU variant detection via the PMU device compatible property. ACPI does not have an equivalent mechanism so we introduce a probe table to allow this via a device nested inside the CPU device in the DSDT: Device (CPU0) { Name (_HID, "ACPI0007" /* Processor Device */) ... D

[RFC V4 0/3] arm_pmu: acpi: variant support and QCOM Falkor extensions

2018-07-05 Thread Agustin Vega-Frias
This series is a complete re-design of V1 of the QCOM Falkor extensions [1], it introduces a probe table based on the HID of a device nested under the CPU device to allow variant detection and arm_pmu customization. The first patch adds an additional section at the end of each ACPI probe table. Th

[RFC V4 4/4] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-07-05 Thread Agustin Vega-Frias
Selection of these events can be envisioned as indexing them from a 3D matrix: - the first index selects a Region Event Selection Register (PMRESRx_EL0) - the second index selects a group from which only one event at a time can be selected - the third index selects the event These events are enc

[RFC V4 3/4] perf: qcom: Add PC capture support to CPU PMU

2018-07-05 Thread Agustin Vega-Frias
PC capture is an IMPLEMENTATION DEFINED extension to the ARMv8 PMUv3 that allows more precise PC sampling by storing the PC in a separate system register when an event counter overflow occurs. Reduces skid and allows sampling when interrupts are disabled (since the PMI is a maskable interrupt in ar

[RFC V4 1/4] ACPI: add support for sentinel-delimited probe tables

2018-07-05 Thread Agustin Vega-Frias
Tables declared with the ACPI_PROBE_TABLE linker macro are typically traversed by using the start and end symbols created by the linker script. However, there are some APIs that use sentinel-delimited tables (e.g. acpi_match_device). To better support these APIs an additional section is added at th

Re: [PATCH v4 4/6] thermal: tsens: Add support for SDM845

2018-07-05 Thread Rob Herring
On Wed, Jul 04, 2018 at 10:56:26PM +0530, Amit Kucheria wrote: > On Tue, Jul 3, 2018 at 9:56 PM, Rob Herring wrote: > > On Mon, Jul 02, 2018 at 06:14:07PM +0530, Amit Kucheria wrote: > >> SDM845 uses v2.4.0 of the TSENS IP block but the get_temp() function > >> appears to be identical across v2.x.

[PATCH] platform/x86: dell-laptop: Mark expected switch fall-throughs

2018-07-05 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/platform/x86/dell-laptop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/

Re: [PATCH v10 2/2] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC

2018-07-05 Thread Rob Herring
On Thu, Jul 05, 2018 at 05:32:58PM +0300, Matti Vaittinen wrote: > Document devicetree bindings for ROHM BD71837 PMIC MFD. > > Signed-off-by: Matti Vaittinen > --- > .../devicetree/bindings/mfd/rohm,bd71837-pmic.txt | 62 > ++ > 1 file changed, 62 insertions(+) > create mo

[PATCH] platform/x86: acer-wmi: mark expected switch fall-throughs

2018-07-05 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 2 was used: -Wimplicit-fallthrough=2 Signed-off-by: Gustavo A. R. Silva --- drivers/platform/x86/acer-wmi.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/

Re: [PATCH v9 1/7] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip wcn3990

2018-07-05 Thread Rob Herring
On Thu, Jul 05, 2018 at 10:25:09PM +0530, Balakrishna Godavarthi wrote: > This patch enables regulators for the Qualcomm Bluetooth wcn3990 > controller. > > Signed-off-by: Balakrishna Godavarthi > --- > Changes in v9: > * updated with latest reg handle and names. > * updated max-speed def

Re: [PATCH 1/3] NTFS: aops: Remove VLA usage

2018-07-05 Thread Arnd Bergmann
On Tue, Jun 26, 2018 at 7:29 PM, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > uses the maximum size needed on the stack and adds a sanity check for > robustness: index.block_size cannot be larger than PAGE_SIZE nor less > than NTFS_BLOCK_SIZE. > > [1] >

[PATCH] platform/x86: sony-laptop: Mark expected switch fall-through

2018-07-05 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/platform/x86/sony-laptop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/so

Re: [PATCH] Fix platform data in leds-pca955x.c

2018-07-05 Thread Jacek Anaszewski
Hi Rob. On 07/04/2018 02:46 AM, Rob Landley wrote: I have some questions about recent changes to leds-pca955x.c since 4.13: How is non-of platform data supposed to work now? Commit ed1f4b9676a8 switched struct led_platform_data *pdata in the _probe() function to a locally defined structure that

Re: [PATCH] gpiolib: Defer on non-DT find_chip_by_name() failure

2018-07-05 Thread Janusz Krzysztofik
On Thursday, July 5, 2018 7:50:37 AM CEST Lee Jones wrote: > On Wed, 04 Jul 2018, Janusz Krzysztofik wrote: > > On Tuesday, July 3, 2018 7:31:41 PM CEST Boris Brezillon wrote: > > > Hi Janusz, > > > > > > On Tue, 3 Jul 2018 19:26:35 +0200 > > > > > > Janusz Krzysztofik wrote: > > > > Avoid repl

Re: [PATCH 2/2] uio: fix crash after the device is unregistered

2018-07-05 Thread Jann Horn
On Thu, Jul 5, 2018 at 10:53 PM wrote: > > From: Xiubo Li > > For the target_core_user use case, after the device is unregistered > it maybe still opened in user space, then the kernel will crash, like: > [...] > > Signed-off-by: Xiubo Li > --- > drivers/uio/uio.c | 101 > +

Re: [RFC PATCH 2/5] dt-bindings: xilinx: Add missing zynq boards

2018-07-05 Thread Luis Araneda
Hi Rob, Thanks for reviewing. On Tue, Jul 3, 2018 at 7:04 PM Rob Herring wrote: > > On Thu, Jun 28, 2018 at 01:42:02AM -0400, Luis Araneda wrote: > > +- Adapteva Parallella board > > + "adapteva,parallella" > > This is documented in adapteva.txt, but I'd prefer if you put it > here and remove a

RE: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-05 Thread KY Srinivasan
> -Original Message- > From: Ingo Molnar On Behalf Of Ingo Molnar > Sent: Thursday, July 5, 2018 8:38 AM > To: KY Srinivasan > Cc: x...@kernel.org; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; jasow...@r

Re: [RFC PATCH 5/5] arm: dts: zynq: remove "zynq" prefix from compatible property

2018-07-05 Thread Luis Araneda
Hi Rob, On Tue, Jul 3, 2018 at 7:07 PM Rob Herring wrote: > Maybe so, but you can't just go around changing compatible strings. Once > set, it's an ABI. Ok, I'll drop the patch from v2. Thanks, Luis Araneda.

Re: [PATCH v7 07/10] dt-bindings: counter: Document stm32 quadrature encoder

2018-07-05 Thread Rob Herring
On Thu, Jun 21, 2018 at 05:08:34PM -0400, William Breathitt Gray wrote: > From: Benjamin Gaignard > > Add bindings for STM32 Timer quadrature encoder. > It is a sub-node of STM32 Timer which implement the > quadratic encoder part of the hardware. > > Cc: Rob Herring > Cc: Mark Rutland > Signed

Re: [PATCH v7 09/10] dt-bindings: counter: Adjust dt-bindings for STM32 lptimer move

2018-07-05 Thread Rob Herring
On Thu, Jun 21, 2018 at 05:08:57PM -0400, William Breathitt Gray wrote: > From: Fabrice Gasnier > > The STM32 LP Timer counter driver now resides under the Counter > subsystem. This patch adjusts dt-bindings to account for the STM32 > lptimer driver move. > > Cc: Rob Herring > Cc: Mark Rutland

Re: [PATCH] checkpatch: Add exceptions for dsb keyword usage

2018-07-05 Thread Joe Perches
On Thu, 2018-07-05 at 11:19 -0700, Prakruthi Deepak Heragu wrote: > mb() API can relpace the dsb() API in the kernel code. So, dsb() usage > is discouraged. However, there are exceptions when dsb is used in a > variable or a function name. Exceptions are when 'dsb' is prefixed with > class [-_>*\.]

Re: [PATCH v7 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

2018-07-05 Thread Rob Herring
On Thu, Jul 05, 2018 at 09:09:28AM +0800, Stanley Chu wrote: > This patch fixes bindings of existed "General Purpose Timer", > and then add bindings of new "System Timer" on Mediatek SoCs. > > Signed-off-by: Stanley Chu > --- > .../bindings/timer/mediatek,mtk-timer.txt | 36 > +++

Re: [PATCH v5 2/2] dt-bindings: iio: dac: Add docs for AD5758 DAC

2018-07-05 Thread Rob Herring
On Wed, Jul 04, 2018 at 05:32:53PM +0300, Stefan Popa wrote: > Signed-off-by: Stefan Popa > --- > Changes in v5: > - used a dac@0 as a more generic node name instead of ad5758@0. > Changes in v4: > - Nothing changed, just to follow the patch set version. > Changes in v3: > - AD57

Re: [PATCH v4 1/6] dt-bindings: i2c: Add binding for Actions Semiconductor Owl I2C controller

2018-07-05 Thread Rob Herring
On Sun, Jul 01, 2018 at 10:53:00PM +0530, Manivannan Sadhasivam wrote: > Add devicetree binding for Actions Semiconductor Owl I2C controller > > Signed-off-by: Manivannan Sadhasivam > --- > .../devicetree/bindings/i2c/i2c-owl.txt | 27 +++ > 1 file changed, 27 insertions(+)

Re: [RESEND PATCH v4 1/2] dt-bindings: at24: Add address-width property

2018-07-05 Thread Rob Herring
On Mon, Jul 02, 2018 at 05:12:19PM +0800, alanx.chi...@intel.com wrote: > From: Alan Chiang > > The AT24 series chips use 8-bit address by default. If some > chips would like to support more than 8 bits, the at24 driver > should be added the compatible field for specfic chips. > > Provide a flex

[PATCH v2] checkpatch: Check for invalid return codes

2018-07-05 Thread Prakruthi Deepak Heragu
Negative integer return codes should prefer to use #define - values instead of negative numbers. This patch checks if there are any negative numbers returned. Also, display context so that the user knows where the return value is incorrect. http://lkml.org/lkml/2010/7/23/318 There's lots of "ret

Re: [PATCH v4 1/3] iio: hx711: add clock-frequency property in DT

2018-07-05 Thread Rob Herring
On Wed, Jul 04, 2018 at 02:36:38PM +0200, Andreas Klinger wrote: > Add clock-frequency property for hx711 ADC > > This is the frequency of PD_SCK. It affects only the high value duration > since low value duration is not relevant and we are not able to switch > faster than the minimum duration spe

Re: [PATCH v4 3/3] iio: hx711: warning in dt binding example doc

2018-07-05 Thread Rob Herring
On Wed, Jul 04, 2018 at 02:37:19PM +0200, Andreas Klinger wrote: > device tree compiler (dtc) gives a warning if a device node has "@" with a > following number as it's name but no reg property. > > fix the example in the documentation of avia,hx711 to conform to dtc > behavior Capitalization and

Re: [PATCH 02/14] dmaengine: dma-jz4780: Separate chan/ctrl registers

2018-07-05 Thread Paul Cercueil
Paul, On 3 July 2018 at 18:02, Paul Cercueil wrote: The register area of the JZ4780 DMA core can be split into different sections for different purposes: * one set of registers is used to perform actions at the DMA core level, that will generally affect all channels; * one set of r

Re: [PATCH 3/6] timex: prepare compat helpers for y2038 changes

2018-07-05 Thread Deepa Dinamani
Posted v2 now. Fengguang, Also the make.cross script pointed to by the kernel test bot is broken for riscv. I applied the following fix to compile it. Pull request: https://github.com/intel/lkp-tests/pull/11 Thanks, Deepa On Thu, Jul 5, 2018 at 1:33 PM, Thomas Gleixner wrote: > On Thu, 5 Jul

Re: [RESEND PATCH v4 1/2] dt-bindings: at24: Add address-width property

2018-07-05 Thread Robert P. J. Day
On Thu, 5 Jul 2018, Rob Herring wrote: > On Mon, Jul 02, 2018 at 05:12:19PM +0800, alanx.chi...@intel.com wrote: > > From: Alan Chiang > > > > The AT24 series chips use 8-bit address by default. If some > > chips would like to support more than 8 bits, the at24 driver > > should be added the comp

Re: [PATCHv5 2/4] x86: Add build salt to the vDSO

2018-07-05 Thread Andy Lutomirski
Sure. On Thu, Jul 5, 2018 at 12:08 PM, Laura Abbott wrote: > On 07/05/2018 08:58 AM, Andy Lutomirski wrote: >> >> On Tue, Jul 3, 2018 at 4:34 PM, Laura Abbott wrote: >>> >>> >>> The vDSO needs to have a unique build id in a similar manner >>> to the kernel and modules. Use the build salt macro.

[PATCH 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation

2018-07-05 Thread Girish Mahadevan
Signed-off-by: Girish Mahadevan --- .../devicetree/bindings/spi/qcom,spi-qcom-qspi.txt | 36 ++ err.txt| 27 2 files changed, 36 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/sp

[PATCH 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller

2018-07-05 Thread Girish Mahadevan
New driver for Qualcomm QuadSPI(QSPI) controller that is used to communicate with slaves such flash memory devices. The QSPI controller can operate in 2 or 4 wire mode but only supports SPI Mode 0 and SPI Mode 3. The controller can also operate in Single or Dual data rate modes. Signed-off-by: Gir

Business Proposal

2018-07-05 Thread BRENDA WILSON
I am Sgt.Brenda Wilson, originally from Lake Jackson Texas USA.I personally made a special research and I came across your information. I am presently writing this mail to you from U.S Military base Kabul Afghanistan I have a secured business proposal for you. Reply for more details via my pr

[PATCH] checkpatch: forbid filesystem accesses from within the kernel

2018-07-05 Thread Prakruthi Deepak Heragu
As use of sys_open/close/read/write system calls from within the kernel code is inappropriate, an error is triggered if used. Signed-off-by: Prakruthi Deepak Heragu --- scripts/checkpatch.pl | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl

Re: [PATCH v12 05/13] x86/sgx: architectural structures

2018-07-05 Thread hpa
On July 5, 2018 1:09:12 PM PDT, Jarkko Sakkinen wrote: >On Thu, Jul 05, 2018 at 08:31:42AM -0700, Dave Hansen wrote: >> On 07/03/2018 11:19 AM, Jarkko Sakkinen wrote: >> > +struct sgx_secs { >> > + uint64_t size; >> > + uint64_t base; >> > + uint32_t ssaframesize; >> > + uint32_t miscselect;

Re: [PATCH] reboot: add reboot_panic parameter

2018-07-05 Thread Andrew Morton
On Thu, 5 Jul 2018 06:47:37 + "Tian, Baofeng" wrote: > -Original Message- > From: Andrew Morton [mailto:a...@linux-foundation.org] > Sent: Tuesday, July 3, 2018 5:31 AM > To: Tian, Baofeng > Cc: andrew.smir...@gmail.com; linux-kernel@vger.kernel.org; Zhuang, Qihua > > Subject: Re

Re: [PATCH 2/6] ipc: reorganize initialization of kern_ipc_perm.seq

2018-07-05 Thread Andrew Morton
On Thu, 5 Jul 2018 17:12:36 +0200 Manfred Spraul wrote: > Hi Dmitry, > > On 07/05/2018 10:36 AM, Dmitry Vyukov wrote: > > [...] > > Hi Manfred, > > > > The series looks like a significant improvement to me. Thanks! > > > > I feel that this code can be further simplified (unless I am missing > >

Re: [PATCH] checkpatch: forbid filesystem accesses from within the kernel

2018-07-05 Thread Joe Perches
On Thu, 2018-07-05 at 14:47 -0700, Prakruthi Deepak Heragu wrote: > As use of sys_open/close/read/write system calls from within the kernel > code is inappropriate, an error is triggered if used. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -5372,6 +5372,13 @@ sub proces

Re: [PATCH v10 5/7] i2c: fsi: Add transfer implementation

2018-07-05 Thread Wolfram Sang
> I meant that the hardware cannot interpret this, it would be a meaningless > command unfortunately. I see. Thanks for double-checking. signature.asc Description: PGP signature

Re: [PATCH v10 4/7] i2c: fsi: Add abort and hardware reset procedures

2018-07-05 Thread Wolfram Sang
Eddie, > Thanks for the details. I have sent up a new series which will only do the > bus reset if SDA is low. With our current hardware configuration, this Thanks. > *should* be sufficient to recover all the possible errors. However, there > are configurations where it will not be enough, in wh

Re: [PATCH] resource: Use 2-factor allocator calls

2018-07-05 Thread Andrew Morton
On Wed, 4 Jul 2018 10:31:53 -0700 Kees Cook wrote: > As already done treewide, switch from open-coded multiplication to using > 2-factor allocation helpers. > This is against resource-add-walk_system_ram_res_rev.patch (http://lkml.kernel.org/r/20180322033722.9279-2-...@redhat.com). That patch

Re: [PATCH v8 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg

2018-07-05 Thread Andrew Morton
On Wed, 4 Jul 2018 18:51:12 +0300 Kirill Tkhai wrote: > > - why aren't we decreasing shrinker_nr_max in > > unregister_memcg_shrinker()? That's easy to do, avoids pointless > > work in shrink_slab_memcg() and avoids memory waste in future > > prealloc_memcg_shrinker() calls. > > You sure,

[PATCH v2 5/7] perf tools: Use ioctl to communicate driver configuration to kernel

2018-07-05 Thread Mathieu Poirier
Following in the footsteps of what was done for filters, adding the necessary mechanic needed to push down driver specific configuration to the kernel using an ioctl. By proceeding this way PMU specific configuration such as CoreSight sink specification can be communicated to each event. Signed-of

[PATCH v2 3/7] perf/aux: Make perf_event accessible to setup_aux()

2018-07-05 Thread Mathieu Poirier
When pmu::setup_aux() is called the coresight PMU needs to know which sink to use for the session by looking up the information in the drv_config field of the hw_perf_event structure. As such simply replace the cpu information by the complete perf_event structure and change all affected customers.

[PATCH v2 7/7] perf tools: Use ioctl function to send sink configuration to kernel

2018-07-05 Thread Mathieu Poirier
Using sysFS to communicate sink information for a trace session doesn't work when more than one CPU is involved in the scenario. As such communicate the sink information to each event by using the SET_DRV_CONFIG ioctl command. Signed-off-by: Mathieu Poirier --- tools/perf/arch/arm/util/cs-etm.c

[PATCH v2 6/7] perf tools: Make perf_evsel accessible to PMU driver configuration code

2018-07-05 Thread Mathieu Poirier
Make structure perf_evsel available to the PMU driver configuration code. That way function perf_evsel__apply_drv_config() can be used from within that code and information pertaining to the 'perf_evsel_config_term' is still available. Signed-off-by: Mathieu Poirier --- tools/perf/arch/arm/util/

[PATCH v2 1/7] perf: Introduce ioctl to communicate driver configuration to kernel

2018-07-05 Thread Mathieu Poirier
Adding a new IOCTL command to communicate PMU specific configuration to PMU kernel drivers. This can be anything a PMU might need for configuration that doesn't fit in the perf_event_attr structure, such as the CoreSight sink to use for a session. Signed-off-by: Mathieu Poirier --- include/uapi

[PATCH v2 4/7] coresight: Use PMU driver configuration for sink selection

2018-07-05 Thread Mathieu Poirier
This patch uses the PMU driver configuration held in event::hw::drv_config to select a sink for each event that is created (the old sysFS way of working is kept around for backward compatibility). By proceeding in this way a sink can be used by multiple sessions without having to play games with e

[PATCH v2 2/7] perf/core: Use ioctl to communicate driver configuration to kernel

2018-07-05 Thread Mathieu Poirier
This patch adds the mechanic needed for user space to send PMU specific configuration to the kernel driver using an ioctl() command. That way events can keep track of options that don't fit in the perf_event_attr structure like the selection of a CoreSight sink to use for the session. Signed-off-

[PATCH v2 0/7] perf: Add ioctl for PMU driver configuration

2018-07-05 Thread Mathieu Poirier
This set adds the capability to communiate event specific configuration to the PMU kernel driver using an ioctl(). The functionatlity is made generic enough for anyone to use but is targeted at the identification of CoreSight sinks when operating in CPU-wide trace scenarios. Other than the change

Re: [PATCH] parport: Add support for the WCH384 4S multi-IO card

2018-07-05 Thread Sudip Mukherjee
Hi Matt, On Sat, May 26, 2018 at 12:35:23PM -0700, Matt Turner wrote: > This Multi-IO card has one serial 16550-like serial connectors. Here's > the lspci output, after this commit is applied: > > 01:00.0 Serial controller [0700]: Device [1c00:3470] (rev 10) (prog-if 05 > [16850]) > Subs

Re: [PATCH v2] x86/mm: fix cpu stuck issue in __change_page_attr_set_clr

2018-07-05 Thread Dave Hansen
On 07/04/2018 10:47 PM, Bin Yang wrote: > When changing a 4K page attr inside 1G/2M large page range, > __change_page_attr() will call try_preserve_large_page() to decide > to split the big page or not. And try_preserve_large_page() will > call static_protections() to check all 4K pages inside the

Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-05 Thread Ingo Molnar
* KY Srinivasan wrote: > > > > -Original Message- > > From: Ingo Molnar On Behalf Of Ingo Molnar > > Sent: Thursday, July 5, 2018 8:38 AM > > To: KY Srinivasan > > Cc: x...@kernel.org; gre...@linuxfoundation.org; linux- > > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@

Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-05 Thread Thomas Gleixner
On Fri, 6 Jul 2018, Ingo Molnar wrote: > * KY Srinivasan wrote: > > I am confused. The label ipi_mask_done was introduced in this patch > > (the patch under question fixes a circular dependency in this patch): > > > > commit 68bb7bfb7985df2bd15c2dc975cb68b7a901488a > > Author: K. Y. Srinivasan >

Re: [PATCH v8 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg

2018-07-05 Thread Matthew Wilcox
On Tue, Jul 03, 2018 at 01:50:00PM -0700, Andrew Morton wrote: > It should be possible to find the highest ID in an IDR tree with a > straightforward descent of the underlying radix tree, but I doubt if > that has been wired up. Otherwise a simple loop in > unregister_memcg_shrinker() woul

Re: [PATCH v7 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

2018-07-05 Thread Stanley Chu
On Thu, 2018-07-05 at 15:15 -0600, Rob Herring wrote: > On Thu, Jul 05, 2018 at 09:09:28AM +0800, Stanley Chu wrote: Hi Rob, > > +- reg: Should contain location and length for timer register. > > +- clocks: Both timers are driven by system clock. > > The binding just needs to say how many clocks

Re: [PATCH 2/6] device: Add #define dev_fmt similar to #define pr_fmt

2018-07-05 Thread Joe Perches
On Mon, 2018-06-25 at 08:51 +0800, Greg Kroah-Hartman wrote: > On Sun, Jun 24, 2018 at 08:41:03AM -0700, Joe Perches wrote: > > On Tue, 2018-06-19 at 06:31 -0700, Joe Perches wrote: > > > Greg? Ping? > > > > > > The patches to impi have hit -next and the impi code > > > works differently without

[PATCH v8 2/5] clocksource/drivers/timer-mediatek: Rename mtk_timer to timer-mediatek

2018-07-05 Thread Stanley Chu
Rename mtk_timer to timer-mediatek to apply new naming convention in clocksource folder. Signed-off-by: Stanley Chu --- drivers/clocksource/Makefile |2 +- drivers/clocksource/mtk_timer.c | 268 -- drivers/clocksource/timer-mediatek.c | 268

[PATCH v8 3/5] clocksource/drivers/timer-mediatek: Use specific prefix for GPT

2018-07-05 Thread Stanley Chu
Use specific prefix to specify the name of supported timer hardware: "General Purpose Timer (GPT)". Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 157 +- 1 file changed, 80 insertions(+), 77 deletions(-) diff --git a/drivers/clocksource/t

[PATCH v8 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-07-05 Thread Stanley Chu
Convert the driver to use the timer_of helpers. This allows to remove custom proprietary structure, factors out and simplifies the code. Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 205 +- 1 file changed, 80 insertions(+), 125 deletions(

[PATCH v8 5/5] clocksource/drivers/timer-mediatek: Add support for system timer

2018-07-05 Thread Stanley Chu
This patch adds a new "System Timer" on the Mediatek SoCs. The System Timer is introduced as an always-on timer being clockevent device for tick-broadcasting. For clock, it is driven by 13 MHz system clock. The implementation uses the system clock with no clock source divider. For interrupt, the

[PATCH v8 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

2018-07-05 Thread Stanley Chu
This patch adds bindings of new "System Timer" on Mediatek SoCs. Remove RTC clock in the same time because it is not used in both "General Purpose Timer" and "System Timer" driver now. Signed-off-by: Stanley Chu --- .../bindings/timer/mediatek,mtk-timer.txt | 36

[PATCH v8 0/5] Add system timer driver for Mediatek SoCs

2018-07-05 Thread Stanley Chu
Changes since v7: - Fix dt-bindings: - Fix clock description and add commit message to explain RTC clock removal. - Add new line in end of file. Changes since v6: - Remove duplicated variable gpt_sched_reg. - Remove log for mtk_syst_init(). Changes since v5: - Optimize driver and remove r

Re: [PATCH 4/5] kbuild: disable KBUILD_MODNAME when building for mod.a

2018-07-05 Thread NeilBrown
On Thu, Jul 05 2018, Masahiro Yamada wrote: > 2018-07-05 6:54 GMT+09:00 NeilBrown : >> On Wed, Jul 04 2018, Masahiro Yamada wrote: >> >>> 2018-07-04 7:14 GMT+09:00 NeilBrown : Where I've been using these patches I've sometimes been adding ccflags-y += -DKBUILD_MODNAME='"FOO"'

[PATCH v9 3/5] clocksource/drivers/timer-mediatek: Use specific prefix for GPT

2018-07-05 Thread Stanley Chu
Use specific prefix to specify the name of supported timer hardware: "General Purpose Timer (GPT)". Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 157 +- 1 file changed, 80 insertions(+), 77 deletions(-) diff --git a/drivers/clocksource/t

[PATCH v9 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-07-05 Thread Stanley Chu
Convert the driver to use the timer_of helpers. This allows to remove custom proprietary structure, factors out and simplifies the code. Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 205 +- 1 file changed, 80 insertions(+), 125 deletions(

[PATCH v9 5/5] clocksource/drivers/timer-mediatek: Add support for system timer

2018-07-05 Thread Stanley Chu
This patch adds a new "System Timer" on the Mediatek SoCs. The System Timer is introduced as an always-on timer being clockevent device for tick-broadcasting. For clock, it is driven by 13 MHz system clock. The implementation uses the system clock with no clock source divider. For interrupt, the

[PATCH v2 1/3] tools include: Grab copies of arm64 dependent unistd.h files

2018-07-05 Thread Kim Phillips
Will be used for generating the syscall id/string translation table. Arm64's unistd.h simply #includes the asm-generic/unistd.h, so, since we will want to know whether either change, we grab both: arch/arm64/include/uapi/asm/unistd.h and include/uapi/asm-generic/unistd.h Cc: Ravi Bangoria

[PATCH v2 3/3] perf trace arm64: Use generated syscall table

2018-07-05 Thread Kim Phillips
This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. It also enables users to specify wildcards, for example, perf trace -e 'open*', just like was already possible on x86, s390, and powerpc, which means arm64 can now p

[PATCH v9 0/5] Add system timer driver for Mediatek SoCs

2018-07-05 Thread Stanley Chu
Changes since v8: - Sorry for stupid mistake that no updated file in v7. Just re-send correct file in v7. Changes since v7: - Fix dt-bindings: - Fix clock description and add commit message to explain RTC clock removal. - Add new line in end of file. Changes since v6: - Remove duplicated

[PATCH v2 2/3] perf arm64: Generate system call table from asm/unistd.h

2018-07-05 Thread Kim Phillips
This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. Using the existing other arch scripts resulted in this error: tools/perf/arch/arm64/entry/syscalls//mksyscalltbl: 25: printf: __NR3264_ftruncate: expected numeric

[PATCH v9 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

2018-07-05 Thread Stanley Chu
This patch adds bindings of new "System Timer" on Mediatek SoCs. Remove RTC clock in the same time because it is not used by both "General Purpose Timer" and "System Timer" now. Signed-off-by: Stanley Chu --- .../bindings/timer/mediatek,mtk-timer.txt | 34 1 file

<    1   2   3   4   5   6   7   >