SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
shade: well, more like make menuconfig, make, make install, make modules, make modules_install - but I don't think that's the problem.
Actually, guys, I think it really has to do with my VIA VT8237 chipset and the 2.6.xx kernel. I've been reading some pretty disturbing stuff about VIA support for Linux, shady deals with microsoft in dark alleys, etc.
I'm trying to find a work around, but so far it looks like this is the problem. Seems like the VIA823cxxx Linux driver just aint workin with a 2.6.xx kernel. I can't believe that though... *Somebody* has got to know a way to fix this - right? I mean, come on, this is Linux we're talking about. Anything is possible, right?
Distribution: Slackware 9.1 but FUBAR with packages I compile myself, and OpenBSD (not exactly a distro) on QEMU
Posts: 153
Rep:
Um... I didn't note that you're using 2.6, are you using udev? I'm using static devs, so my system would be a bit different. And I don't know anything about udev, but my guess is that if you use udev and get the permission error, maybe the udev daemon is somehow locking the devices and hdparm can't modify it? (so the ioctl returns an error and sets errno, which it prints out). See, my experiment shows that even though I can read and write to the /dev/hdc file (I assigned it rw-rw-rw-), I still can't ioctl on it because I lack some other permissions for executing the ioctl.
Can you try to use static devs and/or downgrading to 2.4, and see if that fixes the problem?
wpyh:
I have hotplug enabled, so that means I'm using udev, right? Running 2.4.29 everything's peachy - that's why I think it's a VIA support issue. However...
mdarby:
Your VIA driver works with 2.6, which shoots my theory, unless there have been some changes from 2.6.10 to 2.6.11, or VIA changes in the differing chipsets. I guess I could try 2.6.11, but do you think a change like this might be included in a 0.0.01 revision?
Tried the untar-ing with dma enabled on 2.4, and everything was zippy-fast - how it should be. So I'm pretty sure this is the issue, not which drive I'm playing with. But here's my fstab, anyway:
I'm hoping downgrading my kernel to 2.4 is not the 'solution' to this problem.
One other thing to note: I'm using the stock slackware 10.1 2.4.29-ide kernel where dma is working, whereas it's the slackware current-testing 2.6.10 with my own menuconfig that's not working. I'm wondering if there is just some combination of kernel parameters I'm not configuring that could make this work - but the 2.4 and 2.6 config files are different and long and I'm not sure how to start comparing them...
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 264
Rep:
Quote:
Originally posted by mdarby
If you have modern hardware (newer IDE) you can try this tweak:
Code:
hdparm -c1 -X70 -u1 -d1 /dev/hda
*Use at your own risk!* I've never had a problem with the above tweak, but YMMV!
With the tweak, I get about 60MB/s from my drive, as opposed to the original 17MB/s [/B]
How would you reverse this tweak if you wanted to try it?? Just in case it didn't work out..
thx
ps sorry for asking a question in your thread.. just hoping for a quick response..
Distribution: Slackware 9.1 but FUBAR with packages I compile myself, and OpenBSD (not exactly a distro) on QEMU
Posts: 153
Rep:
No, hotplug doesn't neccessarily mean udev. And it shouldn't be a permissions problem. What I mean by "lack of permissions" is something deeper... it's not just filesystem permissions, it's something in the kernel (I don't know what, but it's something to do with the drivers and the ioctls).
Like mdarby said, you should download and compile a new kernel.
Shoot. That did it, man. Got 2.6.11.8 from kernel.org, did my usualy make menuconfig, and presto - everything works.
Looks like I was off-base thinking it was a VIA support issue. But what were all those driver support complaints I was reading on the VIA forums, then? Wierd...
Anyway, this thread isn't over. I'm gonna compare the .config files for both kernels and see what went wrong...
Thanks you guys, for all your help. Community, man, community.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.