* Re: [PATCH] m68k/mac: Enable PDMA support for PowerBook 190
[not found] <20180127235140.D559728CE0@kvm5.telegraphics.com.au>
@ 2018-01-29 8:51 ` Geert Uytterhoeven
2018-01-30 2:52 ` Finn Thain
0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2018-01-29 8:51 UTC (permalink / raw)
To: Finn Thain; +Cc: linux-m68k, Linux Kernel Mailing List
Hi Finn,
On Sun, Jan 28, 2018 at 12:51 AM, Finn Thain <fthain@telegraphics.com.au> wrote:
> Stan's tests showed that PDMA improves sequential read performance by
> a factor of 5 on a PowerBook 190. Last time I tried this on a
> PowerBook 520 it didn't work, so let's not enable it there until
> it can be tested with the present mac_scsi driver.
>
> Tested-by: Stan Johnson <userm57@yahoo.com>
> Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Thanks for your patch!
Anyone with a PB520 who can check if it works now with scsi_type =
MAC_SCSI_OLD?
> ---
> arch/m68k/mac/config.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c
> index 16cd5cea5207..95d548d8cc8a 100644
> --- a/arch/m68k/mac/config.c
> +++ b/arch/m68k/mac/config.c
> @@ -713,7 +713,7 @@ static struct mac_model mac_data_table[] = {
> .name = "PowerBook 190",
> .adb_type = MAC_ADB_PB2,
> .via_type = MAC_VIA_QUADRA,
> - .scsi_type = MAC_SCSI_LATE,
> + .scsi_type = MAC_SCSI_OLD,
> .ide_type = MAC_IDE_BABOON,
> .scc_type = MAC_SCC_QUADRA,
> .nubus_type = MAC_NUBUS,
> @@ -1077,9 +1077,7 @@ int __init mac_platform_init(void)
> mac_scsi_old_rsrc, ARRAY_SIZE(mac_scsi_old_rsrc));
> break;
> case MAC_SCSI_LATE:
> - /* PDMA logic in 68040 PowerBooks is somehow different to
> - * '030 models. It's probably more like Quadras (see mac_esp).
> - */
> + /* XXX PDMA support for PowerBook 500 series needs testing */
> platform_device_register_simple("mac_scsi", 0,
> mac_scsi_late_rsrc, ARRAY_SIZE(mac_scsi_late_rsrc));
> break;
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] m68k/mac: Enable PDMA support for PowerBook 190
2018-01-29 8:51 ` [PATCH] m68k/mac: Enable PDMA support for PowerBook 190 Geert Uytterhoeven
@ 2018-01-30 2:52 ` Finn Thain
0 siblings, 0 replies; 3+ messages in thread
From: Finn Thain @ 2018-01-30 2:52 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: linux-m68k, Linux Kernel Mailing List
On Mon, 29 Jan 2018, Geert Uytterhoeven wrote:
>
> Anyone with a PB520 who can check if it works now with scsi_type =
> MAC_SCSI_OLD?
>
The PB520 and PB540 have a flawed early-revision 68LC040 processor* which
makes it unlikely that these machines are running Linux (or NetBSD). A few
have had backyard CPU upgrades, like my own. I'll test MAC_SCSI_OLD at
some point, but I don't know when that will be.
The PB550 doesn't have the 68LC040 problem but it was only available in
Japan. These machines may have Linux or NetBSD on them, but they are rare
and their owners may not be found on these lists.
* http://mac.linux-m68k.org/docs/faq.php#sec-4.5
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] m68k/mac: Enable PDMA support for PowerBook 190
@ 2018-01-27 23:51 Finn Thain
0 siblings, 0 replies; 3+ messages in thread
From: Finn Thain @ 2018-01-27 23:51 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: linux-m68k, linux-kernel
Stan's tests showed that PDMA improves sequential read performance by
a factor of 5 on a PowerBook 190. Last time I tried this on a
PowerBook 520 it didn't work, so let's not enable it there until
it can be tested with the present mac_scsi driver.
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
---
arch/m68k/mac/config.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c
index 16cd5cea5207..95d548d8cc8a 100644
--- a/arch/m68k/mac/config.c
+++ b/arch/m68k/mac/config.c
@@ -713,7 +713,7 @@ static struct mac_model mac_data_table[] = {
.name = "PowerBook 190",
.adb_type = MAC_ADB_PB2,
.via_type = MAC_VIA_QUADRA,
- .scsi_type = MAC_SCSI_LATE,
+ .scsi_type = MAC_SCSI_OLD,
.ide_type = MAC_IDE_BABOON,
.scc_type = MAC_SCC_QUADRA,
.nubus_type = MAC_NUBUS,
@@ -1077,9 +1077,7 @@ int __init mac_platform_init(void)
mac_scsi_old_rsrc, ARRAY_SIZE(mac_scsi_old_rsrc));
break;
case MAC_SCSI_LATE:
- /* PDMA logic in 68040 PowerBooks is somehow different to
- * '030 models. It's probably more like Quadras (see mac_esp).
- */
+ /* XXX PDMA support for PowerBook 500 series needs testing */
platform_device_register_simple("mac_scsi", 0,
mac_scsi_late_rsrc, ARRAY_SIZE(mac_scsi_late_rsrc));
break;
--
2.13.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-30 2:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20180127235140.D559728CE0@kvm5.telegraphics.com.au>
2018-01-29 8:51 ` [PATCH] m68k/mac: Enable PDMA support for PowerBook 190 Geert Uytterhoeven
2018-01-30 2:52 ` Finn Thain
2018-01-27 23:51 Finn Thain
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 NNTP newsgroup(s).