Received: by 10.192.165.156 with SMTP id m28csp483757imm; Wed, 11 Apr 2018 02:22:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx49TIgB7Ip4CCAiqI+jVr4nu+acK7QrSfX1lfbHZLXMW33cBIs8z3pA3OO1T+GPAsmLuxwVG X-Received: by 2002:a17:902:aa03:: with SMTP id be3-v6mr4275222plb.299.1523438573313; Wed, 11 Apr 2018 02:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523438573; cv=none; d=google.com; s=arc-20160816; b=SydTaC9kuHK1PEfj+ay7lu0VJJtLcCdsj7XXyXhQESweRaz5f7d1Met2o2AnoIDKfw KpjvEoauMR0A9YeLArbthapUrzCdmgeS1q+8Dltj4nnRKkkiqB5FeFzBBLvRm+l33Lpt m0XlYYSAfgKdie3bblmEHxsOtJ7VezETqXHp6oE0Z3Ej8vNd/unfVFfZfcpulWfSkvTR eWM2y4Pm2BF92760I7U/mliugvsN55NXQLi8I2JNq/yoC2fZzmROBSnnBVC3QAAL1Mjx 9Y056dxqCN5cPa1hh3NJkfeDQl124tQvEegsmHo84334W001mJw+GmIS+fojMuPVo5K0 leqg== 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:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=PjJHkhc7/J/9tZu5z8cB1THNiz9RoH9BQ6lcgr6QSug=; b=uK4nuekZRMyzC+G8FQ+2HyR20F/2y7gJp9j0z7O/N773iR5TWSmKijhNVKgX7Q89Wy CFc+0l21yzdDWxDIPjL+IGROViS6l6gOQjX/jusG3x10IHRyr1Ee+Oc9a8BieSsF32XJ l2FP9YJ05QdyC5q/yMp/VJHe3LeFkrJHrkatpOQyymF/ptmU5YKr7YOJaMlS2TQZg6gF 59scOCY/NykxeT1lyeGIz9fNrMtGicpJ6wS/Trzfthz+oQ8tt5FBMFViZZ2S6IYwY2gG N8c9w9FGijJVmKjMGI2dlnOFnUZ0HGpj7xI2g6ECMvSLqSmAqVXGySd5nFngR1AT/uQO Zgrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=UysRR1Xp; 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 z100-v6si717195plh.77.2018.04.11.02.22.16; Wed, 11 Apr 2018 02:22:53 -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=UysRR1Xp; 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 S1752527AbeDKJR0 (ORCPT + 99 others); Wed, 11 Apr 2018 05:17:26 -0400 Received: from mail-bn3nam01on0076.outbound.protection.outlook.com ([104.47.33.76]:14080 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751921AbeDKJRT (ORCPT ); Wed, 11 Apr 2018 05:17:19 -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; bh=PjJHkhc7/J/9tZu5z8cB1THNiz9RoH9BQ6lcgr6QSug=; b=UysRR1XpgK9wwX0IuMdOh4jXbeT4MuqBPIsEeYu/SqZ2Lr90NZO5Z2rduCmoG1Dm3xSr5S7/gxaEjaXsWSd0HeLbISRRl16L/qg6n22MkrU9KIZFLdrrKWoTMzMJmFkKeKWBLUWra3+la2mSsLzixVfcy3KiuPrzzoaCI3tuy0E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Christian.Koenig@amd.com; Received: from [IPv6:2a02:908:1257:4460:1ab8:55c1:a639:6740] (2a02:908:1257:4460:1ab8:55c1:a639:6740) by BN6PR12MB1713.namprd12.prod.outlook.com (2603:10b6:404:106::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.675.10; Wed, 11 Apr 2018 09:17:14 +0000 Subject: Re: [PATCH V2] drm/amdgpu: limit DMA size to PAGE_SIZE for scatter-gather buffers To: Huang Rui , Sinan Kaya Cc: Tom St Denis , sulrich@codeaurora.org, "open list:DRM DRIVERS" , Emily Deng , David Airlie , linux-arm-msm@vger.kernel.org, timur@codeaurora.org, open list , amd-gfx@lists.freedesktop.org, David Panariti , Jim Qu , Roger He , Monk Liu , Feifei Xu , Alex Deucher , Felix Kuehling , =?UTF-8?Q?Christian_K=c3=b6nig?= , linux-arm-kernel@lists.infradead.org References: <1523394001-4615-1-git-send-email-okaya@codeaurora.org> <20180411062602.GA29109@hr-amur2> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <6f99b01f-2f3c-7263-9df8-f8a73f4a9372@amd.com> Date: Wed, 11 Apr 2018 11:17:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180411062602.GA29109@hr-amur2> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [2a02:908:1257:4460:1ab8:55c1:a639:6740] X-ClientProxiedBy: CWLP265CA0027.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:11::15) To BN6PR12MB1713.namprd12.prod.outlook.com (2603:10b6:404:106::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020);SRVR:BN6PR12MB1713; X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1713;3:klfUDSfi9bEGunIKXLRhXUJq9wPEJwrSrQguuTEvURRm7MwFC83/W15demvjk88Ck22JG/at7/VZZlItGxpjbVAAHQkpM40gW3n6zwsYBEQsy5hTrNF5ThPYTXSBlSkdFTAaMItLuBlLvKaZlO5s204aF6QzPAo9lo8ESqO5OEW0YSFrcSe7bkvH4owbxYYVyzPyBJAfKn0GTErASCLHgLqSZ0FNqlxZ2wubrnAEkYijSAgagpkoKPPhQBYZpdoE;25:7XoNTrNzplx7KjEtcEsch+fKuDUgmLPgho4aiCzRaKxSZj2WUboAj+Mro30zyjR/Fk+xk/B2qhpUHzugSZDPMjySUJHd5eF+/eEh5PMIcuCUGu+ww8dlnl5dkETGSSqfhS/YB90i1ySjlfdmMMlq77Yyw3NN5BFFYMuPcKjt396AyHPXMEKvkjAcXFDamIjwlU8lxFWQBGZIBfytsTMO4LFU8HSrbiaR7hrGGs27qsM/oF2f4DVDiwy1rOYvVhdMk1vO8RV2MYs/XuILAvO3TqiPEaA2NUCuvGncMBfx7I4botTMqgHDY8pSOPYJmPi9VReEyfkprDiKEo+u3AXsCA==;31:kn1/KWJA1JuYFmbHZqGgmXpoNxMaeFiC2pqjsVAClHNKXptspFe5hQVTuseUCZlhKsqS03dEpoBi3AESi79Ma5zV5cBLUEFtbU/UK8uIrH9VuF52X+6y5ZKIJgKDV4V21V5dmHKWRC9noEqzG26z2Q22QzCUIVly5mNl8X0FBU0Qv3YfYq5O+QYqETHv8DqnRh+G+fNvfuXAH9RLF4t0rxtNRSHiLDzRQUTAMVXNVdg= X-MS-TrafficTypeDiagnostic: BN6PR12MB1713: X-LD-Processed: 3dd8961f-e488-4e60-8e11-a82d994e183d,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1713;20:2eDU8IXEcUO5R59suDso6alDC1/5X9QU8n8mqIvv7XbkR0DA49WQnBALUCIPZmfC6QRlla/iNqFBnTA/qBcU1kvrr71OubA5t60aG4kyBl5PO21F0dE50qq8b1ybT64f0Y+GYexYQuIkVksx3TmkdJsTYW8HEaS+BjqzOVpU6NCyA/JidP2lxAcLH4Zpcg3NZurVkGdnXnX7cs8EJW0N9xhyddlQw0VJB7uPIzdYgXgVwrYiFkyKA5FTpwboArw95WZ8+OE0td6kZgzpVpRLewM38fZqAxJ2uAwr8fvEF3P8T9dx/rZ/E1rrRFSbVKHDQB7JcMTeP8HXSJoyPDhAdxQivoasW9CVNsQ5F4uMIvT7Qtz4pVIHByJug1jIWUuCL1/t4aVIdkI5mf1lOKhtKNr4ikPDtKyvprfEXcBdGDF/r0eDHii+n4GL+a1T4Fw9lRU7b3frVPU1ZB3bLV8luqszH+oBuvnwbiJ/r1EITzEOqAVUXZfQPJSEb/uSrD1Q;4:22kC12+BlS2zPjujQ+8IpgEdV7zLS13itfnUYTJSUkqsR3FqQzVRbJALpNtbOtPQyO3MwkwF6PKpagWhqBxLmfulqHVeMgk7ue2pR8D55R4xLqq5rEKgmgvTdphbsYcxWHt2gJpyDmRB3VLrV5LFznzfFrbDx3IM+EfPTVM2OCFQddFd7op3hDoBd7d7E/apiGXZxjmIjV3XcfGh85aeZ9v3h4cYnncj/lCIvXaP+qp0CNGqCwMgvHdrRDef13DvXsxLCmQgUw950mwH+RCWj3ZHeWk2x0Vf98ibHKML7JYNjFoxF6OwM0S3CH5SmXOzgo4LE/ve4jMUP19GPZoLHzmjGh6vVCjxjfxL8THSpf4272wBZafCk/KoEiDPcVkV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(190756311086443)(15185016700835)(217544274631240); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:BN6PR12MB1713;BCL:0;PCL:0;RULEID:;SRVR:BN6PR12MB1713; X-Forefront-PRVS: 0639027A9E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(396003)(39850400004)(376002)(39380400002)(366004)(189003)(199004)(86362001)(6486002)(478600001)(386003)(50466002)(65826007)(68736007)(31696002)(65956001)(65806001)(6666003)(230700001)(6246003)(6116002)(25786009)(229853002)(2906002)(52116002)(106356001)(64126003)(6306002)(105586002)(76176011)(47776003)(5660300001)(2486003)(23676004)(36756003)(52146003)(31686004)(53936002)(97736004)(11346002)(54906003)(186003)(16526019)(52396003)(4326008)(446003)(110136005)(7736002)(72206003)(81156014)(81166006)(8676002)(46003)(2616005)(486006)(305945005)(67846002)(476003)(58126008)(316002)(8936002)(966005)(1706002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1713;H:[IPv6:2a02:908:1257:4460:1ab8:55c1:a639:6740];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?MTtCTjZQUjEyTUIxNzEzOzIzOk45c1k0U1FMUzhJdndUZncyYmFxM0tLd3dr?= =?utf-8?B?L1BwREo4ajlaM2hmS1lzMWxpcVR5a2VrbmFOdzRQK3BVZTYwWlNTZENiZWlr?= =?utf-8?B?S1J0UDBITzZIMUxjK29oYzV1TWdlU2xBUWZMajdBanNjRllHbVJoSHRrbjMr?= =?utf-8?B?WUJnRUZBQ3VCWnJ2cHJhNVhDbFF2cGQ5b3N2SnpzdXh0TTdNN1F4VEdJZitn?= =?utf-8?B?L29MUGtVUmRU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Eb2oDHRgAHc+vazxqm+NEn8XMnI331BEqiGrT+tv/OSakubSr0ixDJk+i8U7AK/2E2pP0TEh95HvNxHf/CGD78O+A2AlFpvat/T7LMBHyG9E42 X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1713;6:lOnaGhMw8qGt776r2YedCp1iiuCGjGL6QRByEn9r3rcRXCYZb/sd8MCxffbsy90FKqpfsAwxlqXLwggtTe9jDWw0Rg36dgoGL8PBE3sRUzcIaspCKu2WwahZoxFNC2Wu1uxJ92GKgs7NCLp1p0PqzslX8NSWkijfMCTcDSmoUczQTMxK19SkXuk0CNhQZFDOwoBdr6HOpI4oCZMN010Uil7no0b7vAo5ZYveprkWJok0XK+Q2pQEvwd5waDS0JpSb3cQ3Sj3iDKVODsZpcL80hDxJo1EeEdp7Ywsc4XqUFjx05PRNr7OO3ATZqkhTKcTto56CWUhm3MK/C/zjmoMudfVvsLnAtKIJ6/qIlXN9SSBjKkoEgu/t9y01vUrncWsVQPj1kJs+16mqE1BCaRz0kvZ/xwrjf2ppAMzM+66SuoMWyfoJGm67FuZCioaMqYXc5LMvAbkOdhC2O3S8qMyGQ==;5:CCgWURc4ByfHAq7286z+5diq8G6cNKf4aDk5p8bQWqc2L8Ga4ElwdzOW5lWYFo5d5YUP05xB2P7Ef5iWIbXJO32g3fHopupsNQpwhtZNUcsM/xh2K9dsFQwRyi0bTYqHNpFM/TgCB5sNltGKd0vZhCS7VmiyM9+2AFzFvXDajto=;24:w++I/3DAKpgicV1Tx6L+nxw5bZQVIOgU9PHRuyJlP2QgMnBHANZ797E5x3rzZrKvSSxAoRNGEw0xGaknt0FTVkgu4xSwxFckPkS27Cmd3QQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1713;7:pwPFdIFqUl260VEXq3Oko3ZiNbxVpWoUwsoEeJsTw7iUWNjQyWd9/bNAp943JmO69X771smceycmz/0/i8Sb9WGSfji8U175LJwPlnSx5IuR3b6RD+qRJ992hKG4GbFSm18Agkzm1Nr1402FxMuXg6zIIPnvd9nJme05442fMcAqrSFsOMdxcFjmTg25vdtsSz6kMTobjFhW02GjbgOPTTlW1eWDXbRPFkZ2KXFgn/sMJMg9NpgUSU3Wq3X6JXlB;20:Vvm3/Vkfw1znOXkm0N3Cnbt5tOH98wdQcDXPmhFb3765PXPx684tox0LPXj4HTRy7/Ed1utPpH/rxIs5BpPnlZd/32ihJhx+I00i8MFh8PbV5hHOoHzkH5StJ46siQxoDIgAhIwUfLm2Osv7RXO9jjGJjXpcmhbEDr4PG2wRUsf7vR1eQwNsmtYDQzzOtTMg31LOM8GPtFp5aTAhKwcGFLlPC+BESNWPS66FQGFLkOsObet7r58K1B1Wb/yvo/od X-MS-Office365-Filtering-Correlation-Id: 5a17624e-c117-4013-ff40-08d59f8d0516 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2018 09:17:14.0829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5a17624e-c117-4013-ff40-08d59f8d0516 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1713 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 11.04.2018 um 08:26 schrieb Huang Rui: > On Tue, Apr 10, 2018 at 04:59:55PM -0400, Sinan Kaya wrote: >> Code is expecing to observe the same number of buffers returned from >> dma_map_sg() function compared to sg_alloc_table_from_pages(). This >> doesn't hold true universally especially for systems with IOMMU. >> >> IOMMU driver tries to combine buffers into a single DMA address as much >> as it can. The right thing is to tell the DMA layer how much combining >> IOMMU can do. >> >> Signed-off-by: Sinan Kaya > Sinan, I guess Christian's suggestion is to add amdgpu_device_init function > like here: Yes, exactly. Looks like Sinan just tried to place the call next to pci_set_dma_mask()/pci_set_consistent_dma_mask(). Not necessary a bad idea, but in this case not optimal. Sinan please refine your patch as Rui suggested and resend. Thanks, Christian. > > 8<------- > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > index 0e798b3..9b96771 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > @@ -2339,6 +2339,8 @@ int amdgpu_device_init(struct amdgpu_device *adev, > /* init the mode config */ > drm_mode_config_init(adev->ddev); > > + dma_set_max_seg_size(adev->dev, PAGE_SIZE); > + > r = amdgpu_device_ip_init(adev); > if (r) { > /* failed in exclusive mode due to timeout */ > 8<------- > > After that, we don't do it in each generation. > > Thanks, > Ray > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel