2010-07-03 18:07:48

by Jacek Poplawski

[permalink] [raw]
Subject: SH-D163C

Hello,

I bought new DVD burner and looks like I can't burn anything, because
media is not recognized as burner.

In logs I see:
ata5.00: ATAPI: TSSTcorpDVD-ROM SH-D163C, SB00, max UDMA/100
scsi 4:0:0:0: CD-ROM??????????? TSSTcorp DVD-ROM SH-D163C SB00 PQ: 0 ANSI: 5

Is this burner supported by kernel?
If not, could you give me any hints how to add it at source code
level? I assume it's a matter of adding new ID to some list? :)


2010-07-03 18:31:09

by Justin P. Mattock

[permalink] [raw]
Subject: Re: SH-D163C

On 07/03/2010 11:07 AM, Jacek Poplawski wrote:
> Hello,
>
> I bought new DVD burner and looks like I can't burn anything, because
> media is not recognized as burner.
>
> In logs I see:
> ata5.00: ATAPI: TSSTcorpDVD-ROM SH-D163C, SB00, max UDMA/100
> scsi 4:0:0:0: CD-ROM TSSTcorp DVD-ROM SH-D163C SB00 PQ: 0 ANSI: 5
>
> Is this burner supported by kernel?
> If not, could you give me any hints how to add it at source code
> level? I assume it's a matter of adding new ID to some list? :)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

not sure what/where is anything for the device, let alone if it's just a
pci id that needs to be added to get it working..
git grep shows this:


git grep -n TSSTcorp
drivers/ata/libata-core.c:4305: /* Maybe we should just blacklist
TSSTcorp... */
drivers/ata/libata-core.c:4306: { "TSSTcorp CDDVDW SH-S202H", "SB00",
ATA_HORKAGE_IVB, },
drivers/ata/libata-core.c:4307: { "TSSTcorp CDDVDW SH-S202H", "SB01",
ATA_HORKAGE_IVB, },
drivers/ata/libata-core.c:4308: { "TSSTcorp CDDVDW SH-S202J", "SB00",
ATA_HORKAGE_IVB, },
drivers/ata/libata-core.c:4309: { "TSSTcorp CDDVDW SH-S202J", "SB01",
ATA_HORKAGE_IVB, },
drivers/ata/libata-core.c:4310: { "TSSTcorp CDDVDW SH-S202N", "SB00",
ATA_HORKAGE_IVB, },
drivers/ata/libata-core.c:4311: { "TSSTcorp CDDVDW SH-S202N", "SB01",
ATA_HORKAGE_IVB, },
drivers/ide/ide-iops.c:214: { "TSSTcorp CDDVDW SH-S202J" , "SB00"
},
drivers/ide/ide-iops.c:215: { "TSSTcorp CDDVDW SH-S202J" , "SB01"
},
drivers/ide/ide-iops.c:216: { "TSSTcorp CDDVDW SH-S202N" , "SB00"
},
drivers/ide/ide-iops.c:217: { "TSSTcorp CDDVDW SH-S202N" , "SB01"
},
drivers/ide/ide-iops.c:218: { "TSSTcorp CDDVDW SH-S202H" , "SB00"
},
drivers/ide/ide-iops.c:219: { "TSSTcorp CDDVDW SH-S202H" , "SB01"
},
drivers/ide/ide-iops.c:259: if (strstr(model, "TSSTcorp
CDDVDW SH-S202")) {


I put together a patch, with the info you supplied(not sure if it
works), but since you want to have a go at it, I wont send it out, and
let you hack at it!!

hope this helps..

Justin P Mattock

2010-07-03 21:02:53

by Ondrej Zary

[permalink] [raw]
Subject: Re: SH-D163C

On Saturday 03 July 2010 20:07:46 Jacek Poplawski wrote:
> Hello,
>
> I bought new DVD burner and looks like I can't burn anything, because
> media is not recognized as burner.
>
> In logs I see:
> ata5.00: ATAPI: TSSTcorpDVD-ROM SH-D163C, SB00, max UDMA/100
> scsi 4:0:0:0: CD-ROM??????????? TSSTcorp DVD-ROM SH-D163C SB00 PQ: 0 ANSI:
> 5
>
> Is this burner supported by kernel?
> If not, could you give me any hints how to add it at source code
> level? I assume it's a matter of adding new ID to some list? :)

The problem is that it really is a DVD-ROM:
http://www.google.com/search?q=%22SH-D163C%22+site%3Asamsung.com


--
Ondrej Zary

2010-07-03 23:47:13

by Jacek Poplawski

[permalink] [raw]
Subject: Re: SH-D163C

On Sat, Jul 3, 2010 at 11:02 PM, Ondrej Zary <[email protected]> wrote:
> The problem is that it really is a DVD-ROM:
> http://www.google.com/search?q=%22SH-D163C%22+site%3Asamsung.com

You are right, now I understand why it was so cheap :) Sorry :)

