Re: [PATCH v3 1/3] spi: spidev: create spidev device for all spi slaves.

2016-07-19 Thread Michal Suchanek
Hello, On 19 July 2016 at 00:59, Mark Brown <broo...@kernel.org> wrote: > On Tue, Jul 19, 2016 at 12:35:40AM +0200, Michal Suchanek wrote: > >> config SPI_SPIDEV >> - tristate "User mode SPI device driver support" >> + bool "User mode SPI d

Re: [PATCH v3 1/3] spi: spidev: create spidev device for all spi slaves.

2016-07-19 Thread Michal Suchanek
On 19 July 2016 at 14:44, Mark Brown <broo...@kernel.org> wrote: > On Tue, Jul 19, 2016 at 01:17:52PM +0200, Michal Suchanek wrote: >> On 19 July 2016 at 00:59, Mark Brown <broo...@kernel.org> wrote: > >> Looking into SPI more this whole point is mostly moot, anyway.

Re: [PATCH v3 1/3] spi: spidev: create spidev device for all spi slaves.

2016-07-19 Thread Michal Suchanek
On 19 July 2016 at 19:19, Mark Brown <broo...@kernel.org> wrote: > On Tue, Jul 19, 2016 at 05:32:24PM +0200, Michal Suchanek wrote: >> On 19 July 2016 at 14:44, Mark Brown <broo...@kernel.org> wrote: > >> >> - status = register_chrdev(SPIDEV_MAJOR,

Re: [linux-sunxi] Re: [PATCH v2 06/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-07-15 Thread Michal Suchanek
Hello, On 15 July 2016 at 15:48, Ondřej Jirman wrote: > > > On 15.7.2016 15:27, Jean-Francois Moine wrote: >> On Fri, 15 Jul 2016 12:38:54 +0200 >> Ondřej Jirman wrote: >> If so, then yes, trying to switch to the 24MHz oscillator before applying

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 17:51, Mark Brown <broo...@kernel.org> wrote: > On Tue, Jun 28, 2016 at 02:40:41PM +0200, Michal Suchanek wrote: > >> There is no hardware other than pin header. You are preparing a >> factory image for a devboard with a pin header that can be used for &

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 20:38, Mark Brown <broo...@kernel.org> wrote: > On Tue, Jun 28, 2016 at 06:24:58PM +0200, Michal Suchanek wrote: > >> No, no, no! > >> This is NOT about loading an overlay. This is about talking on the bus >> without loading an overlay. > >

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 22:57, Mark Brown <broo...@kernel.org> wrote: > On Tue, Jun 28, 2016 at 10:02:59PM +0200, Michal Suchanek wrote: > >> Of course I could add "my-shiny-new-board" compatible to the device >> tree and spidev. Then when I build my-shiny-new-bo

Re: [linux-sunxi] Re: [PATCH 06/14] ARM: dts: sun8i: Add cpu0 label to sun8i-h3.dtsi

2016-06-30 Thread Michal Suchanek
Hello, On 29 June 2016 at 23:11, Ondřej Jirman wrote: > On 29.6.2016 22:45, Maxime Ripard wrote: >> Hi, >> >> On Sat, Jun 25, 2016 at 04:50:24PM +0200, Ondřej Jirman wrote: >>> On 25.6.2016 09:02, Maxime Ripard wrote: On Sat, Jun 25, 2016 at 09:02:48AM +0800, Chen-Yu Tsai

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
Hello, On 25 June 2016 at 05:45, wrote: > From: Ondrej Jirman > > Use Xulong Orange Pi One GPIO based regulator for > passive cooling and thermal management. > > Signed-off-by: Ondrej Jirman > --- >

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-30 Thread Michal Suchanek
On 29 June 2016 at 20:02, Mark Brown <broo...@kernel.org> wrote: > On Wed, Jun 29, 2016 at 05:32:48AM +0200, Michal Suchanek wrote: > >> The other is to get a generic expansion board and jumper wires. Of >> course, you will not use all pins of your expansion connector t

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
On 30 June 2016 at 17:16, Michal Suchanek <hramr...@gmail.com> wrote: > On 30 June 2016 at 16:19, Ondřej Jirman <meg...@megous.com> wrote: >> Hello, >> >> On 30.6.2016 13:13, Michal Suchanek wrote: >>> Hello, >>> >>> On 25 June 2016 at

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
On 30 June 2016 at 16:19, Ondřej Jirman <meg...@megous.com> wrote: > Hello, > > On 30.6.2016 13:13, Michal Suchanek wrote: >> Hello, >> >> On 25 June 2016 at 05:45, <meg...@megous.com> wrote: >>> From: Ondrej Jirman <meg...@megous.com>

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 10:25, Mark Brown <broo...@kernel.org> wrote: > On Thu, Jun 30, 2016 at 09:47:32AM +0200, Michal Suchanek wrote: > >> So to write such tutorial you have to give some steps to follow which >> are reasonably likely to succeed on wide variety of boards

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-07-01 Thread Michal Suchanek
On 30 June 2016 at 17:50, Michal Suchanek <hramr...@gmail.com> wrote: > On 30 June 2016 at 17:16, Michal Suchanek <hramr...@gmail.com> wrote: >> On 30 June 2016 at 16:19, Ondřej Jirman <meg...@megous.com> wrote: >>> Hello, >>)k, so I tried> >>>

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 11:36, Mark Brown wrote: > On Thu, Jun 30, 2016 at 10:03:57AM +0100, Dan O'Donovan wrote: > > Please fix your mail client to word wrap within paragraphs at something > substantially less than 80 columns. Doing this makes your messages much > easier to read

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 17:00, Mark Brown <broo...@kernel.org> wrote: > On Fri, Jul 01, 2016 at 10:58:34AM +0200, Michal Suchanek wrote: >> On 1 July 2016 at 10:25, Mark Brown <broo...@kernel.org> wrote: > >> > It's been repeatedly suggested to you that the tooling f

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 18:22, Mark Brown <broo...@kernel.org> wrote: > On Fri, Jul 01, 2016 at 05:37:53PM +0200, Michal Suchanek wrote: > >> Can you, please, specify what problems this patch creates for other users >> and maintainability? > > To repeat yet ag

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 20:56, Michal Suchanek <hramr...@gmail.com> wrote: > On 1 July 2016 at 18:22, Mark Brown <broo...@kernel.org> wrote: >> On Fri, Jul 01, 2016 at 05:37:53PM +0200, Michal Suchanek wrote: >> >>> Can you, please, specify what problem

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 27 June 2016 at 22:32, Mark Brown <broo...@kernel.org> wrote: > On Mon, Jun 27, 2016 at 09:40:38PM +0200, Michal Suchanek wrote: > >> No. It's for buses that have some inherent identification. It's not for > >> 1) generate random compatible and stick it in dev

