From patchwork Fri Feb 17 22:33:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Harrison X-Patchwork-Id: 13145298 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 6DF4AC636D7 for ; Fri, 17 Feb 2023 22:34:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF69E10E475; Fri, 17 Feb 2023 22:33:51 +0000 (UTC) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0C69B10E1F8; Fri, 17 Feb 2023 22:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676673230; x=1708209230; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=K7MPuktbkzDtxrr6A8JAj7dnpbLaS56EUg+4GKhQ6rs=; b=YFp9Erdx6mXA+v/R5SpGiI1qmD/t4twi2B46Y2bDGVfHByTyscJNnIpD hmMJzAqA8OEaGY6McElfysPpynNXMeD0Q3lKmD9BDGfvkYwzlvphwqNUQ CSMZTgf0+5VJEutzYDbplyNc+3LZIuqQMCekhGikM+mZVfOvcf4VZ56ps 58vfy2fFRCfwuJ3gioeu9t7ErGA942AoaUEHT24bs2xRxcEqer8Ks63J9 3w8l2DqZp44gF7PnCiRne6b+I46aB6r82pyNMCpG56O37rof4wcCAxBak VOvB5a2zmVkODVX27pTDlML1vv+OzoKXkxODjQ7WWdqjUZS3L62Dssxdd w==; X-IronPort-AV: E=McAfee;i="6500,9779,10624"; a="320211570" X-IronPort-AV: E=Sophos;i="5.97,306,1669104000"; d="scan'208";a="320211570" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2023 14:33:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10624"; a="664021156" X-IronPort-AV: E=Sophos;i="5.97,306,1669104000"; d="scan'208";a="664021156" Received: from relo-linux-5.jf.intel.com ([10.165.21.152]) by orsmga007.jf.intel.com with ESMTP; 17 Feb 2023 14:33:49 -0800 From: John.C.Harrison@Intel.com To: Intel-GFX@Lists.FreeDesktop.Org Subject: [PATCH v2 0/2] Clean up some GuC related failure paths Date: Fri, 17 Feb 2023 14:33:06 -0800 Message-Id: <20230217223308.3449737-1-John.C.Harrison@Intel.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Organization: Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ 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: John Harrison , DRI-Devel@Lists.FreeDesktop.Org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: John Harrison Improve failure code handling during GuC intialisation. v2: Fix function naming and improve on/off balancing (review feedback from Daniele) Signed-off-by: John Harrison John Harrison (2): drm/i915/guc: Improve clean up of busyness stats worker drm/i915/guc: Fix missing return code checks in submission init .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 133 +++++++++++++----- .../gpu/drm/i915/gt/uc/intel_guc_submission.h | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 7 +- 3 files changed, 102 insertions(+), 40 deletions(-)