From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D17FC433B4 for ; Thu, 29 Apr 2021 19:07:35 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 568D961441 for ; Thu, 29 Apr 2021 19:07:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 568D961441 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1BA2B6F48E; Thu, 29 Apr 2021 19:07:34 +0000 (UTC) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6C7566F472 for ; Thu, 29 Apr 2021 19:07:32 +0000 (UTC) Received: by mail-wm1-x32f.google.com with SMTP id n127so24679173wmb.5 for ; Thu, 29 Apr 2021 12:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/xgXWvdhHR12LQ7twoZwUWQ3wyYVnWIVUix5A9UrA9A=; b=a++/8glf9ooXqXDkrpe7AY/bGJ75vph3pt2Ws6X10GvmQmNbpVIEe93PdA/HahK7i1 Tt2MWx6/wZmcLBU+nHTyXN5Khvf2u5lRnYeFmaJYLW8vLGJnBGpFmtJHSjR2iaYKxVVV l6v9kkZKv2SARCeH7h7GaQQgjxyeBvTRpfZ9E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/xgXWvdhHR12LQ7twoZwUWQ3wyYVnWIVUix5A9UrA9A=; b=rHYcJPlxX+419TztA/J350ygW4C+4elXv1Qrn2wP0T/2qfsGDNDJjJJ3L94v4HatfU jov92ys3IP25nFe3scTOtm+wu7QTQVA1DVERncJ46aBo5pS3dAQP9G5Y5ukV8O0wkzVH 93yEX0zkdsukrxG6OR4U7j8GZBgJmElJBLniOQ5/CgR7c3PNMhD9oCFpr7j+0yGQef+o KmatS8StBEEwwQx9TDT1seEl98jmSxUiNwXgcyQR2WdcygGJK1Dx15oSqQw0/AzcI+ID /JtnWjS50fZdK2Y9W8N55DW0QzGXE77KybTlnPzFt+vV6Hpl1CQuoVuinpbKMwkFa6vN autw== X-Gm-Message-State: AOAM532WcZhAwJhNGGl968bWEnDeM0epkhdljIxXGF5wQP6/CG9IXyxP irzWhrJXM7APkbzBVPpRPZ5eTQ== X-Google-Smtp-Source: ABdhPJzdjHHMiOPvrtpOnMd8JDlZ56CicQO/sLBojCn8V6BlhSj3i0VW2t95SmgZN00AxsyJDGfImA== X-Received: by 2002:a1c:7c0e:: with SMTP id x14mr1829258wmc.31.1619723251111; Thu, 29 Apr 2021 12:07:31 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id l12sm6562244wrq.36.2021.04.29.12.07.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 12:07:30 -0700 (PDT) Date: Thu, 29 Apr 2021 21:07:28 +0200 From: Daniel Vetter To: Jason Ekstrand Subject: Re: [Intel-gfx] [PATCH 16/21] drm/i915/gem: Delay context creation Message-ID: References: <20210423223131.879208-1-jason@jlekstrand.net> <20210423223131.879208-17-jason@jlekstrand.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.10.32scarlett+ X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Intel GFX , Maling list - DRI developers Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, Apr 29, 2021 at 02:01:16PM -0500, Jason Ekstrand wrote: > On Thu, Apr 29, 2021 at 1:56 PM Daniel Vetter wrote: > > On Thu, Apr 29, 2021 at 01:16:04PM -0500, Jason Ekstrand wrote: > > > On Thu, Apr 29, 2021 at 10:51 AM Daniel Vetter wrote: > > > > > + ret = set_proto_ctx_param(file_priv, pc, args); > > > > > > > > I think we should have a FIXME here of not allowing this on some future > > > > platforms because just use CTX_CREATE_EXT. > > > > > > Done. > > > > > > > > + if (ret == -ENOTSUPP) { > > > > > + /* Some params, specifically SSEU, can only be set on fully > > > > > > > > I think this needs a FIXME: that this only holds during the conversion? > > > > Otherwise we kinda have a bit a problem me thinks ... > > > > > > I'm not sure what you mean by that. > > > > Well I'm at least assuming that we wont have this case anymore, i.e. > > there's only two kinds of parameters: > > - those which are valid only on proto context > > - those which are valid on both (like priority) > > > > This SSEU thing looks like a 3rd parameter, which is only valid on > > finalized context. That feels all kinds of wrong. Will it stay? If yes > > *ugh* and why? > > Because I was being lazy. The SSEU stuff is a fairly complex param to > parse and it's always set live. I can factor out the SSEU parsing > code if you want and it shouldn't be too bad in the end. Yeah I think the special case here is a bit too jarring. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel