Kernel panic when loading the IDE controller driver

Christophe Leroy christophe.leroy at c-s.fr
Thu Feb 14 02:27:13 AEDT 2019



Le 13/02/2019 à 13:53, sgosavi1 a écrit :
>> Why using 4.15.13 which is obsolete instead of using one of the Long
>> Term Support versions which are still maintained, like 4.14 or 4.19 ?
>> (see the complete list at https://www.kernel.org/category/releases.html)
> 
> Well, when I started this task 4.15.13 was probably the latest stable
> release and hence we decided to port this version. In the older kernel, we
> have the m8260_setup.c source file for our board where the function
> "io_block_mapping" was used to configure the non-standard IO port address
> starting at 0xe0000000 location. This address was passed as the base address
> followed by control address and IRQ number to the ide-core.ko module. In the
> new kernel we do not have an option to send these addresses and IRQ numbers
> as arguments to the driver. Instead the ide-generic.c source file in the new
> kernel uses the standard IO port values and IRQ values. I modified the code
> in the above file to used the addresses and IRQ number we used in the past.
> Also, added code in the "MMU_init" function call available under
> arch/PowerPC/init_32.c to setup the IO port address range by adding the
> "io_block_mapping" call and the required IO port address range.
> 
> Is there anything else that needs to be added or how can we configure the
> desired IO address range in the new kernel?
> 

Maybe look around 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9a0e77f28b50128df0c9e26ae489e44e29a7270a

Also look at ide_platform.c. I imagine there must be some way to set it 
up in your device tree.

Maybe Bartlomiej Zolnierkiewicz can help ?

Christophe


More information about the Linuxppc-dev mailing list