grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: ValdikSS via Grub-devel <grub-devel@gnu.org>
To: grub-devel@gnu.org
Cc: ValdikSS <iam@valdikss.org.ru>
Subject: [PATCH v2 0/2] disk: use maximum number of sectors for LBA
Date: Fri,  6 Oct 2023 20:10:11 +0300	[thread overview]
Message-ID: <20231006171142.14846-1-iam@valdikss.org.ru> (raw)

GRUB2 limits number of sectors read at once in LBA mode to the
number reported in CHS disk geometry by BIOS.
This is unnecessary, as IBM/MS INT13 Extensions does not have
such limit and it is safe to read up to 127 sectors in a single call.

This fixes greatly increased boot times on WYSE C10LE x86 thin
client with Phoenix bios.

See: https://lore.kernel.org/grub-devel/d42a11fa-2a59-b5e7-08b1-d2c60444bb99@valdikss.org.ru/

ValdikSS (2):
  disk: read up to 63 sectors in LBA mode
  disk: increase sector size up to 127 for LBA reads

 grub-core/disk/i386/pc/biosdisk.c | 5 ++++-
 include/grub/disk.h               | 7 +++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

-- 
2.41.0


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

             reply	other threads:[~2023-10-06 17:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-06 17:10 ValdikSS via Grub-devel [this message]
2023-10-06 17:10 ` [PATCH v2 1/2] disk: read up to 63 sectors in LBA mode ValdikSS via Grub-devel
2023-10-06 17:10 ` [PATCH v2 2/2] disk: increase sector size up to 127 for LBA reads ValdikSS via Grub-devel
2023-10-06 18:21   ` Glenn Washburn
2023-10-06 20:32     ` ValdikSS via Grub-devel
2023-10-06 20:54   ` Vladimir 'phcoder' Serbinenko
2023-10-10  1:32     ` ValdikSS via Grub-devel
2023-10-09 15:08 ` [PATCH v2 0/2] disk: use maximum number of sectors for LBA Daniel Kiper
2023-10-10 11:34   ` Daniel Kiper
2023-10-10 18:30     ` ValdikSS via Grub-devel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231006171142.14846-1-iam@valdikss.org.ru \
    --to=grub-devel@gnu.org \
    --cc=iam@valdikss.org.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).