Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp890600rwl; Thu, 10 Aug 2023 03:21:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElBk90RmltNF9dqs8N0Q4kSr1ZVZ9ipelSH0BRWLeUFlq0fj7P8cEY7xeIcpqXqi8A3g0u X-Received: by 2002:a17:907:785a:b0:988:f93:32e8 with SMTP id lb26-20020a170907785a00b009880f9332e8mr1563259ejc.26.1691662865494; Thu, 10 Aug 2023 03:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691662865; cv=none; d=google.com; s=arc-20160816; b=Rb8fpLzI9icvYfWWGydozwOeeNR5wFstRREwBupRCz3Bvxb9fJ09KUI2ty0deNTgvt Ve27udO0YXATzkD5nZt/4aGInHMcSfhIDnQQco2UBhzrXdNO5phWnd7OsQCJSZvBc4Nw DpHZ5rmGx5NYpVxDo99QAadBOtWBjcTE6rijopiHFlccmVaODO+DCVz+lVNx/f3LN/Bl LuQPXT89hE1lRrYG9WRS52Y8ER4tsJbCdsj/wg6JBBD+XdP2PI2n2KyW5bJkPri7O8LM AIqFc7CpOVq6yRlfxAZrgAP8Ip0ZqKoNJ7Wft+5bCaYglzEA2vTmzSEoI/t+ceRDHzUg +qBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2enRZDO/3d43e4IvVmPuDldAcx6pXo5aFK0xFgVCOB8=; fh=Dul65LBUy6mXY9LS8W4Hupexfi/C5G+CyX/WznnnlIY=; b=ebCrO1gKR2AFDaBF+JxLgzkaVnXrF21OG8CZ8L48+wDqfXNNbyO5NRf0ZVpF0/NVis WCWiephWws8KN8lcxgn6zU1DX5W2eCTjA1OceHv7Rm924dmOPQBHwpVB65btAlpVHr8S X855gpWTI6okzTCUL9Ff/pvKNuCyQK7w0J0a/CFctgwMDN+Kv+OUZaSBbb42D43zr9ez /zKno0PSjLSWG8oNzSPHcOhS8XZ2MZwhk8N3ovK2OicQZmu4duRY02kBl1XkHrsZVSoL YTlWct7YZJCI7i2NJ5xAs34rB0PB+6+on7cCwInfCnp+2B3oAO8sdLP1xyee8O6iiK16 XFbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A10A9URA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qt10-20020a170906ecea00b0099c05358e73si1279026ejb.688.2023.08.10.03.20.41; Thu, 10 Aug 2023 03:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A10A9URA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234819AbjHJJnn (ORCPT + 99 others); Thu, 10 Aug 2023 05:43:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234596AbjHJJnk (ORCPT ); Thu, 10 Aug 2023 05:43:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDF002127 for ; Thu, 10 Aug 2023 02:43:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 851DA6564C for ; Thu, 10 Aug 2023 09:43:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D207C433C7; Thu, 10 Aug 2023 09:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691660618; bh=tdZvvunqI2kWKxGbLVgNcUUq5A+ZAKwbvFYIFUY+NYg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A10A9URAFmjsDxwciW/ZOY590dKY4C3OAB2pDu0GmmbEFWmD8m5rbBGgHI2EQnPEs VXFVk4MKY9hgaiqUcRi13WLXWoqhmGYyNeW2qAIzhxUBJoCPY4/cMyeZhaYxEHD6Ow /ArdVEdttCJTQ/Ls+YTtHTewM6ZiZoTtKJxQRtsFFKxENRXLXQy9M0dKTOK2U3ykCp 4pJShizefWUz6/aFRqImpflfZzQXFe/e7iA8+f1IhIL4bitf5zEg5C0psL20VLXU8S 4hK+hrfBvB+a6Caega2jSeCQJmD5Zsixy2ZCtNTUmfkFGokpqo+3lbR84cqwdhsbpS zjNCm/X3bjiEw== Date: Thu, 10 Aug 2023 10:43:33 +0100 From: Will Deacon To: Michael Shavit Cc: Jason Gunthorpe , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robin.murphy@arm.com, nicolinc@nvidia.com, jean-philippe@linaro.org Subject: Re: [PATCH v5 2/9] iommu/arm-smmu-v3: Replace s1_cfg with cdtab_cfg Message-ID: <20230810094323.GC5365@willie-the-truck> References: <20230808171446.2187795-1-mshavit@google.com> <20230809011204.v5.2.I1ef1ed19d7786c8176a0d05820c869e650c8d68f@changeid> <20230809134941.GA4226@willie-the-truck> <20230809145542.GB4472@willie-the-truck> <20230809162254.GB4591@willie-the-truck> <20230809162749.GA4663@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 10, 2023 at 05:33:53PM +0800, Michael Shavit wrote: > > > > Sounds a lot like the existing s1fmt field. Can we keep it? > > > > > > If you are OK with the dead code, I don't object. But let's put it in > > > the struct arm_smmu_ctx_desc_cfg. > > > > Ok, we have a deal! > > What dead code? Is the deal here that we keep the field, but still > infer the value to write from (cd_table->l1_desc == null) in > arm_smmu_write_strtab_ent?? Keep the field and write it directly when populating the ste (i.e. don't infer anything), but the field moves into 'struct arm_smmu_ctx_desc_cfg'. Will