Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1237337lqo; Thu, 9 May 2024 08:18:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsR/X03WdprMKZUjbWKkX/mM2y8sBNEOyx/jJgxM+TjTR6HpR8Q1DPHlUt3tMJ+yb1KpMoEgAHR0dpgCk3gzfIswWEuFdqn85O4n0DTA== X-Google-Smtp-Source: AGHT+IEvoR1Ibl5TKTBWwet1jD0i4ER8gq/FHHVJ9vVdWxg/l//9+TkH9QaAoRFDNwtTp3Hky21v X-Received: by 2002:a05:6a00:3b15:b0:6ed:cd4c:cc11 with SMTP id d2e1a72fcca58-6f49c2786b0mr5923458b3a.25.1715267896410; Thu, 09 May 2024 08:18:16 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a964ccsi1651531b3a.103.2024.05.09.08.18.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 08:18:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RPj0EA0B; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-174624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174624-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AE4BFB22A68 for ; Thu, 9 May 2024 15:17:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B902915ECE2; Thu, 9 May 2024 15:17:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RPj0EA0B" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FF0D131750; Thu, 9 May 2024 15:17:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.19 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715267857; cv=fail; b=OqQbiCVsJlyBYfwhkqrURwP3vrbf00HpR+UNi+kGMPz1CEeqP0JoRtVxy6N860eKl29oMY6j5NylOwWll7y3uWNCyT1VHXODc2AJqpzLm62XD2LushRXkEMPbQjwTqt+TpFyMzz399AzdW3nyk0OVyWOb0mblvcD2DNTyJjVXus= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715267857; c=relaxed/simple; bh=AELbwE+favAMwO5kBIPPRY5rr+UZSjKE4JpVFLIjBWs=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=pIF6xwLXKrOAxGwd9dqCaSkpueq0pmivljtySeaDfeUKeOWU1eV79Sa6y1gAeedQjRr0tn6AwHKsIXyfDApc8ci1vvz4LZpWe9ZzS9alJ3WD/WDw2Llw7kjC+F/PaywOPWyf2K7d0g+0xjMItPK95Fcm0KYoq53pyLg64Y4rOyE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=RPj0EA0B; arc=fail smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715267856; x=1746803856; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=AELbwE+favAMwO5kBIPPRY5rr+UZSjKE4JpVFLIjBWs=; b=RPj0EA0B2LRpR7SlghTNMbNzXcQRITl/hBNxKXib7cLhygKnmPJaIDtn EUWVK0OerWXCVYxJ44ZyzonCk3WzUmrtu0ypO6cMjCW426ryvN+/jQ4sa h+6niMfmWGYHTlvD91qNy1ICJ/nTzyggd7KAxvE2ZLUdq5DYhExfs1Wbl 1URMp5DTEE07DdArgQ0z35u6DV9yW0jrvow9ypNALV4ybSgJuOwlkBTgZ Y5PspESWRg/vgvit94nKaYPPsu8oV/Jg6lIx1ksceTrvoe5YGXn/UbAlZ XfbU3cvdwlXm1mt1sH3huzmhFYtummwPCuK5N9at73XmM9o3OquCVPO23 g==; X-CSE-ConnectionGUID: y/FJtl0PSlqlmD9In0DgMQ== X-CSE-MsgGUID: RofHo4M2S1iKtSTE+P91nQ== X-IronPort-AV: E=McAfee;i="6600,9927,11068"; a="11044239" X-IronPort-AV: E=Sophos;i="6.08,148,1712646000"; d="scan'208";a="11044239" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2024 08:16:59 -0700 X-CSE-ConnectionGUID: V3fImGyXQlmjU6JrUddT7A== X-CSE-MsgGUID: XMTq+TsXQa6+Aq909QFziA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,148,1712646000"; d="scan'208";a="29344358" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmviesa010.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 09 May 2024 08:16:58 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 9 May 2024 08:16:57 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 9 May 2024 08:16:57 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.172) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 9 May 2024 08:16:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WdicS77Zoli7oq2gTPATBAlha7WaaYLobFlHTXZvOEhkxT4yIjOprczTiWzi8IMComP3geMtzTojmCwHno0ZAuaDjaVwmgy1dODmVMfasXaTLLo3Yx6RSjvPG8r7Ujmp3cD7zvczFAQ9RTHgaYCD0yE94UqJoc7dlRYqFNwpKgzKUJ1B7lpj/quKT6qoA0+DGWVtPpf/7+hMdTdi6Ewasq66wI5depNXOIkPuEmIJ6s57vnuUIkE6yJ8cHkz0okItieNRJLOn/pMSoD1N8WTSbux7vhR32W8KueYU1YztSq5cwxe2LWYS6lKSqYLaPFBLEY4JSy257J7Ohq5afE+xA== 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=suk+n7O+UjtRQyjBMReIbd4roa0gjZ2RFP20NruK03Y=; b=QRt5eN+yHA4kwKUwAhWt81Kd4s3am1DyA8mPP0SrANEcrPNeAkbCwnGr7lqxcUGGkW69GJ5op4NImnCQcLs9qxDHRsJarTKcBBvbkP2XgBaPJaAed3+rMxLfLKC9p0bJhqY5u+j/QfDaZ0B/Z8thqrbCvGAbtz6jZV0XzseTF3Iv3vNcJcSpAZzw+mJ4nKIe4zdYcIaGILLyoFggd3Qhnoq0EfLLc327lWgYqjCs4QN9u8ncKcW5Rq8y1GDgMGQqa7OGAAsW2EH3HTZvB8FLaVSHsZBQVq/KUXPy+2ejhwuQIDnVClPDhoCGRO4eqYU19/VEdA1KQqvKKwi1jcakBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB8718.namprd11.prod.outlook.com (2603:10b6:8:1b9::20) by MN0PR11MB6181.namprd11.prod.outlook.com (2603:10b6:208:3c7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Thu, 9 May 2024 15:16:47 +0000 Received: from DS0PR11MB8718.namprd11.prod.outlook.com ([fe80::4b3b:9dbe:f68c:d808]) by DS0PR11MB8718.namprd11.prod.outlook.com ([fe80::4b3b:9dbe:f68c:d808%4]) with mapi id 15.20.7544.046; Thu, 9 May 2024 15:16:47 +0000 Message-ID: <6ce428e6-3585-4ef5-af08-debef0a7c308@intel.com> Date: Thu, 9 May 2024 17:16:13 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] dma: fix DMA sync for drivers not calling dma_set_mask*() To: Steven Price , Christoph Hellwig CC: Eric Dumazet , Jakub Kicinski , Marek Szyprowski , Robin Murphy , Joerg Roedel , Will Deacon , "Rafael J. Wysocki" , Magnus Karlsson , , , , , References: <20240509144616.938519-1-aleksander.lobakin@intel.com> From: Alexander Lobakin Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0001.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::10) To DS0PR11MB8718.namprd11.prod.outlook.com (2603:10b6:8:1b9::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB8718:EE_|MN0PR11MB6181:EE_ X-MS-Office365-Filtering-Correlation-Id: c989dd9c-3a0b-4fff-9172-08dc703b0b44 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|7416005|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?aXk1TkVWMi90ckVsSlhFVDE5c0dvSlRVbXVUNzVqcE5FZnRqejhPUFhlSzAz?= =?utf-8?B?Yy96ckptbFlxVGZxdHUza1ZjTjcyODR0TlIreThKL3YvT3h5SE1oVFBxZ0Z5?= =?utf-8?B?cVFRVWVzeXArZ1BwbTc5aEVEUVVCMmROTXVOTkN6RnJsdWo3S1E2UkJQWDFH?= =?utf-8?B?L0tyTUYxckd4K09DK2pKR1dxV2greWR5dEQ2N2xlVlVSdTRnVGNsREUvMS9Y?= =?utf-8?B?L2tnSTZJblJMVHM0NUU2Y3JVcUxOY1RMYkxDSWVNVFIzUTV0UzhNejBGNUZ4?= =?utf-8?B?MVFKeXpMRlMwNmczN3pVclVDdlkrOWtzWEJjVk5mc3dRZ3hEbmtaRmJISWd5?= =?utf-8?B?K0FmOENBQlNwSFJPN2dCZXpLK2xKUHpibUNsRVBlVjhlMll5QmFYemF3QlNh?= =?utf-8?B?R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PRXVr?= =?utf-8?B?YnN5VkJnbFRDVUZ4RmhvY0NOZTJCYyt5ZUZsZWd3cndaSW9xM3BLK1Z6Z2gy?= =?utf-8?B?ZzQ0Vytkck96YkNDZXYzOFVnR2RHRE5XeHB0enp5eG9Jdm1vSVY3enlIV0Nt?= =?utf-8?B?bzd6eTEveHBOK2R0UW9jcU00NURIcnN5emtWNE5ydUFiK0x2eXBwMUdGd1cy?= =?utf-8?B?S2JOQ1RSWGl1ai9nZ21tdGdBdTU1dkk5OGE1YlVpYUhHQXQ2VzlJbTYwK2dM?= =?utf-8?B?aEc5L2Z5VytYTm5xZXhHS2VJR2xUdy9ERFZtcHFTV0IwK3lramR5eWNNQWlH?= =?utf-8?B?VXA0SDZjN1dRYVdPUmlscDVtVUNjcEk5K0xJUlJCdDdGa1k5ZVFyZWJ4YVZ0?= =?utf-8?B?UERsZzJrYnhWemRRSE1CSVBvc2thZTQwbXRmNHUrMHlYMnpiR21LQWczOVIy?= =?utf-8?Q?B5uwzLdwg2koctovMg=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB8718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cGduY2RmcEZRMXV5YmRhWWVBWkt5KzFFd1BGTjhBcmZOWHFOenhZRVozOWxh?= =?utf-8?B?N2c3NHRVaVV0ZTVpTytibU5uaVFtdHFsajBZU3BMQ0pabS9CaWk1NGdXZENY?= =?utf-8?B?ZmhBTkRTU3lRQ0luQmV4aG5mVjEyN0JwNkV0REpZM2lOU0VyVS93alRsWDlD?= =?utf-8?B?WnJ5RnZyTWNtMjI4ZnhzM0N0TmZGMzFQZFJmaE1qUFdkUy9qT0xhdGRhTGEx?= =?utf-8?B?d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Vlbm9OT29EcU03TkJ3MTRrdDgyOTI5ZnZ1KzdMQUU1?= =?utf-8?B?cTRKcFUySlE0VHVLR2h0UFZEd2ZjdFNBenpLM1R5OHN4Mi9Xc3p2MEJrc1hG?= =?utf-8?B?eU9HKzNJRi9LNWp4bVJSeEliMUNOVXlGQ3RSUjZlczNIdU5VKzF6bFBZdkd2?= =?utf-8?B?ZXc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: c989dd9c-3a0b-4fff-9172-08dc703b0b44 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB8718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2024 15:16:47.6991 (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: gEoQ7w6ldGW3gN3BHtAq/IX6946AdSrlrcYNz1wzj5WmqXqvUtj5gRrezFNj48fSfvh/twgOZxt9XPQyQ0NzYUCbQMMVWlWCUzgdLuMt5Qk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6181 X-OriginatorOrg: intel.com From: Steven Price Date: Thu, 9 May 2024 16:11:26 +0100 > On 09/05/2024 15:46, Alexander Lobakin wrote: >> There are several reports that the DMA sync shortcut broke non-coherent >> devices. >> dev->dma_need_sync is false after the &device allocation and if a driver >> didn't call dma_set_mask*(), it will still be false even if the device >> is not DMA-coherent and thus needs synchronizing. Due to historical >> reasons, there's still a lot of drivers not calling it. >> Invert the boolean, so that the sync will be performed by default and >> the shortcut will be enabled only when calling dma_set_mask*(). >> >> Reported-by: Marek Szyprowski >> Closes: https://lore.kernel.org/lkml/46160534-5003-4809-a408-6b3a3f4921e9@samsung.com >> Reported-by: Steven Price >> Closes: https://lore.kernel.org/lkml/010686f5-3049-46a1-8230-7752a1b433ff@arm.com >> Fixes: 32ba8b823252 ("dma: avoid redundant calls for sync operations") >> Signed-off-by: Alexander Lobakin > > Tested-by: Steven Price Thank! > > Thanks for the quick fix. > > Note that the fixes hash (32ba8b823252) is not the one in linux-next - > that's f406c8e4b770. If the branch is getting rebased then no problem, I > just thought I should point that out. Oh crap, it really should be f406. Wrong tree again >_< Chris, would you fix it when applying or I should resend? > > Thanks, > Steve Thanks, Olek