From: Niklas Cassel <cassel@kernel.org>
To: Daniel Palmer <daniel@0x0f.com>
Cc: ysato@users.sourceforge.jp, dalias@libc.org,
glaubitz@physik.fu-berlin.de, dlemoal@kernel.org,
linux-sh@vger.kernel.org, linux-ide@vger.kernel.org,
linux-kernel@vger.kernel.org, Florian Fuchs <fuchsfl@gmail.com>
Subject: Re: [PATCH v2 1/2] ata: pata_artop: read the ATP865 mode register through pci_iomap
Date: Mon, 2 Nov 2026 11:52:50 +0100 [thread overview]
Message-ID: <auhrgteGO3TwU3HD@ryzen> (raw)
In-Reply-To: <20261025034410.808796-2-daniel@0x0f.com>
Hello Daniel,
On Sun, Oct 25, 2026 at 12:44:09PM +0900, Daniel Palmer wrote:
> artop_init_one() probes the 6280's "fast" bit with inb() on the raw
> start address of BAR 4. That address is a PCI I/O address, which is
> only a usable port number on platforms whose I/O port base maps PCI I/O
> space one to one. On an SH7751 LANDISK (identity io_port_base, PCI I/O
> window at 0xfe240000) the resource starts at 0x1400 and inb(0x1400)
> dereferences that address:
>
> BUG: unable to handle kernel paging request at 00001400
> PC is at artop_init_one+0x10e/0x170
>
> Map the BAR with pci_iomap() and use ioread8(), as libata-sff does for
> the BMDMA registers later on.
>
> Tested-by: Florian Fuchs <fuchsfl@gmail.com> # on PX-EH40L (LANDISK HDL-U, ATP865 1191:0009 rev 10)
> Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Since your cover letter says that this fixes a regression,
I think we should add a Fixes-tag.
Kind regards,
Niklas
next prev parent reply other threads:[~2026-11-02 10:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-25 3:44 [PATCH v2 0/2] sh: Fix IDE on landisk (HDD models) Daniel Palmer
2026-10-25 3:44 ` [PATCH v2 1/2] ata: pata_artop: read the ATP865 mode register through pci_iomap Daniel Palmer
2026-11-02 10:52 ` Niklas Cassel [this message]
2026-11-02 11:16 ` Daniel Palmer
2026-10-25 3:44 ` [PATCH v2 2/2] sh: landisk_defconfig: enable PATA_ARTOP for the ATP865 Daniel Palmer
2026-11-02 15:55 ` (subset) [PATCH v2 0/2] sh: Fix IDE on landisk (HDD models) Niklas Cassel
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=auhrgteGO3TwU3HD@ryzen \
--to=cassel@kernel.org \
--cc=dalias@libc.org \
--cc=daniel@0x0f.com \
--cc=dlemoal@kernel.org \
--cc=fuchsfl@gmail.com \
--cc=glaubitz@physik.fu-berlin.de \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=ysato@users.sourceforge.jp \
/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
all inboxes | Powered by JetHome®