mbox series

[v1,0/3] Support EFI partition on NVIDIA Tegra devices

Message ID 20210327212100.3834-1-digetx@gmail.com (mailing list archive)
Headers show
Series Support EFI partition on NVIDIA Tegra devices | expand

Message

Dmitry Osipenko March 27, 2021, 9:20 p.m. UTC
Hi,

This series adds support for gpt_sector=<sector> kernel parameter used
specifically by Android devices that are based on NVIDIA Tegra SoCs.
This parameter is supplied by downstream bootloader, it tells the
number of a sector where EFI entry is located on EMMC storage.

A year ago we tried to upstream the support of gpt_sector and then the
support of NVIDIA's proprietary partition table, which was suggested by
Christoph Hellwig, but that effort didn't get enough attention.

Now, a year later, we have more Tegra devices running mainline kernel
and the situation hasn't changed, we still need to support the quirks
needed for accessing internal EMMC storage of the Tegra devices.  This
time I'm trying to get back to variant with supporting the gpt_sector
parameter, but in a way which doesn't disturb anything other than the
EMMC of NVIDIA Tegra devices, which previously was suggested by
Christoph Hellwig as well.

Dmitry Osipenko (3):
  mmc: core: Add raw_boot_mult field to mmc_ext_csd
  mmc: block: Add mmc_bdev_to_card() helper
  partitions/efi: Support gpt_sector parameter needed by NVIDIA Tegra
    devices

 block/partitions/Kconfig   |   8 +++
 block/partitions/Makefile  |   1 +
 block/partitions/check.h   |   2 +
 block/partitions/core.c    |   3 ++
 block/partitions/efi.c     |  18 +++++++
 block/partitions/tegra.c   | 108 +++++++++++++++++++++++++++++++++++++
 drivers/mmc/core/block.c   |  15 ++++++
 drivers/mmc/core/mmc.c     |   2 +
 include/linux/mmc/blkdev.h |  13 +++++
 include/linux/mmc/card.h   |   1 +
 10 files changed, 171 insertions(+)
 create mode 100644 block/partitions/tegra.c
 create mode 100644 include/linux/mmc/blkdev.h