All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers
@ 2016-06-27 12:23 ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 10+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2016-06-27 12:23 UTC (permalink / raw)
  To: sparclinux, David S. Miller; +Cc: linux-ide, linux-kernel, b.zolnierkie

IDE subsystem has been deprecated since 2009 and the majority
(if not all) of Linux distributions have switched to use
libata for ATA support exclusively.  However there are still
some users (mostly old or/and embedded non-x86 systems) that
have not converted from using IDE subsystem to libata PATA
drivers.  This doesn't seem to be good thing in the long-term
for Linux as while there is less and less PATA systems left
in use:

* testing efforts are divided between two subsystems

* having duplicate drivers for same hardware confuses users

This patch converts sparc64_defconfig to use libata PATA
drivers.

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
---
Build tested only.
If you have affected hardware please test.  Thank you.

 arch/sparc/configs/sparc64_defconfig | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/arch/sparc/configs/sparc64_defconfig b/arch/sparc/configs/sparc64_defconfig
index e4bbc76..41609ad 100644
--- a/arch/sparc/configs/sparc64_defconfig
+++ b/arch/sparc/configs/sparc64_defconfig
@@ -68,19 +68,17 @@ CONFIG_CDROM_PKTCDVD=m
 CONFIG_CDROM_PKTCDVD_WCACHE=y
 CONFIG_ATA_OVER_ETH=m
 CONFIG_SUNVDC=m
-CONFIG_IDE=y
-CONFIG_BLK_DEV_IDECD=y
-CONFIG_BLK_DEV_ALI15X3=y
 CONFIG_RAID_ATTRS=m
-CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
-CONFIG_BLK_DEV_SR=m
+CONFIG_BLK_DEV_SR=y
 CONFIG_BLK_DEV_SR_VENDOR=y
 CONFIG_CHR_DEV_SG=m
 CONFIG_SCSI_MULTI_LUN=y
 CONFIG_SCSI_CONSTANTS=y
 CONFIG_SCSI_SPI_ATTRS=y
 CONFIG_SCSI_FC_ATTRS=y
+CONFIG_ATA=y
+CONFIG_PATA_ALI=y
 CONFIG_MD=y
 CONFIG_BLK_DEV_MD=m
 CONFIG_MD_LINEAR=m
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers
@ 2016-06-27 12:23 ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 10+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2016-06-27 12:23 UTC (permalink / raw)
  To: sparclinux, David S. Miller; +Cc: linux-ide, linux-kernel, b.zolnierkie

IDE subsystem has been deprecated since 2009 and the majority
(if not all) of Linux distributions have switched to use
libata for ATA support exclusively.  However there are still
some users (mostly old or/and embedded non-x86 systems) that
have not converted from using IDE subsystem to libata PATA
drivers.  This doesn't seem to be good thing in the long-term
for Linux as while there is less and less PATA systems left
in use:

* testing efforts are divided between two subsystems

* having duplicate drivers for same hardware confuses users

This patch converts sparc64_defconfig to use libata PATA
drivers.

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
---
Build tested only.
If you have affected hardware please test.  Thank you.

 arch/sparc/configs/sparc64_defconfig | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/arch/sparc/configs/sparc64_defconfig b/arch/sparc/configs/sparc64_defconfig
index e4bbc76..41609ad 100644
--- a/arch/sparc/configs/sparc64_defconfig
+++ b/arch/sparc/configs/sparc64_defconfig
@@ -68,19 +68,17 @@ CONFIG_CDROM_PKTCDVD=m
 CONFIG_CDROM_PKTCDVD_WCACHE=y
 CONFIG_ATA_OVER_ETH=m
 CONFIG_SUNVDC=m
-CONFIG_IDE=y
-CONFIG_BLK_DEV_IDECD=y
-CONFIG_BLK_DEV_ALI15X3=y
 CONFIG_RAID_ATTRS=m
-CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
-CONFIG_BLK_DEV_SR=m
+CONFIG_BLK_DEV_SR=y
 CONFIG_BLK_DEV_SR_VENDOR=y
 CONFIG_CHR_DEV_SG=m
 CONFIG_SCSI_MULTI_LUN=y
 CONFIG_SCSI_CONSTANTS=y
 CONFIG_SCSI_SPI_ATTRS=y
 CONFIG_SCSI_FC_ATTRS=y
