Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp792625ybt; Wed, 1 Jul 2020 10:05:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzauwwU/mH2KbqqEr1q3vG+Vly7dpHqr8PxbM7PHSwUHKdBMzWuE6oDAYgO6yuqOQWa9x7w X-Received: by 2002:a50:f109:: with SMTP id w9mr29041656edl.277.1593623140276; Wed, 01 Jul 2020 10:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593623140; cv=none; d=google.com; s=arc-20160816; b=X9uhCq15gn50JzlIO2uVAm76GCNpyGrECBY0+Nr3BxWj5P/7+kJINwHGiL+i+3AlPt ZySZToyDDiCCXhn/lhW4UK+Zhgt0xNFy/fisvLX8rFvPgp6FuE4EZQvJ2nSbd5pQPOXp qwrxO7Ukcizsvd92a4tiiUfYVYfSHHT3basIBcYFXEu0TQoCskVFO9gFhTeQZWq5HtKa AUt+/9zwy3tg6tWgXJvBZ0sNMcChkPB1ozOv61sDRi+qsmc4VjTIaB+t++iN7I/Bk0ut AYTbTquYLAuQc6PhYq/7ic3slkEpbs+jnuWh9OwKw3OmqmNAYlc7/s2qco2fodXJ5pVV FrEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NiOy7ZAOZwRJYpQTDCr66D5MQt2g8hiPsepvJGe2kJ4=; b=NthQdKauqKFqHCSmp7rIUdnro6zw9hm+hVbmZOFfqsA3IoRgIhnniK5QbR0z5aKuha X17tsgs8LjdVIOkYl59PK2WR5FN5M8G7qjQCIvUAlhXkPGBt7KMLdTr9O+jCIu0HnGeD KfWbJpxF5AoAHwkPOCT8kuvmcWv1DU5637i+krW6UQ+Kg1f0PTdubEhpG7d0n9r4Uhga 3KtXEl5QW1W+5EYtY8Crj6n5tPwrbgLO8MW4Zz5X+qNSgm+zbO6F2m5Xd+GjkBw0tPDc IkYxWi/XJuZILtVu3bimrUlmOLJdoDfQQz9x6me6dfgL91O88hq1r6pcsMazuZnwAxSC WKUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NvC6qmV+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si4177852ejj.80.2020.07.01.10.05.13; Wed, 01 Jul 2020 10:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NvC6qmV+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732463AbgGAREh (ORCPT + 99 others); Wed, 1 Jul 2020 13:04:37 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:47299 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732124AbgGAREh (ORCPT ); Wed, 1 Jul 2020 13:04:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593623075; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NiOy7ZAOZwRJYpQTDCr66D5MQt2g8hiPsepvJGe2kJ4=; b=NvC6qmV+u+kDchGWDWBaKVYu+bM0WMpQVgOdE3CCzEpHY7blZ3js5zmH8wnc+/6fIqiPgv mXn7CThID/cDACfRM1eZH80fZo3CAACNITKIZs6CUf6UeGglCGzZQ/xYBKHrmhEW82hqfE VIyUeD9kgeDEd9UOh+aIHxEYKOvZ/cw= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-143-oRhJNQn6P5CIwgxrm82oKQ-1; Wed, 01 Jul 2020 13:04:27 -0400 X-MC-Unique: oRhJNQn6P5CIwgxrm82oKQ-1 Received: by mail-qk1-f197.google.com with SMTP id 204so17512085qki.20 for ; Wed, 01 Jul 2020 10:04:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NiOy7ZAOZwRJYpQTDCr66D5MQt2g8hiPsepvJGe2kJ4=; b=P113SoeoZus4xI26NzyyrbIUIJah4q8nS0Cr17YsEh10HETl304dXkQpqUSGLdCV4l F/P5GfrW4+L3hyEWNCZrqV8Z9KPwGHZTq7Ueow+t9SoWxlXbsG43Nt1jfatrbp6jwnjg +Tpe8LrTKULSMGsrCqiKvgZyTJ4jqM2tz7AF2+4A9/RrBvdkH/iTposVTAn/39l9zY36 +5aVFNnuI8fKc5L6GsH1Yk4ABJHZue30p7w240IyBKC917kLLg826rC4hDCpAuuszmtz iyBqyyObUzAJHGJCRKB81z3iovgV4JQ0ldfpcBcs7jAry2sgJ68Rh8J0IQDWwcltrBIC 6Kyw== X-Gm-Message-State: AOAM532HFH7p0w5XZtf/ZXpPAp0We862x0wv3sFJKXMTrLswSm56jY/4 /wPkytderifcYu42tqynpaLrxhCrNFjV7xC3toI77L5mj/qKmEwureb3906s1B4cmZiG4fOhrcj LV9Yz+X1zunhCEj9qCBIBq36td+0iaU5IfkKn9Zta X-Received: by 2002:a37:6d4:: with SMTP id 203mr25884089qkg.62.1593623067104; Wed, 01 Jul 2020 10:04:27 -0700 (PDT) X-Received: by 2002:a37:6d4:: with SMTP id 203mr25884064qkg.62.1593623066788; Wed, 01 Jul 2020 10:04:26 -0700 (PDT) MIME-Version: 1.0 References: <20200630230808.wj2xlt44vrszqfzx@box> <11e5ee1d-8b5e-2721-091e-ffbf9e1271d1@nvidia.com> In-Reply-To: From: Karol Herbst Date: Wed, 1 Jul 2020 19:04:15 +0200 Message-ID: Subject: Re: [git pull] drm for 5.8-rc1 To: Daniel Vetter Cc: James Jones , LKML , dri-devel , Ben Skeggs , "Kirill A. Shutemov" , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 1, 2020 at 6:01 PM Daniel Vetter wrote: > > On Wed, Jul 1, 2020 at 5:51 PM James Jones wrote: > > > > On 7/1/20 4:24 AM, Karol Herbst wrote: > > > On Wed, Jul 1, 2020 at 6:45 AM James Jones wrote: > > >> > > >> This implies something is trying to use one of the old > > >> DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK format modifiers with DRM-KMS without > > >> first checking whether it is supported by the kernel. I had tried to > > >> force an Xorg+Mesa stack without my userspace patches to hit this error > > >> when testing, but must have missed some permutation. If the stalled > > >> Mesa patches go in, this would stop happening of course, but those were > > >> held up for a long time in review, and are now waiting on me to make > > >> some modifications. > > >> > > > > > > that's completely irrelevant. If a kernel change breaks userspace, > > > it's a kernel bug. > > > > Agreed it is unacceptable to break userspace, but I don't think it's > > irrelevant. Perhaps the musings on pending userspace patches are. > > > > My intent here was to point out it appears at first glance that > > something isn't behaving as expected in userspace, so fixing this would > > likely require some sort of work-around for broken userspace rather than > > straight-forward fixing of a bug in the kernel logic. My intent was not > > to shift blame to something besides my code & testing for the > > regression, though I certainly see how it could be interpreted that way. > > > > Regardless, I'm looking in to it. > I assume the MR you were talking about is https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3724 ? I am also aware of the tegra driver being broken on my jetson nano and I am now curious if this MR could fix this bug as well... and sorry for the harsh reply, I was just a annoyed by the fact that "everything modifier related is just breaking things", first tegra and that nobody is looking into fixing it and then apparently the userspace code being quite broken as well :/ Anyway, yeah I trust you guys on figuring out the keeping "broken" userspace happy from a kernel side and maybe I can help out with reviewing the mesa bits. I am just wondering if it could help with the tegra situation giving me more reasons to look into it as this would solve other issues I should be working on :) > If we do need to have a kernel workaround I'm happy to help out, I've > done a bunch of these and occasionally it's good to get rather > creative :-) > > Ideally we'd also push a minimal fix in userspace to all stable > branches and make sure distros upgrade (might need releases if some > distro is stuck on old horrors), so that we don't have to keep the > hack in place for 10+ years or so. Definitely if the hack amounts to > disabling modifiers on nouveau, that would be kinda sad. > -Daniel > > > > > Thanks, > > -James > > > > >> Are you using the modesetting driver in X? If so, with glamor I > > >> presume? What version of Mesa? Any distro patches? Any non-default > > >> xorg.conf options that would affect modesetting, your X driver if it > > >> isn't modesetting, or glamour? > > >> > > >> Thanks, > > >> -James > > >> > > >> On 6/30/20 4:08 PM, Kirill A. Shutemov wrote: > > >>> On Tue, Jun 02, 2020 at 04:06:32PM +1000, Dave Airlie wrote: > > >>>> James Jones (4): > > >>> ... > > >>>> drm/nouveau/kms: Support NVIDIA format modifiers > > >>> > > >>> This commit is the first one that breaks Xorg startup for my setup: > > >>> GTX 1080 + Dell UP2414Q (4K DP MST monitor). > > >>> > > >>> I believe this is the crucial part of dmesg (full dmesg is attached): > > >>> > > >>> [ 29.997140] [drm:nouveau_framebuffer_new] Unsupported modifier: 0x300000000000014 > > >>> [ 29.997143] [drm:drm_internal_framebuffer_create] could not create framebuffer > > >>> [ 29.997145] [drm:drm_ioctl] pid=3393, ret = -22 > > >>> > > >>> Any suggestions? > > >>> > > >> _______________________________________________ > > >> dri-devel mailing list > > >> dri-devel@lists.freedesktop.org > > >> https://lists.freedesktop.org/mailman/listinfo/dri-devel > > >> > > > > > > _______________________________________________ > > > dri-devel mailing list > > > dri-devel@lists.freedesktop.org > > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > > > > > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch >