From owner-freebsd-questions@freebsd.org Wed Dec 30 13:54:21 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B57024C3E6B for ; Wed, 30 Dec 2020 13:54:21 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D5Xp41Vd3z3R7w for ; Wed, 30 Dec 2020 13:54:19 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Received: by mail-ot1-x330.google.com with SMTP id w3so15401110otp.13 for ; Wed, 30 Dec 2020 05:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6lYnFnNgR1G39uwHxyu2GIUDf2C1fVvHERIzwbmjkU4=; b=AWamKtb3KW/MQrskCK6/mJWfwOf81SFWM+ivIGurNpDpJ6C4uC0bet4lRVGWyEy+WJ gkqIAd3UG3iwHmc6z1sNpkBNnpLvjMGpuBc+RQQ8lDYlR3YSLN48NnPtvi8p/5r2K2MI yGzDm31SHFrpfQFr4EPZUkUPfhh76XKMhxCE2gpi4PqPCTAnAjHQYXg7mEmTRmRgAsx+ gs47XeU146thmrmiLbNdTqHLObaBXcmMWyOa6gchX/EWXrdgd0iWUBstk3GewwCsUkls e6LUMg6e+/nJpqJSdGKdAKbGrrwT0+Vtz1Pk6JTli/LxJjfk9G7WvG9GO3gEApIG+3yh on3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6lYnFnNgR1G39uwHxyu2GIUDf2C1fVvHERIzwbmjkU4=; b=YQ8hSNL/WoBjdTtC++o3VrZX06r1OhOxvncROlMxkXRmFKsx7xw6+R3gt1vUKWR3Qr DlbySVMnGpyGUhZeQdTPFUcSTBdpL30+w6rGUoqiEMXHFa+b9AVseJFVVpDwjFwR8ZjE tqPY27XKhGWFDLEdPslt/H2+uo0XNATehRBPzOYCFVpHtvr5UznyxIZ8vbfjPJq+8PxK ri+dJdC6lpsWZalUk1IjcO4jXECId8IbTJjgzwNFC8D8bxx70gUtetP2TRWA2CX+879a 89FyUux1+GPioOVBEvRtSKrHiIb1dfp/tGlXZpa0F82F5ggKpbFYMJQiDaEahgFLcIzw Fn0Q== X-Gm-Message-State: AOAM531U1jjoEKBVMIYfE7Jt1krC6Ye8DCF23M20O7WpmXGlyG7SMbIG rWKUjIZQXVsOE8evwiA4IW8+FRV0Oz7lpKFCGYY= X-Google-Smtp-Source: ABdhPJzO4V5yaTVx+8vp/464bb2NU5x7kHMvABB0pUN678F/ufFb/6cYt4yrubYHKFKSghYZyhuPm4T66uvlv0sxzrM= X-Received: by 2002:a05:6830:13d2:: with SMTP id e18mr40150511otq.366.1609336458836; Wed, 30 Dec 2020 05:54:18 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Vasily Postnicov Date: Wed, 30 Dec 2020 16:54:07 +0300 Message-ID: Subject: Re: graphics on amd radeon vega To: Michael Schuster Cc: Oskar Sharipov , freeBSD Mailing List X-Rspamd-Queue-Id: 4D5Xp41Vd3z3R7w X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=AWamKtb3; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of shamazmazum@gmail.com designates 2607:f8b0:4864:20::330 as permitted sender) smtp.mailfrom=shamazmazum@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::330:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::330:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::330:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2020 13:54:21 -0000 Cannot say for sure where you need to place that. Its either /boot/loader.conf or /etc/sysctl.conf The second sets sysctls later in the boot process. And it can not set tunables, of course. I suggest you figure it yourself) =D1=81=D1=80, 30 =D0=B4=D0=B5=D0=BA. 2020 =D0=B3., 16:25 Michael Schuster <= michaelsprivate@gmail.com>: > > > On Wed, Dec 30, 2020 at 2:01 PM Vasily Postnicov > wrote: > >> Does sysctl -a | grep exp_hw_support show anything? >> > > indeed it does: > $ sysctl -a | grep exp_hw_support > hw.amdgpu.exp_hw_support: 0 > compat.linuxkpi.amdgpu_exp_hw_support: 0 > $ > >> Usual way to tweak kernel parameters is via sysctl. >> > > from looking at other settings, I would guess I need to put this in > /boot/loader.conf to make this persistent across reboot ... correct? > (again, sorry if that's an FAQ - feel free to point me to documentation > about this) > >> But this is linux stuff so it can be anything else. >> >> If sysctl does not help, you can recompile the whole driver changing >> int amdgpu_exp_hw_support =3D 0; >> to >> int amdgpu_exp_hw_support =3D 1; >> in drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c >> > > I already found that, though I wanted to keep that as a very last resort > :-) > > thx > Michael > >> >> =D1=81=D1=80, 30 =D0=B4=D0=B5=D0=BA. 2020 =D0=B3., 15:17 Michael Schuste= r : >> >>> On Tue, Dec 29, 2020 at 3:35 PM Oskar Sharipov >>> wrote: >>> >>> > On Tue, Dec 29, 2020 at 05:04:38PM +0300, Vasily Postnicov wrote: >>> > > 13-CURRENT supports that chip. See >>> > > >>> > >>> https://github.com/freebsd/drm-kmod/blob/drm_v5.4.62_4/drivers/gpu/drm/= amd/amdgpu/amdgpu_drv.c >>> > > >>> > > > {0x1002, 0x15d8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, >>> CHIP_RAVEN|AMD_IS_APU} >>> > >>> > Oh, wow. Then I will consider could I try CURRENT now or wait >>> > until it released. Thank you! >>> > >>> >>> when I Install this version on current as of today, I see this in >>> /var/log/messages: >>> >>> Dec 30 13:11:56 hbeast kernel: [drm] amdgpu kernel modesetting enabled. >>> Dec 30 13:11:56 hbeast kernel: drmn0: on vgapci0 >>> Dec 30 13:11:56 hbeast kernel: [drm] This hardware requires experimenta= l >>> hardware support. >>> Dec 30 13:11:56 hbeast kernel: See modparam exp_hw_support >>> Dec 30 13:11:56 hbeast kernel: device_attach: drmn0 attach returned 19 >>> sorry if this is an FAQ, but I couldn't find an answer: how do I >>> enable/modify "modparam exp_hw_support"? >>> >>> thx >>> Michael >>> >>> -- >>> Michael Schuster >>> http://recursiveramblings.wordpress.com/ >>> recursion, n: see 'recursion' >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to " >>> freebsd-questions-unsubscribe@freebsd.org" >>> >> > > -- > Michael Schuster > http://recursiveramblings.wordpress.com/ > recursion, n: see 'recursion' >