Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1532718rdg; Sat, 12 Aug 2023 05:26:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsQiEi6JplDtRSNh1tvAXQJuCh67q/M/k+YKzKh9cqhyVBi4riSj0NiHqyYJVEitDaxynz X-Received: by 2002:a05:6a20:9388:b0:134:135c:5a23 with SMTP id x8-20020a056a20938800b00134135c5a23mr9614188pzh.18.1691843168140; Sat, 12 Aug 2023 05:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691843168; cv=none; d=google.com; s=arc-20160816; b=MCTEk4h8gkXvBBlGe24/qM5uXKIcMzlk7L7ci9ILhRUxdXY3sC81JlNpeFtDJ/wMrr O5xYsF2r++aIumo0DtlAVfarLI3xY7DiI9qkvbE721zwU0jOmDMf9CMu9j70rGz0Wauu ys4JTPN6XpTj3I7czW+RVohwMVosrLLwsGkgJyNkxOOeHmveUBJI56PmBft9oaC4VjVy fTp12IlhvsOekgFaV28dZJnA+Z8NrPLCGC7voVPWIIcX3uGhwMO0lOoZmbzecEsanJCY yqlrdqw4dU7+p1lnJFpSwIbflk2L7BMnhCXlHLp/RNzIGsYH4PAIGBhrL6pCtb0Tvy0u QAZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=ynCHtirdWZFV2YnMO46lqjPWpR3icApZ23ZDZH0k+dM=; fh=s/ttoczsrgsOlGXnMqF1+fU4iG5HXKLXLHPG8KHQt1U=; b=cSwA2HOINAtIXTvaQG3aebpX1yQ0uCgWJnHfKiBQPo0dfUJ/SqZ1b2SfUk/H+dqBbC Szl9cz5vP+mUoF7SH4ZLM836tr+JxJdYuyrU3LCHMlVncLVBwhbGcS/M2X3l9bKqSJRx dZWRLT4Sf9HIOJ1Mmo6C05SQr6NCWFLz9E3kzq0p29CnZdhoT323Z4idkMWgJWjnS8p5 AoKIjgkr2oUDTqMKZd7ruZVwbLeu8UWRp/uOO+vFRJBv9Q5kk/apOsBgYZkPcNHnWwtZ Ow/VUc5yKrxY5tFQXoEJqclWEG5ID3mdrR1bkP8/rKCuSXopcGXt+SeinZS8NtlQrW50 kYfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vvObwF8h; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e32-20020a630f20000000b00563deb65f93si4751099pgl.200.2023.08.12.05.25.55; Sat, 12 Aug 2023 05:26:08 -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=@linaro.org header.s=google header.b=vvObwF8h; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233514AbjHLKxo (ORCPT + 99 others); Sat, 12 Aug 2023 06:53:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234144AbjHLKxm (ORCPT ); Sat, 12 Aug 2023 06:53:42 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09F5810EA for ; Sat, 12 Aug 2023 03:53:15 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fe2d152f62so4539186e87.0 for ; Sat, 12 Aug 2023 03:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691837589; x=1692442389; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ynCHtirdWZFV2YnMO46lqjPWpR3icApZ23ZDZH0k+dM=; b=vvObwF8hDdx4+qgTZ9PAHZ7f9g9FgJzrVgn70l/iyPbebF98u6F0T2CqCdxBZdM9q+ 1oOfr8KXTNvLYrd9d2O37dc/CKBY8EiHjL05BCu2xagydSE934Wj//B9F2OZlXP6VSuI dWdPIuoChhakcjqXNB7E/FvNAWMvxRbjQqUsfjw4d6/PqNzvbHPivRaOxNs8GkszKcmp cIq6s2pBe9ToK7K+MGJF/5JOqLHzPOTKOdEGH9QDtr9N3mdwpXGackfWq+p9s5dRIbhl lDsI+vmxqXTda1h6BcFOHqpBSRx3aWFrt8HYJieqpgQC4pXF3m66MO2r5r1OfDd+nML3 RDkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691837589; x=1692442389; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ynCHtirdWZFV2YnMO46lqjPWpR3icApZ23ZDZH0k+dM=; b=iAWkWBx/uZ+3unACAU+c9WLfqLEPZpIyDaBGZkz9bMcBav2C2z9jkdGS+UujKgD2i7 577GFA8I++tx+wylFnByGUnEP2CxtzGq9d6oFFX+PZyU5/UyjPbu15k3yoFjNIhd5yvM 80RNrOH5WmO5qQuuczLZBm9nZBnbVtYwaWA+NbvL13TYqYTzHSTtwECcnKx2+7k+pS1P YNzUdgz3Kob0aY14qhqdMvSlnHh7Ubvp/1xaF2TugwwhSKekUz6lg3l45eIdh4k98A4H 8eu0w5pnXTtZQZqXh0wqNElp0APYhRcshm7Oglw3gHzCYxzZrgNlIeOxEnKYXcKD6CmT uzlQ== X-Gm-Message-State: AOJu0YzOB6ql4IFYQ6stEUJAKaiFzMzJAc/a40YnjXNrpg1fjZnpmOCP 6WM69Bq1xQLvg9Akp5Pb0nZGtA== X-Received: by 2002:a05:6512:3487:b0:4fe:5051:f253 with SMTP id v7-20020a056512348700b004fe5051f253mr2732409lfr.9.1691837589549; Sat, 12 Aug 2023 03:53:09 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id b24-20020ac247f8000000b004fe333128c0sm1088359lfp.242.2023.08.12.03.53.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Aug 2023 03:53:09 -0700 (PDT) Message-ID: <074d2bf6-1f89-4ec9-80de-52deeb1c319f@linaro.org> Date: Sat, 12 Aug 2023 12:53:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/4] soc: qcom: aoss: Move length requirements from caller Content-Language: en-US To: Bjorn Andersson , Bjorn Andersson , Chris Lew Cc: Alex Elder , "David S. Miller" , Jakub Kicinski , Mathieu Poirier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, Andrew Lunn References: <20230811205839.727373-1-quic_bjorande@quicinc.com> <20230811205839.727373-2-quic_bjorande@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO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H7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20230811205839.727373-2-quic_bjorande@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 11.08.2023 22:58, Bjorn Andersson wrote: > The existing implementation of qmp_send() requires the caller to provide > a buffer which is of word-aligned. The underlying reason for this is > that message ram only supports word accesses, but pushing this > requirement onto the clients results in the same boiler plate code > sprinkled in every call site. > > By using a temporary buffer in qmp_send() we can hide the underlying > hardware limitations from the clients and allow them to pass their > NUL-terminates C string directly. > > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Konrad Dybcio Konrad