All of lore.kernel.org
 help / color / mirror / Atom feed
* CVS tests report
@ 2005-05-19  6:23 Jean Delvare
  2005-05-19  6:23 ` Mark D. Studebaker 
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jean Delvare @ 2005-05-19  6:23 UTC (permalink / raw)
  To: lm-sensors


Hi,

I finished my tests on i2c-CVS and lm_sensors2-CVS. I tested on a first
machine with a VIA Pro this morning and already posted the results. I
tested on three other machines since (my fifth one being dead broken, I
couldn't even setup the network adapter to get the files). There are two
machines based on a PIIX4 and one based on an Intel i801.

The first problem concerns unresolved symbols. Three different issues
exist there:

depmod: *** Unresolved symbols in
/lib/modules/2.4.18/kernel/drivers/video/matrox/matroxfb_maven.o.gz
depmod:         i2c_inc_use_client
depmod:         i2c_dec_use_client

This is the same I had this morning with zoran.o. I leave the resolution
to someone else, I simply don't know what should be done.

depmod: *** Unresolved symbols in
/lib/modules/2.4.18/kernel/drivers/i2c/i2c-algo-biths.o
depmod:         cond_resched

This one is easily explained. cond_resched() was added in linux 2.4.20,
so there's no suprise it is unresolved on earlier versions. A patch
proposal is attached (borrowed the idea from diff'ing
linux/drivers/mtd/devices/doc2000.c between 2.4.20 and 2.4.21-rc1). Note
that this is guess work, I absolutely don't know how scheduling is
supposed to work. The module now loads, but I couldn't test it (I have
no device using it, as far as I know).

depmod: *** Unresolved symbols in
/lib/modules/2.4.18/kernel/drivers/i2c/i2c-proc.o
depmod:         unlikely

This third one is strange. The symbol name sounds funny, isn't it ;) The
problem seems to happen only with 2.4.18 (and probably earlier) kernels
and is a serious one (considering we hardly can do anything without
i2c-proc). What's really strange is that unlikely() actually already
exists in 2.4.18 (in linux/include/linux/compiler.h, a file that didn't
change at all between 2.4.18 and 2.4.19). I'm somewhat clueless on this
one.

The second problem I had is with the eeprom module. On two machines
(using i2c-i801 and i2c-piix4, repectively), the eeprom module returns
wrong values. More precisely, it returns the same values for all
eeproms. On the first machine (my Sony laptop) I had a memory EEPROM
showing at 0x50 and a proprietary Sony EEPROM at 0x57. Now, the Sony
EEPROM shows at both 0x50 and 0x57. Same for the other machine where I
have one 32MB memory chip at 0x50 and a 128MB memory chip at 0x52. Now,
both chips pretend to be the 128MB one. I guess the recent changes on
the module may have caused this side effect (which may have been hiding
so far because most people will actually have the same memory chip sizes
in all slots).

So, these things would need to be fixed before I can affirm i801 and
piix4 drivers have been converted successfully.

(I will of course test any fix if kindly asked to :))

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i2c-cond-resched.patch
Type: application/octet-stream
Size: 472 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030606/6590906b/i2c-cond-resched.obj

^ permalink raw reply	[flat|nested] 7+ messages in thread

* CVS tests report
  2005-05-19  6:23 CVS tests report Jean Delvare
  2005-05-19  6:23 ` Mark D. Studebaker 
  2005-05-19  6:23 ` Jean Delvare
@ 2005-05-19  6:23 ` Mark D. Studebaker 
  2005-05-19  6:23 ` Mark D. Studebaker 
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Mark D. Studebaker  @ 2005-05-19  6:23 UTC (permalink / raw)
  To: lm-sensors

Great catch on the eeprom problem.
I duplicated it here.
i2cdump returns the correct values.
However all eeprom directories in /proc/sys/dev/sensors contain
the same values (I have eeproms at 50,51,52 and all the values
are from the chip at 52).

I wonder if the problem is in i2c_register_entry() in i2c-proc.c.
The function was rewritten between 2.7.0 and the branch, then
rewritten again after the branch in the HEAD branch.
I tried the i2c-proc from the HEAD branch but it oopsed
in i2c_register_entry().

I'll keep looking. Anybody with ideas speak up.

Jean Delvare wrote:
> Hi,
> 
> I finished my tests on i2c-CVS and lm_sensors2-CVS. I tested on a first
> machine with a VIA Pro this morning and already posted the results. I
> tested on three other machines since (my fifth one being dead broken, I
> couldn't even setup the network adapter to get the files). There are two
> machines based on a PIIX4 and one based on an Intel i801.
> 
> The first problem concerns unresolved symbols. Three different issues
> exist there:
> 
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.18/kernel/drivers/video/matrox/matroxfb_maven.o.gz
> depmod:         i2c_inc_use_client
> depmod:         i2c_dec_use_client
> 
> This is the same I had this morning with zoran.o. I leave the resolution
> to someone else, I simply don't know what should be done.
> 
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.18/kernel/drivers/i2c/i2c-algo-biths.o
> depmod:         cond_resched
> 
> This one is easily explained. cond_resched() was added in linux 2.4.20,
> so there's no suprise it is unresolved on earlier versions. A patch
> proposal is attached (borrowed the idea from diff'ing
> linux/drivers/mtd/devices/doc2000.c between 2.4.20 and 2.4.21-rc1). Note
> that this is guess work, I absolutely don't know how scheduling is
> supposed to work. The module now loads, but I couldn't test it (I have
> no device using it, as far as I know).
> 
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.18/kernel/drivers/i2c/i2c-proc.o
> depmod:         unlikely
> 
> This third one is strange. The symbol name sounds funny, isn't it ;) The
> problem seems to happen only with 2.4.18 (and probably earlier) kernels
> and is a serious one (considering we hardly can do anything without
> i2c-proc). What's really strange is that unlikely() actually already
> exists in 2.4.18 (in linux/include/linux/compiler.h, a file that didn't
> change at all between 2.4.18 and 2.4.19). I'm somewhat clueless on this
> one.
> 
> The second problem I had is with the eeprom module. On two machines
> (using i2c-i801 and i2c-piix4, repectively), the eeprom module returns
> wrong values. More precisely, it returns the same values for all
> eeproms. On the first machine (my Sony laptop) I had a memory EEPROM
> showing at 0x50 and a proprietary Sony EEPROM at 0x57. Now, the Sony
> EEPROM shows at both 0x50 and 0x57. Same for the other machine where I
> have one 32MB memory chip at 0x50 and a 128MB memory chip at 0x52. Now,
> both chips pretend to be the 128MB one. I guess the recent changes on
> the module may have caused this side effect (which may have been hiding
> so far because most people will actually have the same memory chip sizes
> in all slots).
> 
> So, these things would need to be fixed before I can affirm i801 and
> piix4 drivers have been converted successfully.
> 
> (I will of course test any fix if kindly asked to :))
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* CVS tests report
  2005-05-19  6:23 CVS tests report Jean Delvare
                   ` (2 preceding siblings ...)
  2005-05-19  6:23 ` Mark D. Studebaker 
@ 2005-05-19  6:23 ` Mark D. Studebaker 
  2005-05-19  6:23 ` Mark D. Studebaker 
  2005-05-19  6:23 ` Greg KH
  5 siblings, 0 replies; 7+ messages in thread
From: Mark D. Studebaker  @ 2005-05-19  6:23 UTC (permalink / raw)
  To: lm-sensors

That's definitely it.
i2c_register_entry() in lk2-4 doesn't kmalloc and copy the client's ctl_table_template.
So the sysctl table is all messed up.
The HEAD branch looks much closer to correct.
But the CVS log shows merges by Kyosti from 2.5 back to 2.4 so not quite sure
yet what went wrong.
I'll work on it tomorrow.
BTW when you rmmod i2c-proc right now, it doesn't completely remove
the sysctl table, and things really go bad.
I'm doing lots of diffs to figure out what to do next and hope to get things into shape tomorrow.
mds

Mark D. Studebaker wrote:
> Great catch on the eeprom problem.
> I duplicated it here.
> i2cdump returns the correct values.
> However all eeprom directories in /proc/sys/dev/sensors contain
> the same values (I have eeproms at 50,51,52 and all the values
> are from the chip at 52).
> 
> I wonder if the problem is in i2c_register_entry() in i2c-proc.c.
> The function was rewritten between 2.7.0 and the branch, then
> rewritten again after the branch in the HEAD branch.
> I tried the i2c-proc from the HEAD branch but it oopsed
> in i2c_register_entry().
> 
> I'll keep looking. Anybody with ideas speak up.
> 
> Jean Delvare wrote:
> 
>> Hi,

^ permalink raw reply	[flat|nested] 7+ messages in thread

