Skip to contentSkip to conversation

ybin on powerpc

DISCUSSION Andrew Morton 5 participants 9 messages Aug 20, 2006 – Aug 21, 2006 2 messages not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

(cc's added)

Quoted 11 lines · On Sun, 20 Aug 2006 07:57:24 +1000 Benjamin Herrenschmidt…
Quoted 9 lines · Andrew Morton

I notice that 2.6.18-rc4-mm1 and 2.6.18-rc4-mm2-candidate do this:

g5:/home/akpm> 0 ybin
ofpath: /dev/sdb: Device not configured
ybin: Unable to find OpenFirmware path for boot=/dev/sdb2
ybin: Please add ofboot=<path> where <path> is the OpenFirmware path to /dev/sdb2 to /etc/yaboot.conf
ofpath: /dev/sdb: Device not configured
ybin: Unable to determine OpenFirmware path for macosx=/dev/sdb3
ybin: Try specifying the real OpenFirmware path for macosx=/dev/sdb3 in /etc/yaboot.conf

Quoted 1 line

Did the layout of scsi stuff in either /proc or sysfs change ?

Bisection shows that this brokenness is introduced by git-scsi-misc.patch.

Someone has gone in and made some ill-advised "improvements" to /proc/scsi/scsi. The switch from "Direct-Access" to "Direct access" broke ofpath. I fixed that (in ofpath) but it remains broken for other reasons.

James, this is a non-compatible change to the kernel->userspace interface. Please drop it like a hot potato.

#3 lore raw
Quoted 8 lines · Andrew Morton

Bisection shows that this brokenness is introduced by git-scsi-misc.patch.

Someone has gone in and made some ill-advised "improvements" to /proc/scsi/scsi. The switch from "Direct-Access" to "Direct access" broke ofpath. I fixed that (in ofpath) but it remains broken for other reasons.

James, this is a non-compatible change to the kernel->userspace interface. Please drop it like a hot potato.

This one's my fault. I didn't realise that bit got exposed to userspace like that. James, do you want a replacement patch for the bad one, or an incremental one which restores the old spelling?

BTW, the SCSI specs changed the name from CD-ROM to CD/DVD. I'd like to reflect that change in /proc/scsi/scsi; is there any userspace currently relying on that spelling?

#4 lore raw
Quoted 3 lines · On Sat, 19 Aug 2006 19:56:30 -0600 Matthew Wilcox <[email protected]> wrote:

BTW, the SCSI specs changed the name from CD-ROM to CD/DVD. I'd like to reflect that change in /proc/scsi/scsi; is there any userspace currently relying on that spelling?

I think that's basically unknowable. How does one grep all userspace?

The only practical way to find out is to change it, see what breaks and hope that people report it in time. That's a terribly blunt weapon.

It's better to get the interfaces right first time ;)

#5 lore raw
Quoted 7 lines · Andrew Morton
Quoted 3 lines · On Sat, 19 Aug 2006 19:56:30 -0600 Matthew Wilcox <[email protected]> wrote:

BTW, the SCSI specs changed the name from CD-ROM to CD/DVD. I'd like to reflect that change in /proc/scsi/scsi; is there any userspace currently relying on that spelling?

I think that's basically unknowable. How does one grep all userspace?

apt-cache search? ;-)

Quoted 4 lines

The only practical way to find out is to change it, see what breaks and hope that people report it in time. That's a terribly blunt weapon.

It's better to get the interfaces right first time ;)

Yeah; kind of hard to do when the SCSI committee changes the spec on you.

#6 lore raw
Quoted 10 lines · On Sat, 19 Aug 2006 21:05:59 -0600 Matthew Wilcox <[email protected]> wrote:
Quoted 7 lines · Andrew Morton
Quoted 3 lines · On Sat, 19 Aug 2006 19:56:30 -0600 Matthew Wilcox <[email protected]> wrote:

BTW, the SCSI specs changed the name from CD-ROM to CD/DVD. I'd like to reflect that change in /proc/scsi/scsi; is there any userspace currently relying on that spelling?

I think that's basically unknowable. How does one grep all userspace?

apt-cache search? ;-)

Well yeah. Smiley noted, but let us remember that "userspace" includes non-published and non-open-source code.

Quoted 6 lines
Quoted 4 lines

The only practical way to find out is to change it, see what breaks and hope that people report it in time. That's a terribly blunt weapon.

It's better to get the interfaces right first time ;)

Yeah; kind of hard to do when the SCSI committee changes the spec on you.

I think people will continue to understand what we mean.

#7 lore raw
In reply to Andrew Morton
Quoted 9 lines · Andrew Morton

Bisection shows that this brokenness is introduced by git-scsi-misc.patch.

Someone has gone in and made some ill-advised "improvements" to /proc/scsi/scsi. The switch from "Direct-Access" to "Direct access" broke
ofpath. I fixed that (in ofpath) but it remains broken for other reasons.

Quoted 3 lines

James, this is a non-compatible change to the kernel->userspace interface. Please
drop it like a hot potato.

Well ... OK, we shouldn't break things gratuitously. However, the /proc/scsi interface is deprecated and has been for a while now.

Secondly, as Matthew pointed out, the SCSI standards actually keep changing their minds about the names of these things ...

But, thirdly, in order to get around the issue, we provided the

/sys/class/scsi_disk/<x:y:z:i>/device/type

interface which supplies the numeric field value precisely so people shouldn't parse the translated strings.

So, it sounds like yaboot is also in need of modification.

James

#8 lore raw
Quoted 7 lines

Well ... OK, we shouldn't break things gratuitously. However, the /proc/scsi interface is deprecated and has been for a while now.

Secondly, as Matthew pointed out, the SCSI standards actually keep changing their minds about the names of these things ...

Quoted 8 lines

But, thirdly, in order to get around the issue, we provided the

/sys/class/scsi_disk/<x:y:z:i>/device/type

interface which supplies the numeric field value precisely so people shouldn't parse the translated strings.

So, it sounds like yaboot is also in need of modification.

CC'ed Paul Nasrat who is the current yaboot maintainer

(Paul, the problem is about a /proc/scsi change breaking ofpath. The change will probably be reverted, but still, ofpath should be changed to not rely on that crap anymore)

Cheers,
Ben.

#9 lore raw
Quoted 14 lines · On Mon, 21 Aug 2006 07:54:17 +1000 Benjamin Herrenschmidt…
Quoted 14 lines

Well ... OK, we shouldn't break things gratuitously. However, the /proc/scsi interface is deprecated and has been for a while now.

Secondly, as Matthew pointed out, the SCSI standards actually keep changing their minds about the names of these things ...

But, thirdly, in order to get around the issue, we provided the

/sys/class/scsi_disk/<x:y:z:i>/device/type

interface which supplies the numeric field value precisely so people shouldn't parse the translated strings.

Quoted 8 lines
Quoted 1 line

So, it sounds like yaboot is also in need of modification.

CC'ed Paul Nasrat who is the current yaboot maintainer

(Paul, the problem is about a /proc/scsi change breaking ofpath. The change will probably be reverted, but still, ofpath should be changed to not rely on that crap anymore)

yup.

James, I think the best (only) way in which we can communicate with all users of the kernel is via the kernel. So we add a once-per-boot printk on first access to /proc/scsi/scsi (it should include current->comm).

That should get people migrating off /proc/scsi/scsi as quickly as we can reasonably expect. Then in a year or four we can perhaps remove it.

#10 lore raw
In reply to Benjamin Herrenschmidt
Quoted 9 lines · Benjamin Herrenschmidt
Quoted 9 lines

Well ... OK, we shouldn't break things gratuitously. However, the /proc/scsi interface is deprecated and has been for a while now.

/sys/class/scsi_disk/<x:y:z:i>/device/type

interface which supplies the numeric field value precisely so people shouldn't parse the translated strings.

Quoted 7 lines
Quoted 1 line

So, it sounds like yaboot is also in need of modification.

CC'ed Paul Nasrat who is the current yaboot maintainer

(Paul, the problem is about a /proc/scsi change breaking ofpath. The change will probably be reverted, but still, ofpath should be changed to not rely on that crap anymore)

Thanks for the heads up. I'll look into fixing up ofpath not to use /proc/scsi. I'm just in the process of moving countries, so I might not get a chance to look at for a week or two.

Paul