public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Kiyoshi Ueda" <k-ueda@ct.jp.nec.com>
To: "Andreas Schwab" <schwab@suse.de>, <petkovbb@gmail.com>
Cc: <bzolnier@gmail.com>, <linux-kernel@vger.kernel.org>,
	<jens.axboe@oracle.com>, <j-nomura@ce.jp.nec.com>,
	"Kiyoshi Ueda" <k-ueda@ct.jp.nec.com>
Subject: Re: 2.6.25-rc1/2 CD/DVD burning broken
Date: Sun, 24 Feb 2008 21:49:31 -0500	[thread overview]
Message-ID: <002101c87759$0fb4f010$58f80d0a@brian> (raw)
In-Reply-To: jehcfyffyp.fsf@sykes.suse.de

Hi Andreas,

On Sat, 23 Feb 2008 16:47:50 +0100, Andreas Schwab wrote:
> Kiyoshi Ueda <k-ueda@ct.jp.nec.com> writes:
>
> > Could you try this patch?
> > I've only done a compile test, so this patch may not work.
>
> Unfortunately, that is not enough to get DVD burning working again.
> This is the error that growisofs is getting:
>
> ioctl(6, SG_IO, {'S', SG_DXFER_TO_DEV, cmd[10]=[2a, 00, 00, 00, 03, 10, 
> 00, 00, 10, 00], mx_sb_len=64, iovec_count=0, dxfer_len=32768, 
> timeout=60000, flags=0x3, 
> data[32768]=["\360R\360\314Wt\277\241\36.\347\356L$\201]\210\372_~]I\213\366\253SV\2\372\356\312\257"...], 
> status=02, masked_status=01, sb[0]=[], host_status=0, driver_status=0, 
> resid=32768, duration=0, info=0x1}) = 0
> write(2, ":-( unable to WRITE@LBA=310h: ", 30) = 30
>
> It looks like the sense buffer is not filled in.  In a successfully run
> of growisfs under 2.6.24.2 the sense code is "LONG WRITE IN PROGRESS".
>
> I also see that resid always equals dxfer_len even when the transfer was
> successful, although growisofs does not seem to care.  With 2.6.24.2
> resid is only non-zero when a sense error occurred.

I'm looking at this problem, but currently no idea why the conversion
to blk_end_request causes it.

growisofs (in dvd+rw-tools-7.0) seems to care only the sense buffer
of the sg_io_hdr, as you said.
(growisofs_mmc.cpp:poor_mans_pwrite64() and transport.hxx:transport())
So if the driver sets the sense code correctly, growisofs should work
correctly I think.
However, I can't find why the blk_end_request patch affects the sense
code setting.

Could you give me some more information below to help investigation?
  o Have you tried bisecting the kernel changes to find suspicious
    commit?  If so, that information will be much appreciated.
  o Is this problem 100% reproducible on your Pioneer drive?
  o What is your dvd+rw-tools version?
  o Do you get some messages from kernel like "DMA error" when
    the problem happens?

And I'm sorry but I can't make enough time for this problem
until late this week.

Thanks,
Kiyoshi Ueda


  reply	other threads:[~2008-02-25  2:50 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-16 20:52 2.6.25-rc1/2 CD/DVD burning broken Andreas Schwab
2008-02-17  0:09 ` Jeff Garzik
2008-02-17  0:48   ` Andreas Schwab
2008-02-17  3:57     ` Mark Lord
2008-02-17  9:33       ` Andreas Schwab
2008-02-18 15:59 ` Bartlomiej Zolnierkiewicz
2008-02-18 18:58   ` Kiyoshi Ueda
2008-02-18 19:55     ` Laura Garcia
2008-02-18 20:19     ` Andreas Schwab
2008-02-18 20:20     ` Borislav Petkov
2008-02-18 22:37       ` Borislav Petkov
2008-02-18 23:14         ` [PATCH] ide-cd: fix missing residual count setting in DMA mode (Was 2.6.25-rc1/2 CD/DVD burning broken) Kiyoshi Ueda
2008-02-19  0:17           ` Bartlomiej Zolnierkiewicz
2008-02-23 15:47     ` 2.6.25-rc1/2 CD/DVD burning broken Andreas Schwab
2008-02-24 16:32       ` Borislav Petkov
2008-02-24 16:59         ` Andreas Schwab
2008-02-25  2:49           ` Kiyoshi Ueda [this message]
2008-02-25  9:23             ` Andreas Schwab
2008-02-25 19:38             ` Andreas Schwab
2008-02-25 20:45               ` Borislav Petkov
2008-02-25 22:08                 ` Andreas Schwab
2008-02-26  4:24                   ` Borislav Petkov
2008-02-26 14:52                     ` Andreas Schwab
2008-02-26 17:38                       ` Borislav Petkov
2008-02-26 20:01                         ` Bartlomiej Zolnierkiewicz
  -- strict thread matches above, loose matches on Subject: below --
2008-02-17 23:21 Joerg Schilling
2008-02-17 23:51 ` Jan Engelhardt
2008-02-18 11:28   ` Joerg Schilling
2008-02-18 11:32     ` Jan Engelhardt
2008-02-18  8:46 ` Frans Pop
2008-02-18  8:56   ` Mike Galbraith
2008-02-18 10:31     ` Frans Pop
2008-02-18 11:41       ` Mike Galbraith
2008-02-18 23:27       ` Jan Engelhardt
2008-02-28 18:41   ` Bill Davidsen

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='002101c87759$0fb4f010$58f80d0a@brian' \
    --to=k-ueda@ct.jp.nec.com \
    --cc=bzolnier@gmail.com \
    --cc=j-nomura@ce.jp.nec.com \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petkovbb@gmail.com \
    --cc=schwab@suse.de \
    /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