From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 840EA1F9EB5 for ; Tue, 15 Oct 2024 16:58:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729011519; cv=none; b=O2mVF0SVUZn+//41tsGUM9cI0qXXxjGWp9AGID3kJCPw/Ek4E+0jmOKaBRAyKTIxxysiXg+tabZvNTaTNe4QiAw4bjI37GlfneNnLFzIDptqWFqQdl5C7vvrnQ6J7PNKOQPOPPqAcgBwvZtC5oYhpwlx9l3lj2a+D4yFCeEi+Dg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729011519; c=relaxed/simple; bh=eYQWHEX4p3a/fnZQ9VWX5UvNWH6lxOblp+VynNg57cU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=F8zpC8Dnqg9pqErrrT92FWoXfHyfbe5zzueQYi4XoJz33Sd0Gy59Grkrf0tSFmctYGMF40wFNStogrzSHSjfL7I8WPv3vvi9/p50gmbPomixFlnPzIU3U+/7aYTP7CjBUmO8druJ5HQwFtyvhZ1wKUHhbd4cWlXLsGp8/iazmk0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sigma-star.at; spf=pass smtp.mailfrom=sigma-star.at; dkim=pass (2048-bit key) header.d=sigma-star.at header.i=@sigma-star.at header.b=a5RGMNy6; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sigma-star.at Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sigma-star.at Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sigma-star.at header.i=@sigma-star.at header.b="a5RGMNy6" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4314c4cb752so2054475e9.2 for ; Tue, 15 Oct 2024 09:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigma-star.at; s=google; t=1729011515; x=1729616315; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BmtbYhWLn0Ei+hFke19L36m0g4WY0wniurF00uzIXF0=; b=a5RGMNy6dFp+LbGRr9fcvHShJgJ0fe79V2w2n7EON53akjOP3N3saMXCrfb5cs1YUY 83pavjlK+dvP16Yib4Zc4nvKB8m1uCHtoxq1p/RQs/G8hLeSEuM5J1RQynEz05ZOeHA9 /V2JsB+ywd5OL+7hR6yCrxTLW7iNdD2nZrFK5YXVZJq7KoKKzPFHq74g7oBLshf7/jtw cmo0PloY0BiQ1xj4Xislym/wQqia4icXta0u92D3gcKU7tJS1/OHtBEFlsssSIZSpcMu zFXAxMYBYAQT3ZEfqlGbbrpQjOpnp7NJgd0jmEtjtECPtMSyw44MyrvLPK+tlsaWnVsd V2CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729011515; x=1729616315; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BmtbYhWLn0Ei+hFke19L36m0g4WY0wniurF00uzIXF0=; b=qZlxjwyKlNa7Yknl5eHDpJTDqofDtIBgGWk8sw6rcvM9QFXab0MOAUqLSXfoQVeMJJ 9Ug7EnavvrvzhW1i7KiNPKNJHnkI8MbQSczKQfN0W+yvEqngnJxWZXXP5eKeHE13Xiaz OO7VCd2xVShTlkxrsUTVOWg7FKn705H/Df87RKFHHHQ3Tlz8O6hm2RdgZZcYgReXpyMZ Kety/W8NnDeL4dWEowPUbR8cmT/qWEadfjCn9CQppzfEGB7drnbsPw9jx+L9GJNkGNd2 Lj3N7ldOvJqUz8pSlpnGfRYn9SV7Kv/uzWA7gxpvbFYhgQCad8guuYB7cJjv6ONe3J7O 9fLg== X-Gm-Message-State: AOJu0YzTAVFDQAFO4GvLP8TlB2kBOTHRNqJqgC5GQsWqTe5cyxC2HcGw PUSP0/DxLZfrfZvmIU6EgxvfmFvOomFX15GC3fVJct/IjYXYfw5/bTIepfm5/OM= X-Google-Smtp-Source: AGHT+IGY/1ommtk7PiWRnRTTjMT/8qhLCmbH6vDxu8ze2oRQD2WRZcaDUh9D8pLOu17F3eA0ObvgMA== X-Received: by 2002:a05:600c:4fd4:b0:42c:bae0:f066 with SMTP id 5b1f17b1804b1-4311decaadbmr157521075e9.13.1729011514615; Tue, 15 Oct 2024 09:58:34 -0700 (PDT) Received: from blindfold.localnet (84-115-238-31.cable.dynamic.surfer.at. [84.115.238.31]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4314e632641sm2201035e9.38.2024.10.15.09.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 09:58:34 -0700 (PDT) From: Richard Weinberger To: Richard Weinberger , upstream@sigma-star.at Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, andersson@kernel.org, upstream+rproc@sigma-star.at, ohad@wizery.com, s-anna@ti.com, t-kristo@ti.com, Mathieu Poirier Subject: Re: [PATCH] rpmsg_ns: Work around TI non-standard message Date: Tue, 15 Oct 2024 18:58:33 +0200 Message-ID: <3194112.zE8UqtGg2D@somecomputer> In-Reply-To: References: <20241011123922.23135-1-richard@nod.at> Precedence: bulk X-Mailing-List: linux-remoteproc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Mathieu, Am Dienstag, 15. Oktober 2024, 18:48:08 CEST schrieb Mathieu Poirier: > Good morning Richard, >=20 > On Fri, Oct 11, 2024 at 02:39:22PM +0200, Richard Weinberger wrote: > > Texas Instruments ships a patch in their vendor kernels, > > which adds a new NS message that includes a description field. > > While TI is free to do whatever they want in their copy of the kernel, > > it becomes a mess when people switch to a mainline kernel and want > > to use their existing DSP programs with it. >=20 > I suspect there is a lot more things to change when going from downstream= to a > mainline kernel. Not really. I had to revert c6aed238b7a9b ("remoteproc: modify vring allocation to rely= on centralized carveout allocator") because the DSP has a sub-optimal resource table, and this workaround. With that the DSP program worked as-is on kernel 6.6. Downstream was 4.19 TI. > >=20 > > To make it easier to migrate to a mainline kernel, > > let's make the kernel aware of their non-standard extension but > > briefly ignore the description field. >=20 > In my opinion the real fix here is to get TI to use the standard message > announcement structure. The ->desc field doesn't seem to be that useful = since > it gets discarted. This is for the future, the goal of my patch is helping people to get existing DSP programs work with mainline. Not everyone can or want to rebuild theirs DSP programs when moving to a ma= inline kernel. Thanks, //richard =2D-=20 =E2=80=8B=E2=80=8B=E2=80=8B=E2=80=8B=E2=80=8Bsigma star gmbh | Eduard-Bodem= =2DGasse 6, 6020 Innsbruck, AUT UID/VAT Nr: ATU 66964118 | FN: 374287y