Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D20CFCD6112 for ; Mon, 9 Oct 2023 17:16:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9FEFD10E290; Mon, 9 Oct 2023 17:16:16 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 40A7A10E28B for ; Mon, 9 Oct 2023 17:16:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696871773; x=1728407773; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=8gcZztECgiVXuYV6rW2/Km88lZsgEqpJeNOkaVZAgaA=; b=f/AWx8XMSUuCOPorVn7bTDO2F2pB0LRW2VBs1XsLrWMRslV1LnZrtmMT a3ZQPPGPJLs9hxxSbmuwYpJu+z4ph+fov50tarDbXzVRYALtn5ZML2C0w vab25vJ9z93MmEBh8lvpILDtvncxXcOvFdFTG4FHGTPksQUFuZCphANIT s0h/mLffO9LLxdDX4Vtq0k1RnMtL53gjF85DZnft3O+5NRWwyRlu5vg6g wKPCNvDchDGIfNvZpfg7JqywArnzyZC6Mp9Dw5n3n69yneP9FElN7TynW XeI2XIRWPXzQKgd9jUP5VysKoc3yz3I5SW/cd01HARKkqgyN+wGblFwwK A==; X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="450698015" X-IronPort-AV: E=Sophos;i="6.03,210,1694761200"; d="scan'208";a="450698015" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2023 10:16:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="876872830" X-IronPort-AV: E=Sophos;i="6.03,210,1694761200"; d="scan'208";a="876872830" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga004.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 09 Oct 2023 10:16:12 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 9 Oct 2023 10:16:12 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Mon, 9 Oct 2023 10:16:12 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Mon, 9 Oct 2023 10:16:12 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IruilShxhMzddF/TrjjEAe4Wbq0o9kwCHv7S1k8e6dE1uazx4V6ip6MX5asfIKxKx/EttFU+Qt1FNIS2lH3k7B4respNsiH5De3PG/+q5JcoTR2RdGSuxf7UVI8yPRyqI0iMGrx0bWR5q87ua8JpjOKBVQ1gUuXWqb9S07q29EfOn4ifH6ZYA4HPkuk0aY7vrOwyIfGH1BzBchv4dXDl7RkDZEK34Xmt7MRbGwW78jfdJ/Za03A/kivbXd6iwH2tX4a5rcbeO8HTceKSOq51XfuNFY0AUodfcRQxlk+26iamWtJ8GFVpdTa2pORq8OMllJNaKvpZFe3j/0W6WYC/Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ti2k3/85uWhg3BEwhSFitsbhpUNDRjB6ym9qIL3vlm4=; b=mKEHEfp5o9ZwvaUXE9mdllgX6NSLUF7qdMcVafTKoSIUtL0zl9pyOoY/pxgCDCkX9muHyLBMIB5cgy1He78hYD7ib2bgWj9yuxcFj3oY825qmY7n8ZaE1cBZ2drgerePMTxIi/U3qdL5u0yKiLgj8ph+2FtiNYuqvhqWrJpJUE1vZKzSGb3thOBwaa921unqGrHp6+ku8s20yWgN+AwItx00+QaUHQlBqbYJwJ8yu1LYY2pLaOc2IJx0/EEqfK0aXr56c6OSCI7VToCOprH3fsxWfDZPlfy45JHfSVteaHHNnR2Ohl0XqCXrytY+1uiyRvYSEWObC3sLg1AEKGvyaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from IA0PR11MB7838.namprd11.prod.outlook.com (2603:10b6:208:402::12) by PH7PR11MB6547.namprd11.prod.outlook.com (2603:10b6:510:211::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.37; Mon, 9 Oct 2023 17:16:10 +0000 Received: from IA0PR11MB7838.namprd11.prod.outlook.com ([fe80::a35e:550e:d46c:c777]) by IA0PR11MB7838.namprd11.prod.outlook.com ([fe80::a35e:550e:d46c:c777%7]) with mapi id 15.20.6863.032; Mon, 9 Oct 2023 17:16:10 +0000 Date: Mon, 9 Oct 2023 19:16:04 +0200 From: Francois Dugast To: Umesh Nerlige Ramappa Message-ID: References: <20230926125540.7-1-francois.dugast@intel.com> <20230926125540.7-27-francois.dugast@intel.com> <4bb2a25702832a21263c3e5780644b979697998b.camel@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Organization: Intel Corporation X-ClientProxiedBy: FR4P281CA0104.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:cb::7) To IA0PR11MB7838.namprd11.prod.outlook.com (2603:10b6:208:402::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA0PR11MB7838:EE_|PH7PR11MB6547:EE_ X-MS-Office365-Filtering-Correlation-Id: 8c5307f9-3647-429b-f21d-08dbc8eb6e61 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fgXMwpZqLUgo0EDGPExBJDaiJpYXQ/L5p5wx10EzhNKP+CMYD5+FW19LZj07wHJnwVa9Bf7V08uCDE5yWZ8J7HFOdxiDPLlCccnywMugruyH8hXNC6xa8pZ5zmcxb7vGVXxsA/68Qg8QwhGW8MT8EiN2vmGVmyOYmtxYTe7wiH1xOZRkHNlezblHFKkI/U6K9Wd/oHDhx4lAJtB4yhqI5r5dT0n4KsaBVs3aPfkEsVpMjajMoQs6DUFSld5dVAlzphRGV9Nu8lK87vs7mj5U3f8J2qY9ietDxomECijKNFZNnpbCoBvN3XnaeYYQwhP2EepS1K7A++3pXHN6dGLaH4RxmYSeby8DoD8KDWOfpwVIOvUDTOcFc3HXn/ftiXVnt0zcNrDSNotNSgWYZaQZZ1s8g1cUFJINiD61PdWZDjCcotDK0pSr7DX8a/S0+Q0TmYOTAXor+OrhuREImV4mNeUCVaFONvWA8/DLY+CdzgSCENZ3EC7aUTmtNLwIJyU24Yxy7J9i8GPrDsiK3o2IB8FLAjbVkmPF8uPxL2ajErLcrPOPtHmK4L1IBqZybseEbBfVXOBPmi6zcdBrCTR8UQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA0PR11MB7838.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(396003)(346002)(39860400002)(366004)(376002)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(83380400001)(6512007)(9686003)(107886003)(6666004)(36916002)(82960400001)(26005)(6506007)(6486002)(966005)(38100700002)(41300700001)(66476007)(478600001)(66556008)(316002)(66946007)(6636002)(54906003)(5660300002)(6862004)(8936002)(44832011)(86362001)(4326008)(36756003)(8676002)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?gwh9Xg37sBfZNL1WIjMP2saLgY1SXz+lCMI1rtz6s4x5PZ2Kbwc8AXnUZC8v?= =?us-ascii?Q?dOAw16+ZFih57zPwEkLlHNUUgAarSL1nAigbJOI3VuKFbNbCDV+dmWuaEFCD?= =?us-ascii?Q?ZJKDKfzFSLzWBpv0xokqdIig0+rstyEEaYWoNcWWuSNnbVDppo2KF2U5rlUV?= =?us-ascii?Q?axG7kQtC3Pqen6A1pDhxAbstuKfijjGTrhQszTsuh8Wib82lrRN/8/cgMsAS?= =?us-ascii?Q?4ueCGP65kyl56XgLOLLVFZSTuzkmgsm0JdO1I5thoYs6Po3YuW+K0seeB2Wx?= =?us-ascii?Q?kPGatZ2jZpegkpdpZM2H5REEMtNWzwKGtlDRz8QsQP3WSWF68zmefE6EvIow?= =?us-ascii?Q?H4fDbj9hQsxIj2dtXuVXH8TM5yUrq0TCjyJFngy3K/BFE++pjDfsiqJCSoNj?= =?us-ascii?Q?u9/iRFDoeBYYGoY/cuEOQsJxaXs1G/CQxdld4gbv9HYdZRGOvfy27LpLEd5Z?= =?us-ascii?Q?B+jwvWoxeMRg9jsrxqxSKlODDk86Hx0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iRLUSIh6Vw82Hc5ho9WHy4NcLrdiQGRNYySV8QjRc9N?= =?us-ascii?Q?hAwpLtHKYlmumyZZjxHtOhVjhp+IAAkfLijjwEkZpXFGito5+EpVpdtwaGsk?= =?us-ascii?Q?F/g7wCci82n3zkqxDuTC2M8be/OHrGHPhkd38UUtOhOepSMLo/BPz7iGyjlQ?= =?us-ascii?Q?Kln2bTMiGiOWQLkYFp7hjdTdDMwHEmOpi226HjisAJCnlFe2uiYfFJqF+UjR?= =?us-ascii?Q?Dw=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 8c5307f9-3647-429b-f21d-08dbc8eb6e61 X-MS-Exchange-CrossTenant-AuthSource: IA0PR11MB7838.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2023 17:16:09.9937 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /Ghn64ztwW2EvFii4PSxVdLSXtY/7V5Pai4kMh1K10cljmHNalEfOTJT5WbrMUzdtehwOsqKSZ5ElMIjTvdF0j4kcI2k6l/j/vzU4iup+ds= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6547 X-OriginatorOrg: intel.com Subject: Re: [Intel-xe] [PATCH v3 26/30] drm/xe/uapi: Add pad to drm_xe_engine_class_instance X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "intel-xe@lists.freedesktop.org" , "Vivi, Rodrigo" Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" On Mon, Oct 09, 2023 at 10:05:33AM -0700, Umesh Nerlige Ramappa wrote: > On Wed, Oct 04, 2023 at 07:35:06PM -0700, Umesh Nerlige Ramappa wrote: > > On Wed, Oct 04, 2023 at 12:55:19PM +0200, Francois Dugast wrote: > > > On Tue, Oct 03, 2023 at 11:15:00AM -0700, Umesh Nerlige Ramappa wrote: > > > > On Fri, Sep 29, 2023 at 09:45:35AM -0700, Souza, Jose wrote: > > > > > On Fri, 2023-09-29 at 09:00 -0700, Umesh Nerlige Ramappa wrote: > > > > > > On Fri, Sep 29, 2023 at 11:06:53AM +0200, Francois Dugast wrote: > > > > > > > Hi Umesh, > > > > > > > > > > > > > > On Thu, Sep 28, 2023 at 05:36:39PM -0700, Umesh Nerlige Ramappa wrote: > > > > > > > > On Tue, Sep 26, 2023 at 12:55:36PM +0000, Francois Dugast wrote: > > > > > > > > > Add pad to reserve space for future uses such as special configurations > > > > > > > > > for media. > > > > > > > > > > > > > > > > > > Signed-off-by: Francois Dugast > > > > > > > > > > > > > > > > I saw a comment in v4 that you dropped the patches that are not reviewed, so > > > > > > > > this is: > > > > > > > > > > > > > > > > Reviewed-by: Umesh Nerlige Ramappa > > > > > > > > > > > > > > > > Hoping this will be part of the final series that you merge since the > > > > > > > > ENGINE_CYCLES query is using this structure and relies on this padding. > > > > > > > > > > > > > > Actually using your original submission [1] this patch should not longer > > > > > > > be necessary, right? It includes: > > > > > > > > > > > > > > __u16 rsvd; > > > > > > > > > > > > > > [1] https://lore.kernel.org/intel-xe/20230814223734.375449-5-umesh.nerlige.ramappa@intel.com/ > > > > > > > > > > > > Hmmm, I failed to notice that earlier. My bad. v4 looks good, you can > > > > > > ignore this. > > > > > > > > > > It is named as rsvd but it should be a pad. > > > > > > > > > > We can't leave as reserved to be future used to return media engine capabilities because drm_xe_engine_class_instance is also used as input to other > > > > > uAPIs and that is useless information after initialization that UMDs should not need to carry around. > > > > > > > > > > Instead DRM_XE_DEVICE_QUERY_ENGINES should return something like > > > > > > > > > > struct drm_xe_engine_info { > > > > > struct drm_xe_engine_class_instance instance; > > > > > __u32 rsvd;/* future could be __u16 capabilities; __u16 rsvd; */ > > > > > }; > > > > > > > > > > This can be fixed in uAPI take 2. > > > > > > > > Hi Francois, > > > > > > > > As per Jose's inputs, I posted a new version of my series here - > > > > https://patchwork.freedesktop.org/patch/560614/?series=124565&rev=1. > > > > > > > > Can you please pick up patch 3/3 from here. Note that just adding the pad > > > > does not resolve the issue I was mentioning in my original series. We also > > > > need to explicitly initialize the pad to 0 in this case. I have included > > > > that change as well in the above patch. > > > > > > > > Thanks, > > > > Umesh > > > > > > Hi Umesh, > > > > > > Thanks for the update. An earlier version was already included in take 1 > > > of the uAPI changes [1], > > > > Not sure if the below link in [1] is what you wanted to share. It points > > to the series I posted. I am guessing you were intending to point to a > > take 1 series. > > fixup here - https://patchwork.freedesktop.org/series/124690/ > > Thanks, > Umesh Thanks, I will be included in uAPI take 2. Francois > > > > Thanks, > > Umesh > > > > > against which UMDs are currently aligning, so it > > > would be best to leave take 1 as it is and include your fix as a fixup in > > > take 2. Could you please send a fixup instead? > > > > > > [1] https://patchwork.freedesktop.org/patch/560614/?series=124565&rev=1 > > > > > > Francois > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > Umesh > > > > > > > > > > > > > > Francois > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > Umesh > > > > > > > > > --- > > > > > > > > > include/uapi/drm/xe_drm.h | 2 ++ > > > > > > > > > 1 file changed, 2 insertions(+) > > > > > > > > > > > > > > > > > > diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h > > > > > > > > > index 79e47708d526..84091860c7d2 100644 > > > > > > > > > --- a/include/uapi/drm/xe_drm.h > > > > > > > > > +++ b/include/uapi/drm/xe_drm.h > > > > > > > > > @@ -143,6 +143,8 @@ struct drm_xe_engine_class_instance { > > > > > > > > > > > > > > > > > > __u16 engine_instance; > > > > > > > > > __u16 gt_id; > > > > > > > > > + /** @pad: MBZ */ > > > > > > > > > + __u32 pad; > > > > > > > > > }; > > > > > > > > > > > > > > > > > > /** > > > > > > > > > -- > > > > > > > > > 2.34.1 > > > > > > > > > > > > > >