From: Marcin Dalecki <dalecki@evision.ag>
To: Petr Vandrovec <VANDROVE@vc.cvut.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] IDE udma_status = 0x76 and 2.5.30...
Date: Mon, 05 Aug 2002 12:28:58 +0200 [thread overview]
Message-ID: <3D4E536A.9040908@evision.ag> (raw)
In-Reply-To: 1227D1253A2@vcnet.vc.cvut.cz
Uz.ytkownik Petr Vandrovec napisa?:
> On 5 Aug 02 at 11:33, Marcin Dalecki wrote:
>
>>Uz.ytkownik Petr Vandrovec napisa?:
>>
>>> BTW, are there any TRM290 owners using 2.5.30? Old code set length to
>>>((length >> 2) - 1) << 16, while new code does not have special handling
>>>for TRM290. Or do I miss something?
>>
>>The new code is overwriting those values in the host controller driver
>>itself.
>
>
> Really? I'm not able to locate such overwrite in trm290.c. Are they hidden
> somewhere else?
This should handle it:
hwif->seg_boundary_mask = 0xffffffff;
>
> Also BUG_ON() in udma_new_table is bogus. Change code:
>
> - u32 cur_len = sg_dma_len(sg) & 0xffff;
> + u32 cur_len = sg_dma_len(sg);
>
> /* Delete this ... */
> BUG_ON(cur_len > ch->max_segment_size);
>
> *table++ = cpu_to_le32(cur_addr);
> - *table++ = cpu_to_le32(cur_len);
> + *table++ = cpu_to_le32(cur_len & 0xffff);
>
> Without first change BUG_ON will not trigger on any transfer: values
> up to 0xFE00 are legal, and values over 0x10000 get cut down to
> 0x0xxxx...
>
> Second change is needed only if we have some driver setting
> max_segment_size to value > 0xffff: currently we do not have such driver,
> default is 0xfe00, and value set by cs5530 is 0xfe00 too.
Well trm390 *does* set ->seg_boundary_mask.
>>Hmm... It is very well possible that the Toshiba doesn't like the
>>fact that the intel chipsets cheat and do something like UDMA88 instead
>>of UDMA100. Could you verify this by checking whatever forcing them to
>>UDMA66 helps please? Vojtech?
>
>
> It happens with UDMA0 too (and I tried slowest possible timming at
> i845, and it still happens).
I'm more and more amanzed, why my system works at all...
> P.S.: Marcin, are you Marcin or Martin? MAINTAINERS says Martin,
> but your replies state Marcin...
It doesn't really matter. Marcin is just the polish spelling of the name
Martin. So choose whatever you want please.
next prev parent reply other threads:[~2002-08-05 10:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-05 10:18 [PATCH] IDE udma_status = 0x76 and 2.5.30 Petr Vandrovec
2002-08-05 10:28 ` Marcin Dalecki [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-08-05 20:31 Petr Vandrovec
2002-08-05 21:10 ` Andre Hedrick
2002-08-05 21:19 ` Andre Hedrick
2002-08-05 14:07 Petr Vandrovec
2002-08-05 14:21 ` Marcin Dalecki
2002-08-04 22:25 Petr Vandrovec
2002-08-05 9:33 ` Marcin Dalecki
2002-08-05 20:08 ` Andre Hedrick
2002-08-05 21:42 ` Alan Cox
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=3D4E536A.9040908@evision.ag \
--to=dalecki@evision.ag \
--cc=VANDROVE@vc.cvut.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=martin@dalecki.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