Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3739450yba; Mon, 29 Apr 2019 07:46:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrkfKvLR3gl7z9E/S2+ASO+NVcYUNweU0aelqQqm54FfrF3TCKoaU3F5yuGA5Mkt+Bhz0a X-Received: by 2002:a63:f444:: with SMTP id p4mr59338552pgk.32.1556549183696; Mon, 29 Apr 2019 07:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556549183; cv=none; d=google.com; s=arc-20160816; b=vbIxdsIaiHQs2qegGiDZZCrWSTeezO8POtYAjsFGLV1Z2YPEKsct1beiQMQQgerGV2 Oedz6A6izD9nude+wJeu85hHGvRrs+mQ29ORY90KuNa3qN8mIn2dnee2JBkd0oV/zMEm yRHTX65HnKfCl9TGGydA+AJ3xu/7trZPZ8faPAl9b0oVNNznfdTyqvm4luhtbbz6xa2y 79DX4HmlQFp0uTvlcCGRtAQgiBP0Qyu9OiJEDk8DiIfnePAjXfTZYszE5PU4wQkpkZq1 2vcedDtUiJEBxMnNFKkt/jN1uPA22OMvKe9e+Zz5d/OmHeYTJ77TdyWSSRlixO2GGrgj z+dg== 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=1XMGdoAytJZYLIEjS5YuwMYRgJWQI6ikHtyLu0eBdrg=; b=zL0+KS24i+3AfPxtOqDexlOZk0kMpd0225PPE3e+TI5r0HKE4tA1QxD5TFXqlijURW x2su3XR7VQSZjgNFNlZVxYeOcVlYxckuN8QEl/+9SFZUzZbDd94Eiej5wbI1jtcH/JZU q7s25SREsM3SSOS8/Xgu5Q2EMsdGdQEcbeB4GkqiqtKNT5Bnys0xVGInBx4yLw5HCwJQ bj9lV3Yz9TzaS3Xwq63fVDs57JNiw5I7x/a6Cbnl9Ru7DM+761vMkZ3gE98FrPoScqfV LrjZ20eoaHy59RUoSxu9rZ5qd4t5YkN3KWg1r99WVHf6c6fN8cnRVvmKHFZhaQhOTWf5 15Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=ebLoXPCv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r13si33583024pgj.413.2019.04.29.07.46.07; Mon, 29 Apr 2019 07:46:23 -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; dkim=pass header.i=@ffwll.ch header.s=google header.b=ebLoXPCv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728521AbfD2Oo7 (ORCPT + 99 others); Mon, 29 Apr 2019 10:44:59 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:50274 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728495AbfD2Oox (ORCPT ); Mon, 29 Apr 2019 10:44:53 -0400 Received: by mail-it1-f193.google.com with SMTP id q14so16596556itk.0 for ; Mon, 29 Apr 2019 07:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1XMGdoAytJZYLIEjS5YuwMYRgJWQI6ikHtyLu0eBdrg=; b=ebLoXPCvsVtjVKlYnuDaoE/vTcZEjFgtCNZy/GJ9RM7CqdGpbdNpyJ/MGlHiTn8mwU cNsqm35xFbA0XbkywCTWXXW+87WMdZDdAr99EbknWBCCfipowQkXrsgbO/O6/TKeHRKm YCZ4hxNICRW4XSQ9d5gCdAf72YEQsAM9IZEJc= 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=1XMGdoAytJZYLIEjS5YuwMYRgJWQI6ikHtyLu0eBdrg=; b=gJL7rGyiBHJlAtMbB1FrirEg6fO31kVNXs81t0OcqO4mpxYB5nCJ7KbIXLcBYC02sM W/vBEm6YgLlPqWsWIiZlXc/Y/mPhk1EiTZLPrRe1mtFCG0WFmSIjmjvYKMRoIxskNpNT p8Fko5e60jf3aV3jY+CyC23VMDAdBycWsCsd1xto2c4e5JND/SJof8kfa8n9ibvUiX6u FhBvy4xZ0MCN+OFXiNypSzMXwLRq5DqCzatZqFctMyF/73qAvf+J3LLDZ6aAFfDsE63G oR6Ku98yfz4SP5a9N40PU5ajP9ATsjx2Dm7uyHT9itQYZ6qj3GeObsDv3e3umN3hnpBG Urow== X-Gm-Message-State: APjAAAVZqozJ+/pznzRaETcOW/PDwJgGw94fnWlVKTSnOv0bXNCRNhe+ VjBtHhZuiuATJA4oq8Fd/4UCS1oYz7Y5wXckuY+5hQ== X-Received: by 2002:a24:6f48:: with SMTP id x69mr5454748itb.117.1556549092746; Mon, 29 Apr 2019 07:44:52 -0700 (PDT) MIME-Version: 1.0 References: <20190426053324.26443-1-kraxel@redhat.com> <20190429075413.smcocftjd2viznhv@sirius.home.kraxel.org> <20190429143757.yljjfsgobhi23xnb@sirius.home.kraxel.org> In-Reply-To: <20190429143757.yljjfsgobhi23xnb@sirius.home.kraxel.org> From: Daniel Vetter Date: Mon, 29 Apr 2019 16:44:40 +0200 Message-ID: Subject: Re: [Spice-devel] [PATCH] Revert "drm/qxl: drop prime import/export callbacks" To: Gerd Hoffmann Cc: David Airlie , open list , dri-devel , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , David Airlie , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" 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 Mon, Apr 29, 2019 at 4:38 PM Gerd Hoffmann wrote: > > Hi, > > > > More useful would be some way to signal this self-reimport capability > > > to userspace somehow. See DRM_PRIME_CAP_LOCAL patch. > > > > Userspace is supposed to test whether import/export works for a > > specific combo, not blindly assume it does and then keel over. I think > > we need to fix that, not add more flags - there's lots of reasons why > > a given pair of devices can't share buffers (e.g. all the contiguous > > allocations stuff on socs). > > Ok. Lets scratch the DRM_PRIME_CAP_LOCAL idea then and blame userspace > instead. > > > > Right now I have the choice to set DRM_PRIME_CAP_{IMPORT,EXPORT}, in > > > which case some userspace assumes it can do cross-driver export/import > > > and trips over that not working. Or I do not set > > > DRM_PRIME_CAP_{IMPORT,EXPORT}, which breaks DRI3 ... > > > > Yeah that's not an option. > > Good. Can I get an ack for this patch then, as it unbreaks DRI3 with qxl? Oh sure, acked-by: me. Sorry forgot to supply that ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch