From owner-freebsd-questions@freebsd.org Wed Dec 30 14:41:46 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 DDADA4C55A0 for ; Wed, 30 Dec 2020 14:41:46 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 4D5Yrn6LBcz3kfq for ; Wed, 30 Dec 2020 14:41:45 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-io1-xd33.google.com with SMTP id 81so14814809ioc.13 for ; Wed, 30 Dec 2020 06:41:45 -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=HzL1acdNYzOZdRoJCb78Jnu8qadA1Uzfee5g0CqeHkI=; b=rqyeFm1xTmySIvRNMnEAteN7DxJ+WGPneUfxEJLuieKZvWJjMRncQKDrSZ72Q+XefP Jk64RjaXxCrmtJz2E8h/IsNplvEaEt7SqZHQR8pN2AHoGRpI46d4OUta6oy22BMthuJ1 XspU7lENM2SAdvvjBuFmpTffjW9wWmPZW5DJRuu7u1B+ttO5NLkIga4aSiIVeN5vQxin ttdhgpBHuJh1Wf4KYPqE8jbw0H464zZH1QELz6eJRSoX/b/bk9J3GnOABhNSa5nf21lm Hfcy+m72qYOs+8q81I0hVKgI2pF/lMEFMQy//Ibgr8b8kivMpsjTxLRUJBNG+GzkERgk S05A== 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=HzL1acdNYzOZdRoJCb78Jnu8qadA1Uzfee5g0CqeHkI=; b=Z/foHZ3/Zn6OX2mentQKK/MdINMluXIOQ55nWR25TDShx1dHeduSJ0HWs2kInyy+P8 vJNG0osRC5jBeqEKpnq2vfMeQXvliYRER6KHZkspur9dKO3TJY37EDhgrszK4f/kDT4x qkczVfLDs12/HBikPZW4YVYmlzRQd9SkXuPLkzTAIevNLZjhwA+jSRCR6QbjCerZx0p7 0edwUceDSap+UsdcVk1gRgniV8IaPB5EuOzbHmfWZtfezRA20477E05LqDHFuEwpoBOG P0qF+B1tNpcgYAXZ/SIEoaDDrREkmWrC1HRFL5UEseYZrGtP6XoOjpGoviAVMbDrVYaQ 2UPQ== X-Gm-Message-State: AOAM5307YYxpcFM6FVNzv7zSPi91kWJ5tzz2KTW7M7A7VYZ/wXOtfVYx agl+T0b6W/Nd6Td422KNTfyeIC+CuOXjdYOLo6Fn8QKHakW/Dw== X-Google-Smtp-Source: ABdhPJzYB1l/RNCLOBxejz/AZBaBDsVhWDTjxRWSMrLfkzmO6UjQGDhKZMF2lRycSJOSLmogN2PcICbOzM297q50w8c= X-Received: by 2002:a02:354a:: with SMTP id y10mr47321212jae.126.1609339304491; Wed, 30 Dec 2020 06:41:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Michael Schuster Date: Wed, 30 Dec 2020 15:41:39 +0100 Message-ID: Subject: Re: graphics on amd radeon vega To: Vasily Postnicov Cc: Oskar Sharipov , freeBSD Mailing List X-Rspamd-Queue-Id: 4D5Yrn6LBcz3kfq X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=rqyeFm1x; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::d33 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; 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::d33:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; 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]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::d33:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d33: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 14:41:46 -0000 On Wed, Dec 30, 2020 at 2:54 PM Vasily Postnicov wrote: > 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) > will do, many thanks! Michael > > =D1=81=D1=80, 30 =D0=B4=D0=B5=D0=BA. 2020 =D0=B3., 16:25 Michael Schuster= : > >> >> >> 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 Schust= er : >>> >>>> 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 experiment= al >>>> 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' >> > --=20 Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'