Ard Biesheuvel
78905c6ab1
ARM: p2v: fix handling of LPAE translation in BE mode
...
[ Upstream commit 4e79f0211b473f8e1eab8211a9fd50cc41a3a061 ]
When running in BE mode on LPAE hardware with a PA-to-VA translation
that exceeds 4 GB, we patch bits 39:32 of the offset into the wrong
byte of the opcode. So fix that, by rotating the offset in r0 to the
right by 8 bits, which will put the 8-bit immediate in bits 31:24.
Note that this will also move bit #22 in its correct place when
applying the rotation to the constant #0x400000.
Fixes: d9a790df8e
("ARM: 7883/1: fix mov to mvn conversion in case of 64 bit phys_addr_t and BE")
Acked-by: Nicolas Pitre <nico@fluxnic.net >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Ard Biesheuvel <ardb@kernel.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-12-30 11:52:58 +01:00
..
2020-03-25 11:50:48 +01:00
2019-10-27 21:14:43 +00:00
2020-05-08 15:32:17 +10:00
2020-07-08 10:48:35 -07:00
2019-06-19 17:09:55 +02:00
2020-07-30 08:22:33 +02:00
2020-05-07 20:53:10 +01:00
2019-05-14 19:52:48 -07:00
2020-09-18 22:39:09 +01:00
2019-06-01 18:29:58 +02:00
2020-10-25 14:51:49 -07:00
2019-06-19 17:09:55 +02:00
2020-09-15 14:35:28 +01:00
2020-10-25 14:51:49 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-07-12 11:05:46 -07:00
2020-04-20 19:42:19 +02:00
2020-05-03 17:30:24 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-05-03 17:30:24 +01:00
2019-06-19 17:09:55 +02:00
2020-06-08 11:05:57 -07:00
2014-07-18 12:29:04 +01:00
2020-06-17 10:57:41 -07:00
2019-10-10 22:23:20 +01:00
2019-06-19 17:09:55 +02:00
2019-10-10 22:23:20 +01:00
2020-12-30 11:52:58 +01:00
2019-05-30 11:29:22 -07:00
2020-09-15 14:35:24 +01:00
2020-03-24 10:56:05 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-09-17 16:37:28 +01:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:55 +02:00
2019-01-06 09:46:51 +09:00
2020-06-17 10:57:41 -07:00
2020-08-07 11:33:26 -07:00
2019-12-10 10:11:00 +01:00
2019-10-27 21:14:38 +00:00
2020-06-09 09:39:13 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:41 -07:00
2020-02-11 12:56:27 +01:00
2019-01-03 18:57:57 -08:00
2018-07-10 18:19:02 +01:00
2019-08-23 11:38:46 +01:00
2018-07-10 18:19:02 +01:00
2020-11-09 18:12:34 +01:00
2019-06-19 17:09:55 +02:00
2020-11-24 16:47:35 +01:00
2019-10-31 16:58:52 +00:00
2020-07-27 14:31:09 -04:00
2020-03-25 12:59:33 +01:00
2017-11-02 11:10:55 +01:00
2020-03-12 11:29:02 +00:00
2019-11-15 22:21:07 +00:00
2020-10-13 18:38:35 -07:00
2020-10-17 15:04:36 -06:00
2019-10-31 16:58:53 +00:00
2019-05-30 11:26:41 -07:00
2019-02-26 11:32:54 +00:00
2019-06-05 17:36:37 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-09-28 11:32:04 +01:00
2020-07-21 16:33:40 +01:00
2020-08-07 11:33:26 -07:00
2020-06-09 09:39:14 -07:00
2019-06-19 17:09:55 +02:00
2020-04-21 17:49:30 +01:00
2019-10-31 16:58:56 +00:00
2019-06-05 17:37:06 +02:00
2020-05-15 22:54:57 +02:00
2020-08-19 10:49:47 +02:00
2020-06-18 12:10:37 -07:00
2020-06-09 09:39:10 -07:00
2019-06-19 17:09:55 +02:00
2020-07-21 16:32:55 +01:00
2020-09-01 10:03:18 +02:00
2020-10-27 11:32:21 -07:00
2019-06-19 17:09:55 +02:00