From patchwork Thu Mar 11 03:29:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Zeng, Oak" X-Patchwork-Id: 12130223 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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham 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 BECE1C433E6 for ; Thu, 11 Mar 2021 03:29:24 +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 6C56F64FAA for ; Thu, 11 Mar 2021 03:29:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C56F64FAA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amd.com 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 987C16EA79; Thu, 11 Mar 2021 03:29:21 +0000 (UTC) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2052.outbound.protection.outlook.com [40.107.92.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id CF5C36E49A; Thu, 11 Mar 2021 03:29:17 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kQVdqbFmvuxOSuwTsgmjRuw2dIOvWntXKSaAsTM2V+qiEEuo7j9EReVXD2JsAPuiiobKz2dCW+NDQt4VST28ekz7XZUiUtOl68HRefDGK3d/oD/y4PZrWuOcOqwBjV194G3NEASmGfw7DLIkNYeITWJQOUAQvUSYsJYj8YSzl1vrkL5rQYQv0oc8Os+IBOq3SVWvJwa9gr8WYHNGGfgOR4fz1+rtOKIJPuO79SfuF58oC62oyGZcIVhfWthq3X5iiTsZASAXwhe+1CFx7ckmhaYacWEx4x7VpzWywLZLJlD2ix44HW8jgyUHXUAmr17Bh467eyldlFsh9ay9YUd/Cw== 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-SenderADCheck; bh=MyrCNjmtxX5ClRE1dbTLlbII8uRvwy+zRwQNzK57SZU=; b=Q16x9GRJN+iQZ9hq045JJ/BBt+E995OxK50DoC9unDcAeVsE4yFoOZh77uKgTfn/sx3ib+R0ZXah0NFEzjE7s9S8DYjh8FF+1yx7dQG/EzPS/j6IilOKiiSw08s1XwJP1520eEC724NPhuJlL6C6Lj1PnkI3PBjQ92mxnleZJ7R9pptkes117fKPzgr/UNaQMls+8rnE5FuUTWMq1QUnYPfkV9SkvtGfq4L9ZDDb1vfw8WAkhR13HAT3k8pJ+adw+pru+GQXaGbZ4+WGenByzKNukK4AZPmHZMkB7J0YssdSgddOL/G0oKQRQFIkAnMm7JMxhNDZbyvCMnDLrYP2iw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MyrCNjmtxX5ClRE1dbTLlbII8uRvwy+zRwQNzK57SZU=; b=GbDDFKA7t70512Ho1EbwkNJyf8NUWAiqaFXJHe2RcktARdw7spXex6q1zoGVSE+ydEEmSs6xhh1asCF96DjzIaMn1K7rB/c0efihFvH2uUmeW2gu90bzpTda3VJDQDKHmT8sJ7v4jJb1pjCwrzW3RPzrv++6YUkxi9xV11tZqmU= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB4732.namprd12.prod.outlook.com (2603:10b6:5:32::25) by DM6PR12MB3436.namprd12.prod.outlook.com (2603:10b6:5:11b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.27; Thu, 11 Mar 2021 03:29:12 +0000 Received: from DM6PR12MB4732.namprd12.prod.outlook.com ([fe80::45a1:94ba:f88c:92e2]) by DM6PR12MB4732.namprd12.prod.outlook.com ([fe80::45a1:94ba:f88c:92e2%5]) with mapi id 15.20.3890.041; Thu, 11 Mar 2021 03:29:12 +0000 From: Oak Zeng To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Subject: [PATCH 1/2] drm/amdgpu: fix compile error on architecture s390 Date: Wed, 10 Mar 2021 21:29:03 -0600 Message-Id: <1615433344-16267-1-git-send-email-Oak.Zeng@amd.com> X-Mailer: git-send-email 2.7.4 X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: YTOPR0101CA0047.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:14::24) To DM6PR12MB4732.namprd12.prod.outlook.com (2603:10b6:5:32::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from ozeng-develop.amd.com (165.204.55.250) by YTOPR0101CA0047.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:14::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3912.26 via Frontend Transport; Thu, 11 Mar 2021 03:29:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f7bcd0ac-d1a1-4f28-739a-08d8e43dd6dd X-MS-TrafficTypeDiagnostic: DM6PR12MB3436: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: liKi8H5AmRL4zF3x0MEfXXtHl2213LG+1u5sWEYPv7kU0PzZhaLwdSZow0f516ZQx3fx6fPz9cQzNzwlCfvzSAvUhQIHi/A7uL4T+TtMJYYQWKo3HvAYa7C95y/sEOkOUScLPSOPowLZSEWzJIM1JTtfH9HRUmrI4Q8sqZ2AUB69Vgden78lYms8TBUCx9XkgcVZ/c8kRD97n+K9qhnEwOLm1vyhoRYBlMjmN2SFeluJLXuWT8yN/dRx+2ftFWMHVOyyNFL4qN+njtiM1Uq4e8pKhlt6Ej3PMMGKX+pgwBmJ7osg7JIVB3bCeTfatB4bB3a8D3+nvWUOigTrgw2h6kdN9i9nB8CxUGbiTFf8E09ULeKP1OqZZ1pYtRO00qEXtKZHW/q2xwqgo0lobDTpIUcoRZ+07zPFyg7eBSdbD5/oQrjPG3GXgGXcA0qDc7E8INwF5gFoivMo9pPQwN9oqG0+T+PFhKEMdrY0P7v9WrY+q4fhaMAiy9VzFxdkGS+YgJzGboTzdKVH/0wb1zuCzg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4732.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(396003)(366004)(346002)(39860400002)(450100002)(16526019)(316002)(186003)(8936002)(5660300002)(2906002)(4744005)(6486002)(83380400001)(7696005)(52116002)(86362001)(26005)(478600001)(66946007)(66476007)(66556008)(36756003)(6666004)(4326008)(956004)(2616005)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: jSWJx26N5H20mpvJwQu1CtK9Bnw3MKLreAK4/+mYuTPKmjJuDeUTGLtgtWN+TQWAL8pi0m7DEfG3DARz89tLFyLx0Khm0qiV1V0oQ3wx0ZqHTh8fFnTgihElmaWz7kB8JIp7HI9lynonRW8tVmzwLS3o4akTF70BGI1pWMwffM/O6GJF3sZvm9XxEZttkfR8N2hl3FHrM4CUxSMmvQ9LVoj8KTSjMUQivJKvH6A73E+pfCpNtvowseAuUCbXbPT0XUEhTZmADVX4G+Q7a7BIK8nbN7FM3dz00witbqna/AjJDgG6xwe1LQLJOU9CnEDs0EXIjT34e+JGcRQXWwxxbRXAUcmq+thEThH5yC64acz4VUqLRy1S/z3/5wUSTycp8k2UZKL5RVR95iy52jlXJqgfY4pH4imV+2zjXCwP+BLxqYFhmwBQ4qO36i1rryjw6Fq8EOKGYaoGNBfv1sD8KIe29kyihlrPCFa9AAcRGnG6JAdkARv7UMMOkmqCE07EyCAZ75p4Es3kSDNDoupjMdL81dCNo3jN7dQc0aWBXTChMr8znvMhuAWajYJ0m9kb9K3lsgsKBfRZDLsOGa8drWk0NzMZFtyFWvNW06XbvGIujZQPdIrlNxJjpgYiGn/vPDn2PRXwWIlVqw0o8CG5lkflG3j4p6F65KxsmY+NOBlU92UOqmfPdJlwxUMd5yk3xbOdTqi27kfhvDC7RU6vC/STwMIgXzQ5e+hT0IL0R4ZmwyITAwJiOJe9NG7YAbtJoDteG4yoh5gKeKsGPAbMmUCnvUGje+RfoR1xt6hYSX0teLX5UgOxTnnh9QmmMeMKf1L03/k84trxdovheR7+SB5U15mso8tkb2keKnwQ5+zWZKJGAeh402SHmKmOgno+PAQ6LNYF6IAzL05bsENGUpwZWgWQKLOovqBykxvUmXFLP3kf8WlDygtxMU/ztYceZJXd+SSJkQ83wvs9MknwQrsuWEW2hV2Ut/dtd4iJ06jYCcYqr5UNrxoo+aKRVcdyFyc/gF8R8BphT2QgsHfNOgz8VDGq2q1guOPgzpPrX0ecs/slzP/q6tZ5hKxeZCJUKYmQUjW8+YCZ33UsDSzvErsDIYoeNoY1ymtLa9ClhXpl6KteQwqSdEKu0wnHulW15krM30iuwaJ8BWkPbVHHm+YcU5Ol3W/lBsFekbVdayaOhq9pWhnSwPhOxgiVCI44437EUA+8a5XpS+Jx2LsAl1Tzb2Qzn7wnCJccmGtZuAV2b6TrRogmpCv+FGVfDJOi3PHy8a4jekNxP1mxS/IAf/f/BXMBcoUQFV1AB92t0xVRooTQ1AaZq5sw9mjsF/tn X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f7bcd0ac-d1a1-4f28-739a-08d8e43dd6dd X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2021 03:29:12.3649 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dMZG/TIr0bGIsnzSilXM6aSNkOEETuKoLa9zUwU0DGkifM6zXed+XUwkl8lQayX9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3436 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: Oak Zeng Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" ioremap_cache is not supported on some architecture such as s390. Put the codes into a #ifdef to fix some compile error reported by test robot. Signed-off-by: Oak Zeng Reported-by: Kernel test robot Reviewed-by: Christian König for the series. --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 37751e7..1091585 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -1817,7 +1817,7 @@ int amdgpu_ttm_init(struct amdgpu_device *adev) /* Change the size here instead of the init above so only lpfn is affected */ amdgpu_ttm_set_buffer_funcs_status(adev, false); -#ifdef CONFIG_64BIT +#ifdef CONFIG_X86 if (adev->gmc.xgmi.connected_to_cpu) adev->mman.aper_base_kaddr = ioremap_cache(adev->gmc.aper_base, adev->gmc.visible_vram_size); From patchwork Thu Mar 11 03:29:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zeng, Oak" X-Patchwork-Id: 12130221 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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham 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 E1A4AC433DB for ; Thu, 11 Mar 2021 03:29:19 +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 99A5D64F96 for ; Thu, 11 Mar 2021 03:29:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99A5D64F96 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amd.com 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 B43846E49A; Thu, 11 Mar 2021 03:29:18 +0000 (UTC) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2052.outbound.protection.outlook.com [40.107.92.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id 95EE06E49A; Thu, 11 Mar 2021 03:29:17 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LiHgTX/ncxMf/BEawrqUPGk4NahiIueI+2slxOiMI7bAItsBiWukLplbwMyz6Q+bX8kqAGHdzHOro0OPb5Qxv36/aEurhpI6Q5oycPi7ygU//TilYRdqOUGqrOMQXBsmK4q6LeLoMrQmnXP0bxec/HNl1DogsgeIEWz1KHpSy2TZcT3fP/jzoya+2o0GzG2/dchodRGn2dJTZgQPsInrQKEqxvb0DsnGnlc+ntt90shY0QMOVlSK1pMamE/Mfzg07zl2DanHfvejvEz1vsI9Ipf1AiR859nTaR6DV9WeQ3ZULghjMEXWguhagrv2P4WvuFrN+3nxtK4zQrsNUlhPAw== 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-SenderADCheck; bh=OVlzHTB2tYNZumta/OPmVphkkknsR4ZXV9PUB8RYLW8=; b=PtWB0oFNw+pBXYklEVWqSXrwtPZRtko8TRqk3od7HVp6bWuOf5lbM2E2Jy3u0c5dXcpEZ4HyIqXTE1Gl0ojTCFNpgA3NyLdxY9uMrGvYKEUeg1eIM3Thm7OJanyxjGplq3tVwjUcND60R/0zcgL+d/UYVGyD0B7DGImFSKPdJm3Z1yYlm/dkYnFNf+yOEF7OVV0k43WB8eWfixHJGJOeAh+1QYJFodKMuPT8ykkbNTdx5BbByS7qpeFBMJvbRFL0mPFwpOfeghXcg2nImFnOsS5za9weMSPqLM1tXX8XtemFv/2PSQXvqUrgR/6lkIM0kwUJSchsQq96kPFHRIpfcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OVlzHTB2tYNZumta/OPmVphkkknsR4ZXV9PUB8RYLW8=; b=4/6/ZKh1HIWi7fZ+bWFzT95iHxK9gZvyJPHTIkrv9Dkqa6BKMT3kpEuYKlf5oAAf/YFMpHwFAzxS2zif2pDghDfjOsloUpzWIfdfUel32fhCEBVShbwiMyhjgs5m2G43hL1S7hN6Wdqc0hMF3cjgAYopnn4mljzxCCbDOqZUX/w= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB4732.namprd12.prod.outlook.com (2603:10b6:5:32::25) by DM6PR12MB3436.namprd12.prod.outlook.com (2603:10b6:5:11b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.27; Thu, 11 Mar 2021 03:29:13 +0000 Received: from DM6PR12MB4732.namprd12.prod.outlook.com ([fe80::45a1:94ba:f88c:92e2]) by DM6PR12MB4732.namprd12.prod.outlook.com ([fe80::45a1:94ba:f88c:92e2%5]) with mapi id 15.20.3890.041; Thu, 11 Mar 2021 03:29:13 +0000 From: Oak Zeng To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Subject: [PATCH 2/2] drm/amdgpu: fix a few compiler warnings Date: Wed, 10 Mar 2021 21:29:04 -0600 Message-Id: <1615433344-16267-2-git-send-email-Oak.Zeng@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615433344-16267-1-git-send-email-Oak.Zeng@amd.com> References: <1615433344-16267-1-git-send-email-Oak.Zeng@amd.com> X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: YTOPR0101CA0047.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:14::24) To DM6PR12MB4732.namprd12.prod.outlook.com (2603:10b6:5:32::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from ozeng-develop.amd.com (165.204.55.250) by YTOPR0101CA0047.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:14::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3912.26 via Frontend Transport; Thu, 11 Mar 2021 03:29:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: e7341ca3-73a9-4eeb-542d-08d8e43dd728 X-MS-TrafficTypeDiagnostic: DM6PR12MB3436: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:207; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tp2GQZzSYfb47sNv9HFyYm91i56FBDv3VtDT7sGJvaZTYcM2MBwLZUltrq8aN3109+GqFnoup0sWI7WPxllqLchJ/0o7nr88QZCR5HJeyl++mbHUbKjTMRaKdL/hqFEc5861xEExSu6iyxWAK8Ij2hK9cYehkIc3CO0fRGrCPKM8drRVwY2lQmRTNGLYEeJSmOt2uu4vS3/Gdog+SceBGEeHL+3Qpp6BCE9thYXMua6u5CM2r+dultopuKucBoh1aR9R5yeY5BEQdnmmalb1P5OnyRlr31+hWduPJGvitaWEqH9equGqZz+QP+TP+ht7H/XQ5IGXiogUQH6/FkQSQYUqEXswRfIILLIuBfhAVhMoW5F/otEU9nBqQhOTUZD1SfQEh8mJ2diwuaOb1dKvaB3ZNNmJsmVYmbdnKc8V2EnSFYuxIbvmmXwf1nkt7EDnKsmWikImAiyQRAyZ+/S+//5awBvR7L9ZJCP+KWlbvPsWmfXH219CZ6Hq8uK+7SMcO5qiREWo8EF2635+I54eug== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4732.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(396003)(366004)(346002)(39860400002)(450100002)(16526019)(316002)(186003)(8936002)(5660300002)(2906002)(6486002)(83380400001)(7696005)(52116002)(86362001)(26005)(478600001)(66946007)(66476007)(66556008)(36756003)(6666004)(4326008)(956004)(2616005)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: of0WHDDOxQtw58gJNgizrMLfrccRDjjvxCHE6C9/XXUNZIDd18QEEPBBtByS4YRZwbaILT5bOuctsD8zpjhkeSj4Hk5yE3oIQ/9xFz/VKgJJ4hu8nOjR18NNO4jjrGg4h84jRqzVOzoFPNXpKrjocXAL0dvKU+veYvMoAKhhjbJHoY7bzVqEuZCJgeixeHmpgijxfFLuDn67DZiQ6gL+nUwQfKmGAopIPVKlZBB5NmtO1fAeLX8SKGOGB54xtMVDDysOUdZblfVTHoflEuVqdkQIIWMOhpoQge7YPjN0sMOTuI10mWiMMIJkBhAUmuyaJbr3X81O+/85GItrJoCJWE4bJeWaWo4gbC3cmyvdYp7rzh/k5fiNfFIltbPw+Q9btTJpqJ2E06n/bc6/igb7wamhJs9vgur6gwxxxBxpfWFOom4jv8SrekC/YqutsCW5uW3K3HC3f0JLujRdRHbSdPlH3z6Uhcn074jWFghYvY0KxMuqh31wEAySpWJmdb/NPHx+2VL19zaEQSyx61IjF/KmdXnC1XrK+xpFPb/Rux8UrLb1mTKre75uqMS7+uDOq+zUOZoPeAG9QJSZBr/0Q8uweUJsL+F3R9HrE3fjHCkSVL+umRJ8yW04MrB9sDOsUO5XApEl0jjufnqoCwP1WcUqPNDUFBKnalqNthZdmO87gA7d0lTqBcHwTT9rhzLfZ+jw6/e8lihRXJBPuOoJ3/jFWGZRW77jOnPwnZTFU16R++nRBrrPxlJ/7n4QGdH1lZUnULGmQ7qQBOSCdsYxyUPeJWKgXbmPA8NKerhsPcKgHqAiSsD9uTlnbzgs7JR+vSSDHDy9LHn/UJdu8ejslvlaI0nXvDjzFD5mVnJ/O0ejDSO/tK5ngHO1bvSAVa15Snh9V6NuuoeT4SKJsnee/XxDF9y28b2vnQEpQfL0uZXEIwWAZbyedpgDZPyUnmF9hnCzoc291Txn370FxyjJtZ8EftuyqWmEXfZYIXrjKgza3vmtO2uFnEtQ0P2XZF2DhVRfJAJDh0UD9y5Tvcvn7nfLkQxIErH7iYLEV+uocms1JWhLcZmvutm0ijblor2EeW0U/afSiLncAYT+9Up1iZUMf8bPqYxMIgC2QkHn9mbSo6hQhuDCkE/Jd4Eb1Z37y3jgUw59VJfbYi4djayClflxoBVHhunKOe+pnAZ9yVKYt1esNK9yxptQgTbswVCg0gwKqGVxoA7oBDzvP3ADkIFuh2GmvSZMW1p04MnjH2ub1EbS3VdVPHmPRgNDU8OrD2YmBkgfyZ8xoT19kGu5QZ32m84SYbSqpSoJHrJX0L1a6bzImQTJ/DFKf45Ibxcv X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7341ca3-73a9-4eeb-542d-08d8e43dd728 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2021 03:29:12.8166 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /O0tu+mp1g84oo0RNtgL5P6HDs6lf16cop4JUMK7ngjGlpPlsC4bvhC2UrODsocg X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3436 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: Oak Zeng Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 1. make function mmhub_v1_7_setup_vm_pt_regs static 2. indent a if statement Signed-off-by: Oak Zeng Reported-by: kernel test robot Reported-by: Dan Carpenter Reviewed-by: Rajneesh Bhardwaj Signed-off-by: Oak Zeng Reported-by: kernel test robot Reported-by: Dan Carpenter --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c index 3b4193c..8fca72e 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c +++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c @@ -88,14 +88,14 @@ int gfxhub_v1_1_get_xgmi_info(struct amdgpu_device *adev) adev->gmc.xgmi.num_physical_nodes = max_region + 1; if (adev->gmc.xgmi.num_physical_nodes > max_num_physical_nodes) - return -EINVAL; + return -EINVAL; adev->gmc.xgmi.physical_node_id = REG_GET_FIELD(xgmi_lfb_cntl, MC_VM_XGMI_LFB_CNTL, PF_LFB_REGION); if (adev->gmc.xgmi.physical_node_id > max_physical_node_id) - return -EINVAL; + return -EINVAL; adev->gmc.xgmi.node_segment_size = seg_size; } diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c index ac74d66..29d7f50 100644 --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c @@ -53,7 +53,7 @@ static u64 mmhub_v1_7_get_fb_location(struct amdgpu_device *adev) return base; } -void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, +static void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, uint64_t page_table_base) { struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0];