Skip to content

Instantly share code, notes, and snippets.

View lovesegfault's full-sized avatar
🔨

Bernardo Meurer lovesegfault

🔨
View GitHub Profile
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/bemeurer/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.0/src/platform_impl/linux/wayland/window.rs:393:22
stack backtrace:
0: 0x55c3d84eb214 - backtrace::backtrace::libunwind::trace::h90669f559fb267f0
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
1: 0x55c3d84eb214 - backtrace::backtrace::trace_unsynchronized::hffde4e353d8f2f9a
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
2: 0x55c3d84eb214 - std::sys_common::backtrace::_print_fmt::heaf44068b7eaaa6a
at src/libstd/sys_common/backtrace.rs:77
3: 0x55c3d84eb214 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h88671019cf081de2
at src/libstd/sys_common/backtrace.rs:59
{ }: let
sources = import ./sources.nix;
overlays = [
(import sources.nixpkgs-mozilla)
(
self: super: {
rustChannel = self.rustChannelOf { channel = "stable"; };
rustFull = self.rustChannel.rust.override {
extensions = [
"clippy-preview"
{ stdenv, fetchFromGitHub, php, flex, makeWrapper }:
let
libphutil = fetchFromGitHub {
owner = "phacility";
repo = "libphutil";
rev = "cc2a3dbf590389400da55563cb6993f321ec6d73";
sha256 = "1k7sr3racwz845i7r5kdwvgqrz8gldz07pxj3yw77s58rqbix3ad";
};
arcanist = fetchFromGitHub {
these derivations will be built:
/nix/store/2dcrvk3kj29gbsn2fg6d5mmzwgp6gzjr-python3.6-wandb-0.8.28.drv
/nix/store/r6xssllcs13pwlx1fpkwyb8fvl85ryji-python3.6-kiwisolver-1.2.0.drv
/nix/store/6y63q0izfayfd50i4yy09j2iiwn3jj7z-python3.6-matplotlib-2.2.3.drv
/nix/store/jzzi7qivf2ns4ya72cvf89grshd4syjy-python3.6-seaborn-0.9.0.drv
/nix/store/g3qn4p1xs1ampzrvx711hg0dlbblavsv-python3-3.6.10-env.drv
building '/nix/store/r6xssllcs13pwlx1fpkwyb8fvl85ryji-python3.6-kiwisolver-1.2.0.drv'...
building '/nix/store/2dcrvk3kj29gbsn2fg6d5mmzwgp6gzjr-python3.6-wandb-0.8.28.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c
index a3dc2ba19fb2..e45819777679 100644
--- a/drivers/gpu/drm/nouveau/dispnv50/disp.c
+++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c
@@ -722,6 +722,19 @@ nv50_hdmi_enable(struct drm_encoder *encoder, struct drm_display_mode *mode)
high_tmds_clock_ratio = mode->clock > 340000;
scrambling = high_tmds_clock_ratio ||
hdmi->scdc.scrambling.low_rates;
+ // high clock ratio requires scrambling
+ ret = drm_scdc_readb(nv_encoder->i2c, SCDC_TMDS_CONFIG, &config);
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c
index 4d1c58468dbc..8d485dbce90c 100644
--- a/drivers/gpu/drm/nouveau/dispnv50/disp.c
+++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c
@@ -728,6 +728,19 @@ nv50_hdmi_enable(struct drm_encoder *encoder, struct drm_display_mode *mode)
NV50_DISP_SOR_HDMI_PWR_V0_SCDC_SCRAMBLE * scrambling |
NV50_DISP_SOR_HDMI_PWR_V0_SCDC_DIV_BY_4 * high_tmds_clock_ratio;
+ ret = drm_scdc_readb(nv_encoder->i2c, SCDC_TMDS_CONFIG, &config);
+ if (ret < 0) {
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c
index 4d1c58468dbc..a107d5b863c3 100644
--- a/drivers/gpu/drm/nouveau/dispnv50/disp.c
+++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c
@@ -742,11 +742,6 @@ nv50_hdmi_enable(struct drm_encoder *encoder, struct drm_display_mode *mode)
if (!hdmi->scdc.scrambling.supported)
return;
- ret = drm_scdc_readb(nv_encoder->i2c, SCDC_TMDS_CONFIG, &config);
- if (ret < 0) {
[10659.779606] nouveau 0000:01:00.0: DRM: allocated 3840x2160 fb: 0x200000, bo 0000000088c2d3b7
[10659.779660] nouveau 0000:01:00.0: fb1: nouveaudrmfb frame buffer device
[10722.236453] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[10736.900709] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[10752.740797] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[12321.438680] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[12369.319686] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[12621.316383] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[12668.985124] i2c i2c-13: sendbytes: NAK bailout.
warning: No strap specified
BIT table 'B' not empty!
Failed to parse BIT table 'B' at 0x026e version 2
BIT table 'C' not empty!
Failed to parse BIT table 'C' at 0x0293 version 2
BIT table 'I' not empty!
Failed to parse BIT table 'I' at 0x02b3 version 1
BIT 'i' table has strange size: 0x005c > 0x0044
Unknown IUNK21 table version 1.1
Failed to parse IUNK21 table at 0xcd37 version 1.1
[10659.779606] nouveau 0000:01:00.0: DRM: allocated 3840x2160 fb: 0x200000, bo 0000000088c2d3b7
[10659.779660] nouveau 0000:01:00.0: fb1: nouveaudrmfb frame buffer device
[10722.236453] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[10736.900709] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[10752.740797] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1