The NetBSD Project

CVS log for src/sys/stand/efiboot/efiblock.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / stand / efiboot

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Sun Apr 24 06:49:38 2022 UTC (9 months, 2 weeks ago) by mlelstv
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.18: +36 -17 lines
Diff to previous 1.18 (colored)

Use physical sector size as unit for disk addresses.
Provide new ioctl to libsa to query for sector size.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Oct 30 11:18:51 2021 UTC (15 months, 1 week ago) by jmcneill
Branch: MAIN
Changes since 1.17: +5 -1 lines
Diff to previous 1.17 (colored)

If a path is not specified, assume /. This makes "ls" and "ls hd0b:" work
as expected.

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:44 2021 UTC (18 months, 1 week ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.10.4.1: +184 -124 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 23 21:42:43 2021 UTC (19 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

fix typo

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 23 20:55:50 2021 UTC (19 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

Fix buffer size for alignment adjusted block I/O reads.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jun 22 21:56:51 2021 UTC (19 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.14: +85 -16 lines
Diff to previous 1.14 (colored)

efiboot: Use EFI_BLOCK_IO_PROTOCOL if EFI_DISK_IO_PROTOCOL is missing

UEFI spec says that firmware should automatically add EFI_DISK_IO_PROTOCOL
for all produced EFI_BLOCK_IO_PROTOCOL interfaces. Unfortunately U-Boot
doesn't do this, so fallback to block I/O if disk I/O is not there.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jun 21 21:18:47 2021 UTC (19 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.13: +56 -1 lines
Diff to previous 1.13 (colored)

efiboot: Add readahead support.

Reading data through libsa file-systems ends up breaking block I/O
accesses into very small (512-byte or 2048-byte) accesses. This can be
very inefficient, and causes Ampere eMAG w/ BMC image direction to take
_minutes_ to load the install image and kernel. So slow in fact that
the default watchdog timeout will fire before it finishes.

So, when loading big files, optimistically read ahead up to 64KB of data.
Brings the time to boot the install ISO down to around 40 seconds -- still
not ideal but way better than before.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 21 11:11:33 2021 UTC (19 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.12: +56 -127 lines
Diff to previous 1.12 (colored)

efiboot: Use disk I/O protocol for block device access.

EFI_DISK_IO_PROTOCOL is a simplified interface to block devices. Use this
instead of EFI_BLOCK_IO_PROTOCOL for accessing block devices to simplify
the code -- we no longer need to worry about the underlying media's block
I/O size and alignment requirements.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 20 19:10:47 2021 UTC (19 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.11: +6 -1 lines
Diff to previous 1.11 (colored)

Add support for the boot services watchdog and pet it on every block I/O
access. For slow media (like ISO image redirection on Lenovo HR330A BMC)
this is needed because otherwise the default watchdog timeout fires before
we can finish loading the kernel from install media.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:36 2021 UTC (19 months, 3 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.10: +18 -3 lines
Diff to previous 1.10 (colored)

Sync w/ HEAD.

Revision 1.10.6.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:22 2021 UTC (20 months, 1 week ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.10: +18 -3 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

sync with head

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 26 09:42:36 2021 UTC (20 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.10: +18 -3 lines
Diff to previous 1.10 (colored)

add basic raidframe support to efiboot.

if raid disklabel or gpt is found, add this partition with
the offset/size adjusted by RF_PROTECTED_SECTORS.  note

don't le32toh() the disklabel.  if it was wrong-endian, then
getdisklabel() will have swapped it.

ok jmcneill thorpej.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:17 2020 UTC (2 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.9: +27 -10 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync w/ HEAD.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 28 15:24:05 2020 UTC (2 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.9: +27 -10 lines
Diff to previous 1.9 (colored)

Deal with devices that report either 512 or 2048 as logical block size
for CD9660 file-systems.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Oct 18 18:05:48 2020 UTC (2 years, 3 months ago) by tnn
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

efiboot: recognize the EFI system partition as fstype MSDOS

Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 11 14:03:33 2020 UTC (2 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +62 -2 lines
Diff to previous 1.7 (colored)

Add ISO9660 support.

Revision 1.5.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:19 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.5.4.2: +57 -22 lines
Diff to previous 1.5.4.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Sat Sep 28 07:24:29 2019 UTC (3 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.5.6.1: +3 -3 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Pull up following revision(s) (requested by jakllsch in ticket #257):

	sys/stand/efiboot/efiblock.c: revision 1.7

Use roundup2() instead of open coding something almost the same that
truncates 64-bit quantities.

Fixes disk access and booting in bootaa64.efi on SoftIron OverDrive 1000
(which does not have any memory below 4GiB).

Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 27 20:10:42 2019 UTC (3 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Use roundup2() instead of open coding something almost the same that
truncates 64-bit quantities.

Fixes disk access and booting in bootaa64.efi on SoftIron OverDrive 1000
(which does not have any memory below 4GiB).

Revision 1.5.6.1 / (download) - annotate - [select for diffs], Sun Sep 22 12:37:39 2019 UTC (3 years, 4 months ago) by martin
Branch: netbsd-9
Changes since 1.5: +57 -22 lines
Diff to previous 1.5 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #225):

	sys/stand/efiboot/efiblock.c: revision 1.6

Honour block device's IO alignment requirements.
Patch from Simon South <simon%simonsouth.net@localhost> in PR# 54554

Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 21 10:19:37 2019 UTC (3 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.5: +57 -22 lines
Diff to previous 1.5 (colored)

Honour block device's IO alignment requirements.

Patch from Simon South <simon@simonsouth.net> in PR# 54554

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:56 2019 UTC (3 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.5.4.1: +528 -0 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored)

Sync with HEAD

Revision 1.5.4.1, Sat Mar 9 13:16:42 2019 UTC (3 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.5: +0 -528 lines
FILE REMOVED

file efiblock.c was added on branch phil-wifi on 2019-06-10 22:09:56 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Sat Mar 9 13:16:42 2019 UTC (3 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, netbsd-9
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

Workaround a bug with ROCKPro64's U-Boot EFI implementation. The booted
device path when booting from SD card sometimes does not include a
MEDIA_DEVICE_PATH component, so in this case fallback to doing an exact
match on the booted device path with the block device path to detect the
default boot device.

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:52 2018 UTC (4 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.2.2.3: +161 -6 lines
Diff to previous 1.2.2.3 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 1 00:43:38 2018 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.3: +161 -6 lines
Diff to previous 1.3 (colored)

Add GPT support.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:57 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.2.2.2: +2 -2 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored)

Ssync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Fri Sep 14 21:37:03 2018 UTC (4 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

MI efiboot: avoid LBA overflow in efi_block_find_partitions_disklabel()

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:47 2018 UTC (4 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.2.2.1: +371 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.2.2.1, Mon Aug 27 09:51:32 2018 UTC (4 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.2: +0 -371 lines
FILE REMOVED

file efiblock.c was added on branch pgoyette-compat on 2018-09-06 06:56:47 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 27 09:51:32 2018 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Branch point for: pgoyette-compat
Changes since 1.1: +24 -3 lines
Diff to previous 1.1 (colored)

Pass a hash of the MBR and the booted partition to the kernel.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Aug 26 21:28:18 2018 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN

Add support for booting kernels from FFS partitions.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>