Skip to content

Instantly share code, notes, and snippets.

View levex's full-sized avatar
🌄
Chasing sunsets while working remotely

Levente Kurusa levex

🌄
Chasing sunsets while working remotely
View GitHub Profile
/*
* PCI tutorial
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
From: Levente Kurusa <levex@linux.com>
To: Teodora Băluţă <teobaluta@gmail.com>,
Waskiewicz Jr, Peter P <pjwaskiewicz@gmail.com>,
Jason Cooper <jason@lakedaemon.net>,
Sarah Sharp <sarah@minilop.net>,
Anton Arapov <arapov@gmail.com>,
Steven Rostedt <rostedt@goodmis.org>,
"Theodore Ts'o" <tytso@mit.edu>
Cc: LKML <linux-kernel@vger.kernel.org>,
Levente Kurusa <levex@linux.com>,
@levex
levex / pci-mod.c
Created June 6, 2014 12:48
Module for the QEMU+PCI tutorial
#define pr_fmt(fmt) "tut: " fmt
/* random includes... */
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/printk.h>
/* various module stuff, we use GPL! */
@levex
levex / 0001-qr-print_oops-explain-what-is-our-purpose-to-the-use.patch
Created June 13, 2014 16:31
0001-qr-print_oops-explain-what-is-our-purpose-to-the-use.patch
From edf7140cde27307171abf64dd2a97576d6e2bd56 Mon Sep 17 00:00:00 2001
From: Levente Kurusa <levex@linux.com>
Date: Fri, 13 Jun 2014 18:25:46 +0200
Subject: [PATCH] qr: print_oops: explain what is our purpose to the user
Might not be the most perfect solution, I think we would
need a way to make sure it appears...
Github-Issue: #9
Signed-off-by: Levente Kurusa <levex@linux.com>
@levex
levex / amd-fglrx-3.17.patch
Created January 2, 2015 14:09
AMD fglrx kernel driver patch for 3.17
--- common/lib/modules/fglrx/build_mod/kcl_acpi.c 2014-09-23 10:42:10.000000000 -0400
+++ common/lib/modules/fglrx/build_mod/kcl_acpi.c 2014-11-13 16:44:23.187112123 -0500
@@ -831,7 +831,7 @@
static acpi_status KCL_ACPI_Slot_No_Hotplug(KCL_ACPI_DevHandle handle, u32 lvl, void *data, void **rv)
{
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,7)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,7) && LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)
struct acpi_device *tdev = NULL;
struct pci_dev *pdev = (struct pci_dev *)data;
@levex
levex / keybase.md
Created April 17, 2015 16:27
keybase.md

Keybase proof

I hereby claim:

  • I am levex on github.
  • I am levex (https://keybase.io/levex) on keybase.
  • I have a public key whose fingerprint is C5F8 6386 CD17 FAE5 F457 C45F B06A 2B69 4EF5 D641

To claim this, I am signing this object:

$ sudo reboot
Failed to start reboot.target: Access denied
Broadcast message from lkurusa@<blurb>.bos.redhat.com on pts/0 (Wed 2015-07-08 03:03:20 EDT):
The system is going down for reboot NOW!
$ <happily continue for eternity>
@levex
levex / fossjam-bug-aggregators
Created October 9, 2016 23:52
FOSSJam Bug List
https://community.kde.org/KDE/Junior_Jobs
Contacts inside kdevelop & marble
https://kernel.org/
Lev can get some quick tasks from drivers/staging
There is also a bugzilla but it's generally not maintained.
https://fedoraproject.org/
There are quite a few translation tasks for internationals.
@levex
levex / wl18xx_main.diff
Created July 5, 2017 14:47
Embedded shenanigans: fallback to default settings if no firmware is found in wl18xx
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index 717c4f5..16f2736 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -1369,7 +1369,7 @@ static int wl18xx_conf_init(struct wl1271 *wl, struct device *dev)
wl1271_error("configuration binary file size is wrong, expected %zu got %zu",
WL18XX_CONF_SIZE, fw->size);
ret = -EINVAL;
- goto out;
+ goto out_fallback;
0xC6B36FaB73626D02a5e289e1086896B54e472094