Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1566791lqg; Sun, 3 Mar 2024 17:08:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV1GqKsRwhKnMSEIBzB8aeA0yunC0jhm4Xf+hkh+ScHUl6abzK0V7ssbNjE9JYJ5krTmDLTtZal8EZjBEsVKOSxeDWxilh10Zh+xm5fhQ== X-Google-Smtp-Source: AGHT+IGa/A9Rxw8/IH1jSgH22DWJ8QNztb+HbTKeHtLSuaHX8v6M/O6B2LBZ2Ey8Td7ahbDVYpH5 X-Received: by 2002:a17:903:1104:b0:1db:a55b:617e with SMTP id n4-20020a170903110400b001dba55b617emr9982282plh.39.1709514510622; Sun, 03 Mar 2024 17:08:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709514510; cv=pass; d=google.com; s=arc-20160816; b=FbQTOCa27MudLEfcEor0W+OsdhB+uB4d1OW8vUrN6Dyk9pJqLI8CV1Cb+5TjqiWJUU msunvGBw4ADSjzn0tXI0lPBLFhMrjFHms4mQdQcxLCN5ylvx7KaQEzbStraefsRyv5L1 4X91sbPsjwZHmDT18GAkPl9KVGi7auo5BYHBzcrDBpXJn0tCvRdc/3INGUd5WMh+/cO/ Xl7GD81A/mH9FAegncd05HR/1+a4CgMX7vncXN8OpiAdG/dBCfAwhMssATAUr/DIpvCT IXL7IxBcqqSnNfrT1z8+4P7lcOTLKliaV7ytBnw81YKifLIjAn3Pas0f4kvoDE/shN8w OVNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=wCBQxlkia3rFEEfyeOb8tCdt6hGJM2RzeP67NHnaLkk=; fh=Cn1v4486keuTJtxkoGqBJvVP3/Ht95FGiT8/5wTX35g=; b=Z4RSAO9GM34k7AScy6GQVBnkBhBcUAJWIq7PoO4tXiuBJecxo68mgDMHHWfnuwxiyt 14Kb2B3q2sWdPo3BXHnv3uvCg14YT8RfsTEZdMXqicHKpiIoik1t3LiLupY9/9F2++l5 +NKOIGAa/53hGciu962NxkYkb2rnZk+drBcpRNLYAuswVGYrjd5Op5W3b0QZsAZBIFE8 1a+2YkzmBl008/ILceia/CWykH/IMqYojU+Lknxg53VoZ/1yZh06mX0obDyT68Hmk3/2 6YOgaP3l07QeLpq7IILHkDgklj1NZWmBQSCoIArwejfJRtZOS2u8Z2PS/IyYQey3+Ea+ UM3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=TbA6wqbw; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-89957-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89957-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b16-20020a170902d51000b001dc78c26409si7398156plg.552.2024.03.03.17.08.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 17:08:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89957-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=TbA6wqbw; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-89957-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89957-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 20FA7B20B7B for ; Mon, 4 Mar 2024 01:08:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ECAF137E; Mon, 4 Mar 2024 01:08:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="TbA6wqbw" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4AE6C621; Mon, 4 Mar 2024 01:08:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709514499; cv=none; b=IezZA1dI/+dFCVcfnU/At7uXYA8zPcfpsV9GfxFgWBhljA0RSY8DibUBnX+7zd15tjJc9LGqVeoshDLnc5LGMHEnR0V2RiEfKfxNkv0XtcD20Korvky//w/TSz0T3JqNyhhoKGzxN7qEeEr6AubR5oIKElEjY/jTsgum62Fz4y8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709514499; c=relaxed/simple; bh=WKrlmbcoduaqZ+5CfmcQA58hirx6R6yKC0CxgaYm6eA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=pwpT2U5TmAHB9B548FMmYdqFN1f3erfNSQW/zbSMfQfbcaMlocjR8DmPVEk7NWRmpaPOOfqJVVo6hifC/KRvPC45bci0RAr/d1tD58PyFHOsPszAyqxMjHCtIL7caRDTsR0QXX6n7dTtBQ3FjQG+c5dDeYLg4WMi5jRQIqMREK0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=TbA6wqbw; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1709514492; bh=wCBQxlkia3rFEEfyeOb8tCdt6hGJM2RzeP67NHnaLkk=; h=Date:From:To:Cc:Subject:From; b=TbA6wqbwyeQoD6PjxkVhCwoCfBHRD91oPd6a5b2KmRmoydJNntW1fF0UMK/zwHi0z 7o8l3mfqqAZDNoEHOn4UGF9WXxRUx4EcKw8sVxly3NREJBh988q3Ijha0KBN3vQOcf XpUEUKEzXjURtt3nPh81DHS8z+ZEy2RaqYr0WbOBZA5nIFbUHv7NdPhD1pWrb0VWEI scUSC+CZYGEc5haWNub1bII/3I5w1Bk6Jsa61y6hh38i3JDRbVjW5uvTsblJuKA7VW VKYEILZyI7ZSc4SN8QcjpUtDjy01UY/dRkGyZmXH2XOo9RxCEF0+7ZpNWfqUwcBcg5 g/c4lM/In2d4Q== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Tp0tg3F0Bz4wcJ; Mon, 4 Mar 2024 12:08:11 +1100 (AEDT) Date: Mon, 4 Mar 2024 12:08:10 +1100 From: Stephen Rothwell To: Dave Airlie , DRI Cc: Brian Welty , Francois Dugast , Linux Kernel Mailing List , Linux Next Mailing List , Matthew Brost , Rodrigo Vivi , Thomas =?UTF-8?B?SGVsbHN0csO2bQ==?= Subject: linux-next: manual merge of the drm tree with Linus' tree Message-ID: <20240304120810.68681bd8@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/gF.Q=HxG54DohBDeXu9+n5L"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/gF.Q=HxG54DohBDeXu9+n5L Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, FIXME: Add owner of second tree to To: Add author(s)/SOB of conflicting commits. Today's linux-next merge of the drm tree got conflicts in: drivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_exec_queue_types.h between commit: eaa367a0317e ("drm/xe/uapi: Remove unused flags") from Linus' tree and commits: 25ce7c5063b3 ("drm/xe: Finish refactoring of exec_queue_create") f1a9abc0cf31 ("drm/xe/uapi: Remove support for persistent exec_queues") from the drm tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc drivers/gpu/drm/xe/xe_exec_queue.c index 49223026c89f,4bb8f897bf15..000000000000 --- a/drivers/gpu/drm/xe/xe_exec_queue.c +++ b/drivers/gpu/drm/xe/xe_exec_queue.c @@@ -306,9 -347,98 +347,13 @@@ static int exec_queue_set_timeslice(str !xe_hw_engine_timeout_in_range(value, min, max)) return -EINVAL; =20 - return q->ops->set_timeslice(q, value); + if (!create) + return q->ops->set_timeslice(q, value); +=20 + q->sched_props.timeslice_us =3D value; + return 0; } =20 -static int exec_queue_set_preemption_timeout(struct xe_device *xe, - struct xe_exec_queue *q, u64 value, - bool create) -{ - u32 min =3D 0, max =3D 0; - - xe_exec_queue_get_prop_minmax(q->hwe->eclass, - XE_EXEC_QUEUE_PREEMPT_TIMEOUT, &min, &max); - - if (xe_exec_queue_enforce_schedule_limit() && - !xe_hw_engine_timeout_in_range(value, min, max)) - return -EINVAL; - - if (!create) - return q->ops->set_preempt_timeout(q, value); - - q->sched_props.preempt_timeout_us =3D value; - return 0; -} - -static int exec_queue_set_job_timeout(struct xe_device *xe, struct xe_exe= c_queue *q, - u64 value, bool create) -{ - u32 min =3D 0, max =3D 0; - - if (XE_IOCTL_DBG(xe, !create)) - return -EINVAL; - - xe_exec_queue_get_prop_minmax(q->hwe->eclass, - XE_EXEC_QUEUE_JOB_TIMEOUT, &min, &max); - - if (xe_exec_queue_enforce_schedule_limit() && - !xe_hw_engine_timeout_in_range(value, min, max)) - return -EINVAL; - - q->sched_props.job_timeout_ms =3D value; - - return 0; -} - -static int exec_queue_set_acc_trigger(struct xe_device *xe, struct xe_exe= c_queue *q, - u64 value, bool create) -{ - if (XE_IOCTL_DBG(xe, !create)) - return -EINVAL; - - if (XE_IOCTL_DBG(xe, !xe->info.has_usm)) - return -EINVAL; - - q->usm.acc_trigger =3D value; - - return 0; -} - -static int exec_queue_set_acc_notify(struct xe_device *xe, struct xe_exec= _queue *q, - u64 value, bool create) -{ - if (XE_IOCTL_DBG(xe, !create)) - return -EINVAL; - - if (XE_IOCTL_DBG(xe, !xe->info.has_usm)) - return -EINVAL; - - q->usm.acc_notify =3D value; - - return 0; -} - -static int exec_queue_set_acc_granularity(struct xe_device *xe, struct xe= _exec_queue *q, - u64 value, bool create) -{ - if (XE_IOCTL_DBG(xe, !create)) - return -EINVAL; - - if (XE_IOCTL_DBG(xe, !xe->info.has_usm)) - return -EINVAL; - - if (value > DRM_XE_ACC_GRANULARITY_64M) - return -EINVAL; - - q->usm.acc_granularity =3D value; - - return 0; -} - typedef int (*xe_exec_queue_set_property_fn)(struct xe_device *xe, struct xe_exec_queue *q, u64 value, bool create); diff --cc drivers/gpu/drm/xe/xe_exec_queue_types.h index 36f4901d8d7e,c40240e88068..000000000000 --- a/drivers/gpu/drm/xe/xe_exec_queue_types.h +++ b/drivers/gpu/drm/xe/xe_exec_queue_types.h --Sig_/gF.Q=HxG54DohBDeXu9+n5L Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmXlHvoACgkQAVBC80lX 0GziwQgAiVo0hRJsVVaOFngVkwlm+pPdYiF1tKPEd4A/ZiynTrZ95WZ5sBO8QV22 g2/O3Lbyt3C9sTlMRa+tbEJRo+r/MftNqAPopDTIUjFW9J+930ESE/72yg1rvOUZ mBU6fu+1yxBF9AD2SVS4C28q0adMrsqUIsyDRlf9rTBYRw1nSVULy9TABDPmCY5n F9b9fAw6iEEbY9INY0RiTrosAIsSxgHMvOxqHkVcS+ttUan9CgJnFBGDoBeGsDeJ UjKXJiYTPWyJ1WjlfIpp+PoBBd9M4G3NLsKCnKaLv2KA08tujUgNNEQPE+rA82kK J5H9kDnOkMtFPccr4t3qs7KP2kJ0+Q== =UoO9 -----END PGP SIGNATURE----- --Sig_/gF.Q=HxG54DohBDeXu9+n5L--