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
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.
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,
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
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
&
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.
>
>
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
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
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
> ---
>
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
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
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>
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
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>
>>>
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
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
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
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
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
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
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
>> >
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
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
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
-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 +-
.
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,
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
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
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
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,
>> +
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
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
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
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
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
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
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
-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/
-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
-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
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
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
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
-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 @
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
.
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
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
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
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
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
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
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
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
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
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
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
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 +
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
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
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/
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
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
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
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
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
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.
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
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 "
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
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
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
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
("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
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
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/
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
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
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
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.
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 +++
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
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
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
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
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
---
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
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
+++
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
.
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
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
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
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
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
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
- 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
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
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
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
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
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
201 - 300 of 717 matches
Mail list logo