2010-07-04 00:06:51

by Justin P. Mattock

[permalink] [raw]
Subject: Re: SH-D163C

On 07/03/2010 04:47 PM, Jacek Poplawski wrote:
> On Sat, Jul 3, 2010 at 11:02 PM, Ondrej Zary<[email protected]> wrote:
>> The problem is that it really is a DVD-ROM:
>> http://www.google.com/search?q=%22SH-D163C%22+site%3Asamsung.com
>
> You are right, now I understand why it was so cheap :) Sorry :)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>


so creating a patch is not worth it then!?.. was hoping you did..

Justin P. Mattock

2010-07-04 02:46:37

by Jacek Poplawski

[permalink] [raw]
Subject: Re: SH-D163C

On Sun, Jul 4, 2010 at 2:07 AM, Justin P. Mattock
<[email protected]> wrote:
>>> The problem is that it really is a DVD-ROM:
>>> http://www.google.com/search?q=%22SH-D163C%22+site%3Asamsung.com
>>
>> You are right, now I understand why it was so cheap :) Sorry :)
>
> so creating a patch is not worth it then!?.. was hoping you did..

It works as a DVD reader without problems, I was just wondering why I
can't burn anything :)
Sorry again.

2010-07-04 05:08:54

by Justin P. Mattock

[permalink] [raw]
Subject: Re: SH-D163C

On 07/03/2010 07:46 PM, Jacek Poplawski wrote:
> On Sun, Jul 4, 2010 at 2:07 AM, Justin P. Mattock
> <[email protected]> wrote:
>>>> The problem is that it really is a DVD-ROM:
>>>> http://www.google.com/search?q=%22SH-D163C%22+site%3Asamsung.com
>>>
>>> You are right, now I understand why it was so cheap :) Sorry :)
>>
>> so creating a patch is not worth it then!?.. was hoping you did..
>
> It works as a DVD reader without problems, I was just wondering why I
> can't burn anything :)
> Sorry again.
>

no reason to say sorry.. as for not burning tough to say, could be
software cdio, dvdrw-tools, etc... but then again could be kernel. heres
what I came up with(keep in mind mind could be totally wrong)

_totally_ _un-tested_



From b95d7b285344300b850112eb2777611fb8bae248 Mon Sep 17 00:00:00 2001
From: Justin P. Mattock <[email protected]>
Date: Sat, 3 Jul 2010 11:23:19 -0700
Subject: [PATCH] SH-D163C

Signed-off-by: Justin P. Mattock <[email protected]>

---
drivers/ata/libata-core.c | 1 +
drivers/ide/ide-iops.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index ddf8e48..22c99f2 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4304,6 +4304,7 @@ static const struct ata_blacklist_entry
ata_device_blacklist [] = {
{ "QUANTUM FIREBALLlct10 05", "A03.0900", ATA_HORKAGE_IVB, },
/* Maybe we should just blacklist TSSTcorp... */
{ "TSSTcorp CDDVDW SH-S202H", "SB00", ATA_HORKAGE_IVB, },
+ { "TSSTcorp CDDVDW SH-D163C", "SB00", ATA_HORKAGE_IVB, },
{ "TSSTcorp CDDVDW SH-S202H", "SB01", ATA_HORKAGE_IVB, },
{ "TSSTcorp CDDVDW SH-S202J", "SB00", ATA_HORKAGE_IVB, },
{ "TSSTcorp CDDVDW SH-S202J", "SB01", ATA_HORKAGE_IVB, },
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index 376f2dc..70a6bd6 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -212,6 +212,7 @@ static const struct drive_list_entry ivb_list[] = {
{ "QUANTUM FIREBALLlct10 05" , "A03.0900" },
{ "QUANTUM FIREBALLlct20 30" , "APL.0900" },
{ "TSSTcorp CDDVDW SH-S202J" , "SB00" },
+ { "TSSTcorp CDDVDW SH-D163C" , "SB00" },
{ "TSSTcorp CDDVDW SH-S202J" , "SB01" },
{ "TSSTcorp CDDVDW SH-S202N" , "SB00" },
{ "TSSTcorp CDDVDW SH-S202N" , "SB01" },
--
1.6.5.2.180.gc5b3e


keep in mind something might need to be added, and/or this is totally
wrong and the kernel already supports your device, and your hitting
something with userpspace etc..

hope this gets you up and running..

Justin P. Mattock

2010-07-04 05:39:09

by Thomas Fjellstrom

[permalink] [raw]
Subject: Re: SH-D163C

On July 3, 2010, Justin P. Mattock wrote:
> On 07/03/2010 07:46 PM, Jacek Poplawski wrote:
> > On Sun, Jul 4, 2010 at 2:07 AM, Justin P. Mattock
> >
> > <[email protected]> wrote:
> >>>> The problem is that it really is a DVD-ROM:
> >>>> http://www.google.com/search?q=%22SH-D163C%22+site%3Asamsung.com
> >>>
> >>> You are right, now I understand why it was so cheap :) Sorry :)
> >>
> >> so creating a patch is not worth it then!?.. was hoping you did..
> >
> > It works as a DVD reader without problems, I was just wondering why I
> > can't burn anything :)
> > Sorry again.
>
> no reason to say sorry.. as for not burning tough to say, could be
> software cdio, dvdrw-tools, etc... but then again could be kernel. heres
> what I came up with(keep in mind mind could be totally wrong)

Apparently the drive in question isn't a DVDR/DVDRW. Just a plain old
DVDROM.

> _totally_ _un-tested_
>
>
>
> From b95d7b285344300b850112eb2777611fb8bae248 Mon Sep 17 00:00:00 2001
> From: Justin P. Mattock <[email protected]>
> Date: Sat, 3 Jul 2010 11:23:19 -0700
> Subject: [PATCH] SH-D163C
>
> Signed-off-by: Justin P. Mattock <[email protected]>
>
> ---
> drivers/ata/libata-core.c | 1 +
> drivers/ide/ide-iops.c | 1 +
> 2 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index ddf8e48..22c99f2 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -4304,6 +4304,7 @@ static const struct ata_blacklist_entry
> ata_device_blacklist [] = {
> { "QUANTUM FIREBALLlct10 05", "A03.0900", ATA_HORKAGE_IVB, },
> /* Maybe we should just blacklist TSSTcorp... */
> { "TSSTcorp CDDVDW SH-S202H", "SB00", ATA_HORKAGE_IVB, },
> + { "TSSTcorp CDDVDW SH-D163C", "SB00", ATA_HORKAGE_IVB, },
> { "TSSTcorp CDDVDW SH-S202H", "SB01", ATA_HORKAGE_IVB, },
> { "TSSTcorp CDDVDW SH-S202J", "SB00", ATA_HORKAGE_IVB, },
> { "TSSTcorp CDDVDW SH-S202J", "SB01", ATA_HORKAGE_IVB, },
> diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
> index 376f2dc..70a6bd6 100644
> --- a/drivers/ide/ide-iops.c
> +++ b/drivers/ide/ide-iops.c
> @@ -212,6 +212,7 @@ static const struct drive_list_entry ivb_list[] = {
> { "QUANTUM FIREBALLlct10 05" , "A03.0900" },
> { "QUANTUM FIREBALLlct20 30" , "APL.0900" },
> { "TSSTcorp CDDVDW SH-S202J" , "SB00" },
> + { "TSSTcorp CDDVDW SH-D163C" , "SB00" },
> { "TSSTcorp CDDVDW SH-S202J" , "SB01" },
> { "TSSTcorp CDDVDW SH-S202N" , "SB00" },
> { "TSSTcorp CDDVDW SH-S202N" , "SB01" },


--
Thomas Fjellstrom
[email protected]

2010-07-04 07:33:31

by Justin P. Mattock

[permalink] [raw]
Subject: Re: SH-D163C

On 07/03/2010 10:38 PM, Thomas Fjellstrom wrote:
> On July 3, 2010, Justin P. Mattock wrote:
>> On 07/03/2010 07:46 PM, Jacek Poplawski wrote:
>>> On Sun, Jul 4, 2010 at 2:07 AM, Justin P. Mattock
>>>
>>> <[email protected]> wrote:
>>>>>> The problem is that it really is a DVD-ROM:
>>>>>> http://www.google.com/search?q=%22SH-D163C%22+site%3Asamsung.com
>>>>>
>>>>> You are right, now I understand why it was so cheap :) Sorry :)
>>>>
>>>> so creating a patch is not worth it then!?.. was hoping you did..
>>>
>>> It works as a DVD reader without problems, I was just wondering why I
>>> can't burn anything :)
>>> Sorry again.
>>
>> no reason to say sorry.. as for not burning tough to say, could be
>> software cdio, dvdrw-tools, etc... but then again could be kernel. heres
>> what I came up with(keep in mind mind could be totally wrong)
>
> Apparently the drive in question isn't a DVDR/DVDRW. Just a plain old
> DVDROM.