* CVS tests report
  2005-05-19  6:23 CVS tests report Jean Delvare
  2005-05-19  6:23 ` Mark D. Studebaker 
@ 2005-05-19  6:23 ` Jean Delvare
  2005-05-19  6:23 ` Mark D. Studebaker 
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Jean Delvare @ 2005-05-19  6:23 UTC (permalink / raw)
  To: lm-sensors


> BTW when you rmmod i2c-proc right now, it doesn't completely remove
> the sysctl table, and things really go bad.
> I'm doing lots of diffs to figure out what to do next and hope to get
> things into shape tomorrow. mds

OK, thanks. Let me know if I can help (though I really have no knowledge
about I2C and such).

Maybe adding a news item saying I2C is known to be somewhat broken could
be welcome? The latest related new item was added in March, readers
could believe the situation has changed since.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* CVS tests report
  2005-05-19  6:23 CVS tests report Jean Delvare
@ 2005-05-19  6:23 ` Mark D. Studebaker 
  2005-05-19  6:23 ` Jean Delvare
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Mark D. Studebaker  @ 2005-05-19  6:23 UTC (permalink / raw)
  To: lm-sensors

I think i2c-proc is fixed. Please test.

I've added several updates to the home page and the download page
in the last few days.
On the download page we already have a warning in bold that CVS is under 
"active development" which is intended as a warning.

On your issue with matroxfb_maven unresolved symbols,
we unfortunately are no longer compatible with i2c modules in stock 2.4 kernels,
due to struct changes adding owner and removing inc_use and dec_use.
You definitely don't want i2c drivers from a 2.4 kernel compiled-in or
loaded as modules

Let's discuss what to do about this - some possiblilities:
We can back out the struct changes...
We can add big warnings to the release and work on submitting a 2.4 patch....
We can try and require a very recent 2.4 kernel...
We can include a patch to a recent 2.4 kernel to convert all i2c drivers...
We can include some compatibility code...

Would anybody like to work on a patch for 2.4 for submission to Marcelo?


Jean Delvare wrote:
>>BTW when you rmmod i2c-proc right now, it doesn't completely remove
>>the sysctl table, and things really go bad.
>>I'm doing lots of diffs to figure out what to do next and hope to get
>>things into shape tomorrow. mds
> 
> 
> OK, thanks. Let me know if I can help (though I really have no knowledge
> about I2C and such).
> 
> Maybe adding a news item saying I2C is known to be somewhat broken could
> be welcome? The latest related new item was added in March, readers
> could believe the situation has changed since.
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* CVS tests report
  2005-05-19  6:23 CVS tests report Jean Delvare
                   ` (4 preceding siblings ...)
  2005-05-19  6:23 ` Mark D. Studebaker 
@ 2005-05-19  6:23 ` Greg KH
  5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2005-05-19  6:23 UTC (permalink / raw)
  To: lm-sensors

On Sat, Jun 07, 2003 at 02:30:21PM -0400, Mark D. Studebaker  wrote:
> I think i2c-proc is fixed. Please test.
> 
> I've added several updates to the home page and the download page
> in the last few days.
> On the download page we already have a warning in bold that CVS is under 
> "active development" which is intended as a warning.
> 
> On your issue with matroxfb_maven unresolved symbols,
> we unfortunately are no longer compatible with i2c modules in stock 2.4 
> kernels,
> due to struct changes adding owner and removing inc_use and dec_use.
> You definitely don't want i2c drivers from a 2.4 kernel compiled-in or
> loaded as modules
> 
> Let's discuss what to do about this - some possiblilities:
> We can back out the struct changes...
> We can add big warnings to the release and work on submitting a 2.4 
> patch....
> We can try and require a very recent 2.4 kernel...
> We can include a patch to a recent 2.4 kernel to convert all i2c drivers...
> We can include some compatibility code...
> 
> Would anybody like to work on a patch for 2.4 for submission to Marcelo?

If someone makes it up, I'd be glad to review it and send it off to him.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* CVS tests report
  2005-05-19  6:23 CVS tests report Jean Delvare
                   ` (3 preceding siblings ...)
  2005-05-19  6:23 ` Mark D. Studebaker 
@ 2005-05-19  6:23 ` Mark D. Studebaker 
  2005-05-19  6:23 ` Greg KH
  5 siblings, 0 replies; 7+ messages in thread
From: Mark D. Studebaker  @ 2005-05-19  6:23 UTC (permalink / raw)
  To: lm-sensors



Greg KH wrote:

>>Would anybody like to work on a patch for 2.4 for submission to Marcelo?
> 
> 
> If someone makes it up, I'd be glad to review it and send it off to him.
> 

any volunteers?
It's 2 parts -
- Patching and testing kernel with i2c mkpatch
- Fixing up all the other i2c "bus" and "chip" drivers in the kernel (mostly video stuff)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-05-19  6:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:23 CVS tests report Jean Delvare
2005-05-19  6:23 ` Mark D. Studebaker 
2005-05-19  6:23 ` Jean Delvare
2005-05-19  6:23 ` Mark D. Studebaker 
2005-05-19  6:23 ` Mark D. Studebaker 
2005-05-19  6:23 ` Mark D. Studebaker 
2005-05-19  6:23 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.