From nobody Thu May 12 18:56:11 2022 X-Original-To: freebsd-mips@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 24A421AD01CC for ; Thu, 12 May 2022 18:56:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com [IPv6:2607:f8b0:4864:20::a2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kzgwm367vz3rs6 for ; Thu, 12 May 2022 18:56:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vk1-xa2c.google.com with SMTP id b81so3144656vkf.1 for ; Thu, 12 May 2022 11:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0yv6+gquoR4ffLSls/5/6dW2etsUMBctZfJkMRC4RyU=; b=rEePj7sImknGP2QkZnGApbofJj/uQ1xMPTSwPfD+sU6dyDHH/7ZsJbNINX851UN2zA ME5pntSRoL3soSiM5IoN3OzvoHW5X5++2Y5SsT0ubq2O/AzUz1QaohisPhVCdorIb5mk N/UZisIQJWpcaVxFrVMW9BsvkOvsp8OB5X5i4TLWDYuKdylH508PwHpqBdC8tfM8d82g H8y1/eQtB7IRDIjH0CzlbvtAb++MfxPxV72xtkd9DK3fH4iEzf1q01n6wLOjbsLy7IVw /BkO0qjgjeFgUB967XmduJudZDLCxOxbCwzywbZEi/mYnM5SfUFOrIhkVEsjgkiAmLl/ kMOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0yv6+gquoR4ffLSls/5/6dW2etsUMBctZfJkMRC4RyU=; b=77Uby/Jho9KT32kV2B0GIu3MFc3XDe7rZyLzf4ENVMeT7ONk3WxhDtSOjmGqUicniF iV6UNixlnzErExCzcxpF0uglbXrXfThYFtDaWbNqyMcm0U4xGUwPcJw8EOaP1XCdSvPS mBPeg1zYUg7lwpFr8ycj3rqtfhPQSzLYdYCgy5dCm6siT29ACKUpsf3SLjYrIMrR5PE6 rI8dtTnVLSTlgf+VxLGk9X2Kjgf3drK+Tz5C8KKeykho+hpldYptSfBqfEU6rY5zJhnC h9G6ONn9Mqs2UDHHUXAzyXsDQ91aGydFO/pwRq3YMciONunbO5CHFrN8+zVa9MW3UML9 UAew== X-Gm-Message-State: AOAM531dSfWJB7VxA99GaGmDHma05B+f8KjpKm/OCaETCkI6Fyza70Ce GfPywXoF+9Sr1a4H9Kwz2jCX1DtlJW1hO2wQKa4WcA== X-Google-Smtp-Source: ABdhPJw+XViXF1X23m5YmoLyvSWZfrTm15uOMfkizVQAE7wrubKIoqVkBHHkO/reC3QuHbo0cIjRBZIYYUapvUKYWxo= X-Received: by 2002:a1f:ce46:0:b0:34e:b018:c8a4 with SMTP id e67-20020a1fce46000000b0034eb018c8a4mr852040vkg.26.1652381777637; Thu, 12 May 2022 11:56:17 -0700 (PDT) List-Id: Porting FreeBSD to MIPS List-Archive: https://lists.freebsd.org/archives/freebsd-mips List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-mips@freebsd.org MIME-Version: 1.0 References: <1730355085.2141074.1652362306262.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1730355085.2141074.1652362306262.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <1730355085.2141074.1652362306262.JavaMail.yahoo@mail.yahoo.co.jp> From: Warner Losh Date: Thu, 12 May 2022 12:56:11 -0600 Message-ID: Subject: Re: DSP support To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000e3cbb505ded51ceb" X-Rspamd-Queue-Id: 4Kzgwm367vz3rs6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=rEePj7sI; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::a2c) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::a2c:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-mips]; FREEMAIL_TO(0.00)[yahoo.co.jp]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --000000000000e3cbb505ded51ceb Content-Type: text/plain; charset="UTF-8" On Thu, May 12, 2022 at 7:32 AM Mori Hiroki wrote: > Hi > > I want DSP support to FreeBSD 12. > > Ralink 24K have DPS v1. > > Ralink and Atheros 74k have DSP v1 and v2. > > I seem NetBSD support DPS on userland. > > Do you have advice something, please let me know. > At the highest level, if you want to use the DSP, you need to save and restore its state when it's being used. NetBSD should have some code to snag for that. I'm not familiar enough with toolchains to know the extent to which you'd need userland changes. But you can likely snag those from NetBSD as well, though you may need to use an external toolchain to get support for DSP, since it's a bit of a niche part of the architecture. Warner --000000000000e3cbb505ded51ceb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --000000000000e3cbb505ded51ceb--