Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1749801pxb; Mon, 23 Aug 2021 03:49:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLYBJkKdi1Xh6vpYjisJeaYCRBiP/aLPAxcvlEuoYtcyFNpRxF6WIy7KK5r7BT2K5t3Spj X-Received: by 2002:a17:907:7f29:: with SMTP id qf41mr1919198ejc.211.1629715786179; Mon, 23 Aug 2021 03:49:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629715786; cv=pass; d=google.com; s=arc-20160816; b=M9MWr9nr1MxEp/h5cub4yaJIDBEMxdt1qCNBFQxov2JiEdCMyMiTAZj+M1ToBdkfti FcwXrmh4bpLSYfB3kwUXaYhroavWYm/uhWqXxWGcVppNVlk2eB/t6ykv/8d4HyfSw98+ 7Od3MtQ4QQ4RulUoqZ3FVFlKQQwaYvcEN/rCrPsSwYwvdGK6hvimBDkWyIs+6vRV9rrg e0ApYWD4fUDj0MNWoA1zZbpfhi9a+a9IevrfCVLL5+EAwIwGkj26sVt8N7IqcTgqxsp3 Wt8Qob7cj0ilVFnD3DJ8tx+R4VFZPLE9v4xbr7k9m9My7vvz0rx2IEI2eBU7GPhBJpu5 2KQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature; bh=jAWyKnStuSZVwMQ0rpMNgYdTk0O9QO6RQ3WQsvQNriw=; b=wlTyyM4b+GxaIMHDYEvw5u9RSFwLgqboymhIEazSv2USifHO2rnt27ChwB/sVSINPD +BkMIpcxtl9PVbtz3EGI2aF+1uRsXU++IUdo740XHpnx5/25P/aFjNfQJhMgVEon3P/E XpeLe3JibGrdJSTjOJ7CJ1OBfHexqPs6F9jmlHTHLngRxQhDa5DTu9AeGpQH3LmaLU5r 67PPurz7AN/iOicU+9RqMr13p9krqEwiP+6zbnZfGlQy9UK3I6sBAnlzxVdInB8jNUlz NN2pnplv2K1Q7Ml+mHy9alSpRjc85wLSW8YL/heoMEfDf8RiNtXVAa4zKIF2lA6aPHCO EmHw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=Ff1PGOk0; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=nwheN9fj; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=crZ2vob1; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm14si1759796edb.315.2021.08.23.03.49.22; Mon, 23 Aug 2021 03:49:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=Ff1PGOk0; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=nwheN9fj; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=crZ2vob1; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236219AbhHWKsT (ORCPT + 99 others); Mon, 23 Aug 2021 06:48:19 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:11888 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236171AbhHWKsQ (ORCPT ); Mon, 23 Aug 2021 06:48:16 -0400 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 17N8TLpW021813; Mon, 23 Aug 2021 10:47:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2021-07-09; bh=jAWyKnStuSZVwMQ0rpMNgYdTk0O9QO6RQ3WQsvQNriw=; b=Ff1PGOk0viaTacyzvJIawxK+IzEWdhwX8KK+M1urxVmYVU62UuS9DZeLIDsR0n/FaEKn DE41WSfiRmdBkSANEGEEneE5YTrcVISDO3SM+Epkb9bvZA2n3Fj1FJiLMbZK7pYqsBSt 4cD55pcp0E6+5GF9rdzyoBn1nY10hRZSCSmKkzzdrno+MUQfPM2Ek728Zfn9qFF4xX8f P9wCtMyC9slqHM4jhusjwURZfMdFFzXXrrcvFW48PoVnlDBVkx39r6ZXPOmMoN1qAR+2 ml/V1GZhxKCekhXaGnEq+yXDvkeqErbSNcTyXoAwSMLTH9b7+aUGMS5dZ4D5mvPTRoF0 Xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2020-01-29; bh=jAWyKnStuSZVwMQ0rpMNgYdTk0O9QO6RQ3WQsvQNriw=; b=nwheN9fjyBiHhLv2tN8RMOlcL4223le/hUsTrVFK8Ehs6OzT+wOigtzSX7wEYuPLAlE6 HtilE6vTTtptEtXK7dUF3VtJn6/1Rcn972swoTfrwDscSUTRkSwEfGP7wGYNvDgnI/Co joF62BHJ1SEdywcDB4Y0HEXFovB/Jf14JCl9FjWsx6GbNDzExpFOKdyWXE2PRTwd6Emv TODVLenAmGGttT9HHg/lBt9B0zdUC+jaqSBugiEyh3vKtv3tED+Hau/vnrVSDxI4r1el UqSlUKxLZyv247rnGdgxZdb4pCuvNfHMVFw41KYrlAPjIY2b2o+P+iNmcwSLXy1ULhA5 lw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3akwcf93jb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Aug 2021 10:47:26 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 17NAjLQ7074130; Mon, 23 Aug 2021 10:47:25 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by userp3020.oracle.com with ESMTP id 3akb8sfabs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Aug 2021 10:47:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ijx+aHHaxJ/fP4TljTLkKq2zbeLuwRqvVO7E4xQQDGyrLeU243w9IgUuSkLfRr/TRYDGTDvo9G9cO0w0yMj3DH0qROJFO/ATBYlUe4K+YJM/AGZM2999q4sqWNF63ZkHY02V5yJgxCxKebHC04Fx/1pMPdOrBOMK7tJ0DAN/lnJiHn5lmYmwXV/psJmpflsWPQDA4nMYFzR+MxOGW9PUoZ0BbgwVCUYM/UWBbPYRS0YYK4mE5WRTEJ2F2G+QO8Pvn0BBRzKAJ8QOqB7cuDnMFUM7kJ0gNpYERYwvDRPF3zCkxYu6fPp9aA942cvIjBNUQPfx1YWdB5OWxwItiLTT9A== 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=jAWyKnStuSZVwMQ0rpMNgYdTk0O9QO6RQ3WQsvQNriw=; b=jTzU5SOY9DJDP+7gMKbQ+htuv7VZ6PNCSQTLLkiekzzIinIZpy6nHJmUrMZ97ghW7TgC7HU/54kMO2H5PdEx6+69wqynkH9RzSWipnySu/aGvlJ6OQDdSu9o3h0CHDXCwns06pAPQQ0bYbWv5qp0C3X+ZzCeJGlQI22ZqDrx9AMiptVuSIDh+UlKLYZKLQi53oASezGwfzU4Wxp9HsmQV8JCIBvX2f4XrxICwwRXO/a0n5on5EyvNWqRucbwUpkE2eU4E8B72fhyXhthh27fKVhH8I5cH12XYPXLTuwwa7ZCIgKuvMmINuzvwhr8rwyiuTCVbEJi/tP2cZZNMGM5rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jAWyKnStuSZVwMQ0rpMNgYdTk0O9QO6RQ3WQsvQNriw=; b=crZ2vob1uOAEgWG+pD6MU9hHk/qTq0mSr/qKDD8HlbnD6SQRWNtywT3q7hkoSIkUvvBp1kk17++AAqIcgq/YYSnVkEdgOuYpzo+Y8tC68UjSCRjb9wcslVsLShRq6viy8MLfoyxrHi/odrLMYvBiRGlxZbqWqm+kKvmbqxT5Sx4= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oracle.com; Received: from BYAPR10MB2999.namprd10.prod.outlook.com (2603:10b6:a03:85::27) by BY5PR10MB4356.namprd10.prod.outlook.com (2603:10b6:a03:210::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.22; Mon, 23 Aug 2021 10:47:23 +0000 Received: from BYAPR10MB2999.namprd10.prod.outlook.com ([fe80::cdbb:4673:98bd:7f2c]) by BYAPR10MB2999.namprd10.prod.outlook.com ([fe80::cdbb:4673:98bd:7f2c%5]) with mapi id 15.20.4415.023; Mon, 23 Aug 2021 10:47:23 +0000 Date: Mon, 23 Aug 2021 06:47:19 -0400 From: Konrad Rzeszutek Wilk To: Will Deacon Cc: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Claire Chang , Christoph Hellwig , Rob Herring , Robin Murphy Subject: Re: [PATCH v2 0/2] Don't fail device probing due to of_dma_set_restricted_buffer() Message-ID: References: <20210816132618.11707-1-will@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210816132618.11707-1-will@kernel.org> X-ClientProxiedBy: BL1PR13CA0163.namprd13.prod.outlook.com (2603:10b6:208:2bd::18) To BYAPR10MB2999.namprd10.prod.outlook.com (2603:10b6:a03:85::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (130.44.160.152) by BL1PR13CA0163.namprd13.prod.outlook.com (2603:10b6:208:2bd::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.6 via Frontend Transport; Mon, 23 Aug 2021 10:47:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14330f43-1219-4cf0-1c49-08d9662363ad X-MS-TrafficTypeDiagnostic: BY5PR10MB4356: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:962; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AlLtrbgEyZa13jbUMESbBX0x8V+x4B4lGyWWR7dQRvw70gBnAyT3aB9KSin27Ydb7yfwa9QPfrNWaqQUB0X0D5nrwX1TfeBnK0FZsTMw9HteMznmVsXnVS9fnCbCQa7HkDzYWRk8qFgtj8I/GHYVrS92+1kvMyAq+Jz1KNaW169CaSLwConBHcEA0IDo6hvVNwWzhHfhC2hFJLnr4VBvRbLc7ELTMPqGatHAmRB7cbuau9xqeuhbfMTRZHifitB3cfYy3qq6kijbWxLSbUuzpP4MKvCzE2/j9watIT1BjskwBp26/+LvuP7orh5Ze2zEt3D4lNz6o/KGBK75O0u2/fHAZVzO3whVz8wDERsLyJgelvwKwM7eAjoWcmaTy+T88aFqI4mhsoGYdgcnL4TI1fDRDFgiWdYSaDsVebT9raLZUSjkHNZxCRQeSC8dNgVGSvZdfi6dWe9TEoTXr20cEL5ExDrHgB636olp/DV5/FaExLSCWP4Qh7VlWTaHO7hnaPcndjzWwCsXj/+kgVO/E5euKRswKBspX8k0DNnKc2jYXWR+HqlLic7FSCqEnHyovUYfsyUEO5F3ugNZ4V+3LjBCvQxGnJE5ULP/wPJLBP/8yOEuRD2yaJI/uf69dd+aNynTBofntPCfI9NKN5hMgsPQc3iKIq/tXAKM+MhvwFk9On0pVyeCY55OMpmJImgvs4e3vflp3XCksoIWG/6nsoXBi7jcb9cewVgi8s8S9JxwIQ0ojRHtQwF64Iyy7SNzIiAocTz6fXkhq2KXzGFwKgQ+ij7+fkn+9hhnEd6pyQHMT6qxGjgOtMT87lvsPnyI X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR10MB2999.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(39860400002)(136003)(366004)(346002)(376002)(396003)(4326008)(186003)(55016002)(26005)(9686003)(54906003)(38350700002)(38100700002)(2906002)(8676002)(5660300002)(6666004)(8936002)(66556008)(66946007)(6916009)(66476007)(956004)(6506007)(7696005)(52116002)(86362001)(478600001)(966005)(316002)(83380400001)(67856001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X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l5u6wpq6NMEgmJHAwZV8eEvoUIvRzT2iIx5p97g/Uca797r2WZW4bW?= =?us-ascii?Q?J021m6HUvzP9W6nJWemoi6Rpdbyo0PXaRxzu/lnKZBvKvzeNydcjcBRek+Gm?= =?us-ascii?Q?r8rGXrVrJyXLsptiLTxms8iG/eCqVZhQxjXFzZQkVFuPRVTjRlGTG7Hp5pHS?= =?us-ascii?Q?FijAAYVJWXnknXbcNxuxhrEOIxIFrMNSI+WoY05oC15JnKBAE2/8tNZUOiAc?= =?us-ascii?Q?sah1n9vI5oywntw8zTt/WEA/AU7YLDrEW3j6g72xeQIP9flFq0ubmzdtrSY3?= =?us-ascii?Q?GqyrcyHonDf/LOdhNrr27NVSobgprMIIbxP9jytmW5SmvQb4jyr36ZrSZYwf?= =?us-ascii?Q?3Ab1WxLouMP87ZKzUhcCoFPr+NOpv63KuWl+TFGZlnqMAi7GAJrnaHwxfuoS?= =?us-ascii?Q?lDVyrHvaS32VU5ZkMJke977OZJtwBB6hGxRrv7LVbWkaJKjT8QHRNvI58iYj?= =?us-ascii?Q?NAdcWQGVGRfqvMLe4/FS+hBD?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14330f43-1219-4cf0-1c49-08d9662363ad X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB2999.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2021 10:47:23.2983 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XU3oH0KW12Jx8/1zIMPCS+8P5YpbBGCmTlb6cdx4GP8ENdxTlfTNhAFQxvlSNpVRV3/KyrU6Rn09r/Iq/CSBXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4356 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10084 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108230071 X-Proofpoint-GUID: 8FcG56PY2XdXcLFpiKhYNGe2zjq73Xl- X-Proofpoint-ORIG-GUID: 8FcG56PY2XdXcLFpiKhYNGe2zjq73Xl- Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 16, 2021 at 02:26:15PM +0100, Will Deacon wrote: > Hi all, > > This is v2 of the patch I previously posted here: > > https://lore.kernel.org/r/20210805094736.902-1-will@kernel.org > > Changes since v1 are: > > * Move of_dma_set_restricted_buffer() into of/device.c (Rob) > * Use IS_ENABLED() instead of 'static inline' stub (Rob) > > This applies on Konrad's devel/for-linus-5.15 branch in swiotlb.git It should show up later today. Thanks! > > Cheers, > > Will > > Cc: Claire Chang > Cc: Konrad Rzeszutek Wilk > Cc: Christoph Hellwig > Cc: Rob Herring > Cc: Robin Murphy > > --->8 > > Will Deacon (2): > of: Move of_dma_set_restricted_buffer() into device.c > of: restricted dma: Don't fail device probe on rmem init failure > > drivers/of/address.c | 33 --------------------------------- > drivers/of/device.c | 39 ++++++++++++++++++++++++++++++++++++++- > drivers/of/of_private.h | 7 ------- > 3 files changed, 38 insertions(+), 41 deletions(-) > > -- > 2.33.0.rc1.237.g0d66db33f3-goog >