+CONFIG_ATA=y
+CONFIG_PATA_ALI=y
 CONFIG_MD=y
 CONFIG_BLK_DEV_MD=m
 CONFIG_MD_LINEAR=m
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers
  2016-06-27 12:23 ` Bartlomiej Zolnierkiewicz
@ 2016-06-27 16:38   ` alexmcwhirter
  -1 siblings, 0 replies; 10+ messages in thread
From: alexmcwhirter @ 2016-06-27 16:38 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz
  Cc: sparclinux, David S. Miller, linux-ide, linux-kernel, sparclinux-owner

On 2016-06-27 08:23, Bartlomiej Zolnierkiewicz wrote:

> If you have affected hardware please test.  Thank you.

For what it's worth, I've been using libata on sparc64 for roughly two 
years with no issues to report. All of my PATA machines have ALI 
controllers, not sure if any other controllers were ever used in sparc 
gear.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] sparc64: sparc64_defconfig: conve =?UTF-8?Q?rt=20to=20use=20libata
@ 2016-06-27 16:38   ` alexmcwhirter
  0 siblings, 0 replies; 10+ messages in thread
From: alexmcwhirter @ 2016-06-27 16:38 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz
  Cc: sparclinux, David S. Miller, linux-ide, linux-kernel, sparclinux-owner

On 2016-06-27 08:23, Bartlomiej Zolnierkiewicz wrote:

> If you have affected hardware please test.  Thank you.

For what it's worth, I've been using libata on sparc64 for roughly two 
years with no issues to report. All of my PATA machines have ALI 
controllers, not sure if any other controllers were ever used in sparc 
gear.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers
  2016-06-27 16:38   ` [PATCH] sparc64: sparc64_defconfig: conve =?UTF-8?Q?rt=20to=20use=20libata alexmcwhirter
@ 2016-06-27 23:18     ` Julian Calaby
  -1 siblings, 0 replies; 10+ messages in thread
From: Julian Calaby @ 2016-06-27 23:18 UTC (permalink / raw)
  To: alexmcwhirter
  Cc: Bartlomiej Zolnierkiewicz, sparclinux, David S. Miller,
	linux-ide, linux-kernel, sparclinux-owner

Hi Alex,

On Tue, Jun 28, 2016 at 2:38 AM,  <alexmcwhirter@triadic.us> wrote:
> On 2016-06-27 08:23, Bartlomiej Zolnierkiewicz wrote:
>
>> If you have affected hardware please test.  Thank you.
>
>
> For what it's worth, I've been using libata on sparc64 for roughly two years
> with no issues to report. All of my PATA machines have ALI controllers, not
> sure if any other controllers were ever used in sparc gear.

The Ultra 5 uses a CMD64x controller.

That said, last time I tried to get that machine working, I couldn't
partition the disk due to bugs in that driver.

I believe the Ultra 10 uses the same motherboard so it's likely also
affected. I believe these were in the first generation of "PC" like
SPARC workstations.

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers
@ 2016-06-27 23:18     ` Julian Calaby
  0 siblings, 0 replies; 10+ messages in thread
From: Julian Calaby @ 2016-06-27 23:18 UTC (permalink / raw)
  To: alexmcwhirter
  Cc: Bartlomiej Zolnierkiewicz, sparclinux, David S. Miller,
	linux-ide, linux-kernel, sparclinux-owner

Hi Alex,

On Tue, Jun 28, 2016 at 2:38 AM,  <alexmcwhirter@triadic.us> wrote:
> On 2016-06-27 08:23, Bartlomiej Zolnierkiewicz wrote:
>
>> If you have affected hardware please test.  Thank you.
>
>
> For what it's worth, I've been using libata on sparc64 for roughly two years
> with no issues to report. All of my PATA machines have ALI controllers, not
> sure if any other controllers were ever used in sparc gear.

The Ultra 5 uses a CMD64x controller.

That said, last time I tried to get that machine working, I couldn't
partition the disk due to bugs in that driver.

