From patchwork Mon Feb 7 16:13:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vivekanandan, Balasubramani" X-Patchwork-Id: 12737597 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 3CCD6C433F5 for ; Mon, 7 Feb 2022 16:12:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D1FB10E276; Mon, 7 Feb 2022 16:12:11 +0000 (UTC) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id B13E310E276; Mon, 7 Feb 2022 16:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644250330; x=1675786330; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=vwbxRDaNfC5XEnUvJvmg69Pdo7Bh1AhztIDjBXWYzHs=; b=nc1fzGgf9BmhDX3DQmF2FH2aFXYxQ1jNH72RTsfFcWwGk1j9x8ideStA yixzMdPnOun1ly8r/89pr4ej5JUbYbj4Capuo7smCgwbUUnRA8Hdoe4Iu c86t8PW5tiTx6xdo0KFXdFKiC5GYwy5dvUxOpUE1aHWpaj5Xa9ljpFaPo SWZCNoN0POYT9tN+giDxMs33ejR6inpiVZTf8rCRQYZZlwvbTuSaxhJtc tZOmvMLW4zQ874wzpy1eS750x1IAkBoaH8LgexW9ZtUd8TWVl5T0R6FUt WmRedjeTYLhbjeRNy+9TVs+lkAY/MYoz5I/OOFOje1xixHolwXz2ewI2e g==; X-IronPort-AV: E=McAfee;i="6200,9189,10250"; a="312044033" X-IronPort-AV: E=Sophos;i="5.88,350,1635231600"; d="scan'208";a="312044033" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 08:12:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,350,1635231600"; d="scan'208";a="584876668" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga008.fm.intel.com with ESMTP; 07 Feb 2022 08:12:09 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 7 Feb 2022 08:12:09 -0800 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 7 Feb 2022 08:12:08 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Mon, 7 Feb 2022 08:12:08 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Mon, 7 Feb 2022 08:12:08 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dEs+blz11tSPsvtudMegp/68064TLJctHy988hS3/cy/T55U7qdzeTTpcruBKzmB+XXFS+TyeAzdrJdL6c1eRyaX6KKd56KWFPGDGdJCjHHuKkYiiB6uEvoLw+R5v/+410OqSxzRgAVw6XM8FvFDhCyruH0zz1QYiu0XOIFo+7lsb/Lt+68FK/1qdfKg+Q6fZLZo+vutUCu+wN3QghTU3nChNYxjJ8pzewTyRR27qNLhCZAAluFojU+Xf1O3eWbneoo2zEN7/PFdnr/6U/dVGKE1lbGLiz9iukDmMLsNZHS+Z9FIwuMVFHvHgCyhEA4SiEeQ8IReZszTMFTtwVA6WQ== 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=vvrrTky5DcR0KAPlHKgNZP1YkHAxmgj9XPfLPSXWXR4=; b=Q8Hbs4srVoxQYlp1owINQTp+ew79MeuN2NJ+Licp+/kpjFdMAqXdwQd6UsBQ4FwkqCXi5uWtOWEh1QGTBEUGO5PxTwZSnC1IvQghpHF2zTAWMv+UXlIyaBrQOo3aoBO2cIqSjUOoH7nd4KoIFNa8voLfSwwpqbutRTEML/LLPESa1bLEFm1G468ntCXrAlo0Wl4lBZS9/rLYdUo+qIy2O6GdCgEMtdJ22WY9W0tuzJWXuZC8MznsRM9c00Ub3oSZliccs7wlGi/m+yvere36gwX3GeCbHvh9DgmcgDAcgVG1fbQbhZH231OsPM9Ell2zVDQebuk5t4EgM0J5wzFiNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ0PR11MB4894.namprd11.prod.outlook.com (2603:10b6:a03:2d4::5) by BYAPR11MB2853.namprd11.prod.outlook.com (2603:10b6:a02:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.14; Mon, 7 Feb 2022 16:12:05 +0000 Received: from SJ0PR11MB4894.namprd11.prod.outlook.com ([fe80::4c25:af8f:60a8:3992]) by SJ0PR11MB4894.namprd11.prod.outlook.com ([fe80::4c25:af8f:60a8:3992%6]) with mapi id 15.20.4951.019; Mon, 7 Feb 2022 16:12:05 +0000 From: Balasubramani Vivekanandan To: , Subject: [PATCH v2 0/1] Add fallback inside memcpy_from_wc functions Date: Mon, 7 Feb 2022 21:43:07 +0530 Message-ID: <20220207161308.447676-1-balasubramani.vivekanandan@intel.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: BMXPR01CA0087.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:54::27) To SJ0PR11MB4894.namprd11.prod.outlook.com (2603:10b6:a03:2d4::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c18e95b-e7dc-45c6-3794-08d9ea549547 X-MS-TrafficTypeDiagnostic: BYAPR11MB2853:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4O9JcW2mtU1ZWa1H8yQu9PTcExSy/2BxqvMBwoJ7vPZxDyC9B+w6ep9gfNnWgcis06jBtNd5JsIxHji51v3sRpbbeDq7vNeA1jRa86WJftnxLtVi4ItEc8bTbBOMcRkmY1Ua/fnond+VrpLy+nkZXzzmWIHu2jR9YuEL2k321LDhRzU4dHZ+PBetWsbTPt/nG1Xbywe74NbmAYDmlMe4B7hNKTt9yfe6ZM4wEoKM4SnE+EUv+WYdK5J1LMHoaH7boLfC//23Wi4AbGvIQpJuFeg3HTv4wDejjDhfrk/5h7qyOzknMORsD8anVBv5KOkx8wme1rCS7V9Xo7UALmT52WHC5E628sFPDm/oJDZFfNlipJBWeAj35PHI2BSuB5bWbQAsAOi0TyJhsZtOfqHH5xXgL8lNwPyHcwWUz8BNA+DwFghqEFryljNaPKqZt5NBS9U28ZcEb7sj3h9RTU8WP1DRWqvmt4KWQ4U/7an3m4DXrR6Sf0+BfUeul06APusassi9gYMUSmuKSSWbD+nbOsru7f2wKj/6nsVNqj5lgkw+bhFtpi4ujw81Obsa+nBDat6rorAIMfi0nO0sxrc7Geh32bIhxar5MeIkVlataOwjHlf7L25ZjqSfta6vQsplK878toRzUT8JAYXztkiFFA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB4894.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(2616005)(82960400001)(8936002)(83380400001)(4326008)(66556008)(450100002)(107886003)(66476007)(8676002)(36756003)(1076003)(508600001)(26005)(6486002)(38100700002)(6506007)(86362001)(44832011)(6512007)(5660300002)(4744005)(2906002)(66946007)(316002)(186003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zMMyMke0syOT1Vwm8R80Av18oOpmJtuh65Nf6YGrBQLTvhBqxA+nyq7VUc7rRvoXb3H3+oyzHGsrDACL5fkvfqrlmbafOj2RtJmIonj/WXrFLxx107Nt0T3XuPwSB3Of5WBcSEJooyq02rMHPhXi5I747cpSeD1pIzpzlDepqhn6SKuxn2QrP/dSAkJy11EpqUTUMMFBfqmkh/bVsWei8+yUJ/4M/fFty41o4lFVCOy05MAuBqDc962dIIgqozGp6PoA2fLaXqDtYjnbRXrpdVcb6PlJoDsSMlQvFZc6L+nyNucI44Wpuox/rp9cVJfzh5RM+ugROZmzPRSPwmO8DlVq95Qr8F5NoPAXyXvNTi3arZ8OZ9zs0QaH244is0A9xa3X8zgRfgeSMeprJU3Db66ATVClJ+GTyEP0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monpRINKxlqIW0ZvbozqfY0ZUDKgd41utBl3gke8YvUbXd2oCESNYpCrdrxBuMqyQ/PPJdEpiDxxfSuaX9YVYcoiOf6GORNGo0L18IJfaSpekQNu6sBeZ35CqzOdI1HJ9VmGt8RYwNWsekpx43Qv6XjQ6V3PEaAw47mAaehNToYndx1EWoQMhGEjjpMZfh3uV/U4stgutE0pBf01OyzF0oDaQWTimz08Is04mJm5ClqQg/2TQ== X-MS-Exchange-CrossTenant-Network-Message-Id: 5c18e95b-e7dc-45c6-3794-08d9ea549547 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB4894.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2022 16:12:05.4604 (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: 9Wq5OZ9HJxu/iRVOYeijLMa5+7iwqQaGH3/YcJH+IIUORbmsNidkge7gYWF1JZSOic55FhGFUwn/YNe/PUcEBn4iXw30PhkEQxbMgSXkUNLqUKkknsSygOTVsgV/ccf+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2853 X-OriginatorOrg: intel.com 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: jani.nikula@intel.com, lucas.demarchi@intel.com, Balasubramani Vivekanandan Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fallback function implemented inside memcpy_from_wc functions when copying using accelerated read is not possible. v2: Fixed Sparse warnings Balasubramani Vivekanandan (1): drm/i915: Add fallback inside memcpy_from_wc functions drivers/gpu/drm/i915/gem/i915_gem_object.c | 5 +- drivers/gpu/drm/i915/gt/selftest_reset.c | 8 ++- drivers/gpu/drm/i915/i915_gpu_error.c | 9 ++- drivers/gpu/drm/i915/i915_memcpy.c | 78 ++++++++++++++++------ drivers/gpu/drm/i915/i915_memcpy.h | 18 ++--- 5 files changed, 78 insertions(+), 40 deletions(-)