what/where might the location be for this in the kernel?(im not familiar
with where anything is in this area)

>
>> _totally_ _un-tested_
>>
>>
>>
>> From b95d7b285344300b850112eb2777611fb8bae248 Mon Sep 17 00:00:00 2001
>> From: Justin P. Mattock<[email protected]>
>> Date: Sat, 3 Jul 2010 11:23:19 -0700
>> Subject: [PATCH] SH-D163C
>>
>> Signed-off-by: Justin P. Mattock<[email protected]>
>>
>> ---
>> drivers/ata/libata-core.c | 1 +
>> drivers/ide/ide-iops.c | 1 +
>> 2 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
>> index ddf8e48..22c99f2 100644
>> --- a/drivers/ata/libata-core.c
>> +++ b/drivers/ata/libata-core.c
>> @@ -4304,6 +4304,7 @@ static const struct ata_blacklist_entry
>> ata_device_blacklist [] = {
>> { "QUANTUM FIREBALLlct10 05", "A03.0900", ATA_HORKAGE_IVB, },
>> /* Maybe we should just blacklist TSSTcorp... */
>> { "TSSTcorp CDDVDW SH-S202H", "SB00", ATA_HORKAGE_IVB, },
>> + { "TSSTcorp CDDVDW SH-D163C", "SB00", ATA_HORKAGE_IVB, },
>> { "TSSTcorp CDDVDW SH-S202H", "SB01", ATA_HORKAGE_IVB, },
>> { "TSSTcorp CDDVDW SH-S202J", "SB00", ATA_HORKAGE_IVB, },
>> { "TSSTcorp CDDVDW SH-S202J", "SB01", ATA_HORKAGE_IVB, },
>> diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
>> index 376f2dc..70a6bd6 100644
>> --- a/drivers/ide/ide-iops.c
>> +++ b/drivers/ide/ide-iops.c
>> @@ -212,6 +212,7 @@ static const struct drive_list_entry ivb_list[] = {
>> { "QUANTUM FIREBALLlct10 05" , "A03.0900" },
>> { "QUANTUM FIREBALLlct20 30" , "APL.0900" },
>> { "TSSTcorp CDDVDW SH-S202J" , "SB00" },
>> + { "TSSTcorp CDDVDW SH-D163C" , "SB00" },
>> { "TSSTcorp CDDVDW SH-S202J" , "SB01" },
>> { "TSSTcorp CDDVDW SH-S202N" , "SB00" },
>> { "TSSTcorp CDDVDW SH-S202N" , "SB01" },
>
>

Justin P. Mattock