Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3653537pxb; Fri, 4 Feb 2022 13:20:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeDXuvXSPpQP9WanwMEfxMNIquXIgcJAKu4Y+HStyTwwWH0itiR2T6KSj3Yh8F+2YSRM/9 X-Received: by 2002:a05:6402:1caf:: with SMTP id cz15mr1095064edb.61.1644009624024; Fri, 04 Feb 2022 13:20:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644009624; cv=none; d=google.com; s=arc-20160816; b=tH64xNDSbm53PZ+SZkgjIuv7Ybe4R1diJKftEYy2uincIf3eK7UFgRfXgjA/dbh0eV IB+uf2e6onN6wMfvUPiuulZ35nDD+EUWrbU/KbOcfOA/6f97VH7MwWI9ZP/JtVJjrQa8 SA9VH2mI24+FYerbrvuLdw9iDhh33JQY693+BER5z/TmbZVmcypfFQDkwX4ncoOPru9N D6ovWR4muDbX4cZfirmSAmgAPsifXpYhYQg6fVYAYjeC+4AZChQQaBIvoIBRdlE5yunm ECYarD6pXoUkUJ7B3NtX2ZHE5vNKf2iG02LV8FXuUb85vyyfElUZFjJONnqDYMvUoSg6 jzgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature:dkim-signature; bh=CQkZ3teGEPr23y/ioYRbb+TVVhEt7w47QVQSahWM88w=; b=Ugl/HKDXT4A1204kWR9iWbv7nLMak/ralKFXrd5olKncXs5MlFO3eAtyedmXKtEq84 6mS2OByMdWAJ/0gIJmxaBv1BmOtnR0/ZTANIezvR3H/tC/QcqBVAeIDFRfz+ZZvAG3Ns ZfsqxtwGYhav2Ww9dvhROqYkkuiqwPQl4qSW8Q5hmH29aWQ2RaYjpzsp52toV1YgcXnl kaf7090EWgqq3SGfYiinX6B3Tmo7mME5O0MGRIz2xEGxThfQsMjLLbN4LbvfvYZU8iW8 gJbxOwuUJ0T1+Zq+Kz55Vvo/8EW7DDZ6jYRA+/F0S0kMOtRMK6FeuSgz+P33fPFc+w2F SVZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ePRZBjBX; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr11si2207715ejc.874.2022.02.04.13.19.58; Fri, 04 Feb 2022 13:20:24 -0800 (PST) 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=@suse.de header.s=susede2_rsa header.b=ePRZBjBX; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236132AbiBDSsR (ORCPT + 99 others); Fri, 4 Feb 2022 13:48:17 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:58200 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233769AbiBDSsM (ORCPT ); Fri, 4 Feb 2022 13:48:12 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AE9011F37D; Fri, 4 Feb 2022 18:48:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644000491; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CQkZ3teGEPr23y/ioYRbb+TVVhEt7w47QVQSahWM88w=; b=ePRZBjBXaHy1YvVslp+TubmTLRx3c03VGseBXPKt7mKL32PNooG/4Gp3LucEq62wfrCUYK gWN8wCUsEvhddB9au/4ldXxvjtJeiAnbPtUDy2i2/vjPDpLs2SZ9qBZYp8isOtWQyszgiB 1GLjZ1gTFmjPSMCnqnQ2LpFXM+e/lJQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644000491; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CQkZ3teGEPr23y/ioYRbb+TVVhEt7w47QVQSahWM88w=; b=G4KnRmzFxVyxWgXIYRt94I0J6sIhjenH63bgHLdkkJ3HmuK9lU/40QmKXFNClQM0MqCgAy /rhxNDoM+p7nJmAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 78E8B13AD9; Fri, 4 Feb 2022 18:48:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hB9wHOt0/WEOfAAAMHmgww (envelope-from ); Fri, 04 Feb 2022 18:48:11 +0000 Message-ID: <59ec3b5a-6e3f-ed8a-4cc1-c0bedb923bb8@suse.de> Date: Fri, 4 Feb 2022 19:48:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 02/19] iosys-map: Add offset to iosys_map_memcpy_to() Content-Language: en-US To: Lucas De Marchi , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Matthew Brost , =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= , linux-kernel@vger.kernel.org, Daniele Ceraolo Spurio , =?UTF-8?Q?Christian_K=c3=b6nig?= , John Harrison References: <20220204174436.830121-1-lucas.demarchi@intel.com> <20220204174436.830121-3-lucas.demarchi@intel.com> From: Thomas Zimmermann In-Reply-To: <20220204174436.830121-3-lucas.demarchi@intel.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------ckRAS7hLEsBGDMlTBEqJpu8B" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------ckRAS7hLEsBGDMlTBEqJpu8B Content-Type: multipart/mixed; boundary="------------kObLxEvQqYTPfydg2JbgdZma"; protected-headers="v1" From: Thomas Zimmermann To: Lucas De Marchi , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Matthew Brost , =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= , linux-kernel@vger.kernel.org, Daniele Ceraolo Spurio , =?UTF-8?Q?Christian_K=c3=b6nig?= , John Harrison Message-ID: <59ec3b5a-6e3f-ed8a-4cc1-c0bedb923bb8@suse.de> Subject: Re: [PATCH 02/19] iosys-map: Add offset to iosys_map_memcpy_to() References: <20220204174436.830121-1-lucas.demarchi@intel.com> <20220204174436.830121-3-lucas.demarchi@intel.com> In-Reply-To: <20220204174436.830121-3-lucas.demarchi@intel.com> --------------kObLxEvQqYTPfydg2JbgdZma Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGkNCg0KQW0gMDQuMDIuMjIgdW0gMTg6NDQgc2NocmllYiBMdWNhcyBEZSBNYXJja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aXplX3QgbGVuKQ0KPiAgIHsN Cj4gICAJaWYgKGRzdC0+aXNfaW9tZW0pDQo+IC0JCW1lbWNweV90b2lvKGRzdC0+dmFkZHJf aW9tZW0sIHNyYywgbGVuKTsNCj4gKwkJbWVtY3B5X3RvaW8oZHN0LT52YWRkcl9pb21lbSAr IGRzdF9vZmZzZXQsIHNyYywgbGVuKTsNCj4gICAJZWxzZQ0KPiAtCQltZW1jcHkoZHN0LT52 YWRkciwgc3JjLCBsZW4pOw0KPiArCQltZW1jcHkoZHN0LT52YWRkciArIGRzdF9vZmZzZXQs IHNyYywgbGVuKTsNCj4gICB9DQo+ICAgDQo+ICAgLyoqDQoNCi0tIA0KVGhvbWFzIFppbW1l cm1hbm4NCkdyYXBoaWNzIERyaXZlciBEZXZlbG9wZXINClNVU0UgU29mdHdhcmUgU29sdXRp b25zIEdlcm1hbnkgR21iSA0KTWF4ZmVsZHN0ci4gNSwgOTA0MDkgTsO8cm5iZXJnLCBHZXJt YW55DQooSFJCIDM2ODA5LCBBRyBOw7xybmJlcmcpDQpHZXNjaMOkZnRzZsO8aHJlcjogSXZv IFRvdGV2DQo= --------------kObLxEvQqYTPfydg2JbgdZma-- --------------ckRAS7hLEsBGDMlTBEqJpu8B Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAmH9dOoFAwAAAAAACgkQlh/E3EQov+C2 6hAAml+Bim+PqDJBspFVrNnNRlYIJUQvm30u80gSNa2rwqUjZ3apZmBP7yg2Nq88vcbACr5Sri2G wUA96+iYlyxie1zyV1mv2PRy1nkgI3RSGT0/BaIO0emsDadzQz3U4UOHD4+pXvm4V7cYwdAi/z6I /FBGnC6InnChJZsY7NtbqoCZWPd8rIlRnNgrtKR+89s9wG/06L0ucjYinbnDqigHkDh7LYpPlh1O exAYUmicuE5kFNt2lti26dCS1nu6JiEHRqPbysyhok1lr6yxG6nmcyWA9QSj45ZMFJKQeImewkxR roYV7JbTwd4r+CKUqTOR/FbD3dvbx5LOHGRo6sbqU3WogQlQlV2PbEJjHtzwcVZYCl7ytCA5dhxR N7b0QkWozxM2oZ7t3uDTiYB4Hkp4YSP2Xgk/vIf/ke+zOB/sMIz8US+Ozm4e2UbuWgfYbCcd7Qzd vaqWbo5eWk9rIBRdg3wgXKBArEO2bMxAOq+srXDDX76njGrCr6/Mt4obwssFztGBg5Qws4Cfp8An LbmFqJ0u9rTNv7SJzb0nCEN40bZegFRNEbPCikUfjyViu6I8Glec+9Y96LS81yRUWQEdJ0xl6SZ6 7vEBFzaBOE9q9MA3tY7bMaEsIXKN4X8c4Xh0ou9gbjReO+nw9dBVm6rd5JQtk7DM7tT0M/UT4SJA f+E= =2j5n -----END PGP SIGNATURE----- --------------ckRAS7hLEsBGDMlTBEqJpu8B--