Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3397025imm; Sun, 17 Jun 2018 19:06:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJw4xsk9ncXElD1jcxUahkDumOMfYmuurheA8Q2iu7ysc2f9sUDS0WtMZsLuDZt5UUMo6/ X-Received: by 2002:a62:9804:: with SMTP id q4-v6mr11467290pfd.65.1529287580577; Sun, 17 Jun 2018 19:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529287580; cv=none; d=google.com; s=arc-20160816; b=nApQ8D9MsO/doaLArMpwzxbY11IkS9HqUd6uUPDLt6WGV7nahLavhYK4uXPZbgDXGY tvmbHJY4P56SlksOEJEmj7T6BPbl6vaYaw++IbrxPbcTVBS5rfNMpid8ero5mi1bANBb /VAXjodORKHgi6AwvpxHI7kT/ZnzUL6zIO/ordWH5TUBxV6TCVehRKKKJkBaUfB9fJmV +JA4F0RcsPYmeGX8ZR9GyHU1lUr9oKXQkfCU4kK5/6jgS2WPfmQtwODuae/djVgRi2w7 WwoDZhii3ocRq/ENnBUUoMUUJ3Sc9b+QFZ3AiZyp8uNNRzSUF9tE+GYxOcamBxiShxIY juQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=z45MjLZtiDxZPKfmTBW9f8kq+dXWI5qryFqwS7YcL7s=; b=R0HyD5TUQlHZp3+YGpG38D/WQ3po8znW8TuSMaSqFm6kqNlnqvZDS6mcacoJZON6ay Z2z+mh22oqLvGckGEgw+rN7LRhO938ZXfPtglXb5EEDhg1RdHxBvJIWDsxtaOLbAkkXs lzFtQqsVhSHVK59Q1YEZwRbBP2mCt4qnFTp9AOGGnMBeqRPSehG/bzpVLCJ/aIAkaNao 3Bq2gmqCAwKGvZv5MfHB4zpO3FuwrUAu648G1qWjhEHLoapAy5nd/6blfrfDUX0cGitv YHBfub/U6t6viwk3Yo1r7LTRBG98DtsUYoocxTBJFr9CxtjBJwfX641dJxFnG6MHKKbT /psg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=M46j2VMP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7-v6si11136332pgp.434.2018.06.17.19.05.20; Sun, 17 Jun 2018 19:06:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=M46j2VMP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754453AbeFRCDu (ORCPT + 99 others); Sun, 17 Jun 2018 22:03:50 -0400 Received: from mail-eopbgr690074.outbound.protection.outlook.com ([40.107.69.74]:3200 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754053AbeFRCDr (ORCPT ); Sun, 17 Jun 2018 22:03:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z45MjLZtiDxZPKfmTBW9f8kq+dXWI5qryFqwS7YcL7s=; b=M46j2VMPvJXq9Ht19tV+jzjwRQv9xU8WmaamtqalLMxH/isVmPtY5syT+9wWaZdltOwHLWNUOYp3kRkCfxvOCYwRA4/zAJlG5sbsBqo7UyX9MYDb66ZygrMA5mpkFIKhTNtARVZNtzxb4qSU8tGNpWKbRVciSaKMILbPvBS2Ciw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=James.Zhu@amd.com; Received: from [172.27.226.62] (165.204.55.251) by DM5PR1201MB0107.namprd12.prod.outlook.com (2603:10b6:4:55::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Mon, 18 Jun 2018 02:03:44 +0000 Subject: Re: [PATCH] drm/amdgpu: use first uvd instance to avoid clang build error To: Stefan Agner , Alex Deucher Cc: James Zhu , =?UTF-8?Q?Christian_K=c3=b6nig?= , "David (ChunMing) Zhou" , David Airlie , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20180617085218.7753-1-stefan@agner.ch> From: James Zhu Organization: AMD RTG Message-ID: <625b2c05-c923-cd5c-cc48-cbc51ba3d3ee@amd.com> Date: Sun, 17 Jun 2018 22:03:40 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180617085218.7753-1-stefan@agner.ch> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: YTOPR0101CA0015.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:15::28) To DM5PR1201MB0107.namprd12.prod.outlook.com (2603:10b6:4:55::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: fad608ab-7d62-482a-677b-08d5d4bfb917 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(711020)(2017052603328)(7153060)(7193020);SRVR:DM5PR1201MB0107; X-Microsoft-Exchange-Diagnostics: 1;DM5PR1201MB0107;3:dgbExJ48m2qPROmM7nVxbO1/BD/mHgHdyYTQLaKr0R+gheY/cg3KCdP2SO4zL8TSlvQlf8wty1mdQ3flFWD9Bx4stTTmHqJIN7kSw1yfHQ+Zo8Q5nOnLnezPlel7Q04ok0FirPrJBZo907RQ+/rRPfpw1xRe7PLaSSQIw6j1A9aS7MKDXvoYbJUBf/bHtXqKnQ59wQ7pp4Y4BAtlCz083YEH9KY1Eave1MRb4ndSdnhVQ4fpD17h6Wh71twNfprA;25:vHBT5s8S1z7GNtfdwnJgEYF39XQuNeeQjnCE29VM4drnh0JKfpuwmzpi1Q45w3yTJd2p4QMOIC7a75/V58K0hTOtSxKM3w3mxysRtHwAMeeXmnaTcAO4f+JKTFt8rcxEPKlGMd+XRgqqqpLMJIzrvsTmBKTmFB3w1vMXVBdBAFtNSqGx1T5ordn5Gi3GegBZR0ohKjMDxkDRVxj+s+N28O7Ud87wCEkaoDaQt/QW5MlohX8LFSIdXUuOciGCXrEWO3jfmeKOE0NS/TdkAEAmWjlj6qT2E9PmzuX6oEyYGqA474Ko3iGWrQgVVzCbBlhUJpiOckzFDibDkOmoTPRlDg==;31:zQHClC5EEJUXZ5x0Dnh8I+5mVYZcYr7HHA0Qjul9o1LFeCU8abeEn5jmfEwLDaO1AWN8bbqeG+TAS8qHZZYNRgub2Jr4gCBUK2SGH+2FFhYaUEhyPR99pY+DY9qO/DqEGaOckrkE6pXB5gdSBKUxrUV0FP3bwNqmLVpFMTYumuZxl46dVaoAkOGybReGpR+1d7mznaLck5+8j8G+0lwUHdYZM4VYIArDV2J0QZWtXGQ= X-MS-TrafficTypeDiagnostic: DM5PR1201MB0107: X-Microsoft-Exchange-Diagnostics: 1;DM5PR1201MB0107;20:KUQ4EHxjWwvmcVqebj/YMXSJyxXTT61yRQ/gfoT7hfZW+gdN5LaVeqS0O+B2UhHQJz3cGGDQLKLNrvJSvlUeuWqUK8gSLWzC9etVNYrjcC6+OAsi/+5fA1BD1uKnSKqdWQ8RjPFfpVoG0HFAA0NwL2aZ8lwHxp0JfTrvI1NAxm2IFvG1SZ6kASNp0prDsI6MnZzvXkcGRUjOFgZ69T9z3RI95ZQw8E32E6Velr0T67vv3UCcDy+CJ21vCSxZQ/pkJN6CReZT51qGc8Np3JcEznYY/9MMlaGnBUCF+zLCmWzGeeC+t+/wo9+yiw0Q/2Lf2w8jwzJ7gWXa+dv+QwoWLN7VQq0Pb08ILuiBxF9kp5bk53d2vAYDEfW1Ucd8GWBW2SXtH7MIGikOceGIrblwii7po1+7Kr56L4VBwXb/UqXEx92QwwsU5Xnk58Wt5c/nhMG53ay7zs66pi/NdwhJR+o7HeIMj4VdusCjfT8cyxFweLXtUSmd9zk3c7BW1Ibg;4:Kl3na2nx0dD6sbschqNAyUEVRFyrRb35eiOq+zx+sNrHurqp3X88vxqXU2JFXL0xeTyC+aBd1oK2chrQ9l0g6hKUkYAiF+xYFqWTLoww+kP8QxgFSt2ouvdB+wM9tJPWdASN/Dl4Y9b2YKB60/LvSHXZC/mGwUnUH2L+rAIM3qGm/at/NsbzFdULdUp2C7inSsu/ww4nLXHQM5oZCjV7LOhxi0C8rp6qoPM0GzCrSp3P1y37XYeJVB/Wdo4mhtRuLi2q+P3x+cYTOyoQhUxEMVJo32y8g5MiRmj/N/us32oxbxfkZGEplSXbTPerZ+Eg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:DM5PR1201MB0107;BCL:0;PCL:0;RULEID:;SRVR:DM5PR1201MB0107; X-Forefront-PRVS: 0707248B64 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(366004)(376002)(39860400002)(346002)(39380400002)(396003)(189003)(199004)(25786009)(186003)(16526019)(6486002)(106356001)(65826007)(5660300001)(68736007)(53936002)(6246003)(36916002)(7736002)(478600001)(59450400001)(52116002)(2486003)(4326008)(23676004)(52146003)(386003)(230700001)(229853002)(305945005)(50466002)(31696002)(26005)(486006)(53546011)(76176011)(105586002)(77096007)(3846002)(72206003)(8676002)(81166006)(65806001)(47776003)(31686004)(97736004)(54906003)(110136005)(446003)(11346002)(64126003)(66066001)(65956001)(36756003)(956004)(67846002)(6666003)(6636002)(58126008)(6116002)(316002)(16576012)(2906002)(81156014)(8936002)(2616005)(476003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR1201MB0107;H:[172.27.226.62];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyMDFNQjAxMDc7MjM6YWUrU2pDVkE2R3lFK2VCTVZLcFpuVW9R?= =?utf-8?B?dXJyUUpGTHdmK1J1WUs2bkM1ak8xNUNKRHppWXhFd1hxUER3aURkSk1JTStk?= =?utf-8?B?RHQxSXl0US8wNjA0aDFzamhHVDF3NGxlVy9KTFM1Wm9tb2Y0Ukpzd0dKcElM?= =?utf-8?B?V0lLcWNXZ1VxelpTbG5OK2FqZzBHbzhXb3JLR2paTytyMHVJT1VPelhWN21P?= =?utf-8?B?ejZTdTJHaUFLbEhPZWZ3UEZtbGpHTUFpVE1QL2tzUVByODJNcWkzVEdiNjR1?= =?utf-8?B?b1FLU1I4aUhMVGNGMFl2TlNJMzBGeXFHZzc1aTE1QzI2dVJyNXpoRnhrNzR0?= =?utf-8?B?RDIzTXB3Q2JnZUQ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:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR1201MB0107;7:vFPH0p/WOlbknHSICTq6aBwiOF2fhMbHGMrHwEZwqR2kRdMzXonqt0jqhIlZH+gk2ZB/Y1jkyOw8huqWGxFzG8UVpFmnOrFDflvdu5v1SLpdlG5PTnVcdaPXrCjdOfAV9LnQjEaAXVFwQ1RMq/HrfjxpEm0ipZhTFe/NyOejmFQsL3lTXftYDrNcIylzn8XhDViEuPIfEea/1DTEBtg0HkXfpjdScclYBn5mm3paQztpVQqdRKql/k0K+d2lBEzV;20:qhlhYmJN1btI4TTeBRyl/sKbbNS24zqWlEGTmd7dQ7yc4lmSrGmDbKaTXkDC0tN4j8aaDyIlhp6DBu4xEAJHFSfQ6BN/Q6qGKDSIjIXX0y/bKLj2SAJPgqjYieyB7eHtW8bb5EUs5QNoE3qIzXHuZQZ65lfisZNBT+HhTphwle4zHqzsI79+7sTdDreGvnNVe5kriJrlwwOra2aRzEjcZsia1apb7TVgbE3qmf0C6Vv2W/k44ywqWa/vv4kJMRxX X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2018 02:03:44.8341 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fad608ab-7d62-482a-677b-08d5d4bfb917 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0107 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-17 04:52 AM, Stefan Agner wrote: > Explicitly use the first uvd instance to avoid a build error when > using clang 6: > drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:1148:52: error: expected ')' > container_of(work, struct amdgpu_device, uvd.inst->idle_work.work); > ^ > drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:1148:3: note: to match this '(' > container_of(work, struct amdgpu_device, uvd.inst->idle_work.work); > ^ > ./include/linux/kernel.h:967:21: note: expanded from macro 'container_of' > ((type *)(__mptr - offsetof(type, member))); }) > ^ > ./include/linux/stddef.h:17:32: note: expanded from macro 'offsetof' > ^ > ./include/linux/compiler-gcc.h:170:20: note: expanded from macro > '__compiler_offsetof' > __builtin_offsetof(a, b) > ^ > drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:1147:24: error: initializing > 'struct amdgpu_device *' with an expression of incompatible type 'void' > struct amdgpu_device *adev = > ^ > 2 errors generated. > > Fixes: 10dd74eac4db ("drm/amdgpu/vg20:Restruct uvd.inst to support multiple instances") > Cc: James Zhu > Signed-off-by: Stefan Agner > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c > index bcf68f80bbf0..6666a5888c44 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c > @@ -1145,7 +1145,7 @@ int amdgpu_uvd_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, > static void amdgpu_uvd_idle_work_handler(struct work_struct *work) > { > struct amdgpu_device *adev = > - container_of(work, struct amdgpu_device, uvd.inst->idle_work.work); > + container_of(work, struct amdgpu_device, uvd.inst[0].idle_work.work); Hi Alex, If all instances share one idle work from hardware view currently and in the future , should we move struct delayed_work idle_work from struct amdgpu_uvd_inst to struct amdgpu_uvd? James > unsigned fences = 0, i, j; > > for (i = 0; i < adev->uvd.num_uvd_inst; ++i) {