[PATCH] tpm: ibmvtpm: simplify crq initialization and document crq format

2017-01-31 Thread Michal Suchanek
ununitialized members. Get rid of the structure and the warnings. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/char/tpm/tpm_ibmvtpm.c | 92 +- 1 file changed, 56 insertions(+), 36 deletions(-) diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/d

Re: ibmvtpm byteswapping inconsistency

2017-01-27 Thread Michal Suchanek
On 27 January 2017 at 02:50, Benjamin Herrenschmidt wrote: > On Thu, 2017-01-26 at 17:42 -0800, Tyrel Datwyler wrote: >> On 01/26/2017 12:22 PM, Michal Suchánek wrote: >> > Hello, >> > >> > building ibmvtpm I noticed gcc warning complaining that second word >> > of >> >

Re: ibmvtpm byteswapping inconsistency

2017-01-26 Thread Michal Suchanek
On 26 January 2017 at 23:05, Jason Gunthorpe wrote: > On Thu, Jan 26, 2017 at 09:22:48PM +0100, Michal Such??nek wrote: > >> This is repeated a few times in the driver so I added memset to quiet >> gcc and make behavior deterministic in case the unused fields get

[RFT PATCH] tpm: ibmvtpm: simplify crq initialization and document crq format

2017-02-24 Thread Michal Suchanek
ununitialized members. Get rid of the structure and the warnings. Signed-off-by: Michal Suchanek <msucha...@suse.de> Reviewed-by: Jarkko Sakkinen <jarkko.sakki...@linux.intel.com> --- v2 fix typos and spelling in comments --- drivers/char/tpm/tpm_ib

Re: [RFC PATCH 0/3] UART slave device bus

2016-08-27 Thread Michal Suchanek
On 22 August 2016 at 23:23, H. Nikolaus Schaller wrote: > Hi Sebastian, > >> Am 22.08.2016 um 22:39 schrieb Sebastian Reichel : >> >> Hi, >> >> On Sun, Aug 21, 2016 at 09:50:57AM +0200, H. Nikolaus Schaller wrote: Am 20.08.2016 um 15:34 schrieb One

[PATCH] power: supply: axp20x_usb_power: fix warning on 64bit

2017-01-10 Thread Michal Suchanek
-to-int-cast] Fixes: 0dcc70ca8644 ("power: supply: axp20x_usb_power: use of_device_id data field instead of device_is_compatible") Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/power/supply/axp20x_usb_power.c | 5 +++-- include/linux/mfd/axp20x.h | 2 +-

[PATCH] macintosh: Do not arbitrarily limit architecture for macintosh drivers.

2017-03-29 Thread Michal Suchanek
. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/macintosh/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/macintosh/Kconfig b/drivers/macintosh/Kconfig index 97a420c11eed..c23c040bc668 100644 --- a/drivers/macintosh/Kconfig +++ b/drivers/macintosh/Kconfig @@ -1,

[PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-29 Thread Michal Suchanek
f the code for clarification but did not hear back. In absence of clear licensing the only solution I see is removing this code. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- MAINTAINERS | 12 - drivers/crypto/Kconfig|8 - drivers/crypto/Makef

[PATCH v2] Do not disable driver and bus shutdown hook when class shutdown hook is set.

2017-08-11 Thread Michal Suchanek
As seen from the implementation of the single class shutdown hook this is not very sound design. Rename the class shutdown hook to shutdown_pre to make it clear it runs before the driver shutdown hook. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- v2: rename class shutdown

[PATCH] powerpc/mm/hash: Remove stale comment.

2017-07-11 Thread Michal Suchanek
In commit e6f81a92015b ("powerpc/mm/hash: Support 68 bit VA") the masking is folded into ASM_VSID_SCRAMBLE but the comment about masking is removed only from the firt use of ASM_VSID_SCRAMBLE. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/mm/slb_low.S

Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash Controller v2

2017-07-04 Thread Michal Suchanek
On 4 July 2017 at 02:00, Cyrille Pitchen wrote: > Hi Matthew, > > > Le 26/06/2017 à 18:13, matthew.gerl...@linux.intel.com a écrit : >> From: Matthew Gerlach >> +static int altera_quadspi_setup_banks(struct device *dev, >> +

[PATCH] ibmvnic: Fix unused variable warning

2017-08-09 Thread Michal Suchanek
Fixes: a248878d7a1d ("ibmvnic: Check for transport event on driver resume") Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/net/ethernet/ibm/ibmvnic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm

[PATCH] Do not disable driver and bus shutdown hook when class shutdown hook is set.

2017-08-09 Thread Michal Suchanek
t;struct class".") Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/base/core.c | 3 ++- drivers/char/tpm/tpm-chip.c | 9 + 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 755451f684bc..2cf75

[PATCH] selftests/vm: Fix test for virtual address range mapping for arm64

2017-05-09 Thread Michal Suchanek
Arm64 has 256TB address space so fix the test to pass on Arm as well. Also remove unneeded numaif include. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- tools/testing/selftests/vm/virtual_address_range.c | 36 -- 1 file changed, 27 insertions(+), 9 del

[PATCH] macintosh: move mac_hid driver to input/mouse.

2017-05-09 Thread Michal Suchanek
There is nothing mac-specific about this driver. Non-mac hardware with suboptimal built-in pointer devices exists. This makes it possible to use this emulation not only on x86 and ppc notebooks but also on arm and mips. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/input

[PATCH 1/2] powerpc/fadump: return 0 on re-registration

2017-06-26 Thread Michal Suchanek
When fadump is already registered return success. Currently EEXIST is returned which is difficult to handle race-free in userspace when shell scripts are used. If multiple writers are trying to write '1' there is no difference in whichever succeeds so just return 0 to all. Signed-off-by: Michal

[PATCH 2/2] powerpc/fadump: use kstrtoint to handle sysfs store

2017-06-26 Thread Michal Suchanek
Currently sysfs store handlers in fadump use if buf[0] == 'char'. This means input "100foo" is interpreted as '1' and "01" as '0'. Change to kstrtoint so leading zeroes and the like is handled in expected way. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- ar

[PATCH v2] selftests/vm: Fix test for virtual address range mapping for arm64

2017-05-18 Thread Michal Suchanek
Arm64 has 256TB address space so fix the test to pass on Arm as well. Also remove unneeded numaif header. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- v2: - do not test high slices on Arm64 - it has no support and none is planned - fix the hint calculation for different

[PATCH] powerpc/fadump: return error when fadump registration fails

2017-05-24 Thread Michal Suchanek
-registration - return success on deregistration when fadump is not registered Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/fadump.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/

[PATCH] powerpc/fadump: return error when fadump registration fails

2017-05-25 Thread Michal Suchanek
-registration - return success on deregistration when fadump is not registered - return ENODEV when no memory is reserved for fadump Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/fadump.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff

[PATCH v2] powerpc/fadump: return error when fadump registration fails

2017-05-27 Thread Michal Suchanek
-registration - return success on deregistration when fadump is not registered - return ENODEV when no memory is reserved for fadump Signed-off-by: Michal Suchanek <msucha...@suse.de> --- v2: fix return in register_fadump() --- arch/powerpc/kernel/fadump.c | 24 1 file chang

Re: [PATCH] macintosh: move mac_hid driver to input/mouse.

2017-05-28 Thread Michal Suchanek
On Tue, 9 May 2017 17:43:27 -0700 Dmitry Torokhov <dmitry.torok...@gmail.com> wrote: > Hi Michal, > > On Tue, May 09, 2017 at 09:14:18PM +0200, Michal Suchanek wrote: > > There is nothing mac-specific about this driver. Non-mac hardware > > with suboptimal buil

[PATCH v4 RFT 1/2] powerpc/fadump: reduce memory consumption for capture kernel

2017-05-02 Thread Michal Suchanek
i Bathini <hbath...@linux.vnet.ibm.com> Signed-off-by: Michal Suchanek <msucha...@suse.de> --- v4: - use space separated arguments instead of comma separated - do not append parameters when fadummp is disabled --- arch/powerpc/kernel/fadump.c | 27 --- 1 file changed, 24 inserti

[PATCH v4 RFT 2/2] powerpc/fadump: update documentation about 'fadump_append=' parameter

2017-05-02 Thread Michal Suchanek
With the introduction of 'fadump_append=' parameter to pass additional parameters to fadump (capture) kernel, update documentation about it. Signed-off-by: Hari Bathini <hbath...@linux.vnet.ibm.com> Signed-off-by: Michal Suchanek <msucha...@suse.de> --- Documentation/powerpc/firmw

[PATCH 5/6] lib/cmdline.c: Implement single quotes in commandline argument parsing

2017-09-15 Thread Michal Suchanek
-by: Michal Suchanek <msucha...@suse.de> --- lib/cmdline.c | 29 - 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/lib/cmdline.c b/lib/cmdline.c index d98bdc017545..c5335a79a177 100644 --- a/lib/cmdline.c +++ b/lib/cmdline.c @@ -191,34 +191,45 @

[PATCH 3/6] powerpc/fadump: stop removing quotes in argument parsing.

2017-09-15 Thread Michal Suchanek
Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/fadump.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index 1678d99ea835..275ea42a27d5 100644 --- a/arch/powerpc/kernel/fadump.c +++ b/arch/p

[PATCH 1/6] lib/cmdline.c: Add backslash support to kernel commandline parsing.

2017-09-15 Thread Michal Suchanek
. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- lib/cmdline.c | 41 - 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/lib/cmdline.c b/lib/cmdline.c index 6d398a8b63fc..d98bdc017545 100644 --- a/lib/cmdline.c +++ b/lib/cmd

[PATCH 6/6] Documentation/admin-guide: single quotes in kernel arguments.

2017-09-15 Thread Michal Suchanek
Signed-off-by: Michal Suchanek <msucha...@suse.de> --- Documentation/admin-guide/kernel-parameters.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.rst b/Documentation/admin-guide/kernel-parameters.rst index 722d3f

[PATCH 2/6] Documentation/admin-guide: backslash support in commandline.

2017-09-15 Thread Michal Suchanek
Signed-off-by: Michal Suchanek <msucha...@suse.de> --- Documentation/admin-guide/kernel-parameters.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.rst b/Documentation/admin-guide/kernel-parameters.rst index b2598c

[PATCH 4/6] powerpc/fadump: Update fadump ducumentation on quoting arguments.

2017-09-15 Thread Michal Suchanek
Signed-off-by: Michal Suchanek <msucha...@suse.de> --- Documentation/powerpc/firmware-assisted-dump.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/powerpc/firmware-assisted-dump.txt b/Documentation/powerpc/firmware-assisted-dump.txt index 2df885

[PATCH] bootwrapper: mspsc.c: fix pointer-to-int-cast warnings

2017-10-05 Thread Michal Suchanek
for PowerPC, howewer. So any bugs in the property sizing and resulting failures to read the properties are left as before. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/boot/mpsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerp

[PATCH v8 4/6] powerpc/fadump: update the dequoting logic to match lib/cmdline.c

2017-09-12 Thread Michal Suchanek
Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/fadump.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index 0e08f1a80af2..b214c1e333dd 100644 --- a/arch/powerpc/kernel/fa

[PATCH v8 3/6] lib/cmdline.c: Remove quotes symmetrically.

2017-09-12 Thread Michal Suchanek
Remove quotes from argument value only if there is qoute on both sides. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- lib/cmdline.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/cmdline.c b/lib/cmdline.c index 171c19b6888e..6d398a8b63fc

[PATCH v8 5/6] boot/param: add pointer to current and next argument to unknown parameter callback

2017-09-12 Thread Michal Suchanek
The fadump parameter processing re-does the logic of next_arg quote stripping to determine where the argument ends. Pass pointer to the current and next argument instead to make this more robust. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- rebase on master split off changes to fa

[PATCH v8 2/6] powerpc/fadump: update documentation about 'fadump_extra_args=' parameter

2017-09-12 Thread Michal Suchanek
With the introduction of 'fadump_extra_args=' parameter to pass additional parameters to fadump (capture) kernel, update documentation about it. Signed-off-by: Hari Bathini <hbath...@linux.vnet.ibm.com> Signed-off-by: Michal Suchanek <msucha...@suse.de> --- Documentation/powe

[PATCH v8 6/6] powerpc/fadump: use the new parse_args callback arguments

2017-09-12 Thread Michal Suchanek
Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/fadump.c | 47 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index 8778e1cc0380..1678d9

[PATCH v8 1/6] powerpc/fadump: reduce memory consumption for capture kernel

2017-09-12 Thread Michal Suchanek
u> Signed-off-by: Hari Bathini <hbath...@linux.vnet.ibm.com> Signed-off-by: Michal Suchanek <msucha...@suse.de> --- Changes from v6: Correct and simplify quote handling. Ideally I would like to extend parse_args to give the length of the original quoted value to callback. However, pa

[PATCH v7 4/4] boot/param: add pointer to next argument to unknown parameter callback

2017-08-17 Thread Michal Suchanek
The fadump parameter processing re-does the logic of next_arg quote stripping to determine where the argument ends. Pass pointer to the next argument instead to make this more robust. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/fadump.c | 13 +

[PATCH v7 2/4] powerpc/fadump: update documentation about 'fadump_extra_args=' parameter

2017-08-17 Thread Michal Suchanek
From: Hari Bathini <hbath...@linux.vnet.ibm.com> With the introduction of 'fadump_extra_args=' parameter to pass additional parameters to fadump (capture) kernel, update documentation about it. Signed-off-by: Hari Bathini <hbath...@linux.vnet.ibm.com> Signed-off-by: Michal Such

[PATCH v7 1/4] powerpc/fadump: reduce memory consumption for capture kernel

2017-08-17 Thread Michal Suchanek
text. Suggested-by: Michael Ellerman <m...@ellerman.id.au> Signed-off-by: Hari Bathini <hbath...@linux.vnet.ibm.com> Signed-off-by: Michal Suchanek <msucha...@suse.de> --- Changes from v6: Correct and simplify quote handling. Ideally I would like to extend parse_args to give the l

[PATCH v7 3/4] lib/cmdline.c Remove quotes symmetrically.

2017-08-17 Thread Michal Suchanek
Remove quotes from argument value only if there is qoute on both sides. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/fadump.c | 6 ++ lib/cmdline.c| 7 ++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/

[PATCH 0/6] Fix cdrom autoclose

2017-12-14 Thread Michal Suchanek
tate which is knowledge that never leaves the hardware-specific driver and is passed neither to userspace nor the generic cdrom driver. So this patchset fixes the kernel autoclose implementation in cdrom.c and to do so reports the "drive becoming ready" state from the harware speci

[PATCH 6/6] cdrom: wait for drive to become ready

2017-12-14 Thread Michal Suchanek
When the drive closes it can take tens of seconds until the disc is analyzed. Wait for the drive to become ready or report an error. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/cdrom/cdrom.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/cdrom/cdr

[PATCH 5/6] Documentetion: cdrom: introduce CDS_DRIVE_ERROR

2017-12-14 Thread Michal Suchanek
CDS_DRIVE_NOT_READY is used for the state in which CDROM is 'becoming ready' (typically analyzing the disc) but also as the fallback when nothing else applies. Introduce CDS_DRIVE_ERROR for the fallback case. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- Documentation/cdrom

[PATCH 2/6] cdrom: factor out common open_for_* code

2017-12-14 Thread Michal Suchanek
The open_for_audio and open_for_data copies are bitrotten in different ways already and will need to update the autoclose logic in both. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/cdrom/cdrom.c | 100 ++ 1 file chang

[PATCH 1/6] delay: add poll_event_interruptible

2017-12-14 Thread Michal Suchanek
Add convenience macro for polling an event that does not have a waitqueue. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- include/linux/delay.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/delay.h b/include/linux/delay.h index b78bab4395d8..3ae9fa

[PATCH 4/6] cdrom: introduce CDS_DRIVE_ERROR

2017-12-14 Thread Michal Suchanek
CDS_DRIVE_NOT_READY is used for the state in which CDROM is 'becoming ready' (typically analyzing the disc) but also as the fallback when nothing else applies. Introduce CDS_DRIVE_ERROR for the fallback case. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/block/paride/pcd.

[PATCH 3/6] cdrom: wait for tray to close

2017-12-14 Thread Michal Suchanek
or reports an error when it detects the tray is blocked. At worst the wait can be interrupted by user. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/cdrom/cdrom.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/cdrom/cdrom.c b/d

[PATCH] init/main.c: simplify repair_env_string

2017-12-15 Thread Michal Suchanek
Quoting characters are now removed from the parameter so value always follows directly after the NUL terminating parameter name. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- init/main.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) Since the previous "

[PATCH] Fix parse_args cycle limit check.

2017-12-15 Thread Michal Suchanek
Actually args are supposed to be renamed to next so both and args hold the previous argument so both can be passed to the callback. This additionla patch should fix up the rename. --- kernel/params.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH] Optimize final quote removal.

2017-12-15 Thread Michal Suchanek
This is additional patch that avoids the memmove when processing the quote on the end of the parameter. --- lib/cmdline.c | 9 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/cmdline.c b/lib/cmdline.c index c5335a79a177..b1d8a0dc60fc

[PATCH] s390/decompressor: add fortify_panic as x86 has.

2017-12-07 Thread Michal Suchanek
Fixes: 79962038dffa ("s390: add support for FORTIFY_SOURCE") Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/s390/boot/compressed/misc.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/s390/boot/compressed/misc.c b/arch/s390/boot/compressed/misc.c in

[PATCH] powerpc/xmon: really enable xmon when a breakpoint is set

2018-05-21 Thread Michal Suchanek
er hooks when first break-point is set") Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/xmon/xmon.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index a0842f1ff72c..504bd1c3d8b0 100644 --- a/arch/powerpc

[PATCH v2] powerpc/xmon: Also setup debugger hooks when single-stepping

2018-05-23 Thread Michal Suchanek
("powerpc/xmon: Setup debugger hooks when first break-point is set") Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/xmon/xmon.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) v2: calling force_enable_xmon in do_step is sufficient d

[PATCH] powerpc/64s: Enhance the information in cpu_show_spectre_v1()

2018-05-28 Thread Michal Suchanek
We now have barrier_nospec as mitigation so print it in cpu_show_spectre_v1 when enabled. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/security.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/security.c b/arch/p

[PATCH] powerpc/pseries: include linux/types.h in asm/hvcall.h

2018-01-15 Thread Michal Suchanek
sh settings") Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/include/asm/hvcall.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h index f0461618bf7b..eca3f9c68907 100644 --- a/arch/powerpc/

[PATCH resend 0/6] Fix cdrom autoclose

2018-01-26 Thread Michal Suchanek
ate from the harware specific drivers. First time I did not get any feedback for the patches. I found a defect in tray_close - it used status function without checking it exists. So resending with the defect corrected. Michal Suchanek (6): delay: add poll_event_interruptible cdrom: factor out co

[PATCH resend 2/6] cdrom: factor out common open_for_* code

2018-01-26 Thread Michal Suchanek
The open_for_audio and open_for_data copies are bitrotten in different ways already and will need to update the autoclose logic in both. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/cdrom/cdrom.c | 100 ++ 1 file chang

[PATCH resend 6/6] cdrom: wait for drive to become ready

2018-01-27 Thread Michal Suchanek
When the drive closes it can take tens of seconds until the disc is analyzed. Wait for the drive to become ready or report an error. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/cdrom/cdrom.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/cdrom/cdr

[PATCH resend 4/6] cdrom: introduce CDS_DRIVE_ERROR

2018-01-27 Thread Michal Suchanek
CDS_DRIVE_NOT_READY is used for the state in which CDROM is 'becoming ready' (typically analyzing the disc) but also as the fallback when nothing else applies. Introduce CDS_DRIVE_ERROR for the fallback case. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/block/paride/pcd.

[PATCH resend 3/6] cdrom: wait for tray to close

2018-01-27 Thread Michal Suchanek
or reports an error when it detects the tray is blocked. At worst the wait can be interrupted by user. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- v2: - check drive_status exists before using it - rename tray_close -> cdrom_tray_close --- drivers/cdrom/cdrom.c | 21 +++

[PATCH resend 1/6] delay: add poll_event_interruptible

2018-01-27 Thread Michal Suchanek
Add convenience macro for polling an event that does not have a waitqueue. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- include/linux/delay.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/delay.h b/include/linux/delay.h index b78bab4395d8..3ae9fa

[PATCH resend 5/6] Documentetion: cdrom: introduce CDS_DRIVE_ERROR

2018-01-27 Thread Michal Suchanek
CDS_DRIVE_NOT_READY is used for the state in which CDROM is 'becoming ready' (typically analyzing the disc) but also as the fallback when nothing else applies. Introduce CDS_DRIVE_ERROR for the fallback case. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- Documentation/cdrom

