Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp295464yba; Wed, 3 Apr 2019 08:53:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJCNYFFvTORLFFHvYkFAuS1K8hR3hTmNEOIEwFLI9MJZvyJISsvMNiEMfDp2YMQokIBlr8 X-Received: by 2002:a17:902:2b81:: with SMTP id l1mr639542plb.289.1554306828647; Wed, 03 Apr 2019 08:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554306828; cv=none; d=google.com; s=arc-20160816; b=bDwBJ/TCXQYrNCRgP2t67pLeXdQNh4826OnaUyaKrYxXzbQOzqDKOojQT7T9OHK1Ur 9qggXyf431I+htNa16RYD7Bn/LJ13HWyo1lpcPzTddUd2UWdW5EH/vfNbdnMCtNIzQNl fPnXemaq5Ju6Sn6YnVB2jkt0fuQhZgHwdFe8rD5rWgp53kS4ZthbeEmkuZfr8f8C1dNI miJNe2d6Cerp5+7vxYkIzCeoUS61Ci6O6mg+SnbA8CPZbz90odk+PJY0d5YUXyalKTXi Ll6fmvV6ZzCZSEo+5UL18+3UKuyFDkr3H4XkES3lso/tOcOWfngEuZ+N/b6NQYP2PWBm 2ZbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=IFbEaZvNrzXqdsFVxntTHzvbKfbVDaen34px36fcNTU=; b=uKpa/M1A00l9oImEnHUdqHfNvr6cwg13OU5FfYO+WuoiaMr9FdjIBjmtMsj1vWdjwp E9vBbb8nlPDDqBQG7aDZJSInGVT/TAd1Wj2QzHZls+R5AIjW9GI2+y2sJ7Sr21qa4Vl2 82dxE+no4nLrVksmczgTHYInYVH1xdaW7DxJ4RoU3P6QT5lZ69k4r7K4jJgFGv3aw8ct 1K15wZJTMV5gy42vULm60nmRhMbzDPFw/LYB6Tuyw5oZNTc74P2FuPPkEcCrrR94vBK8 Wu2FHObGAJseJQ1oonriH73jc+ouvjDMvXLcOEHwer2TRA9dJCtm93tuM8mS47BV3C3f OpOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2si10745305plr.69.2019.04.03.08.53.33; Wed, 03 Apr 2019 08:53:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727659AbfDCPwg (ORCPT + 99 others); Wed, 3 Apr 2019 11:52:36 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:39311 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfDCPwf (ORCPT ); Wed, 3 Apr 2019 11:52:35 -0400 Received: by mail-qk1-f196.google.com with SMTP id c189so10458982qke.6 for ; Wed, 03 Apr 2019 08:52:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=IFbEaZvNrzXqdsFVxntTHzvbKfbVDaen34px36fcNTU=; b=T9Xxf9fSr8XNfw7Xm09RPfRqK5xq8gv/ldmSS96/J3uguu9geWRtrhFLO+KrWa+rRa oLjeYB6WD43LL3LXh9knzidNrpfRSZ0Udj5s5FkoMZ1VCIr5/I+oawhC4IybzZOh+N1e jI5nkXPx3nlz0K61d9lSoJwPGkirdwEDQ4ebJOTdQ8Y4t+bSgTH7wRxWkfTQ4O0XWJVz nDLhLEph2Xj03rpskbTpkxS4INKisnMwd2Bjozwok1/VW0v8GeT5Nik+nZ4jXFg3GQld TQPOuxEbW6aLcpoWXYu7158tYoGBdWo1CwgQO+JzyO5PVd4kjhUvJBlGWz2lfgN22FBM /7pQ== X-Gm-Message-State: APjAAAVKiXbvxxF+LEa4JR375cxmkNtEz7kIXUyGeO4QbjtOkteGO0ao B2FT5mS9pWrZhCW83r1RHJ1Gdw== X-Received: by 2002:ae9:c310:: with SMTP id n16mr720495qkg.8.1554306754849; Wed, 03 Apr 2019 08:52:34 -0700 (PDT) Received: from dhcp-10-20-1-165.bss.redhat.com ([144.121.20.162]) by smtp.gmail.com with ESMTPSA id w18sm13148268qta.2.2019.04.03.08.52.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Apr 2019 08:52:33 -0700 (PDT) Message-ID: Subject: Re: [PATCH] drm/cirrus: rewrite and modernize driver. From: Adam Jackson To: Daniel Stone Cc: Gerd Hoffmann , dri-devel , David Airlie , Dave Airlie , open list , "open list:DRM DRIVER FOR QEMU'S CIRRUS DEVICE" Date: Wed, 03 Apr 2019 11:52:31 -0400 In-Reply-To: References: <20190403072318.31507-1-kraxel@redhat.com> <85ba308177f4e9ddee336d5110cb6df7a447cebf.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-04-03 at 16:15 +0100, Daniel Stone wrote: > There's already a list of supported formats for each DRM plane, which > you can get via drmModeGetPlane (being careful to enable universal > planes so you can discover the primary plane). The same information is > present in the 'IN_FORMATS' property, which is more difficult to parse > but also tells you about modifiers. > > modesetting already pulls all this out (at least in the atomic path) > so we can reason about acceptable modifiers. D'oh, I knew that. The problem then is modesetting isn't pulling that info out early enough in PreInit. I'll consider that another case of xorg/xserver#9 then. - ajax