Skip to content

Instantly share code, notes, and snippets.

[ 1467.671262] [IGT] panfrost_submit: executing
[ 1467.683470] [IGT] panfrost_submit: starting subtest pan-reset
[ 1467.696570] ------------[ cut here ]------------
[ 1467.696658] WARNING: CPU: 0 PID: 2158 at /mnt/host/source/src/third_party/kernel/v4.19/drivers/gpu/drm/panfrost/panfrost_mmu.c:591 panfrost_mmu_irq_handler_thread+0x52c/0x588 [panfrost]
[ 1467.696663] Modules linked in: rfcomm uinput mtk_vcodec_enc cros_ec_rpmsg mtk_dip mtk_cam_isp mtk_fd mtk_seninf mtk_vcodec_dec mtk_mdp3 mtk_vcodec_common videobuf2_dma_contig videobuf2_memops v4l2_mem2mem videobuf2_v4l2 panfrost videobuf2_common gpu_sched hci_uart hid_google_hammer btqca ov02a10 ov8856 bluetooth v4l2_fwnode dw9768 ecdh_generic mtk_scp mtk_rpmsg rpmsg_core mtk_scp_ipi ipt_MASQUERADE fuse iio_trig_sysfs cros_ec_light_prox cros_ec_sensors_sync cros_ec_sensors cros_ec_sensors_ring cros_ec_activity industrialio_triggered_buffer kfifo_buf cros_ec_sensors_core cdc_ether usbnet ath10k_sdio r8152 ath10k_core mii ath mac80211 lzo_rle cfg80211 lzo_compr
[ 1215.234937] [IGT] panfrost_submit: executing
[ 1215.318446] [IGT] panfrost_submit: starting subtest pan-submit
[ 1215.338239] ------------[ cut here ]------------
[ 1215.338337] WARNING: CPU: 0 PID: 2158 at /mnt/host/source/src/third_party/kernel/v4.19/drivers/gpu/drm/panfrost/panfrost_mmu.c:591 panfrost_mmu_irq_handler_thread+0x52c/0x588 [panfrost]
[ 1215.338343] Modules linked in: rfcomm uinput mtk_vcodec_enc cros_ec_rpmsg mtk_dip mtk_cam_isp mtk_fd mtk_seninf mtk_vcodec_dec mtk_mdp3 mtk_vcodec_common videobuf2_dma_contig videobuf2_memops v4l2_mem2mem videobuf2_v4l2 panfrost videobuf2_common gpu_sched hci_uart hid_google_hammer btqca ov02a10 ov8856 bluetooth v4l2_fwnode dw9768 ecdh_generic mtk_scp mtk_rpmsg rpmsg_core mtk_scp_ipi ipt_MASQUERADE fuse iio_trig_sysfs cros_ec_light_prox cros_ec_sensors_sync cros_ec_sensors cros_ec_sensors_ring cros_ec_activity industrialio_triggered_buffer kfifo_buf cros_ec_sensors_core cdc_ether usbnet ath10k_sdio r8152 ath10k_core mii ath mac80211 lzo_rle cfg80211 lzo_comp
@drinkcat
drinkcat / Performance
Last active November 28, 2019 10:32
Shell implementation of cpio
time sudo cpio -idm < ../bash-4.2-37.4.mga3.x86_64.cpiodec
Proper cpio:
real 0m0.031s
user 0m0.003s
sys 0m0.027s
Using dd:
real 0m3.277s
user 0m0.103s
@drinkcat
drinkcat / drm-fix.patch
Last active May 14, 2018 07:48
DRM fix
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 4177780..bbfc071 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -170,6 +170,9 @@ static struct drm_ioctl_desc drm_ioctls[] = {
#define DRM_CORE_IOCTL_COUNT ARRAY_SIZE( drm_ioctls )
+/* Allow set/drop master ioctls as normal user */
+static u32 drm_master_relax = 0;
echo "Send signals from another console:"
echo "kill -USR1 $$"
SIG='force'
trap "SIG='USR1'" USR1
# Create a dummy FIFO. Reading the FIFO will block until interrupted by a signal
SIGFIFO="clip.fifo"
if [ ! -p "$SIGFIFO" ]; then
rm -f "$SIGFIFO"
@drinkcat
drinkcat / test.c
Last active January 2, 2016 04:39
#include <stdio.h>
/*
ARM output:
delay=45
delay=45
delay=97346
delay=-45
x86 output:
@drinkcat
drinkcat / test.c
Last active January 2, 2016 04:39
#include <stdio.h>
/* ARM output:
1000 / div = 10
-1000 / div = 42949662
-1000 / (long)div = -10
*/
int main() {
unsigned long div = 100;
@drinkcat
drinkcat / 01 mount and dmesg errors
Last active January 1, 2016 19:49
btrfs mount fail
[root@machin ~]# uname -a
Linux machin 3.13.0-rc5-custom #1 SMP PREEMPT Thu Dec 26 11:53:39 SGT 2013 x86_64 GNU/Linux
[root@machin ~]# mount /dev/sdb3 /home
mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
[root@machin ~]# dmesg -c
[ 3892.863456] btrfs: device label home devid 1 transid 29333 /dev/sdb3
@drinkcat
drinkcat / gist:7998826
Created December 17, 2013 02:13
Arch mirrors
# https://www.archlinux.org/mirrorlist/?country=US&protocol=http&ip_version=4&use_mirror_status=on
export CROUTON_MIRROR_arch='http://mirrors.lax1.thegcloud.com/arch/$repo/os/$arch'
# http://archlinuxarm.org/about/mirrors
export CROUTON_MIRROR_alarm='http://ca.us.mirror.archlinuxarm.org/armv7h/$repo'
@drinkcat
drinkcat / clipboard-test
Last active December 28, 2015 08:09
clipboard testing procedure
git 3662f3d96e438e80a474ebd0d04bca2c63aa6cd5
- Samsung ARM Chromebook, stable 4537.147.0
- precise: 12345678
- saucy: 12345
- wheezy: 12345
Testing procedure for clipboard sync:
0. (once only)
- In host-ext, run
- sh -e gencrx.sh