[PATCH 1/2] mmc: bcm2835: reset host on timeout

2018-02-14 Thread Michal Suchanek
The bcm2835 mmc host tends to lock up for unknown reason so reset it on timeout. The upper mmc block layer tries retransimitting with single blocks which tends to work out after a long wait. This is better than giving up and leaving the machine broken for no obvious reason. Signed-off-by: Michal

[PATCH 2/2] mmc: bcm2835: print some informational messages during reset

2018-02-14 Thread Michal Suchanek
The previous patch does reset during hardware error so make the reset progress more visible. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- drivers/mmc/host/bcm2835.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mm

[PATCH RFC 8/8] powerpc/64: barrier_nospec: Add commandline trigger

2018-03-13 Thread Michal Suchanek
Copypasta from rfi implementation Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/setup_64.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 4b67b7b877d9..257f0e6be107 100644 ---

[PATCH RFC 7/8] powerpc/64s: barrier_nospec: Add hcall triggerr

2018-03-13 Thread Michal Suchanek
Copypasta from rfi implementation Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/platforms/pseries/setup.c | 38 ++ 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/p

[PATCH RFC 3/8] powerpc/64: Use barrier_nospec in syscall entry

2018-03-13 Thread Michal Suchanek
Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/entry_64.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 2cb5109a7ea3..7bfc4cf48af2 100644 --- a/arch/powerpc/kernel/entry_64.S +++

[PATCH RFC 6/8] powerpc/64: barrier_nospec: Add debugfs trigger

2018-03-13 Thread Michal Suchanek
Copypasta from rfi implementation Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/setup_64.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index d1d9f0

[PATCH RFC 0/8] powerpc barrier_nospec

2018-03-13 Thread Michal Suchanek
. Thanks Michal Michal Suchanek (8): powerpc: Add barrier_nospec powerpc: Use barrier_nospec in copy_from_user powerpc/64: Use barrier_nospec in syscall entry powerpc/64s: Add support for ori barrier_nospec powerpc/64: Patch barrier_nospec in modules powerpc/64: barrier_nospec: Add

[PATCH RFC 4/8] powerpc/64s: Add support for ori barrier_nospec

2018-03-13 Thread Michal Suchanek
Copypasta from rfi implementation Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/include/asm/barrier.h| 4 ++-- arch/powerpc/include/asm/feature-fixups.h | 9 + arch/powerpc/include/asm/setup.h | 8 arch/powerpc/kernel/setu

[PATCH RFC 5/8] powerpc/64: Patch barrier_nospec in modules

2018-03-13 Thread Michal Suchanek
Copypasta from lwsync patching. Note that unlike RFI which is patched only in kernel the nospec state reflects settings at the time the module was loaded. Iterating all modules and re-patching every time the settings change is not implemented. Signed-off-by: Michal Suchanek <msucha...@suse

[PATCH RFC 1/8] powerpc: Add barrier_nospec

2018-03-13 Thread Michal Suchanek
Copypasta from original gmb() and rfi implementation Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/include/asm/barrier.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/include/asm/barrier.h b/arch/powerpc/include/asm/barrier.h index 10daa1

[PATCH RFC 2/8] powerpc: Use barrier_nospec in copy_from_user

2018-03-13 Thread Michal Suchanek
Coopypasta from x86. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/include/asm/uaccess.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h index 51bfeb8777f0..af9b0e

[PATCH RFC rebase 5/9] powerpc/64s: Add support for ori barrier_nospec patching

2018-03-15 Thread Michal Suchanek
the speculation barrier at boot when the user says it is not wanted. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/include/asm/barrier.h| 4 ++-- arch/powerpc/include/asm/feature-fixups.h | 9 + arch/powerpc/include/asm/setup.h | 8 arch/p

[PATCH RFC rebase 9/9] powerpc/64: barrier_nospec: Add commandline trigger

2018-03-15 Thread Michal Suchanek
- speculation barrier used Changing the settings after boot is not supported and VM migration may change requirements so auto is same as on. Based on s390 implementation Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/kernel/setup_64.c | 22 ++ 1 file chang

[PATCH RFC rebase 8/9] powerpc/64s: barrier_nospec: Add hcall triggerr

2018-03-15 Thread Michal Suchanek
Adapted from the RFI implementation Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/platforms/pseries/mobility.c | 2 +- arch/powerpc/platforms/pseries/pseries.h | 2 +- arch/powerpc/platforms/pseries/setup.c| 37 ++- 3 files chang

[PATCH RFC rebase 6/9] powerpc/64: Patch barrier_nospec in modules

2018-03-15 Thread Michal Suchanek
Note that unlike RFI which is patched only in kernel the nospec state reflects settings at the time the module was loaded. Iterating all modules and re-patching every time the settings change is not implemented. Based on lwsync patching. Signed-off-by: Michal Suchanek <msucha...@suse

[PATCH RFC rebase 1/9] powerpc: Add barrier_nospec

2018-03-15 Thread Michal Suchanek
When the firmware supports it an otherwise useless combination of ORI instruction arguments is interpreted as speculation barrier. Implement barrier_nospec using this instruction. Based on the out-of-tree gmb() implementation. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/p

[PATCH RFC rebase 4/9] powerpc/64s: Use barrier_nospec in RFI_FLUSH_SLOT

2018-03-15 Thread Michal Suchanek
The RFI flush support patches the speculation barrier into RFI_FLUSH_SLOT as part of the RFI flush. Use separate barrier_nospec instead. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/include/asm/exception-64s.h | 2 +- arch/powerpc/lib/feature-fixups.c

[PATCH RFC rebase 2/9] powerpc: Use barrier_nospec in copy_from_user

2018-03-15 Thread Michal Suchanek
This is based on x86 patch doing the same. Signed-off-by: Michal Suchanek <msucha...@suse.de> --- arch/powerpc/include/asm/uaccess.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h

<    1   2   3   4   5   6   7   8   >