I believe the Ultra 10 uses the same motherboard so it's likely also
affected. I believe these were in the first generation of "PC" like
SPARC workstations.

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers
  2016-06-27 12:23 ` Bartlomiej Zolnierkiewicz
  (?)
  (?)
@ 2016-06-28 10:27 ` Meelis Roos
  -1 siblings, 0 replies; 10+ messages in thread
From: Meelis Roos @ 2016-06-28 10:27 UTC (permalink / raw)
  To: sparclinux

> The Ultra 5 uses a CMD64x controller.
> 
> That said, last time I tried to get that machine working, I couldn't
> partition the disk due to bugs in that driver.

Yes, Ultra 5 uses CMD64x. This has worked well for me on U5 for ages. 
The debug messages have also been there as long as I remember. The 
controller is limited to 128GiB disks in DMA mode so I have used up to 
120G disks only and have not tried any bigger ones.

[    0.000000] Linux version 4.7.0-rc4-dirty (mroos@u5) (gcc version 4.9.3 (Debian 4.9.3-2) ) #44 Mon Jun 20 23:34:30 EEST 2016

[...]

[  120.758330] scsi host0: pata_cmd64x
[  120.792553] scsi host1: pata_cmd64x
[  120.823204] ata1: PATA max MWDMA2 cmd 0x1fe02c00000 ctl 0x1fe02c00008 bmdma 0x1fe02c00020 irq 14
[  120.921890] ata2: PATA max MWDMA2 cmd 0x1fe02c00010 ctl 0x1fe02c00018 bmdma 0x1fe02c00028 irq 14
[  121.021552] pata_cmd64x: active 10 recovery 10 setup 3.
[  121.694109] pata_cmd64x: active 10 recovery 10 setup 3.
[  122.244996] pata_cmd64x: active 3 recovery 1 setup 1.
[  122.342321] pata_cmd64x: active 3 recovery 1 setup 1.
[  122.533229] ata1.00: configured for MWDMA2
[  122.574590] scsi 0:0:0:0: Direct-Access     ATA      ST3120026A       3.06 PQ: 0 ANSI: 5
[  122.704312] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB)
[  122.785084] sd 0:0:0:0: [sda] Write Protect is off
[  122.828859] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[  122.876026] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  122.977380] pata_cmd64x: active 10 recovery 10 setup 3.
[  123.038061] pata_cmd64x: active 10 recovery 10 setup 3.
[  123.182957]  sda: sda1 sda2 sda3
[  123.215754] sd 0:0:0:0: [sda] Attached SCSI disk
[  123.295854] ata2.00: ATAPI: CRD-8322B, 1.06, max MWDMA2
[  123.350108] pata_cmd64x: active 3 recovery 1 setup 1.
[  123.405746] pata_cmd64x: active 3 recovery 1 setup 1.
[  123.504198] ata2.00: configured for MWDMA2
[  123.590960] scsi 1:0:0:0: CD-ROM               LG    CD-ROM CRD-8322B 1.06 PQ: 0 ANSI: 5
[  123.761319] sr 1:0:0:0: [sr0] scsi3-mmc drive: 32x/32x cd/rw xa/form2 cdda tray
[  123.840121] cdrom: Uniform CD-ROM driver Revision: 3.20
[  123.901685] sr 1:0:0:0: Attached scsi CD-ROM sr0


> I believe the Ultra 10 uses the same motherboard so it's likely also
> affected. I believe these were in the first generation of "PC" like
> SPARC workstations.

Yes, Ultra 10 uses the same mainboard but in a more roomy tower case. My 
U10 has addon PCI SCSI controller so I'm not testing IDE there.

-- 
Meelis Roos (mroos@linux.ee)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers
  2016-06-27 12:23 ` Bartlomiej Zolnierkiewicz
                   ` (2 preceding siblings ...)
  (?)
@ 2016-06-28 10:37 ` Julian Calaby
  -1 siblings, 0 replies; 10+ messages in thread
From: Julian Calaby @ 2016-06-28 10:37 UTC (permalink / raw)
  To: sparclinux

Hi Meelis,

On Tue, Jun 28, 2016 at 8:27 PM, Meelis Roos <mroos@linux.ee> wrote:
>> The Ultra 5 uses a CMD64x controller.
>>
>> That said, last time I tried to get that machine working, I couldn't
>> partition the disk due to bugs in that driver.
>
> Yes, Ultra 5 uses CMD64x. This has worked well for me on U5 for ages.
> The debug messages have also been there as long as I remember. The
> controller is limited to 128GiB disks in DMA mode so I have used up to
> 120G disks only and have not tried any bigger ones.

Oh, the last time I tried, I had trouble partitioning the disk due to
it seemingly not writing beyond the first sector. I'll have to try
again.

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers
  2016-06-27 23:18     ` Julian Calaby
@ 2016-06-28 20:57       ` Mark Cave-Ayland
  -1 siblings, 0 replies; 10+ messages in thread
From: Mark Cave-Ayland @ 2016-06-28 20:57 UTC (permalink / raw)
  To: Julian Calaby, alexmcwhirter
  Cc: Bartlomiej Zolnierkiewicz, sparclinux, David S. Miller,
	linux-ide, linux-kernel, sparclinux-owner

On 28/06/16 00:18, Julian Calaby wrote:

> Hi Alex,
> 
> On Tue, Jun 28, 2016 at 2:38 AM,  <alexmcwhirter@triadic.us> wrote:
>> On 2016-06-27 08:23, Bartlomiej Zolnierkiewicz wrote:
>>
>>> If you have affected hardware please test.  Thank you.
>>
>>
>> For what it's worth, I've been using libata on sparc64 for roughly two years
>> with no issues to report. All of my PATA machines have ALI controllers, not
>> sure if any other controllers were ever used in sparc gear.
> 
> The Ultra 5 uses a CMD64x controller.
> 
> That said, last time I tried to get that machine working, I couldn't
> partition the disk due to bugs in that driver.
> 
> I believe the Ultra 10 uses the same motherboard so it's likely also
> affected. I believe these were in the first generation of "PC" like
> SPARC workstations.

FWIW QEMU's qemu-system-sparc64 emulator also uses the cmd646 controller
and can boot vmlinuz/initrd binaries directly for testing.


ATB,

Mark.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers
@ 2016-06-28 20:57       ` Mark Cave-Ayland
  0 siblings, 0 replies; 10+ messages in thread
From: Mark Cave-Ayland @ 2016-06-28 20:57 UTC (permalink / raw)
  To: Julian Calaby, alexmcwhirter
  Cc: Bartlomiej Zolnierkiewicz, sparclinux, David S. Miller,
	linux-ide, linux-kernel, sparclinux-owner

On 28/06/16 00:18, Julian Calaby wrote:

> Hi Alex,
> 
> On Tue, Jun 28, 2016 at 2:38 AM,  <alexmcwhirter@triadic.us> wrote:
>> On 2016-06-27 08:23, Bartlomiej Zolnierkiewicz wrote:
>>
>>> If you have affected hardware please test.  Thank you.
>>
>>
>> For what it's worth, I've been using libata on sparc64 for roughly two years
>> with no issues to report. All of my PATA machines have ALI controllers, not
>> sure if any other controllers were ever used in sparc gear.
> 
> The Ultra 5 uses a CMD64x controller.
> 
> That said, last time I tried to get that machine working, I couldn't
> partition the disk due to bugs in that driver.
> 
> I believe the Ultra 10 uses the same motherboard so it's likely also
> affected. I believe these were in the first generation of "PC" like
> SPARC workstations.

FWIW QEMU's qemu-system-sparc64 emulator also uses the cmd646 controller
and can boot vmlinuz/initrd binaries directly for testing.


ATB,

Mark.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-28 21:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-27 12:23 [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers Bartlomiej Zolnierkiewicz
2016-06-27 12:23 ` Bartlomiej Zolnierkiewicz
2016-06-27 16:38 ` alexmcwhirter
2016-06-27 16:38   ` [PATCH] sparc64: sparc64_defconfig: conve =?UTF-8?Q?rt=20to=20use=20libata alexmcwhirter
2016-06-27 23:18   ` [PATCH] sparc64: sparc64_defconfig: convert to use libata PATA drivers Julian Calaby
2016-06-27 23:18     ` Julian Calaby
2016-06-28 20:57     ` Mark Cave-Ayland
2016-06-28 20:57       ` Mark Cave-Ayland
2016-06-28 10:27 ` Meelis Roos
2016-06-28 10:37 ` Julian Calaby

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.