Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
swapper/0 not tainted [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sat Jun 29, 2013 11:42 am    Post subject: swapper/0 not tainted [SOLVED] Reply with quote

Hi,
making a custom kernel I get the message at boot:

Code:
Pid 1,comm:swapper/0 not tainted
arch/x86/kernel/smpc:123 native_smp_send_reschedule.
hardware name: System Product Name


etc.
I guess it is perhaps related to SATA (?) but I am just running in circles.

config: https://docs.google.com/file/d/0B0-ffPQrFWEibl9uTlA5TUVFN3c/edit?usp=sharing
dmesg: http://dpaste.com/1275117/
lspci: http://dpaste.com/1275118/

Any help appreciated.
_________________
Quis custodiet ipsos, custodes?


Last edited by salmonix on Mon Jul 08, 2013 5:22 am; edited 1 time in total
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Sat Jun 29, 2013 11:53 am    Post subject: Reply with quote

Can't tell much without a photo; the "swapper/0 not tainted" is not the error, swapper denotes the process (it is often a false positive) and the not tainted just means you don't run proprietary drivers. So, you could try to compile the hard disk controller (IDE / ATA / PATA / SATA / AHCI / ...) into the kernel (=Y) as well as the file system; also make sure you have CONFIG_TMPFS=Y, CONFIG_DEVTMPFS=Y and CONFIG_DEVTMPFS_MOUNT=Y.
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sat Jun 29, 2013 4:20 pm    Post subject: Reply with quote

Thanx for you concern.
Sg. went wrong, I modified the config. The config and the error message is at the links below:

https://docs.google.com/file/d/0B5gL0rBtAlshcm9MTEt3d0l2cHc/edit?usp=sharing
https://docs.google.com/file/d/0B5gL0rBtAlshbWhrRERybEV6d0E/edit?usp=sharing
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Sat Jun 29, 2013 4:51 pm    Post subject: Reply with quote

That's indeed root failing to mount. As my previous suggestions don't seem to work; you could try genkernel, but given that you are on a different distribution you can find support at https://bbs.archlinux.org/viewforum.php?id=22
Back to top
View user's profile Send private message
njsg
n00b
n00b


Joined: 17 Dec 2005
Posts: 54
Location: Finland

PostPosted: Sat Jun 29, 2013 9:44 pm    Post subject: Reply with quote

salmonix wrote:
Thanx for you concern.
Sg. went wrong, I modified the config. The config and the error message is at the links below:

https://docs.google.com/file/d/0B5gL0rBtAlshcm9MTEt3d0l2cHc/edit?usp=sharing
https://docs.google.com/file/d/0B5gL0rBtAlshbWhrRERybEV6d0E/edit?usp=sharing


In the future, please use a service that allows serving plain text over HTTP, like, say, pastebin, then linking the raw text link here. This makes immediate handling of the file quite much easier.

Did you just copy an Arch Linux kernel config? Do you have any idea of how Arch packages their kernels? With initrds, maybe? If so, did you do the same on the gentoo side?

Why did you decide to copy a config from Arch Linux?

Please share:

- lspci -k of a working kernel (livecd?)
- the kernel commandline; even better, the bootloader configuration for that kernel (including eventual initrd lines).

My guess is that you copied a config from Arch, which may provide pre-built kernels with initrds with lots of modules, and just compiled the kernel on the gentoo side, skipping an initrd and using a kernel with no builtin drivers to handle either the I/O controller which gives you access to the HDD or the filesystem / uses.
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sun Jun 30, 2013 2:42 pm    Post subject: Reply with quote

Hi, thanx.
I could not copy the config to pastebin for some reason, that is why I choose this way.

The config was not copied. I simply wanted to create a config for my fresh Gentoo partition but I was staying at the arch partition planning to copy the kernel over to the Gentoo on success.

The grub2 entry:
Quote:
menuentry 'Linux custom' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-custom-true-04c4ee0c-580a-4133-9e64-21bbae88429e' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 04c4ee0c-580a-4133-9e64-21bbae88429e
else
search --no-floppy --fs-uuid --set=root 04c4ee0c-580a-4133-9e64-21bbae88429e
fi
echo 'Loading Linux custom ...'
linux /boot/vmlinuz-custom root=UUID=04c4ee0c-580a-4133-9e64-21bbae88429e ro quiet
}


The lspci: http://dpaste.com/1276270/

The current config is here:
Quote:
http://pastebin.com/5BweHQPC

The problem is still there.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Sun Jun 30, 2013 7:07 pm    Post subject: Reply with quote

Can't see anything wrong in the configuration, maybe the UUID is wrong; try the /dev/... syntax.
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sun Jun 30, 2013 7:44 pm    Post subject: Reply with quote

:(

Quote:
[root@siona ~]# blkid
/dev/sda1: UUID="F2E67D47E67D0D5B" TYPE="ntfs"
/dev/sda2: UUID="04c4ee0c-580a-4133-9e64-21bbae88429e" TYPE="ext4"
/dev/sda5: UUID="a8e3fcd1-aa5b-4e40-8c97-1a20b3e17351" TYPE="ext4"
/dev/sda7: UUID="edb9c457-3765-42ad-9c9d-8bc691c78fb4" TYPE="ext4"


in grub.cfg:
Quote:
...
linux /boot/vmlinuz-custom root=UUID=04c4ee0c-580a-4133-9e64-21bbae88429e ro quiet
...

_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Sun Jun 30, 2013 8:13 pm    Post subject: Reply with quote

Does it work with root=/dev/sda2 or is that broken too?
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Mon Jul 01, 2013 5:21 am    Post subject: Reply with quote

No, grub2 says :
Quote:
No such device: /dev/sda2. Loading linux-custom kernel...



The grub cfg is here: http://dpaste.com/1276890/
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Mon Jul 01, 2013 7:19 am    Post subject: Reply with quote

I don't see /dev/sda2 in there.
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Mon Jul 01, 2013 3:26 pm    Post subject: Reply with quote

sorry, I did it on the command line in Grub2.

ok., here is the current config: http://dpaste.com/1277865/

with the variant with UUIDs the error is this: https://docs.google.com/file/d/0B5gL0rBtAlshQnNoVEFVeThIS2s/edit?usp=sharing

with sda2 - this: https://docs.google.com/file/d/0B5gL0rBtAlshQWVZS2tYcUFhZlU/edit?usp=sharing[/url]

it is clear, that although the goes panic finally, the /sda variant goes father ! :-D
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Mon Jul 01, 2013 3:43 pm    Post subject: Reply with quote

It can see your devices (the second screenshot shows ATA) but still can't mount them, which root file system do you use and did you compile that file system into the kernel?
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Mon Jul 01, 2013 4:23 pm    Post subject: Reply with quote

ext4.

...
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
...

but finally by the pressure of my superstition I also compiled ext3 and ext2 in the kernel.
i have also Xchecked the supported partition types - those should work.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Mon Jul 01, 2013 4:27 pm    Post subject: Reply with quote

I'm getting out of clues; if you can't get it to work, I would like to suggest you to start from a genkernel config with an initramfs and trim down from there.
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sat Jul 06, 2013 8:31 am    Post subject: Reply with quote

Well, back to the story.

I added

CONFIG_SCSI_DEBUG=Y
CONFIG_SCSI_BOOT_SYSFS=y

to config and gave it a try. ( the idea came from a different thread here. )

Watching the full output of the kernel again loading it with /dev/sda2 I realized that the HDD is recognized as sdb and not sda.
sda is the other hdd I have ( unformatted ).
Quote:

dmesg | grep sd
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-custom root=/dev/sdb2
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-custom root=/dev/sdb2
[ 0.729780] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 0.730812] sd 0:0:0:0: [sda] 16384 512-byte logical blocks: (8.38 MB/8.00 MiB)
[ 0.732290] sd 0:0:0:0: [sda] Write Protect is off
[ 0.733209] sd 0:0:0:0: [sda] Mode Sense: 73 00 10 08
[ 0.734291] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 0.742299] sda: unknown partition table
[ 0.747297] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.776532] sd 3:0:0:0: Attached scsi generic sg1 type 0
[ 1.776603] sd 3:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[ 1.776635] sd 3:0:0:0: [sdb] Write Protect is off
[ 1.776637] sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 1.776684] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.780057] sd 6:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[ 1.780085] sd 6:0:0:0: [sdc] Write Protect is off
[ 1.780086] sd 6:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[ 1.780098] sd 6:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.780300] sd 6:0:0:0: Attached scsi generic sg3 type 0
[ 1.795364] sdc:
[ 1.795472] sd 6:0:0:0: [sdc] Attached SCSI disk
[ 1.833201] sdb: sdb1 sdb2 sdb3 < sdb5 sdb6 sdb7 >
[ 1.833762] sd 3:0:0:0: [sdb] Attached SCSI disk
[ 3.543987] EXT3-fs (sdb2): error: couldn't mount because of unsupported optional features (240)
[ 3.597034] EXT2-fs (sdb2): error: couldn't mount because of unsupported optional features (240)
[ 3.670315] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
[ 12.327209] EXT4-fs (sdb2): re-mounted. Opts: data=ordered
[ 17.216997] EXT4-fs (sdb7): mounted filesystem with ordered data mode. Opts: data=ordered
[ 44.889816] EXT4-fs (sdb2): re-mounted. Opts: data=ordered,commit=0
[ 45.573857] EXT4-fs (sdb7): re-mounted. Opts: data=ordered,commit=0


the full dmesg output is here: http://dpaste.com/1290888/

So,
after changing grub to /dev/sdb kernel finally loaded - putting a lot of messages on screen - and and the system started, because fstab has the UUIDs and not the /dev/sdxxx identifiers.

however, with UUID in grub it is still falling into panic, and the kernel I use normally finds the HDD as /dev/sda - and loads a way faster. strange, because blkid /dev/sdb2 ( for example ) is properly returning the UUID for that partition - which is also correct in grub.cfg

My guessing is that the problem is somewhere with the way kernel reads from BIOS, but warm thanx for any suggestions.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Mon Jul 08, 2013 5:21 am    Post subject: Reply with quote

So, the criminal part was in

Code:
 Device Drivers -> Multiple devices driver support ( RAID and LVM ) -> device mapper support


as it reversed the order of the attached hdds.

It still seems to have some issues, however, as grub still complains about not finding the root partition, but after hitting a key, the kernel starts to load slowly, and then suddenly all is ok. I guess the root of the evil is in deeper domains, but that is not the story of the tainted ( or untainted ) swap.
Thanx for the help.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum