~dannf/ubuntu/+source/linux/+git/yakkety:spcr

Last commit made on 2016-10-04
Get this branch:
git clone -b spcr https://git.launchpad.net/~dannf/ubuntu/+source/linux/+git/yakkety
Only dann frazier can upload to this branch. If you are dann frazier please log in for upload directions.

Branch merges

Branch information

Recent commits

15e9d47... by Aleksey Makarov <email address hidden>

serial: pl011: add console matching function

BugLink: http://bugs.launchpad.net/bugs/1630311

This patch adds function pl011_console_match() that implements
method match of struct console. It allows to match consoles against
data specified in a string, for example taken from command line or
compiled by ACPI SPCR table handler.

Signed-off-by: Aleksey Makarov <email address hidden>
Reviewed-by: Peter Hurley <email address hidden>
Acked-by: Russell King <email address hidden>
Tested-by: Christopher Covington <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
(cherry picked from commit 8b8f347d3a4859d22567f3b8e5bb4a69b1089739)
Signed-off-by: dann frazier <email address hidden>

653e66d... by Aleksey Makarov <email address hidden>

ARM64: ACPI: enable ACPI_SPCR_TABLE

BugLink: http://bugs.launchpad.net/bugs/1630311

SBBR mentions SPCR as a mandatory ACPI table. So enable it for ARM64

Earlycon should be set up as early as possible. ACPI boot tables are
mapped in arch/arm64/kernel/acpi.c:acpi_boot_table_init() that
is called from setup_arch() and that's where we parse SPCR.
So it has to be opted-in per-arch.

When ACPI_SPCR_TABLE is defined initialization of DT earlycon is
deferred until the DT/ACPI decision is done. Initialize DT earlycon
if ACPI is disabled.

Acked-by: Will Deacon <email address hidden>
Acked-by: Hanjun Guo <email address hidden>
Signed-off-by: Aleksey Makarov <email address hidden>
Tested-by: Kefeng Wang <email address hidden>
Tested-by: Christopher Covington <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
(cherry picked from commit 888125a712986fd0fab99d09f42b307de32d740c)
Signed-off-by: dann frazier <email address hidden>

27ec4e9... by Aleksey Makarov <email address hidden>

ACPI: parse SPCR and enable matching console

BugLink: http://bugs.launchpad.net/bugs/1630311

'ARM Server Base Boot Requiremets' [1] mentions SPCR (Serial Port
Console Redirection Table) [2] as a mandatory ACPI table that
specifies the configuration of serial console.

Defer initialization of DT earlycon until ACPI/DT decision is made.

Parse the ACPI SPCR table, setup earlycon if required,
enable specified console.

Thanks to Peter Hurley for explaining how this should work.

[1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html
[2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx

Signed-off-by: Aleksey Makarov <email address hidden>
Acked-by: Rafael J. Wysocki <email address hidden>
Reviewed-by: Peter Hurley <email address hidden>
Tested-by: Kefeng Wang <email address hidden>
Tested-by: Christopher Covington <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
(cherry picked from commit ad1696f6f09daacfdf2bf04bc83cd8f48d80e34a)
Signed-off-by: dann frazier <email address hidden>

9cc2579... by dann frazier

UBUNTU: [Config] CONFIG_ACPI_SPCR_TABLE=y

BugLink: http://bugs.launchpad.net/bugs/1630311

Signed-off-by: dann frazier <email address hidden>

262ffb4... by Leif Lindholm

of/serial: move earlycon early_param handling to serial

BugLink: http://bugs.launchpad.net/bugs/1630311

We have multiple "earlycon" early_param handlers - merge the DT one into
the main earlycon one. It's a cleanup that also will be useful
to defer setting up DT console until ACPI/DT decision is made.

Rename the exported function to avoid clashing with the function from
arch/microblaze/kernel/prom.c

Signed-off-by: Leif Lindholm <email address hidden>
Signed-off-by: Aleksey Makarov <email address hidden>
Acked-by: Rob Herring <email address hidden>
Acked-by: Greg Kroah-Hartman <email address hidden>
Reviewed-by: Peter Hurley <email address hidden>
Tested-by: Kefeng Wang <email address hidden>
Tested-by: Christopher Covington <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
(cherry picked from commit d503187b6cc4e41c21c02e695e0e7b5acdd066de)
Signed-off-by: dann frazier <email address hidden>

557e363... by Tim Gardner

UBUNTU: Ubuntu-4.8.0-20.22

Signed-off-by: Tim Gardner <email address hidden>

861568f... by Tim Gardner

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <email address hidden>

6978f5d... by Tim Gardner

UBUNTU: Ubuntu-4.8.0-19.21

Signed-off-by: Tim Gardner <email address hidden>

0b1f733... by Tim Gardner

UBUNTU: [Config] CONFIG_HARDENED_USERCOPY_PAGESPAN=n

BugLink: http://bugs.launchpad.net/bugs/1627198

According to the config option help text, this should not
have been enabled.

Signed-off-by: Tim Gardner <email address hidden>

c1fa514... by Stefan Bader

UBUNTU: SAUCE: nbd: Only delay uevent until connected

Just a hack until it is understood what actually generates the
uevent which also triggers a partition scan.

Commit 37091fdd831f28a6509008542174ed324dd645bc (in 4.8-rc1)
  nbd: Create size change events for userspace

tries to do the right thing and add a change event at the right
time, but doing so made things actually worse.

The only thing which this patch changes is that i_size and the
capacity are touched multiple times. Both actions do not look
like they could cause a change event being triggered in any way.
Still it does happen and whatever is doing this, it also causes
a partition scan.

So without this change when connecting a file image with qemu-nbd
there was only one change event and no partitions added. However
in some rare cases there were two change events on the main nbd
device and partitions were added.

One thought I had was maybe something like inotify notes the
change to bdev->bd_inode->i_size and triggers the partition
scan when the capacity is already >0. But only changing the
order but not update all variables whenever any of the related
ioctl calls is made is not working. This somehow leave only the
longer time the changes are exposed until nbd sends its own
change event as some sort of explanation.

BugLink: http://bugs.launchpad.net/bugs/1628336

Signed-off-by: Stefan Bader <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>