You are not logged in.

#1 2014-11-16 12:33:53

MK13
Member
From: Germany
Registered: 2014-04-12
Posts: 80

PKGBUILD for linux-mainline with microcode fix

Hi,

I would like to install linux-mainline (currently 3.18-rc4) with the microcode patch applied.
Therefore I altered the linux-mainline PKGBUILD from AUR to PKGBUILD on pastebin.
As a reference I used the PKGBUILD from testing/linux with the fix applied. The build terminates successful and I can boot into the compiled kernel but after a suspend/resume the ethernet device won't come back up, logs on pastebin (look at the 'r8169 0000:02:00.0: Refused to change power state, currently in D3' line).

ip link show

doesn't show the ethernet link either and the LED for the ethernet port on the backside of my pc is turned off too.
Ethernet device info:

$ lspci -vvv
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
	Subsystem: Gigabyte Technology Co., Ltd Motherboard
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 30
	Region 0: I/O ports at e000 [size=256]
	Region 2: Memory at f0504000 (64-bit, non-prefetchable) [size=4K]
	Region 4: Memory at f0500000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169

One can see that the microcode patch have been included (CPU0 receives update after resume) and works well.

The altered PKGBUILD procudes three files:

$ ll linux-mainline*
-rw-r--r-- 1 marius marius  55M Nov 15 20:57 linux-mainline-3.18rc4-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 marius marius 4.7M Nov 15 20:58 linux-mainline-docs-3.18rc4-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 marius marius 6.2M Nov 15 20:58 linux-mainline-headers-3.18rc4-1-x86_64.pkg.tar.xz

And I installed only kernel + headers.

Installing the mainline kernel without the microcode fix works fine. So I want to make sure that the PKGBUILD is correct before looking deeper into the issue.

Could someone review the PKGBUILD?

Thanks in advance,

MK13

Last edited by MK13 (2014-11-16 12:41:39)

Offline

#2 2014-11-16 17:18:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: PKGBUILD for linux-mainline with microcode fix

It would have been eaiser if you had just pasted a diff here tongue - it looks OK to me.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-11-16 22:08:56

MK13
Member
From: Germany
Registered: 2014-04-12
Posts: 80

Re: PKGBUILD for linux-mainline with microcode fix

Mhh, that's true... big_smile Sorry!

Thank you for reviewing, I will look further into the issue.

Offline

#4 2014-11-17 22:41:16

MK13
Member
From: Germany
Registered: 2014-04-12
Posts: 80

Re: PKGBUILD for linux-mainline with microcode fix

Rebuild with -rc5 works fine... strange

PKGBUILD on pastbin

Offline

Board footer

Powered by FluxBB