Re: [PATCH 0/2] sh: Fix IDE on landisk
From: Geert Uytterhoeven
Date: Sun Oct 18 2026 - 10:48:26 EST
Hi Daniel,
On Sat, 17 Oct 2026 at 09:48, John Paul Adrian Glaubitz
<glaubitz@xxxxxxxxxxxxxxxxxxx> wrote:
> On Sat, 2026-10-17 at 13:14 +0900, Daniel Palmer wrote:
> > I dug out my landisk to look at kexec for Geert. Since I'm lazy and
> > LLMs are good at fixing bitrot I let my LLM work out how to get
> > it to boot again.
> >
> > There are some other issues (perf is apparently borken, there are
> > some issues with the decompresor and big kernels..) but this
> > seems to be the only thing stopping it booting with the defconfig.
> >
> > Disclaimer since we don't need to give LLM tags anymore:
> > - LLM debugged the issue.
> > - It has been checked on real hardware.
> > - I have checked the IDE driver patch, cleaned it up and
> > cleaned out massive walls of text that LLMs seem to like
> > to add but I have left its summary of the issue in the commit
> > message.
> >
> > Daniel Palmer (2):
> > ata: pata_artop: read the ATP865 mode register through pci_iomap
> > sh: landisk_defconfig: enable PATA_ARTOP for the ATP865
> >
> > arch/sh/configs/landisk_defconfig | 2 +-
> > drivers/ata/pata_artop.c | 12 ++++++++++--
> > 2 files changed, 11 insertions(+), 3 deletions(-)
>
> Great, thanks for fixing this. While I have LANDISK hardware myself,
> I cannot probably set it up fast enough now to test your patches as
> I don't know where I put it after moving places.
>
> I hope Geert can test and review your patches and I'll pick them up
> with his Reviewed-by and Tested-by signatures.
Sorry, I must have different hardware, as mine doesn't have an
ATP865 PCI device:
# lspci
00:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 20)
00:02.0 USB Controller: NEC Corporation USB (rev 43)
00:02.1 USB Controller: NEC Corporation USB (rev 43)
00:02.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
My CF rootfs uses pata_platform, which is enabled in my working .config.
landisk_defconfig lacks CONFIG_PATA_PLATFORM=y, so it hangs during
boot. After enabling that, the boot gets further, but it still hangs:
INIT: Id "1" respawning too fast: disabled for 5 minutes
INIT: Id "2" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
Adding
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
to landisk_defconfig fixes that.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds